Add lgpl-3.0 module.
[gnulib.git] / ChangeLog
1 2012-01-08  Simon Josefsson  <simon@josefsson.org>
2
3         Add lgpl-3.0 module.
4         * MODULES.html.sh (Support for building documentation): Add
5         lgpl-3.0.
6         * modules/lgpl-3.0: New file.
7
8 2012-01-08  Jim Meyering  <meyering@redhat.com>
9
10         select.c: indent with spaces, not TABs
11         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
12
13 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
14
15         quotearg: do not use grave accent for left quote
16         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
17         locale_quoting_style.
18         (quotearg_buffer_restyled): Fix example.
19         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
20
21 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
22
23         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
24         Most programs do not have translation catalogs for English and much
25         less separate catalogs for British and American English.  Drop the
26         suggestion to translators about these two, and provide it
27         automatically for Unicode locales.  Like most programs, even those
28         using American English, we use single quotation marks.  This conflicts
29         with the American typographic convention, but works better when you
30         cite the entire error message within double quotes.  It also tries not
31         to clash with established practice and with what non-gnulib programs
32         will usually do.
33         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
34         using an UTF-8 or GB-18030 locale.  The list of other locales with
35         quotes was provided by Bruno Haible.
36         (quotearg_buffer_restyled): Adjust instructions to translators.
37         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
38         text, since this would be wrong when using Unicode.
39         * modules/quotearg: Depend on c-strcaseeq.
40
41 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
42
43         quotearg: fix Wikipedia link
44         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
45
46 2012-01-07  Simon Josefsson  <simon@josefsson.org>
47
48         Fix for mingw with MSVC9.
49         * m4/ld-version-script.m4: Check that compiler rejects version
50         scripts with syntax errors.  Reported by Bruno Haible
51         <bruno@clisp.org>.
52
53 2012-01-06  Bruno Haible  <bruno@clisp.org>
54
55         Talk about "native Windows API", not "Woe32".
56         * lib/accept4.c: Update comments to mention native Windows.
57         * lib/execute.c: Likewise.
58         * lib/fatal-signal.c: Likewise.
59         * lib/localcharset.c: Likewise.
60         * lib/nanosleep.c: Likewise.
61         * lib/nl_langinfo.c: Likewise.
62         * lib/pclose.c: Likewise.
63         * lib/pipe-filter-gi.c: Likewise.
64         * lib/pipe-filter-ii.c: Likewise.
65         * lib/pipe.c: Likewise.
66         * lib/pipe2.c: Likewise.
67         * lib/popen.c: Likewise.
68         * lib/progreloc.c: Likewise.
69         * lib/relocatable.c: Likewise.
70         * lib/sigaction.c: Likewise.
71         * lib/sigprocmask.c: Likewise.
72         * lib/spawn-pipe.h: Likewise.
73         * lib/spawn-pipe.c: Likewise.
74         * lib/spawni.c: Likewise.
75         * lib/stat-time.h: Likewise.
76         * lib/w32spawn.h: Likewise.
77         * tests/test-isatty.c: Likewise.
78         * lib/config.charset: More comments.
79         * doc/gnulib-intro.texi: Mention native Windows.
80         * doc/posix-functions/_Exit_C99.texi: Likewise.
81         * doc/posix-headers/fcntl.texi: Likewise.
82
83 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
84
85         argp: Avoid crash if translator uses % characters in a translation.
86         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
87         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
88
89 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
90
91         doc: C11 and C++11 are now official
92         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
93         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
94         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
95         * modules/stdalign:
96         Replace references to draft C1X to C11, and to draft C++0X to C++11.
97
98 2012-01-06  Bruno Haible  <bruno@clisp.org>
99
100         uc-is-grapheme-break tests: Tweak.
101         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
102         message.
103
104 2012-01-06  Bruno Haible  <bruno@clisp.org>
105
106         test-init.sh: correct the test for diff -u
107         * tests/test-init.sh: Also redirect stdout to /dev/null.
108
109 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
110
111         Use ', not `, for quoting output.
112         * build-aux/announce-gen (usage, sizes, print_news_deltas)
113         (print_changelog_deltas, get_tool_versions, main program):
114         * build-aux/git-version-gen:
115         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
116         * build-aux/move-if-change (help):
117         * build-aux/useless-if-before-free (usage, main program):
118         * check-module (parse_module_file, usage)
119         (find_included_lib_files, check_module):
120         * lib/argmatch.c (main) [TEST]:
121         * lib/argp-help.c (_help):
122         * lib/getopt1.c (main) [TEST]:
123         * lib/git-merge-changelog.c (usage):
124         * lib/xstrtol-error.c (xstrtol_error):
125         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
126         * m4/argz.m4 (gl_FUNC_ARGZ):
127         * m4/bison.m4 (gl_BISON):
128         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
129         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
130         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
131         * m4/fpending.m4 (gl_PREREQ_FPENDING):
132         * m4/gc-random.m4 (gl_GC_RANDOM):
133         * m4/intl.m4 (gt_CHECK_DECL):
134         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
135         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
136         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
137         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
138         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
139         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
140         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
141         * tests/test-dirname.c (main):
142         * tests/test-getpass.c (main):
143         * tests/test-iconvme.c (main):
144         * tests/test-parse-datetime.c (LOG):
145         * tests/test-xstrtoimax.sh:
146         * tests/test-xstrtol.sh:
147         * tests/test-xstrtoll.sh:
148         * tests/test-xstrtoumax.sh:
149         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
150         * top/GNUmakefile (abort-due-to-no-makefile):
151         Quote 'like this', not `like this', as per the recent change to
152         the GNU coding standards.
153
154 2012-01-05  Bruno Haible  <bruno@clisp.org>
155
156         strtoimax: Don't force a replacement on systems where intmax_t is int.
157         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
158         'intmax_t' is not larger than 'int'.
159         Reported by Pádraig Brady <P@draigBrady.com>.
160
161 2012-01-05  Bruno Haible  <bruno@clisp.org>
162
163         doc: Mention NetBSD bugs.
164         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
165         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
166
167 2012-01-05  Bruno Haible  <bruno@clisp.org>
168
169         strtoumax tests: Enhance tests.
170         * tests/test-strtoumax.c (main): Add tests for large values.
171
172 2012-01-05  Bruno Haible  <bruno@clisp.org>
173
174         strtoimax: Work around AIX 5.1 bug.
175         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
176         definition.
177         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
178         Set HAVE_STRTOIMAX.
179         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
180         REPLACE_STRTOIMAX.
181         * modules/inttypes-incomplete (Makefile.am): Substitute
182         REPLACE_STRTOIMAX.
183         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
184         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
185         (Depends-on): Update conditions.
186         * tests/test-strtoimax.c (main): Add tests for large values.
187         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
188
189 2012-01-05  Bruno Haible  <bruno@clisp.org>
190
191         inttypes: Modernize.
192         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
193         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
194         (Makefile.am): Update inttypes.h rule.
195
196 2012-01-05  Jim Meyering  <meyering@redhat.com>
197
198         init.sh: don't waste a subshell just to redirect stderr
199         * tests/init.sh: In testing for diff -u and diff -c, use a
200         stderr-redirecting exec inside `...` rather than a subshell.
201
202         test-init.sh: avoid failure on HP-UX 11.00
203         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
204         resolves to diff -c or cmp.  Reported by Bruno Haible.
205
206 2012-01-05  Bruno Haible  <bruno@clisp.org>
207
208         Tests for module 'strtoull'.
209         * modules/strtoull-tests: New file.
210         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
211
212 2012-01-05  Bruno Haible  <bruno@clisp.org>
213
214         Tests for module 'strtoll'.
215         * modules/strtoll-tests: New file.
216         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
217
218 2012-01-05  Bruno Haible  <bruno@clisp.org>
219
220         Tests for module 'strtoul'.
221         * modules/strtoul-tests: New file.
222         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
223
224 2012-01-05  Bruno Haible  <bruno@clisp.org>
225
226         Tests for module 'strtol'.
227         * modules/strtol-tests: New file.
228         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
229
230 2012-01-04  Jim Meyering  <meyering@redhat.com>
231
232         test-init.sh: accommodate Solaris 5.10's different diff -u output
233         * tests/test-init.sh: Also exempt @@ lines from the comparison
234         of diff output, since Solaris 5.10 and GNU diff formats differ.
235         Reported by Stefano Lattarini.
236
237 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
238
239         test-posixtm: don't assume signed integer wraparound
240         * tests/test-posixtm.c (main): Don't assume wraparound semantics
241         after signed integer overflow.  Inspired by (though it may not
242         fix) Bruno Haible's bug report in
243         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
244
245         Spell out "Windows 9x" and "Windows XP".
246         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
247         "Windows 9x" and "WinXP" with "Windows XP".
248
249 2012-01-04  Jim Meyering  <meyering@redhat.com>
250
251         test-vc-list-files-cvs.sh: remove obsolete comment
252         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
253         double exit.  Now that's all encapsulated via skip_ and Exit.
254
255 2012-01-04  Bruno Haible  <bruno@clisp.org>
256
257         Talk about "native Windows API", not "Win32".
258         * lib/classpath.c: Update comments to mention native Windows.
259         * lib/csharpexec.c: Likewise.
260         * lib/dup2.c: Likewise.
261         * lib/error.c: Likewise.
262         * lib/fcntl.c: Likewise.
263         * lib/filename.h: Likewise.
264         * lib/findprog.c: Likewise.
265         * lib/get-rusage-as.c: Likewise.
266         * lib/get-rusage-data.c: Likewise.
267         * lib/getpagesize.c: Likewise.
268         * lib/javaexec.c: Likewise.
269         * lib/msvc-inval.c: Likewise.
270         * lib/msvc-nothrow.c: Likewise.
271         * lib/nanosleep.c: Likewise.
272         * lib/nonblocking.c: Likewise.
273         * lib/printf-parse.c: Likewise.
274         * lib/setlocale.c: Likewise.
275         * lib/sigaction.c: Likewise.
276         * lib/strerror_r.c: Likewise.
277         * lib/tmpdir.c: Likewise.
278         * lib/vasnprintf.c: Likewise.
279         * lib/w32spawn.h: Likewise.
280         * lib/waitpid.c: Likewise.
281         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
282         * m4/locale-ar.m4: Likewise.
283         * m4/locale-fr.m4: Likewise.
284         * m4/locale-ja.m4: Likewise.
285         * m4/locale-tr.m4: Likewise.
286         * m4/locale-zh.m4: Likewise.
287         * m4/printf.m4: Likewise.
288         * tests/test-cloexec.c: Likewise.
289         * tests/test-copy-acl.sh: Likewise.
290         * tests/test-copy-file.sh: Likewise.
291         * tests/test-file-has-acl.sh: Likewise.
292         * tests/test-set-mode-acl.sh: Likewise.
293         * tests/test-dup-safer.c: Likewise.
294         * tests/test-dup2.c: Likewise.
295         * tests/test-dup3.c: Likewise.
296         * tests/test-fcntl.c: Likewise.
297         * tests/test-nonblocking-pipe.h: Likewise.
298         * tests/test-nonblocking-socket.h: Likewise.
299         * tests/test-pipe.c: Likewise.
300         * tests/test-pipe2.c: Likewise.
301         * tests/test-spawn-pipe-child.c: Likewise.
302         * doc/acl-resources.txt: Likewise.
303         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
304         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
305         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
306         * lib/localcharset.c: Update comments to mention native Windows.
307         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
308         * lib/localename.c: Likewise.
309         * lib/progreloc.c: Likewise.
310         * lib/relocatable.c: Likewise.
311         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
312         (windows_compute_revents): Renamed from win32_compute_revents.
313         (windows_compute_revents_socket): Renamed from
314         win32_compute_revents_socket.
315         * lib/select.c: Update comments to mention native Windows.
316         (windows_poll_handle): Renamed from win32_poll_handle.
317         * m4/threadlib.m4: Update comments to mention native Windows.
318         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
319         --enable-threads=windows instead of --enable-threads=win32. Set
320         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
321         * lib/glthread/lock.h: Update comments to mention native Windows.
322         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
323         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
324         USE_WIN32_THREADS.
325         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
326         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
327         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
328         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
329         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
330         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
331         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
332         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
333         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
334         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
335         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
336         * tests/test-tls.c: Likewise.
337         Rationale:
338         Microsoft renamed the "Win32 API" to "Windows API", as it is available
339         on both 32-bit and 64-bit Windows systems.
340         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
341         line of distinction is between "native Windows" on one side and Unix/
342         POSIX systems on the other side. More details in
343         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
344         Suggested by Paul Eggert.
345
346 2012-01-03  Bruno Haible  <bruno@clisp.org>
347
348         isatty: Support for MSVC 9.
349         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
350         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
351         (_isatty_nothrow): New function.
352         (isatty): Use it instead of _isatty.
353         (IsConsoleHandle): Add comment, from Paolo Bonzini.
354         * lib/poll.c (IsConsoleHandle): Likewise.
355         * lib/select.c (IsConsoleHandle): Likewise.
356         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
357         (gl_PREREQ_ISATTY): New macro.
358         * modules/isatty (Depends-on): Add msvc-inval.
359         (configure.ac): Invoke gl_PREREQ_ISATTY.
360
361 2012-01-03  Jim Meyering  <meyering@redhat.com>
362
363         maint.mk: remove temporary transition aid from over 1.5 years ago
364         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
365         purpose was to aid in the transition (avoiding silent malfunction)
366         from that old name to the new _sc_search_regexp.  This shim was
367         added by commit 219c504b.
368
369         init.sh: do not try to accommodate compare arguments starting with "-"
370         * tests/init.sh (compare_dev_null_): Do not try to accommodate
371         compare arguments that start with "-".  Besides, we do not worry
372         about this when invoking diff or cmp; why start now with sed?
373         Using "--" to separate options from argument would trigger sed
374         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
375         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
376
377 2012-01-02  Bruno Haible  <bruno@clisp.org>
378
379         Enhance tests for module 'isatty'.
380         * modules/isatty-tests (Depends-on): Add pipe-posix.
381         * tests/test-isatty.c: Include <fcntl.h>.
382         (DEV_NULL): New macro.
383         (main): Test the resut of isatty() also on regular files, pipes, and
384         /dev/null.
385
386         New module 'isatty'.
387         * lib/unistd.in.h (isatty): New declaration.
388         * lib/isatty.c: New file, based on an idea of
389         Bastien Roucariès <roucaries.bastien@gmail.com>.
390         * m4/isatty.m4: New file.
391         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
392         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
393         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
394         REPLACE_ISATTY.
395         * modules/isatty: New file.
396         * doc/posix-functions/isatty.texi: Mention the new module.
397         Suggested by Paolo Bonzini.
398
399 2012-01-02  Bruno Haible  <bruno@clisp.org>
400
401         canonicalize: Tweak 2011-12-29 commit.
402         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
403         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
404
405 2012-01-02  Jim Meyering  <meyering@redhat.com>
406
407         gitlog-to-changelog: describe input syntax in --help output
408         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
409
410         gitlog-to-changelog: fix typo in --help: show backslash before email @
411         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
412         in sources, but not in actual output.
413
414 2011-12-30  Jim Meyering  <meyering@redhat.com>
415
416         gitlog-to-changelog: don't malfunction when name contains %-directive
417         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
418         in a name string cause trouble.  E.g., with a user name of "%s",
419         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
420
421 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
422
423         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
424         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
425         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
426         the "  (tiny change)" notation that is appended to the standard
427         ChangeLog "date  name  email" header line.
428
429 2012-01-01  Jim Meyering  <meyering@redhat.com>
430
431         test-framework-sh: init.sh: fix "make dist" failure
432         When using gnulib-tool's --with-tests option and any module that
433         depends on test-framework-sh, "make dist" would fail due to the
434         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
435         in the gltests directory, and not in the gllib/ directory.
436         One way to work around that is to move the EXTRA_DIST += init.sh
437         from the primary module to the -tests one:
438         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
439         * modules/test-framework-sh (Makefile.am): ...not here.
440         Reported by Tom G. Christensen in
441         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
442
443         version-etc: update copyright year reported by --version
444         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
445
446 2011-12-31  Pádraig Brady  <P@draigBrady.com>
447
448         canonicalize: only stat() if required
449         * lib/canonicalize.c (canonicalize_filename_mode):
450         Avoid calling l?stat() when both CAN_MISSING,
451         and CAN_NOLINKS are set, as we neither need
452         to resolve symlinks or test component existence.
453
454 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
455
456         doc: cover st_ino issues once; add OpenVMS etc.
457         * doc/posix-functions/stat.texi (stat):
458         * doc/posix-functions/lstat.texi (lstat):
459         * doc/posix-functions/fstatat.texi (fstatat):
460         * doc/posix-functions/fstat.texi (fstat):
461         Move general 'struct stat' stuff to sys_stat.texi,
462         leaving behind a pointer.
463         * doc/posix-headers/sys_stat.texi (sys/stat.h):
464         Merge duplicate info about 'struct stat' problems into here.
465         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
466         and suggest partial workarounds.
467
468         same-inode: port to OpenVMS
469         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
470         three st_ino values.
471
472 2011-12-30  Pádraig Brady  <P@draigBrady.com>
473
474         canonicalize: fix references to stat() and lstat()
475         * lib/canonicalize.c (canonicalize_filename_mode):
476         Ensure references always resolve to a replacement
477         function if required (even via a macro).
478
479 2011-12-30  Jim Meyering  <meyering@redhat.com>
480
481         gitlog-to-changelog: remove a little duplication
482         * build-aux/gitlog-to-changelog (main): Grep @lines once,
483         rather than twice.
484
485 2011-12-29  Pádraig Brady  <P@draigBrady.com>
486
487         canonicalize: add support for not resolving symlinks
488         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
489         indicate we don't want to follow symlinks.  Also
490         provide CAN_MODE_MASK to aid setting these existing
491         mutually exclusive values.
492         * lib/canonicalize.c (canonicalize_filename_mode):
493         Extract the flags from can_mode parameter, which
494         are currently just used to select between stat()
495         and lstat().  Also ensure that mutually exclusive
496         values are flagged immediately as invalid.
497         * tests/test-canonicalize.c: Verify symlinks are
498         not followed, and that invalid flag combinations
499         are diagnosed.
500
501 2011-12-25  Jim Meyering  <meyering@redhat.com>
502
503         gitlog-to-changelog: do not clump multi-paragraph entries
504         Identical header lines (date,name,email+coauthors) are suppressed,
505         thus putting all entries with those same characteristics under
506         a single header.  However, when a log entry consists of two or
507         more paragraphs, it may not be clear where it starts and ends.
508         This change makes it so that such an entry is always separated
509         from others by a header line, even when that header would
510         otherwise be suppressed.
511         * build-aux/gitlog-to-changelog: Implement the above.
512         Inspired by a related request from Stefano Lattarini in
513         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
514
515 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
516
517         announce-gen: fix `cmd' typo in diagnostic
518         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
519         diagnostic: a missing '$' meant that the command was not output.
520
521 2011-12-23  Jim Meyering  <meyering@redhat.com>
522
523         test-framework-sh: distribute init.sh
524         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
525         Otherwise, "make -C gnulib-tests check" (at least in grep) would
526         fail due to the lack of init.sh.
527
528         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
529         * modules/atexit-tests: Rather than listing tests/init.sh,
530         now that there's a module for it, simply depend on that new module.
531         * modules/closein-tests: Likewise.
532         * modules/exclude-tests: Likewise.
533         * modules/getcwd-tests: Likewise.
534         * modules/perror-tests: Likewise.
535         * modules/pread-tests: Likewise.
536         * modules/pwrite-tests: Likewise.
537         * modules/vc-list-files-tests: Likewise.
538         * modules/verify-tests: Likewise.
539         * modules/xalloc-die-tests: Likewise.
540         * modules/xstrtoimax-tests: Likewise.
541         * modules/xstrtol-tests: Likewise.
542         * modules/xstrtoll-tests: Likewise.
543         * modules/xstrtoumax-tests: Likewise.
544         * modules/yesno-tests: Likewise.
545
546 2011-12-22  Jim Meyering  <meyering@redhat.com>
547
548         test-framework-sh: add minimal tests of init.sh's compare function
549         * modules/test-framework-sh-tests: New file.
550         * tests/test-init.sh: New file.
551
552         test-framework-sh: new module
553         * modules/test-framework-sh: New file.
554         * MODULES.html.sh (Support for maintaining and releasing projects):
555         List it.
556
557         init.sh: do not emit simulated diff output to stderr
558         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
559
560 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
561
562         .gitignore: ignore gnulib.dvi and regex.info
563         * doc/.gitignore:add gnulib.dvi and regex.info
564
565 2011-12-22  Jim Meyering  <meyering@redhat.com>
566
567         init.sh: correct previous change
568         * tests/init.sh (compare): My previous change was wrong.
569         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
570
571         init.sh: avoid unwarranted test failure when using "set -e"
572         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
573         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
574         a use like "compare exp out" would get evoke an unconditional failure.
575
576 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
577
578         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
579         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
580         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
581         autoreconf that did not.
582         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
583         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
584
585 2011-12-17  Jim Meyering  <meyering@redhat.com>
586
587         bootstrap: remove some now-unneeded code
588         This script arose back when gnulib-tool was young.
589         Since then, it has seen improvements that render much of this
590         script unnecessary.  In particular, it can now make symlinks
591         to the files it uses.  Also, I no longer see as much value in
592         marking files as read-only via comments.
593         If you relied on the symlink-creation feature of the preceding
594         version of this script, you can get most of that functionality
595         by adding the --symlink option to the definition of
596         gnulib_tool_option_extras in your bootstrap.conf file.
597         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
598         Run autopoint and libtoolize *before* gnulib-tool.
599         After it, run an abbreviated autoreconf, rather than a loop around
600         all tools.
601         (slirp, bt_mark_as_generated): Remove functions.
602
603 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
604
605         ftoastr: fix typo
606         * lib/ftoastr.h: Fix misspelling in comment.
607
608 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
609
610         * top/README-release: fix punctuation.
611
612 2011-12-17  Jim Meyering  <meyering@redhat.com>
613
614         bootstrap: correct the recent buildreq change
615         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
616         had no effect.
617         * build-aux/bootstrap (buildreq): Bracket each search term with
618         "*...*", so that the shell "case" statement works as intended.
619         Add comments.
620
621 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
622
623         build: let bootstrap resort to wget when downloading .po files
624         * build-aux/bootstrap (download_po_files): Fallback to wget when
625         downloading the .po files via rsync fails.  This is necessary to
626         bootstrap from behind a strict firewall.
627
628 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
629
630         stdint: don't assume C++11 when compiling with g++
631         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
632         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
633         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
634         work also in C++ before C++11, as that improperly inhibits
635         generating a substitute stdint.h for that case.
636
637 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
638
639         alloca: protect comment from gnulib-tool
640         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
641         that gnulib-tool doesn't think it's a license, and munge it to
642         say "GCC version 3".
643
644 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
645
646         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
647         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
648         $(abs_top_builddir) instead of $(top_builddir).
649
650 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
651
652         strftime-tests: also test nanoseconds
653         * tests/test-strftime.c (T): Add a test of %N.
654
655 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
656
657         inttypes, stdint: add C++11 support
658         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
659         when including inttypes.h and stdint.h.  Support this change to
660         the standard.
661         * doc/posix-headers/inttypes.texi (inttypes.h):
662         * doc/posix-headers/stdint.texi (stdint.h): Document this.
663         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
664         Define if not defined already, for the benefit of pre-C++11 hosts.
665         Define the standard format macros (e.g., PRId8) always.
666         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
667         Likewise, if __cpluspus.  Define the standard constant and limit
668         macros (e.g., INT8_C, INT8_MAX) always.
669         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
670         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
671         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
672         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
673         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
674         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
675         Likewise.
676
677 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
678
679         nonblocking tests: Fix test failure on Linux/PPC.
680         Suggested by Prerna Saxena in
681         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
682         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
683         Set to 1100000.
684
685 2011-12-12  Jim Meyering  <meyering@redhat.com>
686
687         argmatch: don't hard-code `' when listing valid option arguments
688         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
689         use the quote function to add quotes.  Use fputs rather than
690         fprintf for the format string with no format directive.
691
692 2011-12-07  Eric Blake  <eblake@redhat.com>
693
694         bootstrap: detect tools required by gnulib-tool
695         * build-aux/bootstrap (buildreq): Provide minimum implicit
696         dependencies.
697         * DEPENDENCIES: Mention patch as a prereq.
698
699 2011-12-04  Bruno Haible  <bruno@clisp.org>
700
701         sethostname: Port to Windows platforms.
702         * lib/sethostname.c: Provide an alternate implementation for Windows
703         platforms.
704         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
705         (main): Skip the test if sethostname() fails with EPERM. On Windows
706         platforms, don't check the result of gethostname().
707
708 2011-12-04  Bruno Haible  <bruno@clisp.org>
709             Jim Meyering  <meyering@redhat.com>
710
711         tests: Avoid spurious error message on platforms without mktemp program.
712         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
713
714 2011-12-04  Bruno Haible  <bruno@clisp.org>
715
716         sethostname: Fix documentation.
717         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
718         "not fixed" section.
719
720 2011-12-03  Bruno Haible  <bruno@clisp.org>
721
722         gnulib-tool: Verify that the License field is present and non-empty.
723         * gnulib-tool (func_get_license_raw): New function, extracted from
724         func_get_license.
725         (func_get_license): Use it. Warn if the module is not a test module and
726         has no license.
727         Suggested by Jim Meyering.
728
729 2011-12-03  Bruno Haible  <bruno@clisp.org>
730
731         sethostname tests: Fix link error on mingw.
732         * tests/test-sethostname1.c: New file, extracted from
733         tests/test-sethostname.c.
734         * tests/test-sethostname2.c: New file, extracted from
735         tests/test-sethostname.c.
736         * tests/test-sethostname.c: Remove file.
737         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
738         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
739         (Depends-on): Add gethostname.
740         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
741         Link the latter with $(GETHOSTNAME_LIB).
742
743         sethostname tests: Fix compilation error on mingw.
744         * tests/test-sethostname.c: Don't include <sys/types.h>.
745         (geteuid): Use a dummy value without uid_t.
746         * modules/sethostname-tests (Depends-on): Remove sys_types.
747
748         sethostname tests: Avoid a gcc warning.
749         * tests/test-sethostname.c (main): Remove an unused variable.
750
751         Tweak last commit.
752         * modules/sethostname-tests (Files): Sort by decreasing importance.
753         (configure.ac): Check for geteuid.
754         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
755         the test when there's nothing to test. Drop an unnecessary cast.
756         Improve an error message. Verify that the final sethostname() call
757         succeeds.
758
759 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
760
761         Add a test suite for the sethostname module.
762         * modules/sethostname-tests: New file.  A test program
763         for the sethostname module.
764         * tests/test-sethostname.c: Likewise.
765
766 2011-12-03  Bruno Haible  <bruno@clisp.org>
767
768         Tweak last commit.
769         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
770         Fix preprocessor directives indentation. Fix typos.
771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
772         * modules/unistd (Makefile): Likewise.
773
774 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
775
776         Integrate the sethostname module into unistd.
777         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
778         into the unistd.h header.
779         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
780         preprocessor directives.
781         * modules/unistd: Setup the Makefile substitutions of the
782         SETHOSTNAME preprocessor directives.
783
784 2011-12-03  Bruno Haible  <bruno@clisp.org>
785
786         Tweak last commit.
787         * lib/sethostname.c: Don't include <string.h>.
788         (sethostname): No need to copy the argument string to the stack. Don't
789         call clearerr. Preserve errno when fprintf failed.
790         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
791         Don't invoke AC_REPLACE_FUNCS.
792         * modules/sethostname (Link): Remove empty section.
793         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
794         failure problem.
795
796 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
797
798         New module 'sethostname'.
799         * lib/sethostname.c (sethostname): New file.  Provide sethostname
800         for systems that lack it.
801         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
802         sethostname declaration and function.
803         * modules/sethostname: New file.  Define the sethostname module.
804
805 2011-12-03  Bruno Haible  <bruno@clisp.org>
806
807         Tweak last commit.
808         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
809
810 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
811
812         Split the HOST_NAME_MAX detection into a separate m4 macro.
813         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
814         macro so it can be used by the pending sethostname module.
815
816 2011-12-03  Bruno Haible  <bruno@clisp.org>
817
818         Fix module descriptions syntax.
819         * modules/argv-iter (License): Fix syntax.
820         * modules/di-set (License): Likewise.
821         * modules/ino-map (License): Likewise.
822         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
823
824 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
825
826         stdalign: port to Clang 3.0
827         Problem reported by Simon Josefsson in
828         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
829         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
830         which has <stdalign.h> but which does not define alignof.
831         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
832
833 2011-12-01  Eric Blake  <eblake@redhat.com>
834
835         mktempd: silence dd usage
836         * build-aux/mktempd (rand_bytes): Silence dd.
837
838 2011-11-30  Simon Josefsson  <simon@josefsson.org>
839
840         manywarnings: Don't mention gcc version in docstring.
841         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
842         Jim Meyering <meyering@redhat.com>.
843
844 2011-11-30  Jim Meyering  <meyering@redhat.com>
845
846         hash: mark a few floating point constants with "f" suffix
847         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
848         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
849         floating point constants with "f", since they're destined to be
850         saved/used as "float"s.
851
852 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
853
854         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
855         * tests/test-float.c (test_long_double): Correct and re-enable the
856         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
857
858 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
859
860         Avoid subtracting two pointers that don't point into the same block.
861         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
862         only pointers into the same memory block are subtracted. We cannot
863         assume that sizeof (ptrdiff_t) == sizeof (void *).
864
865 2011-11-29  Eric Blake  <eblake@redhat.com>
866
867         maint.mk: add syntax check for use of compare from init.sh
868         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
869         moved here from coreutils.
870
871         manywarnings: drop -Wunsuffixed-float-constants
872         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
873         '1.0D', which is the only way to silence this warning for 'double'.
874
875 2011-11-29  Jim Meyering  <meyering@redhat.com>
876
877         hash: mark compute_bucket_size with the pure attribute
878         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
879
880         quotearg, propername: correct pragma guard expression
881         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
882         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
883
884 2011-11-28  Jim Meyering  <meyering@redhat.com>
885
886         propername: do not mark proper_name with the const attribute
887         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
888         since it examines data pointed to by its parameter.
889         * lib/propername.c (proper_name): Instead, add a pragma to suppress
890         the suggestion from -Wsuggest-attribute=const.
891
892         propername: mark one more function as const
893         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
894
895 2011-11-27  Jim Meyering  <meyering@redhat.com>
896
897         mark functions with const and pure attributes
898
899         Mark functions per suggestions from gcc-4.6 when using these options:
900         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
901         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
902         Follow these guidelines: when possible, apply the attribute to
903         an extern declaration, not to its definition.  Apply it to the
904         definition only when the definition is static.
905         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
906         * lib/argv-iter.h (argv_iter_n_args): Likewise.
907         * lib/base64.h (isbase64): Likewise.
908         * lib/basename-lgpl.c (last_component, base_len): Likewise.
909         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
910         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
911         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
912         (c_tolower, c_toupper): Likewise.
913         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
914         * lib/chdir-long.c (find_non_slash): Likewise.
915         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
916         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
917         * lib/file-type.h (file_type): Likewise.
918         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
919         * lib/filevercmp.c (verrevcmp): Likewise.
920         * lib/freadahead.h (freadahead): Likewise.
921         * lib/fts.c (fts_maxarglen): Likewise.
922         * lib/hash-pjw.h (hash_pjw): Likewise.
923         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
924         * lib/hash.c (is_prime, next_prime): Likewise.
925         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
926         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
927         (hash_table_ok, hash_get_first, hash_string): Likewise.
928         (compute_bucket_size): Likewise.
929         * lib/i-ring.h (i_ring_empty): Likewise.
930         * lib/isnan.c (isnanl): Likewise.
931         * lib/math.h (isnanl, rpl_isnanl): Likewise.
932         * lib/memcasecmp.h (memcasecmp): Likewise.
933         * lib/memchr2.h (memchr2): Likewise.
934         * lib/memcmp2.h (memcmp2): Likewise.
935         * lib/parse-datetime.y (lookup_zone): Likewise.
936         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
937         [!WINDOWS_SOCKETS]: Likewise.
938         * lib/strnlen1.h (strnlen1): Likewise.
939         * lib/uniwidth.in.h (uc_width): Likewise.
940         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
941         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
942         (quoting_options_from_style): Add a comment.
943         * lib/propername.h (proper_name): Add a comment.
944
945 2011-11-27  Bruno Haible  <bruno@clisp.org>
946
947         Remove unused macros from !_LIBC code in glibc-borrowed files.
948         * lib/fnmatch.c (STRCOLL): Remove macro.
949         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
950         * lib/glob.c (__stat, __readdir64): Remove macros.
951         * lib/tempname.c (__open64, __xstat64): Remove macros.
952         Suggested by Paul Eggert.
953
954 2011-11-27  Bruno Haible  <bruno@clisp.org>
955
956         getcwd: Fix link error on MSVC 9.
957         * modules/getcwd (Depends-on): Add readdir, rewinddir.
958
959 2011-11-27  Bruno Haible  <bruno@clisp.org>
960
961         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
962         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
963         HAVE_OPENDIR is 0.
964         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
965         HAVE_CLOSEDIR is 0.
966         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
967         is 0.
968         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
969
970 2011-11-27  Bruno Haible  <bruno@clisp.org>
971
972         getcwd: Fix bug from 2011-08-17.
973         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
974         platforms that need it.
975         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
976         code of 4 to be a failure, not a success. This ensures that
977         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
978
979 2011-11-27  Bruno Haible  <bruno@clisp.org>
980
981         binary-io tests: Avoid test failure on mingw when libtool is used.
982         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
983         Don't verify the size of t-bin-out1.tmp here.
984         * tests/test-binary-io.sh: Verify it here.
985         Reported by Simon Josefsson.
986
987 2011-11-26  Bruno Haible  <bruno@clisp.org>
988
989         Fix conflict between two instantiations of module 'unistd'.
990         * gnulib-tool (func_emit_autoconf_snippet): Substitute
991         ${include_guard_prefix} also in the autoconf snippet.
992         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
994         GNULIB_UNISTD_H_GETOPT.
995         * modules/getopt-posix (configure.ac): Set the
996         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
997         * modules/getopt-gnu (configure.ac): Likewise.
998         * modules/unistd (Makefile.am): Change the substitution value of
999         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
1000         Reported by Simon Josefsson.
1001
1002 2011-11-25  Bruno Haible  <bruno@clisp.org>
1003
1004         pagealign_alloc: Doc and comments.
1005         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
1006         module.
1007         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
1008
1009 2011-11-25  Jim Meyering  <meyering@redhat.com>
1010
1011         test-update-copyright.sh: avoid false-positive failure
1012         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
1013         around false positive failure on Cygwin/Windows.  The latter was
1014         matching erroneously-created files with names like
1015         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
1016
1017 2011-11-25  Simon Josefsson  <simon@josefsson.org>
1018
1019         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
1020         * m4/valgrind-tests.m4: Check that the parameters that will be
1021         used works, not just a subset of them.  Reported by Bruno Haible
1022         <bruno@clisp.org>.
1023
1024 2011-11-24  Jim Meyering  <meyering@redhat.com>
1025
1026         test-stdalign.c: comment out long double tests
1027         * tests/test-stdalign.c: Don't try to reduce alignment of long double
1028         variables.  That provokes errors like this from gcc-4.7.0 20111124:
1029         error: '_Alignas' specifiers cannot reduce alignment of \
1030         'static_longdouble_alignas'.
1031
1032 2011-11-22  Jim Meyering  <meyering@redhat.com>
1033
1034         init.sh: make "compare /dev/null FILE" output more readable
1035         * tests/init.sh (compare_): Document the preferred order of arguments.
1036         (emit_diff_u_header_): New function.
1037         (compare_dev_null_): Emit a simulated diff, rather than just the
1038         contents of the unexpected file.  Suggestion from Bruno Haible.
1039
1040 2011-11-21  Jim Meyering  <meyering@redhat.com>
1041             Eric Blake  <eblake@redhat.com>
1042
1043         init.sh: work around OSF/1 5.1's mishandling of /dev/null
1044         * tests/init.sh: Make our compare function slightly more portable.
1045         Reported by Bruno Haible in
1046         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
1047
1048 2011-11-21  Simon Josefsson  <simon@josefsson.org>
1049
1050         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
1051         before using it, in code that ends up in config.h.
1052
1053 2011-11-20  Bruno Haible  <bruno@clisp.org>
1054
1055         getcwd: Work around getcwd bug on AIX 5..7.
1056         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
1057         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
1058         Use a different value for gl_cv_func_getcwd_path_max. Move the
1059         definition of HAVE_PARTLY_WORKING_GETCWD from here...
1060         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
1061         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
1062         Define HAVE_MINIMALLY_WORKING_GETCWD.
1063         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
1064         where it is not even minimally working, that is, on AIX.
1065         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
1066         m4/getcwd-path-max.m4.
1067         (main): Update exit code computation.
1068         * doc/posix-functions/getcwd.texi: Mention list of platforms where
1069         getcwd does not handle long file names.
1070
1071 2011-11-20  Bruno Haible  <bruno@clisp.org>
1072
1073         getcwd: Fix bug from 2009-09-10.
1074         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
1075         like "no".
1076
1077 2011-11-20  Simon Josefsson  <simon@josefsson.org>
1078
1079         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
1080
1081 2011-11-20  Bruno Haible  <bruno@clisp.org>
1082
1083         fma tests: Avoid shadowing local variables.
1084         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
1085         expected.
1086
1087 2011-11-20  Bruno Haible  <bruno@clisp.org>
1088
1089         copysignf tests: Fix.
1090         * tests/test-copysignf.c: Fix signature check.
1091
1092 2011-11-20  Bruno Haible  <bruno@clisp.org>
1093
1094         fma: Remove unused code.
1095         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
1096         unused macros.
1097
1098 2011-11-20  Bruno Haible  <bruno@clisp.org>
1099
1100         sethostname: Fix doc about AIX.
1101         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
1102         sethostname; it has it.
1103
1104         sethostname: Mention more portability problems.
1105         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
1106         problem.
1107         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1108
1109 2011-11-19  Bruno Haible  <bruno@clisp.org>
1110
1111         Depend on module fcntl-h when AT_FDCWD is used.
1112         * modules/utimens (Depends-on): Add fcntl-h.
1113         * modules/areadlinkat (Depends-on): Likewise.
1114         * modules/areadlinkat-with-size (Depends-on): Likewise.
1115         * modules/faccessat (Depends-on): Likewise.
1116         * modules/fchmodat (Depends-on): Likewise.
1117         * modules/fchownat (Depends-on): Likewise.
1118         * modules/getcwd (Depends-on): Likewise.
1119         * modules/mkdirat (Depends-on): Likewise.
1120         * modules/mkfifoat (Depends-on): Likewise.
1121         * modules/readlinkat (Depends-on): Likewise.
1122         * modules/symlinkat (Depends-on): Likewise.
1123         * modules/dup2-tests (Depends-on): Likewise.
1124         * modules/fdutimensat-tests (Depends-on): Likewise.
1125         * modules/futimens-tests (Depends-on): Likewise.
1126
1127 2011-11-19  Bruno Haible  <bruno@clisp.org>
1128
1129         euidaccess: Update a comment.
1130         * lib/euidaccess.c: Update comment about platforms with faccessat.
1131
1132 2011-11-19  Bruno Haible  <bruno@clisp.org>
1133
1134         openat: Fix file list.
1135         * modules/openat (Files): Remove lib/at-func.c.
1136
1137 2011-11-19  Bruno Haible  <bruno@clisp.org>
1138
1139         fstatat: Simplify.
1140         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
1141         gnulib should define rpl_fstatat, there is a
1142         "#define fstatat rpl_fstatat" in <sys/stat.h>.
1143
1144 2011-11-19  Bruno Haible  <bruno@clisp.org>
1145
1146         Ensure 'inline' can be used in tests/test-utimens-common.h.
1147         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
1148         * modules/futimens-tests (configure.ac): Likewise.
1149         * modules/utimens-tests (configure.ac): Likewise.
1150         * modules/utimensat-tests (configure.ac): Likewise.
1151
1152 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1153
1154         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
1155         not hash_insert0.
1156         (hash_insert_if_absent): Doc fix.
1157
1158 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1159
1160         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
1161
1162 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1163
1164         test-getcwd: disambiguate exit status
1165         * tests/test-getcwd.c (test_long_name): Return 0..7.
1166         (main): Exit with an unambiguous exit status.  The old
1167         code yielded a mysterious mixture of two failure codes.
1168
1169         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
1170         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
1171         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
1172         rpl_fstatat or fstatat.  This should fix the other problem
1173         reported by Kai Habel in
1174         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1175         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
1176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
1177         and I reproduced it on a Solaris 8 host we still have in production.
1178
1179 2011-11-18  Jim Meyering  <meyering@redhat.com>
1180
1181         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
1182         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
1183         Add a sentence to the comment.
1184         (hash_insert0): New function that simply calls hash_insert_if_absent.
1185         * lib/hash.h (hash_insert_if_absent): Declare it.
1186         (hash_insert0): Add deprecation attribute.
1187         (_GL_ATTRIBUTE_DEPRECATED): Define.
1188         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
1189         not hash_insert0.
1190         * NEWS: Mention it, even though it's not really an incompatible change.
1191
1192 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
1193
1194         openat: avoid compilation failure due to lack of <errno.h> inclusion
1195         * lib/openat.c: Include <errno.h>.
1196
1197 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1198
1199         * modules/getcwd (Depends-on): Add fdopendir.
1200         This fixes one of the two problems reported by Kai Habel in
1201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1202
1203         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
1204         stdalign problem reported by Ian Beckwith in
1205         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
1206         * modules/crypto/gc-arcfour (Depends-on):
1207         Depend conditionally on crypto/arcfour.
1208         * modules/crypto/gc-arctwo (Depends-on):
1209         Depend conditionally on crypto/arctwo.
1210         * modules/crypto/gc-des (Depends-on):
1211         Depend conditionally on crypto/des.
1212         * modules/crypto/gc-hmac-md5 (Depends-on):
1213         Depend conditionally on crypto/hmac-md5.
1214         * modules/crypto/gc-hmac-sha1 (Depends-on):
1215         Depend conditionally on crypto/hmac-sha1.
1216         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
1217         * modules/crypto/gc-md4 (Depends-on):
1218         Depend conditionally on crypto/md4.
1219         * modules/crypto/gc-md5 (Depends-on):
1220         Depend conditionally on crypto/md5.
1221         * modules/crypto/gc-rijndael (Depends-on):
1222         Depend conditionally on crypto/rijndael.
1223         * modules/crypto/gc-sha1 (Depends-on):
1224         Depend conditionally on crypto/sha1.
1225         * modules/crypto/gc-arcfour:
1226         * modules/crypto/gc-arctwo:
1227         * modules/crypto/gc-des:
1228         * modules/crypto/gc-hmac-md5:
1229         * modules/crypto/gc-hmac-sha1:
1230         * modules/crypto/gc-md2:
1231         * modules/crypto/gc-md4:
1232         * modules/crypto/gc-md5:
1233         * modules/crypto/gc-rijndael:
1234         * modules/crypto/gc-sha1:
1235         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
1236         now that the conditional dependencies do the work for us.
1237
1238 2011-11-17  Jim Meyering  <meyering@redhat.com>
1239
1240         tests: factor st_ctime-comparison out of two headers
1241         * tests/test-utimens-common.h (ctime_compare): Define.
1242         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
1243         * tests/test-lutimens.h (test_lutimens): Likewise.
1244         * tests/test-utimens.h (test_utimens): Likewise.
1245
1246         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
1247         Invoke the test program via an init.sh-using wrapper.
1248         * tests/test-getcwd.sh: New file.
1249         * modules/getcwd-tests (Files): Add it.
1250         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
1251
1252 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
1253
1254         gitlog-to-changelog: support multi-author commits.
1255         The FSF cares about keeping track of all authors of patches to its
1256         projects, but Git doesn't provide obvious support for multi-author
1257         changesets. Consensus seems to be forming around the use of extra
1258         Signed-off-by inspired lines in the log message formatted as
1259         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
1260         multi-author commits between version control systems.
1261         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
1262         log message and output in standard ChangeLog multi-author format.
1263         Reported by Peter Rosin <peda@lysator.liu.se>
1264
1265 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
1266             Bruno Haible  <bruno@clisp.org>
1267
1268         Fix some modules' file list.
1269         * modules/fstatat (Files): Add m4/lstat.m4.
1270         * modules/openat (Files): Likewise.
1271         * modules/unlinkat (Files): Likewise.
1272
1273 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
1274
1275         maint.mk: fix tight-scope.mk generation in VPATH builds.
1276         * top/maint.mk (tight-scope.mk): Make sure to prefix file
1277         reference with $(srcdir) so that the file is found correctly even
1278         when running `make syntax-check' in a VPATH build.
1279
1280 2011-11-13  Bruno Haible  <bruno@clisp.org>
1281             Jim Meyering  <meyering@redhat.com>
1282
1283         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
1284         * tests/init.sh (compare): Remove "No differences encountered" or
1285         synonymous output from the 'diff' program.
1286
1287 2011-11-13  Bruno Haible  <bruno@clisp.org>
1288
1289         Makefile: Tweak indentation.
1290         * Makefile: Use tab as first character in every line that contains rule
1291         commands.
1292
1293 2011-11-13  Bruno Haible  <bruno@clisp.org>
1294
1295         Syntax check for copyright statements.
1296         * check-copyright: New file.
1297         * Makefile (sc_check_copyright): New rule.
1298
1299 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1300
1301         * build-aux/git-version-gen: Add --prefix to configure the tag
1302         match string.
1303
1304 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1305
1306         * build-aux/git-version-gen: Add --help and --version.
1307
1308 2011-11-12  Jim Meyering  <meyering@redhat.com>
1309
1310         revamp the other test-exclude?.sh scripts to use init.sh, too
1311         * tests/test-exclude1.sh: Use init.sh.
1312         * tests/test-exclude2.sh: Likewise.
1313         * tests/test-exclude3.sh: Likewise.
1314         * tests/test-exclude4.sh: Likewise.
1315         * tests/test-exclude5.sh: Likewise.
1316         * tests/test-exclude6.sh: Likewise.
1317         * tests/test-exclude7.sh: Likewise.
1318         * tests/test-exclude8.sh: Likewise.
1319         * modules/exclude-tests (Files): List init.sh.
1320
1321         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
1322         These shell scripts ignored failure of the binary test-exclude,
1323         so making the latter return 77 didn't cause them to be skipped.
1324         * tests/test-exclude5.sh: Exit with test-exclude's error status
1325         when that program fails.  Revamp to use init.sh.
1326         * tests/test-exclude2.sh: Likewise.
1327
1328         test-exclude: fix a typo
1329         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
1330
1331 2011-11-11  Bruno Haible  <bruno@clisp.org>
1332
1333         obstack: Fix compilation error on MSVC 9.
1334         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
1335
1336 2011-11-11  Jim Meyering  <meyering@redhat.com>
1337
1338         test-exclude: skip tests rather than failing on deficient systems
1339         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
1340         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
1341         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
1342         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
1343
1344 2011-11-10  Bruno Haible  <bruno@clisp.org>
1345
1346         ptsname_r test: Avoid gcc warning on glibc systems.
1347         * tests/test-ptsname_r.c (null_ptr): New function.
1348         (test_errors): Use it.
1349
1350 2011-11-10  Bruno Haible  <bruno@clisp.org>
1351
1352         ptsname_r: Avoid compilation error on OSF/1 5.1.
1353         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
1354         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
1355         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
1356         function is not declared or incompatibly declared.
1357         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
1358         * modules/ptsname_r (Depends-on, configure.ac): Update.
1359         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
1360
1361 2011-11-10  Bruno Haible  <bruno@clisp.org>
1362
1363         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
1364         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
1365         When cross-compiling, guess yes on all platforms except AIX.
1366         Reported by Ludovic Courtès <ludo@gnu.org>.
1367
1368 2011-11-09  Bruno Haible  <bruno@clisp.org>
1369
1370         ptsname_r tests: Fix bugs.
1371         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
1372         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
1373
1374 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1375
1376         fstatat: work with cross-compilation
1377         Problem reported by Ludovic Courtès in
1378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
1379         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
1380         "cross-compiling" and assume the bug is present.  Replace
1381         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
1382         an inverted sense, to be more conservative about our assumptions.
1383         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
1384
1385 2011-11-09  Bruno Haible  <bruno@clisp.org>
1386
1387         Improve MODULES.html output.
1388         * modules/mkfifoat (Description): Use the word "function".
1389         * modules/readlinkat (Description): Likewise.
1390         * modules/symlinkat (Description): Likewise.
1391
1392 2011-11-09  Eric Blake  <eblake@redhat.com>
1393
1394         ptsname_r-tests: new test module
1395         * modules/ptsname_r-tests: New module.
1396         * tests/test-ptsname_r.c: New file.
1397
1398         ptsname_r: new module
1399         * modules/ptsname_r: New module.
1400         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
1401         * lib/ptsname.c (__ptsname_r): Split...
1402         * lib/ptsname_r.c: ...into new file.
1403         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1404         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
1405         * modules/stdlib (Makefile.am): Substitute witnesses.
1406         * lib/stdlib.in.h (ptsname_r): Declare it.
1407         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
1408         * MODULES.html.sh (Misc): Likewise.
1409         * modules/ptsname (Depends-on): Alter dependency.
1410         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
1411
1412 2011-11-09  Jim Meyering  <meyering@redhat.com>
1413
1414         announce-gen: be more concise when there's only one URL+tarball
1415         * build-aux/announce-gen (get_tool_versions): When you distribute
1416         only one type of tarball, combine the first two "Here are..."
1417         sections and make the key-checking grammar independent of
1418         how many tarballs there are.
1419
1420 2011-11-09  Eric Blake  <eblake@redhat.com>
1421
1422         openpty: provide a stub on mingw
1423         * lib/pty.in.h (includes): Provide forward declarations.
1424         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
1425
1426         raise: fix mingw handling of SIGPIPE
1427         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
1428
1429 2011-11-08  Bruno Haible  <bruno@clisp.org>
1430
1431         More conditional dependencies.
1432         * modules/faccessat (Depends-on): Add conditions.
1433         * modules/fchmodat (Depends-on): Likewise.
1434         * modules/fchownat (Depends-on): Likewise.
1435         * modules/fstatat (Depends-on): Likewise.
1436         * modules/mkfifoat (Depends-on): Likewise.
1437         * modules/readlinkat (Depends-on): Likewise.
1438         * modules/symlinkat (Depends-on): Likewise.
1439         * modules/unlinkat (Depends-on): Likewise.
1440         * modules/utimensat (Depends-on): Likewise.
1441         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
1442         * modules/linkat (Depends-on): Refine the conditions.
1443         * modules/renameat (Depends-on): Likewise.
1444
1445 2011-11-08  Bruno Haible  <bruno@clisp.org>
1446
1447         faccessat: Move AC_LIBOBJ invocation to module description.
1448         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
1449         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
1450         invocation from here...
1451         * modules/faccessat (configure.ac): ... to here. Invoke
1452         gl_PREREQ_FACCESSAT.
1453
1454 2011-11-08  Bruno Haible  <bruno@clisp.org>
1455
1456         faccessat: Simplify autoconf macro.
1457         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
1458         gl_FUNC_EUIDACCESS.
1459
1460 2011-11-08  Bruno Haible  <bruno@clisp.org>
1461
1462         renameat: Fix dependencies.
1463         * modules/renameat (Depends-on): Add stdbool.
1464
1465 2011-11-08  Bruno Haible  <bruno@clisp.org>
1466
1467         mkfifoat: Fix module description.
1468         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
1469         not gl_UNISTD_MODULE_INDICATOR.
1470
1471 2011-11-08  Bruno Haible  <bruno@clisp.org>
1472
1473         fstatat: Remove unused dependency.
1474         * modules/fstatat (Depends-on): Remove fstat.
1475
1476 2011-11-08  Simon Josefsson  <simon@josefsson.org>
1477
1478         GNUmakefile: behave when Makefile is missing.
1479         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
1480
1481 2011-11-08  Bruno Haible  <bruno@clisp.org>
1482
1483         openat: Conditionalize dependencies.
1484         * lib/openat.c: Reduce the scope of some #includes.
1485         * modules/openat (Depends-on): Add conditions.
1486
1487 2011-11-07  Jim Meyering  <meyering@redhat.com>
1488
1489         maint.mk: extract GPG key ID without using a temporary file
1490         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
1491         without using a temporary file.  Based on a suggestion from Werner Koch
1492         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
1493
1494 2011-11-07  Eric Blake  <eblake@redhat.com>
1495
1496         grantpt: fix typo
1497         * lib/stdlib.in.h (grantpt): Check correct function.
1498
1499         maint.mk: silence new syntax check
1500         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
1501
1502 2011-11-06  Bruno Haible  <bruno@clisp.org>
1503
1504         Doc about floating-point and math API.
1505         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
1506         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
1507
1508 2011-11-06  Bruno Haible  <bruno@clisp.org>
1509
1510         stdalign tests: Skip the test when compiled by Sun C.
1511         * tests/test-stdalign.c (main): Skip the test on Sun C.
1512
1513 2011-11-06  Bruno Haible  <bruno@clisp.org>
1514
1515         ansi-c++-opt: Complete the 2011-06-05 change.
1516         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
1517         does not support namespaces, set the variable to "no", not to ":".
1518
1519 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1520
1521         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
1522
1523 2011-11-06  Bruno Haible  <bruno@clisp.org>
1524
1525         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
1526         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
1527         (minus_zerol) [HP-UX]: New macro.
1528         (unary_minus) [HP-UX]: New function.
1529         (copysignl) [HP-UX]: Use unary_minus function.
1530
1531 2011-11-06  Bruno Haible  <bruno@clisp.org>
1532
1533         ldexp, ldexpf, ldexpl: Enhance tests.
1534         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
1535         and tests/test-ldexpl.c.
1536         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
1537         LDEXP, MIN_EXP, MAX_EXP): New macros.
1538         Include test-ldexp.h.
1539         (main): Just call test_function.
1540         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
1541         infinity.h, nan.h.
1542         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1543         MAX_EXP): New macros.
1544         Include test-ldexp.h.
1545         (x, y): Remove variables.
1546         (main): Just call test_function.
1547         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
1548         infinity.h, nan.h.
1549         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1550         MAX_EXP): New macros.
1551         Include test-ldexp.h.
1552         (x, y): Remove variables.
1553         (main): Just call test_function.
1554         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
1555         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
1556         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1557         (Depends-on): Add isnand-nolibm, signbit, float.
1558         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
1559         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1560         (Depends-on): Add isnanf-nolibm, signbit, float.
1561
1562 2011-11-06  Bruno Haible  <bruno@clisp.org>
1563
1564         math tests: Cosmetics.
1565         * tests/test-math-c++.cc: Reorder declarations.
1566
1567 2011-11-05  Bruno Haible  <bruno@clisp.org>
1568
1569         fma*: Simplify test.
1570         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
1571         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
1572
1573         Tests for module 'fmal'.
1574         * modules/fmal-tests: New file.
1575         * tests/test-fmal1.c: New file.
1576         * tests/test-fmal2.c: New file.
1577
1578         New module 'fmal'.
1579         * lib/math.in.h (fmal): New declaration.
1580         * lib/fmal.c: New file.
1581         * m4/fmal.m4: New file.
1582         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
1583         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
1584         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
1585         REPLACE_FMAL.
1586         * modules/fmal: New file.
1587         * doc/posix-functions/fmal.texi: Mention the new module and the various
1588         bugs.
1589
1590         Tests for module 'fmaf'.
1591         * modules/fmaf-tests: New file.
1592         * tests/test-fmaf1.c: New file.
1593         * tests/test-fmaf2.c: New file.
1594
1595         New module 'fmaf'.
1596         * lib/math.in.h (fmaf): New declaration.
1597         * lib/fmaf.c: New file.
1598         * m4/fmaf.m4: New file.
1599         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
1600         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
1601         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
1602         REPLACE_FMAF.
1603         * modules/fmaf: New file.
1604         * doc/posix-functions/fmaf.texi: Mention the new module and the various
1605         bugs.
1606
1607         Tests for module 'fma'.
1608         * modules/fma-tests: New file.
1609         * tests/test-fma1.c: New file.
1610         * tests/test-fma1.h: New file.
1611         * tests/test-fma2.c: New file.
1612         * tests/test-fma2.h: New file.
1613
1614         New module 'fma'.
1615         * lib/math.in.h (fma): New declaration.
1616         * lib/fma.c: New file.
1617         * m4/fma.m4: New file.
1618         * m4/fegetround.m4: New file.
1619         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
1620         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
1621         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
1622         REPLACE_FMA.
1623         * modules/fma: New file.
1624         * doc/posix-functions/fma.texi: Mention the new module and the various
1625         bugs.
1626
1627         Extend gl_MATHFUNC.
1628         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
1629         Support 'void' as argument type.
1630         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
1631
1632 2011-11-05  Jim Meyering  <meyering@redhat.com>
1633
1634         maint.mk: also prohibit inclusion of dirent.h without use
1635         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1636
1637 2011-11-05  Bruno Haible  <bruno@clisp.org>
1638
1639         ldexpl tests: Avoid test failure on MSVC 9.
1640         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
1641         value. Needed in order to enforce the conversion from a value greater
1642         than LDBL_MAX to Infinity.
1643
1644 2011-11-05  Bruno Haible  <bruno@clisp.org>
1645
1646         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1647         * modules/at-internal: New file, extracted from modules/openat.
1648         * modules/openat-h: New file.
1649         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1650         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1651         * modules/openat (Description): Add reference to POSIX function.
1652         (Files): Remove lib/openat.h, lib/openat-proc.c.
1653         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1654         intprops, unistd.
1655         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1656         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1657         gl_FCNTL_MODULE_INDICATOR.
1658         (Include): Remove unistd.h, openat.h.
1659         * modules/areadlinkat (Files): Add lib/at-func.c.
1660         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1661         openat-die, openat-h, save-cwd.
1662         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1663         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1664         openat-die, openat-h, save-cwd, unistd.
1665         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1666         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1667         openat-h, save-cwd. Remove fcntl-h, openat.
1668         * modules/fchmodat (Files): Remove lib/openat.h.
1669         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1670         openat, stdbool, unistd.
1671         * modules/fchownat (Files): Remove lib/openat.h.
1672         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1673         openat, stdbool, sys_stat.
1674         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1675         lib/openat-proc.c.
1676         (Depends-on): Add at-internal.
1677         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1678         * modules/fstatat (Files): Remove lib/openat.h.
1679         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1680         stdbool, unistd.
1681         * modules/fts (Depends-on): Add openat-h.
1682         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1683         openat.
1684         * modules/mkdirat (Files): Remove lib/openat.h.
1685         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1686         openat, stdbool, sys_stat.
1687         * modules/mkfifoat (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/openat-die (Depends-on): Add openat-h. Remove openat.
1691         * modules/readlinkat (Files): Add lib/at-func.c.
1692         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1693         openat-h, save-cwd. Remove fcntl-h, openat.
1694         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
1695         openat.
1696         * modules/selinux-at (Files): Add lib/at-func.c.
1697         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1698         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
1699         * modules/symlinkat (Files): Add lib/at-func.c.
1700         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1701         openat-h, save-cwd. Remove fcntl-h, openat.
1702         * modules/unlinkat (Files): Remove lib/openat.h.
1703         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1704         stdbool.
1705         * modules/utimensat (Files): Add lib/at-func.c.
1706         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1707         openat-die, openat-h, save-cwd.
1708         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1709         * modules/fdutimensat-tests (Depends-on): Add openat.
1710         * modules/fstatat-tests (Depends-on): Add openat-h.
1711         * modules/readlinkat-tests (Depends-on): Add openat.
1712         * modules/symlinkat-tests (Depends-on): Add openat.
1713
1714 2011-11-05  Bruno Haible  <bruno@clisp.org>
1715
1716         openat: Include <stdbool.h>.
1717         * lib/openat.c: Include <stdbool.h>.
1718
1719 2011-11-04  Bruno Haible  <bruno@clisp.org>
1720
1721         fchownat, renameat, unlinkat: Fix dependencies.
1722         * modules/fchownat (Depends-on): Add fstatat.
1723         * modules/renameat (Depends-on): Likewise.
1724         * modules/unlinkat (Depends-on): Likewise.
1725
1726 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1727
1728         openat: remove direct dependency on dirent
1729         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1730         and hasn't been needed ever since fdopendir was split into its own
1731         module on 2009-08-31.
1732         * modules/openat (Depends-on): Remove dirent.
1733
1734 2011-11-04  Bruno Haible  <bruno@clisp.org>
1735
1736         renameat: Optimize code size.
1737         * modules/renameat (configure.ac): Don't compile at-func2.c if
1738         REPLACE_RENAMEAT is 1.
1739
1740 2011-11-04  Bruno Haible  <bruno@clisp.org>
1741
1742         openat tests: Fix file list.
1743         * modules/openat-tests (Files): Add tests/test-open.h.
1744
1745 2011-11-04  Bruno Haible  <bruno@clisp.org>
1746
1747         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
1748         * modules/fchmodat (Depends-on): Add openat-die.
1749         * modules/fchownat (Depends-on): Likewise.
1750         * modules/linkat (Depends-on): Likewise.
1751         * modules/renameat (Depends-on): Likewise.
1752         * modules/openat (Depends-on): Add dirent.
1753
1754 2011-11-04  Jim Meyering  <meyering@redhat.com>
1755
1756         at-func*.c: fix comments
1757         * lib/at-func2.c: Correct/improve first-line comment.
1758         * lib/at-func.c: Correct grammar in first-line comment.
1759
1760 2011-11-04  Bruno Haible  <bruno@clisp.org>
1761
1762         New module 'mkdirat', split off from module 'openat'.
1763         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1764         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1765         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1766         * modules/mkdirat: New file, extracted from modules/openat.
1767         * modules/openat (Files): Remove lib/mkdirat.c.
1768         (Depends-on): Remove mkdir.
1769         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1770         (Include): Remove <sys/stat.h>.
1771         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1772         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1773         tests/test-mkdir.h.
1774         (Depends-on): Remove ignore-value.
1775         (Makefile.am): Remove rules for test-mkdirat.
1776         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1777         of module 'openat'.
1778         * NEWS: Mention the change.
1779
1780 2011-11-04  Bruno Haible  <bruno@clisp.org>
1781
1782         closedir: Avoid warning on mingw.
1783         * lib/closedir.c: Include <unistd.h>.
1784
1785 2011-11-04  Bruno Haible  <bruno@clisp.org>
1786
1787         New module 'fstatat', split off from module 'openat'.
1788         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1789         defined.
1790         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1791         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1792         gl_FUNC_FSTATAT.
1793         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
1794         * modules/fstatat: New file, extracted from modules/openat.
1795         * modules/openat (Files): Remove lib/fstatat.c.
1796         (Depends-on): Remove lstat.
1797         (configure.ac): Remove AC_LIBOBJ of fstatat.
1798         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
1799         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
1800         tests/test-lstat.h, tests/test-stat.h.
1801         (Depends-on): Remove getcwd-lgpl.
1802         (Makefile.am): Remove rules for test-fstatat.
1803         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
1804         of module 'openat'.
1805         * NEWS: Mention the change.
1806         * modules/getcwd (Depends-on): Add fstatat.
1807         * modules/linkat (Depends-on): Likewise.
1808         * modules/mkfifoat-tests (Depends-on): Likewise.
1809         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1810
1811 2011-11-03  Bruno Haible  <bruno@clisp.org>
1812
1813         New module 'unlinkat', split off from module 'openat'.
1814         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1815         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1816         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1817         * modules/unlinkat: New file, extracted from modules/openat. Correct
1818         the dependency conditions.
1819         * modules/openat (Files): Remove lib/unlinkat.c.
1820         (Depends-on): Remove rmdir, unlink.
1821         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1822         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1823         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1824         tests/test-rmdir.h, tests/test-unlink.h.
1825         (Depends-on): Remove unlinkdir.
1826         (Makefile.am): Remove rules for test-unlinkat.
1827         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1828         of module 'openat'.
1829         * NEWS: Mention the change.
1830         * modules/linkat-tests (Depends-on): Add unlinkat.
1831         * modules/mkfifoat-tests (Depends-on): Likewise.
1832         * modules/readlinkat-tests (Depends-on): Likewise.
1833
1834 2011-11-02  Bruno Haible  <bruno@clisp.org>
1835
1836         New module 'fchmodat', split off from module 'openat'.
1837         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1838         defined.
1839         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1840         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1841         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1842         * modules/fchmodat: New file, extracted from modules/openat.
1843         * modules/openat (Files): Remove lib/fchmodat.c.
1844         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1845         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1846         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1847         (Makefile.am): Remove rules for test-fchmodat.
1848         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1849         of module 'openat'.
1850         * NEWS: Mention the change.
1851
1852 2011-11-02  Jim Meyering  <meyering@redhat.com>
1853
1854         putenv: indent #definition of "environ" to placate cppi
1855         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1856
1857         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1858         Git logs are often treated as immutable, because editing them
1859         changes the SHA1 checksums of all descendants.  Thus, errors in
1860         git logs tend to stay there forever.  However, when we generate
1861         a ChangeLog file -- typically for distribution -- from that git log,
1862         we can actually make corrections in the generated file.  The key
1863         lies in recording in machine-readable/applicable form the desired
1864         corrections.  See --help for description and an example.
1865         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1866         (usage): Describe it; alphabetize option descriptions.
1867         (main): Honor the new option, carefully.
1868
1869 2011-11-01  Jim Meyering  <meyering@redhat.com>
1870
1871         gitlog-to-changelog: avoid an infloop
1872         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1873         that ends up being empty.
1874
1875 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1876
1877         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1878         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1879         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1880         contains (possibly-quoted) backslashes.  This should avoid
1881         all-too-common shell bugs if COMPLICATED contains backslashes in
1882         the "wrong" places.  Reported by David Evans in
1883         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1884         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1885         because we want ASCII ranges.  Is there some reason we don't use
1886         the C locale everywhere in this script?
1887         (func_module, top level): Avoid unwanted pathname expansion when
1888         $repo_url_prefix or $repo_url_suffix_repl contain shell
1889         metacharacters like '?' and '*'.
1890
1891 2011-11-01  Bruno Haible  <bruno@clisp.org>
1892
1893         fchownat: Improve description.
1894         * modules/fchownat (Description): Add link to function.
1895
1896 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1897
1898         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1899         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1900         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1901         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1902
1903 2011-11-01  Bruno Haible  <bruno@clisp.org>
1904
1905         alignof: Avoid collision with stdalign module.
1906         * lib/alignof.h (alignof): Remove macro.
1907         * NEWS: Mention the change.
1908         Reported by Paul Eggert.
1909
1910 2011-11-01  Bruno Haible  <bruno@clisp.org>
1911
1912         New module 'fchownat', split off from module 'openat'.
1913         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1914         defined.
1915         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1916         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1917         invoke gl_FUNC_FCHOWNAT.
1918         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1919         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1920         * modules/fchownat: New file, extracted from modules/openat.
1921         * modules/openat (Files): Remove lib/fchownat.c.
1922         (Depends-on): Remove lchown.
1923         (configure.ac): Remove AC_LIBOBJ of fchownat.
1924         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1925         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1926         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1927         (Depends-on): Remove mgetgroups, usleep, stat-time.
1928         (configure.ac): Remove test for getegid.
1929         (Makefile.am): Remove rules for test-fchownat.
1930         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1931         of module 'openat'.
1932         * NEWS: Mention the change.
1933
1934 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1935
1936         stdalign: port better to MSVC and to Sun C 5.11
1937         This fixes some of the problems reported by Bruno Haible in
1938         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1939         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1940         shortcomings of MSVC and of Sun C 5.11.
1941         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1942         around __declspec arg.
1943         * modules/stdalign-tests (Files): Add tests/macros.h.
1944         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1945         Include macros.h, for ASSERT.
1946         (DECLARE_ALIGNED): Remove.
1947         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1948         to catch bug), and to 1 if not (simplifies the rest of the code).
1949         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1950         (CHECK_AUTO): Remove.
1951         (CHECK_ALIGNED): Check only the alignment of the static vars,
1952         since auto var alignment isn't supported by Sun C 5.11.
1953         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1954         ASSERT failures are easier to diagnose.
1955
1956 2011-10-31  Bruno Haible  <bruno@clisp.org>
1957
1958         doc about some IRIX 5.3 problems.
1959         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1960         on IRIX 5.3.
1961         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1962         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1963         5.3.
1964         * doc/posix-functions/grantpt.texi: Likewise.
1965         * doc/posix-functions/unlockpt.texi: Likewise.
1966         * doc/posix-functions/lgamma.texi: Likewise.
1967         * doc/posix-functions/nextafter.texi: Likewise.
1968         * doc/posix-functions/remainder.texi: Likewise.
1969         * doc/posix-functions/select.texi: Mention misplaced declaration on
1970         IRIX 5.3.
1971         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1972
1973 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1974
1975         gitlog-to-changelog: fix git-log invocation.
1976         git-log mishandles date strings before 1970-01-01 UTC, and there is
1977         no use to specify --since=1970-01-01 by default anyway.
1978         * build-aux/gitlog-to-changelog: By default, when no --since option
1979         was given, do not specify explicit --since option to git-log.
1980
1981 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1982
1983         gitlog-to-changelog: new option --append-dot.
1984         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1985         first non-blank line of each commit message terminated with a dot.
1986
1987 2011-10-30  Bruno Haible  <bruno@clisp.org>
1988
1989         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1990         * lib/ffsl.h: Include <config.h>.
1991         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1992
1993 2011-10-30  Jim Meyering  <meyering@redhat.com>
1994
1995         GNUmakefile: reenable "make syntax-check" for most projects
1996         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1997         build-aux variable", "syntax-check" would do nothing but succeed with
1998         the "No version control files detected..." diagnostic (unless you
1999         happened to override _build-aux via cfg.mk).
2000         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
2001         to precede inclusion of maint.mk.  Otherwise, these variables would
2002         be used undefined in any project that does not override the default.
2003
2004 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
2005
2006         gitlog-to-changelog: treat a message with only blank lines as empty.
2007         * build-aux/gitlog-to-changelog: Move the code that removes leading and
2008         trailing blank lines before the code that issues a warning about an
2009         empty commit message.
2010
2011 2011-10-30  Jim Meyering  <meyering@redhat.com>
2012
2013         test-parse-datetime.c: avoid new DST-related false positive test failure
2014         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
2015         based on the time/date we'll convert, not the current time.
2016         Otherwise, the moment we cross a DST boundary like today's in
2017         Europe, (CEST to CET), that offset ends up being one hour off.
2018
2019 2011-10-27  Bruno Haible  <bruno@clisp.org>
2020
2021         fstat: Tweak documentation.
2022         * modules/fstat (Description): More precise description.
2023
2024 2011-10-27  Bruno Haible  <bruno@clisp.org>
2025
2026         Update documentation regarding 'largefile' module.
2027         * doc/posix-functions/fstat.texi: Tweak wording.
2028         * doc/posix-functions/opendir.texi: Mention that the module fixes the
2029         problems with huge directories and/or small ino_t types.
2030         * doc/posix-functions/readdir.texi: Likewise.
2031         * doc/posix-functions/rewinddir.texi: Likewise.
2032
2033 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
2034
2035         maint.mk: don't maintain a second build-aux variable.
2036         * maint.mk (build_aux): Removed.  The maintainer-makefile module
2037         depends on GNUmakefile, which already maintains a cfg.mk
2038         overridable $(_build-aux) for projects with a non-standard
2039         build-aux directory location, although without the $(srcdir)
2040         prefix.  Use that variable consistently instead of introducing a
2041         second one.  Adjust all call sites.
2042
2043 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2044
2045         Add stdalign module and use it in other modules.
2046         This is based on a previous proposal by Bruno Haible
2047         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
2048
2049         stdalign: new module
2050         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
2051         * modules/stdalign: New files.
2052         * MODULES.html.sh (c1x_core_properties): Add stdalign.
2053         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
2054
2055         stdalign-tests: new module
2056         * modules/stdalign-tests, tests/test-stdalign.c: New files.
2057
2058         argp: use stdalign
2059         * lib/argp-parse.c: Include <stdalign.h>.
2060         (alignof): Remove.
2061         * modules/argp (Depends-on): Add stdalign.
2062
2063         crypto libraries: use stdalign
2064         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2065         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
2066         Do not include <stdlib.h> twice, in md4.c.
2067         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
2068         because we are accessing a pointer's bit-pattern, not a size.
2069         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
2070         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
2071         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2072         * modules/crypto/sha512: Likewise.
2073
2074         sys_socket: use stdalign, not alignof
2075         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
2076         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
2077
2078 2011-10-27  Bruno Haible  <bruno@clisp.org>
2079
2080         raise test: Avoid a test failure on Linux/MIPS.
2081         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
2082         because 99 is a valid signal on Linux/MIPS.
2083
2084 2011-10-27  Bruno Haible  <bruno@clisp.org>
2085
2086         nonblocking tests: Fix test failure on Linux/MIPS.
2087         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
2088         Set to 270000.
2089
2090 2011-10-27  Bruno Haible  <bruno@clisp.org>
2091
2092         utimensat: Work around problem on Linux/hppa.
2093         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
2094         values.
2095         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
2096
2097 2011-10-25  Jim Meyering  <meyering@redhat.com>
2098
2099         maint.mk: fix a bug in sc_prohibit_stddef_without_use
2100         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
2101         after symbols like NULL, size_t, etc.
2102         Reported by Alfred M. Szmidt.
2103
2104         maint.mk: exempt ENODATA from a syntax-check rule
2105         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
2106         from the sc_prohibit_always-defined_macros syntax-check rule.
2107         Add a comment.  See this for more details:
2108         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
2109
2110 2011-10-23  Jim Meyering  <meyering@redhat.com>
2111
2112         fts: close parent dir FD before returning from post-traversal fts_read
2113         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
2114         unlink A, even though an FD open on A remained.  This is suboptimal
2115         (holding a file descriptor open longer than needed), but otherwise not
2116         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
2117         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
2118         that represents a real problem: it causes the removal of A to fail
2119         with e.g., "rm: cannot remove `A': Device or resource busy"
2120
2121         fts visits each directory twice and keeps a cache (fts_fd_ring) of
2122         directory file descriptors.  After completing the final, FTS_DP,
2123         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
2124         cache, but then proceeded to add a new FD to it via the subsequent
2125         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
2126         final file descriptor would be closed only via fts_close's call to
2127         fd_ring_clear.  Now, it is usually closed earlier, via the final
2128         FTS_DP-returning fts_read call.
2129         * lib/fts.c (restore_initial_cwd): New function, converted from
2130         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
2131         Update callers.
2132         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
2133         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
2134
2135 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
2136             Bruno Haible  <bruno@clisp.org>
2137             Jim Meyering  <jim@meyering.net>
2138
2139         readme-release: improve safety of release prep instructions.
2140         * README-release: Don't git pull all branches when only master
2141         is needed for the release process.
2142         Run make maintainer-clean before changing trees and merging.
2143         Don't try to run ./configure right after git pull in case files
2144         that influence the bootstrap process have changed, move the
2145         ./configure step to after running ./bootstrap.
2146         Don't bootstrap "one last time"... it's the first time!
2147
2148 2011-10-22  Bruno Haible  <bruno@clisp.org>
2149
2150         errno, strerror-override: Support for MSVC 10.
2151         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
2152         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
2153         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
2154         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
2155         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
2156         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
2157         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
2158         Assign values compatible with MSVC 10.
2159         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
2160         New macros.
2161         (GNULIB_defined_EWINSOCK): New macro.
2162         * lib/strerror-override.c (strerror_override): Update accordingly.
2163         * lib/strerror-override.h: Likewise.
2164         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
2165         longer equal to the corresponding errno value.
2166         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2167
2168 2011-10-22  Bruno Haible  <bruno@clisp.org>
2169
2170         perror: Recognize when test program crashes.
2171         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
2172         strerror, set gl_cv_func_perror_works to no.
2173         Reported by Daniel Richard G. <skunk@iskunk.org>.
2174
2175         perror: Fix indentation.
2176         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
2177
2178 2011-10-22  Bruno Haible  <bruno@clisp.org>
2179
2180         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
2181         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
2182         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
2183         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
2184         functions, not as a macro.
2185         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
2186         macros.
2187         (isfinite, isinf, isnan, signbit): Check overloaded functions and
2188         absence of macro.
2189         Suggested by Eric Blake.
2190         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2191
2192 2011-10-21  Bruno Haible  <bruno@clisp.org>
2193
2194         relocatable-prog-wrapper: Don't leave object files behind.
2195         * build-aux/install-reloc: Re-synchronize list of .o files to be
2196         removed with list of compilation units.
2197
2198 2011-10-20  Bruno Haible  <bruno@clisp.org>
2199
2200         openpty, posix_openpt: Remove code duplication.
2201         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
2202         * lib/openpty.c: Include <stdlib.h>.
2203         (openpty): Use posix_openpt on all platforms except IRIX.
2204         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
2205
2206 2011-10-20  Bruno Haible  <bruno@clisp.org>
2207
2208         unlockpt: Detect invalid argument.
2209         * lib/unlockpt.c: Include <fcntl.h>.
2210         (unlockpt): Check whether fd is valid, using fcntl().
2211         * modules/unlockpt (Depends-on): Add fcntl-h.
2212
2213 2011-10-20  Bruno Haible  <bruno@clisp.org>
2214
2215         openpty: Avoid compilation error on AIX 6.1.
2216         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
2217
2218 2011-10-20  Bruno Haible  <bruno@clisp.org>
2219
2220         posix_openpt: Support for OpenBSD.
2221         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
2222         (posix_openpt) [OpenBSD]: New code.
2223         * lib/grantpt.c: Include <fcntl.h>.
2224         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
2225         * modules/grantpt (Depends-on): Add fcntl-h.
2226
2227 2011-10-20  Bruno Haible  <bruno@clisp.org>
2228
2229         posix_openpt test: Coding style.
2230         * tests/test-posix_openpt.c: Use GNU coding style.
2231
2232 2011-10-20  Bruno Haible  <bruno@clisp.org>
2233
2234         grantpt: Support --avoid=pt_chown.
2235         * modules/grantpt (Files): Add lib/pty-private.h.
2236
2237 2011-10-20  Bruno Haible  <bruno@clisp.org>
2238
2239         posix_openpt: Fix autoconf macro.
2240         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
2241         unneeded check for _getpty.
2242
2243 2011-10-20  Bruno Haible  <bruno@clisp.org>
2244
2245         openpty: Update comments.
2246         * lib/openpty.c: Add comments about Minix.
2247
2248 2011-10-19  Eric Blake  <eblake@redhat.com>
2249
2250         openpty: relax license
2251         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
2252
2253         pt_chown: use configmake to simplify build
2254         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
2255
2256         ptsname and others: relax license
2257         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
2258         * modules/unlockpt (License): Likewise.
2259         * modules/pt_chown (License): Likewise.
2260         * modules/ptsname (License): Likewise.
2261         * modules/ttyname_r (License): Likewise.
2262
2263 2011-10-19  Jim Meyering  <meyering@redhat.com>
2264
2265         posix_openpt: remove spurious #endif
2266         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
2267
2268 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
2269
2270         maint.mk: Respect $(build_aux) in web-manual rule.
2271         * top/maint.mk (web-manual): Find gen-announce script in user's
2272         $(build_aux) directory instead of hard-coding 'build-aux'.
2273
2274 2011-10-19  Bruno Haible  <bruno@clisp.org>
2275
2276         posix_openpt: Fix compilation error.
2277         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
2278         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
2279         Mention the openpty module as an alternative.
2280
2281 2011-10-19  Bruno Haible  <bruno@clisp.org>
2282
2283         Support for old NeXTstep 3.3 frexp().
2284         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
2285         execution time of the test to 5 seconds.
2286         Reported by Daniel Richard G. <skunk@iskunk.org>.
2287
2288 2011-10-19  Bruno Haible  <bruno@clisp.org>
2289
2290         Support for old NeXTstep 3.3 sed.
2291         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
2292         part, use /.../, not \|...|. Escape periods in the header file name.
2293         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2294         Reported by Daniel Richard G. <skunk@iskunk.org>.
2295
2296 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2297
2298         Support for old NeXTstep 3.3 gcc.
2299         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
2300         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
2301         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
2302         * lib/spawn.in.h (_Restrict_arr_): Likewise.
2303         * lib/regex.h (_Restrict_arr_): Likewise.
2304         * lib/regex_internal.h (re_token_t): Likewise.
2305         * lib/regexec.c (check_node_accept_bytes): Likewise.
2306         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
2307
2308 2011-10-18  Eric Blake  <eblake@redhat.com>
2309
2310         posix_openpt: new module
2311         * modules/posix_openpt: New module.
2312         * m4/posix_openpt.m4: New file.
2313         * lib/posix_openpt.c: Likewise.
2314         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2315         (gl_STDLIB_H_DEFAULTS): Set defaults.
2316         * modules/stdlib (Makefile.am): Substitute macros.
2317         * lib/stdlib.in.h (posix_openpt): Declare.
2318         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
2319         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
2320         * modules/posix_openpt-tests: New test module.
2321         * tests/test-posix_openpt.c: New test.
2322
2323 2011-10-15  Bruno Haible  <bruno@clisp.org>
2324
2325         xstrtoll: Fix compilation failure.
2326         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
2327         from lib/strtol.c.
2328         * doc/posix-headers/limits.texi: Mention missing numerical limits on
2329         some platforms.
2330         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2331
2332 2011-10-15  Bruno Haible  <bruno@clisp.org>
2333
2334         vasnprintf: Optimize bit search operation.
2335         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
2336         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
2337         gl_DOUBLE_EXPONENT_LOCATION.
2338         * modules/vasnprintf (Files): Add m4/exponentd.m4.
2339         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2340         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2341         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2342         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2343         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2344         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2345         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2346         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
2347
2348 2011-10-15  Bruno Haible  <bruno@clisp.org>
2349
2350         vasnprintf: Fix comments.
2351         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
2352
2353 2011-10-14  Bruno Haible  <bruno@clisp.org>
2354
2355         Tests for module 'integer_length_ll'.
2356         * modules/integer_length_ll-tests: New file.
2357         * tests/test-integer_length_ll.c: New file.
2358
2359         New module 'integer_length_ll'.
2360         * lib/integer_length_ll.c: New file.
2361         * modules/integer_length_ll: New file.
2362
2363 2011-10-14  Bruno Haible  <bruno@clisp.org>
2364
2365         Tests for module 'integer_length_l'.
2366         * modules/integer_length_l-tests: New file.
2367         * tests/test-integer_length_l.c: New file.
2368
2369         New module 'integer_length_l'.
2370         * lib/integer_length_l.c: New file.
2371         * modules/integer_length_l: New file.
2372
2373 2011-10-14  Bruno Haible  <bruno@clisp.org>
2374
2375         Tests for module 'integer_length'.
2376         * modules/integer_length-tests: New file.
2377         * tests/test-integer_length.c: New file.
2378
2379         New module 'integer_length'.
2380         * lib/integer_length.h: New file.
2381         * lib/integer_length.c: New file.
2382         * modules/integer_length: New file.
2383
2384 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2385
2386         popen: Fix dependency conditions.
2387         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
2388
2389 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2390
2391         perror: Fix autoconf test.
2392         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
2393         <stdlib.h> and <string.h>.
2394
2395 2011-10-14  Bruno Haible  <bruno@clisp.org>
2396
2397         ffsl: Optimize on 64-bit platforms.
2398         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
2399         unrolling.
2400
2401 2011-10-13  Bruno Haible  <bruno@clisp.org>
2402
2403         ffsl: Optimize on 32-bit platforms.
2404         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
2405         use ffs() without a loop.
2406
2407         ffsl, ffsll: Optimize for GCC.
2408         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
2409         * lib/ffsl.c (GCC_BUILTIN): New macro.
2410         * lib/ffsll.c (GCC_BUILTIN): Likewise.
2411
2412 2011-10-13  Bruno Haible  <bruno@clisp.org>
2413
2414         ffs, bcopy, memset: Support symbol renaming via config.h.
2415         * lib/ffs.c: Include <config.h>.
2416         * lib/bcopy.c: Likewise.
2417         * lib/memset.c: Likewise.
2418
2419 2011-10-10  Bruno Haible  <bruno@clisp.org>
2420
2421         atanl: Simplify for platforms where 'long double' == 'double'.
2422         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2423         alternative implementation.
2424         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2425         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2426         * modules/atanl (Depends-on): Add atan. Update conditions.
2427
2428 2011-10-10  Bruno Haible  <bruno@clisp.org>
2429
2430         acosl: Simplify for platforms where 'long double' == 'double'.
2431         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2432         alternative implementation.
2433         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2434         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2435         * modules/acosl (Depends-on): Add acos. Update conditions.
2436
2437 2011-10-10  Bruno Haible  <bruno@clisp.org>
2438
2439         asinl: Simplify for platforms where 'long double' == 'double'.
2440         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2441         alternative implementation.
2442         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2443         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2444         * modules/asinl (Depends-on): Add asin. Update conditions.
2445
2446 2011-10-10  Bruno Haible  <bruno@clisp.org>
2447
2448         tanl: Simplify for platforms where 'long double' == 'double'.
2449         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2450         implementation.
2451         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2452         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2453         * modules/tanl (Depends-on): Add tan. Update conditions.
2454         (configure.ac): Don't compile trigl.c if
2455         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2456
2457 2011-10-10  Bruno Haible  <bruno@clisp.org>
2458
2459         cosl: Simplify for platforms where 'long double' == 'double'.
2460         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2461         implementation.
2462         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2463         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2464         * modules/cosl (Depends-on): Add cos. Update conditions.
2465         (configure.ac): Don't compile sincosl.c and trigl.c if
2466         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2467
2468 2011-10-10  Bruno Haible  <bruno@clisp.org>
2469
2470         sinl: Simplify for platforms where 'long double' == 'double'.
2471         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2472         implementation.
2473         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2474         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2475         * modules/sinl (Depends-on): Add sin. Update conditions.
2476         (configure.ac): Don't compile sincosl.c and trigl.c if
2477         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2478
2479 2011-10-10  Bruno Haible  <bruno@clisp.org>
2480
2481         logl: Simplify for platforms where 'long double' == 'double'.
2482         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2483         implementation.
2484         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2485         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2486         * modules/logl (Depends-on): Add log. Update conditions.
2487
2488 2011-10-10  Bruno Haible  <bruno@clisp.org>
2489
2490         expl: Simplify for platforms where 'long double' == 'double'.
2491         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2492         implementation.
2493         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2494         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2495         * modules/expl (Depends-on): Add exp. Update conditions.
2496
2497 2011-10-10  Bruno Haible  <bruno@clisp.org>
2498
2499         sqrtl: Simplify for platforms where 'long double' == 'double'.
2500         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2501         alternative implementation.
2502         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2503         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2504         * modules/sqrtl (Depends-on): Update conditions.
2505
2506 2011-10-10  Bruno Haible  <bruno@clisp.org>
2507
2508         ldexpl: Simplify for platforms where 'long double' == 'double'.
2509         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2510         alternative implementation.
2511         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2512         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2513         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
2514
2515 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
2516
2517         ffsll: set correct witness
2518         * modules/ffsll (configure.ac): Fix typo.
2519
2520 2011-10-10  Bruno Haible  <bruno@clisp.org>
2521
2522         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
2523         * lib/printf-frexpl.c: Include <config.h>.
2524         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2525         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
2526         second time.
2527         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
2528         gl_LONG_DOUBLE_VS_DOUBLE.
2529         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
2530         conditions.
2531
2532 2011-10-10  Bruno Haible  <bruno@clisp.org>
2533
2534         frexpl: Simplify for platforms where 'long double' == 'double'.
2535         * lib/frexpl.c: Include <config.h>.
2536         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2537         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2538         time.
2539         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2540         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2541         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
2542         * modules/frexpl (Depends-on): Add frexp. Update conditions.
2543         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
2544         conditions.
2545
2546 2011-10-10  Jim Meyering  <meyering@redhat.com>
2547
2548         test-renameat: don't leave behind a temporary file
2549         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
2550           ERROR: files left in build directory after distclean:
2551           ./gltests/test-renameat.too
2552           make[1]: *** [distcleancheck] Error 1
2553         Reported by Tom G. Christensen.
2554
2555 2011-10-09  Bruno Haible  <bruno@clisp.org>
2556
2557         rint: Determine RINT_LIBM correctly on AIX 7.
2558         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
2559         directly, not only through a function pointer. Also accept an optional
2560         4th argument with extra code.
2561         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
2562         rintf() call by gcc when optimizing.
2563
2564         mathfunc.m4: Refactor.
2565         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
2566         m4 variable.
2567
2568 2011-10-09  Bruno Haible  <bruno@clisp.org>
2569
2570         rintl: Simplify for platforms where 'long double' == 'double'.
2571         * lib/rintl.c: Include <config.h>.
2572         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2573         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2574         time.
2575         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2576         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2577         * modules/rintl (Depends-on): Add rint. Update conditions.
2578
2579 2011-10-09  Bruno Haible  <bruno@clisp.org>
2580
2581         roundl: Simplify for platforms where 'long double' == 'double'.
2582         * lib/roundl.c: Include <config.h>.
2583         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2584         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2585         time.
2586         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2587         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2588         * modules/roundl (Depends-on): Add round. Update conditions.
2589
2590 2011-10-09  Bruno Haible  <bruno@clisp.org>
2591
2592         truncl: Simplify for platforms where 'long double' == 'double'.
2593         * lib/truncl.c: Include <config.h>.
2594         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2595         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2596         time.
2597         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2598         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2599         * modules/truncl (Depends-on): Add trunc. Update conditions.
2600
2601 2011-10-09  Bruno Haible  <bruno@clisp.org>
2602
2603         ceill: Simplify for platforms where 'long double' == 'double'.
2604         * lib/ceill.c: Include <config.h>.
2605         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2606         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2607         time.
2608         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2609         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2610         * modules/ceill (Depends-on): Add ceil. Update conditions.
2611
2612 2011-10-09  Bruno Haible  <bruno@clisp.org>
2613
2614         floorl: Simplify for platforms where 'long double' == 'double'.
2615         * lib/floorl.c: Include <config.h>.
2616         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2617         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2618         time.
2619         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2620         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2621         * modules/floorl (Depends-on): Add floor. Update conditions.
2622
2623 2011-10-09  Bruno Haible  <bruno@clisp.org>
2624
2625         rint: Fix ordering constraints.
2626         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
2627         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2628         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2629
2630 2011-10-09  Bruno Haible  <bruno@clisp.org>
2631
2632         copysignl: Simplify for platforms where 'long double' == 'double'.
2633         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2634         alternative.
2635         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2636         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2637         * modules/copysignl (Depends-on): Add copysign. Update conditions.
2638
2639 2011-10-09  Bruno Haible  <bruno@clisp.org>
2640
2641         Tests for module 'rintl'.
2642         * modules/rintl-tests: New file.
2643         * tests/test-rintl.c: New file.
2644
2645         New module 'rintl'.
2646         * lib/math.in.h (rintl): New declaration.
2647         * lib/rintl.c: New file.
2648         * m4/rintl.m4: New file.
2649         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2650         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2651         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2652         * modules/rintl: New file.
2653         * tests/test-math-c++.cc: Check the declaration of rintl.
2654         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2655         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2656         * doc/posix-functions/rintl.texi: Mention the new module.
2657
2658 2011-10-09  Bruno Haible  <bruno@clisp.org>
2659
2660         Tests for module 'rintf'.
2661         * modules/rintf-tests: New file.
2662         * tests/test-rintf.c: New file.
2663
2664         New module 'rintf'.
2665         * lib/math.in.h (rintf): New declaration.
2666         * lib/rintf.c: New file.
2667         * m4/rintf.m4: New file.
2668         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2670         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2671         * modules/rintf: New file.
2672         * tests/test-math-c++.cc: Check the declaration of rintf.
2673         * doc/posix-functions/rintf.texi: Mention the new module.
2674
2675 2011-10-09  Bruno Haible  <bruno@clisp.org>
2676
2677         rint: Support for MSVC.
2678         * lib/math.in.h (rint): New declaration.
2679         * lib/rint.c: New file.
2680         * m4/rint.m4: New file.
2681         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2682         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2683         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2684         * modules/rint (Description): Fix.
2685         (Files): Add lib/rint.c, m4/rint.m4.
2686         (Depends-on): Add math.
2687         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2688         gl_MATH_MODULE_INDICATOR.
2689         * tests/test-math-c++.cc: Check the declaration of rint.
2690         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2691         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
2692         * doc/posix-functions/rint.texi: Mention the replacement provided by
2693         the module.
2694
2695         rint tests: More tests.
2696         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
2697         minus-zero.h, infinity.h, nan.h.
2698         (main): Skip the test if the current rounding mode is not standard. Add
2699         tests for negative numbers, minus zero, infinity, NaN.
2700         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
2701         tests/nan.h.
2702         (Depends-on): Add isnand-nolibm.
2703
2704 2011-10-09  Bruno Haible  <bruno@clisp.org>
2705
2706         Tests for module 'copysignl'.
2707         * modules/copysignl-tests: New file.
2708         * tests/test-copysignl.c: New file.
2709
2710         New module 'copysignl'.
2711         * lib/math.in.h (copysignl): New declaration.
2712         * lib/copysignl.c: New file.
2713         * m4/copysignl.m4: New file.
2714         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2715         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2716         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2717         HAVE_COPYSIGNL.
2718         * modules/copysignl: New file.
2719         * tests/test-math-c++.cc: Check the declaration of copysignl.
2720         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2721         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2722         * doc/posix-functions/copysignl.texi: Mention the new module.
2723
2724 2011-10-09  Bruno Haible  <bruno@clisp.org>
2725
2726         Tests for module 'copysignf'.
2727         * modules/copysignf-tests: New file.
2728         * tests/test-copysignf.c: New file.
2729
2730         New module 'copysignf'.
2731         * lib/math.in.h (copysignf): New declaration.
2732         * lib/copysignf.c: New file.
2733         * m4/copysignf.m4: New file.
2734         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
2735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
2736         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
2737         HAVE_COPYSIGNF.
2738         * modules/copysignf: New file.
2739         * tests/test-math-c++.cc: Check the declaration of copysignf.
2740         * doc/posix-functions/copysignf.texi: Mention the new module.
2741
2742 2011-10-09  Bruno Haible  <bruno@clisp.org>
2743
2744         Ensure that HAVE_* variables are set to 1 before they are set to 0.
2745         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
2746         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
2747         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2748         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
2749         gl_SIGNAL_H_DEFAULTS.
2750
2751 2011-10-09  Bruno Haible  <bruno@clisp.org>
2752
2753         poll: Make macro safer.
2754         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
2755         ac_cv_header_poll_h is not set.
2756
2757 2011-10-09  Bruno Haible  <bruno@clisp.org>
2758
2759         copysign: Provide replacement.
2760         * lib/math.in.h (copysign): New declaration.
2761         * lib/copysign.c: New file.
2762         * m4/copysign.m4: New file.
2763         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2764         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2765         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2766         HAVE_COPYSIGN.
2767         * modules/copysign (Description): Clarify.
2768         (Files): Add lib/copysign.c, m4/copysign.m4.
2769         (Depends-on): Add math, signbit.
2770         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2771         gl_MATH_MODULE_INDICATOR.
2772         * tests/test-math-c++.cc: Check the declaration of copysign.
2773         * doc/posix-functions/copysign.texi: Mention the effects of the module
2774         on Minix and MSVC.
2775
2776 2011-10-09  Bruno Haible  <bruno@clisp.org>
2777
2778         isinf: Ensure macro on AIX 5.1.
2779         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2780         macro.
2781         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2782
2783 2011-10-09  Bruno Haible  <bruno@clisp.org>
2784
2785         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2786         * modules/snprintf-posix-tests (configure.ac): Require
2787         gl_LONG_DOUBLE_VS_DOUBLE.
2788         * modules/sprintf-posix-tests (configure.ac): Likewise.
2789         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2790         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2791         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2792         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2793         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
2794         tests on platforms where 'long double' is the same as 'double'.
2795         * tests/test-sprintf-posix.h (test_function): Likewise.
2796         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2797         * tests/test-vasprintf-posix.c (test_function): Likewise.
2798
2799         *printf: Fix for platforms where 'long double' == 'double'.
2800         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2801         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
2802         * modules/dprintf-posix (Files): Add m4/math_h.m4.
2803         * modules/fprintf-posix (Files): Likewise.
2804         * modules/obstack-printf-posix (Files): Likewise.
2805         * modules/snprintf-posix (Files): Likewise.
2806         * modules/sprintf-posix (Files): Likewise.
2807         * modules/vasnprintf (Files): Likewise.
2808         * modules/vasnprintf-posix (Files): Likewise.
2809         * modules/vasprintf-posix (Files): Likewise.
2810         * modules/vdprintf-posix (Files): Likewise.
2811         * modules/vfprintf-posix (Files): Likewise.
2812         * modules/vsnprintf-posix (Files): Likewise.
2813         * modules/vsprintf-posix (Files): Likewise.
2814         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2815         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2816         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2817         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2818         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2819         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2820         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2821
2822         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2823         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2824         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2825         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2826         'long double'.
2827         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2828
2829         isinf: Fix for platforms where 'long double' == 'double'.
2830         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2831         Don't blindly assume 80-bit 'long double'.
2832
2833         isfinite: Fix for platforms where 'long double' == 'double'.
2834         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2835         Don't blindly assume 80-bit 'long double'.
2836
2837         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2838         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2839         * modules/isfinite-tests (configure.ac): Require
2840         gl_LONG_DOUBLE_VS_DOUBLE.
2841         * modules/isinf-tests (configure.ac): Likewise.
2842         * modules/isnan-tests (configure.ac): Likewise.
2843         * modules/isnanl-tests (configure.ac): Likewise.
2844         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2845         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2846         tests on platforms where 'long double' is the same as 'double'.
2847         * tests/test-isinf.c (test_isinfl): Likewise.
2848         * tests/test-isnan.c (test_long_double): Likewise.
2849         * tests/test-isnanl.h (main): Likewise.
2850
2851 2011-10-08  Bruno Haible  <bruno@clisp.org>
2852
2853         Tests for module 'tanhf'.
2854         * modules/tanhf-tests: New file.
2855         * tests/test-tanhf.c: New file.
2856
2857         New module 'tanhf'.
2858         * lib/math.in.h (tanhf): New declaration.
2859         * lib/tanhf.c: New file.
2860         * m4/tanhf.m4: New file.
2861         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2863         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2864         * modules/tanhf: New file.
2865         * tests/test-math-c++.cc: Check the declaration of tanhf.
2866         * doc/posix-functions/tanhf.texi: Mention the new module.
2867
2868         tanh: Use a .m4 file.
2869         * m4/tanh.m4: New file.
2870         * modules/tanh (Files): Add it.
2871         (configure.ac): Just invoke gl_FUNC_TANH.
2872
2873 2011-10-08  Bruno Haible  <bruno@clisp.org>
2874
2875         Tests for module 'coshf'.
2876         * modules/coshf-tests: New file.
2877         * tests/test-coshf.c: New file.
2878
2879         New module 'coshf'.
2880         * lib/math.in.h (coshf): New declaration.
2881         * lib/coshf.c: New file.
2882         * m4/coshf.m4: New file.
2883         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2884         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2885         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2886         * modules/coshf: New file.
2887         * tests/test-math-c++.cc: Check the declaration of coshf.
2888         * doc/posix-functions/coshf.texi: Mention the new module.
2889
2890         cosh: Use a .m4 file.
2891         * m4/cosh.m4: New file.
2892         * modules/cosh (Files): Add it.
2893         (configure.ac): Just invoke gl_FUNC_COSH.
2894
2895 2011-10-08  Bruno Haible  <bruno@clisp.org>
2896
2897         Tests for module 'sinhf'.
2898         * modules/sinhf-tests: New file.
2899         * tests/test-sinhf.c: New file.
2900
2901         New module 'sinhf'.
2902         * lib/math.in.h (sinhf): New declaration.
2903         * lib/sinhf.c: New file.
2904         * m4/sinhf.m4: New file.
2905         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2906         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2907         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2908         * modules/sinhf: New file.
2909         * tests/test-math-c++.cc: Check the declaration of sinhf.
2910         * doc/posix-functions/sinhf.texi: Mention the new module.
2911
2912         sinh: Use a .m4 file.
2913         * m4/sinh.m4: New file.
2914         * modules/sinh (Files): Add it.
2915         (configure.ac): Just invoke gl_FUNC_SINH.
2916
2917 2011-10-08  Bruno Haible  <bruno@clisp.org>
2918
2919         Tests for module 'atan2f'.
2920         * modules/atan2f-tests: New file.
2921         * tests/test-atan2f.c: New file.
2922
2923         New module 'atan2f'.
2924         * lib/math.in.h (atan2f): New declaration.
2925         * lib/atan2f.c: New file.
2926         * m4/atan2f.m4: New file.
2927         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2928         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2929         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2930         * modules/atan2f: New file.
2931         * tests/test-math-c++.cc: Check the declaration of atan2f.
2932         * doc/posix-functions/atan2f.texi: Mention the new module.
2933
2934         atan2: Use a .m4 file.
2935         * m4/atan2.m4: New file.
2936         * modules/atan2 (Files): Add it.
2937         (configure.ac): Just invoke gl_FUNC_ATAN2.
2938
2939 2011-10-08  Bruno Haible  <bruno@clisp.org>
2940
2941         Tests for module 'atanf'.
2942         * modules/atanf-tests: New file.
2943         * tests/test-atanf.c: New file.
2944
2945         New module 'atanf'.
2946         * lib/math.in.h (atanf): New declaration.
2947         * lib/atanf.c: New file.
2948         * m4/atanf.m4: New file.
2949         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2950         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2951         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2952         * modules/atanf: New file.
2953         * tests/test-math-c++.cc: Check the declaration of atanf.
2954         * doc/posix-functions/atanf.texi: Mention the new module.
2955
2956         atan: Use a .m4 file.
2957         * m4/atan.m4: New file.
2958         * modules/atan (Files): Add it.
2959         (configure.ac): Just invoke gl_FUNC_ATAN.
2960
2961 2011-10-08  Bruno Haible  <bruno@clisp.org>
2962
2963         Tests for module 'acosf'.
2964         * modules/acosf-tests: New file.
2965         * tests/test-acosf.c: New file.
2966
2967         New module 'acosf'.
2968         * lib/math.in.h (acosf): New declaration.
2969         * lib/acosf.c: New file.
2970         * m4/acosf.m4: New file.
2971         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2972         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2973         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2974         * modules/acosf: New file.
2975         * tests/test-math-c++.cc: Check the declaration of acosf.
2976         * doc/posix-functions/acosf.texi: Mention the new module.
2977
2978         acos: Use a .m4 file.
2979         * m4/acos.m4: New file.
2980         * modules/acos (Files): Add it.
2981         (configure.ac): Just invoke gl_FUNC_ACOS.
2982
2983 2011-10-08  Bruno Haible  <bruno@clisp.org>
2984
2985         Tests for module 'asinf'.
2986         * modules/asinf-tests: New file.
2987         * tests/test-asinf.c: New file.
2988
2989         New module 'asinf'.
2990         * lib/math.in.h (asinf): New declaration.
2991         * lib/asinf.c: New file.
2992         * m4/asinf.m4: New file.
2993         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2994         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2995         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2996         * modules/asinf: New file.
2997         * tests/test-math-c++.cc: Check the declaration of asinf.
2998         * doc/posix-functions/asinf.texi: Mention the new module.
2999
3000         asin: Use a .m4 file.
3001         * m4/asin.m4: New file.
3002         * modules/asin (Files): Add it.
3003         (configure.ac): Just invoke gl_FUNC_ASIN.
3004
3005 2011-10-08  Bruno Haible  <bruno@clisp.org>
3006
3007         Tests for module 'tanf'.
3008         * modules/tanf-tests: New file.
3009         * tests/test-tanf.c: New file.
3010
3011         New module 'tanf'.
3012         * lib/math.in.h (tanf): New declaration.
3013         * lib/tanf.c: New file.
3014         * m4/tanf.m4: New file.
3015         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
3016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
3017         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
3018         * modules/tanf: New file.
3019         * tests/test-math-c++.cc: Check the declaration of tanf.
3020         * doc/posix-functions/tanf.texi: Mention the new module.
3021
3022         tan: Use a .m4 file.
3023         * m4/tan.m4: New file.
3024         * modules/tan (Files): Add it.
3025         (configure.ac): Just invoke gl_FUNC_TAN.
3026
3027 2011-10-08  Bruno Haible  <bruno@clisp.org>
3028
3029         Tests for module 'cosf'.
3030         * modules/cosf-tests: New file.
3031         * tests/test-cosf.c: New file.
3032
3033         New module 'cosf'.
3034         * lib/math.in.h (cosf): New declaration.
3035         * lib/cosf.c: New file.
3036         * m4/cosf.m4: New file.
3037         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
3038         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
3039         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
3040         * modules/cosf: New file.
3041         * tests/test-math-c++.cc: Check the declaration of cosf.
3042         * doc/posix-functions/cosf.texi: Mention the new module.
3043
3044         cos: Use a .m4 file.
3045         * m4/cos.m4: New file.
3046         * modules/cos (Files): Add it.
3047         (configure.ac): Just invoke gl_FUNC_COS.
3048
3049 2011-10-08  Bruno Haible  <bruno@clisp.org>
3050
3051         Tests for module 'sinf'.
3052         * modules/sinf-tests: New file.
3053         * tests/test-sinf.c: New file.
3054
3055         New module 'sinf'.
3056         * lib/math.in.h (sinf): New declaration.
3057         * lib/sinf.c: New file.
3058         * m4/sinf.m4: New file.
3059         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
3060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
3061         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
3062         * modules/sinf: New file.
3063         * tests/test-math-c++.cc: Check the declaration of sinf.
3064         * doc/posix-functions/sinf.texi: Mention the new module.
3065
3066         sin: Use a .m4 file.
3067         * m4/sin.m4: New file.
3068         * modules/sin (Files): Add it.
3069         (configure.ac): Just invoke gl_FUNC_SIN.
3070
3071 2011-10-08  Bruno Haible  <bruno@clisp.org>
3072
3073         Tests for module 'powf'.
3074         * modules/powf-tests: New file.
3075         * tests/test-powf.c: New file.
3076
3077         New module 'powf'.
3078         * lib/math.in.h (powf): New declaration.
3079         * lib/powf.c: New file.
3080         * m4/powf.m4: New file.
3081         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
3082         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
3083         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
3084         * modules/powf: New file.
3085         * tests/test-math-c++.cc: Check the declaration of powf.
3086         * doc/posix-functions/powf.texi: Mention the new module.
3087
3088         pow: Use a .m4 file.
3089         * m4/pow.m4: New file.
3090         * modules/pow (Files): Add it.
3091         (configure.ac): Just invoke gl_FUNC_POW.
3092
3093 2011-10-08  Bruno Haible  <bruno@clisp.org>
3094
3095         Tests for module 'log10f'.
3096         * modules/log10f-tests: New file.
3097         * tests/test-log10f.c: New file.
3098
3099         New module 'log10f'.
3100         * lib/math.in.h (log10f): New declaration.
3101         * lib/log10f.c: New file.
3102         * m4/log10f.m4: New file.
3103         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
3104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
3105         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
3106         * modules/log10f: New file.
3107         * tests/test-math-c++.cc: Check the declaration of log10f.
3108         * doc/posix-functions/log10f.texi: Mention the new module.
3109
3110         log10: Use a .m4 file.
3111         * m4/log10.m4: New file.
3112         * modules/log10 (Files): Add it.
3113         (configure.ac): Just invoke gl_FUNC_LOG10.
3114
3115 2011-10-08  Bruno Haible  <bruno@clisp.org>
3116
3117         Tests for module 'logf'.
3118         * modules/logf-tests: New file.
3119         * tests/test-logf.c: New file.
3120
3121         New module 'logf'.
3122         * lib/math.in.h (logf): New declaration.
3123         * lib/logf.c: New file.
3124         * m4/logf.m4: New file.
3125         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
3126         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
3127         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
3128         * modules/logf: New file.
3129         * tests/test-math-c++.cc: Check the declaration of logf.
3130         * doc/posix-functions/logf.texi: Mention the new module.
3131
3132         log: Use a .m4 file.
3133         * m4/log.m4: New file.
3134         * modules/log (Files): Add it.
3135         (configure.ac): Just invoke gl_FUNC_LOG.
3136
3137 2011-10-08  Bruno Haible  <bruno@clisp.org>
3138
3139         Tests for module 'expf'.
3140         * modules/expf-tests: New file.
3141         * tests/test-expf.c: New file.
3142
3143         New module 'expf'.
3144         * lib/math.in.h (expf): New declaration.
3145         * lib/expf.c: New file.
3146         * m4/expf.m4: New file.
3147         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
3148         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
3149         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
3150         * modules/expf: New file.
3151         * tests/test-math-c++.cc: Check the declaration of expf.
3152         * doc/posix-functions/expf.texi: Mention the new module.
3153
3154         exp: Use a .m4 file.
3155         * m4/exp.m4: New file.
3156         * modules/exp (Files): Add it.
3157         (configure.ac): Just invoke gl_FUNC_EXP.
3158
3159 2011-10-08  Bruno Haible  <bruno@clisp.org>
3160
3161         Tests for module 'sqrtf'.
3162         * modules/sqrtf-tests: New file.
3163         * tests/test-sqrtf.c: New file.
3164
3165         New module 'sqrtf'.
3166         * lib/math.in.h (sqrtf): New declaration.
3167         * lib/sqrtf.c: New file.
3168         * m4/sqrtf.m4: New file.
3169         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
3170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
3171         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
3172         * modules/sqrtf: New file.
3173         * tests/test-math-c++.cc: Check the declaration of sqrtf.
3174         * doc/posix-functions/sqrtf.texi: Mention the new module.
3175
3176 2011-10-08  Bruno Haible  <bruno@clisp.org>
3177
3178         Tests: Avoid link failures w.r.t. libintl.
3179         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
3180         $(LIBINTL).
3181         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
3182         $(LIBINTL).
3183         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
3184         against $(LIBINTL).
3185         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
3186         $(LIBINTL).
3187         * modules/openat-tests (Makefile.am): Link test-fchmodat against
3188         $(LIBINTL).
3189         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
3190
3191 2011-10-08  Bruno Haible  <bruno@clisp.org>
3192
3193         pow tests: Defeat compiler optimizations.
3194         * tests/test-pow.c (main): Assign arguments to x and y before use.
3195
3196 2011-10-08  Bruno Haible  <bruno@clisp.org>
3197
3198         gnulib-tool: Improve last commit.
3199         * gnulib-tool (func_modules_transitive_closure): Simplify code.
3200         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
3201         ignore dependencies that are not among the modules list.
3202
3203 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
3204
3205         gnulib-tool: don't follow dependencies to avoided modules
3206         This fixes a bug that is related to the previous one.
3207         * gnulib-tool (func_modules_transitive_closure)
3208         (func_emit_autoconf_snippets):
3209         Check whether a dependency is acceptable before using it.
3210         (--extract-dependencies): Report an error if --avoid is also used,
3211         since this combination of options is not yet supported.
3212
3213         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
3214         Problem reported by Peter Dyballa in
3215         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
3216         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
3217         when echoing "$condition".
3218
3219 2011-10-07  Bruno Haible  <bruno@clisp.org>
3220
3221         Fix documentation about math functions on MacOS X.
3222         * doc/posix-functions/exp2.texi: Don't say the function is missing on
3223         MacOS X 10.5.
3224         * doc/posix-functions/fdim.texi: Likewise.
3225         * doc/posix-functions/feclearexcept.texi: Likewise.
3226         * doc/posix-functions/fegetenv.texi: Likewise.
3227         * doc/posix-functions/fegetround.texi: Likewise.
3228         * doc/posix-functions/feholdexcept.texi: Likewise.
3229         * doc/posix-functions/feraiseexcept.texi: Likewise.
3230         * doc/posix-functions/fesetenv.texi: Likewise.
3231         * doc/posix-functions/fesetround.texi: Likewise.
3232         * doc/posix-functions/fetestexcept.texi: Likewise.
3233         * doc/posix-functions/feupdateenv.texi: Likewise.
3234         * doc/posix-functions/fmax.texi: Likewise.
3235         * doc/posix-functions/fmin.texi: Likewise.
3236         * doc/posix-functions/log2.texi: Likewise.
3237         * doc/posix-functions/modff.texi: Likewise.
3238         * doc/posix-functions/nan.texi: Likewise.
3239         * doc/posix-functions/nanf.texi: Likewise.
3240         * doc/posix-functions/nextafterf.texi: Likewise.
3241         * doc/posix-functions/remquo.texi: Likewise.
3242
3243 2011-10-07  Bruno Haible  <bruno@clisp.org>
3244
3245         modff: Drop assumption about library that defines modff.
3246         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
3247         AC_CHECK_FUNCS.
3248         * modules/modff (Files): Add m4/mathfunc.m4.
3249
3250 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
3251
3252         raise tests: Avoid a GCC warning.
3253         * tests/test-raise.c (handler): Use _Noreturn.
3254
3255 2011-10-07  Bruno Haible  <bruno@clisp.org>
3256
3257         Tests for module 'ldexpf'.
3258         * modules/ldexpf-tests: New file.
3259         * tests/test-ldexpf.c: New file.
3260
3261         New module 'ldexpf'.
3262         * lib/math.in.h (ldexpf): New declaration.
3263         * lib/ldexpf.c: New file.
3264         * m4/ldexpf.m4: New file.
3265         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
3266         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
3267         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
3268         * modules/ldexpf: New file.
3269         * tests/test-math-c++.cc: Check the declaration of ldexpf.
3270         * doc/posix-functions/ldexpf.texi: Mention the new module.
3271
3272 2011-10-06  Bruno Haible  <bruno@clisp.org>
3273
3274         frexpf: Work around problems on IRIX and mingw.
3275         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
3276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
3277         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
3278         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
3279         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
3280         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
3281         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
3282
3283 2011-10-06  Bruno Haible  <bruno@clisp.org>
3284
3285         fabsf: Drop assumption about library that defines fabsf.
3286         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
3287         AC_CHECK_FUNCS.
3288         * modules/fabsf (Files): Add m4/mathfunc.m4.
3289
3290 2011-10-06  Bruno Haible  <bruno@clisp.org>
3291
3292         frexpf: Drop assumption about library that defines frexpf.
3293         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
3294         'int *', 'float *', 'long double *', 'float', 'long double'.
3295         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
3296         AC_CHECK_FUNCS.
3297         * modules/frexpf (Files): Add m4/mathfunc.m4.
3298
3299         Tests for module 'frexpf'.
3300         * modules/frexpf-tests: New file.
3301         * tests/test-frexpf.c: New file.
3302
3303         New module 'frexpf'.
3304         * lib/math.in.h (frexpf): New declaration.
3305         * lib/frexpf.c: New file.
3306         * m4/frexpf.m4: New file.
3307         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
3308         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
3309         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
3310         * modules/frexpf: New file.
3311         * tests/test-math-c++.cc: Check the declaration of frexpf.
3312         * doc/posix-functions/frexpf.texi: Mention the new module.
3313
3314 2011-10-06  Bruno Haible  <bruno@clisp.org>
3315
3316         math: Sort function declarations of math.in.h.
3317         * lib/math.in.h (frexp, logb): Move declarations.
3318
3319 2011-10-05  Bruno Haible  <bruno@clisp.org>
3320
3321         Tests for module 'modff'.
3322         * modules/modff-tests: New file.
3323         * tests/test-modff.c: New file.
3324
3325         New module 'modff'.
3326         * lib/math.in.h (modff): New declaration.
3327         * lib/modff.c: New file.
3328         * m4/modff.m4: New file.
3329         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
3330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
3331         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
3332         * modules/modff: New file.
3333         * tests/test-math-c++.cc: Check the declaration of modff.
3334         * doc/posix-functions/modff.texi: Mention the new module.
3335
3336         modf tests: Make test sharper.
3337         * tests/test-modf.c (main): Strengthen upper bound.
3338
3339         modf: Use a .m4 file.
3340         * m4/modf.m4: New file.
3341         * modules/modf (Files): Add it.
3342         (configure.ac): Just invoke gl_FUNC_MODF.
3343
3344 2011-10-05  Bruno Haible  <bruno@clisp.org>
3345
3346         Tests for module 'fmodf'.
3347         * modules/fmodf-tests: New file.
3348         * tests/test-fmodf.c: New file.
3349
3350         New module 'fmodf'.
3351         * lib/math.in.h (fmodf): New declaration.
3352         * lib/fmodf.c: New file.
3353         * m4/fmodf.m4: New file.
3354         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
3355         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
3356         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
3357         * modules/fmodf: New file.
3358         * tests/test-math-c++.cc: Check the declaration of fmodf.
3359         * doc/posix-functions/fmodf.texi: Mention the new module.
3360
3361         fmod: Use a .m4 file.
3362         * m4/fmod.m4: New file.
3363         * modules/fmod (Files): Add it.
3364         (configure.ac): Just invoke gl_FUNC_FMOD.
3365
3366 2011-10-05  Bruno Haible  <bruno@clisp.org>
3367
3368         Tests for module 'fabsf'.
3369         * modules/fabsf-tests: New file.
3370         * tests/test-fabsf.c: New file.
3371
3372         New module 'fabsf'.
3373         * lib/math.in.h (fabsf): New declaration.
3374         * lib/fabsf.c: New file.
3375         * m4/fabsf.m4: New file.
3376         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
3377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
3378         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
3379         * modules/fabsf: New file.
3380         * tests/test-math-c++.cc: Check the declaration of fabsf.
3381         * doc/posix-functions/fabsf.texi: Mention the new module.
3382
3383         fabs: Use a .m4 file.
3384         * m4/fabs.m4: New file.
3385         * modules/fabs (Files): Add it.
3386         (configure.ac): Just invoke gl_FUNC_FABS.
3387
3388 2011-10-05  Jim Meyering  <meyering@redhat.com>
3389
3390         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
3391         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
3392         ls -lL regression introduced in coreutils-8.12, it does so at the
3393         cost of an additional stat call in the common case.  Besides, now
3394         that the kernel change that prompted commit 95f7c57f has been reverted
3395         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
3396         we have no use for commit 95f7c57f, "file-has-acl: use
3397         acl_extended_file_nofollow if available".
3398
3399 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
3400
3401         file-has-acl: revert unintended change in behavior of ls -L
3402         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
3403         derived from...
3404         (file_has_acl): ...code here.  Call it.
3405         This problem was introduced with 2011-07-22 commit 95f7c57f,
3406         "file-has-acl: use acl_extended_file_nofollow if available".
3407         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
3408
3409 2011-10-03  Bruno Haible  <bruno@clisp.org>
3410
3411         poll: Avoid link errors on MSVC.
3412         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
3413         * modules/poll (Depends-on): Add sockets.
3414         (Link): New section.
3415         * NEWS: Mention the change.
3416         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
3417         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
3418         $(LIB_POLL) instead of $(LIBSOCKET).
3419
3420 2011-10-03  Bruno Haible  <bruno@clisp.org>
3421
3422         sys_select tests: Fix link error on MSVC 9.
3423         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
3424         with $(LIB_SELECT) instead of $(LIBSOCKET).
3425
3426 2011-10-03  Bruno Haible  <bruno@clisp.org>
3427
3428         sys_select: Fix compilation error on mingw.
3429         * lib/sys_select.in.h: On native Windows, include <io.h>.
3430
3431 2011-10-03  Bruno Haible  <bruno@clisp.org>
3432
3433         wmemset: Support for MSVC.
3434         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
3435         whether wmemset() exists.
3436
3437 2011-10-03  Bruno Haible  <bruno@clisp.org>
3438
3439         wmemmove: Support for MSVC.
3440         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
3441         whether wmemmove() exists.
3442
3443 2011-10-03  Bruno Haible  <bruno@clisp.org>
3444
3445         wmemcpy: Support for MSVC.
3446         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
3447         whether wmemcpy() exists.
3448
3449 2011-10-03  Bruno Haible  <bruno@clisp.org>
3450
3451         wmemcmp: Support for MSVC.
3452         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
3453         whether wmemcmp() exists.
3454
3455 2011-10-03  Bruno Haible  <bruno@clisp.org>
3456
3457         wmemchr: Support for MSVC.
3458         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
3459         whether wmemchr() exists.
3460
3461 2011-10-03  Bruno Haible  <bruno@clisp.org>
3462
3463         glthread/*, strsignal: Support for MSVC.
3464         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
3465         including <winsock.h> on MSVC 9.
3466         * lib/glthread/lock.h: Likewise.
3467         * lib/glthread/thread.h: Likewise.
3468         * lib/glthread/tls.h: Likewise.
3469         * lib/glthread/yield.h: Likewise.
3470         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
3471         if HAVE_UNISTD_H is false.
3472         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
3473
3474 2011-10-03  Bruno Haible  <bruno@clisp.org>
3475
3476         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
3477         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
3478         Set to 100000.
3479
3480 2011-10-03  Bruno Haible  <bruno@clisp.org>
3481
3482         acl: Fix specification.
3483         * lib/file-has-acl.c (file_has_acl): Fix specification.
3484
3485 2011-10-03  Bruno Haible  <bruno@clisp.org>
3486
3487         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
3488         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
3489         (compute_curr_prefix, shared_library_fullname,
3490         find_shared_library_fullname, get_shared_library_fullname, relocate):
3491         Use it together with PIC && INSTALLDIR.
3492         Reported by <jojelino@gmail.com>
3493         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
3494
3495 2011-10-01  Jim Meyering  <meyering@redhat.com>
3496
3497         maint.mk: adjust a release-related rule not to require use of gzip
3498         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
3499         Instead, check each file in $(DIST_ARCHIVES).  This is better for
3500         projects that build only .tar.xz files.  Also fix an erroneous test.
3501
3502         test-linkat: don't leave behind a temporary file
3503         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
3504         Otherwise, coreutils' "make distcheck" would fail with this:
3505           Only in /c/cu/tests/torture/coreutils/test/\
3506             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
3507           make[2]: *** [my-distcheck] Error 1
3508
3509         float, math: add omitted file
3510         * lib/itold.c: Add file, required for yesterday's float change.
3511
3512 2011-10-01  Bruno Haible  <bruno@clisp.org>
3513
3514         isinf: Fix for OpenBSD/x86.
3515         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
3516         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
3517         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
3518
3519 2011-10-01  Bruno Haible  <bruno@clisp.org>
3520
3521         isfinite: Fix syntax error in configure test.
3522         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
3523
3524         isfinite: Fix typo.
3525         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
3526         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
3527
3528 2011-10-01  Bruno Haible  <bruno@clisp.org>
3529
3530         nonblocking tests: Fix test failure on Linux/IA-64.
3531         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
3532         Set to 270000.
3533
3534 2011-10-01  Bruno Haible  <bruno@clisp.org>
3535
3536         mkfifoat tests: Fix a test failure on mingw.
3537         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
3538         with error ENOSYS.
3539
3540 2011-09-30  Bruno Haible  <bruno@clisp.org>
3541
3542         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
3543         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
3544         'long double'. Set REPLACE_ITOLD.
3545         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
3546         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
3547         * lib/itold.c: New file.
3548         * modules/float (Files): Add lib/itold.c.
3549         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
3550         (Makefile.am): Substitute REPLACE_ITOLD.
3551         * modules/math (Depends-on): Add float.
3552         (Makefile.am): Substitute REPLACE_ITOLD.
3553         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
3554         * doc/posix-headers/math.texi: Likewise.
3555         * doc/posix-functions/logl.texi: Likewise.
3556
3557 2011-09-30  Bruno Haible  <bruno@clisp.org>
3558
3559         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
3560         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
3561         Set to 140000.
3562
3563 2011-09-30  Bruno Haible  <bruno@clisp.org>
3564
3565         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
3566         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
3567         invocation, say "right after AC_PROG_CC_STDC", not "right after
3568         AC_PROG_CC".
3569         Reported by Gary V. Vaughan <gary@gnu.org>.
3570
3571 2011-09-30  Bruno Haible  <bruno@clisp.org>
3572
3573         Centralize C99 requirement.
3574         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
3575         * modules/stdarg (configure.ac-early): Invoke it instead of
3576         AC_PROG_CC_STDC.
3577         Reported by Gary V. Vaughan and Paul Eggert.
3578
3579 2011-09-29  Bruno Haible  <bruno@clisp.org>
3580
3581         float: Fix LDBL_MAX value on Linux/PowerPC.
3582         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
3583         on Linux/PowerPC.
3584         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
3585         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
3586         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
3587         platform.
3588         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
3589
3590 2011-09-29  Bruno Haible  <bruno@clisp.org>
3591
3592         doc: Improve doc about gl_EARLY.
3593         * doc/gnulib-tool.texi (Initial import): Mention where to place an
3594         AC_PROG_CC_STDC invocation.
3595         Reported by Gary V. Vaughan <gary@gnu.org>.
3596
3597 2011-09-28  Bruno Haible  <bruno@clisp.org>
3598
3599         fgetc, fputc, fread, fwrite tests: Fix link error.
3600         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
3601         on non-MSVC platforms.
3602         * tests/test-fputc.c (main): Likewise.
3603         * tests/test-fread.c (main): Likewise.
3604         * tests/test-fwrite.c (main): Likewise.
3605         Reported by Jim Meyering.
3606
3607 2011-09-27  Bruno Haible  <bruno@clisp.org>
3608
3609         fputc, fwrite tests: Avoid test failure on MSVC.
3610         * tests/test-fgetc.c: Include msvc-inval.h.
3611         (main): Invoke gl_msvc_inval_ensure_handler.
3612         * tests/test-fputc.c: Include msvc-inval.h.
3613         (main): Invoke gl_msvc_inval_ensure_handler.
3614         * tests/test-fread.c: Include msvc-inval.h.
3615         (main): Invoke gl_msvc_inval_ensure_handler.
3616         * tests/test-fwrite.c: Include msvc-inval.h.
3617         (main): Invoke gl_msvc_inval_ensure_handler.
3618         * modules/fgetc-tests (Depends-on): Add msvc-inval.
3619         * modules/fputc-tests (Depends-on): Likewise.
3620         * modules/fread-tests (Depends-on): Likewise.
3621         * modules/fwrite-tests (Depends-on): Likewise.
3622
3623 2011-09-27  Bruno Haible  <bruno@clisp.org>
3624
3625         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
3626         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
3627         (raise): Remove older, duplicated declaration.
3628         (_gl_raise_SIGPIPE): New declaration.
3629         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
3630         (rpl_raise): Remove function.
3631         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
3632         a gnulib-defined SIGPIPE here.
3633         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
3634         'sigprocmask' has detected missing signal-blocking and the module
3635         'sigpipe' is enabled.
3636         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3637
3638 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
3639
3640         base64-tests: avoid memory leak
3641         * tests/test-base64.c (main): Plug memory leak.
3642
3643         base32: new module
3644         * modules/base32: New module.
3645         * lib/base32.c: New file.
3646         * lib/base32.h: Likewise.
3647         * m4/base32.m4: Likewise.
3648         * modules/base32-tests: New test.
3649         * tests/test-base32.c: Likewise.
3650         * MODULES.html.sh (Misc): Mention it.
3651
3652 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3653
3654         gnulib: use more-standard license notice wording
3655         * gnulib-tool (func_emit_copyright_notice): When emitting a
3656         license notice into a file, use the standard wording as suggested
3657         by the current information for GNU maintainers, except say "file"
3658         rather than "program".  The new wording gives a license version
3659         number, which addresses an issue raised by Glenn Morris in
3660         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3661         * m4/onceonly.m4: Use that same wording here, too.
3662
3663         dup2: minor simplification
3664         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3665         as lib/dup2.c no longer uses 'inline'.
3666
3667 2011-09-25  Bruno Haible  <bruno@clisp.org>
3668
3669         strings: Fix compilation error on MSVC.
3670         * lib/strings.in.h: Include <stddef.h> for size_t.
3671
3672 2011-09-25  Bruno Haible  <bruno@clisp.org>
3673
3674         fflush et al.: Document limitation on MSVC.
3675         * doc/posix-functions/fflush.texi: Document possible crash in handling
3676         mode other than DEFAULT_HANDLING.
3677         * doc/posix-functions/fgetc.texi: Likewise.
3678         * doc/posix-functions/fputc.texi: Likewise.
3679         * doc/posix-functions/fread.texi: Likewise.
3680         * doc/posix-functions/fwrite.texi: Likewise.
3681
3682 2011-09-25  Bruno Haible  <bruno@clisp.org>
3683
3684         msvc-inval: Allow three invalid parameter handling modes.
3685         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3686         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3687         macros.
3688         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3689         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3690         SANE_LIBRARY_HANDLING as a no-op.
3691         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
3692         <stdlib.h>.
3693         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
3694
3695 2011-09-25  Bruno Haible  <bruno@clisp.org>
3696
3697         msvc-inval: Make handler multithread-safe.
3698         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
3699         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
3700         declarations.
3701         (gl_msvc_inval_current): New declaration.
3702         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3703         Operate on the structure returned by gl_msvc_inval_current().
3704         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
3705         Remove varaiables.
3706         (tls_index, tls_initialized): New variables.
3707         (not_per_thread): New variable.
3708         (gl_msvc_inval_current): New function.
3709         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3710         returned by gl_msvc_inval_current().
3711
3712 2011-09-25  Bruno Haible  <bruno@clisp.org>
3713
3714         msvc-inval: Install handler globally.
3715         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3716         !_MSC_VER.
3717         (gl_msvc_invalid_parameter_handler): Remove declaration.
3718         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3719         declarations.
3720         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3721         Install the handler globally, don't uninstall it.
3722         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3723         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3724         currently valid, call RaiseException instead.
3725         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3726         for !_MSC_VER.
3727
3728 2011-09-25  Bruno Haible  <bruno@clisp.org>
3729
3730         strerror_r-posix: Fix for MSVC 9.
3731         * lib/strerror_r.c (local_snprintf): New function.
3732         (snprintf): Define to local_snprintf, not to _snprintf.
3733
3734 2011-09-25  Bruno Haible  <bruno@clisp.org>
3735
3736         ftruncate: Support for MSVC 9.
3737         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
3738         (chsize_nothrow): New function.
3739         (chsize): Redefine as a macro.
3740         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
3741         * modules/ftruncate (Depends-on): Add msvc-inval.
3742
3743 2011-09-25  Bruno Haible  <bruno@clisp.org>
3744
3745         New module 'fstat'.
3746         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
3747         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
3748         * lib/fchdir.c (rpl_fstat): Remove function.
3749         * m4/fstat.m4: New file.
3750         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
3751         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
3752         declared.
3753         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
3754         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
3755         * modules/fstat: New file.
3756         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
3757         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3758         is set.
3759         * doc/posix-functions/fstat.texi: Mention the new module and the
3760         problem on MSVC.
3761         * NEWS: Mention the change.
3762         * modules/acl (Depends-on): Add fstat.
3763         * modules/chdir-safer (Depends-on): Likewise.
3764         * modules/chown (Depends-on): Likewise.
3765         * modules/copy-file (Depends-on): Likewise.
3766         * modules/fchdir (Depends-on): Likewise.
3767         * modules/fdopendir (Depends-on): Likewise.
3768         * modules/fopen (Depends-on): Likewise.
3769         * modules/fts (Depends-on): Likewise.
3770         * modules/getcwd (Depends-on): Likewise.
3771         * modules/isapipe (Depends-on): Likewise.
3772         * modules/linkat (Depends-on): Likewise.
3773         * modules/lseek (Depends-on): Likewise.
3774         * modules/mkdir-p (Depends-on): Likewise.
3775         * modules/open (Depends-on): Likewise.
3776         * modules/openat (Depends-on): Likewise.
3777         * modules/read-file (Depends-on): Likewise.
3778         * modules/renameat (Depends-on): Likewise.
3779         * modules/utimens (Depends-on): Likewise.
3780
3781 2011-09-25  Bruno Haible  <bruno@clisp.org>
3782
3783         linkat: Fix compilation on MSVC 9.
3784         * lib/linkat.c: Don't include <stdint.h>.
3785
3786 2011-09-25  Bruno Haible  <bruno@clisp.org>
3787
3788         fclose: Support for MSVC 9.
3789         * lib/fclose.c: Include msvc-inval.h.
3790         (fclose_nothrow): New function.
3791         (rpl_fclose): Use it.
3792         * modules/fclose (Depends-on): Add msvc-inval.
3793         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
3794
3795 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3796
3797         dup2: minor simplifications
3798         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
3799         that it's a performance win.
3800         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
3801         ! defined __CYGWIN__)" to "ifdef F_GETFL".
3802
3803 2011-09-24  Jim Meyering  <meyering@redhat.com>
3804
3805         test-futimens: avoid a warning from gcc -Wshadow
3806         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
3807         to avoid a shadowing warning.
3808
3809 2011-09-24  Bruno Haible  <bruno@clisp.org>
3810
3811         fdopen: Support for MSVC 9.
3812         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3813         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3814         * lib/fdopen.c: Include msvc-inval.h.
3815         (fdopen_nothrow): New function.
3816         (rpl_fdopen): Use it.
3817         * modules/fdopen (Depends-on): Add msvc-inval.
3818         * modules/fclose-tests (Depends-on): Add fdopen.
3819         * modules/fflush-tests (Depends-on): Likewise.
3820         * modules/fgetc-tests (Depends-on): Likewise.
3821         * modules/fputc-tests (Depends-on): Likewise.
3822         * modules/fread-tests (Depends-on): Likewise.
3823         * modules/freopen-tests (Depends-on): Likewise.
3824         * modules/fseeko-tests (Depends-on): Likewise.
3825         * modules/ftello-tests (Depends-on): Likewise.
3826         * modules/fwrite-tests  (Depends-on): Likewise.
3827         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3828
3829 2011-09-24  Bruno Haible  <bruno@clisp.org>
3830
3831         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3832         * modules/fgetc-tests (Depends-on): Add unistd.
3833         * modules/fputc-tests (Depends-on): Likewise.
3834         * modules/fread-tests (Depends-on): Likewise.
3835         * modules/fwrite-tests (Depends-on): Likewise.
3836
3837 2011-09-24  Bruno Haible  <bruno@clisp.org>
3838
3839         dup: Simplify autoconf test.
3840         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3841         on gl_MSVC_INVAL's result.
3842
3843 2011-09-24  Bruno Haible  <bruno@clisp.org>
3844
3845         Tests for function fwrite().
3846         * modules/fwrite-tests: New file.
3847         * tests/test-fwrite.c: New file.
3848         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3849
3850         Tests for function fread().
3851         * modules/fread-tests: New file.
3852         * tests/test-fread.c: New file.
3853         * modules/stdio-tests (Depends-on): Add fread-tests.
3854
3855         Activate fputc tests.
3856         * modules/stdio-tests (Depends-on): Add fputc-tests.
3857
3858         Enhance fgetc, fputc tests.
3859         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3860         * tests/test-fputc.c (main): Likewise.
3861
3862 2011-09-24  Bruno Haible  <bruno@clisp.org>
3863
3864         write: Support for MSVC 9.
3865         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3866         is not 1.
3867         * lib/write.c (write_nothrow): New function.
3868         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3869         not 1. Use write_nothrow.
3870         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3871         invalid parameter handler.
3872         (gl_PREREQ_WRITE): New macro.
3873         * modules/write (Depends-on): Add msvc-inval.
3874         (configure.ac): Invoke gl_PREREQ_WRITE.
3875         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3876
3877 2011-09-24  Bruno Haible  <bruno@clisp.org>
3878
3879         read: Fix last commit.
3880         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3881
3882 2011-09-24  Bruno Haible  <bruno@clisp.org>
3883
3884         dup2: Fix last commit.
3885         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3886         (rpl_dup2): Disable fcntl workaround on native Windows.
3887
3888         sigprocmask: Make code safer.
3889         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3890         section that changes macro definitions for this compilation unit.
3891
3892 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3893
3894         dup2: clarify by coalescing Windows-specific material
3895         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3896         "msvc-nothrow.h"' to the Windows-specific section, so that the
3897         Emacs source need not contain these include files.
3898         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3899         Windows-specific fixes into this function rather than just the
3900         nothrow fix, as this shortens and clarifies the code.  Always
3901         define as a function, as that's a bit cleaner than having it be
3902         sometimes a function and sometimes a macro.
3903         (rpl_dup2): Move the Windows-specific stuff out of here and into
3904         ms_windows_dup2.  Don't protect the Haiku-related fix with
3905         "#if !defined __linux__", as the same code also works around
3906         a Linux kernel bug, and it doesn't add any system calls on any
3907         platform.  Add comment about FreeBSD 6.1.
3908
3909         sigprocmask: move #include directive
3910         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3911         Windows-specific section, so that the Emacs source need not
3912         contain msvc-inval.h.
3913
3914 2011-09-23  Bruno Haible  <bruno@clisp.org>
3915
3916         read: Support for MSVC 9.
3917         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3918         is not 1.
3919         * lib/read.c (read_nothrow): New function.
3920         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3921         read_nothrow.
3922         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3923         invalid parameter handler.
3924         (gl_PREREQ_READ): New macro.
3925         * modules/read (Depends-on): Add msvc-inval.
3926         (configure.ac): Invoke gl_PREREQ_READ.
3927         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3928
3929 2011-09-23  Bruno Haible  <bruno@clisp.org>
3930
3931         close: Support for MSVC 9.
3932         * lib/close.c: Include <errno.h>, msvc-inval.h.
3933         (close_nothrow): New function.
3934         (rpl_close): Use it.
3935         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3936         invalid parameter handler.
3937         * modules/close (Depends-on): Add msvc-inval.
3938         * modules/dup2-tests (Depends-on): Add close.
3939         * modules/dup3-tests (Depends-on): Likewise.
3940         * modules/fcntl-tests (Depends-on): Likewise.
3941         * modules/spawn-pipe-tests (Depends-on): Likewise.
3942         * modules/unistd-safer-tests (Depends-on): Likewise.
3943         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3944
3945 2011-09-23  Bruno Haible  <bruno@clisp.org>
3946
3947         New module 'dup'.
3948         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3949         Allow replacement.
3950         * lib/dup.c: New file.
3951         * lib/fchdir.c (rpl_dup): Remove function.
3952         * m4/dup.m4: New file.
3953         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3954         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3955         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3956         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3957         * modules/dup: New file.
3958         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3959         'dup' module is in use.
3960         * modules/fdopendir (Depends-on): Add dup.
3961         * modules/fdutimensat-tests (Depends-on): Likewise.
3962         * modules/fts (Depends-on): Likewise.
3963         * modules/futimens-tests (Depends-on): Likewise.
3964         * modules/posix_spawnp-tests (Depends-on): Likewise.
3965         * modules/unistd-safer-tests (Depends-on): Likewise.
3966         * modules/utimens-tests (Depends-on): Likewise.
3967         * doc/posix-functions/dup.texi: Mention the new module and the problem
3968         on MSVC.
3969
3970 2011-09-23  Bruno Haible  <bruno@clisp.org>
3971
3972         getdtablesize: Support for MSVC 9.
3973         * lib/getdtablesize.c: Include msvc-inval.h.
3974         (_setmaxstdio_nothrow): New function.
3975         (_setmaxstdio): Redefine it.
3976         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3977         * modules/getdtablesize (Depends-on): Add msvc-inval.
3978         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3979
3980 2011-09-23  Bruno Haible  <bruno@clisp.org>
3981
3982         signal-h: Rename from signal.
3983         * modules/signal-h: Renamed from modules/signal.
3984         * modules/pthread_sigmask (Depends-on): Update.
3985         * modules/raise (Depends-on): Likewise.
3986         * modules/sigaction (Depends-on): Likewise.
3987         * modules/sigpipe (Depends-on): Likewise.
3988         * modules/sigprocmask (Depends-on): Likewise.
3989         * modules/sys_select (Depends-on): Likewise.
3990         * modules/signal-h-tests: Renamed from modules/signal-tests.
3991         (Files, Depends-on, Makefile.am): Update.
3992         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3993         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3994         (Files, Makefile.am): Update.
3995         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3996         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3997         * modules/signal: New placeholder file.
3998         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3999         * doc/posix-headers/signal.texi: Update.
4000         * NEWS: Mention the change.
4001
4002 2011-09-23  Bruno Haible  <bruno@clisp.org>
4003
4004         sigprocmask: Avoid crashes through signal() on MSVC 9.
4005         * lib/sigprocmask.c: Include msvc-inval.h.
4006         (signal_nothrow): New function.
4007         (signal): Redefine it.
4008         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
4009         * modules/sigprocmask (Depends-on): Add msvc-inval.
4010         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
4011
4012 2011-09-23  Bruno Haible  <bruno@clisp.org>
4013
4014         Tests for module 'raise'.
4015         * modules/raise-tests: New file.
4016         * tests/test-raise.c: New file.
4017
4018         raise: Support for MSVC.
4019         * lib/signal.in.h (raise): New declaration.
4020         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
4021         for native Windows platforms.
4022         * m4/raise.m4: New file.
4023         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
4024         HAVE_RAISE, REPLACE_RAISE.
4025         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
4026         REPLACE_RAISE.
4027         * modules/raise (Status, Notice): Remove fields.
4028         (Files): Add m4/raise.m4.
4029         (Depends-on): Add signal, msvc-inval.
4030         (configure.ac): Use the common idioms.
4031         (Maintainer): Add me.
4032         * tests/test-signal-c++.cc: Check the signature of raise.
4033         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
4034
4035 2011-09-23  Bruno Haible  <bruno@clisp.org>
4036
4037         pipe2: Fix compilation on pre-C99 compilers.
4038         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
4039
4040 2011-09-23  Bruno Haible  <bruno@clisp.org>
4041
4042         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
4043         * lib/msvc-nothrow.h: New file.
4044         * lib/msvc-nothrow.c: New file.
4045         * m4/msvc-nothrow.m4: New file.
4046         * modules/msvc-nothrow: New file.
4047         * lib/dup2.c: Include msvc-nothrow.h.
4048         (rpl_dup2): No need to protect _get_osfhandle call here.
4049         * lib/accept4.c: Include msvc-nothrow.h.
4050         * lib/error.c: Likewise.
4051         * lib/fcntl.c: Likewise.
4052         * lib/lseek.c: Likewise.
4053         * lib/nonblocking.c: Likewise.
4054         * lib/poll.c: Likewise.
4055         * lib/read.c: Likewise.
4056         * lib/select.c: Likewise.
4057         * lib/sockets.h: Likewise.
4058         * lib/sockets.c: Likewise.
4059         * lib/stdio-read.c: Likewise.
4060         * lib/stdio-write.c: Likewise.
4061         * lib/write.c: Likewise.
4062         * lib/w32sock.h: Likewise.
4063         * lib/w32spawn.h: Likewise.
4064         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
4065         * lib/fsync.c: Likewise.
4066         * lib/isapipe.c: Likewise.
4067         * modules/dup2 (Depends-on): Add msvc-nothrow.
4068         * modules/accept4 (Depends-on): Likewise.
4069         * modules/error (Depends-on): Likewise.
4070         * modules/fcntl (Depends-on): Likewise.
4071         * modules/lseek (Depends-on): Likewise.
4072         * modules/nonblocking (Depends-on): Likewise.
4073         * modules/poll (Depends-on): Likewise.
4074         * modules/read (Depends-on): Likewise.
4075         * modules/select (Depends-on): Likewise.
4076         * modules/sockets (Depends-on): Likewise.
4077         * modules/sigpipe (Depends-on): Likewise.
4078         * modules/write (Depends-on): Likewise.
4079         * modules/accept (Depends-on): Likewise.
4080         * modules/bind (Depends-on): Likewise.
4081         * modules/connect (Depends-on): Likewise.
4082         * modules/gethostname (Depends-on): Likewise.
4083         * modules/getpeername (Depends-on): Likewise.
4084         * modules/getsockname (Depends-on): Likewise.
4085         * modules/getsockopt (Depends-on): Likewise.
4086         * modules/ioctl (Depends-on): Likewise.
4087         * modules/listen (Depends-on): Likewise.
4088         * modules/recv (Depends-on): Likewise.
4089         * modules/recvfrom (Depends-on): Likewise.
4090         * modules/send (Depends-on): Likewise.
4091         * modules/sendto (Depends-on): Likewise.
4092         * modules/setsockopt (Depends-on): Likewise.
4093         * modules/shutdown (Depends-on): Likewise.
4094         * modules/socket (Depends-on): Likewise.
4095         * modules/execute (Depends-on): Likewise.
4096         * modules/spawn-pipe (Depends-on): Likewise.
4097         * modules/flock (Depends-on): Likewise.
4098         * modules/fsync (Depends-on): Likewise.
4099         * modules/isapipe (Depends-on): Likewise.
4100         * tests/test-cloexec.c: Include msvc-nothrow.h.
4101         * tests/test-dup-safer.c: Likewise.
4102         * tests/test-dup2.c: Likewise.
4103         * tests/test-dup3.c: Likewise.
4104         * tests/test-fcntl.c: Likewise.
4105         * tests/test-pipe.c: Likewise.
4106         * tests/test-pipe2.c: Likewise.
4107         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
4108         * modules/unistd-safer-tests (Depends-on): Likewise.
4109         * modules/dup2-tests (Depends-on): Likewise.
4110         * modules/dup3-tests (Depends-on): Likewise.
4111         * modules/fcntl-tests (Depends-on): Likewise.
4112         * modules/pipe-posix-tests (Depends-on): Likewise.
4113         * modules/pipe2-tests (Depends-on): Likewise.
4114
4115 2011-09-23  Bruno Haible  <bruno@clisp.org>
4116
4117         dup2: Make code more maintainable.
4118         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
4119         (rpl_dup2): Use it.
4120         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
4121         * modules/dup2 (configure.ac): Invoke it.
4122         Reported by Paul Eggert.
4123
4124 2011-09-23  Bruno Haible  <bruno@clisp.org>
4125
4126         msvc-inval: Fix compilation error.
4127         * lib/msvc-inval.h: Include <excpt.h>.
4128
4129 2011-09-23  Bruno Haible  <bruno@clisp.org>
4130
4131         mkdir: Tweak for MSVC 9.
4132         * lib/sys_stat.in.h: Update comments.
4133         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
4134
4135         Tests for module 'chdir'.
4136         * modules/chdir-tests: New file.
4137         * tests/test-chdir.c: New file.
4138
4139         New module 'chdir'.
4140         * modules/chdir: New file.
4141         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
4142         (chdir): New declaration.
4143         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
4144         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
4145         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
4146         * tests/test-unistd-c++.cc: Check signature of chdir.
4147         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
4148         * modules/chdir-long (Depends-on): Add chdir.
4149         * modules/fchdir (Depends-on): Likewise.
4150         * modules/rename (Depends-on): Likewise.
4151         * modules/savewd (Depends-on): Likewise.
4152
4153         rmdir: Support for mingw, MSVC 9.
4154         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
4155         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
4156
4157         getcwd: Tweak for MSVC 9.
4158         * lib/unistd.in.h: Update comments.
4159         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
4160
4161 2011-09-22  Bruno Haible  <bruno@clisp.org>
4162
4163         strerror_r-posix: Avoid a link error on MSVC.
4164         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
4165         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
4166
4167 2011-09-22  Bruno Haible  <bruno@clisp.org>
4168
4169         select: Avoid link errors on MSVC.
4170         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
4171         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
4172         * modules/pselect (Link): Likewise.
4173         * NEWS: Mention the change.
4174         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
4175         test-select-stdin against $(LIB_SELECT).
4176         * modules/pselect-tests (Makefile.am): Link test-pselect against
4177         $(LIB_SELECT).
4178
4179 2011-09-22  Bruno Haible  <bruno@clisp.org>
4180
4181         select: Avoid compilation error on MSVC.
4182         * lib/select.c: Don't include <stdbool.h>.
4183
4184 2011-09-21  Bruno Haible  <bruno@clisp.org>
4185
4186         Consolidate all uses of PATH_MAX in *.m4 files.
4187         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
4188         macros.
4189         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
4190         and gl_PATHMAX_SNIPPET.
4191         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4192         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4193         * modules/chdir-long (Files): Add m4/pathmax.m4.
4194         * modules/getcwd (Files): Likewise.
4195
4196 2011-09-21  Bruno Haible  <bruno@clisp.org>
4197
4198         ftruncate: Un-deprecate, concentrate on Win32 support.
4199         * modules/ftruncate (Status, Notice): Remove sections.
4200         (Depends-on): Add largefile.
4201         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
4202         non-mingw platforms.
4203         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
4204         include <io.h>.
4205         * modules/perror-tests (Depends-on): Add ftruncate.
4206         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
4207         'ftruncate' module.
4208
4209 2011-09-21  Bruno Haible  <bruno@clisp.org>
4210
4211         Add dependencies to new dirent related modules.
4212         * modules/opendir (Depends-on): Add closedir.
4213         * modules/getcwd (Depends-on): Add opendir, closedir.
4214         * modules/dirent-safer-tests (Depends-on): Likewise.
4215         * modules/fdopendir-tests (Depends-on): Likewise.
4216         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
4217         * modules/renameat-tests (Depends-on): Likewise.
4218
4219 2011-09-21  Bruno Haible  <bruno@clisp.org>
4220
4221         opendir: Avoid compilation error on mingw.
4222         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
4223         * modules/opendir (Depends-on): Add unistd.
4224
4225 2011-09-21  Bruno Haible  <bruno@clisp.org>
4226
4227         ftruncate tests: Avoid a test failure on mingw.
4228         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
4229
4230 2011-09-21  Bruno Haible  <bruno@clisp.org>
4231
4232         select tests: Avoid test failures on OSF/1 5.1 and mingw.
4233         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
4234         native Windows.
4235
4236 2011-09-21  Bruno Haible  <bruno@clisp.org>
4237
4238         New module 'fdopen'.
4239         * lib/stdio.in.h (fdopen): New declaration.
4240         * lib/fdopen.c: New file.
4241         * m4/fdopen.m4: New file.
4242         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
4243         REPLACE_FDOPEN.
4244         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
4245         REPLACE_FDOPEN.
4246         * modules/fdopen: New file.
4247         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
4248         * tests/test-stdio-c++.cc: Check signature of fdopen.
4249         * doc/posix-functions/fdopen.texi: Mention the new module.
4250
4251 2011-09-21  Bruno Haible  <bruno@clisp.org>
4252
4253         unlockpt tests: Avoid test failure on NetBSD 5.1.
4254         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
4255         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
4256
4257 2011-09-21  Bruno Haible  <bruno@clisp.org>
4258
4259         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
4260         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
4261         * tests/test-getlogin_r.c (main): Likewise.
4262
4263 2011-09-20  Bruno Haible  <bruno@clisp.org>
4264
4265         time tests: Don't require pid_t.
4266         * doc/posix-headers/time.texi: Revert last change.
4267         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
4268         * tests/test-time.c: Comment out the check for pid_t.
4269
4270 2011-09-20  Bruno Haible  <bruno@clisp.org>
4271
4272         fsync tests: Avoid a test failure on mingw.
4273         * tests/test-fsync.c (main): Allow a failure with EIO.
4274
4275 2011-09-20  Bruno Haible  <bruno@clisp.org>
4276
4277         euidaccess: Update comments.
4278         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
4279
4280 2011-09-20  Bruno Haible  <bruno@clisp.org>
4281
4282         Ensure EBADF returns for socket functions on mingw.
4283         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
4284         descriptor is invalid.
4285         * lib/bind.c (rpl_bind): Likewise.
4286         * lib/connect.c (rpl_connect): Likewise.
4287         * lib/getpeername.c (rpl_getpeername): Likewise.
4288         * lib/getsockname.c (rpl_getsockname): Likewise.
4289         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4290         * lib/listen.c (rpl_listen): Likewise.
4291         * lib/recv.c (rpl_recv): Likewise.
4292         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4293         * lib/send.c (rpl_send): Likewise.
4294         * lib/sendto.c (rpl_sendto): Likewise.
4295         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4296         * lib/shutdown.c (rpl_shutdown): Likewise.
4297
4298 2011-09-20  Bruno Haible  <bruno@clisp.org>
4299
4300         select tests: EBADF tests.
4301         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
4302         test_bad_fd): New functions.
4303         (test_function): Invoke also test_bad_fd.
4304
4305 2011-09-20  Bruno Haible  <bruno@clisp.org>
4306
4307         Tests for module 'posix_spawn_file_actions_addopen.
4308         * modules/posix_spawn_file_actions_addopen-tests: New file.
4309         * tests/test-posix_spawn_file_actions_addopen.c: New file.
4310
4311         Tests for module 'posix_spawn_file_actions_adddup2'.
4312         * modules/posix_spawn_file_actions_adddup2-tests: New file.
4313         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
4314
4315         Tests for module 'posix_spawn_file_actions_addclose'.
4316         * modules/posix_spawn_file_actions_addclose-tests: New file.
4317         * tests/test-posix_spawn_file_actions_addclose.c: New file.
4318
4319 2011-09-20  Bruno Haible  <bruno@clisp.org>
4320
4321         Tests for module 'unlockpt'.
4322         * modules/unlockpt-tests: New file.
4323         * tests/test-unlockpt.c: New file.
4324         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
4325
4326         Tests for module 'grantpt'.
4327         * modules/grantpt-tests: New file.
4328         * tests/test-grantpt.c: New file.
4329         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
4330
4331 2011-09-20  Bruno Haible  <bruno@clisp.org>
4332
4333         freopen tests: EBADF tests.
4334         * tests/test-freopen.c: Include errno.h, unistd.h.
4335         (main): Add tests for EBADF, commented out for the moment.
4336
4337         fclose tests: EBADF tests.
4338         * tests/test-fclose.c (main): Add tests for EBADF.
4339
4340         fflush tests: EBADF tests.
4341         * tests/test-fflush.c: Include errno.h, macros.h.
4342         (main): Add tests for EBADF.
4343
4344         ftello tests: EBADF tests.
4345         * tests/test-ftello4.sh: New file.
4346         * tests/test-ftello4.c: New file.
4347         * modules/ftello-tests (Files): Add them.
4348         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
4349
4350         fseeko tests: EBADF tests.
4351         * tests/test-fseeko4.sh: New file.
4352         * tests/test-fseeko4.c: New file.
4353         * modules/fseeko-tests (Files): Add them.
4354         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
4355
4356         Tests for function fputc().
4357         * modules/fputc-tests: New file.
4358         * tests/test-fputc.c: New file.
4359         * modules/stdio-tests (Depends-on): Add fputc-tests.
4360
4361         Tests for function fgetc().
4362         * modules/fgetc-tests: New file.
4363         * tests/test-fgetc.c: New file.
4364         * modules/stdio-tests (Depends-on): Add fgetc-tests.
4365
4366         Tests for function fdopen().
4367         * modules/fdopen-tests: New file.
4368         * tests/test-fdopen.c: New file.
4369         * modules/stdio-tests (Depends-on): Add fdopen-tests.
4370
4371         Tests for module 'vdprintf'.
4372         * modules/vdprintf-tests: New file.
4373         * tests/test-vdprintf.c: New file.
4374
4375         Tests for module 'dprintf'.
4376         * modules/dprintf-tests: New file.
4377         * tests/test-dprintf.c: New file.
4378
4379 2011-09-20  Bruno Haible  <bruno@clisp.org>
4380
4381         Tests for module 'ioctl'.
4382         * modules/ioctl-tests: New file.
4383         * tests/test-ioctl.c: New file.
4384
4385 2011-09-20  Bruno Haible  <bruno@clisp.org>
4386
4387         fcntl tests: EBADF tests.
4388         * tests/test-fcntl.c (main): Add more tests for EBADF.
4389
4390 2011-09-20  Bruno Haible  <bruno@clisp.org>
4391
4392         utimensat tests: EBADF tests.
4393         * tests/test-utimensat.c (main): Add tests for EBADF.
4394
4395         renameat tests: EBADF tests.
4396         * tests/test-renameat.c (main): Add tests for EBADF.
4397
4398         mkfifoat tests: EBADF tests.
4399         * tests/test-mkfifoat.c (main): Add tests for EBADF.
4400
4401         readlinkat tests: EBADF tests.
4402         * tests/test-readlinkat.c (main): Add tests for EBADF.
4403
4404         symlinkat tests: EBADF tests.
4405         * tests/test-symlinkat.c (main): Add tests for EBADF.
4406
4407         linkat tests: EBADF tests.
4408         * tests/test-linkat.c (main): Add tests for EBADF.
4409
4410         Tests for module 'faccessat'.
4411         * modules/faccessat-tests: New file.
4412         * tests/test-faccessat.c: New file.
4413
4414         fdopendir tests: EBADF tests.
4415         * tests/test-fdopendir.c (main): Add more tests for EBADF.
4416
4417         openat tests: EBADF tests.
4418         * tests/test-fchownat.c (main): Add tests for EBADF.
4419         * tests/test-fstatat.c (main): Likewise.
4420         * tests/test-mkdirat.c (main): Likewise.
4421         * tests/test-openat.c (main): Likewise.
4422         * tests/test-unlinkat.c (main): Likewise.
4423         * tests/test-fchmodat.c: New file.
4424         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
4425         (Makefile.am): Also run 'test-fchmodat'.
4426
4427 2011-09-20  Bruno Haible  <bruno@clisp.org>
4428
4429         utimens, futimens, fdutimensat tests: EBADF tests.
4430         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
4431
4432         Tests for function fstat().
4433         * modules/fstat-tests: New file.
4434         * tests/test-fstat.c: New file.
4435         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
4436
4437 2011-09-20  Bruno Haible  <bruno@clisp.org>
4438
4439         test-ttyname_r tests: EBADF tests.
4440         * tests/test-ttyname_r.c (main): Add tests for EBADF.
4441
4442         Tests for module 'isatty'.
4443         * modules/isatty-tests: New file.
4444         * tests/test-isatty.c: New file.
4445
4446         Tests for module 'write'.
4447         * modules/write-tests: New file.
4448         * tests/test-write.c: New file.
4449
4450         Tests for module 'read'.
4451         * modules/read-tests: New file.
4452         * tests/test-read.c: New file.
4453
4454         pwrite tests: EBADF tests.
4455         * tests/test-pwrite.c (main): Add tests for EBADF.
4456
4457         pread tests: EBADF tests.
4458         * tests/test-pread.c (main): Add tests for EBADF.
4459
4460         lseek tests: EBADF tests.
4461         * tests/test-lseek.c (main): Add more tests for EBADF.
4462
4463         Tests for module 'ftruncate'.
4464         * modules/ftruncate-tests: New file.
4465         * tests/test-ftruncate.sh: New file.
4466         * tests/test-ftruncate.c: New file.
4467
4468         fsync tests: EBADF tests.
4469         * tests/test-fsync.c (main): Add more tests for EBADF.
4470
4471         fdatasync tests: EBADF tests.
4472         * tests/test-fdatasync.c (main): Add more tests for EBADF.
4473
4474         Tests for module 'fchown'.
4475         * modules/fchown-tests: New file.
4476         * tests/test-fchown.c: New file.
4477
4478         Tests for module 'fchmod'.
4479         * modules/fchmod-tests: New file.
4480         * tests/test-fchmod.c: New file.
4481
4482         fchdir tests: EBADF tests.
4483         * tests/test-fchdir.c (main): Add more tests for EBADF.
4484
4485         dup2 tests: EBADF tests.
4486         * tests/test-dup2.c (main): Add more tests for EBADF.
4487
4488         Tests for module 'dup'.
4489         * modules/dup-tests: New file.
4490         * tests/test-dup.c: New file.
4491
4492         Tests for module 'close'.
4493         * modules/close-tests: New file.
4494         * tests/test-close.c: New file.
4495
4496 2011-09-20  Bruno Haible  <bruno@clisp.org>
4497
4498         Tests for module 'shutdown'.
4499         * modules/shutdown-tests: New file.
4500         * tests/test-shutdown.c: New file.
4501
4502         Tests for module 'setsockopt'.
4503         * modules/setsockopt-tests: New file.
4504         * tests/test-setsockopt.c: New file.
4505
4506         Tests for module 'sendto'.
4507         * modules/sendto-tests: New file.
4508         * tests/test-sendto.c: New file.
4509
4510         Tests for module 'send'.
4511         * modules/send-tests: New file.
4512         * tests/test-send.c: New file.
4513
4514         Tests for module 'recvfrom'.
4515         * modules/recvfrom-tests: New file.
4516         * tests/test-recvfrom.c: New file.
4517
4518         Tests for module 'recv'.
4519         * modules/recv-tests: New file.
4520         * tests/test-recv.c: New file.
4521
4522         Tests for module 'listen'.
4523         * modules/listen-tests: New file.
4524         * tests/test-listen.c: New file.
4525
4526         Tests for module 'getsockopt'.
4527         * modules/getsockopt-tests: New file.
4528         * tests/test-getsockopt.c: New file.
4529
4530         Tests for module 'getsockname'.
4531         * modules/getsockname-tests: New file.
4532         * tests/test-getsockname.c: New file.
4533
4534         Tests for module 'getpeername'.
4535         * modules/getpeername-tests: New file.
4536         * tests/test-getpeername.c: New file.
4537
4538         Tests for module 'connect'.
4539         * modules/connect-tests: New file.
4540         * tests/test-connect.c: New file.
4541
4542         Tests for module 'bind'.
4543         * modules/bind-tests: New file.
4544         * tests/test-bind.c: New file.
4545
4546         accept4 tests: Fix for native Windows.
4547         * tests/test-accept4.c: Include sockets.h.
4548         (main): Invoke gl_sockets_startup.
4549         * modules/accept4-tests (Depends-on): Add sockets.
4550
4551         accept tests: Fix for native Windows.
4552         * tests/test-accept.c: Include sockets.h.
4553         (main): Invoke gl_sockets_startup.
4554         * modules/accept-tests (Depends-on): Add sockets.
4555
4556 2011-09-19  Bruno Haible  <bruno@clisp.org>
4557
4558         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
4559         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
4560         do...while(0).
4561         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
4562         Suggested by Paul Eggert.
4563
4564 2011-09-19  Bruno Haible  <bruno@clisp.org>
4565
4566         sched: Ensure pid_t is defined.
4567         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
4568         not define pid_t.
4569         * lib/sched.in.h: Include <sys/types.h>.
4570         * doc/posix-headers/sched.texi: Mention the pid_t problem.
4571         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4572
4573 2011-09-19  Bruno Haible  <bruno@clisp.org>
4574
4575         msvc-inval: Ensure the entire expansion is a single statement.
4576         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
4577         of braces.
4578
4579 2011-09-19  Jim Meyering  <meyering@redhat.com>
4580
4581         tests: use printf, not echo in init.sh's warn_ function
4582         * tests/init.sh (warn_): Use printf, not echo.  The latter would
4583         misbehave when given strings containing a backslash or starting
4584         with e.g., -n.  James Youngman suggested setting IFS.
4585
4586 2011-09-19  Eric Blake  <eblake@redhat.com>
4587
4588         futimens: enhance test
4589         * tests/test-futimens.h (test_futimens): Also check for EBADF on
4590         closed non-negative fd.
4591
4592         date: accept 'hence' as opposite of 'ago'
4593         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
4594         * tests/test-parse-datetime.c (main): Enhance test.
4595         Suggested by Jesse Wilson.
4596
4597 2011-09-19  Jim Meyering  <meyering@redhat.com>
4598
4599         getcwd: don't fail in a deep directory on a system without openat
4600         Before this change, getcwd would fail when called from a directory
4601         of depth PATH_MAX / 3 or greater.  That was due to the fact that
4602         the non-openat implementation used "..", "../..", "../../..", etc.
4603         to access ancestor directories.  With too many, that string would
4604         be longer than PATH_MAX.
4605         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
4606         using gnulib's openat replacement.
4607         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
4608         we're using the replacement function.
4609
4610 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
4611
4612         maint.mk: avoid warnings from perl about missing files
4613         * top/maint.mk (def_sym_regex): Ignore files listed in
4614         $(gl_other_headers_) that do not exist, say because a project
4615         does not use a corresponding module.
4616
4617 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4618
4619         stat: use pathmax.h only if needed
4620         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
4621         This is better for Emacs, which does not have a mingw port and
4622         therefore can avoid the pathmax module.
4623
4624         utimens: remove dependency on dup2
4625         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
4626         to work around the Linux kernel bug.
4627         * modules/utimens (Depends-on): Remove dup2.
4628
4629 2011-09-18  Bruno Haible  <bruno@clisp.org>
4630
4631         inet_ntop, inet_pton: Look for it also in libresolv.
4632         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
4633         libnsl, search for it in libresolv.
4634         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4635         Needed on Solaris 7.
4636
4637 2011-09-18  Bruno Haible  <bruno@clisp.org>
4638
4639         accept, accept4 tests: Avoid link error on Solaris.
4640         * modules/accept-tests (Makefile.am): Link test-accept against
4641         $(LIBSOCKET).
4642         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4643         $(LIBSOCKET).
4644
4645         accept4: Avoid link error on Solaris.
4646         * modules/accept4 (Link): New section.
4647
4648         socket functions: Avoid link errors on Solaris.
4649         * modules/accept (Depends-on): Add socketlib.
4650         (Link): New section.
4651         * modules/bind (Depends-on): Add socketlib.
4652         (Link): New section.
4653         * modules/connect (Depends-on): Add socketlib.
4654         (Link): New section.
4655         * modules/getpeername (Depends-on): Add socketlib.
4656         (Link): New section.
4657         * modules/getsockname (Depends-on): Add socketlib.
4658         (Link): New section.
4659         * modules/getsockopt (Depends-on): Add socketlib.
4660         (Link): New section.
4661         * modules/listen (Depends-on): Add socketlib.
4662         (Link): New section.
4663         * modules/recv (Depends-on): Add socketlib.
4664         (Link): New section.
4665         * modules/recvfrom (Depends-on): Add socketlib.
4666         (Link): New section.
4667         * modules/send (Depends-on): Add socketlib.
4668         (Link): New section.
4669         * modules/sendto (Depends-on): Add socketlib.
4670         (Link): New section.
4671         * modules/setsockopt (Depends-on): Add socketlib.
4672         (Link): New section.
4673         * modules/shutdown (Depends-on): Add socketlib.
4674         (Link): New section.
4675         * modules/socket (Depends-on): Add socketlib.
4676         (Link): New section.
4677
4678 2011-09-18  Bruno Haible  <bruno@clisp.org>
4679
4680         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4681         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4682         than 5 seconds.
4683         * modules/ptsname-tests (configure.ac): Test for alarm.
4684
4685 2011-09-18  Bruno Haible  <bruno@clisp.org>
4686
4687         posix_spawn_file_actions_add*: Fix module dependencies.
4688         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4689         posix_spawn_file_actions_init.
4690         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
4691         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
4692
4693 2011-09-18  Bruno Haible  <bruno@clisp.org>
4694
4695         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
4696         * tests/test-rename.h (test_rename): Allow error code EEXIST.
4697         * tests/test-renameat.c (main): Likewise.
4698
4699 2011-09-18  Bruno Haible  <bruno@clisp.org>
4700
4701         Tests for module 'accept4'.
4702         * modules/accept4-tests: New file.
4703         * tests/test-accept4.c: New file.
4704
4705 2011-09-18  Bruno Haible  <bruno@clisp.org>
4706
4707         Tests for module 'accept'.
4708         * modules/accept-tests: New file.
4709         * tests/test-accept.c: New file.
4710
4711 2011-09-18  Bruno Haible  <bruno@clisp.org>
4712
4713         dup2: Support for MSVC.
4714         * lib/dup2.c: Include msvc-inval.h.
4715         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4716         _get_osfhandle calls.
4717         * modules/dup2 (Depends-on): Add msvc-inval.
4718         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4719
4720         New module 'msvc-inval'.
4721         * lib/msvc-inval.h: New file.
4722         * lib/msvc-inval.c: New file.
4723         * m4/msvc-inval.m4: New file.
4724         * modules/msvc-inval: New file.
4725
4726 2011-09-17  Bruno Haible  <bruno@clisp.org>
4727
4728         Tests for module 'pclose'.
4729         * modules/pclose-tests: New file.
4730
4731         New module 'pclose'.
4732         * lib/stdio.in.h (pclose): New declaration.
4733         * lib/pclose.c: New file.
4734         * m4/pclose.m4: New file.
4735         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
4736         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
4737         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
4738         * modules/pclose: New file.
4739         * modules/popen-tests (Depends-on): Add pclose.
4740         * modules/popen-safer-tests (Depends-on): Likewise.
4741         * doc/posix-functions/pclose.texi: Mention the new module.
4742
4743 2011-09-17  Bruno Haible  <bruno@clisp.org>
4744
4745         popen: Support for MSVC.
4746         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
4747         * lib/popen.c (popen): Provide alternate definition for native Windows.
4748         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
4749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
4750         * modules/popen (Depends-on, configure.ac): Update condition.
4751         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
4752         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
4753         fixed.
4754
4755 2011-09-17  Bruno Haible  <bruno@clisp.org>
4756
4757         isnanl, isnand, isnanf: Work around MSVC bug.
4758         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4759
4760 2011-09-17  Bruno Haible  <bruno@clisp.org>
4761
4762         sys_socket tests: Fix recent mistake.
4763         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4764
4765 2011-09-17  Bruno Haible  <bruno@clisp.org>
4766
4767         putenv: Support for MSVC.
4768         * modules/putenv (Depends-on): Add environ.
4769         * lib/putenv.c (environ): Disable declaration.
4770         * lib/unistd.in.h: Update comment.
4771
4772 2011-09-17  Bruno Haible  <bruno@clisp.org>
4773
4774         math: Avoid macro redefinition warnings on MSVC.
4775         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4776         Undefine before redefining.
4777
4778 2011-09-17  Bruno Haible  <bruno@clisp.org>
4779
4780         doc: Mention functions which are declared as macros.
4781         * doc/posix-functions/*[fl].texi: Mention that some functions are
4782         defined as macros with arguments only.
4783
4784 2011-09-17  Bruno Haible  <bruno@clisp.org>
4785
4786         Add dependencies to new dirent related modules.
4787         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4788         * modules/fts (Depends-on): Likewise.
4789         * modules/glob (Depends-on): Likewise.
4790         * modules/savedir (Depends-on): Likewise.
4791         * modules/scandir (Depends-on): Likewise.
4792         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4793         * modules/fdopendir (Depends-on): Add opendir.
4794
4795 2011-09-17  Bruno Haible  <bruno@clisp.org>
4796
4797         inet_pton: Support for MSVC on Windows Vista or newer.
4798         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
4799         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
4800         HAVE_DECL_INET_PTON is defined.
4801         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4802         On platforms with <winsock2.h>, test whether inet_pton is declared in
4803         <ws2tcpip.h>. If so, arrange to replace it.
4804         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4805         REPLACE_INET_PTON.
4806         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
4807         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
4808         (Depends-on, configure.ac): Update condition.
4809         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4810
4811 2011-09-17  Bruno Haible  <bruno@clisp.org>
4812
4813         inet_ntop: Support for MSVC on Windows Vista or newer.
4814         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4815         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4816         HAVE_DECL_INET_NTOP is defined.
4817         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4818         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4819         <ws2tcpip.h>. If so, arrange to replace it.
4820         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4821         REPLACE_INET_NTOP.
4822         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4823         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4824         (Depends-on, configure.ac): Update condition.
4825         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4826
4827 2011-09-16  Eric Blake  <eblake@redhat.com>
4828
4829         test-fsync: yet another enhancement
4830         * tests/test-fsync.c (main): Also test behavior on read-only text
4831         file.
4832
4833 2011-09-16  Bruno Haible  <bruno@clisp.org>
4834
4835         Enhance fsync, fdatasync tests.
4836         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4837         * tests/test-fdatasync.c (main): Likewise.
4838
4839 2011-09-16  Bruno Haible  <bruno@clisp.org>
4840
4841         Support for MSVC compiler: Ensure mode_t gets defined.
4842         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4843         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4844         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4845         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4846         * tests/test-fcntl-h.c: Check that mode_t is defined.
4847         * tests/test-sys_stat.c: Likewise.
4848         * tests/test-sys_types.c: Likewise.
4849         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4850         * doc/posix-headers/sys_stat.texi: Likewise.
4851         * doc/posix-headers/sys_types.texi: Likewise.
4852
4853 2011-09-16  Bruno Haible  <bruno@clisp.org>
4854
4855         sys_stat: Support for MSVC.
4856         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4857         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4858         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4859         MSVC.
4860
4861 2011-09-16  Bruno Haible  <bruno@clisp.org>
4862
4863         Support for MSVC compiler: Ensure off_t gets defined.
4864         * lib/unistd.in.h: Include <sys/types.h>.
4865         * tests/test-fcntl-h.c: Check that off_t is defined.
4866         * tests/test-sys_stat.c: Likewise.
4867         * tests/test-sys_types.c: Likewise.
4868
4869 2011-09-16  Eric Blake  <eblake@redhat.com>
4870
4871         fdatasync: port to Solaris
4872         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4873         * modules/fdatasync (Link): Document it.
4874         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4875
4876         fdatasync: port to MacOS X 10.7
4877         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4878         declared.
4879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4880         * modules/unistd (Makefile.am): Substitute it.
4881         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4882         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4883
4884         fdatasync: minor improvements
4885         * modules/fdatasync (Depends-on): Add condition for fsync.
4886         * lib/fdatasync.c (fdatasync): Add comment.
4887         * tests/test-unistd-c++.cc: Test fdatasync.
4888
4889         unistd: update refs to newer POSIX
4890         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4891         Suggested by Bruno Haible.
4892
4893         fdatasync: new module
4894         * modules/fsync (Description): Document difference to fdatasync.
4895         * modules/fdatasync: New module.
4896         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4897         * lib/fdatasync.c (fdatasync): Likewise.
4898         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4899         defaults.
4900         * modules/unistd (Makefile.am): Set witnesses.
4901         * lib/unistd.in.h (fdatasync): Declare.
4902         * MODULES.html.sh: Document it.
4903         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4904         * modules/fdatasync-tests: New test.
4905         * tests/test-fdatasync.c: Likewise.
4906
4907 2011-09-16  Eric Blake  <eblake@redhat.com>
4908
4909         test-fsync: enhance tests
4910         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4911         * tests/test-fsync.c (main): Enhance test.
4912
4913 2011-09-15  Bruno Haible  <bruno@clisp.org>
4914
4915         Support for MSVC compiler: Ensure ssize_t gets defined.
4916         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4917         * doc/posix-headers/stdio.texi: Likewise.
4918         * modules/stdio (Depends-on): Add ssize_t.
4919         * modules/sys_socket (Depends-on): Likewise.
4920         * modules/sys_types (Depends-on): Likewise.
4921         * modules/sys_uio (Depends-on): Likewise.
4922         * modules/unistd (Depends-on): Likewise.
4923         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4924         * tests/test-sys_types.c: Check that ssize_t is defined.
4925
4926 2011-09-14  Bruno Haible  <bruno@clisp.org>
4927
4928         Avoid using #, the m4 comment starter character, near brackets.
4929         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4930         delimiter character in sed expressions.
4931         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4932         Suggested by Eric Blake.
4933
4934         Properly quote AC_CHECK_DECLS' 4th argument.
4935         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4936         argument.
4937         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4938         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4939         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4940         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4941         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4942         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4943         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4944         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4945         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4946         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4947         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4948         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4949         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4950         * m4/isinf.m4 (gl_ISINF): Likewise.
4951         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4952         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4953         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4954         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4955         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4956         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4957         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4958         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4959         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4960         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4961         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4962         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4963         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4964         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4965         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4966         Reported by Eric Blake.
4967
4968         Properly quote AC_CHECK_DECL's 4th argument.
4969         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4970         argument.
4971         * m4/argp.m4 (gl_ARGP): Likewise.
4972         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4973         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4974         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4975         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4976         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4977         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4978         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4979         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4980         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4981         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4982         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4983         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4984         Reported by Eric Blake.
4985
4986 2011-09-14  Eric Blake  <eblake@redhat.com>
4987
4988         opendir: avoid compile warning
4989         * lib/opendir.c (includes): Always include errno.h.
4990         Reported by Tatsuro MATSUOKA.
4991
4992 2011-09-14  Jim Meyering  <meyering@redhat.com>
4993
4994         maint.mk: sc_tight_scope: propagate failure from sub-make
4995         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4996         Reported by Martin von Gagern.
4997
4998 2011-09-13  Bruno Haible  <bruno@clisp.org>
4999
5000         tempname: Support for MSVC.
5001         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
5002         MSVC.
5003         * modules/tempname (Depends-on): Add fcntl-h.
5004
5005 2011-09-13  Bruno Haible  <bruno@clisp.org>
5006
5007         sys_time: Support for MSVC.
5008         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
5009         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
5010         include <winsock2.h>.
5011         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
5012         function declarations that collide with POSIX.
5013         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
5014         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5015
5016 2011-09-13  Bruno Haible  <bruno@clisp.org>
5017
5018         stat: Support for MSVC.
5019         * lib/stat.c: Include pathmax.h.
5020         * modules/stat (Depends-on): Add pathmax.
5021
5022         pathmax: Support for native Windows.
5023         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
5024
5025 2011-09-12  Bruno Haible  <bruno@clisp.org>
5026
5027         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
5028         * lib/dirent.in.h (struct dirent): New type.
5029         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
5030         DT_WHT): New macros.
5031         (DIR): New type.
5032         (opendir, closedir): Declare only if the module 'opendir' is enabled.
5033         (readdir, rewinddir): New declarations.
5034         * lib/dirent-private.h: New file.
5035         * lib/opendir.c: New file.
5036         * lib/readdir.c: New file.
5037         * lib/rewinddir.c: New file.
5038         * lib/closedir.c: New file.
5039         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
5040         * m4/opendir.m4: New file.
5041         * m4/readdir.m4: New file.
5042         * m4/rewinddir.m4: New file.
5043         * m4/closedir.m4: New file.
5044         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
5045         REPLACE_CLOSEDIR here.
5046         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
5047         readdir, rewinddir are declared.
5048         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
5049         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
5050         HAVE_REWINDDIR, HAVE_CLOSEDIR.
5051         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
5052         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
5053         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
5054         * modules/opendir: New file.
5055         * modules/readdir: New file.
5056         * modules/rewinddir: New file.
5057         * modules/closedir: New file.
5058         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
5059         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
5060         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
5061         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
5062         * NEWS: Mention the 'fchdir' change.
5063
5064 2011-09-11  Bruno Haible  <bruno@clisp.org>
5065
5066         asm-underscore.m4: Support for MSVC.
5067         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
5068         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
5069
5070 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
5071
5072         Doc about crypt functions.
5073         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5074         needing for _GNU_SOURCE to get crypt.
5075         * doc/posix-functions/encrypt.texi: Likewise.
5076         * doc/posix-functions/setkey.texi: Likewise.
5077
5078 2011-09-11  Bruno Haible  <bruno@clisp.org>
5079
5080         doc: Update regarding MSVC 9.
5081         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
5082         tested".
5083         * doc/posix-functions/*.texi: Update with info about MSVC 9.
5084         * doc/posix-headers/*.texi: Likewise.
5085         * doc/pastposix-functions/*.texi: Likewise.
5086         * doc/glibc-functions/*.texi: Likewise.
5087         * doc/glibc-headers/*.texi: Likewise.
5088
5089 2011-09-11  Bruno Haible  <bruno@clisp.org>
5090
5091         unistd et al.: Don't assume <unistd.h> exists.
5092         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
5093         does not exist.
5094         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
5095         exist. But include <stdlib.h>.
5096         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
5097         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
5098         symlink() does not exist.
5099         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
5100         include <io.h> instead.
5101         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
5102         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
5103         include <direct.h> instead.
5104         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5105         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5106         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
5107         <io.h> instead.
5108         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
5109         correctly if the system does not have hard links.
5110         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
5111         <direct.h> instead.
5112         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
5113         it when looking for function declarations.
5114         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
5115         <direct.h> and <io.h> instead.
5116         * doc/posix-headers/unistd.texi: More details about MSVC problem.
5117
5118 2011-09-11  Bruno Haible  <bruno@clisp.org>
5119
5120         strcase: Support for MSVC.
5121         * modules/strcase (Status, Notice): Remove obsoletion mark.
5122         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
5123         * doc/posix-functions/strncasecmp.texi: Likewise.
5124
5125         strings: Don't assume <strings.h> exists.
5126         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
5127         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
5128         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
5129         * doc/posix-headers/strings.texi: Mention the MSVC problem.
5130
5131 2011-09-11  Bruno Haible  <bruno@clisp.org>
5132
5133         dirent: Don't assume <dirent.h> exists.
5134         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
5135         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
5136         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
5137         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
5138
5139 2011-09-11  Bruno Haible  <bruno@clisp.org>
5140
5141         Fix wint_t on MSVC.
5142         * lib/wchar.in.h (wint_t): On MSVC, override it.
5143         * lib/wctype.in.h (wint_t): Likewise.
5144         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
5145         MSVC.
5146         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
5147         * doc/posix-headers/wctype.texi: Likewise.
5148
5149 2011-09-11  Bruno Haible  <bruno@clisp.org>
5150
5151         sys_types: Fix typo.
5152         * lib/sys_types.in.h: Fix typo in comment.
5153         Reported by Paul Eggert.
5154
5155         Support for MSVC compiler: Ensure size_t gets defined.
5156         * modules/strings (Depends-on): Add 'sys_types'.
5157         * modules/sys_uio (Depends-on): Likewise.
5158         * lib/sys_uio.in.h: Update comment.
5159
5160         C++ tests for module 'sys_types'.
5161         * modules/sys_types-c++-tests: New file.
5162         * tests/test-sys_types-c++.cc: New file.
5163
5164         Tests for module 'sys_types'.
5165         * modules/sys_types-tests: New file.
5166         * tests/test-sys_types.c: New file.
5167
5168         New module 'sys_types'.
5169         * lib/sys_types.in.h: New file.
5170         * m4/sys_types_h.m4: New file.
5171         * modules/sys_types: New file.
5172         * doc/posix-headers/sys_types.texi: Mention the new module and the
5173         size_t problem on MSVC 9.
5174
5175 2011-09-11  Bruno Haible  <bruno@clisp.org>
5176
5177         Support for MSVC compiler: Avoid division by a literal 0.
5178         * lib/math.in.h (NAN): Define through a function call also on MSVC.
5179         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
5180         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
5181         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
5182         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
5183         * tests/infinity.h: New file.
5184         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
5185         on MSVC.
5186         * tests/test-ceilf1.c: Include infinity.h.
5187         (main): Use Infinityf.
5188         * tests/test-ceil1.c: Include infinity.h.
5189         (main): Use Infinityd.
5190         * tests/test-ceill.c: Include infinity.h.
5191         (main): Use Infinityl.
5192         * tests/test-dprintf-posix.c: Include infinity.h.
5193         (test_function): Use Infinityd.
5194         * tests/test-floorf1.c: Include infinity.h.
5195         (main): Use Infinityf.
5196         * tests/test-floor1.c: Include infinity.h.
5197         (main): Use Infinityd.
5198         * tests/test-floorl.c: Include infinity.h.
5199         (main): Use Infinityl.
5200         * tests/test-fprintf-posix.c: Include infinity.h.
5201         (test_function): Use Infinityd.
5202         * tests/test-frexp.c: Include infinity.h.
5203         (main): Use Infinityd.
5204         * tests/test-frexpl.c: Include infinity.h.
5205         (main): Use Infinityl.
5206         * tests/test-isfinite.c: Include infinity.h.
5207         (test_isfinitef): Use Infinityf.
5208         (test_isfinited): Use Infinityd.
5209         (test_isfinitel): Use Infinityl.
5210         * tests/test-isinf.c: Include infinity.h.
5211         (test_isinff): Use Infinityf.
5212         (test_isinfd): Use Infinityd.
5213         (test_isinfl): Use Infinityl.
5214         * tests/test-isnan.c: Include infinity.h.
5215         (test_float): Use Infinityf.
5216         (test_double): Use Infinityd.
5217         (test_long_double): Use Infinityl.
5218         * tests/test-isnanf.h: Include infinity.h.
5219         (main): Use Infinityf.
5220         * tests/test-isnand.h: Include infinity.h.
5221         (main): Use Infinityd.
5222         * tests/test-isnanl.h: Include infinity.h.
5223         (main): Use Infinityl.
5224         * tests/test-ldexpl.c: Include infinity.h.
5225         (main): Use Infinityl.
5226         * tests/test-printf-posix.h: Include infinity.h.
5227         (test_function): Use Infinityd.
5228         * tests/test-roundf1.c: Include infinity.h.
5229         (main): Use Infinityf.
5230         * tests/test-round1.c: Include infinity.h.
5231         (main): Use Infinityd.
5232         * tests/test-roundl.c: Include infinity.h.
5233         (main): Use Infinityl.
5234         * tests/test-signbit.c: Include infinity.h.
5235         (test_signbitf): Use Infinityf.
5236         (test_signbitd): Use Infinityd.
5237         (test_signbitl): Use Infinityl.
5238         * tests/test-snprintf-posix.h: Include infinity.h.
5239         (test_function): Use Infinityd, Infinityl.
5240         * tests/test-sprintf-posix.h: Include infinity.h.
5241         (test_function): Use Infinityd, Infinityl.
5242         * tests/test-truncf1.c: Include infinity.h.
5243         (main): Use Infinityf.
5244         * tests/test-trunc1.c: Include infinity.h.
5245         (main): Use Infinityd.
5246         * tests/test-truncl.c: Include infinity.h.
5247         (main): Use Infinityl.
5248         * tests/test-vasnprintf-posix.c: Include infinity.h.
5249         (test_function): Use Infinityd, Infinityl.
5250         * tests/test-vasprintf-posix.c: Include infinity.h.
5251         (test_function): Use Infinityd, Infinityl.
5252         * modules/ceilf-tests (Files): Add tests/infinity.h.
5253         * modules/ceil-tests (Files): Likewise.
5254         * modules/ceill-tests (Files): Likewise.
5255         * modules/dprintf-posix-tests (Files): Likewise.
5256         * modules/floorf-tests (Files): Likewise.
5257         * modules/floor-tests (Files): Likewise.
5258         * modules/floorl-tests (Files): Likewise.
5259         * modules/fprintf-posix-tests (Files): Likewise.
5260         * modules/frexp-tests (Files): Likewise.
5261         * modules/frexp-nolibm-tests (Files): Likewise.
5262         * modules/frexpl-tests (Files): Likewise.
5263         * modules/frexpl-nolibm-tests (Files): Likewise.
5264         * modules/isfinite-tests (Files): Likewise.
5265         * modules/isinf-tests (Files): Likewise.
5266         * modules/isnan-tests (Files): Likewise.
5267         * modules/isnanf-tests (Files): Likewise.
5268         * modules/isnanf-nolibm-tests (Files): Likewise.
5269         * modules/isnand-tests (Files): Likewise.
5270         * modules/isnand-nolibm-tests (Files): Likewise.
5271         * modules/isnanl-tests (Files): Likewise.
5272         * modules/isnanl-nolibm-tests (Files): Likewise.
5273         * modules/ldexpl-tests (Files): Likewise.
5274         * modules/printf-posix-tests (Files): Likewise.
5275         * modules/roundf-tests (Files): Likewise.
5276         * modules/round-tests (Files): Likewise.
5277         * modules/roundl-tests (Files): Likewise.
5278         * modules/signbit-tests (Files): Likewise.
5279         * modules/snprintf-posix-tests (Files): Likewise.
5280         * modules/sprintf-posix-tests (Files): Likewise.
5281         * modules/truncf-tests (Files): Likewise.
5282         * modules/trunc-tests (Files): Likewise.
5283         * modules/truncl-tests (Files): Likewise.
5284         * modules/vasnprintf-posix-tests (Files): Likewise.
5285         * modules/vasprintf-posix-tests (Files): Likewise.
5286         * modules/vdprintf-posix-tests (Files): Likewise.
5287         * modules/vfprintf-posix-tests (Files): Likewise.
5288         * modules/vprintf-posix-tests (Files): Likewise.
5289         * modules/vsnprintf-posix-tests (Files): Likewise.
5290         * modules/vsprintf-posix-tests (Files): Likewise.
5291         * modules/xprintf-posix-tests (Files): Likewise.
5292
5293 2011-09-11  Bruno Haible  <bruno@clisp.org>
5294
5295         Ensure pid_t gets defined.
5296         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
5297         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5298         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5299         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5300         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5301         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5302         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
5303         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5304         * tests/test-fcntl-h.c: Check that pid_t is defined.
5305         * tests/test-sched.c: Likewise.
5306         * tests/test-termios.c: Likewise.
5307         * tests/test-time.c: Likewise.
5308         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
5309         * doc/posix-headers/signal.texi: Likewise.
5310         * doc/posix-headers/sys_types.texi: Likewise.
5311         * doc/posix-headers/time.texi: Likewise.
5312
5313 2011-09-11  Bruno Haible  <bruno@clisp.org>
5314
5315         acl: Fix compilation on Solaris 10 (older version).
5316         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
5317         of ACE_EVERYONE.
5318         * lib/set-mode-acl.c (qset_acl): Likewise.
5319         Reported by Christian Jullien <eligis@orange.fr>.
5320
5321 2011-09-10  Bruno Haible  <bruno@clisp.org>
5322
5323         iconv, unsetenv: Add support for MSVC compiler.
5324         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
5325         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
5326
5327 2011-09-10  Bruno Haible  <bruno@clisp.org>
5328
5329         *printf: Add support for MSVC compiler.
5330         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
5331         handles the exception caused by the %n directive. When cross-compiling,
5332         guess no on native Windows.
5333         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5334         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
5335         emulate it through vsnprintf.
5336         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
5337         * doc/posix-functions/dprintf.texi: Update documentation regarding
5338         MSVC 9.
5339         * doc/posix-functions/fprintf.texi: Likewise.
5340         * doc/posix-functions/printf.texi: Likewise.
5341         * doc/posix-functions/snprintf.texi: Likewise.
5342         * doc/posix-functions/sprintf.texi: Likewise.
5343         * doc/posix-functions/swprintf.texi: Likewise.
5344         * doc/posix-functions/vdprintf.texi: Likewise.
5345         * doc/posix-functions/vfprintf.texi: Likewise.
5346         * doc/posix-functions/vprintf.texi: Likewise.
5347         * doc/posix-functions/vsnprintf.texi: Likewise.
5348         * doc/posix-functions/vsprintf.texi: Likewise.
5349         * doc/glibc-functions/asprintf.texi: Likewise.
5350         * doc/glibc-functions/obstack_printf.texi: Likewise.
5351         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5352         * doc/glibc-functions/vasprintf.texi: Likewise.
5353
5354 2011-09-10  Bruno Haible  <bruno@clisp.org>
5355
5356         nocrash: Add support for native Windows.
5357         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
5358
5359 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
5360             Bruno Haible  <bruno@clisp.org>
5361
5362         absolute-header, include-next: Add support for MSVC compiler.
5363         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
5364         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
5365         directory separator in #line directives.
5366         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
5367         recognize also backslash as directory separator in #line directives.
5368
5369 2011-09-08  Jim Meyering  <meyering@redhat.com>
5370
5371         maint.mk: mark the post-release commit log with "maint: " prefix
5372         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
5373         one-line commit-log summary.
5374
5375 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
5376             Bruno Haible  <bruno@clisp.org>
5377
5378         Doc about crypt functions.
5379         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
5380         systems.
5381         * doc/posix-functions/encrypt.texi: Likewise.
5382         * doc/posix-functions/setkey.texi: Likewise.
5383
5384 2011-09-08  Simon Josefsson  <simon@josefsson.org>
5385
5386         * lib/gc.h: Fix copyright header.
5387
5388 2011-09-07  Bruno Haible  <bruno@clisp.org>
5389
5390         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
5391         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
5392         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
5393
5394 2011-09-07  Bruno Haible  <bruno@clisp.org>
5395
5396         openat: Work around compilation error with OSF/1 5.1 DTK cc.
5397         * lib/fopen.c: Use different syntax for include of <stdio.h>.
5398         * lib/freopen.c: Likewise.
5399         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
5400         * lib/lstat.c: Likewise.
5401         * lib/stat.c: Likewise.
5402         * lib/open.c: Use different syntax for include of <fcntl.h>.
5403         * lib/openat.c: Include fcntl.h again, explicitly.
5404
5405 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
5406
5407         parse-datetime: document the newly accepted format
5408         * doc/parse-datetime.texi (Combined date and time of day items):
5409         New section.
5410
5411 2011-09-06  Bruno Haible  <bruno@clisp.org>
5412
5413         acl: Fix a test failure on newer Solaris 10 with ZFS.
5414         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
5415         ENOSYS as no ACL.
5416         Reported by Jim Meyering.
5417
5418 2011-09-06  Bruno Haible  <bruno@clisp.org>
5419
5420         acl: Update for AIX >= 5.3 with NFS.
5421         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
5422         ENOSYS as no ACL.
5423
5424         acl: Fix a test failure on AIX >= 5.3 with NFS.
5425         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
5426         as no ACL.
5427
5428 2011-09-06  Bruno Haible  <bruno@clisp.org>
5429
5430         acl: Fix a test failure on IRIX 6.5 with NFS.
5431         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
5432         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
5433         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
5434         * lib/copy-acl.c (qcopy_acl): Likewise.
5435
5436 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5437
5438         openat: port to AIX 7.1 with large files
5439         AIX 7.1 does a "#define openat open64at" if large files are in use,
5440         so we can't simply #undef openat.  Use the orig_openat trick (similar
5441         to orig_open in lib/open.c) to work around the problem.  Problem
5442         reported by Kevin Brott for GNU tar, in the thread containing
5443         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
5444         * lib/openat.c (__need_system_fcntl_h): Define first.
5445         Include <fcntl.h> and <sys/types.h> before undefining.
5446         (orig_openat) [HAVE_OPENAT]: New inline function.
5447         (openat) [HAVE_OPENAT]: Do not undef.
5448         (rpl_openat): Use orig_openat, not openat.
5449
5450 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5451             Bruno Haible  <bruno@clisp.org>
5452
5453         acl: Avoid errors on NonStop Kernel.
5454         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
5455         ENOTSUP errors.
5456
5457 2011-09-05  Bruno Haible  <bruno@clisp.org>
5458
5459         acl: Clean up Solaris code.
5460         * lib/acl-internal.h: Remove no-op #if.
5461         * lib/file-has-acl.c: Likewise.
5462         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
5463         * lib/copy-acl.c (qcopy_acl): Likewise.
5464
5465 2011-09-05  Bruno Haible  <bruno@clisp.org>
5466
5467         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
5468         binaries built on the original Solaris 10.
5469         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
5470         trivial.
5471
5472 2011-09-05  Bruno Haible  <bruno@clisp.org>
5473
5474         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5475         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
5476         10.
5477         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
5478         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
5479         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
5480         instead of acl_get, facl_get, acl_set, facl_set.
5481
5482 2011-09-05  Bruno Haible  <bruno@clisp.org>
5483
5484         copy-file: Try unit tests on more file systems.
5485         * tests/test-copy-file-1.sh: New file.
5486         * tests/test-copy-file-2.sh: New file.
5487         * modules/copy-file-tests (Files): Add them.
5488         (Makefile.am): Add them to TESTS.
5489
5490         acl: Try unit tests on more file systems.
5491         * tests/test-file-has-acl-1.sh: New file.
5492         * tests/test-file-has-acl-2.sh: New file.
5493         * tests/test-set-mode-acl-1.sh: New file.
5494         * tests/test-set-mode-acl-2.sh: New file.
5495         * tests/test-copy-acl-1.sh: New file.
5496         * tests/test-copy-acl-2.sh: New file.
5497         * modules/acl-tests (Files): Add them.
5498         (Makefile.am): Add them to TESTS.
5499
5500 2011-09-04  Bruno Haible  <bruno@clisp.org>
5501
5502         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5503         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
5504         10.
5505         (OLD_ALLOW, OLD_DENY): New macros.
5506         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
5507         ACE_ACCESS_ALLOWED_ACE_TYPE.
5508         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
5509         ACE_ACCESS_DENIED_ACE_TYPE.
5510         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
5511         (NEW_ACE_EXECUTE): Fix value.
5512         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
5513         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
5514         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
5515         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
5516         NEW_ACE_SYNCHRONIZE): New macros.
5517         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
5518         instead of acl_fromtext, acl_set, facl_set.
5519         Fixes a coreutils/tests/cp/perm failure.
5520
5521 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5522
5523         openat: test for fstatat (..., 0) bug
5524         Further testing with tar suggests that fstatat (..., 0)
5525         does not work in general, on AIX 7.1; see
5526         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
5527         So, give up entirely on AIX 7.1's fstatat, and fall back on our
5528         replacement fstatat (which is what older AIX releases were using
5529         anyway).
5530         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
5531         use is now changed to orig_fstatat.  This was probably the right
5532         thing to do anyway.
5533         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
5534         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
5535         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
5536         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
5537         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
5538         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
5539         if the bug is found.
5540
5541         openat: test for fstatat (AT_FDCWD, ..., 0) bug
5542         This tests for another fstatat bug on AIX 7.1:
5543         fstatat (AT_FDCWD, ..., 0) does not work.  See
5544         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
5545         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
5546         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
5547         (rpl_fstatat): Adjust so that it works around either (or both)
5548         bugs if present.
5549         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
5550
5551 2011-09-03  Karl Berry  <karl@gnu.org>
5552
5553         * doc/regex.texi (Character Class Operators): Avoid literal ":"
5554         in index entries.
5555
5556 2011-09-02  Bruno Haible  <bruno@clisp.org>
5557
5558         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
5559         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
5560         values of AR, ARFLAGS, RANLIB.
5561         Reported by John W. Eaton <jwe@gnu.org> for Octave.
5562
5563 2011-09-02  Bruno Haible  <bruno@clisp.org>
5564
5565         Find 'ar' program that fits with --host argument.
5566         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
5567
5568 2011-09-02  Bruno Haible  <bruno@clisp.org>
5569
5570         tests: init.sh: Support any non-GNU diff.
5571         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
5572         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
5573         Solaris 8.
5574
5575 2011-09-02  Bruno Haible  <bruno@clisp.org>
5576
5577         tests: init.sh: work also with any non-GNU diff that supports -u
5578         * tests/init.sh: Relax check for diff -u support.
5579         Rather than checking for GNU diff via --version, simply check
5580         for support for -u itself.  Useful at least on OpenBSD 4.9,
5581         AIX 7.1, IRIX 6.5, and Solaris 10.
5582
5583 2011-09-01  Bruno Haible  <bruno@clisp.org>
5584
5585         strtoimax, strtoumax: Document problem on HP-UX 11.
5586         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
5587         * doc/posix-functions/strtoumax.texi: Likewise.
5588
5589 2011-09-01  Bruno Haible  <bruno@clisp.org>
5590
5591         strtoumax: Avoid link error on OSF/1 with DTK cc.
5592         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
5593         defined as a function.
5594         * modules/strtoumax (Depends-on, configure.ac): Test only whether
5595         strtoumax is defined, not whether it is declared.
5596
5597 2011-09-01  Bruno Haible  <bruno@clisp.org>
5598
5599         strtoimax: Avoid link error on OSF/1 with DTK cc.
5600         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
5601         defined as a function.
5602         * modules/strtoimax (Depends-on, configure.ac): Test only whether
5603         strtoimax is defined, not whether it is declared.
5604
5605 2011-09-01  Bruno Haible  <bruno@clisp.org>
5606
5607         imaxdiv: Avoid link error on OSF/1 with DTK cc.
5608         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
5609         as a function.
5610         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
5611         whether it is declared.
5612
5613 2011-09-01  Bruno Haible  <bruno@clisp.org>
5614
5615         imaxabs: Avoid link error on OSF/1 with DTK cc.
5616         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
5617         as a function.
5618         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
5619         whether it is declared.
5620
5621 2011-09-01  Bruno Haible  <bruno@clisp.org>
5622
5623         Tests for module 'strtoumax'.
5624         * modules/strtoumax-tests: New file.
5625         * tests/test-strtoumax.c: New file.
5626
5627         Tests for module 'strtoimax'.
5628         * modules/strtoimax-tests: New file.
5629         * tests/test-strtoimax.c: New file.
5630
5631         Tests for module 'imaxdiv'.
5632         * modules/imaxdiv-tests: New file.
5633         * tests/test-imaxdiv.c: New file.
5634
5635         Tests for module 'imaxabs'.
5636         * modules/imaxabs-tests: New file.
5637         * tests/test-imaxabs.c: New file.
5638
5639 2011-09-01  Bruno Haible  <bruno@clisp.org>
5640
5641         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
5642         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5643         pthread_create.
5644
5645 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5646
5647         openat: work around AIX 7.1 fstatat issue
5648         This should fix the problem that was not properly fixed
5649         in the previous change, dated 2011-08-30.
5650         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5651         __need_system_stat_h defined.
5652         (orig_fstatat) [HAVE_FSTATAT]: New function.
5653         (rpl_fstatat): Go back to the old way of doing things,
5654         except call orig_fstatat instead of fstatat.
5655         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5656         Remove unnecessary check whether fstatat fills in st_size etc.
5657
5658 2011-09-01  Bruno Haible  <bruno@clisp.org>
5659
5660         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5661         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5662         just include the system's header.
5663
5664 2011-08-31  Jim Meyering  <meyering@redhat.com>
5665
5666         tests: avoid spurious assertion failure in test-float.c on ppc64
5667         * tests/test-float.c (test_long_double): Comment out an assertion,
5668         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5669         with gcc-4.4.4.
5670
5671         maint: indent with spaces, not TABs
5672         I need to get in the habit of running gnulib's "make check".
5673         Both of these would have been caught.
5674         * m4/largefile.m4: Indent with spaces, not TABs.
5675         * lib/parse-datetime.y (iso_8601_time): Likewise.
5676         Spotted by Pádraig Brady.
5677
5678         test-parse-datetime.c: accommodate a relatively strict gcc warning
5679         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5680         to avoid a warning from gcc's -Werror=missing-declarations.
5681         Insert a few spaces-before-funcall-parenthesis.
5682
5683 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5684
5685         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5686         The parser now accepts ISO 8601 date-time strings with "T" as the
5687         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5688         with a space between the date and time strings.  Now it also parses
5689         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5690         variants like "2004-02-29T16:21:42.333-07:00"
5691         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
5692         of day representation using the 'T' separator character.
5693         * doc/parse-datetime.texi (General date syntax): replace use of
5694         deprecated --iso-8601 option with --rfc-3339 in example of date
5695         command output formats that can be parsed.
5696         * tests/test-parse-datetime.c (tm_diff): New function, taken from
5697         lib/parse-datetime.y.
5698         (gmt_offset): New function.
5699         (main): Add additional test cases to validate ISO8601 extended
5700         date and time of day parsing.
5701
5702 2011-08-31  Bruno Haible  <bruno@clisp.org>
5703
5704         freopen: Documentation.
5705         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
5706         name.
5707         Reported by Claudio Bley <claudio.bley@gmail.com>.
5708
5709 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5710
5711         freopen: Don't crash if the filename argument is NULL.
5712         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5713         NULL.
5714
5715 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5716
5717         openat: work around AIX 7.1 fstatat bug
5718         Problem reported by Kevin Brott for GNU tar, in the thread containing
5719         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5720         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5721         FSTATAT_ST_SIZE_ETC_BROKEN.
5722         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5723         rpl_fstatat.
5724         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5725         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5726         AC_CHECK_FUNCS_ONCE for fstatat.
5727         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5728         fchmodat, mkdirat, openat and unlinkat.
5729
5730 2011-08-30  Bruno Haible  <bruno@clisp.org>
5731
5732         Avoid endless recursions if config.h includes some header files.
5733         * lib/fopen.c (__need_FILE): Define already before including config.h.
5734         * lib/freopen.c (__need_FILE): Likewise.
5735         * lib/open.c (__need_system_fcntl_h): Likewise.
5736         * lib/stat.c (__need_system_sys_stat_h): Likewise.
5737         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
5738         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5739
5740 2011-08-25  Karl Berry  <karl@gnu.org>
5741
5742         * config/srclist.txt (ylwrap): new try.
5743         * build-aux/ylwrap: new file.
5744
5745 2011-08-23  Bruno Haible  <bruno@clisp.org>
5746
5747         tmpdir: Use a good default directory on native Windows.
5748         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
5749         (P_tmpdir): Default to _P_tmpdir on native Windows.
5750         (path_search): On native Windows, try the value returned by GetTempPath
5751         before trying P_tmpdir.
5752         * modules/tmpdir (Depends-on): Add pathmax.
5753         Suggested by John Darrington <john@darrington.wattle.id.au>.
5754
5755 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
5756
5757         doc: fix typo in README-release
5758         * top/README-release: Capitalize first word of a sentence.
5759
5760 2011-08-19  Jim Meyering  <meyering@redhat.com>
5761
5762         fts: do not exhaust memory when processing million-entry directories
5763         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5764         directory would require about 256*N bytes of memory.  Thus, it was
5765         easy to construct a directory too large to be processed by any of
5766         those tools.  With this change, fts' maximum memory utilization is
5767         now limited to around 30MB.
5768         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5769         (fts_read): When we've processed the final entry (i.e., when
5770         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5771         using the parent entry to read any remaining entries.  Dispatch
5772         depending on what fts_build returns:
5773         - NULL+stop, aka failure: stop
5774         - NULL otherwise: move up in the dir hierarchy
5775         - non-NULL: handle this new entry
5776         (fts_build): Declare and use new local, continue_readdir.
5777         Prepare to be called from fts_read, when the entries
5778         from a partially-read directory have just been exhausted.
5779         In that case, we'll skip the opendir and instead use the parent's
5780         fts_dirp and derive dir_fd from that.
5781         Finally, in the readdir loop, if we read max_entries entries,
5782         exit the loop ensuring *not* to call closedir.  This is required
5783         so that fts_dirp can be reused on a subsequent call.
5784         Prompted by Ben England's report of memory exhaustion in find
5785         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5786
5787         maint: fts: move decl of `dp' down into while loop; split a long line
5788         * lib/fts.c (fts_build): No semantic change.
5789
5790         fts: add/use new struct member, fts_dirp
5791         We are about to use this to manage any directory with
5792         too many entries to read all of them into memory at once.
5793         To do that, we'll need to save the DIR* pointer in each
5794         affected FTSENT struct.
5795         * lib/fts_.h: Include <dirent.h>.
5796         (struct FTSENT) [fts_dirp]: New member.
5797         * lib/fts.c (closedir_and_clear): Define.
5798         Use it in place of closedir so that we are sure to
5799         clear the new fts_dirp member when done with it.
5800         (fts_alloc): Initialize the new member.
5801         (fts_lfree): Free, if needed.
5802
5803         maint: fts: give __opendir2 a new parameter and rename
5804         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
5805         than surreptitiously using sole caller's "dir_fd".
5806         (fts_opendir): Rename from __opendir2.
5807
5808         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5809         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5810
5811         maint: fts.c: correct off-by-one indentation
5812         * lib/fts.c (fts_build): Correct indentation, change style
5813         of a couple of block comments, and bracing style.
5814
5815         maint: fts.c: move __opendir2 #define "up" out of function body
5816         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5817
5818         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5819         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5820         out for a long time and besides was useful only on BSD systems.
5821
5822 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5823
5824         regex: port to Stratus OpenVOS
5825         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5826         define to empty, rather than attempting nonportable optimizations.
5827         Problem reported by Paul Green in:
5828         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5829         and fix suggested by Eric Blake in:
5830         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5831
5832 2011-08-17  Eric Blake  <eblake@redhat.com>
5833
5834         getcwd: fix test failures on mingw
5835         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5836         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5837         test if long directory cannot be created, and allow mingw errno.
5838
5839         getcwd-lgpl: fix m4 to match relaxed test for BSD
5840         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5841         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5842         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5843         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5844         signature problem.
5845
5846         getcwd: fix compilation on mingw64
5847         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5848         getcwd.
5849         Reported by Marc-André Lureau.
5850
5851         pipe2: silence compiler warning
5852         * lib/pipe2.c (pipe2): Hide label if it is not used.
5853
5854 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5855
5856         relocatable-prog: fix link error
5857         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5858         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5859         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5860         into modules/relocatable-lib without noticing that
5861         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5862         also needs to build relocatable.c.
5863
5864 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5865
5866         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5867         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5868         shell code: it contained a 'break' that was not in a loop.
5869         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5870         via a shell-language loop; this may have been true in old Autoconf
5871         versions, but it's not true in Autoconf 2.68.  I found this bug
5872         when testing coreutils git on Solaris 8, whose shell complains
5873         about the syntax error.
5874
5875 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5876
5877         * lib/base64.c: Fix comment to reference RFC 4648.
5878         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5879         <gvtulder@gmail.com>.
5880
5881 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5882
5883         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5884
5885         po/Makefile.in.in: fix make -q problem
5886         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5887         rule, since there's no file named 'check-macro-version' and its
5888         use as a file breaks make -q.
5889         (all): Don't depend on check-macro-version.
5890         (CHECK_MACRO_VERSION): New macro.
5891         (stamp-po): Use it.
5892
5893         configmake: fix make -q problem
5894         * modules/configmake (configmake.h): Update configmake.h's time stamp
5895         even if the file does not change.  Otherwise, 'make -q' fails.
5896         Problem reported by Simon Josefsson in
5897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5898
5899 2011-08-11  Jim Meyering  <meyering@redhat.com>
5900
5901         git-version-gen: correct the advice in a comment
5902         * build-aux/git-version-gen: Correct comment.
5903         Don't recommend to list .tarball-version in .gitignore.
5904
5905 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5906
5907         base64: fix off-by-one buffer size bug
5908         Problem and (trivial) fix reported by Gijs van Tulder in
5909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5910         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5911         * tests/test-base64.c (main): Catch the bug.
5912
5913 2011-08-10  Eric Blake  <eblake@redhat.com>
5914
5915         closein: correct comments
5916         * lib/closein.c (close_stdin): Improve comments.
5917
5918 2011-08-09  Bruno Haible  <bruno@clisp.org>
5919
5920         More tests for 'fseeko'.
5921         * tests/test-fseeko3.c: New file, from Eric Blake.
5922         * tests/test-fseeko3.sh: New file.
5923         * modules/fseeko-tests (Files): Add them.
5924         (TESTS): Add test-fseeko3.sh.
5925         (check_PROGRAMS): Add test-fseeko3.
5926
5927 2011-08-09  Eric Blake  <eblake@redhat.com>
5928
5929         fseeko: remove unneeded hack
5930         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5931
5932         fseeko: fix bug on glibc
5933         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5934         Reported by John W. Eaton.
5935
5936 2011-08-08  Bruno Haible  <bruno@clisp.org>
5937
5938         unictype/base: Fix interoperability with preinstalled libunistring.
5939         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5940         Reported by Simon Josefsson.
5941
5942 2011-08-08  Bruno Haible  <bruno@clisp.org>
5943
5944         iswblank: Detect declaration correctly.
5945         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5946         AC_CHECK_DECLS invocation.
5947
5948 2011-08-08  Bruno Haible  <bruno@clisp.org>
5949
5950         tcgetsid: Detect declaration correctly.
5951         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5952         AC_CHECK_DECLS invocation.
5953         Reported by Simon Josefsson.
5954
5955 2011-08-08  Eric Blake  <eblake@redhat.com>
5956
5957         largefile: fix typo that regressed large file support
5958         * modules/largefile (configure.ac-early): Fix section name.
5959
5960 2011-08-06  Karl Berry  <karl@gnu.org>
5961
5962         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5963         a separate module.
5964
5965 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5966
5967         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5968         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5969         get prototype for free.
5970
5971 2011-08-04  Bruno Haible  <bruno@clisp.org>
5972
5973         Tests for module 'pathmax'.
5974         * modules/pathmax-tests: New file.
5975         * tests/test-pathmax.c: New file.
5976
5977         canonicalize-lgpl: Support larger filenames on the Hurd.
5978         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5979         Reported by Paul Eggert.
5980
5981         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5982         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5983         * lib/chdir-long.h: Include pathmax.h.
5984         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5985         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5986         (PATH_MAX): Remove code that is done by pathmax.h.
5987         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5988         * lib/tmpfile.c: Add a comment.
5989         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5990         * modules/chdir-long (Depends-on): Add pathmax.
5991         * modules/getcwd (Depends-on): Add pathmax.
5992         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5993         is not defined.
5994         * doc/posix-headers/limits.texi: Mention the pathmax module.
5995         * NEWS: Mention the change.
5996
5997 2011-08-02  Bruno Haible  <bruno@clisp.org>
5998
5999         pthread_sigmask: Actually use results of gl_THREADLIB.
6000         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
6001         gl_THREADLIB, not gl_[]THREADLIB.
6002         Reported by Eric Blake.
6003
6004 2011-08-02  Jim Meyering  <meyering@redhat.com>
6005
6006         maint.mk: relax the default _gl_TS_function_match regexp
6007         * top/maint.mk (_gl_TS_function_match): Don't require at least one
6008         space between function name and "(" in an "extern" declaration.
6009         That would fail to match a decl with no space there: extern void foo();
6010
6011 2011-07-31  Iain Nicol  <iain@thenicols.net>
6012
6013         git-version-gen: document that EXTRA_DIST must include .version
6014         * build-aux/git-version-gen: In the how-to-use comment, document
6015         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
6016         will fail when run from an unpacked distribution tarball.
6017
6018 2011-08-01  Bruno Haible  <bruno@clisp.org>
6019
6020         wctype-h: Fix last change.
6021         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
6022         REPLACE_TOWLOWER to 0.
6023         Reported by Sam Steingold <sds@gnu.org>.
6024
6025 2011-07-31  Bruno Haible  <bruno@clisp.org>
6026
6027         frexpl: Update autoconf test.
6028         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
6029         according to changes of 2011-06-20.
6030
6031 2011-07-31  Bruno Haible  <bruno@clisp.org>
6032
6033         sys_utsname: Add support for Minix.
6034         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
6035         <sys/utsname.h>.
6036         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6037         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
6038
6039 2011-07-31  Bruno Haible  <bruno@clisp.org>
6040
6041         strings: Add support for Minix.
6042         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
6043         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6044         * doc/posix-headers/strings.texi: Document the Minix problem.
6045
6046 2011-07-31  Bruno Haible  <bruno@clisp.org>
6047
6048         wctype-h: Add support for Minix.
6049         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
6050         REPLACE_TOWLOWER.
6051         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
6052         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
6053         REPLACE_ISWCNTRL.
6054
6055 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
6056
6057         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
6058         This is a performance improvement for 64-bit hosts: it causes the
6059         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
6060
6061 2011-07-31  Bruno Haible  <bruno@clisp.org>
6062
6063         stdioext: Add support for Minix.
6064         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
6065         * lib/fpurge.c (fpurge): Likewise.
6066         * lib/freadahead.c (freadahead): Likewise.
6067         * lib/freadable.c (freadable): Likewise.
6068         * lib/freading.c (freading): Likewise.
6069         * lib/freadptr.c (freadptr): Likewise.
6070         * lib/freadseek.c (freadptrinc): Likewise.
6071         * lib/fseeko.c (rpl_fseeko): Likewise.
6072         * lib/fseterr.c (fseterr): Likewise.
6073         * lib/fwritable.c (fwritable): Likewise.
6074         * lib/fwriting.c (fwriting): Likewise.
6075         * lib/fflush.c (clear_ungetc_buffer): Update comment.
6076         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
6077
6078 2011-07-31  Bruno Haible  <bruno@clisp.org>
6079
6080         errno: Port to Minix.
6081         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
6082         ECONNABORTED are defined.
6083         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
6084         GNULIB_defined_ECONNABORTED): New macros.
6085         * lib/strerror-override.h (strerror_override): Test also
6086         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
6087         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
6088         ECONNABORTED.
6089         * doc/posix-headers/errno.texi: Mention the Minix problem.
6090
6091 2011-07-31  Bruno Haible  <bruno@clisp.org>
6092
6093         Work around declaration collisions on Minix.
6094         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
6095         defined, set REPLACE_MBSINIT.
6096         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
6097         defined, set REPLACE_MBRTOWC.
6098         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
6099         set REPLACE_MBRLEN.
6100         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
6101         defined, set REPLACE_MBSRTOWCS.
6102         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
6103         defined, set REPLACE_WCRTOMB.
6104         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
6105         defined, set REPLACE_WCSRTOMBS.
6106
6107 2011-07-31  Bruno Haible  <bruno@clisp.org>
6108
6109         Add support for Minix with ACK compiler.
6110         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
6111         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
6112         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
6113
6114 2011-07-31  Bruno Haible  <bruno@clisp.org>
6115
6116         Documentation about Minix.
6117         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
6118         * doc/glibc-headers/*.texi: Likewise.
6119         * doc/posix-functions/*.texi: Likewise.
6120         * doc/glibc-functions/*.texi: Likewise.
6121
6122 2011-07-31  Bruno Haible  <bruno@clisp.org>
6123
6124         snippet/warn-on-use: Fix indentation.
6125         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
6126
6127 2011-07-25  Jim Meyering  <meyering@redhat.com>
6128
6129         tests: test-update-copyright.sh: remove unnecessary "rm" commands
6130         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
6131         commands.
6132
6133 2011-07-27  Jim Meyering  <meyering@redhat.com>
6134
6135         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
6136         * top/maint.mk (gl_extract_significant_defines_): Now that
6137         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
6138         gnulib/lib/signal.in.h, and now that we recommend to
6139         define-if-undefined those two symbols in application code,
6140         we must filter them out of the "significant" list.
6141         This avoids a "make syntax-check" failure in coreutils.
6142
6143 2011-07-26  Eric Blake  <eblake@redhat.com>
6144
6145         warnings: add comments about previous patch
6146         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
6147         * m4/include_next.m4: Likewise.
6148         * m4/warn-on-use.m4: Likewise.
6149         * m4/warnings.m4: Likewise, and simplify use.
6150         Suggested by Stefano Lattarini.
6151
6152         include-next, warnings: support older autoconf
6153         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
6154         AS_VAR_PUSHDEF in a way that works with older autoconf.
6155         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
6156         Reported by Daniel P. Berrange.
6157
6158 2011-07-25  Bruno Haible  <bruno@clisp.org>
6159
6160         fseek, ftell: Fix doc.
6161         * doc/posix-functions/fseek.texi: Reword statement about
6162         AC_SYS_LARGEFILE.
6163         * doc/posix-functions/ftell.texi: Likewise.
6164
6165 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6166             Bruno Haible  <bruno@clisp.org>
6167
6168         Add dependencies to the 'largefile' module.
6169         * modules/fopen (Depends-on): Add 'largefile'.
6170         * modules/freopen (Depends-on): Likewise.
6171         * modules/fseeko (Depends-on): Likewise.
6172         * modules/ftello (Depends-on): Likewise.
6173         * modules/glob (Depends-on): Likewise.
6174         * modules/lseek (Depends-on): Likewise.
6175         * modules/lstat (Depends-on): Likewise.
6176         * modules/mkostemp (Depends-on): Likewise.
6177         * modules/mkostemps (Depends-on): Likewise.
6178         * modules/mkstemp (Depends-on): Likewise.
6179         * modules/mkstemps (Depends-on): Likewise.
6180         * modules/open (Depends-on): Likewise.
6181         * modules/openat (Depends-on): Likewise.
6182         * modules/pread (Depends-on): Likewise.
6183         * modules/pwrite (Depends-on): Likewise.
6184         * modules/scandir (Depends-on): Likewise.
6185         * modules/stat (Depends-on): Likewise.
6186         * modules/tmpfile (Depends-on): Likewise.
6187         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
6188         since the containing module now depends on the largefile module.
6189         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
6190         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
6191         off_t is fixed by gnulib.
6192         * doc/posix-functions/freopen.texi: Likewise.
6193         * doc/posix-functions/fseeko.texi: Likewise.
6194         * doc/posix-functions/fstatat.texi: Likewise.
6195         * doc/posix-functions/ftello.texi: Likewise.
6196         * doc/posix-functions/glob.texi: Likewise.
6197         * doc/posix-functions/lseek.texi: Likewise.
6198         * doc/posix-functions/lstat.texi: Likewise.
6199         * doc/posix-functions/mkstemp.texi: Likewise.
6200         * doc/posix-functions/open.texi: Likewise.
6201         * doc/posix-functions/openat.texi: Likewise.
6202         * doc/posix-functions/pread.texi: Likewise.
6203         * doc/posix-functions/pwrite.texi: Likewise.
6204         * doc/posix-functions/scandir.texi: Likewise.
6205         * doc/posix-functions/stat.texi: Likewise.
6206         * doc/posix-functions/tmpfile.texi: Likewise.
6207         * doc/glibc-functions/mkostemp.texi: Likewise.
6208         * doc/glibc-functions/mkostemps.texi: Likewise.
6209         * doc/glibc-functions/mkstemps.texi: Likewise.
6210
6211 2011-07-25  Bruno Haible  <bruno@clisp.org>
6212
6213         fcntl: Move AC_LIBOBJ invocation to module description.
6214         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
6215         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
6216
6217         fcntl: Remove call-in from fchdir.m4.
6218         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
6219         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
6220
6221         dup3: Remove potential call-in from fchdir.m4.
6222         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
6223         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
6224
6225         dup2: Move AC_LIBOBJ invocation to module description.
6226         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
6227         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
6228         Don't invoke AC_LIBOBJ.
6229         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
6230
6231         dup2: Remove call-in from fchdir.m4.
6232         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
6233         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
6234
6235         fclose: Move AC_LIBOBJ invocation to module description.
6236         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
6237         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
6238         to 1.
6239         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
6240
6241         fclose: Remove call-in from close.m4.
6242         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
6243         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
6244
6245         close: Move AC_LIBOBJ invocation to module description.
6246         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
6247         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
6248         1.
6249         * modules/close (configure.ac): Invoke AC_LIBOBJ.
6250
6251         close: Remove call-in from fchdir.m4.
6252         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
6253         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
6254
6255         open: Move AC_LIBOBJ invocation to module description.
6256         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
6257         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
6258         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
6259
6260         open: Remove call-in from fchdir.m4.
6261         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
6262         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
6263
6264         fchdir: Start to remove gl_REPLACE_* idiom.
6265         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
6266         (gl_FUNC_FCHDIR): Invoke it.
6267
6268 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6269
6270         * lib/ftell.c (ftell): Comment out cast.
6271
6272         close: use gl_REPLACE_FCLOSE only if defined
6273         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
6274         is defined.  The close module doesn't depend on the fclose module
6275         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
6276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
6277         I reproduced the problem with "./gnulib-tool --test close sys_socket".
6278
6279 2011-07-24  Jim Meyering  <meyering@redhat.com>
6280
6281         test-select.h: avoid warning when using gcc's -Wmissing-declarations
6282         * tests/test-select.h (test_function): Declare as "static".
6283
6284 2011-07-24  Bruno Haible  <bruno@clisp.org>
6285
6286         doc: Mention the effects of AC_SYS_LARGEFILE.
6287         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
6288         on this function.
6289         * doc/posix-functions/aio_error.texi: Likewise.
6290         * doc/posix-functions/aio_fsync.texi: Likewise.
6291         * doc/posix-functions/aio_read.texi: Likewise.
6292         * doc/posix-functions/aio_return.texi: Likewise.
6293         * doc/posix-functions/aio_suspend.texi: Likewise.
6294         * doc/posix-functions/aio_write.texi: Likewise.
6295         * doc/posix-functions/fgetpos.texi: Likewise.
6296         * doc/posix-functions/fopen.texi: Likewise.
6297         * doc/posix-functions/freopen.texi: Likewise.
6298         * doc/posix-functions/fsetpos.texi: Likewise.
6299         * doc/posix-functions/fstatvfs.texi: Likewise.
6300         * doc/posix-functions/ftruncate.texi: Likewise.
6301         * doc/posix-functions/ftw.texi: Likewise.
6302         * doc/posix-functions/getrlimit.texi: Likewise.
6303         * doc/posix-functions/glob.texi: Likewise.
6304         * doc/posix-functions/lio_listio.texi: Likewise.
6305         * doc/posix-functions/lockf.texi: Likewise.
6306         * doc/posix-functions/mkstemp.texi: Likewise.
6307         * doc/posix-functions/mmap.texi: Likewise.
6308         * doc/posix-functions/nftw.texi: Likewise.
6309         * doc/posix-functions/openat.texi: Likewise.
6310         * doc/posix-functions/opendir.texi: Likewise.
6311         * doc/posix-functions/posix_fadvise.texi: Likewise.
6312         * doc/posix-functions/posix_fallocate.texi: Likewise.
6313         * doc/posix-functions/pread.texi: Likewise.
6314         * doc/posix-functions/pwrite.texi: Likewise.
6315         * doc/posix-functions/readdir.texi: Likewise.
6316         * doc/posix-functions/readdir_r.texi: Likewise.
6317         * doc/posix-functions/rewinddir.texi: Likewise.
6318         * doc/posix-functions/scandir.texi: Likewise.
6319         * doc/posix-functions/seekdir.texi: Likewise.
6320         * doc/posix-functions/setrlimit.texi: Likewise.
6321         * doc/posix-functions/statvfs.texi: Likewise.
6322         * doc/posix-functions/telldir.texi: Likewise.
6323         * doc/posix-functions/tmpfile.texi: Likewise.
6324         * doc/posix-functions/truncate.texi: Likewise.
6325         * doc/glibc-functions/fallocate.texi: Likewise.
6326         * doc/glibc-functions/fstatfs.texi: Likewise.
6327         * doc/glibc-functions/fts_children.texi: Likewise.
6328         * doc/glibc-functions/fts_read.texi: Likewise.
6329         * doc/glibc-functions/getdirentries.texi: Likewise.
6330         * doc/glibc-functions/mkostemp.texi: Likewise.
6331         * doc/glibc-functions/mkostemps.texi: Likewise.
6332         * doc/glibc-functions/mkstemps.texi: Likewise.
6333         * doc/glibc-functions/preadv.texi: Likewise.
6334         * doc/glibc-functions/pwritev.texi: Likewise.
6335         * doc/glibc-functions/sendfile.texi: Likewise.
6336         * doc/glibc-functions/statfs.texi: Likewise.
6337
6338 2011-07-24  Bruno Haible  <bruno@clisp.org>
6339
6340         doc: Fix typo.
6341         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
6342
6343 2011-07-24  Bruno Haible  <bruno@clisp.org>
6344
6345         doc: Mention fsusage.
6346         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
6347
6348 2011-07-24  Bruno Haible  <bruno@clisp.org>
6349
6350         doc: Mention new glibc headers and functions.
6351         * doc/glibc-headers/gshadow.texi: New file.
6352         * doc/glibc-functions/endsgent.texi: New file.
6353         * doc/glibc-functions/fgetsgent.texi: New file.
6354         * doc/glibc-functions/fgetsgent_r.texi: New file.
6355         * doc/glibc-functions/getsgent.texi: New file.
6356         * doc/glibc-functions/getsgent_r.texi: New file.
6357         * doc/glibc-functions/getsgnam.texi: New file.
6358         * doc/glibc-functions/getsgnam_r.texi: New file.
6359         * doc/glibc-functions/putsgent.texi: New file.
6360         * doc/glibc-functions/setsgent.texi: New file.
6361         * doc/glibc-functions/sgetsgent.texi: New file.
6362         * doc/glibc-functions/sgetsgent_r.texi: New file.
6363         * doc/glibc-functions/malloc_info.texi: New file.
6364         * doc/glibc-functions/preadv.texi: New file.
6365         * doc/glibc-functions/pwritev.texi: New file.
6366         * doc/glibc-functions/register_printf_modifier.texi: New file.
6367         * doc/glibc-functions/register_printf_specifier.texi: New file.
6368         * doc/glibc-functions/register_printf_type.texi: New file.
6369         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
6370         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
6371         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
6372         * doc/glibc-functions/pthread_getname_np.texi: New file.
6373         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
6374         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
6375         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
6376         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
6377         * doc/glibc-functions/pthread_setname_np.texi: New file.
6378         * doc/glibc-functions/pthread_sigqueue.texi: New file.
6379         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
6380         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
6381         * doc/glibc-functions/qsort_r.texi: New file.
6382         * doc/glibc-functions/quick_exit.texi: New file.
6383         * doc/glibc-functions/syncfs.texi: New file.
6384         * doc/gnulib.texi: Include them.
6385         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
6386         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
6387         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
6388         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
6389         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
6390         * doc/glibc-functions/execvpe.texi: Likewise.
6391
6392 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6393
6394         ftell: don't include <unistd.h>
6395         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
6396         guaranteed to define off_t, and the ftell module depends on the
6397         stdio module.
6398
6399         ftell: do not assume wraparound signed arithmetic
6400         * lib/ftell.c: Include <limits.h>.
6401         (ftell): Don't assume wraparound signed arithmetic.
6402
6403 2011-07-24  Bruno Haible  <bruno@clisp.org>
6404
6405         close: No longer depend on module 'fclose'.
6406         * modules/close (Depends-on): Remove fclose.
6407         * NEWS: Mention the change.
6408         Suggested by Sam Steingold <sds@gnu.org>.
6409
6410 2011-07-24  Bruno Haible  <bruno@clisp.org>
6411
6412         fsusage: Enable large volume support on AIX >= 5.2.
6413         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
6414         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
6415         instead of STAT_STATVFS.
6416         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
6417
6418         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
6419         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
6420         f_blocks field only on MacOS X.
6421
6422         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
6423         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
6424         * modules/fsusage (Depends-on): Add largefile.
6425
6426 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6427
6428         * README: Modernize discussion of signed integers.
6429         Assuming overflow wraparound is no longer safe.
6430         Mention ones' complement and signed magnitude.
6431
6432 2011-07-22  Bruno Haible  <bruno@clisp.org>
6433
6434         select tests, pselect tests: Refactor.
6435         * tests/test-select.h: New file, extracted from tests/test-select.c.
6436         (select_fn): New type.
6437         (test, do_select, do_select_nowait, do_select_wait, test_tty,
6438         test_connect_first, test_accept_first, test_pair, test_socket_pair,
6439         test_pipe): Add my_select argument.
6440         (test_function): Renamed from main. Add my_select argument.
6441         * tests/test-select.c: Move most code to tests/test-select.h. Include
6442         test-select.h.
6443         * modules/select-tests (Files): Add tests/test-select.h.
6444         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
6445         (my_select, main): New functions.
6446         * modules/pselect-tests (Files): Add tests/test-select.h,
6447         tests/macros.h, tests/signature.h.
6448         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
6449         (configure.ac): Check for <sys/wait.h>.
6450
6451 2011-07-22  Bruno Haible  <bruno@clisp.org>
6452
6453         sys_select tests: Check the signature of FD_*.
6454         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
6455         signature tests from here...
6456         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
6457         here.
6458         * modules/sys_select-tests (Files): Add tests/signature.h.
6459
6460 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6461
6462         largefile: new module, replacing large-inode
6463         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
6464         * MODULES.html.sh: Add largefile, remove large-inode.
6465         * modules/largefile, m4/largefile.m4: New files.
6466         * modules/large-inode, m4/large-inode.m4: Remove.
6467
6468         fsusage: port to MacOS X 10.7 with 4 TiB file systems
6469         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
6470         implementations that use only 32 bits to count blocks.
6471         On typical hosts with 1024-byte blocks, this fails with file
6472         systems as small as 4 TiB.  Problem reported by Herb Wartens
6473         <http://debbugs.gnu.org/9140> and this should also fix a similar
6474         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
6475
6476         large-inode: New module
6477         * MODULES.html.sh: Add it.
6478         * modules/large-inode, m4/large-inode.m4: New files.
6479
6480         extensions: Enable extensions on MacOS X 10.5 and later.
6481         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
6482
6483 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
6484
6485         file-has-acl: use acl_extended_file_nofollow if available
6486         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
6487         (acl_extended_file): New macro.
6488         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
6489         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
6490
6491 2011-07-21  Bruno Haible  <bruno@clisp.org>
6492
6493         Declare system functions in a way that works with C++.
6494         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
6495         declare fdopendir as extern "C".
6496         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
6497         declare frexpl as extern "C".
6498         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
6499         declare gai_strerror as extern "C".
6500         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
6501         programs, declare gai_strerror as extern "C".
6502         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
6503         declare getlogin_r as extern "C".
6504         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
6505         as extern "C".
6506         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
6507         declare ldexpl as extern "C".
6508         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
6509         as extern "C".
6510         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
6511         program, declare getmntinfo as extern "C".
6512         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
6513         stpncpy as extern "C".
6514         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
6515         program, declare __xpg_strerror_r as extern "C".
6516         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
6517         strndup as extern "C".
6518         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
6519         declare memset and bzero as extern "C".
6520         Reported by Sam Steingold <sds@gnu.org>.
6521
6522 2011-07-12  Jim Meyering  <meyering@redhat.com>
6523
6524         maint.mk: prohibit inclusion of "verify.h" without use
6525         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
6526
6527 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6528
6529         timer-time: A new module to check for timer_settime()
6530         * m4/timer_time.m4: Check for the posix function.
6531         * modules/timer-time: Add the new module.
6532         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
6533         Mention it.
6534
6535 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
6536             Bruno Haible  <bruno@clisp.org>
6537
6538         pthread_sigmask: assume POSIX threads if --avoid=threadlib
6539         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
6540         not defined, assume POSIX threads and look for pthread_sigmask in
6541         $LIBS, without changing $CPPFLAGS.
6542
6543 2011-07-19  Bruno Haible  <bruno@clisp.org>
6544
6545         strstr: Update cross-compilation guess.
6546         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
6547         CPUs, guess no, in view of glibc
6548         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
6549         Suggested by Eric Blake. Reported by Reuben Thomas.
6550
6551 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6552
6553         getopt-gnu: suppress core dumps from detection code
6554         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
6555         to suppress core dumps that may well occur on glibc systems.
6556         * modules/getopt-gnu: Depend on nocrash.
6557
6558 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6559
6560         pthread_sigmask: ensure usleep is declared
6561         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
6562         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
6563
6564 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6565
6566         doc: Document NonStop portability issues.
6567         * doc/posix-functions/sigaction.texi (sigaction):
6568         * doc/posix-headers/signal.texi (signal.h):
6569         Document NonStop.  See Joachim Schmitz in
6570         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
6571
6572 2011-07-15  Bruno Haible  <bruno@clisp.org>
6573
6574         ffsl, ffsll: Avoid unportable behaviour.
6575         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
6576
6577 2011-07-15  Bruno Haible  <bruno@clisp.org>
6578
6579         ffs: More tests.
6580         * tests/test-ffs.c (NBITS): New macro.
6581         (main): Add more tests.
6582         * tests/test-ffsl.c (NBITS): New macro.
6583         (main): Add more tests.
6584         * tests/test-ffsll.c (NBITS): New macro.
6585         (main): Add more tests.
6586
6587 2011-07-15  Eric Blake  <eblake@redhat.com>
6588
6589         ffsl, ffsll: new modules
6590         * modules/ffsl: New file.
6591         * modules/ffsll: Likewise.
6592         * m4/ffsl.m4: Likewise.
6593         * m4/ffsll.m4: Likewise.
6594         * lib/ffsl.c: Likewise.
6595         * lib/ffsl.h: Likewise.
6596         * lib/ffsll.c: Likewise.
6597         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
6598         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
6599         * modules/string (Makefile.am): Substitute witnesses.
6600         * lib/strings.in.h (ffsl, ffsll): Declare.
6601         * modules/ffsl-tests: New test file.
6602         * modules/ffsll-tests: Likewise.
6603         * tests/test-ffsl.c: Likewise.
6604         * tests/test-ffsll.c: Likewise.
6605         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6606         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
6607         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
6608
6609         ffs: fix m4 prerequisite
6610         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
6611
6612         ffs: avoid undefined behavior
6613         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
6614         * tests/test-ffs.c (naive, main): Avoid signed shifts.
6615         Reported by Bruno Haible.
6616
6617 2011-07-12  Bruno Haible  <bruno@clisp.org>
6618
6619         pthread_sigmask: Rely on module 'threadlib'.
6620         * modules/pthread_sigmask (Depends-on): Add threadlib.
6621         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
6622         is defined.
6623
6624 2011-07-12  Bruno Haible  <bruno@clisp.org>
6625
6626         regex: Depend on module 'strcase'.
6627         * modules/regex (Depends-on): Add strcase, for strcasecmp().
6628
6629 2011-07-12  Jim Meyering  <meyering@redhat.com>
6630
6631         warn-on-use: fix typo in file name
6632         * modules/snippet/warn-on-use (Files): Correct file name:
6633         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
6634
6635 2011-07-12  Bruno Haible  <bruno@clisp.org>
6636
6637         strings: Document module.
6638         * doc/posix-headers/strings.texi: Mention module 'strings'.
6639
6640 2011-07-12  Bruno Haible  <bruno@clisp.org>
6641
6642         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6643         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6644         (Files, Makefile.am): Update.
6645         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6646         * modules/stdlib (Depends-on): Update.
6647
6648 2011-07-12  Bruno Haible  <bruno@clisp.org>
6649
6650         * NEWS: Mention the changes.
6651
6652         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6653         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6654         (Files, Makefile.am): Update.
6655         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6656         * modules/arpa_inet (Depends-on): Update.
6657         * modules/ctype (Depends-on): Update.
6658         * modules/dirent (Depends-on): Update.
6659         * modules/fcntl-h (Depends-on): Update.
6660         * modules/glob (Depends-on): Update.
6661         * modules/iconv-h (Depends-on): Update.
6662         * modules/inttypes-incomplete (Depends-on): Update.
6663         * modules/langinfo (Depends-on): Update.
6664         * modules/locale (Depends-on): Update.
6665         * modules/math (Depends-on): Update.
6666         * modules/netdb (Depends-on): Update.
6667         * modules/poll-h (Depends-on): Update.
6668         * modules/pty (Depends-on): Update.
6669         * modules/search (Depends-on): Update.
6670         * modules/signal (Depends-on): Update.
6671         * modules/spawn (Depends-on): Update.
6672         * modules/stdio (Depends-on): Update.
6673         * modules/stdlib (Depends-on): Update.
6674         * modules/string (Depends-on): Update.
6675         * modules/strings (Depends-on): Update.
6676         * modules/sys_file (Depends-on): Update.
6677         * modules/sys_ioctl (Depends-on): Update.
6678         * modules/sys_select (Depends-on): Update.
6679         * modules/sys_socket (Depends-on): Update.
6680         * modules/sys_stat (Depends-on): Update.
6681         * modules/sys_time (Depends-on): Update.
6682         * modules/sys_times (Depends-on): Update.
6683         * modules/sys_utsname (Depends-on): Update.
6684         * modules/sys_wait (Depends-on): Update.
6685         * modules/termios (Depends-on): Update.
6686         * modules/time (Depends-on): Update.
6687         * modules/unistd (Depends-on): Update.
6688         * modules/wchar (Depends-on): Update.
6689         * modules/wctype-h (Depends-on): Update.
6690         * MODULES.html.sh (Support for building libraries and executables):
6691         Update.
6692
6693         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
6694         * modules/snippet/unused-parameter: Renamed from
6695         modules/unused-parameter.
6696         (Files, Makefile.am): Update.
6697         * build-aux/snippet/unused-parameter.h: Renamed from
6698         build-aux/unused-parameter.h.
6699         * modules/selinux-h (Depends-on): Update.
6700         * modules/unistr/base (Depends-on): Update.
6701         * MODULES.html.sh (Core language properties): Update.
6702
6703         Rename module 'link-warning' to 'snippet/link-warning'.
6704         * modules/snippet/link-warning: Renamed from modules/link-warning.
6705         (Files, Makefile.am): Update.
6706         * build-aux/snippet/link-warning.h: Renamed from
6707         build-aux/link-warning.h.
6708         * MODULES.html.sh (Support for building libraries and executables):
6709         Update.
6710
6711         Rename module 'c++defs' to 'snippet/c++defs'.
6712         * modules/snippet/c++defs: Renamed from modules/c++defs.
6713         (Files, Makefile.am): Update.
6714         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
6715         * modules/arpa_inet (Depends-on): Update.
6716         * modules/ctype (Depends-on): Update.
6717         * modules/dirent (Depends-on): Update.
6718         * modules/fcntl-h (Depends-on): Update.
6719         * modules/glob (Depends-on): Update.
6720         * modules/iconv-h (Depends-on): Update.
6721         * modules/langinfo (Depends-on): Update.
6722         * modules/locale (Depends-on): Update.
6723         * modules/math (Depends-on): Update.
6724         * modules/netdb (Depends-on): Update.
6725         * modules/poll-h (Depends-on): Update.
6726         * modules/pty (Depends-on): Update.
6727         * modules/search (Depends-on): Update.
6728         * modules/signal (Depends-on): Update.
6729         * modules/spawn (Depends-on): Update.
6730         * modules/stdio (Depends-on): Update.
6731         * modules/stdlib (Depends-on): Update.
6732         * modules/string (Depends-on): Update.
6733         * modules/strings (Depends-on): Update.
6734         * modules/sys_ioctl (Depends-on): Update.
6735         * modules/sys_select (Depends-on): Update.
6736         * modules/sys_socket (Depends-on): Update.
6737         * modules/sys_stat (Depends-on): Update.
6738         * modules/sys_time (Depends-on): Update.
6739         * modules/sys_wait (Depends-on): Update.
6740         * modules/termios (Depends-on): Update.
6741         * modules/time (Depends-on): Update.
6742         * modules/unistd (Depends-on): Update.
6743         * modules/wchar (Depends-on): Update.
6744         * modules/wctype-h (Depends-on): Update.
6745
6746         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
6747         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
6748         (Files, Makefile.am): Update.
6749         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
6750         * modules/argv-iter (Depends-on): Update.
6751         * modules/arpa_inet (Depends-on): Update.
6752         * modules/dirent (Depends-on): Update.
6753         * modules/fcntl-h (Depends-on): Update.
6754         * modules/fnmatch (Depends-on): Update.
6755         * modules/getopt-posix (Depends-on): Update.
6756         * modules/glob (Depends-on): Update.
6757         * modules/iconv-h (Depends-on): Update.
6758         * modules/inttypes-incomplete (Depends-on): Update.
6759         * modules/locale (Depends-on): Update.
6760         * modules/math (Depends-on): Update.
6761         * modules/netdb (Depends-on): Update.
6762         * modules/search (Depends-on): Update.
6763         * modules/signal (Depends-on): Update.
6764         * modules/spawn (Depends-on): Update.
6765         * modules/stdio (Depends-on): Update.
6766         * modules/stdlib (Depends-on): Update.
6767         * modules/string (Depends-on): Update.
6768         * modules/strings (Depends-on): Update.
6769         * modules/sys_socket (Depends-on): Update.
6770         * modules/sys_stat (Depends-on): Update.
6771         * modules/sys_time (Depends-on): Update.
6772         * modules/sys_times (Depends-on): Update.
6773         * modules/sys_utsname (Depends-on): Update.
6774         * modules/time (Depends-on): Update.
6775         * modules/unistd (Depends-on): Update.
6776         * modules/wchar (Depends-on): Update.
6777         * MODULES.html.sh (Support for building libraries and executables):
6778         Update.
6779
6780 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6781
6782         Improvements on _Noreturn and related modules.
6783
6784         modules/_Exit-tests: test _Noreturn too
6785         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6786         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6787         (main): Use them.
6788
6789         stdnoreturn, stdnoreturn-tests: remove modules
6790         They're not needed here and a bit premature for use elsewhere.  See
6791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6792         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6793         * tests/test-stdnoreturn.c: Remove files.
6794         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
6795         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
6796         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
6797         and using noreturn.
6798         * modules/openat, modules/sigpipe-die, modules/xalloc:
6799         * modules/xmemdup0, modules/xstrtol:
6800         Remove dependency on stdnoreturn.
6801
6802         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
6803         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
6804         Reparenthesize to avoid GCC warning.
6805         Support Microsoft's syntax.
6806         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
6807
6808         _Noreturn-tests: remove module
6809         * modules/_Noreturn-tests: Remove.
6810         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6811         * tests/test-_Noreturn.c: Remove.
6812         * tests/test-stdnoreturn.c: Merge from the old
6813         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6814
6815 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6816
6817         _Noreturn, stdnoreturn, and related modules.
6818
6819         * top/maint.mk: Adjust to new noreturn support.
6820         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6821         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6822
6823         xalloc: use stdnoreturn.h
6824         * lib/xalloc.h: Include <stdnoreturn.h>.
6825         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6826         * modules/xalloc (Depends-on): Add stdnoreturn.
6827
6828         xstrtol: use stdnoreturn.h
6829         * lib/xstrtol.h: Include <stdnoreturn.h>.
6830         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6831         * modules/xstrtol (Depends-on): Add stdnoreturn.
6832
6833         xmemdup0: use stdnoreturn.h
6834         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6835         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6836         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6837
6838         sigpipe-die: use stdnoreturn.h
6839         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6840         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6841         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6842
6843         openat: use stdnoreturn.h
6844         * lib/openat.h: Include <stdnoreturn.h>.
6845         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6846         * modules/openat (Depends-on): Add stdnoreturn.
6847
6848         * lib/openat-die.c (openat_save_fail): Modernize comment.
6849
6850         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6851
6852         * lib/glthread/thread.h: Modernize comment.
6853
6854         obstack: use _Noreturn
6855         * lib/obstack.c (__attribute__): Remove macro.
6856         (print_and_abort): Use _Noreturn.
6857
6858         c-stack: use _Noreturn
6859         * lib/c-stack.c (die, overflow_handler, segv_handler):
6860         Use _Noreturn rather than __attribute__((noreturn)).
6861
6862         argmatch-tests, exclude_tests: use _Noreturn
6863         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6864         Remove.
6865         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6866
6867         stdlib: use _Noreturn
6868         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6869         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6870         * modules/stdlib (Depends-on): Add _Noreturn.
6871         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6872
6873         stdnoreturn-tests: new module
6874         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6875
6876         stdnoreturn: new module
6877         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6878         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6879
6880         _Noreturn-tests: new module
6881         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6882
6883         _Noreturn: new module
6884         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6885         New section, mentioning it.
6886         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6887
6888         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6889
6890 2011-07-11  Eric Blake  <eblake@redhat.com>
6891
6892         ffs: new module
6893         * modules/ffs: New file.
6894         * m4/ffs.m4: Likewise.
6895         * lib/ffs.c: Likewise.
6896         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6897         * modules/strings (Makefile.am): Substitute witness.
6898         (Depends-on): Add c++defs.
6899         * lib/strings.in.h (ffs): Declare.
6900         * modules/ffs-tests: New test file.
6901         * tests/test-ffs.c: Test new module.
6902         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6903         * doc/posix-functions/ffs.texi (ffs): Likewise.
6904
6905         regex: avoid compiler warning
6906         * lib/regex.c (includes): Include <strings.h>, for use of
6907         strcasecmp in regcomp.c.
6908         Reported by Joachim Schmitz.
6909
6910 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6911
6912         stdint: respect system's intmax_t if INTMAX_MAX
6913         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6914         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6915         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6916         long but int64_t is long long, and where we will clash with the
6917         system intmax_t if we override it.  See
6918         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6919         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6920         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6921         similarly for UINTMAX_C.
6922
6923 2011-07-08  Bruno Haible  <bruno@clisp.org>
6924
6925         pthread_sigmask tests: Avoid a compiler warning.
6926         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6927         non-zero.
6928
6929         sigprocmask tests: A better way to avoid a compiler warning.
6930         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6931         (main): Complain if system() returns non-zero.
6932         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6933
6934 2011-07-08  Bruno Haible  <bruno@clisp.org>
6935
6936         pthread_sigmask: Work around IRIX bug.
6937         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6938         bug.
6939         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6940         there may be unblocked pending signals.
6941         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6942
6943 2011-07-08  Bruno Haible  <bruno@clisp.org>
6944
6945         pthread_sigmask: Work around Cygwin bug.
6946         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6947         bug.
6948         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6949         the system's pthread_sigmask function.
6950         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6951
6952 2011-07-08  Bruno Haible  <bruno@clisp.org>
6953
6954         pthread_sigmask: Work around bug in single-threaded implementation.
6955         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6956         FreeBSD, HP-UX, Solaris bug.
6957         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6958         * lib/pthread_sigmask.c: Include <stddef.h>.
6959         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6960         the system's pthread_sigmask function.
6961         * modules/pthread_sigmask (configure.ac): Invoke
6962         gl_PREREQ_PTHREAD_SIGMASK.
6963         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6964         HP-UX, Solaris.
6965
6966 2011-07-08  Eric Blake  <eblake@redhat.com>
6967
6968         test-sigprocmask: avoid compiler warning
6969         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6970         * tests/test-sigprocmask.c (main): Use it to silence warning.
6971         Reported by Jim Meyering.
6972
6973         test-snprintf: avoid compiler warning
6974         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6975         * tests/test-vsnprintf.c (main): Likewise.
6976         Reported by Jim Meyering.
6977
6978 2011-07-08  Bruno Haible  <bruno@clisp.org>
6979
6980         Tests for module 'pthread_sigmask'.
6981         * modules/pthread_sigmask-tests: New file.
6982         * tests/test-pthread_sigmask1.c: New file, based on
6983         tests/test-sigprocmask.c.
6984         * tests/test-pthread_sigmask2.c: New file.
6985
6986 2011-07-08  Jim Meyering  <meyering@redhat.com>
6987
6988         test-getopt.h: avoid warning about an unused variable
6989         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6990
6991 2011-07-07  Jim Meyering  <meyering@redhat.com>
6992
6993         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6994         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6995         now that it no longer contains leading TABs.
6996         Remove unused "url=FIXME" statement.
6997
6998 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6999
7000         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
7001         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7002         When gl_THREADLIB is not in use, assume that the POSIX sematics
7003         are desired.  This is better for Emacs, which uses POSIX semantics
7004         on GNUish and/or POSIXish platforms, and does not use threads at
7005         all otherwise.
7006
7007         pthread_sigmask: fix typo when testing for libraries
7008         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7009         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
7010
7011 2011-07-08  Eric Blake  <eblake@redhat.com>
7012
7013         fts: introduce FTS_NOATIME
7014         * lib/fts_.h (FTS_NOATIME): New bit flag.
7015         (FTS_OPTIONMASK): Adjust.
7016         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
7017         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
7018
7019 2011-07-08  Bruno Haible  <bruno@clisp.org>
7020
7021         Tests for module 'thread'.
7022         * modules/thread-tests: New file.
7023         * tests/test-thread_self.c: New file.
7024         * tests/test-thread_create.cc: New file.
7025
7026 2011-07-08  Bruno Haible  <bruno@clisp.org>
7027
7028         thread: Avoid gcc warnings when using gl_thread_self().
7029         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
7030         'void *'.
7031         (gl_thread_self_pointer): Update.
7032
7033 2011-07-07  Bruno Haible  <bruno@clisp.org>
7034
7035         signal-c++-tests: Check declaration of pthread_sigmask.
7036         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
7037         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
7038         $(LIB_PTHREAD_SIGMASK).
7039
7040 2011-07-07  Bruno Haible  <bruno@clisp.org>
7041
7042         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
7043         * lib/signal.in.h (pthread_sigmask): Override if
7044         REPLACE_PTHREAD_SIGMASK is 1.
7045         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7046         REPLACE_PTHREAD_SIGMASK.
7047         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
7048         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
7049         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
7050         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7051         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
7052
7053 2011-07-07  Bruno Haible  <bruno@clisp.org>
7054
7055         pthread_sigmask: Ensure declaration in <signal.h>.
7056         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
7057         include <pthread.h>.
7058         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
7059         problem.
7060
7061 2011-07-07  Bruno Haible  <bruno@clisp.org>
7062
7063         pthread_sigmask: Document the module.
7064         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
7065
7066 2011-07-07  Bruno Haible  <bruno@clisp.org>
7067
7068         pthread_sigmask: Follow gnulib conventions.
7069         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
7070         gl_PTHREAD_SIGMASK.
7071         * modules/pthread_sigmask (configure.ac): Update.
7072
7073 2011-07-07  Bruno Haible  <bruno@clisp.org>
7074
7075         pthread_sigmask: Make declaration C++ safe.
7076         * lib/signal.in.h: In two special conditions, just do an #include_next.
7077         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7078         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
7079         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7080         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7081         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
7082         not REPLACE_PTHREAD_MASK.
7083         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
7084         not REPLACE_PTHREAD_MASK.
7085         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7086
7087 2011-07-07  Bruno Haible  <bruno@clisp.org>
7088
7089         pthread_sigmask: Fix return value.
7090         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
7091         * lib/pthread_sigmask.c: New file.
7092         * modules/pthread_sigmask (Files): Add it.
7093         (configure.ac): Invoke AC_LIBOBJ.
7094
7095 2011-07-07  Eric Blake  <eblake@redhat.com>
7096
7097         getopt: more portable argv creation
7098         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
7099         const, use char arrays rather than strings.
7100         Suggested by Paul Eggert.
7101
7102 2011-07-07  Bruno Haible  <bruno@clisp.org>
7103
7104         Tests for module 'sigprocmask'.
7105         * modules/sigprocmask-tests: New file.
7106         * tests/test-sigprocmask.c: New file.
7107
7108 2011-07-07  Bruno Haible  <bruno@clisp.org>
7109
7110         float tests: Tweak.
7111         * tests/test-float.c (main): Tweak skip message.
7112
7113 2011-07-07  Eric Blake  <eblake@redhat.com>
7114
7115         getopt: avoid compiler warning during configure
7116         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
7117         assigning string literals to non-const pointer.
7118
7119         getopt-gnu: avoid crash in glibc getopt
7120         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
7121         * tests/test-getopt.h (test_getopt): Enhance test.
7122         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7123         * doc/posix-functions/getopt.texi (getopt): Document it.
7124         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7125         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7126         Likewise.
7127
7128 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
7129
7130         getopt: handle W; without long options in getopt [BZ #12922]
7131         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
7132         but no long options are defined, just return 'W'.
7133
7134 2011-07-07  Bruno Haible  <bruno@clisp.org>
7135
7136         Avoid literal tabs.
7137         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
7138         variable containing a tab instead of a literal tab.
7139         Reported by Jim Meyering.
7140
7141 2011-07-07  Bruno Haible  <bruno@clisp.org>
7142
7143         Comments.
7144         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
7145
7146 2011-07-06  Bruno Haible  <bruno@clisp.org>
7147
7148         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
7149         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
7150         <winsock2.h>.
7151         (rpl_fd_isset, FD_ISSET): New definitions, copied from
7152         lib/sys_socket.in.h.
7153         (close, gethostname): Hide declarations from <winsock2.h>.
7154         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7155         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
7156         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
7157         (select): Don't override if gnulib's <sys/select.h> was already
7158         included.
7159         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7160         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7161         setsockopt, shutdown, select): Tweak indentation.
7162
7163 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7164
7165         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
7166         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
7167         in an application that does not use the sys_select module.
7168
7169 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
7170
7171         poll: do not return 0 on timeout=-1
7172         * lib/poll.c: Loop with yield if no events occured
7173
7174 2011-07-06  Eric Blake  <eblake@redhat.com>
7175
7176         pthread_sigmask: always replace when not using pthread
7177         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
7178         replacement when using some threading other than pthread.  Fix
7179         logic bug.
7180
7181 2011-07-06  Bruno Haible  <bruno@clisp.org>
7182
7183         Comments.
7184         * m4/printf.m4: Update comments about mingw.
7185
7186 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7187
7188         sys_select: define sigset_t more portably
7189         * lib/sys_select.in.h: Always include <sys/types.h>, since
7190         we now need sigset_t and mingw defines it there.
7191         Include <signal.h> before split inclusion guard, to avoid
7192         mishaps on Solaris, whose <signal.h> eventually includes us.
7193         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
7194         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
7195         which come from ...
7196         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7197         gl_CHECK_TYPE_SIGSET_T.
7198         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
7199         does the real work.
7200         * modules/sys_select (Depends-on): Add 'signal'.
7201
7202         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
7203         Suggested by Bruno Haible.
7204
7205         pselect: Use pthread_sigmask, not sigprocmask.
7206         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
7207         multithreaded apps better than sigprocmask does.
7208         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
7209         sigprocmask directly.
7210
7211 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7212
7213         * lib/pselect.c (pselect): Use plain name, without "rpl_".
7214         Don't #undef,  since we don't need any underlying pselect.
7215         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
7216         (Depends-on): Add select.
7217         (Link): Add $(LIBSOCKET).
7218         These changes suggested by Bruno Haible.
7219
7220         pselect: document better
7221         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7222         * doc/posix-functions/pselect.texi (pselect): Document new module.
7223
7224         pthread_sigmask: new module
7225         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7226         * doc/posix-functions/pthread_sigmask.texi: Document new module.
7227         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
7228         This is done only as a macro; I don't know how well that'll
7229         work for C++.  Move <sys/types.h> include before the include_next,
7230         to avoid mishap on Solaris.
7231         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
7232         * modules/signal (Makefile.am): Substitute the check's results.
7233         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
7234
7235         test-pselect: new module
7236         * modules/pselect-tests, tests/test-pselect.c: New files.
7237         * tests/test-select.c, tests/test-sys_select-c++.cc:
7238         If TEST_PSELECT is defined, test pselect instead of testing select.
7239
7240         * tests/test-sys_select.c (sigset_t): Test for it, too.
7241         Suggested by Bruno Haible.
7242
7243 2011-07-05  Eric Blake  <eblake@redhat.com>
7244
7245         snprintf: guarantee %1$d, for libintl
7246         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
7247         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
7248         * doc/posix-functions/snprintf.texi (snprintf): Update.
7249         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7250         * tests/test-snprintf.c (main): Enhance test.
7251         * tests/test-vsnprintf.c (main): Likewise.
7252
7253 2011-07-05  Jim Meyering  <meyering@redhat.com>
7254
7255         maint: exempt stdio-read.c and stdio-write.c from the cppi check
7256         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
7257         per Bruno's request, to accommodate this idiom (no space after "#")
7258         even when the function is inside an #if block:
7259         char *
7260         gets (char *s)
7261         #undef gets
7262         {
7263           ...
7264         }
7265
7266 2011-07-04  Jim Meyering  <meyering@redhat.com>
7267
7268         maint: indent with spaces, not TABs, and add a rule to check this
7269         * tests/test-userspec.c: Indent with spaces, not TABs.
7270         * tests/test-argp.c: Likewise.
7271         * tests/test-c-stack2.sh: Likewise.
7272         * tests/test-parse-duration.sh: Likewise
7273         * m4/strtod.m4: Likewise.
7274         * m4/alloca.m4: Likewise.
7275         * m4/pselect.m4: Likewise.
7276         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
7277
7278 2011-07-03  Jim Meyering  <meyering@redhat.com>
7279
7280         maint.mk: correct omissions in prohibit_argmatch_without_use check
7281         This rule would mistakenly report that argmatch.h is included without
7282         use even when both the argmatch and invalid_arg macro were used.
7283         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
7284         of argmatch and invalid_arg.
7285
7286 2011-07-03  Bruno Haible  <bruno@clisp.org>
7287
7288         Comments about EINTR.
7289         * lib/safe-read.h: Explain the purpose of this module.
7290         * lib/safe-write.h: Likewise.
7291         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
7292         module.
7293         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
7294         module.
7295         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7296
7297 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7298
7299         xnanosleep: Rewrite to use new dtotimespec module.
7300         It has the conversion code that used to be in xnanosleep.
7301         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
7302         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
7303         (TIME_T_MAX): Remove.
7304         (xnanosleep): Rewrite in terms of dtotimespec.
7305         * modules/xnanosleep (Depends-on): Add dtotimespec.
7306         Remove intprops, stdbool.
7307
7308         timespec-add, timespec-sub: new modules
7309         * lib/timespec.h (timespec_add, timespec_sub): New decls.
7310         * lib/timespec-add.c, lib/timespec-sub.c:
7311         * modules/timespec-add, modules/timespec-sub: New files.
7312
7313         dtotimespec: new module
7314         * lib/timespec.h (dtotimespec): New decl.
7315         * lib/dtotimespec.c, modules/dtotimespec: New files.
7316
7317         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
7318
7319         pselect: new module
7320         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
7321         (pselect): New decls.
7322         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
7323         since the standard pselect decl uses 'restrict'.
7324         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
7325         HAVE_PSELECT, REPLACE_PSELECT.
7326         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
7327         HAVE_PSELECT, REPLACE_PSELECT.
7328         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
7329
7330         sys_select: don't depend on sys_socket
7331         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
7332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
7333         This fix works on GNU and GNU-like platforms, but has not been tested
7334         on native Windows.
7335         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
7336         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
7337         gl_HEADER_SYS_SOCKET.
7338         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
7339         gl_PREREQ_SYS_H_WINSOCK2.
7340
7341 2011-06-29  Eric Blake  <eblake@redhat.com>
7342
7343         pipe2: fix C89 compile problem
7344         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
7345         Reported by Bruno Haible.
7346
7347         pipe, pipe2: don't corrupt fd on error
7348         * lib/pipe.c (pipe): Leave fd unchanged on error.
7349         * lib/pipe2.c (pipe2): Likewise.
7350         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
7351         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7352
7353 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
7354
7355         mmap-anon: do not use regular expressions inadvertently
7356         * m4/mmap-anon.m4: Remove trailing period from strings sought
7357         in the output.
7358
7359 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7360
7361         nanosleep: fix integer overflow problem
7362         * lib/nanosleep.c (my_usleep): Don't assume signed integer
7363         arithmetic wraps around on overflow.
7364
7365         nanosleep: simplify carrying
7366         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
7367         first call to the underyling nanosleep, not for the last one.
7368         This doesn't fix any bugs, but it simplifies the computation of
7369         the remaining delay.  Found while auditing integer overflow issues.
7370
7371         dup2: remove test for existence of fcntl
7372         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
7373         "#if HAVE_FCNTL", in the configure-time test program.
7374         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
7375         and therefore speeds up "configure" a bit.  Found while
7376         adding the dup2 module to Emacs.
7377
7378 2011-06-24  Eric Blake  <eblake@redhat.com>
7379
7380         maint.mk: enhance useless header checks
7381         * top/maint.mk (_sc_header_without_use): Check both include
7382         styles.
7383         (sc_prohibit_assert_without_use)
7384         (sc_prohibit_close_stream_without_use)
7385         (sc_prohibit_getopt_without_use)
7386         (sc_prohibit_quotearg_without_use)
7387         (sc_prohibit_quote_without_use)
7388         (sc_prohibit_long_options_without_use)
7389         (sc_prohibit_inttostr_without_use)
7390         (sc_prohibit_ignore_value_without_use)
7391         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
7392         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
7393         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
7394         (sc_prohibit_hash_pjw_without_use)
7395         (sc_prohibit_safe_read_without_use)
7396         (sc_prohibit_argmatch_without_use)
7397         (sc_prohibit_canonicalize_without_use)
7398         (sc_prohibit_root_dev_ino_without_use)
7399         (sc_prohibit_openat_without_use)
7400         (sc_prohibit_c_ctype_without_use)
7401         (sc_prohibit_signal_without_use)
7402         (sc_prohibit_stdio--_without_use)
7403         (sc_prohibit_stdio-safer_without_use)
7404         (sc_prohibit_strings_without_use)
7405         (sc_prohibit_intprops_without_use)
7406         (sc_prohibit_stddef_without_use)
7407         (sc_prohibit_xfreopen_without_use): Update clients.
7408
7409 2011-06-24  Jim Meyering  <meyering@redhat.com>
7410
7411         syntax-check: keep one maint.mk rule in sync with its header
7412         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
7413         of the bug Eric has just fixed, with today's commit 25e4c2ec.
7414         I prefer to avoid temporary files here, so use <(...), but that
7415         is not supported by /bin/sh, so...
7416         (SHELL): Define to /bin/bash.
7417
7418 2011-06-24  Eric Blake  <eblake@redhat.com>
7419
7420         maint.mk: update sc_prohibit_intprops_without_use
7421         * top/maint.mk (_intprops_names): Match recent changes.
7422
7423 2011-06-24  Bruno Haible  <bruno@clisp.org>
7424
7425         strerror-override: No-op tweak.
7426         * lib/strerror-override.h (strerror_override): Reorder conditions,
7427         for consistency with lib/strerror-override.c.
7428
7429 2011-06-23  Eric Blake  <eblake@redhat.com>
7430
7431         maint.mk: test further PATH_MAX issues
7432         * top/maint.mk (sc_prohibit_path_max_array): Rename...
7433         (sc_prohibit_path_max_allocation): ...and also test alloca.
7434         Suggested by Jim Meyering.
7435
7436 2011-06-22  Eric Blake  <eblake@redhat.com>
7437
7438         maint.mk: add syntax-check to avoid char[PATH_MAX]
7439         * top/maint.mk (sc_prohibit_path_max_array): New rule.
7440
7441         stat: be robust to PATH_MAX definition
7442         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
7443         * modules/stat (Depends-on): Add verify.
7444
7445         link: work around IRIX bug
7446         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
7447         * lib/link.c (rpl_link): Work around it.
7448         * tests/test-link.h (test_link): Enhance test.
7449         * doc/posix-functions/link.texi (link): Document the bug.
7450
7451         getopt: silence clang warning
7452         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
7453         dereference.
7454         Reported by Gustavo Martin Domato.
7455
7456 2011-06-22  Jim Meyering  <meyering@redhat.com>
7457
7458         bootstrap: do not insert a blank line into each .gitignore file
7459         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
7460
7461 2011-06-21  Eric Blake  <eblake@redhat.com>
7462
7463         perror: test for output mismatch
7464         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
7465         perror on IRIX.
7466
7467         strerror_r: fix OpenBSD behavior on out-of-range
7468         * lib/strerror_r.c (strerror_r): Always use maximal string.
7469         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7470
7471         strerror_r: fix OpenBSD behavior on 0
7472         * lib/strerror-override.c (strerror_override): Also override 0
7473         when needed.
7474         * lib/strerror-override.h (strerror_override): Likewise.
7475         * lib/strerror.c (strerror): Simplify, now that 0 override is done
7476         earlier.
7477         * lib/strerror_r.c (strerror_r): Likewise.
7478         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
7479         behavior...
7480         (gl_FUNC_STRERROR_0): ...into new macro.
7481         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
7482         is overridden.
7483         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
7484         * modules/strerror-override (Files): Add strerror.m4.
7485         (configure.ac): Also provide override for 0 when needed.
7486         * doc/posix-functions/strerror.texi (strerror): Document this.
7487         * doc/posix-functions/perror.texi (perror): Likewise.
7488
7489         perror: adjust array size
7490         * modules/perror (Depends-on): Add strerror-override.
7491         * lib/perror.c (perror): Use it to avoid magic number.
7492
7493         strerror-override: reduce size
7494         * lib/strerror-override.c (strerror_override): Use fewer lines.
7495
7496 2011-06-20  Bruno Haible  <bruno@clisp.org>
7497
7498         pathmax: Ensure correct value for PATH_MAX on HP-UX.
7499         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
7500
7501 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7502
7503         alloca: port to compilers that can optimize like GCC 4.6.0
7504         * lib/alloca.c (find_stack_direction): New signature, taken from
7505         Autoconf git.  This works with GCC 4.6.0.  This code should never
7506         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
7507         be used with other compilers that optimize as well as GCC 4.6.0 does.
7508         (alloca): Adjust to new signature.
7509         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
7510         New macro, which patches Autoconf in a similar way.
7511
7512         c-stack: stop worrying about stack direction
7513         * lib/c-stack.c (find_stack_direction): Remove.
7514         (segv_handler): Don't worry about stack direction growth, as it's
7515         too much of a pain to configure this correctly, given how compilers
7516         are optimizing-away our stack-growth detection code.  Instead, assume
7517         that any access to just before or just after the stack is OK.
7518         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7519         Don't require AC_FUNC_ALLOCA; no longer needed.
7520
7521 2011-06-20  Eric Blake  <eblake@redhat.com>
7522
7523         test-stat: don't allocate PATH_MAX bytes
7524         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
7525         PATH_MAX-sized buffer.
7526         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
7527         * modules/stat-tests (Depends-on): Likewise.
7528         * tests/test-fstatat.c (includes): Drop pathmax.h.
7529         * tests/test-stat.c (includes): Likewise.
7530         Reported by Bruno Haible.
7531
7532 2011-06-20  Bruno Haible  <bruno@clisp.org>
7533
7534         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
7535         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
7536         * lib/float.c: New file.
7537         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
7538         REPLACE_FLOAT_LDBL.
7539         * modules/float (Files): Add lib/float.c.
7540         (configure.ac): Invoke AC_LIBOBJ.
7541         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
7542
7543 2011-06-20  Bruno Haible  <bruno@clisp.org>
7544
7545         Tests for module 'float'.
7546         * modules/float-tests: New file.
7547         * tests/test-float.c: New file.
7548
7549 2011-06-19  Bruno Haible  <bruno@clisp.org>
7550
7551         isinf: Coding style.
7552         * lib/isinf.c: Use GNU coding style.
7553
7554 2011-06-19  Bruno Haible  <bruno@clisp.org>
7555
7556         linkat test: Avoid test failure on AIX 7.1.
7557         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
7558         * tests/test-link.h (test_link): Likewise.
7559
7560 2011-06-19  Bruno Haible  <bruno@clisp.org>
7561
7562         pread test: Avoid test failure on OpenBSD 4.9.
7563         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
7564
7565 2011-06-19  Bruno Haible  <bruno@clisp.org>
7566
7567         sprintf-posix: Fix test failure on AIX 7.1.
7568         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
7569         * doc/posix-functions/dprintf.texi: Mention limited precision problem
7570         on AIX.
7571         * doc/posix-functions/fprintf.texi: Likewise.
7572         * doc/posix-functions/printf.texi: Likewise.
7573         * doc/posix-functions/snprintf.texi: Likewise.
7574         * doc/posix-functions/sprintf.texi: Likewise.
7575         * doc/posix-functions/vdprintf.texi: Likewise.
7576         * doc/posix-functions/vfprintf.texi: Likewise.
7577         * doc/posix-functions/vprintf.texi: Likewise.
7578         * doc/posix-functions/vsnprintf.texi: Likewise.
7579         * doc/posix-functions/vsprintf.texi: Likewise.
7580
7581 2011-06-19  Bruno Haible  <bruno@clisp.org>
7582
7583         roundl-ieee: Fix test failure on AIX 7.1.
7584         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
7585         * doc/posix-functions/roundl.texi: Mention problem with negative
7586         arguments.
7587
7588 2011-06-19  Bruno Haible  <bruno@clisp.org>
7589
7590         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7591         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
7592         * doc/posix-functions/round.texi: Mention problem with negative
7593         arguments.
7594         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
7595
7596 2011-06-19  Bruno Haible  <bruno@clisp.org>
7597
7598         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7599         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
7600         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
7601         * doc/posix-functions/roundf.texi: Mention problem with negative
7602         arguments.
7603         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
7604
7605 2011-06-19  Bruno Haible  <bruno@clisp.org>
7606
7607         ceilf-ieee: Work around bug on MacOS X 10.5.
7608         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
7609
7610         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
7611         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
7612         IEEE compliant, avoid compiler optimizations.
7613         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7614         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7615         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7616         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7617         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7618         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7619         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7620         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7621         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7622         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7623
7624 2011-06-19  Bruno Haible  <bruno@clisp.org>
7625
7626         ceilf-ieee: Work around bug on AIX 7.1.
7627         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
7628         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
7629
7630 2011-06-19  Bruno Haible  <bruno@clisp.org>
7631
7632         ceil-ieee: Work around bug on AIX 7.1.
7633         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
7634         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
7635
7636 2011-06-18  Bruno Haible  <bruno@clisp.org>
7637
7638         fsync test: Avoid test failure on MacOS X and AIX.
7639         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
7640         EINVAL.
7641
7642 2011-06-18  Bruno Haible  <bruno@clisp.org>
7643
7644         openat, fdopendir tests: Fix link errors.
7645         * modules/openat-tests (Depends-on): Add progname.
7646         * modules/fdopendir-tests (Depends-on): Likewise.
7647         * tests/test-fchownat.c: Include progname.h.
7648         (main): Call set_program_name.
7649         * tests/test-fstatat.c: Include progname.h.
7650         (main): Call set_program_name.
7651         * tests/test-mkdirat.c: Include progname.h.
7652         (main): Call set_program_name.
7653         * tests/test-openat.c: Include progname.h.
7654         (main): Call set_program_name.
7655         * tests/test-unlinkat.c: Include progname.h.
7656         (main): Call set_program_name.
7657         * tests/test-fdopendir.c: Include progname.h.
7658         (main): Call set_program_name.
7659
7660 2011-06-18  Bruno Haible  <bruno@clisp.org>
7661
7662         Doc update.
7663         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7664         HP-UX.
7665         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7666
7667 2011-06-18  Bruno Haible  <bruno@clisp.org>
7668
7669         getcwd tests: Avoid compilation error on HP-UX 11.31.
7670         * modules/getcwd-tests (Depends-on): Add pathmax.
7671         * tests/test-getcwd.c: Include pathmax.h.
7672
7673 2011-06-18  Bruno Haible  <bruno@clisp.org>
7674
7675         isfinite, isinf: Fix link error on AIX 6 and 7.
7676         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7677         needed, also test the macro with a 'float' argument.
7678         * m4/isinf.m4 (gl_ISINF): Likewise.
7679
7680 2011-06-18  Bruno Haible  <bruno@clisp.org>
7681
7682         getloadavg: Don't clobber LIBS. Regression from previous commit.
7683         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7684         AC_CHECK_LIB from here...
7685         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7686         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7687         gl_func_getloadavg_done.
7688         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7689
7690 2011-06-18  Bruno Haible  <bruno@clisp.org>
7691
7692         clean-temp: Improve documentation.
7693         * lib/clean-temp.h: Explain better how to use this module.
7694         Reported by John Darrington <john@darrington.wattle.id.au>.
7695
7696 2011-06-17  Bruno Haible  <bruno@clisp.org>
7697
7698         pread, pwrite: Avoid cc warning on AIX.
7699         * lib/unistd.in.h (pread): Undefine before defining as a macro.
7700         (pwrite): Likewise.
7701
7702 2011-06-17  Bruno Haible  <bruno@clisp.org>
7703
7704         spawn-pipe tests: Fix link error.
7705         * tests/test-spawn-pipe-child.c: Undefine fprintf.
7706         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7707
7708 2011-06-17  Bruno Haible  <bruno@clisp.org>
7709
7710         Tests: Remove unnecessary dependency.
7711         * modules/canonicalize-tests (Depends-on): Remove progname.
7712         * modules/chown-tests (Depends-on): Likewise.
7713         * modules/dirname-tests (Depends-on): Likewise.
7714         * modules/fdopendir-tests (Depends-on): Likewise.
7715         * modules/fdutimensat-tests (Depends-on): Likewise.
7716         * modules/hash-tests (Depends-on): Likewise.
7717         * modules/lchown-tests (Depends-on): Likewise.
7718         * modules/linkat-tests (Depends-on): Likewise.
7719         * modules/renameat-tests (Depends-on): Likewise.
7720         * modules/spawn-pipe-tests (Depends-on): Likewise.
7721         * modules/utimensat-tests (Depends-on): Likewise.
7722
7723 2011-06-17  Bruno Haible  <bruno@clisp.org>
7724
7725         spawn-pipe tests: Fix link error.
7726         * tests/test-spawn-pipe-child.c: Undefine fflush.
7727
7728 2011-06-17  Bruno Haible  <bruno@clisp.org>
7729
7730         Fix tests link errors.
7731         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7732         * modules/chown-tests (Makefile.am): Don't link test-chown with
7733         LIBINTL.
7734         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
7735         LIBINTL.
7736         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
7737         LIBINTL.
7738         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
7739         LIBINTL.
7740
7741 2011-06-16  Bruno Haible  <bruno@clisp.org>
7742
7743         crypto/gc-sha1: Fix recent regression.
7744         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
7745         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
7746
7747         crypto/gc-md5: Fix recent regression.
7748         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
7749
7750         crypto/gc-md4: Fix recent regression.
7751         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
7752         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
7753
7754         crypto/gc-arctwo: Fix recent regression.
7755         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
7756         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
7757
7758         crypto/gc-rijndael: Fix recent regression.
7759         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7760         (configure.ac): Invoke AC_LIBOBJ here.
7761         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7762         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7763
7764         crypto/gc-hmac-sha1: Fix recent regression.
7765         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7766         (configure.ac): Invoke AC_LIBOBJ here.
7767         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7768         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7769
7770         crypto/gc-hmac-md5: Fix recent regression.
7771         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7772         (configure.ac): Invoke AC_LIBOBJ here.
7773         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7774         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7775
7776         crypto/gc-des: Fix recent regression.
7777         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7778         (configure.ac): Invoke AC_LIBOBJ here.
7779         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7780         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7781
7782         crypto/gc-arcfour: Fix recent regression.
7783         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7784         (configure.ac): Invoke AC_LIBOBJ here.
7785         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7786         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7787
7788 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7789
7790         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7791         After the 2011-05-21 change, this macro requires
7792         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7793         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7794
7795 2011-06-16  Bruno Haible  <bruno@clisp.org>
7796
7797         fprintftime: Move AC_LIBOBJ invocations to module description.
7798         * m4/fprintftime.m4: Remove file.
7799         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
7800         (configure.ac): Remove gl_FPRINTFTIME call.
7801         (Makefile.am): Augment lib_SOURCES.
7802         Reported by Jim Meyering.
7803
7804 2011-06-16  Bruno Haible  <bruno@clisp.org>
7805
7806         tmpfile-safer: Finish 2011-05-23 commit.
7807         * m4/stdio-safer.m4: Really remove file.
7808         Reported by Jim Meyering.
7809
7810 2011-06-16  Bruno Haible  <bruno@clisp.org>
7811
7812         syntax-check: Fix typo.
7813         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7814         printf-posix.m4.
7815         Reported by Jim Meyering.
7816
7817 2011-06-13  Jim Meyering  <meyering@redhat.com>
7818
7819         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7820         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7821
7822 2011-05-23  Bruno Haible  <bruno@clisp.org>
7823
7824         yesno: Move AC_LIBOBJ invocations to module description.
7825         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7826         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7827
7828 2011-05-23  Bruno Haible  <bruno@clisp.org>
7829
7830         xstrtol: Move AC_LIBOBJ invocations to module description.
7831         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7832         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7833
7834 2011-05-23  Bruno Haible  <bruno@clisp.org>
7835
7836         xstrtold: Move AC_LIBOBJ invocations to module description.
7837         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7838         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7839
7840 2011-05-23  Bruno Haible  <bruno@clisp.org>
7841
7842         xstrtod: Move AC_LIBOBJ invocations to module description.
7843         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7844         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7845
7846 2011-05-23  Bruno Haible  <bruno@clisp.org>
7847
7848         xnanosleep: Move AC_LIBOBJ invocations to module description.
7849         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7850         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7851
7852 2011-05-23  Bruno Haible  <bruno@clisp.org>
7853
7854         xgetcwd: Move AC_LIBOBJ invocations to module description.
7855         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7856         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7857
7858 2011-05-23  Bruno Haible  <bruno@clisp.org>
7859
7860         xalloc: Move AC_LIBOBJ invocations to module description.
7861         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7862         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7863
7864 2011-05-23  Bruno Haible  <bruno@clisp.org>
7865
7866         write-any-file: Move AC_LIBOBJ invocations to module description.
7867         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7868         invocation.
7869         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7870
7871 2011-05-23  Bruno Haible  <bruno@clisp.org>
7872
7873         utimens: Move AC_LIBOBJ invocations to module description.
7874         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7875         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7876
7877 2011-05-23  Bruno Haible  <bruno@clisp.org>
7878
7879         utimecmp: Move AC_LIBOBJ invocations to module description.
7880         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7881         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7882
7883 2011-05-23  Bruno Haible  <bruno@clisp.org>
7884
7885         userspec: Move AC_LIBOBJ invocations to module description.
7886         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7887         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7888
7889 2011-05-23  Bruno Haible  <bruno@clisp.org>
7890
7891         unlinkdir: Move AC_LIBOBJ invocations to module description.
7892         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7893         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7894
7895 2011-05-23  Bruno Haible  <bruno@clisp.org>
7896
7897         unistd-safer: Move AC_LIBOBJ invocations to module description.
7898         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7899         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7900
7901 2011-05-23  Bruno Haible  <bruno@clisp.org>
7902
7903         tempname: Move AC_LIBOBJ invocations to module description.
7904         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7905         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7906
7907 2011-05-23  Bruno Haible  <bruno@clisp.org>
7908
7909         strftime: Move AC_LIBOBJ invocations to module description.
7910         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7911         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7912
7913 2011-05-23  Bruno Haible  <bruno@clisp.org>
7914
7915         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7916         * m4/stdlib-safer.m4: Remove file.
7917         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7918         (configure.ac): Remove gl_STDLIB_SAFER call.
7919         (Makefile.am): Augment lib_SOURCES.
7920
7921 2011-05-23  Bruno Haible  <bruno@clisp.org>
7922
7923         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7924         * m4/stdio-safer.m4: Remove file.
7925         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7926         (configure.ac): Remove gl_TMPFILE_SAFER call.
7927         (Makefile.am): Augment lib_SOURCES.
7928
7929 2011-05-23  Bruno Haible  <bruno@clisp.org>
7930
7931         popen-safer: Move AC_LIBOBJ invocations to module description.
7932         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7933         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7934         (configure.ac): Remove gl_POPEN_SAFER call.
7935         (Makefile.am): Augment lib_SOURCES.
7936
7937 2011-05-23  Bruno Haible  <bruno@clisp.org>
7938
7939         freopen-safer: Move AC_LIBOBJ invocations to module description.
7940         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7941         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7942         (configure.ac): Remove gl_FREOPEN_SAFER call.
7943         (Makefile.am): Augment lib_SOURCES.
7944
7945 2011-05-23  Bruno Haible  <bruno@clisp.org>
7946
7947         fopen-safer: Move AC_LIBOBJ invocations to module description.
7948         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7949         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7950         (configure.ac): Remove gl_FOPEN_SAFER call.
7951         (Makefile.am): Augment lib_SOURCES.
7952
7953 2011-05-23  Bruno Haible  <bruno@clisp.org>
7954
7955         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7956         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7957         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7958
7959 2011-05-23  Bruno Haible  <bruno@clisp.org>
7960
7961         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7962         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7963         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7964
7965 2011-05-23  Bruno Haible  <bruno@clisp.org>
7966
7967         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7968         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7969         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7970
7971 2011-05-23  Bruno Haible  <bruno@clisp.org>
7972
7973         settime: Move AC_LIBOBJ invocations to module description.
7974         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7975         * modules/settime (Makefile.am): Augment lib_SOURCES.
7976
7977 2011-05-23  Bruno Haible  <bruno@clisp.org>
7978
7979         savedir: Move AC_LIBOBJ invocations to module description.
7980         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7981         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7982
7983 2011-05-23  Bruno Haible  <bruno@clisp.org>
7984
7985         save-cwd: Move AC_LIBOBJ invocations to module description.
7986         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7987         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7988
7989 2011-05-23  Bruno Haible  <bruno@clisp.org>
7990
7991         same: Move AC_LIBOBJ invocations to module description.
7992         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7993         * modules/same (Makefile.am): Augment lib_SOURCES.
7994
7995 2011-05-23  Bruno Haible  <bruno@clisp.org>
7996
7997         safe-write: Move AC_LIBOBJ invocations to module description.
7998         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7999         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
8000         instead of gl_SAFE_WRITE.
8001         (Makefile.am): Augment lib_SOURCES.
8002
8003 2011-05-23  Bruno Haible  <bruno@clisp.org>
8004
8005         safe-read: Move AC_LIBOBJ invocations to module description.
8006         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
8007         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
8008         of gl_SAFE_READ.
8009         (Makefile.am): Augment lib_SOURCES.
8010
8011 2011-05-23  Bruno Haible  <bruno@clisp.org>
8012
8013         safe-alloc: Move AC_LIBOBJ invocations to module description.
8014         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
8015         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
8016
8017 2011-05-23  Bruno Haible  <bruno@clisp.org>
8018
8019         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
8020         * m4/rijndael.m4: Remove file.
8021         * modules/crypto/rijndael (Files): Remove it.
8022         (configure.ac): Remove gl_RIJNDAEL call.
8023         (Makefile.am): Augment lib_SOURCES.
8024
8025 2011-05-23  Bruno Haible  <bruno@clisp.org>
8026
8027         readtokens: Move AC_LIBOBJ invocations to module description.
8028         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
8029         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
8030
8031 2011-05-23  Bruno Haible  <bruno@clisp.org>
8032
8033         read-file: Move AC_LIBOBJ invocations to module description.
8034         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
8035         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
8036         of gl_FUNC_READ_FILE.
8037         (Makefile.am): Augment lib_SOURCES.
8038
8039 2011-05-23  Bruno Haible  <bruno@clisp.org>
8040
8041         quotearg: Move AC_LIBOBJ invocations to module description.
8042         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
8043         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
8044
8045 2011-05-23  Bruno Haible  <bruno@clisp.org>
8046
8047         quote: Move AC_LIBOBJ invocations to module description.
8048         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
8049         * modules/quote (Makefile.am): Augment lib_SOURCES.
8050
8051 2011-05-23  Bruno Haible  <bruno@clisp.org>
8052
8053         posixver: Move AC_LIBOBJ invocations to module description.
8054         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
8055         * modules/posixver (Makefile.am): Augment lib_SOURCES.
8056
8057 2011-05-23  Bruno Haible  <bruno@clisp.org>
8058
8059         posixtm: Move AC_LIBOBJ invocations to module description.
8060         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
8061         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
8062
8063 2011-05-23  Bruno Haible  <bruno@clisp.org>
8064
8065         physmem: Move AC_LIBOBJ invocations to module description.
8066         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
8067         * modules/physmem (Makefile.am): Augment lib_SOURCES.
8068
8069 2011-05-23  Bruno Haible  <bruno@clisp.org>
8070
8071         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
8072         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
8073         invocation.
8074         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
8075
8076 2011-05-23  Bruno Haible  <bruno@clisp.org>
8077
8078         mpsort: Move AC_LIBOBJ invocations to module description.
8079         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
8080         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
8081
8082 2011-05-23  Bruno Haible  <bruno@clisp.org>
8083
8084         modechange: Move AC_LIBOBJ invocations to module description.
8085         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
8086         * modules/modechange (Makefile.am): Augment lib_SOURCES.
8087
8088 2011-05-23  Bruno Haible  <bruno@clisp.org>
8089
8090         mkdir-p: Move AC_LIBOBJ invocations to module description.
8091         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
8092         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
8093
8094 2011-05-23  Bruno Haible  <bruno@clisp.org>
8095
8096         mkancesdirs: Move AC_LIBOBJ invocations to module description.
8097         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
8098         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
8099
8100 2011-05-23  Bruno Haible  <bruno@clisp.org>
8101
8102         mgetgroups: Move AC_LIBOBJ invocations to module description.
8103         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
8104         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
8105
8106 2011-05-23  Bruno Haible  <bruno@clisp.org>
8107
8108         memxor: Move AC_LIBOBJ invocations to module description.
8109         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
8110         * modules/memxor (Makefile.am): Augment lib_SOURCES.
8111
8112 2011-05-23  Bruno Haible  <bruno@clisp.org>
8113
8114         memcoll: Move AC_LIBOBJ invocations to module description.
8115         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
8116         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
8117
8118 2011-05-23  Bruno Haible  <bruno@clisp.org>
8119
8120         memcasecmp: Move AC_LIBOBJ invocations to module description.
8121         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
8122         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
8123
8124 2011-05-23  Bruno Haible  <bruno@clisp.org>
8125
8126         crypto/md5: Move AC_LIBOBJ invocations to module description.
8127         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
8128         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
8129
8130 2011-05-23  Bruno Haible  <bruno@clisp.org>
8131
8132         crypto/md4: Move AC_LIBOBJ invocations to module description.
8133         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
8134         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
8135
8136 2011-05-23  Bruno Haible  <bruno@clisp.org>
8137
8138         crypto/md2: Move AC_LIBOBJ invocations to module description.
8139         * m4/md2.m4: Remove file.
8140         * modules/crypto/md2 (Files): Remove it.
8141         (configure.ac): Remove gl_MD2 call.
8142         (Makefile.am): Augment lib_SOURCES.
8143
8144 2011-05-23  Bruno Haible  <bruno@clisp.org>
8145
8146         long-options: Move AC_LIBOBJ invocations to module description.
8147         * m4/long-options.m4: Remove file.
8148         * modules/long-options (Files): Remove it.
8149         (configure.ac): Remove gl_LONG_OPTIONS call.
8150         (Makefile.am): Augment lib_SOURCES.
8151
8152 2011-05-23  Bruno Haible  <bruno@clisp.org>
8153
8154         i-ring: Move AC_LIBOBJ invocations to module description.
8155         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
8156         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
8157
8158 2011-05-23  Bruno Haible  <bruno@clisp.org>
8159
8160         idcache: Move AC_LIBOBJ invocations to module description.
8161         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
8162         * modules/idcache (Makefile.am): Augment lib_SOURCES.
8163
8164 2011-05-23  Bruno Haible  <bruno@clisp.org>
8165
8166         human: Move AC_LIBOBJ invocations to module description.
8167         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
8168         * modules/human (Makefile.am): Augment lib_SOURCES.
8169
8170 2011-05-23  Bruno Haible  <bruno@clisp.org>
8171
8172         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
8173         * m4/hmac-sha1.m4: Remove file.
8174         * modules/crypto/hmac-sha1 (Files): Remove it.
8175         (configure.ac): Remove gl_HMAC_SHA1 call.
8176         (Makefile.am): Augment lib_SOURCES.
8177
8178 2011-05-23  Bruno Haible  <bruno@clisp.org>
8179
8180         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
8181         * m4/hmac-md5.m4: Remove file.
8182         * modules/crypto/hmac-md5 (Files): Remove it.
8183         (configure.ac): Remove gl_HMAC_MD5 call.
8184         (Makefile.am): Augment lib_SOURCES.
8185
8186 2011-05-23  Bruno Haible  <bruno@clisp.org>
8187
8188         hash: Move AC_LIBOBJ invocations to module description.
8189         * m4/hash.m4: Remove file.
8190         * modules/hash (Files): Remove it.
8191         (configure.ac): Remove gl_HASH call.
8192         (Makefile.am): Augment lib_SOURCES.
8193
8194 2011-05-23  Bruno Haible  <bruno@clisp.org>
8195
8196         hard-locale: Move AC_LIBOBJ invocations to module description.
8197         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
8198         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
8199
8200 2011-05-23  Bruno Haible  <bruno@clisp.org>
8201
8202         getugroups: Move AC_LIBOBJ invocations to module description.
8203         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
8204         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
8205
8206 2011-05-23  Bruno Haible  <bruno@clisp.org>
8207
8208         gettime: Move AC_LIBOBJ invocations to module description.
8209         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
8210         * modules/gettime (Makefile.am): Augment lib_SOURCES.
8211
8212 2011-05-23  Bruno Haible  <bruno@clisp.org>
8213
8214         getndelim2: Move AC_LIBOBJ invocations to module description.
8215         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
8216         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
8217
8218 2011-05-23  Bruno Haible  <bruno@clisp.org>
8219
8220         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
8221         * m4/gc-pbkdf2-sha1.m4: Remove file.
8222         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
8223         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
8224         (Makefile.am): Augment lib_SOURCES.
8225
8226 2011-05-23  Bruno Haible  <bruno@clisp.org>
8227
8228         fts: Move AC_LIBOBJ invocations to module description.
8229         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
8230         * modules/fts (configure.ac): ... to here.
8231
8232 2011-05-23  Bruno Haible  <bruno@clisp.org>
8233
8234         file-type: Move AC_LIBOBJ invocations to module description.
8235         * m4/file-type.m4: Remove file.
8236         * modules/file-type (Files): Remove it.
8237         (configure.ac): Remove gl_FILE_TYPE call.
8238         (Makefile.am): Augment lib_SOURCES.
8239
8240 2011-05-23  Bruno Haible  <bruno@clisp.org>
8241
8242         filenamecat*: Respect rules for use of AC_LIBOBJ.
8243         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
8244         Remove AC_LIBOBJ invocation.
8245         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
8246         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
8247
8248 2011-05-23  Bruno Haible  <bruno@clisp.org>
8249
8250         filemode: Move AC_LIBOBJ invocations to module description.
8251         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
8252         * modules/filemode (Makefile.am): Augment lib_SOURCES.
8253
8254 2011-05-23  Bruno Haible  <bruno@clisp.org>
8255
8256         openat-safer: Move AC_LIBOBJ invocations to module description.
8257         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
8258         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
8259
8260 2011-05-23  Bruno Haible  <bruno@clisp.org>
8261
8262         fcntl-safer: Move AC_LIBOBJ invocations to module description.
8263         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
8264         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
8265
8266 2011-05-23  Bruno Haible  <bruno@clisp.org>
8267
8268         exclude: Move AC_LIBOBJ invocations to module description.
8269         * m4/exclude.m4: Remove file.
8270         * modules/exclude (Files): Remove it.
8271         (configure.ac): Remove gl_EXCLUDE call.
8272         (Makefile.am): Augment lib_SOURCES.
8273
8274 2011-05-23  Bruno Haible  <bruno@clisp.org>
8275
8276         dirname*: Respect rules for use of AC_LIBOBJ.
8277         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
8278         invocations.
8279         * modules/dirname (Makefile.am): Augment lib_SOURCES.
8280         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
8281
8282 2011-05-23  Bruno Haible  <bruno@clisp.org>
8283
8284         dirent-safer: Move AC_LIBOBJ invocations to module description.
8285         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
8286         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
8287
8288 2011-05-23  Bruno Haible  <bruno@clisp.org>
8289
8290         crypto/des: Move AC_LIBOBJ invocations to module description.
8291         * m4/des.m4: Remove file.
8292         * modules/crypto/des (Files): Remove it.
8293         (configure.ac): Remove gl_DES call.
8294         (Makefile.am): Augment lib_SOURCES.
8295
8296 2011-05-23  Bruno Haible  <bruno@clisp.org>
8297
8298         cycle-check: Move AC_LIBOBJ invocations to module description.
8299         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
8300         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
8301
8302 2011-05-23  Bruno Haible  <bruno@clisp.org>
8303
8304         c-strtold: Move AC_LIBOBJ invocations to module description.
8305         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
8306         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
8307
8308 2011-05-23  Bruno Haible  <bruno@clisp.org>
8309
8310         c-strtod: Move AC_LIBOBJ invocations to module description.
8311         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
8312         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
8313
8314 2011-05-23  Bruno Haible  <bruno@clisp.org>
8315
8316         crc: Move AC_LIBOBJ invocations to module description.
8317         * m4/crc.m4: Remove file.
8318         * modules/crc (Files): Remove it.
8319         (configure.ac): Remove gl_CRC call.
8320         (Makefile.am): Augment lib_SOURCES.
8321
8322 2011-05-23  Bruno Haible  <bruno@clisp.org>
8323
8324         close-stream: Move AC_LIBOBJ invocations to module description.
8325         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
8326         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
8327
8328 2011-05-23  Bruno Haible  <bruno@clisp.org>
8329
8330         closeout: Move AC_LIBOBJ invocations to module description.
8331         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
8332         * modules/closeout (Makefile.am): Augment lib_SOURCES.
8333
8334 2011-05-23  Bruno Haible  <bruno@clisp.org>
8335
8336         closein: Move AC_LIBOBJ invocations to module description.
8337         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
8338         * modules/closein (Makefile.am): Augment lib_SOURCES.
8339
8340 2011-05-23  Bruno Haible  <bruno@clisp.org>
8341
8342         cloexec: Move AC_LIBOBJ invocations to module description.
8343         * m4/cloexec.m4: Remove file.
8344         * modules/cloexec (Files): Remove it.
8345         (configure.ac): Remove gl_CLOEXEC call.
8346         (Makefile.am): Augment lib_SOURCES.
8347
8348 2011-05-23  Bruno Haible  <bruno@clisp.org>
8349
8350         check-version: Move AC_LIBOBJ invocations to module description.
8351         * m4/check-version.m4: Remove file.
8352         * modules/check-version (Files): Remove it.
8353         (configure.ac): Remove gl_CHECK_VERSION call.
8354         (Makefile.am): Augment lib_SOURCES.
8355
8356 2011-05-23  Bruno Haible  <bruno@clisp.org>
8357
8358         chdir-safer: Move AC_LIBOBJ invocations to module description.
8359         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
8360         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
8361
8362 2011-05-23  Bruno Haible  <bruno@clisp.org>
8363
8364         canonicalize: Move AC_LIBOBJ invocations to module description.
8365         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
8366         AC_LIBOBJ invocation.
8367         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
8368
8369 2011-05-23  Bruno Haible  <bruno@clisp.org>
8370
8371         canon-host: Move AC_LIBOBJ invocations to module description.
8372         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
8373         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
8374         instead of gl_CANON_HOST.
8375         (Makefile.am): Augment lib_SOURCES.
8376
8377 2011-05-23  Bruno Haible  <bruno@clisp.org>
8378
8379         backupfile: Move AC_LIBOBJ invocations to module description.
8380         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
8381         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
8382
8383 2011-05-23  Bruno Haible  <bruno@clisp.org>
8384
8385         argmatch: Move AC_LIBOBJ invocations to module description.
8386         * m4/argmatch.m4: Remove file.
8387         * modules/argmatch (Files): Remove it.
8388         (configure.ac): Remove gl_ARGMATCH call.
8389         (Makefile.am): Augment lib_SOURCES.
8390
8391 2011-05-23  Bruno Haible  <bruno@clisp.org>
8392
8393         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
8394         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
8395         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
8396
8397 2011-05-23  Bruno Haible  <bruno@clisp.org>
8398
8399         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
8400         * m4/arcfour.m4: Remove file.
8401         * modules/crypto/arcfour (Files): Remove it.
8402         (configure.ac): Remove gl_ARCFOUR call.
8403         (Makefile.am): Augment lib_SOURCES.
8404
8405 2011-05-22  Bruno Haible  <bruno@clisp.org>
8406
8407         write: Move AC_LIBOBJ invocations to module description.
8408         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
8409         * modules/write (configure.ac): ... to here.
8410
8411 2011-05-22  Bruno Haible  <bruno@clisp.org>
8412
8413         wmemset: Move AC_LIBOBJ invocations to module description.
8414         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
8415         here...
8416         * modules/wmemset (configure.ac): ... to here.
8417
8418 2011-05-22  Bruno Haible  <bruno@clisp.org>
8419
8420         wmemmove: Move AC_LIBOBJ invocations to module description.
8421         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
8422         here...
8423         * modules/wmemmove (configure.ac): ... to here.
8424
8425 2011-05-22  Bruno Haible  <bruno@clisp.org>
8426
8427         wmemcpy: Move AC_LIBOBJ invocations to module description.
8428         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
8429         here...
8430         * modules/wmemcpy (configure.ac): ... to here.
8431
8432 2011-05-22  Bruno Haible  <bruno@clisp.org>
8433
8434         wmemcmp: Move AC_LIBOBJ invocations to module description.
8435         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
8436         here...
8437         * modules/wmemcmp (configure.ac): ... to here.
8438
8439 2011-05-22  Bruno Haible  <bruno@clisp.org>
8440
8441         wmemchr: Move AC_LIBOBJ invocations to module description.
8442         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
8443         here...
8444         * modules/wmemchr (configure.ac): ... to here.
8445
8446 2011-05-22  Bruno Haible  <bruno@clisp.org>
8447
8448         wcswidth: Move AC_LIBOBJ invocations to module description.
8449         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
8450         here...
8451         * modules/wcswidth (configure.ac): ... to here.
8452
8453 2011-05-22  Bruno Haible  <bruno@clisp.org>
8454
8455         wcwidth: Respect rules for use of AC_LIBOBJ.
8456         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
8457         invocation from here...
8458         * modules/wcwidth (configure.ac): ... to here.
8459         (Depends-on): Update conditions.
8460
8461 2011-05-22  Bruno Haible  <bruno@clisp.org>
8462
8463         wctype: Move AC_LIBOBJ invocations to module description.
8464         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
8465         invocation from here...
8466         * modules/wctype (configure.ac): ... to here.
8467         (Depends-on): Update conditions.
8468
8469 2011-05-22  Bruno Haible  <bruno@clisp.org>
8470
8471         wctrans: Move AC_LIBOBJ invocations to module description.
8472         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
8473         invocation from here...
8474         * modules/wctrans (configure.ac): ... to here.
8475
8476 2011-05-22  Bruno Haible  <bruno@clisp.org>
8477
8478         wctomb: Move AC_LIBOBJ invocations to module description.
8479         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
8480         invocations from here...
8481         * modules/wctomb (configure.ac): ... to here.
8482
8483 2011-05-22  Bruno Haible  <bruno@clisp.org>
8484
8485         wctob: Move AC_LIBOBJ invocations to module description.
8486         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
8487         gl_PREREQ_WCTOB invocations from here...
8488         * modules/wctob (configure.ac): ... to here.
8489         (Depends-on): Update conditions.
8490
8491 2011-05-22  Bruno Haible  <bruno@clisp.org>
8492
8493         wcsxfrm: Move AC_LIBOBJ invocations to module description.
8494         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
8495         here...
8496         * modules/wcsxfrm (configure.ac): ... to here.
8497
8498 2011-05-22  Bruno Haible  <bruno@clisp.org>
8499
8500         wcstok: Move AC_LIBOBJ invocations to module description.
8501         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
8502         * modules/wcstok (configure.ac): ... to here.
8503
8504 2011-05-22  Bruno Haible  <bruno@clisp.org>
8505
8506         wcsstr: Move AC_LIBOBJ invocations to module description.
8507         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
8508         * modules/wcsstr (configure.ac): ... to here.
8509
8510 2011-05-22  Bruno Haible  <bruno@clisp.org>
8511
8512         wcsspn: Move AC_LIBOBJ invocations to module description.
8513         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
8514         * modules/wcsspn (configure.ac): ... to here.
8515
8516 2011-05-22  Bruno Haible  <bruno@clisp.org>
8517
8518         wcsrtombs: Move AC_LIBOBJ invocations to module description.
8519         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
8520         gl_PREREQ_WCSRTOMBS invocations from here...
8521         * modules/wcsrtombs (configure.ac): ... to here.
8522
8523 2011-05-22  Bruno Haible  <bruno@clisp.org>
8524
8525         wcsrchr: Move AC_LIBOBJ invocations to module description.
8526         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
8527         here...
8528         * modules/wcsrchr (configure.ac): ... to here.
8529
8530 2011-05-22  Bruno Haible  <bruno@clisp.org>
8531
8532         wcspbrk: Move AC_LIBOBJ invocations to module description.
8533         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
8534         here...
8535         * modules/wcspbrk (configure.ac): ... to here.
8536
8537 2011-05-22  Bruno Haible  <bruno@clisp.org>
8538
8539         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
8540         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
8541         gl_PREREQ_WCSNRTOMBS invocations from here...
8542         * modules/wcsnrtombs (configure.ac): ... to here.
8543
8544 2011-05-22  Bruno Haible  <bruno@clisp.org>
8545
8546         wcsnlen: Move AC_LIBOBJ invocations to module description.
8547         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
8548         here...
8549         * modules/wcsnlen (configure.ac): ... to here.
8550
8551 2011-05-22  Bruno Haible  <bruno@clisp.org>
8552
8553         wcsncpy: Move AC_LIBOBJ invocations to module description.
8554         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
8555         here...
8556         * modules/wcsncpy (configure.ac): ... to here.
8557
8558 2011-05-22  Bruno Haible  <bruno@clisp.org>
8559
8560         wcsncmp: Move AC_LIBOBJ invocations to module description.
8561         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
8562         here...
8563         * modules/wcsncmp (configure.ac): ... to here.
8564
8565 2011-05-22  Bruno Haible  <bruno@clisp.org>
8566
8567         wcsncat: Move AC_LIBOBJ invocations to module description.
8568         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
8569         here...
8570         * modules/wcsncat (configure.ac): ... to here.
8571
8572 2011-05-22  Bruno Haible  <bruno@clisp.org>
8573
8574         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
8575         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
8576         from here...
8577         * modules/wcsncasecmp (configure.ac): ... to here.
8578
8579 2011-05-22  Bruno Haible  <bruno@clisp.org>
8580
8581         wcslen: Move AC_LIBOBJ invocations to module description.
8582         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
8583         * modules/wcslen (configure.ac): ... to here.
8584
8585 2011-05-22  Bruno Haible  <bruno@clisp.org>
8586
8587         wcsdup: Move AC_LIBOBJ invocations to module description.
8588         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
8589         * modules/wcsdup (configure.ac): ... to here.
8590
8591 2011-05-22  Bruno Haible  <bruno@clisp.org>
8592
8593         wcscspn: Move AC_LIBOBJ invocations to module description.
8594         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
8595         here...
8596         * modules/wcscspn (configure.ac): ... to here.
8597
8598 2011-05-22  Bruno Haible  <bruno@clisp.org>
8599
8600         wcscpy: Move AC_LIBOBJ invocations to module description.
8601         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
8602         * modules/wcscpy (configure.ac): ... to here.
8603
8604 2011-05-22  Bruno Haible  <bruno@clisp.org>
8605
8606         wcscoll: Move AC_LIBOBJ invocations to module description.
8607         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
8608         here...
8609         * modules/wcscoll (configure.ac): ... to here.
8610
8611 2011-05-22  Bruno Haible  <bruno@clisp.org>
8612
8613         wcscmp: Move AC_LIBOBJ invocations to module description.
8614         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
8615         * modules/wcscmp (configure.ac): ... to here.
8616
8617 2011-05-22  Bruno Haible  <bruno@clisp.org>
8618
8619         wcschr: Move AC_LIBOBJ invocations to module description.
8620         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
8621         * modules/wcschr (configure.ac): ... to here.
8622
8623 2011-05-22  Bruno Haible  <bruno@clisp.org>
8624
8625         wcscat: Move AC_LIBOBJ invocations to module description.
8626         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
8627         * modules/wcscat (configure.ac): ... to here.
8628
8629 2011-05-22  Bruno Haible  <bruno@clisp.org>
8630
8631         wcscasecmp: Move AC_LIBOBJ invocations to module description.
8632         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
8633         here...
8634         * modules/wcscasecmp (configure.ac): ... to here.
8635
8636 2011-05-22  Bruno Haible  <bruno@clisp.org>
8637
8638         wcrtomb: Move AC_LIBOBJ invocations to module description.
8639         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
8640         invocations from here...
8641         * modules/wcrtomb (configure.ac): ... to here.
8642
8643 2011-05-22  Bruno Haible  <bruno@clisp.org>
8644
8645         wcpncpy: Move AC_LIBOBJ invocations to module description.
8646         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8647         here...
8648         * modules/wcpncpy (configure.ac): ... to here.
8649
8650 2011-05-22  Bruno Haible  <bruno@clisp.org>
8651
8652         wcpcpy: Move AC_LIBOBJ invocations to module description.
8653         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8654         * modules/wcpcpy (configure.ac): ... to here.
8655
8656 2011-05-22  Bruno Haible  <bruno@clisp.org>
8657
8658         waitpid: Move AC_LIBOBJ invocations to module description.
8659         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8660         invocation from here...
8661         * modules/waitpid (configure.ac): ... to here.
8662
8663 2011-05-22  Bruno Haible  <bruno@clisp.org>
8664
8665         utimensat: Move AC_LIBOBJ invocations to module description.
8666         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8667         here...
8668         * modules/utimensat (configure.ac): ... to here.
8669
8670 2011-05-22  Bruno Haible  <bruno@clisp.org>
8671
8672         usleep: Move AC_LIBOBJ invocations to module description.
8673         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8674         here...
8675         * modules/usleep (configure.ac): ... to here.
8676
8677 2011-05-22  Bruno Haible  <bruno@clisp.org>
8678
8679         unlockpt: Move AC_LIBOBJ invocations to module description.
8680         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8681         gl_PREREQ_UNLOCKPT invocations from here...
8682         * modules/unlockpt (configure.ac): ... to here.
8683
8684 2011-05-22  Bruno Haible  <bruno@clisp.org>
8685
8686         unlink: Respect rules for use of AC_LIBOBJ.
8687         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8688         * modules/unlink (configure.ac): ... to here.
8689
8690 2011-05-22  Bruno Haible  <bruno@clisp.org>
8691
8692         uname: Move AC_LIBOBJ invocations to module description.
8693         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
8694         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
8695         here...
8696         * modules/uname (configure.ac): ... to here.
8697
8698 2011-05-22  Bruno Haible  <bruno@clisp.org>
8699
8700         ttyname_r: Move AC_LIBOBJ invocations to module description.
8701         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
8702         gl_PREREQ_TTYNAME_R invocations from here...
8703         * modules/ttyname_r (configure.ac): ... to here.
8704
8705 2011-05-22  Bruno Haible  <bruno@clisp.org>
8706
8707         tsearch: Move AC_LIBOBJ invocations to module description.
8708         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8709         invocations from here...
8710         * modules/tsearch (configure.ac): ... to here.
8711
8712 2011-05-22  Bruno Haible  <bruno@clisp.org>
8713
8714         towctrans: Move AC_LIBOBJ invocations to module description.
8715         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8716         AC_LIBOBJ invocation from here...
8717         * modules/towctrans (configure.ac): ... to here.
8718
8719 2011-05-22  Bruno Haible  <bruno@clisp.org>
8720
8721         tmpfile: Move AC_LIBOBJ invocations to module description.
8722         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8723         invocations from here...
8724         * modules/tmpfile (configure.ac): ... to here.
8725
8726 2011-05-22  Bruno Haible  <bruno@clisp.org>
8727
8728         times: Move AC_LIBOBJ invocations to module description.
8729         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8730         * modules/times (configure.ac): ... to here.
8731
8732 2011-05-22  Bruno Haible  <bruno@clisp.org>
8733
8734         time_r: Move AC_LIBOBJ invocations to module description.
8735         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
8736         invocations from here...
8737         * modules/time_r (configure.ac): ... to here.
8738
8739 2011-05-22  Bruno Haible  <bruno@clisp.org>
8740
8741         timegm: Move AC_LIBOBJ invocations to module description.
8742         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
8743         invocations from here...
8744         * modules/timegm (configure.ac): ... to here.
8745
8746 2011-05-22  Bruno Haible  <bruno@clisp.org>
8747
8748         tcgetsid: Move AC_LIBOBJ invocations to module description.
8749         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
8750         and gl_PREREQ_TCGETSID invocations from here...
8751         * modules/tcgetsid (configure.ac): ... to here.
8752         (Depends-on): Update conditions.
8753
8754 2011-05-22  Bruno Haible  <bruno@clisp.org>
8755
8756         symlinkat: Move AC_LIBOBJ invocations to module description.
8757         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8758         here...
8759         * modules/symlinkat (configure.ac): ... to here.
8760
8761 2011-05-22  Bruno Haible  <bruno@clisp.org>
8762
8763         symlink: Move AC_LIBOBJ invocations to module description.
8764         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8765         here...
8766         * modules/symlink (configure.ac): ... to here.
8767
8768 2011-05-22  Bruno Haible  <bruno@clisp.org>
8769
8770         strverscmp: Move AC_LIBOBJ invocations to module description.
8771         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8772         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8773         from here...
8774         * modules/strverscmp (configure.ac): ... to here.
8775
8776 2011-05-22  Bruno Haible  <bruno@clisp.org>
8777
8778         strtok_r: Move AC_LIBOBJ invocations to module description.
8779         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8780         and gl_PREREQ_STRTOK_R invocations from here...
8781         * modules/strtok_r (configure.ac): ... to here.
8782         (Depends-on): Update conditions.
8783
8784 2011-05-22  Bruno Haible  <bruno@clisp.org>
8785
8786         strtoumax: Move AC_LIBOBJ invocations to module description.
8787         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8788         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8789         from here...
8790         * modules/strtoumax (configure.ac): ... to here.
8791
8792 2011-05-22  Bruno Haible  <bruno@clisp.org>
8793
8794         strtoimax: Move AC_LIBOBJ invocations to module description.
8795         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
8796         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
8797         from here...
8798         * modules/strtoimax (configure.ac): ... to here.
8799
8800 2011-05-22  Bruno Haible  <bruno@clisp.org>
8801
8802         strtoull: Move AC_LIBOBJ invocations to module description.
8803         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
8804         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
8805         from here...
8806         * modules/strtoull (configure.ac): ... to here.
8807
8808 2011-05-22  Bruno Haible  <bruno@clisp.org>
8809
8810         strtoll: Move AC_LIBOBJ invocations to module description.
8811         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8812         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8813         here...
8814         * modules/strtoll (configure.ac): ... to here.
8815
8816 2011-05-22  Bruno Haible  <bruno@clisp.org>
8817
8818         strtoul: Move AC_LIBOBJ invocations to module description.
8819         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8820         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8821         * modules/strtoul (configure.ac): ... to here.
8822
8823 2011-05-22  Bruno Haible  <bruno@clisp.org>
8824
8825         strtol: Move AC_LIBOBJ invocations to module description.
8826         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8827         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8828         * modules/strtol (configure.ac): ... to here.
8829
8830 2011-05-22  Bruno Haible  <bruno@clisp.org>
8831
8832         strtod: Move AC_LIBOBJ invocations to module description.
8833         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8834         invocations from here...
8835         * modules/strtod (configure.ac): ... to here.
8836
8837 2011-05-22  Bruno Haible  <bruno@clisp.org>
8838
8839         strstr*: Move AC_LIBOBJ invocations to module description.
8840         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8841         invocations from here...
8842         * modules/strstr-simple (configure.ac): ... to here.
8843         * modules/strstr (configure.ac): ... and here.
8844
8845 2011-05-22  Bruno Haible  <bruno@clisp.org>
8846
8847         strsignal: Move AC_LIBOBJ invocations to module description.
8848         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8849         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8850         * modules/strsignal (configure.ac): ... to here.
8851         (Depends-on): Update conditions.
8852
8853 2011-05-22  Bruno Haible  <bruno@clisp.org>
8854
8855         strsep: Move AC_LIBOBJ invocations to module description.
8856         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8857         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8858         here...
8859         * modules/strsep (configure.ac): ... to here.
8860
8861 2011-05-22  Bruno Haible  <bruno@clisp.org>
8862
8863         strptime: Move AC_LIBOBJ invocations to module description.
8864         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8865         gl_PREREQ_STRPTIME invocations from here...
8866         * modules/strptime (configure.ac): ... to here.
8867
8868 2011-05-22  Bruno Haible  <bruno@clisp.org>
8869
8870         strpbrk: Move AC_LIBOBJ invocations to module description.
8871         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8872         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8873         here...
8874         * modules/strpbrk (configure.ac): ... to here.
8875
8876 2011-05-22  Bruno Haible  <bruno@clisp.org>
8877
8878         strnlen: Move AC_LIBOBJ invocations to module description.
8879         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8880         invocations from here...
8881         * modules/strnlen (configure.ac): ... to here.
8882
8883 2011-05-22  Bruno Haible  <bruno@clisp.org>
8884
8885         strndup: Move AC_LIBOBJ invocations to module description.
8886         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8887         invocations from here...
8888         * modules/strndup (configure.ac): ... to here.
8889         (Depends-on): Update conditions.
8890
8891 2011-05-22  Bruno Haible  <bruno@clisp.org>
8892
8893         strncat: Move AC_LIBOBJ invocations to module description.
8894         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8895         invocations from here...
8896         * modules/strncat (configure.ac): ... to here.
8897
8898 2011-05-22  Bruno Haible  <bruno@clisp.org>
8899
8900         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8901         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8902         invocations from here...
8903         * modules/strdup (configure.ac): ... to here.
8904         * modules/strdup-posix (configure.ac): ... and here.
8905
8906 2011-05-22  Bruno Haible  <bruno@clisp.org>
8907
8908         strcspn: Move AC_LIBOBJ invocations to module description.
8909         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8910         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8911         here...
8912         * modules/strcspn (configure.ac): ... to here.
8913
8914 2011-05-22  Bruno Haible  <bruno@clisp.org>
8915
8916         strchrnul: Move AC_LIBOBJ invocations to module description.
8917         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8918         gl_PREREQ_STRCHRNUL invocations from here...
8919         * modules/strchrnul (configure.ac): ... to here.
8920
8921 2011-05-22  Bruno Haible  <bruno@clisp.org>
8922
8923         strcasestr*: Move AC_LIBOBJ invocations to module description.
8924         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8925         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8926         * modules/strcasestr-simple (configure.ac): ... to here.
8927         * modules/strcasestr (configure.ac): ... and here.
8928
8929 2011-05-22  Bruno Haible  <bruno@clisp.org>
8930
8931         strcase: Move AC_LIBOBJ invocations to module description.
8932         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8933         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8934         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8935         gl_PREREQ_STRNCASECMP invocations from here...
8936         * modules/strcase (configure.ac): ... to here.
8937
8938 2011-05-22  Bruno Haible  <bruno@clisp.org>
8939
8940         stpncpy: Move AC_LIBOBJ invocations to module description.
8941         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8942         here...
8943         * modules/stpncpy (configure.ac): ... to here.
8944
8945 2011-05-22  Bruno Haible  <bruno@clisp.org>
8946
8947         stpcpy: Move AC_LIBOBJ invocations to module description.
8948         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8949         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8950         here...
8951         * modules/stpcpy (configure.ac): ... to here.
8952
8953 2011-05-21  Bruno Haible  <bruno@clisp.org>
8954
8955         stat: Move AC_LIBOBJ invocations to module description.
8956         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8957         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8958         here...
8959         * modules/stat (configure.ac): ... to here.
8960
8961 2011-05-21  Bruno Haible  <bruno@clisp.org>
8962
8963         sleep: Move AC_LIBOBJ invocations to module description.
8964         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8965         * modules/sleep (configure.ac): ... to here.
8966
8967 2011-05-21  Bruno Haible  <bruno@clisp.org>
8968
8969         signbit: Move AC_LIBOBJ invocations to module description.
8970         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8971         * modules/signbit (configure.ac): ... to here.
8972
8973 2011-05-21  Bruno Haible  <bruno@clisp.org>
8974
8975         sigprocmask: Move AC_LIBOBJ invocations to module description.
8976         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8977         gl_PREREQ_SIGPROMASK invocations from here...
8978         * modules/sigprocmask (configure.ac): ... to here.
8979
8980 2011-05-21  Bruno Haible  <bruno@clisp.org>
8981
8982         sigaction: Move AC_LIBOBJ invocations to module description.
8983         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8984         gl_PREREQ_SIGACTION invocations from here...
8985         * modules/sigaction (configure.ac): ... to here.
8986
8987 2011-05-21  Bruno Haible  <bruno@clisp.org>
8988
8989         sig2str: Move AC_LIBOBJ invocations to module description.
8990         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8991         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8992         here...
8993         * modules/sig2str (configure.ac): ... to here.
8994
8995 2011-05-21  Bruno Haible  <bruno@clisp.org>
8996
8997         setlocale: Move AC_LIBOBJ invocations to module description.
8998         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8999         gl_PREREQ_SETLOCALE invocations from here...
9000         * modules/setlocale (configure.ac): ... to here.
9001
9002 2011-05-21  Bruno Haible  <bruno@clisp.org>
9003
9004         unsetenv: Move AC_LIBOBJ invocations to module description.
9005         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
9006         and gl_PREREQ_UNSETENV invocations from here...
9007         * modules/unsetenv (configure.ac): ... to here.
9008         (Depends-on): Update.
9009
9010 2011-05-21  Bruno Haible  <bruno@clisp.org>
9011
9012         setenv: Move AC_LIBOBJ invocations to module description.
9013         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
9014         here...
9015         * modules/setenv (configure.ac): ... to here.
9016
9017 2011-05-21  Bruno Haible  <bruno@clisp.org>
9018
9019         selinux-h: Move AC_LIBOBJ invocations to module description.
9020         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
9021         AC_LIBOBJ invocation from here...
9022         * modules/selinux-h (configure.ac): ... to here.
9023
9024 2011-05-21  Bruno Haible  <bruno@clisp.org>
9025
9026         select: Respect rules for use of AC_LIBOBJ.
9027         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
9028         here...
9029         * modules/select (configure.ac): ... to here.
9030
9031 2011-05-21  Bruno Haible  <bruno@clisp.org>
9032
9033         scandir: Move AC_LIBOBJ invocations to module description.
9034         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
9035         invocations from here...
9036         * modules/scandir (configure.ac): ... to here.
9037
9038 2011-05-21  Bruno Haible  <bruno@clisp.org>
9039
9040         rpmatch: Move AC_LIBOBJ invocations to module description.
9041         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
9042         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
9043         here...
9044         * modules/rpmatch (configure.ac): ... to here.
9045
9046 2011-05-21  Bruno Haible  <bruno@clisp.org>
9047
9048         rmdir: Respect rules for use of AC_LIBOBJ.
9049         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
9050         * modules/rmdir (configure.ac): ... to here.
9051
9052 2011-05-21  Bruno Haible  <bruno@clisp.org>
9053
9054         renameat: Move AC_LIBOBJ invocations to module description.
9055         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
9056         here...
9057         * modules/renameat (configure.ac): ... to here.
9058
9059 2011-05-21  Bruno Haible  <bruno@clisp.org>
9060
9061         rename: Respect rules for use of AC_LIBOBJ.
9062         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
9063         here...
9064         * modules/rename (configure.ac): ... to here.
9065
9066 2011-05-21  Bruno Haible  <bruno@clisp.org>
9067
9068         remove: Move AC_LIBOBJ invocations to module description.
9069         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
9070         here...
9071         * modules/remove (configure.ac): ... to here.
9072
9073 2011-05-21  Bruno Haible  <bruno@clisp.org>
9074
9075         relocatable-lib: Move AC_LIBOBJ invocations to module description.
9076         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
9077         macro.
9078         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
9079         * modules/relocatable-lib (configure.ac): ... to here.
9080         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9081         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
9082
9083 2011-05-21  Bruno Haible  <bruno@clisp.org>
9084
9085         relocatable-prog: Move AC_LIBOBJ invocations to module description.
9086         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
9087         here...
9088         * modules/relocatable-prog (configure.ac): ... to here.
9089
9090 2011-05-21  Bruno Haible  <bruno@clisp.org>
9091
9092         regex: Move AC_LIBOBJ invocations to module description.
9093         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
9094         invocations from here...
9095         * modules/regex (configure.ac): ... to here.
9096
9097 2011-05-21  Bruno Haible  <bruno@clisp.org>
9098
9099         realloc-*: Move AC_LIBOBJ invocations to module description.
9100         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
9101         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
9102         AC_LIBOBJ invocations from here...
9103         * modules/realloc-gnu (configure.ac): ... to here.
9104         * modules/realloc-posix (configure.ac): ... and here.
9105
9106 2011-05-21  Bruno Haible  <bruno@clisp.org>
9107
9108         readutmp: Move AC_LIBOBJ invocations to module description.
9109         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
9110         * modules/readutmp (configure.ac): ... to here.
9111
9112 2011-05-21  Bruno Haible  <bruno@clisp.org>
9113
9114         readlinkat: Move AC_LIBOBJ invocations to module description.
9115         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
9116         here...
9117         * modules/readlinkat (configure.ac): ... to here.
9118
9119 2011-05-21  Bruno Haible  <bruno@clisp.org>
9120
9121         readlink: Move AC_LIBOBJ invocations to module description.
9122         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
9123         gl_PREREQ_READLINK invocations from here...
9124         * modules/readlink (configure.ac): ... to here.
9125
9126 2011-05-21  Bruno Haible  <bruno@clisp.org>
9127
9128         readline: Move AC_LIBOBJ invocations to module description.
9129         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
9130         gl_PREREQ_READLINE invocations from here...
9131         * modules/readline (configure.ac): ... to here.
9132
9133 2011-05-21  Bruno Haible  <bruno@clisp.org>
9134
9135         read: Move AC_LIBOBJ invocations to module description.
9136         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
9137         * modules/read (configure.ac): ... to here.
9138
9139 2011-05-21  Bruno Haible  <bruno@clisp.org>
9140
9141         rawmemchr: Move AC_LIBOBJ invocations to module description.
9142         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
9143         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
9144         from here...
9145         * modules/rawmemchr (configure.ac): ... to here.
9146
9147 2011-05-21  Bruno Haible  <bruno@clisp.org>
9148
9149         random_r: Move AC_LIBOBJ invocations to module description.
9150         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
9151         gl_PREREQ_RANDOM_R invocations from here...
9152         * modules/random_r (configure.ac): ... to here.
9153
9154 2011-05-21  Bruno Haible  <bruno@clisp.org>
9155
9156         pwrite: Move AC_LIBOBJ invocations to module description.
9157         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
9158         * modules/pwrite (configure.ac): ... to here.
9159
9160 2011-05-21  Bruno Haible  <bruno@clisp.org>
9161
9162         putenv: Move AC_LIBOBJ invocations to module description.
9163         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
9164         * modules/putenv (configure.ac): ... to here.
9165
9166 2011-05-21  Bruno Haible  <bruno@clisp.org>
9167
9168         login_tty: Move AC_LIBOBJ invocations to module description.
9169         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
9170         * modules/login_tty (configure.ac): ... to here.
9171
9172 2011-05-21  Bruno Haible  <bruno@clisp.org>
9173
9174         openpty: Move AC_LIBOBJ invocations to module description.
9175         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
9176         * modules/openpty (configure.ac): ... to here.
9177
9178 2011-05-21  Bruno Haible  <bruno@clisp.org>
9179
9180         forkpty: Move AC_LIBOBJ invocations to module description.
9181         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
9182         * modules/forkpty (configure.ac): ... to here.
9183
9184 2011-05-21  Bruno Haible  <bruno@clisp.org>
9185
9186         ptsname: Move AC_LIBOBJ invocations to module description.
9187         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
9188         invocations from here...
9189         * modules/ptsname (configure.ac): ... to here.
9190
9191 2011-05-21  Bruno Haible  <bruno@clisp.org>
9192
9193         pread: Move AC_LIBOBJ invocations to module description.
9194         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
9195         * modules/pread (configure.ac): ... to here.
9196
9197 2011-05-21  Bruno Haible  <bruno@clisp.org>
9198
9199         posix_spawn*: Move AC_LIBOBJ invocations to module description.
9200         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
9201         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
9202         * modules/posix_spawn (configure.ac): ... to here.
9203         * modules/posix_spawnp (configure.ac): ... and here.
9204
9205 2011-05-21  Bruno Haible  <bruno@clisp.org>
9206
9207         popen: Move AC_LIBOBJ invocations to module description.
9208         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
9209         invocations from here...
9210         * modules/popen (configure.ac): ... to here.
9211
9212 2011-05-21  Bruno Haible  <bruno@clisp.org>
9213
9214         poll: Move AC_LIBOBJ invocations to module description.
9215         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
9216         invocations from here...
9217         * modules/poll (configure.ac): ... to here.
9218
9219 2011-05-21  Bruno Haible  <bruno@clisp.org>
9220
9221         pipe-posix: Move AC_LIBOBJ invocations to module description.
9222         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
9223         * modules/pipe-posix (configure.ac): ... to here.
9224
9225 2011-05-21  Bruno Haible  <bruno@clisp.org>
9226
9227         openat: Respect rules for use of AC_LIBOBJ.
9228         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
9229         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9230         * modules/openat (configure.ac): ... to here.
9231
9232 2011-05-21  Bruno Haible  <bruno@clisp.org>
9233
9234         obstack-printf*: Move AC_LIBOBJ invocations to module description.
9235         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
9236         invocation from here...
9237         * modules/obstack-printf (configure.ac): ... to here.
9238         * modules/obstack-printf-posix (configure.ac): ... and here.
9239
9240 2011-05-21  Bruno Haible  <bruno@clisp.org>
9241
9242         nl_langinfo: Move AC_LIBOBJ invocations to module description.
9243         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
9244         from here...
9245         * modules/nl_langinfo (configure.ac): ... to here.
9246
9247 2011-05-21  Bruno Haible  <bruno@clisp.org>
9248
9249         nanosleep: Move AC_LIBOBJ invocations to module description.
9250         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
9251         gl_PREREQ_NANOSLEEP invocations from here...
9252         * modules/nanosleep (configure.ac): ... to here.
9253
9254 2011-05-21  Bruno Haible  <bruno@clisp.org>
9255
9256         mountlist: Move AC_LIBOBJ invocations to module description.
9257         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
9258         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
9259         * modules/mountlist (configure.ac): ... to here.
9260
9261 2011-05-21  Bruno Haible  <bruno@clisp.org>
9262
9263         mktime: Respect rules for use of AC_LIBOBJ.
9264         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
9265         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
9266         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
9267         (gl_FUNC_MKTIME_INTERNAL): ... and here...
9268         * modules/mktime (configure.ac): ... to here.
9269         * modules/mktime-internal (configure.ac): ... and here.
9270         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
9271
9272 2011-05-21  Bruno Haible  <bruno@clisp.org>
9273
9274         mkstemps: Move AC_LIBOBJ invocations to module description.
9275         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
9276         here...
9277         * modules/mkstemps (configure.ac): ... to here.
9278
9279 2011-05-21  Bruno Haible  <bruno@clisp.org>
9280
9281         mkstemp: Move AC_LIBOBJ invocations to module description.
9282         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
9283         gl_PREREQ_MKSTEMP invocations from here...
9284         * modules/mkstemp (configure.ac): ... to here.
9285
9286 2011-05-21  Bruno Haible  <bruno@clisp.org>
9287
9288         mkostemps: Move AC_LIBOBJ invocations to module description.
9289         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
9290         here...
9291         * modules/mkostemps (configure.ac): ... to here.
9292
9293 2011-05-21  Bruno Haible  <bruno@clisp.org>
9294
9295         mkostemp: Move AC_LIBOBJ invocations to module description.
9296         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
9297         gl_PREREQ_MKOSTEMP invocations from here...
9298         * modules/mkostemp (configure.ac): ... to here.
9299
9300 2011-05-21  Bruno Haible  <bruno@clisp.org>
9301
9302         mknod: Move AC_LIBOBJ invocations to module description.
9303         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
9304         * modules/mknod (configure.ac): ... to here.
9305
9306 2011-05-21  Bruno Haible  <bruno@clisp.org>
9307
9308         mkfifoat: Move AC_LIBOBJ invocations to module description.
9309         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
9310         here...
9311         * modules/mkfifoat (configure.ac): ... to here.
9312
9313 2011-05-21  Bruno Haible  <bruno@clisp.org>
9314
9315         mkfifo: Respect rules for use of AC_LIBOBJ.
9316         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
9317         here...
9318         * modules/mkfifo (configure.ac): ... to here.
9319
9320 2011-05-21  Bruno Haible  <bruno@clisp.org>
9321
9322         mkdtemp: Move AC_LIBOBJ invocations to module description.
9323         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
9324         invocations from here...
9325         * modules/mkdtemp (configure.ac): ... to here.
9326
9327 2011-05-21  Bruno Haible  <bruno@clisp.org>
9328
9329         mkdir: Move AC_LIBOBJ invocations to module description.
9330         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
9331         * modules/mkdir (configure.ac): ... to here.
9332
9333 2011-05-21  Bruno Haible  <bruno@clisp.org>
9334
9335         memset: Move AC_LIBOBJ invocations to module description.
9336         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
9337         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
9338         here...
9339         * modules/memset (configure.ac): ... to here.
9340
9341 2011-05-21  Bruno Haible  <bruno@clisp.org>
9342
9343         memrchr: Move AC_LIBOBJ invocations to module description.
9344         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
9345         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
9346         here...
9347         * modules/memrchr (configure.ac): ... to here.
9348
9349 2011-05-21  Bruno Haible  <bruno@clisp.org>
9350
9351         mempcpy: Move AC_LIBOBJ invocations to module description.
9352         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
9353         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
9354         here...
9355         * modules/mempcpy (configure.ac): ... to here.
9356
9357 2011-05-21  Bruno Haible  <bruno@clisp.org>
9358
9359         memmove: Move AC_LIBOBJ invocations to module description.
9360         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
9361         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
9362         here...
9363         * modules/memmove (configure.ac): ... to here.
9364
9365 2011-05-21  Bruno Haible  <bruno@clisp.org>
9366
9367         memmem*: Move AC_LIBOBJ invocations to module description.
9368         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
9369         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
9370         here...
9371         (gl_FUNC_MEMMEM): ... and here...
9372         * modules/memmem-simple (configure.ac): ... to here.
9373         * modules/memmem (configure.ac): ... and here.
9374
9375 2011-05-21  Bruno Haible  <bruno@clisp.org>
9376
9377         memcpy: Move AC_LIBOBJ invocations to module description.
9378         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
9379         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
9380         here...
9381         * modules/memcpy (configure.ac): ... to here.
9382
9383 2011-05-21  Bruno Haible  <bruno@clisp.org>
9384
9385         memcmp: Simplify autoconf macro.
9386         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
9387         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
9388         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
9389
9390 2011-05-21  Bruno Haible  <bruno@clisp.org>
9391
9392         memcmp: Move AC_LIBOBJ invocations to module description.
9393         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
9394         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
9395         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
9396         * modules/memcmp (configure.ac): ... to here.
9397         (Depends-on): Update conditions.
9398
9399 2011-05-21  Bruno Haible  <bruno@clisp.org>
9400
9401         memchr: Respect rules for use of AC_LIBOBJ.
9402         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
9403         invocations from here...
9404         * modules/memchr (configure.ac): ... to here.
9405
9406 2011-05-21  Bruno Haible  <bruno@clisp.org>
9407
9408         mbtowc: Move AC_LIBOBJ invocations to module description.
9409         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
9410         invocations from here...
9411         * modules/mbtowc (configure.ac): ... to here.
9412
9413 2011-05-21  Bruno Haible  <bruno@clisp.org>
9414
9415         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
9416         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
9417         gl_PREREQ_MBSRTOWCS invocations from here...
9418         * modules/mbsrtowcs (configure.ac): ... to here.
9419
9420 2011-05-21  Bruno Haible  <bruno@clisp.org>
9421
9422         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
9423         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
9424         gl_PREREQ_MBSNRTOWCS invocations from here...
9425         * modules/mbsnrtowcs (configure.ac): ... to here.
9426
9427 2011-05-21  Bruno Haible  <bruno@clisp.org>
9428
9429         mbsinit: Move AC_LIBOBJ invocations to module description.
9430         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
9431         invocations from here...
9432         * modules/mbsinit (configure.ac): ... to here.
9433
9434 2011-05-21  Bruno Haible  <bruno@clisp.org>
9435
9436         mbrlen: Move AC_LIBOBJ invocations to module description.
9437         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
9438         invocations from here...
9439         * modules/mbrlen (configure.ac): ... to here.
9440
9441 2011-05-21  Bruno Haible  <bruno@clisp.org>
9442
9443         mbrtowc: Respect rules for use of AC_LIBOBJ.
9444         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
9445         invocations from here...
9446         * modules/mbrtowc (configure.ac): ... to here.
9447
9448 2011-05-21  Bruno Haible  <bruno@clisp.org>
9449
9450         malloc-*: Move AC_LIBOBJ invocations to module description.
9451         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
9452         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
9453         AC_LIBOBJ invocations from here...
9454         * modules/malloc-gnu (configure.ac): ... to here.
9455         * modules/malloc-posix (configure.ac): ... and here.
9456
9457 2011-05-21  Bruno Haible  <bruno@clisp.org>
9458
9459         lstat, openat: Respect rules for use of AC_LIBOBJ.
9460         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
9461         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
9462         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
9463         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
9464         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
9465         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
9466         here.
9467         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
9468
9469 2011-05-21  Bruno Haible  <bruno@clisp.org>
9470
9471         lseek: Move AC_LIBOBJ invocations to module description.
9472         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
9473         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9474         * modules/lseek (configure.ac): ... to here.
9475
9476 2011-05-21  Bruno Haible  <bruno@clisp.org>
9477
9478         linkat: Move AC_LIBOBJ invocations to module description.
9479         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
9480         here...
9481         * modules/linkat (configure.ac): ... to here.
9482
9483 2011-05-21  Bruno Haible  <bruno@clisp.org>
9484
9485         link: Respect rules for use of AC_LIBOBJ.
9486         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
9487         * modules/link (configure.ac): ... to here.
9488
9489 2011-05-21  Bruno Haible  <bruno@clisp.org>
9490
9491         lchown: Move AC_LIBOBJ invocations to module description.
9492         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9493         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9494         * modules/lchown (configure.ac): ... to here.
9495
9496 2011-05-21  Bruno Haible  <bruno@clisp.org>
9497
9498         iswctype: Move AC_LIBOBJ invocations to module description.
9499         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
9500         here...
9501         * modules/iswctype (configure.ac): ... to here.
9502
9503 2011-05-21  Bruno Haible  <bruno@clisp.org>
9504
9505         iswblank: Move AC_LIBOBJ invocations to module description.
9506         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
9507         here...
9508         * modules/iswblank (configure.ac): ... to here.
9509
9510 2011-05-21  Bruno Haible  <bruno@clisp.org>
9511
9512         atanl: Move AC_LIBOBJ invocations to module description.
9513         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
9514         * modules/atanl (configure.ac): ... to here.
9515
9516 2011-05-21  Bruno Haible  <bruno@clisp.org>
9517
9518         acosl: Move AC_LIBOBJ invocations to module description.
9519         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
9520         * modules/acosl (configure.ac): ... to here.
9521
9522 2011-05-21  Bruno Haible  <bruno@clisp.org>
9523
9524         asinl: Respect rules for use of AC_LIBOBJ.
9525         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
9526         * modules/asinl (configure.ac): ... to here.
9527
9528 2011-05-21  Bruno Haible  <bruno@clisp.org>
9529
9530         tanl: Move AC_LIBOBJ invocations to module description.
9531         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
9532         * modules/tanl (configure.ac): ... to here.
9533
9534 2011-05-21  Bruno Haible  <bruno@clisp.org>
9535
9536         cosl: Move AC_LIBOBJ invocations to module description.
9537         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
9538         * modules/cosl (configure.ac): ... to here.
9539
9540 2011-05-21  Bruno Haible  <bruno@clisp.org>
9541
9542         sinl: Move AC_LIBOBJ invocations to module description.
9543         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
9544         * modules/sinl (configure.ac): ... to here.
9545
9546 2011-05-21  Bruno Haible  <bruno@clisp.org>
9547
9548         logl: Move AC_LIBOBJ invocations to module description.
9549         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
9550         * modules/logl (configure.ac): ... to here.
9551
9552 2011-05-21  Bruno Haible  <bruno@clisp.org>
9553
9554         expl: Move AC_LIBOBJ invocations to module description.
9555         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
9556         * modules/expl (configure.ac): ... to here.
9557
9558 2011-05-21  Bruno Haible  <bruno@clisp.org>
9559
9560         roundl: Move AC_LIBOBJ invocations to module description.
9561         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
9562         * modules/roundl (configure.ac): ... to here.
9563
9564 2011-05-21  Bruno Haible  <bruno@clisp.org>
9565
9566         round: Move AC_LIBOBJ invocations to module description.
9567         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
9568         * modules/round (configure.ac): ... to here.
9569
9570 2011-05-21  Bruno Haible  <bruno@clisp.org>
9571
9572         roundf: Move AC_LIBOBJ invocations to module description.
9573         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
9574         * modules/roundf (configure.ac): ... to here.
9575
9576 2011-05-21  Bruno Haible  <bruno@clisp.org>
9577
9578         truncl: Move AC_LIBOBJ invocations to module description.
9579         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
9580         * modules/truncl (configure.ac): ... to here.
9581
9582 2011-05-21  Bruno Haible  <bruno@clisp.org>
9583
9584         trunc: Move AC_LIBOBJ invocations to module description.
9585         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
9586         * modules/trunc (configure.ac): ... to here.
9587
9588 2011-05-21  Bruno Haible  <bruno@clisp.org>
9589
9590         truncf: Move AC_LIBOBJ invocations to module description.
9591         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
9592         * modules/truncf (configure.ac): ... to here.
9593
9594 2011-05-21  Bruno Haible  <bruno@clisp.org>
9595
9596         ceill: Move AC_LIBOBJ invocations to module description.
9597         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
9598         * modules/ceill (configure.ac): ... to here.
9599
9600 2011-05-21  Bruno Haible  <bruno@clisp.org>
9601
9602         ceil: Move AC_LIBOBJ invocations to module description.
9603         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
9604         * modules/ceil (configure.ac): ... to here.
9605
9606 2011-05-21  Bruno Haible  <bruno@clisp.org>
9607
9608         ceilf: Move AC_LIBOBJ invocations to module description.
9609         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
9610         * modules/ceilf (configure.ac): ... to here.
9611
9612 2011-05-21  Bruno Haible  <bruno@clisp.org>
9613
9614         floorl: Respect rules for use of AC_LIBOBJ.
9615         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
9616         * modules/floorl (configure.ac): ... to here.
9617
9618 2011-05-21  Bruno Haible  <bruno@clisp.org>
9619
9620         floor: Respect rules for use of AC_LIBOBJ.
9621         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
9622         * modules/floor (configure.ac): ... to here.
9623
9624 2011-05-21  Bruno Haible  <bruno@clisp.org>
9625
9626         floorf: Move AC_LIBOBJ invocations to module description.
9627         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
9628         * modules/floorf (configure.ac): ... to here.
9629
9630 2011-05-20  Bruno Haible  <bruno@clisp.org>
9631
9632         sqrtl: Respect rules for use of AC_LIBOBJ.
9633         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
9634         * modules/sqrtl (configure.ac): ... to here.
9635
9636 2011-05-20  Bruno Haible  <bruno@clisp.org>
9637
9638         ldexpl: Respect rules for use of AC_LIBOBJ.
9639         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
9640         * modules/ldexpl (configure.ac): ... to here.
9641
9642 2011-05-20  Bruno Haible  <bruno@clisp.org>
9643
9644         frexpl*: Respect rules for use of AC_LIBOBJ.
9645         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9646         invocation from here...
9647         * modules/frexpl (configure.ac): ... to here.
9648         * modules/frexpl-nolibm (configure.ac): ... and here.
9649
9650 2011-05-20  Bruno Haible  <bruno@clisp.org>
9651
9652         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9653         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9654         invocation from here...
9655         * modules/frexp (configure.ac): ... to here.
9656         * modules/frexp-nolibm (configure.ac): ... and here.
9657
9658 2011-05-20  Bruno Haible  <bruno@clisp.org>
9659
9660         isnan: Respect rules for use of AC_LIBOBJ.
9661         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9662         invocations here.
9663         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9664         REPLACE_ISNAN.
9665         * modules/isnand (configure.ac): Likewise.
9666         * modules/isnanl (configure.ac): Likewise.
9667
9668 2011-05-20  Bruno Haible  <bruno@clisp.org>
9669
9670         isnanl*: Respect rules for use of AC_LIBOBJ.
9671         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9672         invocation from here...
9673         * modules/isnanl (configure.ac): ... to here.
9674         * modules/isnanl-nolibm (configure.ac): ... and here.
9675
9676 2011-05-20  Bruno Haible  <bruno@clisp.org>
9677
9678         isnand*: Move AC_LIBOBJ invocations to module description.
9679         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9680         invocation from here...
9681         * modules/isnand (configure.ac): ... to here.
9682         * modules/isnand-nolibm (configure.ac): ... and here.
9683
9684 2011-05-20  Bruno Haible  <bruno@clisp.org>
9685
9686         isnanf*: Move AC_LIBOBJ invocations to module description.
9687         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9688         invocation from here...
9689         * modules/isnanf (configure.ac): ... to here.
9690         * modules/isnanf-nolibm (configure.ac): ... and here.
9691
9692 2011-05-20  Bruno Haible  <bruno@clisp.org>
9693
9694         isnan*: Separate the AC_LIBOBJ invocations.
9695         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
9696         AC_LIBOBJ invocation.
9697         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
9698         here.
9699         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9700         AC_LIBOBJ invocation.
9701         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
9702         here.
9703         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
9704         AC_LIBOBJ invocation.
9705         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
9706         here.
9707         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9708
9709 2011-05-08  Bruno Haible  <bruno@clisp.org>
9710
9711         isinf: Move AC_LIBOBJ invocations to module description.
9712         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9713         * modules/isinf (configure.ac): ... to here.
9714
9715 2011-05-08  Bruno Haible  <bruno@clisp.org>
9716
9717         isfinite: Move AC_LIBOBJ invocations to module description.
9718         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9719         * modules/isfinite (configure.ac): ... to here.
9720
9721 2011-05-08  Bruno Haible  <bruno@clisp.org>
9722
9723         isblank: Move AC_LIBOBJ invocations to module description.
9724         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9725         here...
9726         * modules/isblank (configure.ac): ... to here.
9727
9728 2011-05-08  Bruno Haible  <bruno@clisp.org>
9729
9730         isapipe: Move AC_LIBOBJ invocations to module description.
9731         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9732         gl_PREREQ_ISAPIPE invocations from here...
9733         * modules/isapipe (configure.ac): ... to here.
9734         (Depends-on): Update condition.
9735
9736 2011-05-08  Bruno Haible  <bruno@clisp.org>
9737
9738         ioctl: Move AC_LIBOBJ invocations to module description.
9739         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
9740         invocations from here...
9741         * modules/ioctl (configure.ac): ... to here.
9742         (Depends-on): Update condition.
9743
9744 2011-05-08  Bruno Haible  <bruno@clisp.org>
9745
9746         imaxdiv: Move AC_LIBOBJ invocations to module description.
9747         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
9748         invocations from here...
9749         * modules/imaxdiv (configure.ac): ... to here.
9750
9751 2011-05-08  Bruno Haible  <bruno@clisp.org>
9752
9753         imaxabs: Move AC_LIBOBJ invocations to module description.
9754         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
9755         invocations from here...
9756         * modules/imaxabs (configure.ac): ... to here.
9757
9758 2011-05-08  Bruno Haible  <bruno@clisp.org>
9759
9760         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9761         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9762         AC_LIBOBJ invocations from here...
9763         * modules/getaddrinfo (configure.ac): ... to here.
9764         (Depends-on): Add conditions.
9765
9766 2011-05-08  Bruno Haible  <bruno@clisp.org>
9767
9768         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9769         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9770         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9771         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9772         (gl_PREREQ_INET_PTON): ... from here.
9773         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9774         gl_PREREQ_INET_PTON here.
9775         (Depends-on): Update condition.
9776
9777 2011-05-08  Bruno Haible  <bruno@clisp.org>
9778
9779         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9780         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9781         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9782         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9783         (gl_PREREQ_INET_NTOP): ... from here.
9784         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9785         gl_PREREQ_INET_NTOP here.
9786         (Depends-on): Update condition.
9787
9788 2011-05-08  Bruno Haible  <bruno@clisp.org>
9789
9790         iconv_open: Move AC_LIBOBJ invocations to module description.
9791         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9792         AC_LIBOBJ invocations from here...
9793         * modules/iconv_open (configure.ac): ... to here.
9794
9795 2011-05-08  Bruno Haible  <bruno@clisp.org>
9796
9797         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
9798         If module 'iconv_open' is among the main modules and module
9799         'iconv_open-utf' is among the tests dependencies, then
9800         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
9801         return the special iconv_t values. Therefore iconv() and iconv_close()
9802         must support these special iconv_t values, already in lib, not only in
9803         tests.
9804         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
9805         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
9806         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
9807         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
9808         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9809         (Depends-on): Add the dependencies of iconv_open-utf.
9810         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9811         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9812         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9813
9814 2011-05-08  Bruno Haible  <bruno@clisp.org>
9815
9816         group-member: Move AC_LIBOBJ invocations to module description.
9817         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9818         gl_PREREQ_GROUP_MEMBER invocations from here...
9819         * modules/group-member (configure.ac): ... to here.
9820
9821 2011-05-08  Bruno Haible  <bruno@clisp.org>
9822
9823         grantpt: Move AC_LIBOBJ invocations to module description.
9824         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9825         invocations from here...
9826         * modules/grantpt (configure.ac): ... to here.
9827
9828 2011-05-08  Bruno Haible  <bruno@clisp.org>
9829
9830         glob: Move AC_LIBOBJ invocations to module description.
9831         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9832         from here...
9833         * modules/glob (configure.ac): ... to here.
9834
9835 2011-05-08  Bruno Haible  <bruno@clisp.org>
9836
9837         getusershell: Move AC_LIBOBJ invocations to module description.
9838         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9839         Move AC_LIBOBJ invocation from here...
9840         * modules/getusershell (configure.ac): ... to here.
9841         (Depends-on): Update condition.
9842
9843 2011-05-08  Bruno Haible  <bruno@clisp.org>
9844
9845         gettimeofday: Move AC_LIBOBJ invocations to module description.
9846         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9847         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9848         gl_PREREQ_GETTIMEOFDAY invocations from here...
9849         * modules/gettimeofday (configure.ac): ... to here.
9850
9851 2011-05-08  Bruno Haible  <bruno@clisp.org>
9852
9853         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9854         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9855         just gl_FUNC_TZSET.
9856         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9857         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9858         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9859         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9860
9861 2011-05-08  Bruno Haible  <bruno@clisp.org>
9862
9863         getsubopt: Move AC_LIBOBJ invocations to module description.
9864         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9865         gl_PREREQ_GETSUBOPT invocations from here...
9866         * modules/getsubopt (configure.ac): ... to here.
9867
9868 2011-05-08  Bruno Haible  <bruno@clisp.org>
9869
9870         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9871         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9872         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9873         * modules/getpass-gnu (configure.ac): ... to here.
9874
9875 2011-05-08  Bruno Haible  <bruno@clisp.org>
9876
9877         getpass: Move AC_LIBOBJ invocations to module description.
9878         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9879         gl_PREREQ_GETPASS invocations from here...
9880         * modules/getpass (configure.ac): ... to here.
9881
9882 2011-05-08  Bruno Haible  <bruno@clisp.org>
9883
9884         getpagesize: Move AC_LIBOBJ invocations to module description.
9885         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9886         from here...
9887         * modules/getpagesize (configure.ac): ... to here.
9888
9889 2011-05-08  Bruno Haible  <bruno@clisp.org>
9890
9891         getopt: Move AC_LIBOBJ invocations to module description.
9892         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9893         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9894         invocations from here...
9895         * modules/getopt-gnu (configure.ac): ... to here.
9896         * modules/getopt-posix (configure.ac): ... and here.
9897         (Depends-on): Update condition.
9898
9899 2011-05-08  Bruno Haible  <bruno@clisp.org>
9900
9901         getopt, argp: Respect rules for use of AC_LIBOBJ.
9902         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9903         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9904         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9905         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9906
9907 2011-05-08  Bruno Haible  <bruno@clisp.org>
9908
9909         getlogin_r: Move AC_LIBOBJ invocations to module description.
9910         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9911         gl_PREREQ_GETLOGIN_R invocations from here...
9912         * modules/getlogin_r (configure.ac): ... to here.
9913
9914 2011-05-08  Bruno Haible  <bruno@clisp.org>
9915
9916         getlogin: Move AC_LIBOBJ invocations to module description.
9917         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9918         here...
9919         * modules/getlogin (configure.ac): ... to here.
9920
9921 2011-05-08  Bruno Haible  <bruno@clisp.org>
9922
9923         getloadavg: Move AC_LIBOBJ invocations to module description.
9924         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9925         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9926         * modules/getloadavg (configure.ac): ... to here.
9927
9928 2011-05-08  Bruno Haible  <bruno@clisp.org>
9929
9930         gethrxtime: Move AC_LIBOBJ invocations to module description.
9931         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9932         LIB_GETHRXTIME from here...
9933         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9934         invocations from here...
9935         * modules/gethrxtime (configure.ac): ... to here.
9936
9937 2011-05-08  Bruno Haible  <bruno@clisp.org>
9938
9939         gethostname: Move AC_LIBOBJ invocations to module description.
9940         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9941         gl_PREREQ_GETHOSTNAME invocations from here...
9942         * modules/gethostname (configure.ac): ... to here.
9943
9944 2011-05-08  Bruno Haible  <bruno@clisp.org>
9945
9946         getgroups: Move AC_LIBOBJ invocations to module description.
9947         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9948         here...
9949         * modules/getgroups (configure.ac): ... to here.
9950
9951 2011-05-08  Bruno Haible  <bruno@clisp.org>
9952
9953         getdtablesize: Move AC_LIBOBJ invocations to module description.
9954         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9955         invocation from here...
9956         * modules/getdtablesize (configure.ac): ... to here.
9957
9958 2011-05-08  Bruno Haible  <bruno@clisp.org>
9959
9960         getdomainname: Move AC_LIBOBJ invocations to module description.
9961         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9962         gl_PREREQ_GETDOMAINNAME invocations from here...
9963         * modules/getdomainname (configure.ac): ... to here.
9964
9965 2011-05-08  Bruno Haible  <bruno@clisp.org>
9966
9967         getline: Move AC_LIBOBJ invocations to module description.
9968         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9969         invocations from here...
9970         * modules/getline (configure.ac): ... to here.
9971
9972 2011-05-08  Bruno Haible  <bruno@clisp.org>
9973
9974         getline: Simplify.
9975         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9976         It's already handled through the module dependency.
9977
9978 2011-05-08  Bruno Haible  <bruno@clisp.org>
9979
9980         getdelim: Move AC_LIBOBJ invocations to module description.
9981         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9982         and gl_PREREQ_GETDELIM invocations from here...
9983         * modules/getdelim (configure.ac): ... to here.
9984         (Depends-on): Fix condition.
9985
9986 2011-05-08  Bruno Haible  <bruno@clisp.org>
9987
9988         getcwd: Move AC_LIBOBJ invocations to module description.
9989         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9990         invocations from here...
9991         * modules/getcwd (configure.ac): ... to here.
9992
9993 2011-05-08  Bruno Haible  <bruno@clisp.org>
9994
9995         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9996         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9997         here...
9998         * modules/getcwd-lgpl (configure.ac): ... to here.
9999
10000 2011-05-07  Bruno Haible  <bruno@clisp.org>
10001
10002         crypto/gc: Move AC_LIBOBJ invocations to module description.
10003         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
10004         * modules/crypto/gc (configure.ac): ... to here.
10005
10006 2011-05-07  Bruno Haible  <bruno@clisp.org>
10007
10008         fwriting: Move AC_LIBOBJ invocations to module description.
10009         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
10010         here...
10011         * modules/fwriting (configure.ac): ... to here.
10012
10013 2011-05-07  Bruno Haible  <bruno@clisp.org>
10014
10015         fwritable: Move AC_LIBOBJ invocations to module description.
10016         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
10017         here...
10018         * modules/fwritable (configure.ac): ... to here.
10019
10020 2011-05-07  Bruno Haible  <bruno@clisp.org>
10021
10022         futimens: Move AC_LIBOBJ invocations to module description.
10023         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
10024         here...
10025         * modules/futimens (configure.ac): ... to here.
10026
10027 2011-05-07  Bruno Haible  <bruno@clisp.org>
10028
10029         ftruncate: Move AC_LIBOBJ invocations to module description.
10030         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
10031         gl_PREREQ_FTRUNCATE invocations from here...
10032         * modules/ftruncate (configure.ac): ... to here.
10033
10034 2011-05-07  Bruno Haible  <bruno@clisp.org>
10035
10036         fsync: Move AC_LIBOBJ invocations to module description.
10037         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
10038         invocations from here...
10039         * modules/fsync (configure.ac): ... to here.
10040
10041 2011-05-07  Bruno Haible  <bruno@clisp.org>
10042
10043         fsusage: Move AC_LIBOBJ invocations to module description.
10044         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
10045         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
10046         * modules/fsusage (configure.ac): ... to here.
10047
10048 2011-05-07  Bruno Haible  <bruno@clisp.org>
10049
10050         freopen: Move AC_LIBOBJ invocations to module description.
10051         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
10052         invocations from here...
10053         * modules/freopen (configure.ac): ... to here.
10054
10055 2011-05-07  Bruno Haible  <bruno@clisp.org>
10056
10057         free: Move AC_LIBOBJ invocations to module description.
10058         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
10059         invocations from here...
10060         * modules/free (configure.ac): ... to here.
10061
10062 2011-05-07  Bruno Haible  <bruno@clisp.org>
10063
10064         freadable: Move AC_LIBOBJ invocations to module description.
10065         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
10066         here...
10067         * modules/freadable (configure.ac): ... to here.
10068
10069 2011-05-07  Bruno Haible  <bruno@clisp.org>
10070
10071         fpurge: Move AC_LIBOBJ invocations to module description.
10072         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
10073         invocations from here...
10074         * modules/fpurge (configure.ac): ... to here.
10075
10076 2011-05-07  Bruno Haible  <bruno@clisp.org>
10077
10078         fpending: Move AC_LIBOBJ invocations to module description.
10079         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
10080         gl_FUNC_FPENDING.
10081         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
10082         invocations from here...
10083         * modules/fpending (configure.ac): ... to here.
10084
10085 2011-05-07  Bruno Haible  <bruno@clisp.org>
10086
10087         fopen: Move AC_LIBOBJ invocations to module description.
10088         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
10089         invocations from here...
10090         * modules/fopen (configure.ac): ... to here.
10091
10092 2011-05-07  Bruno Haible  <bruno@clisp.org>
10093
10094         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
10095         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
10096         gl_FUNC_FNMATCH_POSIX.
10097         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
10098         invocations from here...
10099         * modules/fnmatch (configure.ac): ... to here.
10100         * modules/fnmatch-gnu (configure.ac): ... and here.
10101
10102 2011-05-07  Bruno Haible  <bruno@clisp.org>
10103
10104         flock: Move AC_LIBOBJ invocations to module description.
10105         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
10106         invocations from here...
10107         * modules/flock (configure.ac): ... to here.
10108
10109 2011-05-07  Bruno Haible  <bruno@clisp.org>
10110
10111         fileblocks: Move AC_LIBOBJ invocations to module description.
10112         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
10113         gl_PREREQ_FILEBLOCKS invocations from here...
10114         * modules/fileblocks (configure.ac): ... to here.
10115
10116 2011-05-06  Bruno Haible  <bruno@clisp.org>
10117
10118         fflush: Move AC_LIBOBJ invocations to module description.
10119         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
10120         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
10121         invocations from here...
10122         * modules/fflush (configure.ac): ... to here.
10123
10124 2011-05-06  Bruno Haible  <bruno@clisp.org>
10125
10126         fdopendir: Move AC_LIBOBJ invocations to module description.
10127         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
10128         here...
10129         * modules/fdopendir (configure.ac): ... to here.
10130         (Depends-on): Improve conditions.
10131
10132 2011-05-06  Bruno Haible  <bruno@clisp.org>
10133
10134         _Exit: Move AC_LIBOBJ invocations to module description.
10135         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
10136         invocations from here...
10137         * modules/_Exit (configure.ac): ... to here.
10138
10139 2011-05-21  Bruno Haible  <bruno@clisp.org>
10140
10141         euidaccess: Respect rules for use of AC_LIBOBJ.
10142         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10143         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
10144         from here...
10145         * modules/euidaccess (configure.ac): ... to here.
10146
10147 2011-05-06  Bruno Haible  <bruno@clisp.org>
10148
10149         error: Move AC_LIBOBJ invocations to module description.
10150         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
10151         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
10152         invocations from here...
10153         * modules/error (configure.ac): ... to here.
10154
10155 2011-05-06  Bruno Haible  <bruno@clisp.org>
10156
10157         duplocale: Move AC_LIBOBJ invocations to module description.
10158         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
10159         gl_PREREQ_DUPLOCALE invocations from here...
10160         * modules/duplocale (configure.ac): ... to here.
10161
10162 2011-05-05  Bruno Haible  <bruno@clisp.org>
10163
10164         dirfd: Move AC_LIBOBJ invocations to module description.
10165         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
10166         gl_FUNC_DIRFD.
10167         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
10168         here...
10169         * modules/dirfd (configure.ac): ... to here.
10170         (Depends-on): Fix condition.
10171
10172 2011-05-05  Bruno Haible  <bruno@clisp.org>
10173
10174         chown: Respect rules for use of AC_LIBOBJ.
10175         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
10176         * modules/chown (configure.ac): ... to here.
10177
10178 2011-05-05  Bruno Haible  <bruno@clisp.org>
10179
10180         chdir-long: Move AC_LIBOBJ invocations to module description.
10181         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
10182         gl_PREREQ_CHDIR_LONG invocations from here...
10183         * modules/chdir-long (configure.ac): ... to here.
10184
10185 2011-05-05  Bruno Haible  <bruno@clisp.org>
10186
10187         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
10188         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
10189         from here...
10190         * modules/canonicalize-lgpl (configure.ac): ... to here.
10191
10192 2011-05-05  Bruno Haible  <bruno@clisp.org>
10193
10194         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
10195         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
10196         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
10197         REPLACE_CALLOC.
10198         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
10199         * modules/calloc-gnu (configure.ac): Likewise.
10200
10201 2011-05-05  Bruno Haible  <bruno@clisp.org>
10202
10203         btowc: Move AC_LIBOBJ invocations to module description.
10204         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
10205         invocations from here...
10206         * modules/btowc (configure.ac): ... to here.
10207
10208 2011-05-21  Bruno Haible  <bruno@clisp.org>
10209
10210         atexit: Move AC_LIBOBJ invocations to module description.
10211         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
10212         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
10213         here...
10214         * modules/atexit (configure.ac): ... to here.
10215
10216 2011-05-05  Bruno Haible  <bruno@clisp.org>
10217
10218         atoll: Move AC_LIBOBJ invocations to module description.
10219         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
10220         invocations from here...
10221         * modules/atoll (configure.ac): ... to here.
10222
10223 2011-05-05  Bruno Haible  <bruno@clisp.org>
10224
10225         argz: Move AC_LIBOBJ invocations to module description.
10226         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
10227         * modules/argz (configure.ac): ... to here.
10228
10229 2011-05-05  Bruno Haible  <bruno@clisp.org>
10230
10231         alphasort: Move AC_LIBOBJ invocations to module description.
10232         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
10233         gl_PREREQ_ALPHASORT invocations from here...
10234         * modules/alphasort (configure.ac): ... to here.
10235
10236 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10237
10238         verify: new macro verify_expr; verify_true deprecated
10239         * NEWS: Mention this.
10240         * doc/verify.texi (Compile-time Assertions): Document this.
10241         * lib/verify.h (verify_true): Deprecate.
10242         (verify_expr): New macro.
10243         * tests/test-verify.c (function): Test verify_expr.
10244
10245 2011-06-14  Jim Meyering  <meyering@redhat.com>
10246
10247         init.sh: give more portable redirection-related advice in a comment
10248         * tests/init.sh (stderr_fileno_): Update the advice in comments.
10249         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
10250         for lots of discussion.  Stefano Lattarini suggested the solution
10251         of putting "9>&2" after the command.  Reported by Bruno Haible.
10252
10253 2011-06-13  Bruno Haible  <bruno@clisp.org>
10254
10255         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
10256         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
10257         'none'.
10258
10259 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10260
10261         ftoastr: use strtof only if HAVE_STRTOF
10262         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
10263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
10264         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
10265         * modules/ftoastr (configure.ac): Check for strtof.
10266
10267 2011-06-13  Bruno Haible  <bruno@clisp.org>
10268
10269         gnulib-tool: Addendum to 2011-06-08 commit.
10270         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
10271         and --witness-c-macro have been given, augment AM_CPPFLAGS.
10272
10273 2011-06-13  Bruno Haible  <bruno@clisp.org>
10274
10275         fseeko: Provide a non-inline replacement of fseek().
10276         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
10277         * modules/fseeko (Depends-on): Add fseek.
10278         * modules/fseek (License): Change to LGPLv2+.
10279
10280 2011-06-13  Bruno Haible  <bruno@clisp.org>
10281
10282         ftello: Provide a non-inline replacement of ftell().
10283         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
10284         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
10285         not have ftello() (such as on mingw).
10286         * modules/ftello (Depends-on): Add ftell.
10287         * modules/ftell (License): Change to LGPLv2+.
10288
10289 2011-05-07  Bruno Haible  <bruno@clisp.org>
10290
10291         ftell: Move AC_LIBOBJ invocations to module description.
10292         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
10293         * modules/ftell (configure.ac): ... to here.
10294
10295 2011-05-07  Bruno Haible  <bruno@clisp.org>
10296
10297         ftello: Respect rules for use of AC_LIBOBJ.
10298         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
10299         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
10300         here...
10301         * modules/ftello (configure.ac): ... to here.
10302
10303 2011-05-07  Bruno Haible  <bruno@clisp.org>
10304
10305         fseeko: Simplify.
10306         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
10307         (gl_FUNC_FSEEKO): Inline it here.
10308
10309 2011-05-07  Bruno Haible  <bruno@clisp.org>
10310
10311         fseek: Move AC_LIBOBJ invocations to module description.
10312         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
10313         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10314         * modules/fseek (configure.ac): ... to here.
10315
10316 2011-05-07  Bruno Haible  <bruno@clisp.org>
10317
10318         fseek: Respect rules for use of AC_LIBOBJ.
10319         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
10320         here...
10321         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
10322
10323 2011-05-07  Bruno Haible  <bruno@clisp.org>
10324
10325         fseeko: Respect rules for use of AC_LIBOBJ.
10326         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
10327         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
10328         here...
10329         * modules/fseeko (configure.ac): ... to here.
10330
10331 2011-06-13  Bruno Haible  <bruno@clisp.org>
10332
10333         gnulib-tool: Allow comments in the 'Depends-on' section.
10334         * doc/gnulib.texi (Module description): Mention comment syntax in the
10335         Depends-on section.
10336         * gnulib-tool (func_get_dependencies): Filter out comment lines.
10337
10338 2011-06-13  Bruno Haible  <bruno@clisp.org>
10339
10340         file-set.h: guard __attibute__ use, now that it's not always defined
10341         * lib/file-set.h (record_file): Use __attribute__ only with compiler
10342         versions that support it.  This fixes a coreutils build failure with
10343         the vendor cc on HP-UX 11.31.
10344
10345 2011-06-12  Bruno Haible  <bruno@clisp.org>
10346
10347         acl: Add support for HP-UX >= 11.11 JFS ACLs.
10348         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
10349         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
10350         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
10351         (acl, aclsort): New declarations.
10352         (aclv_nontrivial): New declaration.
10353         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
10354         (file_has_acl): Read also the second kind of HP-UX ACLs.
10355         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
10356         kind of HP-UX ACLs if the first kind fails.
10357         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
10358         second kind of HP-UX ACLs.
10359         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
10360         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
10361         agree.
10362         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10363         hpuxjfs.
10364         Handle hpuxjfs.
10365         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10366         hpuxjfs.
10367         Handle hpuxjfs.
10368         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10369         (func_test_same_acls): Use both lsacl and getacl.
10370         Handle hpuxjfs.
10371         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10372         (func_test_same_acls): Use both lsacl and getacl.
10373         Handle hpuxjfs.
10374
10375 2011-06-12  Bruno Haible  <bruno@clisp.org>
10376
10377         acl: Complete the 2010-08-10 fix.
10378         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
10379         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
10380         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
10381         explicitly.
10382         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
10383         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
10384
10385 2011-06-12  Bruno Haible  <bruno@clisp.org>
10386
10387         spawn-pipe tests: Comments.
10388         * tests/test-spawn-pipe-child.c (main): Update comment.
10389         Reported by James Youngman <jay@gnu.org>.
10390
10391 2011-06-11  James Youngman  <jay@gnu.org>
10392
10393         New module 'stat-size'.
10394         * modules/stat-size: New module.  Provides macros for accessing
10395         file size information in instances of struct stat.  Depends on the
10396         fileblocks module because it calls st_blocks.
10397         * lib/stat-size.h: New file, adapted from coreutils' system.h.
10398         * doc/gnulib.texi: Include stat-size.texi.
10399         * doc/stat-size.texi: Documentation for this module.
10400         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
10401         * m4/fileblocks.m4: Mention that stat-size depends on the call to
10402         AC_STRUCT_ST_BLOCKS.
10403
10404 2011-06-09  Bruno Haible  <bruno@clisp.org>
10405
10406         thread: Support pthreads-win32.
10407         * lib/glthread/thread.h (gl_thread_self): Define differently on
10408         pthreads-win32.
10409         (gl_null_thread): New declaration.
10410         (gl_thread_self_pointer): New macro.
10411         * lib/glthread/thread.c (gl_null_thread): New constant.
10412         * tests/test-lock.c: Use gl_thread_self_pointer instead of
10413         gl_thread_self.
10414         * tests/test-tls.c: Likewise.
10415         Suggested by Paul Eggert. Reported by Eric Blake.
10416
10417 2011-06-09  Bruno Haible  <bruno@clisp.org>
10418
10419         thread: Fix confusion between NULL and 0.
10420         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
10421         Reported by Paul Eggert.
10422
10423 2011-06-09  Bruno Haible  <bruno@clisp.org>
10424
10425         spawn-pipe tests: Avoid test failure on HP-UX 11.
10426         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
10427         is closed.
10428
10429 2011-06-09  Bruno Haible  <bruno@clisp.org>
10430
10431         acl tests: Fix compilation error on HP-UX 11.
10432         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
10433
10434 2011-06-09  Bruno Haible  <bruno@clisp.org>
10435
10436         rmdir: Avoid test failure on HP-UX 10.20.
10437         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
10438         EEXIST.
10439
10440 2011-06-08  Eric Blake  <eblake@redhat.com>
10441
10442         perror: fix test on mingw
10443         * modules/perror-tests (Depends-on): Add dup2.
10444
10445         strerror_r-posix: fix on MacOS
10446         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
10447         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
10448         logic bug.
10449         * lib/strerror_r.c (strerror_r): Fix the bug.
10450         * lib/strerror.c (strerror): Likewise.
10451         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10452         problem.
10453         * doc/posix-functions/strerror.texi (strerror): Likewise.
10454         * doc/posix-functions/perror.texi (perror): Likewise.
10455         * tests/test-strerror.c (main): Enhance test.
10456         * tests/test-strerror_r.c (main): Likewise.
10457
10458 2011-06-08  Bruno Haible  <bruno@clisp.org>
10459
10460         gnulib-tool: Better isolation between different gnulib-tool invocations.
10461         * gnulib-tool: New option --witness-c-macro.
10462         (witness_c_macro): New variable.
10463         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
10464         AM_CPPFLAGS define it as a C macro.
10465         (func_emit_tests_Makefile_am): Likewise.
10466         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
10467         read it from there.
10468         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
10469         m4_define, not AC_DEFUN.
10470         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
10471         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
10472         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
10473         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
10474         s|...|...|, to substitute the values of the GNULIB_* module indicator
10475         variables.
10476         * modules/dirent (Makefile.am): Likewise.
10477         * modules/fcntl-h (Makefile.am): Likewise.
10478         * modules/iconv-h (Makefile.am): Likewise.
10479         * modules/langinfo (Makefile.am): Likewise.
10480         * modules/locale (Makefile.am): Likewise.
10481         * modules/math (Makefile.am): Likewise.
10482         * modules/netdb (Makefile.am): Likewise.
10483         * modules/poll-h (Makefile.am): Likewise.
10484         * modules/pty (Makefile.am): Likewise.
10485         * modules/search (Makefile.am): Likewise.
10486         * modules/signal (Makefile.am): Likewise.
10487         * modules/spawn (Makefile.am): Likewise.
10488         * modules/stdio (Makefile.am): Likewise.
10489         * modules/stdlib (Makefile.am): Likewise.
10490         * modules/string (Makefile.am): Likewise.
10491         * modules/sys_ioctl (Makefile.am): Likewise.
10492         * modules/sys_select (Makefile.am): Likewise.
10493         * modules/sys_socket (Makefile.am): Likewise.
10494         * modules/sys_stat (Makefile.am): Likewise.
10495         * modules/sys_times (Makefile.am): Likewise.
10496         * modules/sys_utsname (Makefile.am): Likewise.
10497         * modules/sys_wait (Makefile.am): Likewise.
10498         * modules/termios (Makefile.am): Likewise.
10499         * modules/time (Makefile.am): Likewise.
10500         * modules/unistd (Makefile.am): Likewise.
10501         * modules/wchar (Makefile.am): Likewise.
10502
10503 2011-06-08  Eric Blake  <eblake@redhat.com>
10504
10505         strerror: simplify replacement
10506         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
10507         * modules/strerror (configure.ac): No prereqs needed here...
10508         * modules/strerror-override (configure.ac): ...but this needs it.
10509         (Files): Add file for needed prereq macro.
10510
10511 2011-06-08  Bruno Haible  <bruno@clisp.org>
10512
10513         strerror_r-posix: Tweaks.
10514         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
10515         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
10516         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
10517         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
10518         (gl_FUNC_STRERROR_R): ... to here.
10519         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
10520
10521 2011-06-07  Eric Blake  <eblake@redhat.com>
10522
10523         perror: document fixed bugs
10524         * doc/posix-functions/perror.texi (perror): Document recent
10525         patches.
10526
10527 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10528
10529         stat-time: get_stat_birthtime failure is better-defined
10530         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
10531         return a timestamp whose tv_sec and tv_nsec values are both -1.
10532         Previously, the spec said only that the tv_nsec value was negative.
10533         This upward-compatible change simplifies GNU tar a bit.
10534
10535 2011-06-07  Eric Blake  <eblake@redhat.com>
10536
10537         strerror_r-posix: work around cygwin 1.7.9
10538         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
10539         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
10540         bug without replacing strerror_r.
10541         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
10542         strerror_r is buggy, but without requiring strerror_r compilation.
10543         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
10544
10545         test-perror: relax test to ignore cygwin bug
10546         * tests/test-perror2.c (main): Relax test on requiring detection
10547         of stream errors, and use unbuffered stream.
10548         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
10549         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
10550         * doc/posix-functions/fputc.texi (fputc): Likewise.
10551         * doc/posix-functions/fputs.texi (fputs): Likewise.
10552         * doc/posix-functions/fputws.texi (fputws): Likewise.
10553         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
10554         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
10555         * doc/posix-functions/getopt.texi (getopt): Likewise.
10556         * doc/posix-functions/perror.texi (perror): Likewise.
10557         * doc/posix-functions/printf.texi (printf): Likewise.
10558         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
10559         * doc/posix-functions/psignal.texi (psignal): Likewise.
10560         * doc/posix-functions/putc.texi (putc): Likewise.
10561         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
10562         Likewise.
10563         * doc/posix-functions/putchar.texi (putchar): Likewise.
10564         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
10565         Likewise.
10566         * doc/posix-functions/puts.texi (puts): Likewise.
10567         * doc/posix-functions/putwc.texi (putwc): Likewise.
10568         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10569         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10570         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10571         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
10572         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10573         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10574         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10575         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
10576
10577 2011-05-22  Bruno Haible  <bruno@clisp.org>
10578
10579         strerror: Move AC_LIBOBJ invocations to module description.
10580         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
10581         gl_PREREQ_STRERROR invocations from here...
10582         * modules/strerror (configure.ac): ... to here.
10583
10584 2011-05-21  Bruno Haible  <bruno@clisp.org>
10585
10586         perror: Use common idiom.
10587         * modules/perror (configure.ac): Reorder statements.
10588
10589 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10590
10591         tests: fix usage message in 'mktempd_'
10592         * tests/init.sh (mktempd_): In the usage message, use literal
10593         'mktempd_', not '$ME' (which is even undefined), as the name of
10594         the subroutine.
10595
10596 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10597
10598         tests init: new function 'fatal_', for hard errors
10599         Before this patch, the only way offered by tests/init.sh to
10600         properly signal a hard error was the `framework_failure_'
10601         function.  But the error message issued by that function,
10602         as its name would suggest, refers to a set-up failure in the
10603         testsuite, while hard errors can obviously also be due to
10604         other reasons.  The best way to fix this inconsistency is to
10605         introduce a new function with a more general error message.
10606         * tests/init.sh (fatal_): New function.
10607
10608 2011-06-06  Eric Blake  <eblake@redhat.com>
10609
10610         canonicalize-lgpl: use common idiom
10611         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
10612         over newer POSIX -Rf.
10613         Reported by Bruno Haible.
10614
10615         canonicalize-lgpl: work around AIX realpath bug
10616         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
10617         * doc/posix-functions/realpath.texi (realpath): Document it.
10618         Reported by Bruno Haible.
10619
10620         strerror: work around FreeBSD bug
10621         * lib/strerror.c (strerror): Special case 0.
10622         Reported by Bruno Haible.
10623
10624         strerror-override: avoid bloating errno module
10625         * modules/errno (Files, configure.ac): Move replacement strings...
10626         * modules/strerror-override: ...to new module.
10627         * modules/strerror (Depends-on): Add strerror-override.
10628         * modules/strerror_r-posix (Depends-on): Likewise.
10629         * MODULES.html.sh: Document new module.
10630         Reported by Bruno Haible.
10631
10632 2011-06-06  Bruno Haible  <bruno@clisp.org>
10633
10634         spawn-pipe tests: Rename program.
10635         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10636         * tests/test-spawn-pipe-child.c: Update comment.
10637         * tests/test-spawn-pipe.sh: Update.
10638         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
10639
10640         spawn-pipe tests: Link the child program only against libc.
10641         * tests/test-spawn-pipe-child.c: New file, extracted from
10642         tests/test-spawn-pipe.c.
10643         (main): Expect only one argument.
10644         (is_open): New function, copied from tests/test-pipe.c.
10645         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10646         (child_main): Remove function.
10647         (test_pipe): Pass only one argument to the child program.
10648         (main): Remove child process code. Expect the child program's name as
10649         first argument.
10650         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10651         argument.
10652         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10653         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10654         test-spawn-pipe-child against no libraries.
10655
10656 2011-06-06  Bruno Haible  <bruno@clisp.org>
10657
10658         careadlinkat: Avoid mismatch between ssize_t and int.
10659         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10660         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10661
10662 2011-06-06  Jim Meyering  <meyering@redhat.com>
10663
10664         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10665         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10666         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10667
10668 2011-06-05  Bruno Haible  <bruno@clisp.org>
10669
10670         ansi-c++-opt: Interoperability with libtool.
10671         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10672         set the variable to "no", not to ":".
10673         * NEWS: Mention the change.
10674
10675 2011-06-05  Bruno Haible  <bruno@clisp.org>
10676
10677         acl: Fix test failure on AIX 7.
10678         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10679         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10680
10681 2011-06-05  Bruno Haible  <bruno@clisp.org>
10682
10683         pipe-filter-ii: Fix test failure on AIX and IRIX.
10684         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10685         with EAGAIN, retry with a smaller buffer size.
10686
10687 2011-06-05  Bruno Haible  <bruno@clisp.org>
10688
10689         localename: Fix link dependencies.
10690         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
10691         * modules/localename-tests (Makefile.am): Link test-localename with
10692         $(LIBTHREAD).
10693
10694 2011-06-05  Bruno Haible  <bruno@clisp.org>
10695
10696         error: Avoid gcc warning.
10697         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
10698
10699 2011-06-05  Bruno Haible  <bruno@clisp.org>
10700
10701         unsetenv: Avoid gcc warning.
10702         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
10703
10704 2011-06-05  Bruno Haible  <bruno@clisp.org>
10705
10706         setenv: Avoid gcc warning.
10707         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10708
10709 2011-06-05  Bruno Haible  <bruno@clisp.org>
10710
10711         sys_select: Ensure memset is declared also on AIX 7.
10712         * lib/sys_select.in.h: Include <string.h> also on AIX.
10713         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10714         self-contained also on AIX 7.1.
10715
10716 2011-06-04  Jim Meyering  <meyering@redhat.com>
10717
10718         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10719         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10720         function name, "error".
10721         (_gl_translatable_diag_func_re): New configurable variable.
10722
10723 2011-06-04  Bruno Haible  <bruno@clisp.org>
10724
10725         getopt: Avoid gcc warning.
10726         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10727
10728 2011-06-04  Bruno Haible  <bruno@clisp.org>
10729
10730         strerror_r: Fix comments.
10731         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10732         commit.
10733
10734 2011-06-04  Bruno Haible  <bruno@clisp.org>
10735
10736         perror: Fix compilation error.
10737         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
10738         Undefine fprintf, not sprintf.
10739         * modules/perror (Depends-on): Remove intprops, verify.
10740
10741 2011-06-04  Bruno Haible  <bruno@clisp.org>
10742
10743         setlocale: Enable replacement on Cygwin 1.5.
10744         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
10745         Cygwin 1.5.x.
10746         * doc/posix-functions/setlocale.texi: Mention that the problem with the
10747         LC_CTYPE category also exists on Cygwin 1.5.x.
10748
10749 2011-06-04  Bruno Haible  <bruno@clisp.org>
10750
10751         strerror-override: Don't disable symbol renamings.
10752         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
10753         * lib/strerror-override.c: Include config.h.
10754         (strerror_override): Don't undefine.
10755
10756 2011-06-03  Bruno Haible  <bruno@clisp.org>
10757
10758         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10759         * lib/localename.h: Update copyright header.
10760         * lib/localename.c: Likewise.
10761         * lib/relocatable.h: Likewise.
10762         * lib/relocatable.c: Likewise.
10763
10764 2011-06-02  Bruno Haible  <bruno@clisp.org>
10765
10766         doc: Fix a module name.
10767         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10768
10769 2011-06-02  Bruno Haible  <bruno@clisp.org>
10770
10771         pipe2: Remove dependency on 'nonblocking' module.
10772         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10773         O_NONBLOCK is defined by gnulib.
10774         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10775         is zero.
10776         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10777         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10778         defined by gnulib.
10779         (get_nonblocking_flag): New function.
10780         (main): Test O_NONBLOCK flag only if it is nonzero.
10781         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10782
10783 2011-06-03  Jim Meyering  <meyering@redhat.com>
10784
10785         maint: three new prohibit-header-without-use rules
10786         Prohibit use of cloexec.h, posixver.h, same.h without use.
10787         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10788         (sc_prohibit_posixver_without_use): Likewise.
10789         (sc_prohibit_same_without_use): Likewise.
10790
10791 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10792
10793         allocator: 'die' routine is now given requested size
10794         * lib/allocator.h (struct allocator.die): New size arg.
10795         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
10796         If the actual problem is an ssize_t limitation, not a size_t or
10797         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
10798
10799 2011-06-01  Eric Blake  <eblake@redhat.com>
10800
10801         strerror: drop strerror_r dependency
10802         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
10803         * lib/strerror-override.c (strerror_override): ...to new file.
10804         * lib/strerror-override.h: Add prototype.
10805         * lib/strerror-impl.h: Delete.
10806         * lib/strerror.c (strerror): New implementation.
10807         * modules/errno (Files): Add new files.
10808         (configure.ac): Compile new file as appropriate.
10809         * modules/strerror (Files): Drop unused file.
10810         (Depends-on): Drop strerror_r-posix.
10811         * MODULES.html.sh: Document strerror_r-posix.
10812         Requested by Sam Steingold.
10813
10814         perror: call strerror_r directly
10815         * modules/perror (Files): Drop strerror-impl.h.
10816         * lib/perror.c (perror): Use our own stack buffer, rather than
10817         calling a wrapper that uses static storage.
10818         * doc/posix-functions/perror.texi (perror): Document a limitation
10819         of our replacement.
10820
10821         strerror_r: fix includes for FreeBSD
10822         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10823         since we use abort on some platforms.
10824         Reported by Matthias Bolte.
10825
10826 2011-05-31  Bruno Haible  <bruno@clisp.org>
10827
10828         Fix link errors in tests: openat-die uses gettext-h.
10829         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10830         against $(LIBINTL).
10831         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10832         against $(LIBINTL).
10833         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10834         $(LIBINTL).
10835         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10836         against $(LIBINTL).
10837         * modules/linkat-tests (Makefile.am): Link test-linkat against
10838         $(LIBINTL).
10839         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10840         $(LIBINTL).
10841         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10842         against $(LIBINTL).
10843         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10844         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10845         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10846         $(LIBINTL).
10847         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10848         $(LIBINTL).
10849         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10850         $(LIBINTL).
10851         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10852
10853 2011-05-31  Bruno Haible  <bruno@clisp.org>
10854
10855         Fix link errors in tests: wait-process uses gettext-h.
10856         * modules/nonblocking-pipe-tests (Makefile.am): Set
10857         test_nonblocking_pipe_main_LDADD.
10858         * modules/nonblocking-socket-tests (Makefile.am): Link
10859         test-nonblocking-socket-main against $(LIBINTL).
10860         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10861
10862 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10863
10864         assert-h: work around 'verify' incompatibility
10865         * lib/verify.h: Use @...@ directives, not ifdef.
10866         * modules/assert-h (assert.h): Implement the directives.
10867         (assert.h): Substitute the symbol-prefix more consistently.
10868
10869 2011-05-29  Jim Meyering  <meyering@redhat.com>
10870
10871         trim: remove three superfluous assignments
10872         * lib/trim.c (trim2): Remove three superfluous assignments
10873         and correct brace positioning.
10874
10875 2011-05-29  Bruno Haible  <bruno@clisp.org>
10876
10877         wctype-h: Avoid namespace pollution on Solaris 2.6.
10878         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10879         identifiers.
10880         * doc/posix-headers/wctype.texi: Mention the problem.
10881         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10882
10883 2011-05-28  Jim Meyering  <meyering@redhat.com>
10884
10885         parse-datetime.y: accommodate -Wstrict-overflow
10886         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10887         placate -Wstrict-overflow.
10888
10889         trim: avoid a warning from -O2 -Wstrict-overflow
10890         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10891
10892 2011-05-29  Bruno Haible  <bruno@clisp.org>
10893
10894         gnulib-tool: Fix bug in yesterday's commit.
10895         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10896         twice.
10897
10898 2011-05-29  Bruno Haible  <bruno@clisp.org>
10899
10900         Allow multiple gnulib generated include files to be combined.
10901         * gnulib-tool (func_compute_include_guard_prefix): New function.
10902         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10903         ${gl_include_guard_prefix} references.
10904         (func_import, func_create_testdir): Invoke
10905         func_compute_include_guard_prefix.
10906         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10907         * lib/ctype.in.h: Likewise.
10908         * lib/dirent.in.h: Likewise.
10909         * lib/errno.in.h: Likewise.
10910         * lib/fcntl.in.h: Likewise.
10911         * lib/float.in.h: Likewise.
10912         * lib/getopt.in.h: Likewise.
10913         * lib/iconv.in.h: Likewise.
10914         * lib/langinfo.in.h: Likewise.
10915         * lib/locale.in.h: Likewise.
10916         * lib/math.in.h: Likewise.
10917         * lib/netdb.in.h: Likewise.
10918         * lib/netinet_in.in.h: Likewise.
10919         * lib/poll.in.h: Likewise.
10920         * lib/pthread.in.h: Likewise.
10921         * lib/pty.in.h: Likewise.
10922         * lib/sched.in.h: Likewise.
10923         * lib/se-selinux.in.h: Likewise.
10924         * lib/search.in.h: Likewise.
10925         * lib/signal.in.h: Likewise.
10926         * lib/spawn.in.h: Likewise.
10927         * lib/stdarg.in.h: Likewise.
10928         * lib/stddef.in.h: Likewise.
10929         * lib/stdint.in.h: Likewise.
10930         * lib/stdio.in.h: Likewise.
10931         * lib/stdlib.in.h: Likewise.
10932         * lib/string.in.h: Likewise.
10933         * lib/strings.in.h: Likewise.
10934         * lib/sys_file.in.h: Likewise.
10935         * lib/sys_ioctl.in.h: Likewise.
10936         * lib/sys_select.in.h: Likewise.
10937         * lib/sys_socket.in.h: Likewise.
10938         * lib/sys_stat.in.h: Likewise.
10939         * lib/sys_time.in.h: Likewise.
10940         * lib/sys_times.in.h: Likewise.
10941         * lib/sys_uio.in.h: Likewise.
10942         * lib/sys_utsname.in.h: Likewise.
10943         * lib/sys_wait.in.h: Likewise.
10944         * lib/sysexits.in.h: Likewise.
10945         * lib/termios.in.h: Likewise.
10946         * lib/time.in.h: Likewise.
10947         * lib/unistd.in.h: Likewise.
10948         * lib/wchar.in.h: Likewise.
10949         * lib/wctype.in.h: Likewise.
10950         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10951         * modules/ctype (Makefile.am): Likewise.
10952         * modules/dirent (Makefile.am): Likewise.
10953         * modules/errno (Makefile.am): Likewise.
10954         * modules/fcntl-h (Makefile.am): Likewise.
10955         * modules/float (Makefile.am): Likewise.
10956         * modules/getopt-posix (Makefile.am): Likewise.
10957         * modules/iconv-h (Makefile.am): Likewise.
10958         * modules/langinfo (Makefile.am): Likewise.
10959         * modules/locale (Makefile.am): Likewise.
10960         * modules/math (Makefile.am): Likewise.
10961         * modules/netdb (Makefile.am): Likewise.
10962         * modules/netinet_in (Makefile.am): Likewise.
10963         * modules/poll-h (Makefile.am): Likewise.
10964         * modules/pthread (Makefile.am): Likewise.
10965         * modules/pty (Makefile.am): Likewise.
10966         * modules/sched (Makefile.am): Likewise.
10967         * modules/search (Makefile.am): Likewise.
10968         * modules/selinux-h (Makefile.am): Likewise.
10969         * modules/signal (Makefile.am): Likewise.
10970         * modules/spawn (Makefile.am): Likewise.
10971         * modules/stdarg (Makefile.am): Likewise.
10972         * modules/stddef (Makefile.am): Likewise.
10973         * modules/stdint (Makefile.am): Likewise.
10974         * modules/stdio (Makefile.am): Likewise.
10975         * modules/stdlib (Makefile.am): Likewise.
10976         * modules/string (Makefile.am): Likewise.
10977         * modules/strings (Makefile.am): Likewise.
10978         * modules/sys_file (Makefile.am): Likewise.
10979         * modules/sys_ioctl (Makefile.am): Likewise.
10980         * modules/sys_select (Makefile.am): Likewise.
10981         * modules/sys_socket (Makefile.am): Likewise.
10982         * modules/sys_stat (Makefile.am): Likewise.
10983         * modules/sys_time (Makefile.am): Likewise.
10984         * modules/sys_times (Makefile.am): Likewise.
10985         * modules/sys_uio (Makefile.am): Likewise.
10986         * modules/sys_utsname (Makefile.am): Likewise.
10987         * modules/sys_wait (Makefile.am): Likewise.
10988         * modules/sysexits (Makefile.am): Likewise.
10989         * modules/termios (Makefile.am): Likewise.
10990         * modules/time (Makefile.am): Likewise.
10991         * modules/unistd (Makefile.am): Likewise.
10992         * modules/wchar (Makefile.am): Likewise.
10993         * modules/wctype-h (Makefile.am): Likewise.
10994         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10995
10996 2011-05-29  Bruno Haible  <bruno@clisp.org>
10997
10998         assert-h: Allow multiple gnulib generated replacements to coexist.
10999         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
11000
11001 2011-05-29  Bruno Haible  <bruno@clisp.org>
11002
11003         argp: Allow coexistence with strerror_r-posix module.
11004         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
11005         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
11006         by gnulib's <string.h> replacement), assume it has the POSIX signature,
11007         not the glibc signature.
11008
11009 2011-05-28  Bruno Haible  <bruno@clisp.org>
11010
11011         gnulib-tool: Alternative structure of testdirs, similar to --import.
11012         * gnulib-tool: New option --single-configure.
11013         (func_usage): Document it.
11014         (single_configure): New variable.
11015         (func_modules_transitive_closure_separately,
11016         func_modules_transitive_closure_separately,
11017         func_determine_use_libtests, func_modules_add_dummy_separately,
11018         func_modules_to_filelist_separately): New functions, extracted from
11019         func_import.
11020         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
11021         (func_import): Use the new functions.
11022         (func_create_testdir): Set final_modules. Handle $single_configure =
11023         true case.
11024
11025 2011-05-28  Bruno Haible  <bruno@clisp.org>
11026
11027         getloadavg: Remove an unreliable safety check.
11028         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
11029         getloadavg.c is in place.
11030         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
11031         Reported by Sam Steingold <sds@gnu.org>.
11032
11033 2011-05-28  Bruno Haible  <bruno@clisp.org>
11034
11035         doc: Cleanup yet another file produced by texinfo.tex.
11036         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
11037
11038 2011-05-28  Bruno Haible  <bruno@clisp.org>
11039
11040         Finish the conditional dependencies mechanism.
11041         * gnulib-tool: New option --no-conditional-dependencies.
11042         (func_usage): Document it. Don't mark --conditional-dependencies as
11043         experimental.
11044         (cond_dependencies): The possible values can now be true, false, empty.
11045         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
11046         (func_import): Store setting in gnulib-cache.m4 and read it from there.
11047         * doc/gnulib-tool.texi (Conditional dependencies): New section.
11048
11049 2011-05-28  Bruno Haible  <bruno@clisp.org>
11050
11051         doc: Use a recent texinfo.tex.
11052         * doc/Makefile (tex_opts): New variable.
11053         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
11054
11055 2011-05-28  Jim Meyering  <meyering@redhat.com>
11056
11057         intprops.h: adjust comment to match code change
11058         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
11059         only once, it *may* have side effects.  Also fix an unrelated typo.
11060         (_GL_INT_SIGNED): Likewise.
11061
11062 2011-05-26  Simon Josefsson  <simon@josefsson.org>
11063
11064         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
11065
11066 2011-05-26  Bruno Haible  <bruno@clisp.org>
11067
11068         mbsrchr: Avoid collision with system function on Interix.
11069         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
11070         Reported by Markus Duft <mduft@gentoo.org>.
11071
11072 2011-05-15  James Youngman  <jay@gnu.org>
11073
11074         getopt: for ambiguous options, enumerate the possibilities.
11075         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
11076         the ambiguous options when an ambiguous prefix is given. This was
11077         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
11078         glibc change was
11079         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
11080
11081 2011-05-25  Eric Blake  <eblake@redhat.com>
11082
11083         getcwd: work around mingw bug
11084         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
11085         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11086         Reported by Matthias Bolte.
11087
11088 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11089
11090         test-intprops: disable -Wtype-limits diagnostics
11091         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
11092         diagnostics.  Otherwise, the integer overflow macros generate many
11093         diagnostics.  Reported by Jim Meyering in
11094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11095
11096         intprops: shorten, to pacify gcc -Woverlength-strings
11097         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
11098         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
11099         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
11100         likely to run afoul of C compiler limits for string constant lengths.
11101         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11102
11103 2011-05-24  Eric Blake  <eblake@redhat.com>
11104
11105         docs: document recently fixed glibc printf bug
11106         * doc/posix-functions/fprintf.texi (fprintf): Document it.
11107         * doc/posix-functions/printf.texi (printf): Likewise.
11108         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11109         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11110
11111         closein-tests: convert to init.sh
11112         * modules/closein-tests (Files): Add init.sh
11113         * tests/test-closein.sh Use it.
11114
11115         yesno-tests: convert to init.sh
11116         * modules/yesno-tests (Files): Add init.sh.
11117         * tests/test-yesno.sh: Use it.
11118
11119         atexit-tests: ensure reliable exit status
11120         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
11121         Reported by Bruno Haible.
11122
11123 2011-05-24  Bruno Haible  <bruno@clisp.org>
11124
11125         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
11126         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
11127         gl_PREREQ_STRERROR_R invocations from here...
11128         * modules/strerror_r-posix (configure.ac): ... to here.
11129
11130 2011-05-24  Eric Blake  <eblake@redhat.com>
11131
11132         strerror_r: fix missing header
11133         * lib/strerror_r.c: Avoid compiler warning about snprintf.
11134
11135         strerror_r: fix AIX test failures
11136         * lib/strerror_r.c (strerror_r): Convert silent truncation to
11137         ERANGE failure.
11138
11139         strerror_r: fix Solaris test failures
11140         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
11141         failures.
11142         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11143
11144         strerror_r: enforce POSIX recommendations
11145         * lib/strerror_r.c (safe_copy): New helper method.
11146         (strerror_r): Guarantee a non-empty string.
11147         * tests/test-strerror_r.c (main): Enhance tests to incorporate
11148         recent POSIX rulings and to match our strerror guarantees.
11149         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11150
11151 2011-05-24  Jim Meyering  <meyering@redhat.com>
11152
11153         test-perror2.c: avoid warning about unused variable
11154         * tests/test-perror2.c (main): Remove declaration of unused "fp".
11155
11156 2011-05-24  Eric Blake  <eblake@redhat.com>
11157
11158         perror: avoid spurious test failure on HP-UX
11159         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
11160
11161         tests: fix logic bug in init.sh
11162         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
11163         shell.
11164
11165 2011-05-24  Jim Meyering  <meyering@redhat.com>
11166
11167         utimensat: do not reference an out-of-scope buffer
11168         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
11169         declared in an inner scope, yet "times" would be dereferenced outside
11170         the scope in which "ts" was valid.
11171         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
11172         of ts[2] "out/up", so that the use of aliased "times" (via
11173         "times = ts;") does not end up referencing an out-of-scope "ts"
11174
11175         opendir-safer.c: don't clobber errno; don't close negative FD
11176         * lib/opendir-safer.c (opendir_safer):
11177         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
11178         file descriptor, and more importantly, don't clobber the
11179         offending errno value with EINVAL.  Before, upon failure
11180         of dup_safer, we would pass the negative file descriptor to
11181         fdopendir, which would clobber errno.
11182
11183 2011-05-23  Bruno Haible  <bruno@clisp.org>
11184
11185         idcache: Fix module description.
11186         * modules/idcache (Include): Set to "idcache.h".
11187
11188 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11189
11190         gnulib-tool: fix portability problem with MacOS sed
11191         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
11192         before the "}".  Problem reported by Leo in
11193         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
11194         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
11195         sed_extract_condition1, sed_extract_condition2.
11196
11197 2011-05-23  Bruno Haible  <bruno@clisp.org>
11198
11199         hash: Simplify autoconf macro.
11200         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
11201
11202 2011-05-23  Bruno Haible  <bruno@clisp.org>
11203
11204         getugroups: Fix module description.
11205         * modules/getugroups (Include): Set to "getugroups.h".
11206
11207 2011-05-23  Bruno Haible  <bruno@clisp.org>
11208
11209         linkat: Simplify autoconf macro.
11210         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
11211
11212 2011-05-23  Bruno Haible  <bruno@clisp.org>
11213             Eric Blake  <eblake@redhat.com>
11214
11215         linkat, renameat: Update dependencies.
11216         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
11217         * modules/linkat (Depends-on): Likewise. Remove also readlink,
11218         symlinkat.
11219
11220 2011-05-23  Jim Meyering  <meyering@redhat.com>
11221
11222         maint.mk: more tight_scope improvements
11223         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
11224         (_gl_TS_headers): Define only in if-0'd block.
11225         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
11226         sometimes we must *not* use it.  Adjust uses accordingly.
11227         (sc_tight_scope): Use much simpler grep-based test to determine
11228         whether we skip this rule.
11229
11230         maint.mk: generalize/improve the tight-scope rule
11231         * top/maint.mk: Emit a warning when the test is skipped.
11232         (_gl_TS_dir): Add $(srcdir)/ prefix.
11233         (_gl_TS_function_match): Simplify, rather than trying
11234         to enumerate common types.  Otherwise, it would fail to match an
11235         "extern unsigned char const *" declaration in idutils.
11236         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
11237         a way to support use of that type of macro.
11238         (_gl_TS_var_match): Simplify regexp.
11239         (_gl_TS_obj_files): New configurable variable.
11240         (_gl_TS_headers): Likewise.
11241
11242 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11243
11244         verify: fix bug when gnulib <assert.h> is also included
11245         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
11246         is defined, not if _GL_STATIC_ASSERT_H is not defined.
11247         Perhaps there's a better way, but this fixes the immediate problem.
11248         Problem reported by Bruno Haible in
11249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
11250
11251 2011-05-22  Bruno Haible  <bruno@clisp.org>
11252
11253         xgetcwd: Simplify autoconf macro.
11254         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
11255
11256 2011-05-22  Bruno Haible  <bruno@clisp.org>
11257
11258         New module 'mktime-internal'.
11259         * modules/mktime-internal: New file.
11260         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
11261         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
11262         mktime_internal as a C macro if libc has __mktime_internal.
11263         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
11264         conditions.
11265         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
11266
11267 2011-05-22  Bruno Haible  <bruno@clisp.org>
11268
11269         timegm: Correct mktime replacement statements.
11270         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
11271         defining mktime as a C macro. This completes a 2009-07-28 commit.
11272
11273 2011-05-22  Bruno Haible  <bruno@clisp.org>
11274
11275         timegm: Simplify autoconf macro.
11276         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
11277
11278 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11279
11280         clock-time: change to LGPLv2+.
11281         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
11282         BSD-like but we have no mark for that; this is good enough for now.
11283
11284 2011-05-21  Bruno Haible  <bruno@clisp.org>
11285
11286         strerror_r: Fix comments.
11287         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
11288
11289 2011-05-21  Bruno Haible  <bruno@clisp.org>
11290
11291         relocatable-prog-wrapper: Fix possible link error.
11292         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
11293         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
11294         (gl_FUNC_SETENV): ... to here.
11295         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
11296         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
11297
11298 2011-05-21  Bruno Haible  <bruno@clisp.org>
11299
11300         relocatable-prog-wrapper: Assume strerror() exists.
11301         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
11302         m4/strerror.m4.
11303         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
11304         * lib/relocwrapper.c: Remove mention of strerror module.
11305         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
11306         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
11307         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
11308         C macro.
11309
11310 2011-05-21  Bruno Haible  <bruno@clisp.org>
11311
11312         select: Simplify replacement idiom.
11313         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
11314         Win32 platforms.
11315         * lib/sys_select.in.h (select): Simplify accordingly.
11316         * modules/select (Depends-on): Likewise.
11317
11318 2011-05-21  Bruno Haible  <bruno@clisp.org>
11319
11320         mkdir-p: Simplify autoconf macro.
11321         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
11322         gl_FUNC_LCHOWN.
11323
11324 2011-05-21  Eric Blake  <eblake@redhat.com>
11325
11326         strerror_r: avoid clobbering strerror on cygwin
11327         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
11328         fall back instead to sys_errlist.
11329         * modules/strerror (configure.ac): Add witness.
11330         * tests/test-strerror_r.c (main): Enhance test.
11331         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11332         * tests/test-perror2.c (main): Free memory before exit.
11333
11334 2011-05-21  Bruno Haible  <bruno@clisp.org>
11335
11336         mkdtemp: Use gnulib naming conventions.
11337         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
11338         * modules/mkdtemp (configure.ac): Update.
11339
11340 2011-05-20  Eric Blake  <eblake@redhat.com>
11341
11342         strerror_r: avoid corrupting errno on Solaris
11343         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
11344         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11345
11346         strerror_r: avoid compiler warning
11347         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
11348
11349         strerror_r: simplify AIX code
11350         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
11351
11352         test-perror: avoid spurious failure on FreeBSD
11353         * modules/perror-tests (Depends-on): Add strerror, now that
11354         strerror_r no longer pulls it in.
11355
11356 2011-05-20  Bruno Haible  <bruno@clisp.org>
11357
11358         strerror_r-posix: Remove unused dependencies.
11359         * modules/strerror_r-posix (Depends-on): Remove strerror.
11360         Reported by Eric Blake.
11361
11362 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11363
11364         intprops: remove assumption about A|B representation
11365         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
11366         is a valid integer if both A and B are.  Although this is true for
11367         all known practical hosts, the C standard doesn't guarantee it,
11368         and the code need not assume it.  Also, this change may work around
11369         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
11370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
11371
11372 2011-05-20  Eric Blake  <eblake@redhat.com>
11373
11374         perror: work around FreeBSD bug
11375         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
11376         is broken.  Move AC_LIBOBJ...
11377         * modules/perror (configure.ac): Here.
11378         * doc/posix-functions/perror.texi (perror): Document this.
11379         * tests/test-perror2.c (main): Enhance test.
11380
11381         test-perror: check for strerror interactions
11382         * tests/macros.h (STREQ): Add macro.
11383         * modules/perror-tests (Files): Add second test.
11384         * tests/test-perror2.c (main): New file.
11385         * doc/posix-functions/perror.texi (perror): Document glibc bug.
11386
11387         test-perror: rewrite to use init script
11388         * modules/perror-tests (Files): Add init.sh.
11389         * tests/test-perror.sh: Use temporary directory.
11390
11391 2011-05-20  Jim Meyering  <meyering@redhat.com>
11392
11393         maint: replace misused "a" with "an"
11394         * doc/intprops.texi: "a integer"
11395         * doc/regex.texi: "a explanation"
11396         * lib/alignof.h: "a object"
11397         * lib/argmatch.h: "a explanation"
11398         * lib/argp-help.c: "a option" and "a OPTION_DOC"
11399         * lib/stdint.in.h: "a integer"
11400         * lib/userspec.c: "a owner"
11401         * doc/gnulib.texi: Fix "a idea", and reword.
11402
11403 2011-05-19  Jim Meyering  <meyering@redhat.com>
11404
11405         maint: correct misuse of "a" and "an"
11406         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
11407         * lib/argp-help.c: "an docum...": s/an/a/
11408         * lib/argp-parse.c: "An vector": s/An/A/
11409         * lib/execute.c: "an native": s/an/a/
11410         * lib/spawn-pipe.c: Likewise.
11411         * lib/gc.h: "an Gc_rc": s/an/a/
11412         * lib/unigbrk.in.h: "an grapheme": s/an/a/
11413         * lib/fts.c: "an stat.st_dev": s/an/a/
11414
11415 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11416
11417         intprops-tests: work around HP-UX 11.23 cc bug with constants
11418         * tests/test-intprops.c (VERIFY): New macro.
11419         (main): Use it, instead of verify, to work around the compiler bug; see
11420         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11421
11422         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
11423         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
11424         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
11425         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
11426         (_GL_REMAINDER_OVERFLOW): Use it.
11427
11428         intprops-tests: revert unsigned part of previous change
11429         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
11430         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
11431         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
11432         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
11433
11434 2011-05-19  Bruno Haible  <bruno@clisp.org>
11435
11436         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
11437         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
11438         strerror_r() returned without filling the buffer.
11439         Reported by Eric Blake.
11440
11441 2011-05-19  Eric Blake  <eblake@redhat.com>
11442
11443         strerror_r: guarantee unchanged errno
11444         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
11445         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
11446         failure.
11447         * tests/test-strerror_r.c (main): Enhance test.
11448
11449 2011-05-19  Bruno Haible  <bruno@clisp.org>
11450
11451         strerror_r: Reorder #if blocks.
11452         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
11453         for consistency with the previous commit.
11454
11455 2011-05-19  Bruno Haible  <bruno@clisp.org>
11456
11457         perror: Avoid clobbering the strerror buffer when possible.
11458         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
11459         * lib/strerror.c: Include it.
11460         * modules/strerror (Files): Add lib/strerror-impl.h.
11461         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
11462         (my_strerror): New function, defined through lib/strerror-impl.h.
11463         (perror): Use it instead of strerror.
11464         * modules/perror (Files): Add lib/strerror-impl.h.
11465         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
11466
11467 2011-05-19  Eric Blake  <eblake@redhat.com>
11468
11469         strerror_r: fix on newer cygwin
11470         * lib/strerror_r.c (strerror_r): Cygwin now has
11471         __xpg_strerror_r, use it.
11472
11473 2011-05-19  Bruno Haible  <bruno@clisp.org>
11474
11475         strerror_r: Avoid clobbering the strerror buffer when possible.
11476         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
11477         (sys_nerr, sys_errlist): New declarations.
11478         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
11479         HP-UX, native Win32, IRIX, and 32-bit Solaris.
11480         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
11481
11482 2011-05-19  Bruno Haible  <bruno@clisp.org>
11483
11484         strerror_r: Fix test failure on mingw.
11485         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
11486         EXTEND_STRERROR_R.
11487         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
11488         macros from errno.in.h instead.
11489
11490 2011-05-19  Eric Blake  <eblake@redhat.com>
11491
11492         strerror: relax test for Solaris
11493         * tests/test-strerror.c (main): Permit Solaris behavior.
11494         * tests/test-strerror_r.c (main): Likewise.
11495
11496         strerror: enforce POSIX ruling on strerror(0)
11497         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
11498         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11499         * lib/strerror_r.c (rpl_strerror_r): Work around it.
11500         * doc/posix-functions/strerror.texi (strerror): Document it.
11501         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
11502         * tests/test-strerror.c (main): Strengthen test.
11503         * tests/test-strerror_r.c (main): Likewise.
11504
11505 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11506
11507         intprop-tests: port to older and more-pedantic compilers
11508         * modules/intprops-tests (Files): Add tests/macros.h.
11509         * tests/test-intprops.c: Include macros.h.
11510         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
11511         it's no longer documented to expand to an integer constant expression.
11512         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
11513         argument is floating point, as it's no longer documented to expand
11514         to an integer constant expression in that case.
11515         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
11516         compiler bugs reported by Bruno Haible.  See
11517         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11518         (U0, U1): New constants, to work around the same bugs.  Also,
11519         in tests, use e.g., "(unsigned int) 39" rather than "39u".
11520
11521         intprops: work around C compiler bugs
11522         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
11523         bug in Sun C 5.11 2010/08/13 and other compilers; see
11524         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11525
11526         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
11527         * doc/intprops.texi (Integer Type Determination): Fix
11528         documentation for TYPE_IS_INTEGER: it returns an constant
11529         expression, not an integer constant expression.  Fix doc for
11530         TYPE_SIGNED: it returns an integer constant expression only if its
11531         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
11532         hardly worth documented that way....)
11533
11534 2011-05-18  Bruno Haible  <bruno@clisp.org>
11535
11536         strerror_r: Avoid clobbering the strerror buffer when possible.
11537         * lib/strerror_r.c (strerror_r): Merge the three implementations.
11538         Handle gnulib defined errno values here. When strerror() returns NULL
11539         or an empty string, return EINVAL.
11540         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
11541         gnulib defined errno values here.
11542         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
11543
11544 2011-05-18  Eric Blake  <eblake@redhat.com>
11545
11546         fnmatch: avoid compiler warning
11547         * lib/fnmatch_loop.c (FCT): Use correct type.
11548         Reported by Matthias Bolte.
11549
11550 2011-05-13  Jim Meyering  <meyering@redhat.com>
11551
11552         maint.mk: three new prohibit_<HDR>_without_use rules
11553         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
11554         (sc_prohibit_stdio-safer_without_use): Likewise.
11555         (sc_prohibit_xfreopen_without_use): Likewise.
11556
11557 2011-05-17  Jim Meyering  <meyering@redhat.com>
11558
11559         announce-gen: fail if the NEWS delta is empty
11560         If there's nothing noteworthy in NEWS, then either you forgot
11561         or you shouldn't be releasing.
11562         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
11563
11564 2011-05-17  Pádraig Brady <P@draigBrady.com>
11565
11566         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
11567         reserved symbols starting with double underscore from the check.
11568
11569 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11570
11571         intprops: add doc
11572         * doc/intprops.texi: New file, documenting intprops.
11573         * doc/gnulib.texi (Particular Modules): Include it.
11574
11575         verify: add doc to gnulib manual and fix example
11576         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
11577         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
11578         (Compile-time Assertions): Fix example so it can't overflow.
11579
11580 2011-05-17  Jim Meyering  <meyering@redhat.com>
11581
11582         warnings.m4: don't usurp save_CPPFLAGS variable name
11583         * m4/warnings.m4: Prefix local temporary variable name with gl_.
11584
11585         doc: fix typo
11586         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
11587
11588 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11589             Bruno Haible  <bruno@clisp.org>
11590
11591         doc: Tweak recent change.
11592         * README (Portability guidelines): Tweak new text.
11593         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
11594         Interix 6.1.
11595
11596 2011-05-16  Eric Blake  <eblake@redhat.com>
11597
11598         inttypes: avoid autoconf warning
11599         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
11600         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11601
11602 2011-05-16  Sam Steingold <sds@gnu.org>
11603         and Eric Blake  <eblake@redhat.com>
11604
11605         vc-list-files: accept multiple directory operands
11606         * build-aux/vc-list-files: Iterate over all remaining operands.
11607
11608 2011-05-16  Bruno Haible  <bruno@clisp.org>
11609
11610         Fix confusion regarding deprecated modules.
11611         * modules/calloc (Status, Notice): Mark module as deprecated, not
11612         obsolete.
11613         * modules/fnmatch-posix (Status, Notice): Likewise.
11614         * modules/getdate (Status, Notice): Likewise.
11615         * modules/getopt (Status, Notice): Likewise.
11616         * modules/malloc (Status, Notice): Likewise.
11617         * modules/pipe (Status, Notice): Likewise.
11618         * modules/realloc (Status, Notice): Likewise.
11619         * modules/rename-dest-slash (Status, Notice): Likewise.
11620         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
11621         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
11622         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
11623         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
11624         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
11625
11626 2011-05-16  Bruno Haible  <bruno@clisp.org>
11627
11628         doc: List the target platforms.
11629         * doc/gnulib-intro.texi (Target Platforms): New section.
11630         * doc/gnulib.texi (Introduction): Update menu.
11631         * README (Portability guidelines): Refer to the new section. Update
11632         statement about oldest supported environment. Remove rationale why
11633         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
11634         unportable C89 function.
11635         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11636         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
11637
11638 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11639
11640         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
11641
11642 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11643
11644         intprops-tests: new module
11645         * modules/intprops-tests, tests/test-intprops.c: New files.
11646
11647         intprops: add safe, portable integer overflow checking
11648         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11649         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11650         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11651         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11652         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11653         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11654         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11655         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11656         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11657         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11658         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11659
11660 2011-05-12  James Youngman  <jay@gnu.org>
11661
11662         Add a test for glibc's Bugzilla bug #12378.
11663         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11664         doesn't allow the literal matching of a lone "[" (which is
11665         required by POSIX).
11666         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11667
11668 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11669
11670         Sync glibc change fixing Bugzilla bug #12378.
11671         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11672         beginning and fall back to matching as normal character if the
11673         string ends before the matching ']' is found.  This is what POSIX
11674         requires.
11675
11676 2011-05-13  Eric Blake  <eblake@redhat.com>
11677
11678         getcwd-lgpl: relax test for FreeBSD
11679         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11680         issue.
11681         * tests/test-getcwd-lgpl.c (main): Relax test.
11682         Reported by Matthias Bolte.
11683
11684 2011-05-11  Eric Blake  <eblake@redhat.com>
11685
11686         test-fflush: silence compiler warning
11687         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11688
11689 2011-05-11  Bruno Haible  <bruno@clisp.org>
11690
11691         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
11692         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
11693         * modules/canonicalize (Depends-on): Add 'nocrash'.
11694         * modules/canonicalize-lgpl (Depends-on): Likewise.
11695         * doc/posix-functions/realpath.texi: Update platforms list.
11696         Reported by Ryan Schmidt <ryandesign@macports.org>.
11697
11698 2011-05-11  Bruno Haible  <bruno@clisp.org>
11699
11700         group-member: Declare function in <unistd.h>.
11701         * lib/unistd.in.h (group_member): New declaration.
11702         * lib/group-member.h: Remove file.
11703         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
11704         * tests/test-unistd-c++.cc: Check signature of group_member.
11705         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
11706         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11707         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11708         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11709         HAVE_GROUP_MEMBER.
11710         * modules/group-member (Files): Remove lib/group-member.h.
11711         (Depends-on): Add unistd. Specify conditions.
11712         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11713         (Include): Change to <unistd.h>.
11714         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11715         HAVE_GROUP_MEMBER.
11716         * NEWS: Mention the change.
11717         * lib/euidaccess.c: Don't include group-member.h.
11718
11719 2011-05-11  Bruno Haible  <bruno@clisp.org>
11720
11721         group-member: Document module.
11722         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11723         module.
11724
11725 2011-05-11  Bruno Haible  <bruno@clisp.org>
11726
11727         fclose: Fix mistake earlier today.
11728         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11729
11730 2011-05-11  Eric Blake  <eblake@redhat.com>
11731
11732         fclose: preserve fflush errors
11733         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11734         Reported by Jim Meyering.
11735
11736         bootstrap: support a prereq of 'rpcgen -' on RHEL5
11737         * build-aux/bootstrap (check_versions): When no specific version
11738         is required, merely check that the app produces an exit status
11739         that indicates its existence.
11740
11741         maint.mk: drop redundant check
11742         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
11743         the same but better.
11744
11745 2011-05-11  Bruno Haible  <bruno@clisp.org>
11746
11747         fclose: Fix possible link error.
11748         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
11749         unregister_shadow_fd. Improve comments.
11750         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
11751         Eric Blake.
11752
11753 2011-05-11  Jim Meyering  <meyering@redhat.com>
11754
11755         maint.mk: improve "can not" detection and generalize rule name
11756         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
11757         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11758         Use the same technique as in sc_prohibit_doubled_word, so that
11759         we recognize "can not" also when the words are separated by a newline.
11760         Suggested by Eric Blake.
11761         (perl_filename_lineno_text_): Define.  Factored out of...
11762         (prohibit_doubled_word_): ...here.  Use the new definition.
11763         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11764         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11765         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11766
11767 2011-05-10  Eric Blake  <eblake@redhat.com>
11768
11769         fclose: avoid double close race when possible
11770         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11771         all but WINDOWS_SOCKETS.
11772
11773 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11774
11775         openat: correct new comment
11776         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11777
11778 2011-05-10  Jim Meyering  <meyering@redhat.com>
11779
11780         openat: add comments
11781         * lib/openat-proc.c (openat_proc_name): Add comments,
11782         mostly from Eric Blake.
11783
11784 2011-05-09  Eric Blake  <eblake@redhat.com>
11785
11786         openat: reduce syscalls in first probe of /proc
11787         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11788         be a directory.  Simplify the probe for .. bugs.
11789         * modules/openat (Depends-on): Drop same-inode.
11790         Reported by Bastien ROUCARIES.
11791
11792 2011-05-09  Jim Meyering  <meyering@redhat.com>
11793
11794         maint.mk: change semantics/name of tight_scope variables
11795         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
11796         Rename variables to align with semantics that make them more useful.
11797
11798         maint.mk: tweak new rule's name not to impinge
11799         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
11800         (sc_tight_scope): Use new rule name rather than $@-0.
11801
11802         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
11803         * top/maint.mk (sc_tight_scope): New rule.
11804         (sc_tight_scope-0): New rule, ifdef'd out.
11805         (_gl_TS_dir): Default.
11806         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
11807         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
11808
11809 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11810
11811         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11812         Haible <bruno@clisp.org>.
11813
11814 2011-05-08  Bruno Haible  <bruno@clisp.org>
11815
11816         Comments.
11817         * m4/isnanf.m4: Add comment.
11818         * m4/isnanl.m4: Likewise.
11819
11820 2011-05-08  Bruno Haible  <bruno@clisp.org>
11821
11822         glob: Remove obsolete macro.
11823         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11824
11825 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11826
11827         intprops: Sun C 5.11 supports __typeof__
11828         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11829         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11830         which is new.
11831         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11832
11833         intprops: switch to usual gnulib indenting and naming
11834         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11835         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11836
11837         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11838
11839 2011-05-08  Jim Meyering  <meyering@redhat.com>
11840
11841         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11842         * top/maint.mk (release-prep): Use make's --no-print-directory
11843         option when generating the announcement.  This eliminates the
11844         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11845         generated announcement template.
11846
11847 2011-05-08  Bruno Haible  <bruno@clisp.org>
11848
11849         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11850         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11851         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11852
11853 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11854
11855         ignore-value, verify: Omit include files from lib_SOURCES.
11856         * modules/ignore-value, modules/verify (Makefile.am):
11857         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11858         that leads Automake to duplicate use of am__objects_... variables
11859         in Makefile.in.  See
11860         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11861
11862 2011-05-07  Bruno Haible  <bruno@clisp.org>
11863
11864         fclose: Simplify autoconf macro.
11865         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11866         defined.
11867
11868 2011-05-07  Bruno Haible  <bruno@clisp.org>
11869
11870         canonicalize-lgpl: Fix autoconf macro ordering bug.
11871         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11872         gl_STDLIB_H_DEFAULTS.
11873
11874 2011-05-06  Eric Blake  <eblake@redhat.com>
11875
11876         maintainer-makefile: make sc_po_check easier to tune
11877         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11878         to probe for strings, such as an alternate location for gnulib.
11879
11880         fclose: guarantee behavior on seekable stdin
11881         * modules/fclose (Depends-on): Add fflush.
11882         * doc/posix-functions/fclose.texi (fclose): Document this.
11883         * tests/test-fclose.c (main): Make test for this unconditional.
11884
11885 2011-05-06  Bruno Haible  <bruno@clisp.org>
11886
11887         fflush, fpurge: Relicense under LGPLv2+.
11888         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11889         * modules/fpurge (License): Likewise.
11890         With permission from Eric Blake and Jim Meyering.
11891         Suggested by Eric Blake.
11892
11893 2011-05-06  Karl Berry  <karl@gnu.org>
11894
11895         * MODULES.html.sh (func_all_modules): remove exit.
11896
11897 2011-05-06  Jim Meyering  <meyering@redhat.com>
11898
11899         maint.mk: use info-gnu@ as the default only for a stable release
11900         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11901         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11902         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11903         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11904
11905 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11906
11907         assert-h: new module, which supports C1X-style static_assert
11908         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11909         * lib/verify.h: Revamp so that this can be copied into assert.h,
11910         while retaining the ability to use it standalone as before.
11911         Rename private identifiers so as not to encroach on the
11912         standard C namespace, since this is now used by assert.h.
11913         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11914         the old verify_true.
11915         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11916         the old verify_true.  Use _GL_VERIFY_TYPE.
11917         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11918         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11919         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11920         defined when this file is copied into the replacement assert.h.
11921         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11922         and _Static_assert is not built in.
11923         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11924         defined, and use the new macros mentioned above.
11925         * doc/posix-headers/assert.texi: Document this.
11926
11927 2011-05-05  Bruno Haible  <bruno@clisp.org>
11928
11929         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11930         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11931         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11932         gl_REPLACE_FCLOSE here.
11933         * modules/fflush (Depends-on): Remove fclose.
11934         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11935         combination with module 'fclose'.
11936
11937 2011-05-05  Bruno Haible  <bruno@clisp.org>
11938
11939         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11940         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11941         gl_FUNC_FFLUSH.
11942         (gl_FUNC_FFLUSH): Use it.
11943         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11944         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11945         gl_REPLACE_FSEEKO here.
11946
11947 2011-05-05  Bruno Haible  <bruno@clisp.org>
11948
11949         tzset: Relicense under LGPL.
11950         * modules/tzset (License): Change to LGPL.
11951         No agreement needed; it's a no-op.
11952
11953         strtoimax, strtoumax: Relicense under LGPL.
11954         * modules/strtoimax (License): Change to LGPL.
11955         * modules/strtoumax (License): Likewise.
11956         With permission from Jim Meyering, Paul Eggert:
11957         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11958         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11959
11960         getgroups: Relicense under LGPL.
11961         * modules/getgroups (License): Change to LGPL.
11962         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11965         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11966
11967         nanosleep: Relicense under LGPL.
11968         * modules/nanosleep (License): Change to LGPL.
11969         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11970         Haible:
11971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11973         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11974         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11975
11976         futimens: Relicense under LGPL.
11977         * modules/futimens (License): Change to LGPL.
11978         With permission from Eric Blake:
11979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11980
11981         fflush: Relicense under LGPL.
11982         * modules/fflush (License): Change to LGPL.
11983         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11984         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11986         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11987
11988         tmpfile: Relicense under LGPL.
11989         * modules/tmpfile (License): Change to LGPL.
11990         With permission from Ben Pfaff:
11991         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11992
11993         isfinite: Relicense under LGPL.
11994         * modules/isfinite (License): Change to LGPL.
11995         With permission from Ben Pfaff, Bruno Haible:
11996         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11998
11999         acosl..tanl: Relicense under LGPL.
12000         * modules/acosl (License): Change to LGPL.
12001         * modules/asinl (License): Likewise.
12002         * modules/atanl (License): Likewise.
12003         * modules/cosl (License): Likewise.
12004         * modules/expl (License): Likewise.
12005         * modules/logl (License): Likewise.
12006         * modules/sinl (License): Likewise.
12007         * modules/sqrtl (License): Likewise.
12008         * modules/tanl (License): Likewise.
12009         Source code originally from glibc and Paolo Bonzini. Agreements:
12010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
12011         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
12012
12013 2011-05-05  Bruno Haible  <bruno@clisp.org>
12014
12015         signal: Define sighandler_t.
12016         * lib/signal.in.h (sighandler_t): New type.
12017         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
12018         whether sighandler_t is defined.
12019         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
12020         * modules/signal (Depends-on): Add extensions.
12021         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
12022         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
12023         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
12024
12025 2011-05-05  Eric Blake  <eblake@redhat.com>
12026
12027         maint: remove useless REPLACE_*_H macros
12028         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
12029         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12030         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12031         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
12032         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12033         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12034         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
12035         * m4/btowc.m4: Update callers.
12036         * m4/dirfd.m4: Likewise.
12037         * m4/duplocale.m4: Likewise.
12038         * m4/fchdir.m4: Likewise.
12039         * m4/fdopendir.m4: Likewise.
12040         * m4/inet_ntop.m4: Likewise.
12041         * m4/inet_pton.m4: Likewise.
12042         * m4/ioctl.m4: Likewise.
12043         * m4/mbrlen.m4: Likewise.
12044         * m4/mbrtowc.m4: Likewise.
12045         * m4/mbsinit.m4: Likewise.
12046         * m4/mbsnrtowcs.m4: Likewise.
12047         * m4/mbsrtowcs.m4: Likewise.
12048         * m4/poll.m4: Likewise.
12049         * m4/setlocale.m4: Likewise.
12050         * m4/wcrtomb.m4: Likewise.
12051         * m4/wcsnrtombs.m4: Likewise.
12052         * m4/wcsrtombs.m4: Likewise.
12053         * m4/wctob.m4: Likewise.
12054         * m4/wcwidth.m4: Likewise.
12055         * modules/posix_spawn: Likewise.
12056         * modules/posix_spawn_file_actions_addclose: Likewise.
12057         * modules/posix_spawn_file_actions_adddup2: Likewise.
12058         * modules/posix_spawn_file_actions_addopen: Likewise.
12059         * modules/posix_spawn_file_actions_destroy: Likewise.
12060         * modules/posix_spawn_file_actions_init: Likewise.
12061         * modules/posix_spawnattr_destroy: Likewise.
12062         * modules/posix_spawnattr_getflags: Likewise.
12063         * modules/posix_spawnattr_getpgroup: Likewise.
12064         * modules/posix_spawnattr_getschedparam: Likewise.
12065         * modules/posix_spawnattr_getschedpolicy: Likewise.
12066         * modules/posix_spawnattr_getsigdefault: Likewise.
12067         * modules/posix_spawnattr_getsigmask: Likewise.
12068         * modules/posix_spawnattr_init: Likewise.
12069         * modules/posix_spawnattr_setflags: Likewise.
12070         * modules/posix_spawnattr_setpgroup: Likewise.
12071         * modules/posix_spawnattr_setschedparam: Likewise.
12072         * modules/posix_spawnattr_setschedpolicy: Likewise.
12073         * modules/posix_spawnattr_setsigdefault: Likewise.
12074         * modules/posix_spawnattr_setsigmask: Likewise.
12075         * modules/posix_spawnp: Likewise.
12076
12077 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
12078
12079         Add option to do-release-commit-and-tag to specify branch.
12080         * build-aux/do-release-commit-and-tag: Add --branch.
12081
12082 2011-05-03  Bruno Haible  <bruno@clisp.org>
12083
12084         Avoid unnecessary compilation units, through conditional dependencies.
12085         * modules/accept (Depends-on): Add conditions to the dependencies.
12086         * modules/acosl (Depends-on): Likewise.
12087         * modules/argz (Depends-on): Likewise.
12088         * modules/asinl (Depends-on): Likewise.
12089         * modules/atanl (Depends-on): Likewise.
12090         * modules/atoll (Depends-on): Likewise.
12091         * modules/bind (Depends-on): Likewise.
12092         * modules/btowc (Depends-on): Likewise.
12093         * modules/canonicalize-lgpl (Depends-on): Likewise.
12094         * modules/ceil (Depends-on): Likewise.
12095         * modules/ceilf (Depends-on): Likewise.
12096         * modules/ceill (Depends-on): Likewise.
12097         * modules/chdir-long (Depends-on): Likewise.
12098         * modules/chown (Depends-on): Likewise.
12099         * modules/close (Depends-on): Likewise.
12100         * modules/connect (Depends-on): Likewise.
12101         * modules/cosl (Depends-on): Likewise.
12102         * modules/dirfd (Depends-on): Likewise.
12103         * modules/dprintf (Depends-on): Likewise.
12104         * modules/dprintf-posix (Depends-on): Likewise.
12105         * modules/error (Depends-on): Likewise.
12106         * modules/euidaccess (Depends-on): Likewise.
12107         * modules/expl (Depends-on): Likewise.
12108         * modules/faccessat (Depends-on): Likewise.
12109         * modules/fchdir (Depends-on): Likewise.
12110         * modules/fclose (Depends-on): Likewise.
12111         * modules/fcntl (Depends-on): Likewise.
12112         * modules/fdopendir (Depends-on): Likewise.
12113         * modules/fflush (Depends-on): Likewise.
12114         * modules/floor (Depends-on): Likewise.
12115         * modules/floorf (Depends-on): Likewise.
12116         * modules/floorl (Depends-on): Likewise.
12117         * modules/fnmatch (Depends-on): Likewise.
12118         * modules/fopen (Depends-on): Likewise.
12119         * modules/fprintf-posix (Depends-on): Likewise.
12120         * modules/frexp (Depends-on): Likewise.
12121         * modules/frexp-nolibm (Depends-on): Likewise.
12122         * modules/frexpl (Depends-on): Likewise.
12123         * modules/frexpl-nolibm (Depends-on): Likewise.
12124         * modules/fseek (Depends-on): Likewise.
12125         * modules/fsusage (Depends-on): Likewise.
12126         * modules/ftell (Depends-on): Likewise.
12127         * modules/ftello (Depends-on): Likewise.
12128         * modules/futimens (Depends-on): Likewise.
12129         * modules/getcwd (Depends-on): Likewise.
12130         * modules/getcwd-lgpl (Depends-on): Likewise.
12131         * modules/getdelim (Depends-on): Likewise.
12132         * modules/getdomainname (Depends-on): Likewise.
12133         * modules/getgroups (Depends-on): Likewise.
12134         * modules/gethostname (Depends-on): Likewise.
12135         * modules/getline (Depends-on): Likewise.
12136         * modules/getlogin_r (Depends-on): Likewise.
12137         * modules/getopt-posix (Depends-on): Likewise.
12138         * modules/getpeername (Depends-on): Likewise.
12139         * modules/getsockname (Depends-on): Likewise.
12140         * modules/getsockopt (Depends-on): Likewise.
12141         * modules/getsubopt (Depends-on): Likewise.
12142         * modules/getusershell (Depends-on): Likewise.
12143         * modules/glob (Depends-on): Likewise.
12144         * modules/grantpt (Depends-on): Likewise.
12145         * modules/iconv_open (Depends-on): Likewise.
12146         * modules/iconv_open-utf (Depends-on): Likewise.
12147         * modules/inet_ntop (Depends-on): Likewise.
12148         * modules/inet_pton (Depends-on): Likewise.
12149         * modules/ioctl (Depends-on): Likewise.
12150         * modules/isapipe (Depends-on): Likewise.
12151         * modules/isfinite (Depends-on): Likewise.
12152         * modules/isinf (Depends-on): Likewise.
12153         * modules/lchown (Depends-on): Likewise.
12154         * modules/ldexpl (Depends-on): Likewise.
12155         * modules/link (Depends-on): Likewise.
12156         * modules/linkat (Depends-on): Likewise.
12157         * modules/listen (Depends-on): Likewise.
12158         * modules/logl (Depends-on): Likewise.
12159         * modules/lstat (Depends-on): Likewise.
12160         * modules/mbrlen (Depends-on): Likewise.
12161         * modules/mbrtowc (Depends-on): Likewise.
12162         * modules/mbsinit (Depends-on): Likewise.
12163         * modules/mbsnrtowcs (Depends-on): Likewise.
12164         * modules/mbsrtowcs (Depends-on): Likewise.
12165         * modules/mbtowc (Depends-on): Likewise.
12166         * modules/memcmp (Depends-on): Likewise.
12167         * modules/mkdir (Depends-on): Likewise.
12168         * modules/mkdtemp (Depends-on): Likewise.
12169         * modules/mkfifo (Depends-on): Likewise.
12170         * modules/mkfifoat (Depends-on): Likewise.
12171         * modules/mknod (Depends-on): Likewise.
12172         * modules/mkostemp (Depends-on): Likewise.
12173         * modules/mkostemps (Depends-on): Likewise.
12174         * modules/mkstemp (Depends-on): Likewise.
12175         * modules/mkstemps (Depends-on): Likewise.
12176         * modules/mktime (Depends-on): Likewise.
12177         * modules/nanosleep (Depends-on): Likewise.
12178         * modules/open (Depends-on): Likewise.
12179         * modules/openat (Depends-on): Likewise.
12180         * modules/perror (Depends-on): Likewise.
12181         * modules/poll (Depends-on): Likewise.
12182         * modules/popen (Depends-on): Likewise.
12183         * modules/posix_spawn (Depends-on): Likewise.
12184         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
12185         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12186         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12187         * modules/posix_spawnp (Depends-on): Likewise.
12188         * modules/pread (Depends-on): Likewise.
12189         * modules/printf-posix (Depends-on): Likewise.
12190         * modules/ptsname (Depends-on): Likewise.
12191         * modules/putenv (Depends-on): Likewise.
12192         * modules/pwrite (Depends-on): Likewise.
12193         * modules/readline (Depends-on): Likewise.
12194         * modules/readlink (Depends-on): Likewise.
12195         * modules/readlinkat (Depends-on): Likewise.
12196         * modules/recv (Depends-on): Likewise.
12197         * modules/recvfrom (Depends-on): Likewise.
12198         * modules/regex (Depends-on): Likewise.
12199         * modules/remove (Depends-on): Likewise.
12200         * modules/rename (Depends-on): Likewise.
12201         * modules/renameat (Depends-on): Likewise.
12202         * modules/rmdir (Depends-on): Likewise.
12203         * modules/round (Depends-on): Likewise.
12204         * modules/roundf (Depends-on): Likewise.
12205         * modules/roundl (Depends-on): Likewise.
12206         * modules/rpmatch (Depends-on): Likewise.
12207         * modules/select (Depends-on): Likewise.
12208         * modules/send (Depends-on): Likewise.
12209         * modules/sendto (Depends-on): Likewise.
12210         * modules/setenv (Depends-on): Likewise.
12211         * modules/setlocale (Depends-on): Likewise.
12212         * modules/setsockopt (Depends-on): Likewise.
12213         * modules/shutdown (Depends-on): Likewise.
12214         * modules/sigaction (Depends-on): Likewise.
12215         * modules/signbit (Depends-on): Likewise.
12216         * modules/sigprocmask (Depends-on): Likewise.
12217         * modules/sinl (Depends-on): Likewise.
12218         * modules/sleep (Depends-on): Likewise.
12219         * modules/snprintf (Depends-on): Likewise.
12220         * modules/snprintf-posix (Depends-on): Likewise.
12221         * modules/socket (Depends-on): Likewise.
12222         * modules/sprintf-posix (Depends-on): Likewise.
12223         * modules/sqrtl (Depends-on): Likewise.
12224         * modules/stat (Depends-on): Likewise.
12225         * modules/strchrnul (Depends-on): Likewise.
12226         * modules/strdup-posix (Depends-on): Likewise.
12227         * modules/strerror (Depends-on): Likewise.
12228         * modules/strerror_r-posix (Depends-on): Likewise.
12229         * modules/strndup (Depends-on): Likewise.
12230         * modules/strnlen (Depends-on): Likewise.
12231         * modules/strptime (Depends-on): Likewise.
12232         * modules/strsep (Depends-on): Likewise.
12233         * modules/strsignal (Depends-on): Likewise.
12234         * modules/strstr-simple (Depends-on): Likewise.
12235         * modules/strtod (Depends-on): Likewise.
12236         * modules/strtoimax (Depends-on): Likewise.
12237         * modules/strtok_r (Depends-on): Likewise.
12238         * modules/strtoumax (Depends-on): Likewise.
12239         * modules/symlink (Depends-on): Likewise.
12240         * modules/symlinkat (Depends-on): Likewise.
12241         * modules/tanl (Depends-on): Likewise.
12242         * modules/tcgetsid (Depends-on): Likewise.
12243         * modules/tmpfile (Depends-on): Likewise.
12244         * modules/trunc (Depends-on): Likewise.
12245         * modules/truncf (Depends-on): Likewise.
12246         * modules/truncl (Depends-on): Likewise.
12247         * modules/uname (Depends-on): Likewise.
12248         * modules/unlink (Depends-on): Likewise.
12249         * modules/unlockpt (Depends-on): Likewise.
12250         * modules/unsetenv (Depends-on): Likewise.
12251         * modules/usleep (Depends-on): Likewise.
12252         * modules/utimensat (Depends-on): Likewise.
12253         * modules/vasprintf (Depends-on): Likewise.
12254         * modules/vdprintf (Depends-on): Likewise.
12255         * modules/vdprintf-posix (Depends-on): Likewise.
12256         * modules/vfprintf-posix (Depends-on): Likewise.
12257         * modules/vprintf-posix (Depends-on): Likewise.
12258         * modules/vsnprintf (Depends-on): Likewise.
12259         * modules/vsnprintf-posix (Depends-on): Likewise.
12260         * modules/vsprintf-posix (Depends-on): Likewise.
12261         * modules/wcrtomb (Depends-on): Likewise.
12262         * modules/wcscasecmp (Depends-on): Likewise.
12263         * modules/wcscspn (Depends-on): Likewise.
12264         * modules/wcsdup (Depends-on): Likewise.
12265         * modules/wcsncasecmp (Depends-on): Likewise.
12266         * modules/wcsnrtombs (Depends-on): Likewise.
12267         * modules/wcspbrk (Depends-on): Likewise.
12268         * modules/wcsrtombs (Depends-on): Likewise.
12269         * modules/wcsspn (Depends-on): Likewise.
12270         * modules/wcsstr (Depends-on): Likewise.
12271         * modules/wcstok (Depends-on): Likewise.
12272         * modules/wcswidth (Depends-on): Likewise.
12273         * modules/wctob (Depends-on): Likewise.
12274         * modules/wctomb (Depends-on): Likewise.
12275         * modules/wctype (Depends-on): Likewise.
12276         * modules/wcwidth (Depends-on): Likewise.
12277         * modules/write (Depends-on): Likewise.
12278
12279 2011-05-03  Bruno Haible  <bruno@clisp.org>
12280
12281         Support for conditional dependencies.
12282         * doc/gnulib.texi (Module description): Document the syntax of
12283         conditional dependencies.
12284         * gnulib-tool: New option --conditional-dependencies.
12285         (func_usage): Document it.
12286         (cond_dependencies): New variable.
12287         (func_get_automake_snippet_conditional,
12288         func_get_automake_snippet_unconditional): New functions, extracted from
12289         func_get_automake_snippet.
12290         (func_get_automake_snippet): Use them.
12291         (sed_first_32_chars): New variable.
12292         (func_module_shellfunc_name): New function.
12293         (func_module_shellvar_name): New function.
12294         (func_module_conditional_name): New function.
12295         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
12296         func_cond_module_condition): New functions.
12297         (func_modules_transitive_closure): Add support for conditional
12298         dependencies.
12299         (func_emit_lib_Makefile_am): For a conditional module, enclose the
12300         conditional automake snippet in an automake conditional.
12301         (func_emit_autoconf_snippets): Emit shell functions that contain the
12302         code for conditional modules.
12303         (func_import, func_create_testdir): Update specification.
12304
12305 2011-05-03  Eric Blake  <eblake@redhat.com>
12306
12307         test-getaddrinfo: report error information
12308         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
12309
12310 2011-05-03  Jim Meyering  <meyering@redhat.com>
12311
12312         bootstrap: avoid build failure when $GZIP is set
12313         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
12314         program name.  If defined at all, it is supposed to list gzip options.
12315         Reported by Alan Curry in http://debbugs.gnu.org/8609
12316
12317 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
12318
12319         readme-release: new module with release instructions
12320         * modules/readme-release: New module.
12321         * top/README-release: New file, from coreutils, grep, diffutils.
12322         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12323
12324 2011-05-02  Eric Blake  <eblake@redhat.com>
12325
12326         fflush: also replace fclose when fixing fflush
12327         * modules/fflush (Depends-on): Add fclose.
12328         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
12329         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
12330         memstreams with no backing fd.
12331         * doc/posix-functions/fclose.texi (fclose): Document the use of
12332         fflush module to fix the bug.
12333         * tests/test-fclose.c (main): Relax test when fclose is used in
12334         isolation.
12335
12336         fclose: add some tests
12337         * modules/fclose-tests: New test module.
12338         * tests/test-fclose.c: New file.
12339         * doc/posix-functions/fclose.texi (fclose): Document the bug.
12340
12341         fclose: reduced dependencies
12342         * modules/fclose (Depends-on): Switch from fflush/fseeko to
12343         simpler lseek.
12344         * lib/fclose.c (rpl_fclose): Likewise.
12345         Reported by Simon Josefsson.
12346
12347         exit: drop remaining clients
12348         * modules/argmatch (Depends-on): Replace exit with stdlib.
12349         * modules/copy-file (Depends-on): Likewise.
12350         * modules/execute (Depends-on): Likewise.
12351         * modules/exitfail (Depends-on): Likewise.
12352         * modules/obstack (Depends-on): Likewise.
12353         * modules/pagealign_alloc (Depends-on): Likewise.
12354         * modules/pipe-filter-gi (Depends-on): Likewise.
12355         * modules/pipe-filter-ii (Depends-on): Likewise.
12356         * modules/savewd (Depends-on): Likewise.
12357         * modules/spawn-pipe (Depends-on): Likewise.
12358         * modules/wait-process (Depends-on): Likewise.
12359         * modules/xsetenv (Depends-on): Likewise.
12360         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
12361         * modules/git-merge-changelog (Depends-on): Likewise.
12362         * modules/long-options (Depends-on): Likewise.
12363         * modules/pt_chown (Depends-on): Likewise.
12364         * modules/sysexits (Depends-on): Likewise.
12365
12366         freading: relax license from LGPLv3+ to LGPLv2+
12367         * modules/freading (License): Relax LGPL version.
12368
12369 2011-05-02  Bruno Haible  <bruno@clisp.org>
12370
12371         fchdir: Remove unused dependencies.
12372         * modules/fchdir (Depends-on): Remove include_next.
12373
12374 2011-05-02  Bruno Haible  <bruno@clisp.org>
12375
12376         gnulib-tool: Refactor.
12377         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
12378         from func_emit_autoconf_snippets.
12379         (func_emit_autoconf_snippets): Use it.
12380
12381 2011-05-02  Simon Josefsson  <simon@josefsson.org>
12382
12383         * NEWS: Document removal of 'exit'.
12384         * modules/exit: Remove file.
12385
12386 2011-05-01  Bruno Haible  <bruno@clisp.org>
12387
12388         Update DEPENDENCIES.
12389         * DEPENDENCIES (gettext): Recommend the newest release.
12390         Reported by Simon Josefsson.
12391
12392 2011-05-01  Bruno Haible  <bruno@clisp.org>
12393
12394         gnulib-tool: Reduce code duplication.
12395         * gnulib-tool (func_emit_autoconf_snippets): New function.
12396         (func_import, func_create_testdir): Use it.
12397
12398 2011-04-30  Eric Blake  <eblake@redhat.com>
12399
12400         fclose: don't fail on non-seekable input stream
12401         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
12402         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
12403         since fflush is allowed to fail in that case.
12404
12405 2011-04-30  Bruno Haible  <bruno@clisp.org>
12406
12407         dup3: cleanup
12408         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
12409
12410 2011-04-30  Bruno Haible  <bruno@clisp.org>
12411
12412         netdb: Make it work in C++ mode.
12413         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
12414         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
12415         module.
12416         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
12417         gl_MODULE_INDICATOR_FOR_TESTS.
12418         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
12419         * modules/netdb-c++-tests: New file.
12420         * tests/test-netdb-c++.cc: New file.
12421
12422 2011-04-30  Bruno Haible  <bruno@clisp.org>
12423
12424         New modules 'vfscanf', 'vscanf'.
12425         * modules/vfscanf: New file.
12426         * modules/vscanf: New file.
12427         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
12428         here.
12429         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
12430         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
12431
12432 2011-04-30  Bruno Haible  <bruno@clisp.org>
12433
12434         passfd: Add comments.
12435         * lib/passfd.c: Add comments about platforms.
12436
12437 2011-04-30  Bruno Haible  <bruno@clisp.org>
12438
12439         sys_uio: Make <sys/uio.h> self-contained.
12440         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
12441         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
12442
12443 2011-04-30  Bruno Haible  <bruno@clisp.org>
12444
12445         sys_socket: Ensure 'struct iovec' definition.
12446         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
12447         <sys/socket.h>.
12448         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
12449
12450 2011-04-30  Bruno Haible  <bruno@clisp.org>
12451
12452         sys_uio: Protect definition of 'struct iovec'.
12453         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
12454         it as a C struct.
12455
12456 2011-04-30  Bruno Haible  <bruno@clisp.org>
12457
12458         manywarnings: fix indentation
12459         * m4/manywarnings.m4: Indent by 2 spaces consistently.
12460
12461 2011-04-30  Pádraig Brady <P@draigBrady.com>
12462
12463         manywarnings: add -Wno-missing-field-initializers if needed.
12464         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
12465         option if it's needed to allow initialization with { 0, }
12466
12467 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
12468
12469         announce-gen: cosmetic improvement
12470         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
12471
12472 2011-04-29  Jim Meyering  <meyering@redhat.com>
12473
12474         vc-list-files: indent with spaces, not TABs
12475         * build-aux/vc-list-files: Convert leading TABs to spaces,
12476         to match the style of most other files in gnulib.
12477
12478         announce-gen: indent with spaces, not TABs
12479         * build-aux/announce-gen: Convert all TABs to spaces, to match
12480         the style of most other files in gnulib.
12481
12482 2011-04-29  Eric Blake  <eblake@redhat.com>
12483
12484         quotearg: avoid uninitialized variable use
12485         * lib/quotearg.c (quoting_options_from_style): Initialize
12486         remaining fields, and ensure that custom styles are only used via
12487         quoting_options rather than quoting_style.
12488
12489 2011-04-29  Jim Meyering  <meyering@redhat.com>
12490
12491         maint.mk: remove unused VC-tag variable
12492         * top/maint.mk (VC-tag): Remove unused variable.
12493
12494 2011-04-29  Bruno Haible  <bruno@clisp.org>
12495
12496         netdb: fix gai_strerror replacements
12497         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
12498         * modules/netdb: Substitute it.
12499
12500 2011-04-29  Jim Meyering  <meyering@redhat.com>
12501
12502         test-getcwd.c: avoid new set-but-not-used warning
12503         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
12504         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
12505         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
12506         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
12507
12508         test-hash.c: avoid a new shadowing warning
12509         * tests/test-hash.c (main): Don't shadow "dup".
12510
12511 2011-04-28  Eric Blake  <eblake@redhat.com>
12512
12513         getaddrinfo: fix gai_strerror signature
12514         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
12515         and work around mingw with UNICODE defined.
12516         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
12517         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
12518         * modules/netdb (Makefile.am): Substitute it.
12519         * lib/netdb.in.h (gai_strerror): Declare replacement.
12520         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
12521         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
12522         the fix.
12523
12524         getsockopt: avoid compiler warning
12525         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
12526         Reported by Matthias Bolte.
12527
12528         tests: drop unused link dependency
12529         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
12530         * modules/dirent-safer-tests (Makefile.am): Likewise.
12531         * modules/fdopendir-tests (Makefile.am): Likewise.
12532         * modules/mkfifoat-tests (Makefile.am): Likewise.
12533         * modules/openat-safer-tests (Makefile.am): Likewise.
12534         * modules/openat-tests (Makefile.am): Likewise.
12535         * modules/readlinkat-tests (Makefile.am): Likewise.
12536         * modules/symlinkat-tests (Makefile.am): Likewise.
12537         * modules/linkat-tests (Makefile.am): Likewise.
12538         (Depends-on): Switch to filenamecat-lgpl.
12539         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
12540         LIBINTL.
12541         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
12542         * tests/test-linkat.c (main): Don't require xalloc.
12543
12544         hash, mgetgroups: drop xalloc dependency
12545         * lib/hash.c (includes): Adjust includes.
12546         * lib/mgetgroups.c (includes): Likewise.
12547         (xgetgroups): Move...
12548         * lib/xgetgroups.c: ...to new file.
12549         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
12550         * modules/xgetgroups: New file, split from...
12551         * modules/mgetgroups: ...here.
12552         (Depends-on): Add xalloc-oversized.
12553         * modules/hash (Depends-on): Likewise.
12554         * modules/hash-tests (Depends-on): Drop xalloc.
12555         (test_hash_LDADD): Drop unused library.
12556         * tests/test-hash.c (main): Break xalloc dependency.
12557         (includes): Drop unused include.
12558
12559         xalloc-oversized: new module
12560         * modules/xalloc-oversized: New module.
12561         * modules/xalloc (Depends-on): Add it.
12562         * lib/xalloc.h (xalloc_oversized): Move...
12563         * lib/xalloc-oversized.h: ...into new file.
12564
12565         utimecmp: drop dependency on xmalloc
12566         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
12567         due to memory pressure.
12568         * modules/utimecmp (Depends-on): Drop xalloc.
12569
12570 2011-04-27  Eric Blake  <eblake@redhat.com>
12571
12572         getcwd: fix mingw bugs
12573         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
12574         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
12575         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
12576
12577 2011-04-27  Bruno Haible  <bruno@clisp.org>
12578
12579         mkstemps: Ensure declaration on MacOS X 10.5.
12580         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
12581         * doc/glibc-functions/mkstemps.texi: Document header file problem on
12582         MacOS X.
12583
12584 2011-04-27  Bruno Haible  <bruno@clisp.org>
12585
12586         mkstemp: More documentation.
12587         * doc/posix-functions/mkstemp.texi: Document header file problem on
12588         MacOS X.
12589
12590 2011-04-27  Bruno Haible  <bruno@clisp.org>
12591
12592         mkstemp: Tweak configure message when cross-compiling.
12593         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
12594         result as a guess.
12595
12596 2011-04-27  Bruno Haible  <bruno@clisp.org>
12597
12598         clean-temp: Clarify what it does.
12599         * lib/clean-temp.h: Add more comments.
12600         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
12601         module.
12602         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
12603         * doc/glibc-functions/mkstemps.texi: Likewise.
12604         * doc/glibc-functions/mkostemps.texi: Likewise.
12605
12606 2011-04-27  Eric Blake  <eblake@redhat.com>
12607
12608         fchdir: avoid extra chdir and fix test
12609         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
12610         getcwd-lgpl.
12611         * lib/fchdir.c (get_name): Any absolute name will do; it does not
12612         have to be canonical.
12613         (canonicalize_file_name): Drop unused macro.
12614         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
12615
12616         filenamecat-lgpl: fix licence
12617         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
12618         when it was first created.
12619
12620         linkat, renameat: add missing dependency
12621         * modules/linkat (Depends-on): Require getcwd-lgpl.
12622         * modules/renameat (Depends-on): Likewise.
12623
12624         tests: reduce dependencies
12625         * tests/test-linkat.c (main): Use lighter-weight getcwd.
12626         * tests/test-renameat.c (main): Likewise.
12627         * modules/linkat-tests (Depends-on): Relax dependency.
12628         * modules/renameat-tests (Depends-on): Likewise.
12629         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
12630         dependency explicit.
12631
12632         save-cwd: reduce default dependency
12633         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
12634         * lib/save-cwd.c: Update comments.
12635         * NEWS: Document the semantic change.
12636
12637         getcwd: enhance tests
12638         * tests/test-getcwd-lgpl.c: New file, taken from...
12639         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
12640         repeat long path stress tests from m4 probe.
12641         * modules/getcwd-lgpl-tests: New module.
12642         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12643         * m4/getcwd-abort-bug.m4: Update comment.
12644         * m4/getcwd-path-max.m4: Likewise.
12645
12646         getcwd-lgpl: new module
12647         * modules/getcwd-lgpl: New module.
12648         * lib/getcwd-lgpl.c: New file.
12649         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12650         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12651         * modules/getcwd (configure.ac): Set C witness.
12652         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12653
12654         getcwd: tweak comments
12655         * m4/getcwd-abort-bug.m4: Fix comments.
12656         * m4/getcwd-path-max.m4: Likewise.
12657         * m4/getcwd.m4: Likewise.
12658
12659 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12660         and Eric Blake  <eblake@redhat.com>
12661
12662         mkstemp: replace if system version uses wrong permissions
12663         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12664         read/write mode bits set in file created by mkstemp.
12665         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12666
12667 2011-04-27  Eric Blake  <eblake@redhat.com>
12668
12669         passfd: avoid compiler warning
12670         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12671         Reported by Laine Stump.
12672
12673 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12674
12675         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12676         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12677
12678 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12679         and Eric Blake  <eblake@redhat.com>
12680
12681         mkstemp: mention clean-temp module
12682         * lib/mkstemp.c: Add comment.
12683         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12684
12685 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12686
12687         inttypes: also provide default values for 32-bit tests
12688         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12689         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12690
12691 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12692
12693         strtoumax: remove dependency on strtoimax
12694         This is like the strtoull change of yesterday.
12695         * modules/strtoumax (Files): Add lib/strtoimax.c.
12696         (Depends-on): Remove strtoimax and add verify.
12697
12698         inttypes-incomplete: new module
12699         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
12700         all but the PRI* and SCN* parts of gl_INTTYPES_H.
12701         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
12702         of gl_INTTYPES_H.
12703         (gl_INTTYPES_H): Rewrite in terms of these new macros.
12704         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
12705         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
12706         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12707         * modules/strtoumax, modules/xstrtol (Depends-on):
12708         Depend on inttypes-incomplete, not inttypes.
12709         * modules/inttypes-incomplete: New module, containing the contents
12710         of the old modules/inttypes module, except that the Files: section
12711         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12712         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12713         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12714         (Depends-on): Depend only on inttypes-incomplete.
12715         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12716
12717         inttypes: omit now-redundant strtoimax and strtoumax work
12718         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12719         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12720
12721         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12722         This supports apps that need pointers to strtoimax and strtoumax,
12723         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12724         nonexistent functions.  See
12725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12726         et seq.
12727         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12728         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12729         a macro.
12730         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12731
12732 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12733
12734         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
12735
12736 2011-04-25  Bruno Haible  <bruno@clisp.org>
12737
12738         strtol, strtoul: Mark modules as obsolete.
12739         * modules/strtol (Status, Notice): New sections.
12740         * modules/strtoul (Status, Notice): New sections.
12741
12742 2011-04-25  Bruno Haible  <bruno@clisp.org>
12743
12744         strtod: Remove check for strtod, unless supporting old platforms.
12745         * modules/strtod-obsolete: New file.
12746         * m4/strtod-obsolete.m4: New file.
12747         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
12748         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
12749         * modules/strtod (Depends-on): Add strtod-obsolete.
12750         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
12751
12752 2011-04-25  Bruno Haible  <bruno@clisp.org>
12753
12754         strcase: Make module obsolete.
12755         * modules/strcase (Status, Notice): New sections.
12756
12757 2011-04-25  Bruno Haible  <bruno@clisp.org>
12758
12759         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12760         * modules/dup2-obsolete: New file.
12761         * m4/dup2-obsolete.m4: New file.
12762         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12763         gl_FUNC_DUP2_OBSOLETE is not also defined.
12764         * modules/dup2 (Depends-on): Add dup2-obsolete.
12765         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12766
12767 2011-04-25  Bruno Haible  <bruno@clisp.org>
12768
12769         strnlen: Avoid memchr related link error on old obsolete platforms.
12770         * modules/memchr-obsolete: New file.
12771         * m4/memchr-obsolete.m4: New file.
12772         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12773         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12774         * modules/memchr (Depends-on): Add memchr-obsolete.
12775         * modules/strnlen (Depends-on): Likewise.
12776         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12777
12778 2011-04-25  Jim Meyering  <meyering@redhat.com>
12779
12780         maint.mk: makefile_at_at_check extend and clean up
12781         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12782         in addition to */Makefile.am.
12783         Exempt legitimate uses of @VAR@ notation, e.g.,
12784         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12785         Remove obsolete coreutils-specific comment.
12786         Prompted by discussion here:
12787         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12788
12789 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12790
12791         strtoul: remove dependency on strtol
12792         This is so that 'configure' need not check for strtol merely because
12793         the application needs strtoul.
12794         * modules/strtoul (Files): Add lib/strtol.c.
12795         (Depends-on): Remove strtol.
12796
12797         strtoull: remove dependency on strtoul
12798         This is like the strtoll change.
12799         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
12800         (Depends-on): Remove strtoul.
12801
12802         strtoll: remove dependency on strtol
12803         This is so that 'configure' need not check for strtol merely because
12804         the application needs strtoll.
12805         * modules/strtoll (Files): Add lib/strtol.c.
12806         (Depends-on): Remove strtol.
12807
12808 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12809
12810         inttypes: Move some configure check to module 'imaxdiv'.
12811         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12812         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12813         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12814
12815 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12816
12817         inttypes: Move some configure check to module 'imaxabs'.
12818         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12819         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12820         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12821
12822 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12823
12824         inttypes: Remove configure tests that are not needed since 2009-12-31.
12825         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12826         gl_cv_header_working_inttypes_h.
12827
12828 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12829
12830         * modules/strnlen (Depends-on): Remove memchr.
12831         The strnlen implementation doesn't need the memchr module's fixes; see
12832         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12833
12834         strtol: remove dependency on wchar
12835         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12836         * modules/strtol (Depends-on): Remove wchar.
12837
12838 2011-04-21  Eric Blake  <eblake@redhat.com>
12839
12840         passfd: fix test regression on Linux
12841         * modules/passfd-tests (configure.ac): Correct socketpair check.
12842
12843         passfd: speed up configure and drop unused code
12844         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12845         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12846         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12847         Instead of probing at configure for unix_scm_rights_bsd44_way,
12848         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12849         check to a struct member probe.
12850         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12851         (sendfd, recvfd): Update preprocessor checks.
12852         * modules/passfd (Files): Reflect rename, and drop unused file.
12853         (Depends-on): Drop unused dependency.
12854
12855         passfd: allow compilation on mingw
12856         * modules/sys_socket (Depends-on): Add sys_uio.
12857         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12858         iovec and a minimal struct msghdr.
12859         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12860         * tests/test-sys_socket.c (main): Enhance test.
12861         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12862         guaranteed to provide what we need.
12863         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12864         * modules/passfd-tests (Depends-on): Add sys_wait.
12865         * tests/test-passfd.c (main): Skip test on mingw, for now.
12866         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12867         partial 'struct msghdr' implementation.
12868
12869         sys_uio: new module
12870         * modules/sys_uio: New module.
12871         * modules/sys_uio-tests: Likewise.
12872         * lib/sys_uio.in.h: New file.
12873         * m4/sys_uio_h.m4: Likewise.
12874         * tests/test-sys_uio.c: Likewise.
12875         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12876         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12877
12878 2011-04-20  Jim Meyering  <meyering@redhat.com>
12879
12880         useless-if-before-free: avoid false-positive
12881         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12882         disjunct so that it too requires a terminating ";".  Without that,
12883         this script would identify as useless one statement from gcc that
12884         was not:
12885           if (aligned_ptr)
12886             free (((void **) aligned_ptr) [-1]);
12887
12888 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12889
12890         doc: update users.txt.
12891         * users.txt: Add barcode.
12892
12893 2011-04-19  Bruno Haible  <bruno@clisp.org>
12894
12895         ioctl: Remove link dependency on native Windows.
12896         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12897         (gl_close_fn, gl_ioctl_fn): New types.
12898         (struct fd_hook): Renamed from struct close_hook. Change type of
12899         private_close_fn field. Add private_ioctl_fn field.
12900         (close_hook_fn): Add parameter for primary close method.
12901         (execute_close_hooks, execute_all_close_hooks): Likewise.
12902         (ioctl_hook_fn): New type.
12903         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12904         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12905         argument.
12906         (unregister_fd_hook): Renamed from unregister_close_hook.
12907         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12908         Don't include <unistd.h>.
12909         (close): Remove undef.
12910         (anchor): Update.
12911         (execute_close_hooks): Add argument for primary close method.
12912         (execute_all_close_hooks): Likewise.
12913         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12914         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12915         argument. Allow each argument to be NULL.
12916         (unregister_fd_hook): Renamed from unregister_close_hook.
12917         * lib/close.c (rpl_close): Pass 'close' function pointer to
12918         execute_all_close_hooks.
12919         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12920         (primary_ioctl): New function.
12921         (ioctl): Don't call ioctlsocket here. Instead, call
12922         execute_all_ioctl_hooks.
12923         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12924         close method.
12925         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12926         (fd_sockets_hook): Renamed from close_sockets_hook.
12927         (gl_sockets_startup, gl_sockets_cleanup): Update.
12928         * modules/fd-hook: Renamed from modules/close-hook. Update.
12929         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12930         * modules/sockets (Depends-on): Likewise.
12931         * modules/ioctl (Depends-on): Add fd-hook.
12932         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12933         GNULIB_SOCKET.
12934
12935 2011-04-19  Bruno Haible  <bruno@clisp.org>
12936
12937         Move the support of O_NONBLOCK in open() to the 'open' module.
12938         * modules/nonblocking (Depends-on): Remove 'open'.
12939         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12940         gl_cv_have_open_O_NONBLOCK.
12941         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12942         O_NONBLOCK support.
12943         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12944
12945 2011-04-17  Bruno Haible  <bruno@clisp.org>
12946
12947         pipe2: Simplify code.
12948         * lib/pipe2.c (pipe2): Reduce code duplication.
12949
12950 2011-04-17  Bruno Haible  <bruno@clisp.org>
12951
12952         nonblocking: Add comment.
12953         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12954
12955 2011-04-17  Bruno Haible  <bruno@clisp.org>
12956
12957         nonblocking: Add tests for sockets.
12958         * tests/test-nonblocking-socket.sh: New file.
12959         * tests/test-nonblocking-socket-main.c: New file.
12960         * tests/test-nonblocking-socket-child.c: New file.
12961         * tests/test-nonblocking-socket.h: New file.
12962         * tests/socket-server.h: New file.
12963         * tests/socket-client.h: New file.
12964         * modules/nonblocking-socket-tests: New file.
12965         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12966
12967 2011-04-17  Bruno Haible  <bruno@clisp.org>
12968
12969         nonblocking: Add tests for pipes.
12970         * tests/test-nonblocking-pipe.sh: New file.
12971         * tests/test-nonblocking-pipe-main.c: New file.
12972         * tests/test-nonblocking-pipe-child.c: New file.
12973         * tests/test-nonblocking-pipe.h: New file.
12974         * tests/test-nonblocking-writer.h: New file.
12975         * tests/test-nonblocking-reader.h: New file.
12976         * tests/test-nonblocking-misc.h: New file.
12977         * modules/nonblocking-pipe-tests: New file.
12978         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12979
12980 2011-04-16  Bruno Haible  <bruno@clisp.org>
12981
12982         gettext: Clarify the needed programmer actions.
12983         * modules/gettext (Notice): New field.
12984         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12985
12986 2011-04-16  Bruno Haible  <bruno@clisp.org>
12987
12988         strchrnul: Tweak last commit.
12989         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12990         bug.
12991         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12992         as in _GL_FUNCDECL_SYS.
12993         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12994         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12995
12996 2011-04-15  Eric Blake  <eblake@redhat.com>
12997
12998         strchrnul: work around cygwin bug
12999         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
13000         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
13001         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
13002         * modules/string (Makefile.am): Substitute it.
13003         * lib/string.in.h (strchrnul): Use it.
13004
13005 2011-04-15  Bruno Haible  <bruno@clisp.org>
13006
13007         Don't require lib/stdio-write.c when only module 'stdio' is used.
13008         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
13009         invocation.
13010         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
13011
13012 2011-04-14  Bruno Haible  <bruno@clisp.org>
13013
13014         Support non-blocking pipe I/O in read() on native Windows.
13015         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
13016         (read): New declaration.
13017         * lib/read.c: New file.
13018         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
13019         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
13020         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
13021         vscanf): New declarations.
13022         * lib/stdio-read.c: New file.
13023         * m4/read.m4: New file.
13024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
13025         REPLACE_READ.
13026         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
13027         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13028         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
13029         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
13030         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
13031         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13032         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13033         * modules/read: New file.
13034         * modules/nonblocking (Files): Add lib/stdio-read.c.
13035         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
13036         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
13037         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13038         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13039         * modules/pread (Depends-on): Add read.
13040         * modules/safe-read (Depends-on): Likewise.
13041         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
13042         gets, scanf, vfscanf, vscanf): Verify signatures.
13043         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
13044         problem with non-blocking pipes.
13045         * doc/posix-functions/fgetc.texi: Likewise.
13046         * doc/posix-functions/fgets.texi: Likewise.
13047         * doc/posix-functions/fread.texi: Likewise.
13048         * doc/posix-functions/fscanf.texi: Likewise.
13049         * doc/posix-functions/getc.texi: Likewise.
13050         * doc/posix-functions/getchar.texi: Likewise.
13051         * doc/posix-functions/gets.texi: Likewise.
13052         * doc/posix-functions/scanf.texi: Likewise.
13053         * doc/posix-functions/vfscanf.texi: Likewise.
13054         * doc/posix-functions/vscanf.texi: Likewise.
13055
13056 2011-04-14  Bruno Haible  <bruno@clisp.org>
13057
13058         Support non-blocking pipe I/O in write() on native Windows.
13059         * lib/write.c (rpl_write): Split a write request that failed merely
13060         because the byte count was larger than the pipe buffer's size.
13061         * doc/posix-functions/write.texi: Mention the problem with large byte
13062         counts.
13063
13064 2011-04-14  Bruno Haible  <bruno@clisp.org>
13065
13066         wchar: Ensure that wchar_t gets defined on uClibc.
13067         * lib/wchar.in.h: On uClibc, include <stddef.h>.
13068         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
13069
13070 2011-04-13  Bruno Haible  <bruno@clisp.org>
13071
13072         safe-write, full-read: Avoid unnecessary compilation units.
13073         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
13074         (Depends-on): Remove safe-read. Add ssize_t.
13075         * modules/full-read (Files): Add lib/full-write.c.
13076         (Depends-on): Add full-write.
13077
13078 2011-04-13  Bruno Haible  <bruno@clisp.org>
13079
13080         Support non-blocking pipe I/O and SIGPIPE in pwrite().
13081         * modules/pwrite (Depends-on): Add 'write'.
13082
13083 2011-04-13  Bruno Haible  <bruno@clisp.org>
13084
13085         Support non-blocking pipe I/O in write() on native Windows.
13086         * lib/unistd.in.h (write): Enable replacement also if
13087         GNULIB_UNISTD_H_NONBLOCKING is 1.
13088         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
13089         (rpl_write): When failing to write on a non-blocking pipe, change
13090         errno from ENOSPC to EAGAIN.
13091         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
13092         putchar, puts, vfprintf, vprintf): Enable replacement also if
13093         GNULIB_STDIO_H_NONBLOCKING is 1.
13094         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
13095         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
13096         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
13097         CALL_WITH_SIGPIPE_EMULATION.
13098         (CALL_WITH_SIGPIPE_EMULATION): Use them.
13099         * m4/nonblocking.m4: New file.
13100         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
13101         for non-blocking I/O support.
13102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13103         GNULIB_UNISTD_H_NONBLOCKING.
13104         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
13105         required for non-blocking I/O support.
13106         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
13107         * modules/nonblocking (Files): Add m4/nonblocking.m4,
13108         lib/stdio-write.c, m4/asm-underscore.m4.
13109         (Depends-on): Add stdio, unistd.
13110         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
13111         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
13112         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
13113         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
13114         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
13115         problem with non-blocking pipes.
13116         * doc/posix-functions/fputc.texi: Likewise.
13117         * doc/posix-functions/fputs.texi: Likewise.
13118         * doc/posix-functions/fwrite.texi: Likewise.
13119         * doc/posix-functions/printf.texi: Likewise.
13120         * doc/posix-functions/putc.texi: Likewise.
13121         * doc/posix-functions/putchar.texi: Likewise.
13122         * doc/posix-functions/puts.texi: Likewise.
13123         * doc/posix-functions/vfprintf.texi: Likewise.
13124         * doc/posix-functions/vprintf.texi: Likewise.
13125         * doc/posix-functions/write.texi: Likewise.
13126
13127 2011-04-10  Jim Meyering  <meyering@redhat.com>
13128
13129         maint.mk: prohibit doubled words
13130         Detect them also when they're separated by a newline.
13131         There are 3 ways to customize it:
13132           - disable the test on a per file basis, as usual with rules using
13133             $(VC_LIST_EXCEPT)
13134           - replace the default doubled-word-selecting regexp (affects all files)
13135           - ignore a particular file-vs-doubled-word match
13136         I nearly used that last one to ignore the "is is" match in
13137         coreutils' NEWS file, since the text was "ls -is is ..."
13138         To do that, I would have added this line to cfg.mk:
13139           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
13140         but it would have ignored any "is is" match in NEWS.
13141         Low probability, but still...
13142         Instead, I changed the text, slightly:
13143           -  ls -is is now consistent with ls -lis in ignoring values returned
13144           +  "ls -is" is now consistent with ls -lis in ignoring values returned
13145         * top/maint.mk (prohibit_double_word_RE_): Provide default.
13146         (prohibit_doubled_word_): Define.
13147         (sc_prohibit_doubled_word): New rule.
13148         (sc_prohibit_the_the): Remove.  Subsumed by the above.
13149
13150 2011-04-10  Jim Meyering  <meyering@redhat.com>
13151
13152         maint: fix doubled-word typo in comment
13153         * m4/gethostname.m4: s/is is/it is/
13154         * m4/getdomainname.m4: Likewise.
13155
13156 2011-04-10  Jim Meyering  <meyering@redhat.com>
13157
13158         maint: remove doubled word: s/it it/it/
13159         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
13160
13161 2011-04-10  Jim Meyering  <meyering@redhat.com>
13162
13163         maint.mk: remove useless semicolon and backslash
13164         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
13165         semicolon and backslash.
13166
13167 2011-04-10  Bruno Haible  <bruno@clisp.org>
13168
13169         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
13170         * modules/stdint-tests (Depends-on): Add wchar.
13171
13172 2011-04-10  Jim Meyering  <meyering@redhat.com>
13173
13174         maint: remove doubled words in comments, e.g., s/a a/a/
13175         * lib/strptime.c (day_of_the_week): s/the the/the/
13176         * tests/test-chown.h (test_chown): s/a a/a/
13177
13178         test-chown.h: correct a cast
13179         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
13180         when the destination is a stat.st_gid.
13181
13182 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
13183
13184         getaddrinfo: Fix test for sa_len member.
13185         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
13186         include <sys/types.h> before <sys/socket.h>.
13187
13188 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13189
13190         maint: change "can not" to "cannot"
13191         * doc/posix-functions/iconv.texi (iconv): This one crossed line
13192         boundaries.
13193
13194 2011-04-09  Jim Meyering  <meyering@redhat.com>
13195
13196         maint: change "a a" to "a"
13197         * tests/test-lchown.h (test_lchown): s/a a/a/
13198
13199         maint.mk: prohibit \<the the\>
13200         * top/maint.mk (sc_prohibit_the_the): New rule.
13201
13202         maint: fix "the the" in comment
13203         * lib/count-one-bits.h: s/the the/the/
13204
13205         maint: change "can not" to "cannot"
13206         But do not change the occurrences in maintain.texi or in
13207         build-aux/po/Makefile.in.in, which I presume comes from gettext.
13208         * doc/gnulib-tool.texi: s/can not/cannot/
13209         * doc/posix-functions/accept.texi (accept): Likewise.
13210         * doc/posix-functions/socket.texi (socket): Likewise.
13211         * lib/mbrtowc.c: Likewise.
13212
13213         maint.mk: prohibit use of "can not"
13214         * top/maint.mk (sc_prohibit_can_not): New rule.
13215         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
13216
13217 2011-04-09  Bruno Haible  <bruno@clisp.org>
13218
13219         careadlinkat: Guard against misuse of careadlinkatcwd.
13220         * lib/careadlinkat.c: Include <stdlib.h>.
13221         (careadlinkatcwd): Check that the fd argument is as expected.
13222
13223 2011-04-09  Bruno Haible  <bruno@clisp.org>
13224
13225         careadlinkat: Use common coding style.
13226         * lib/careadlinkat.c: Move gnulib includes after system includes.
13227
13228 2011-04-09  Bruno Haible  <bruno@clisp.org>
13229
13230         careadlinkat: Clarify specification.
13231         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
13232         (careadlinkatcwd): Add comment.
13233         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
13234
13235 2011-04-09  Bruno Haible  <bruno@clisp.org>
13236
13237         areadlinkat: Avoid link error on many platforms.
13238         * modules/areadlinkat (Depends-on): Add areadlink.
13239
13240 2011-04-09  Bruno Haible  <bruno@clisp.org>
13241
13242         allocator, careadlinkat: Fix double-inclusion guard.
13243         * lib/allocator.h: Fix double-inclusion guard.
13244         * lib/careadlinkat.h: Likewise.
13245
13246 2011-04-09  Bruno Haible  <bruno@clisp.org>
13247
13248         relocatable-prog-wrapper: Update after module 'areadlink' changed.
13249         * lib/relocwrapper.c: Update dependencies hierarchy.
13250         * build-aux/install-reloc: Update list of files to be compiled.
13251         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
13252         lib/allocator.[hc].
13253
13254 2011-04-08  Eric Blake  <eblake@redhat.com>
13255
13256         strftime: silence gnulib-tool warning
13257         * modules/strftime-tests (Depends-on): Drop automatic dependency.
13258
13259 2011-04-08  Bruno Haible  <bruno@clisp.org>
13260
13261         verify: Fix syntax error with GCC 4.6 in C++ mode.
13262         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
13263         (HAVE_STATIC_ASSERT): New macro.
13264         (verify_true, verify): Use 'static_assert' if it is supported and
13265         '_Static_assert' is not supported.
13266
13267 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13268
13269         allocator: New module.
13270         * modules/allocator, lib/allocator.c: New files.
13271         * lib/allocator.h (stdlib_allocator): New decl.
13272         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
13273         Remove.  Do not include <stdlib.h>.
13274         (careadlinkat): Use stdlib_allocator instead of rolling our own.
13275         * modules/careadlinkat (Files): Remove lib/allocator.h.
13276         (Depends-on): Add allocator.
13277
13278         stdlib: let modules use system malloc, realloc
13279         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
13280         if !_GL_USE_STDLIB_ALLOC.
13281         (malloc, realloc): Limit this change to a smaller scope.
13282
13283         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
13284         (malloc, realloc): Don't #undef; no longer needed.
13285         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13286         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13287         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13288         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13289         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13290         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13291         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13292         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13293
13294         careadlinkat: rename members to avoid problem
13295         * lib/allocator.h (struct allocator): Rename members from
13296         malloc/realloc to allocate/reallocate, to avoid problems if malloc
13297         and realloc are #define'd.  Reported by Eric Blake in
13298         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
13299         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
13300
13301 2011-04-08  Eric Blake  <eblake@redhat.com>
13302
13303         nonblocking: reduce dependency
13304         * tests/test-nonblocking.c: Only test sockets when in use.
13305         * modules/nonblocking-tests (Depends-on): Drop socket.
13306         (Makefile.am): Link even if sockets are not present.
13307         * modules/pipe2-tests (Makefile.am): Likewise.
13308         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
13309
13310         pipe2: fix O_NONBLOCK support on mingw
13311         * modules/pipe2 (Depends-on): Add nonblocking.
13312         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
13313         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
13314         * tests/test-nonblocking.c (main): Likewise.
13315         * modules/pipe2-tests (Makefile.am): Avoid link failure.
13316
13317         fcntl-h: fix O_ACCMODE on cygwin
13318         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
13319         * lib/fcntl.in.h (O_ACCMODE): Fix it.
13320
13321         pipe-filter: drop O_NONBLOCK workarounds
13322         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
13323         * modules/pipe-filter-ii (Depends-on): Likewise.
13324         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
13325
13326         nonblocking: provide O_NONBLOCK for mingw
13327         * modules/nonblocking (Depends-on): Add open.
13328         (configure.ac): Set new witness macro.
13329         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
13330         * modules/fcntl-h (Makefile.am): Substitute it.
13331         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
13332         nonblocking module is in use.
13333         * lib/nonblocking.c: Adjust portability test.
13334         * lib/open.c (open): Don't let native open see gnulib flag.
13335         * tests/test-fcntl-h.c (main): Enhance test.
13336         * tests/test-open.h (test_open): Likewise.
13337         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
13338
13339         careadlinkat: fix compilation error on mingw
13340         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
13341         within struct allocator.
13342
13343 2011-04-06  Eric Blake  <eblake@redhat.com>
13344
13345         binary-io: relicense under LGPLv2+
13346         * modules/binary-io (License): Relax to LGPLv2+.
13347         Requested for libvirt, and required by pipe2.
13348
13349 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
13350
13351         verify: use _Static_assert if available
13352         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
13353         (verify_true, verify): Use it if available.  This generates better
13354         diagnostics with GCC 4.6.0 and later.
13355
13356 2011-04-05  Bruno Haible  <bruno@clisp.org>
13357
13358         Remove leftover generated .h files after config.status changed.
13359
13360         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
13361         GL_GENERATE_ALLOCA_H.
13362         * modules/alloca-opt (Makefile.am): Remove alloca.h if
13363         GL_GENERATE_ALLOCA_H evaluates to false.
13364
13365         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
13366         GL_GENERATE_ARGZ_H.
13367         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
13368         evaluates to false.
13369
13370         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
13371         GL_GENERATE_BYTESWAP_H.
13372         * modules/byteswap (Makefile.am): Remove byteswap.h if
13373         GL_GENERATE_BYTESWAP_H evaluates to false.
13374
13375         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
13376         GL_GENERATE_ERRNO_H.
13377         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
13378         evaluates to false.
13379
13380         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
13381         GL_GENERATE_FLOAT_H.
13382         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
13383         evaluates to false.
13384
13385         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
13386         GL_GENERATE_FNMATCH_H.
13387         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
13388         GL_GENERATE_FNMATCH_H evaluates to false.
13389
13390         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
13391         GL_GENERATE_GLOB_H.
13392         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
13393         evaluates to false.
13394
13395         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
13396         automake conditional GL_GENERATE_ICONV_H.
13397         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
13398         evaluates to false.
13399
13400         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
13401         GL_GENERATE_NETINET_IN_H.
13402         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
13403         GL_GENERATE_NETINET_IN_H evaluates to false.
13404
13405         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
13406         conditional GL_GENERATE_PTHREAD_H.
13407         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
13408         * modules/pthread (Makefile.am): Remove pthread.h if
13409         GL_GENERATE_PTHREAD_H evaluates to false.
13410
13411         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
13412         GL_GENERATE_SCHED_H.
13413         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
13414         evaluates to false.
13415
13416         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
13417         conditional GL_GENERATE_SELINUX_CONTEXT_H.
13418         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
13419         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
13420
13421         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
13422         GL_GENERATE_STDARG_H.
13423         * modules/stdarg (Makefile.am): Remove stdarg.h if
13424         GL_GENERATE_STDARG_H evaluates to false.
13425
13426         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
13427         GL_GENERATE_STDBOOL_H.
13428         * modules/stdbool (Makefile.am): Remove stdbool.h if
13429         GL_GENERATE_STDBOOL_H evaluates to false.
13430
13431         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
13432         conditional GL_GENERATE_STDDEF_H.
13433         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
13434         * modules/stddef (Makefile.am): Remove stddef.h if
13435         GL_GENERATE_STDDEF_H evaluates to false.
13436
13437         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
13438         GL_GENERATE_STDINT_H.
13439         * modules/stdint (Makefile.am): Remove stdint.h if
13440         GL_GENERATE_STDINT_H evaluates to false.
13441
13442         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
13443         GL_GENERATE_SYSEXITS_H.
13444         * modules/sysexits (Makefile.am): Remove sysexits.h if
13445         GL_GENERATE_SYSEXITS_H evaluates to false.
13446
13447         Reported by Karl Berry and Ralf Wildenhues.
13448
13449 2011-04-05  Bruno Haible  <bruno@clisp.org>
13450
13451         Ensure to rebuild generated .h files when config.status has changed.
13452         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
13453         config.status.
13454         * modules/ctype (Makefile.am): Likewise.
13455         * modules/dirent (Makefile.am): Likewise.
13456         * modules/errno (Makefile.am): Likewise.
13457         * modules/fcntl-h (Makefile.am): Likewise.
13458         * modules/float (Makefile.am): Likewise.
13459         * modules/getopt-posix (Makefile.am): Likewise.
13460         * modules/glob (Makefile.am): Likewise.
13461         * modules/iconv-h (Makefile.am): Likewise.
13462         * modules/inttypes (Makefile.am): Likewise.
13463         * modules/langinfo (Makefile.am): Likewise.
13464         * modules/locale (Makefile.am): Likewise.
13465         * modules/math (Makefile.am): Likewise.
13466         * modules/netdb (Makefile.am): Likewise.
13467         * modules/netinet_in (Makefile.am): Likewise.
13468         * modules/poll-h (Makefile.am): Likewise.
13469         * modules/pthread (Makefile.am): Likewise.
13470         * modules/pty (Makefile.am): Likewise.
13471         * modules/sched (Makefile.am): Likewise.
13472         * modules/search (Makefile.am): Likewise.
13473         * modules/selinux-h (Makefile.am): Likewise.
13474         * modules/signal (Makefile.am): Likewise.
13475         * modules/spawn (Makefile.am): Likewise.
13476         * modules/stdarg (Makefile.am): Likewise.
13477         * modules/stdbool (Makefile.am): Likewise.
13478         * modules/stddef (Makefile.am): Likewise.
13479         * modules/stdint (Makefile.am): Likewise.
13480         * modules/stdio (Makefile.am): Likewise.
13481         * modules/stdlib (Makefile.am): Likewise.
13482         * modules/string (Makefile.am): Likewise.
13483         * modules/strings (Makefile.am): Likewise.
13484         * modules/sys_file (Makefile.am): Likewise.
13485         * modules/sys_ioctl (Makefile.am): Likewise.
13486         * modules/sys_select (Makefile.am): Likewise.
13487         * modules/sys_socket (Makefile.am): Likewise.
13488         * modules/sys_stat (Makefile.am): Likewise.
13489         * modules/sys_time (Makefile.am): Likewise.
13490         * modules/sys_times (Makefile.am): Likewise.
13491         * modules/sys_utsname (Makefile.am): Likewise.
13492         * modules/sys_wait (Makefile.am): Likewise.
13493         * modules/sysexits (Makefile.am): Likewise.
13494         * modules/termios (Makefile.am): Likewise.
13495         * modules/time (Makefile.am): Likewise.
13496         * modules/unistd (Makefile.am): Likewise.
13497         * modules/wchar (Makefile.am): Likewise.
13498         * modules/wctype-h (Makefile.am): Likewise.
13499         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
13500
13501 2011-04-05  Bruno Haible  <bruno@clisp.org>
13502
13503         pipe2: Relicense under LGPLv2+.
13504         * modules/pipe2 (License): Change to LGPLv2+.
13505         Requested by Eric Blake, for libvirt.
13506
13507 2011-04-05  Bruce Korb  <bkorb@gnu.org>
13508
13509         bootstrap: compute gnulib_extra_files after updating build_aux
13510         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
13511         change build_aux or also supply gnulib_extra_files.  Handle correctly.
13512
13513 2011-04-05  Eric Blake  <eblake@redhat.com>
13514
13515         bootstrap: preserve git whitelist item sorting
13516         * build-aux/bootstrap (sort_patterns): New function.
13517         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
13518
13519 2011-04-05  Simon Josefsson  <simon@josefsson.org>
13520
13521         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
13522         sc_space_tab check.
13523
13524 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13525
13526         areadlink, areadlinkat: rewrite in terms of careadlinkat
13527         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
13528         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
13529         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
13530         (malloc, realloc): Remove #undefs.
13531         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
13532         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
13533         readlink, ssize_t, stdint, unistd.
13534         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
13535         areadlink, stdint.
13536
13537         careadlinkat: new module
13538         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
13539         * modules/careadlinkat: New files, written by me with
13540         a review and feedback from Ben Pfaff in
13541         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
13542
13543 2011-04-01  Bruno Haible  <bruno@clisp.org>
13544
13545         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
13546         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
13547         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
13548         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
13549         Reported by Bruce Korb <bruce.korb@gmail.com>.
13550
13551 2011-04-01  Bruno Haible  <bruno@clisp.org>
13552
13553         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
13554         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
13555         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
13556         * modules/wcpcpy (Depends-on): Add extensions.
13557         * modules/wcpncpy (Depends-on): Likewise.
13558         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
13559         systems.
13560         * doc/posix-functions/wcpncpy.texi: Likewise.
13561         * doc/posix-functions/wcwidth.texi: Likewise.
13562
13563 2011-03-31  Eric Blake  <eblake@redhat.com>
13564
13565         nonblocking: fix mingw test failures
13566         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
13567         non-blocking flag on regular file.
13568         (get_nonblocking_flag): Set errno on invalid fd.
13569         * tests/test-nonblocking.c (main): Avoid test failure on
13570         directories if fchdir is not active.
13571         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
13572
13573 2011-03-31  Bruno Haible  <bruno@clisp.org>
13574
13575         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
13576         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
13577         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
13578         Reported by Simon Josefsson <simon@josefsson.org>.
13579
13580 2011-03-31  Bruno Haible  <bruno@clisp.org>
13581         and Eric Blake  <eblake@redhat.com>
13582
13583         nonblocking: new module
13584         * modules/nonblocking: New module.
13585         * modules/nonblocking-tests: Likewise.
13586         * lib/nonblocking.h: New file.
13587         * lib/nonblocking.c: Likewise.
13588         * tests/test-nonblocking.c: New test.
13589         * lib/ioctl.c (ioctl) [mingw]: Update comment.
13590
13591 2011-03-30  Bruno Haible  <bruno@clisp.org>
13592
13593         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
13594         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
13595         instead of 'printf' format for GCC >= 4.4.
13596         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
13597         (fprintf, printf, vfprintf, vprintf): Declare with
13598         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
13599         the system's vfprintf() function.
13600         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
13601
13602 2011-03-30  Eric Blake  <eblake@redhat.com>
13603
13604         passfd: fix scoping bug
13605         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
13606         before sendmsg/recvmsg.
13607
13608         passfd: standardize coding conventions
13609         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
13610         can be learned at compile time.
13611         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
13612         ifdefs.
13613         (sendfd, recvfd): Follow gnulib code conventions.
13614
13615         passfd: fix incorrect sendmsg arguments
13616         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
13617         incorrect msg_controllen value.
13618         * modules/passfd-tests (Depends-on): Check for alarm.
13619         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
13620         Reported by Bastien ROUCARIES.
13621
13622 2011-03-30  Bruno Haible  <bruno@clisp.org>
13623
13624         c-strcasestr: Relicense under LGPLv2+.
13625         * modules/c-strcasestr (License): Change to LGPLv2+.
13626         Requested by Eric Blake, for libvirt.
13627
13628 2011-03-30  Simon Josefsson  <simon@josefsson.org>
13629
13630         * users.txt: Add libidn2.  Fix libtasn1 link.
13631
13632 2011-03-30  Jim Meyering  <meyering@redhat.com>
13633
13634         tests: readlink* ("",... fails with EINVAL on newer kernels
13635         readlink and readlinkat have typically failed with ENOENT for
13636         the invalid, empty file name,  "".  However, with the advent
13637         of linux-2.6.39, they fail with EINVAL.
13638         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
13639         when operating on the empty file name.
13640         * tests/test-readlink.h (test_readlink): Likewise.
13641
13642 2011-03-29  Bruno Haible  <bruno@clisp.org>
13643
13644         Relicense some modules under LGPLv2+, for libidn2.
13645         * modules/array-mergesort (License): Change to LGPLv2+.
13646         * modules/c-strcaseeq (License): Likewise.
13647         * modules/striconveh (License): Likewise.
13648         * modules/striconveha (License): Likewise.
13649         * modules/uniconv/base (License): Likewise.
13650         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13651         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13652         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13653         * modules/unictype/base (License): Likewise.
13654         * modules/unictype/bidiclass-of (License): Likewise.
13655         * modules/unictype/category-M (License): Likewise.
13656         * modules/unictype/category-none (License): Likewise.
13657         * modules/unictype/category-of (License): Likewise.
13658         * modules/unictype/category-test (License): Likewise.
13659         * modules/unictype/category-test-withtable (License): Likewise.
13660         * modules/unictype/combining-class (License): Likewise.
13661         * modules/unictype/joiningtype-of (License): Likewise.
13662         * modules/unictype/scripts (License): Likewise.
13663         * modules/uninorm/base (License): Likewise.
13664         * modules/uninorm/canonical-decomposition (License): Likewise.
13665         * modules/uninorm/composition (License): Likewise.
13666         * modules/uninorm/decompose-internal (License): Likewise.
13667         * modules/uninorm/decomposition-table (License): Likewise.
13668         * modules/uninorm/nfc (License): Likewise.
13669         * modules/uninorm/nfd (License): Likewise.
13670         * modules/uninorm/u32-normalize (License): Likewise.
13671         * modules/unistr/base (License): Likewise.
13672         * modules/unistr/u32-cpy (License): Likewise.
13673         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13674         * modules/unistr/u32-to-u8 (License): Likewise.
13675         * modules/unistr/u32-uctomb (License): Likewise.
13676         * modules/unistr/u8-check (License): Likewise.
13677         * modules/unistr/u8-mblen (License): Likewise.
13678         * modules/unistr/u8-mbtouc (License): Likewise.
13679         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13680         * modules/unistr/u8-mbtoucr (License): Likewise.
13681         * modules/unistr/u8-prev (License): Likewise.
13682         * modules/unistr/u8-strlen (License): Likewise.
13683         * modules/unistr/u8-to-u32 (License): Likewise.
13684         * modules/unistr/u8-uctomb (License): Likewise.
13685         * modules/unitypes (License): Likewise.
13686         Requested by Simon Josefsson.
13687
13688 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13689
13690         lib-symbol-visibility: Add a notice.
13691         * modules/lib-symbol-visibility (Notice): New field.
13692
13693 2011-03-29  Bruno Haible  <bruno@clisp.org>
13694
13695         getaddrinfo: Doc fix.
13696         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
13697         section "fixed in Gnulib".
13698
13699 2011-03-28  Simon Josefsson  <simon@josefsson.org>
13700
13701         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
13702         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
13703
13704 2011-03-26  Bruno Haible  <bruno@clisp.org>
13705
13706         unictype/property-byname: Reduce the number of load-time relocations.
13707         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13708         (UC_PROPERTY_INDEX_*): New enumeration values.
13709         (uc_property_byname): Convert an index from the lookup table to an
13710         uc_property_t.
13711         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13712         values.
13713
13714 2011-03-26  Bruno Haible  <bruno@clisp.org>
13715
13716         unictype/property-byname: Allow omitted word separators and aliases.
13717         * lib/unictype/pr_byname.gperf: Add property names without word
13718         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13719         for 'space'.
13720
13721 2011-03-26  Bruno Haible  <bruno@clisp.org>
13722
13723         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13724         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13725         also hyphens to space.
13726         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13727         without spaces.
13728         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13729
13730 2011-03-26  Bruno Haible  <bruno@clisp.org>
13731
13732         unictype/joiningtype-byname: Recognize long names as well.
13733         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13734         a long name.
13735         * lib/unictype/joiningtype_byname.c: Include <string.h>,
13736         unictype/joiningtype_byname.h.
13737         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
13738         * lib/unictype/joiningtype_byname.gperf: New file.
13739         * modules/unictype/joiningtype-byname (Files): Add
13740         lib/unictype/joiningtype_byname.gperf.
13741         (Depends-on): Add gperf.
13742         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
13743         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
13744         long names.
13745
13746         Tests for module 'unictype/joiningtype-longname'.
13747         * modules/unictype/joiningtype-longname-tests: New file.
13748         * tests/unictype/test-joiningtype_longname.c: New file.
13749
13750         New module 'unictype/joiningtype-longname'.
13751         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
13752         * lib/unictype/joiningtype_longname.c: New file.
13753         * modules/unictype/joiningtype-longname: New file.
13754         * modules/unictype/joiningtype-all (Depends-on): Add
13755         unictype/joiningtype-longname.
13756
13757 2011-03-26  Bruno Haible  <bruno@clisp.org>
13758
13759         unictype/bidiclass-byname: Recognize long names as well.
13760         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13761         name.
13762         * lib/unictype/bidi_byname.c: Include <string.h>,
13763         unictype/bidi_byname.h.
13764         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13765         * lib/unictype/bidi_byname.gperf: New file.
13766         * modules/unictype/bidiclass-byname (Files): Add
13767         lib/unictype/bidi_byname.gperf.
13768         (Depends-on): Add gperf.
13769         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13770         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13771         long names.
13772
13773         Tests for module 'unictype/bidiclass-longname'.
13774         * modules/unictype/bidiclass-longname-tests: New file.
13775         * tests/unictype/test-bidi_longname.c: New file.
13776
13777         New module 'unictype/bidiclass-longname'.
13778         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13779         * lib/unictype/bidi_longname.c: New file.
13780         * modules/unictype/bidiclass-longname: New file.
13781         * modules/unictype/bidiclass-all (Depends-on): Add
13782         unictype/bidiclass-longname.
13783
13784 2011-03-26  Bruno Haible  <bruno@clisp.org>
13785
13786         unictype/bidi*: Rename modules.
13787         * modules/unictype/bidiclass-all: Renamed from
13788         modules/unictype/bidicategory-all.
13789         * modules/unictype/bidiclass-name: Renamed from
13790         modules/unictype/bidiclass-name.
13791         (Description): Update.
13792         * modules/unictype/bidiclass-name-tests: Renamed from
13793         modules/unictype/bidicategory-name-tests.
13794         * modules/unictype/bidiclass-byname: Renamed from
13795         modules/unictype/bidicategory-byname.
13796         (Description): Update.
13797         * modules/unictype/bidiclass-byname-tests: Renamed from
13798         modules/unictype/bidicategory-byname-tests.
13799         * modules/unictype/bidiclass-of: Renamed from
13800         modules/unictype/bidicategory-of.
13801         (Description): Update.
13802         * modules/unictype/bidiclass-of-tests: Renamed from
13803         modules/unictype/bidicategory-of-tests.
13804         * modules/unictype/bidiclass-test: Renamed from
13805         modules/unictype/bidicategory-test.
13806         (Description): Update.
13807         * modules/unictype/bidiclass-test-tests: Renamed from
13808         modules/unictype/bidicategory-test-tests.
13809         * modules/unictype/bidicategory-all: New file, a simple redirection.
13810         * modules/unictype/bidicategory-name: Likewise.
13811         * modules/unictype/bidicategory-byname: Likewise.
13812         * modules/unictype/bidicategory-of: Likewise.
13813         * modules/unictype/bidicategory-test: Likewise.
13814         * modules/unictype/property-bidi-* (Dependencies): Update.
13815         * lib/unictype/bidi_*.c: Update comment.
13816
13817 2011-03-26  Bruno Haible  <bruno@clisp.org>
13818
13819         unictype/bidi*: Rename functions, part 2.
13820         * modules/unictype/bidicategory-name (configure.ac): Update required
13821         libunistring version.
13822         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13823
13824 2011-03-25  Bruno Haible  <bruno@clisp.org>
13825
13826         New module 'unictype/combining-class-all'.
13827         * modules/unictype/combining-class-all: New file.
13828
13829         Tests for module 'unictype/combining-class-byname'.
13830         * modules/unictype/combining-class-byname-tests: New file.
13831         * tests/unictype/test-combiningclass_byname.c: New file.
13832
13833         New module 'unictype/combining-class-byname'.
13834         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13835         * lib/unictype/combiningclass_byname.c: New file.
13836         * lib/unictype/combiningclass_byname.gperf: New file.
13837         * modules/unictype/combining-class-byname: New file.
13838
13839         Tests for module 'unictype/combining-class-longname'.
13840         * modules/unictype/combining-class-longname-tests: New file.
13841         * tests/unictype/test-combiningclass_longname.c: New file.
13842
13843         New module 'unictype/combining-class-longname'.
13844         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13845         * lib/unictype/combiningclass_longname.c: New file.
13846         * modules/unictype/combining-class-longname: New file.
13847
13848         Tests for module 'unictype/combining-class-name'.
13849         * modules/unictype/combining-class-name-tests: New file.
13850         * tests/unictype/test-combiningclass_name.c: New file.
13851
13852         New module 'unictype/combining-class-name'.
13853         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13854         * lib/unictype/combiningclass_name.c: New file.
13855         * modules/unictype/combining-class-name: New file.
13856
13857 2011-03-25  Bruno Haible  <bruno@clisp.org>
13858
13859         unictype/combining-class: Rename source files.
13860         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13861         of unictype/combining.h.
13862         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13863         Update.
13864         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13865         * modules/unictype/combining-class (Description): Fix.
13866         (Files, Makefile.am): Update.
13867         * tests/unictype/test-combiningclass.c: Renamed from
13868         tests/unictype/test-combining.c.
13869         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13870
13871 2011-03-25  Bruno Haible  <bruno@clisp.org>
13872
13873         unictype: Update list of canonical combining classes.
13874         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13875
13876 2011-03-25  Bruno Haible  <bruno@clisp.org>
13877
13878         unictype/category-byname: Recognize long names as well.
13879         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13880         a long name.
13881         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13882         unictype/categ_byname.h.
13883         (UC_CATEGORY_INDEX_*): New enumeration values.
13884         (uc_general_category_byname): Use uc_general_category_lookup and
13885         convert from index to value.
13886         * lib/unictype/categ_byname.gperf: New file.
13887         * modules/unictype/category-byname (Files): Add
13888         lib/unictype/categ_byname.gperf.
13889         (Depends-on): Add gperf.
13890         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13891         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13892         long names.
13893
13894         Tests for module 'unictype/category-longname'.
13895         * modules/unictype/category-longname-tests: New file.
13896         * tests/unictype/test-categ_longname.c: New file.
13897
13898         New module 'unictype/category-longname'.
13899         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13900         * lib/unictype/categ_longname.c: New file.
13901         * modules/unictype/category-longname: New file.
13902         * modules/unictype/category-all (Depends-on): Add it.
13903
13904 2011-03-25  Bruno Haible  <bruno@clisp.org>
13905
13906         Tests for module 'unictype/category-LC'.
13907         * modules/unictype/category-LC-tests: New file.
13908         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13909
13910         New module 'unictype/category-LC'.
13911         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13912         (UC_CATEGORY_LC): New declaration.
13913         (UC_CASED_LETTER): New macro.
13914         * lib/gen-uni-tables.c (is_category_LC): New function.
13915         (output_categories): Also handle category LC.
13916         (UC_CATEGORY_MASK_LC): New enumeration value.
13917         (general_category_byname): Also handle category LC.
13918         * lib/unictype/categ_LC.c: New file.
13919         * lib/unictype/categ_LC.h: New file, automatically generated.
13920         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13921         category LC.
13922         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13923         * modules/unictype/category-LC: New file.
13924         * modules/unictype/category-byname (Depends-on): Add
13925         unictype/category-LC.
13926         * modules/unictype/category-all (Depends-on): Likewise.
13927
13928 2011-03-25  Eric Blake  <eblake@redhat.com>
13929
13930         xmalloc: revert yesterday's regression
13931         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13932         realloc's underlying behavior (allowing allocation of zero-size
13933         objects, especially if malloc-gnu is also in use).
13934
13935 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13936
13937         maint.mk: add missing version to VC-tag
13938         * top/maint.mk: git tag was missing actual tag name; add it.
13939
13940         valgrind: do leak checking, and exit with code 1 on error (not 0)
13941         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13942         to VALGRIND.
13943
13944 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13945
13946         posix-modules: say what it does.
13947         * posix-modules: Add a line to the --help output saying what it does.
13948
13949 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13950
13951         xmalloc: Do not leak if underlying realloc is C99 compatible.
13952         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13953         This avoids a leak on C99-based systems.  See
13954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13955
13956 2011-03-24  Eric Blake  <eblake@redhat.com>
13957
13958         realloc: document portability problem
13959         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13960         passing 0 size to realloc.
13961
13962 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13963
13964         doc: update users.txt
13965         * users.txt: Add cvsps, tmpwatch
13966
13967 2011-03-23  Matt Rice  <ratmice@gmail.com>
13968
13969         doc: update users.txt
13970         * users.txt: Add gdb.
13971
13972 2011-03-23  Jim Meyering  <meyering@redhat.com>
13973
13974         doc: update users.txt
13975         Looking through matches up to the following URL (there are still
13976         several more pages), I found several projects that use gnulib:
13977         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13978         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13979         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13980
13981 2011-03-22  Bruno Haible  <bruno@clisp.org>
13982
13983         unictype/bidi*: Rename functions.
13984         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13985         uc_bidi_class, uc_is_bidi_class): New declarations.
13986         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13987         uc_bidi_category_byname.
13988         (uc_bidi_category_byname): New function.
13989         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13990         u_bidi_category_name.
13991         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13992         (uc_bidi_category_name): New function.
13993         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13994         uc_bidi_category.
13995         (uc_bidi_category): New function.
13996         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13997         uc_is_bidi_category. Invoke uc_bidi_class.
13998         (uc_is_bidi_category): New function.
13999         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
14000         instead of uc_bidi_category_byname.
14001         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
14002         instead of uc_bidi_category_name.
14003         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
14004         uc_bidi_category.
14005         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
14006         instead of uc_is_bidi_category.
14007
14008 2011-03-21  Bruno Haible  <bruno@clisp.org>
14009
14010         New module 'unictype/joininggroup-all'.
14011         * modules/unictype/joininggroup-all: New file.
14012
14013         Tests for module 'unictype/joininggroup-of'.
14014         * modules/unictype/joininggroup-of-tests: New file.
14015         * tests/unictype/test-joininggroup_of.c: New file.
14016         * tests/unictype/test-joininggroup_of.h: New file, automatically
14017         generated by gen-uni-tables.
14018
14019         New module 'unictype/joininggroup-of'.
14020         * modules/unictype/joininggroup-of: New file.
14021         * lib/unictype/joininggroup_of.c: New file.
14022         * lib/unictype/joininggroup_of.h: New file, automatically generated by
14023         gen-uni-tables.
14024
14025         Tests for module 'unictype/joininggroup-byname'.
14026         * modules/unictype/joininggroup-byname-tests: New file.
14027         * tests/unictype/test-joininggroup_byname.c: New file.
14028
14029         New module 'unictype/joininggroup-byname'.
14030         * modules/unictype/joininggroup-byname: New file.
14031         * lib/unictype/joininggroup_byname.c: New file.
14032         * lib/unictype/joininggroup_byname.gperf: New file.
14033
14034         Tests for module 'unictype/joininggroup-name'.
14035         * modules/unictype/joininggroup-name-tests: New file.
14036         * tests/unictype/test-joininggroup_name.c: New file.
14037
14038         New module 'unictype/joininggroup-name'.
14039         * modules/unictype/joininggroup-name: New file.
14040         * lib/unictype/joininggroup_name.c: New file.
14041         * lib/unictype/joininggroup_name.h: New file.
14042
14043         New module 'unictype/joiningtype-all'.
14044         * modules/unictype/joiningtype-all: New file.
14045
14046         Tests for module 'unictype/joiningtype-of'.
14047         * modules/unictype/joiningtype-of-tests: New file.
14048         * tests/unictype/test-joiningtype_of.c: New file.
14049         * tests/unictype/test-joiningtype_of.h: New file, automatically
14050         generated by gen-uni-tables.
14051
14052         New module 'unictype/joiningtype-of'.
14053         * modules/unictype/joiningtype-of: New file.
14054         * lib/unictype/joiningtype_of.c: New file.
14055         * lib/unictype/joiningtype_of.h: New file, automatically generated by
14056         gen-uni-tables.
14057
14058         Tests for module 'unictype/joiningtype-byname'.
14059         * modules/unictype/joiningtype-byname-tests: New file.
14060         * tests/unictype/test-joiningtype_byname.c: New file.
14061
14062         New module 'unictype/joiningtype-byname'.
14063         * modules/unictype/joiningtype-byname: New file.
14064         * lib/unictype/joiningtype_byname.c: New file.
14065
14066         Tests for module 'unictype/joiningtype-name'.
14067         * modules/unictype/joiningtype-name-tests: New file.
14068         * tests/unictype/test-joiningtype_name.c: New file.
14069
14070         New module 'unictype/joiningtype-name'.
14071         * modules/unictype/joiningtype-name: New file.
14072         * lib/unictype/joiningtype_name.c: New file.
14073
14074         unictype: Add support for Arabic shaping properties.
14075         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
14076         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
14077         declarations.
14078         (UC_JOINING_GROUP_*): New enumeration values.
14079         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
14080         declarations.
14081         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
14082         (unicode_joining_type): New variable.
14083         (UC_JOINING_GROUP_*): New enumeration values.
14084         (unicode_joining_group): New variable.
14085         (fill_arabicshaping, joining_type_as_c_identifier,
14086         output_joining_type_test, output_joining_type,
14087         joining_group_as_c_identifier, output_joining_group_test,
14088         output_joining_group): New functions.
14089         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
14090         fill_arabicshaping and output_joining_type_test, output_joining_type,
14091         output_joining_group_test, output_joining_group.
14092         Reported by Simon Josefsson.
14093
14094 2011-03-21  Jim Meyering  <meyering@redhat.com>
14095
14096         strftime: fix a bug in yesterday's change
14097         * lib/strftime.c (add): Accommodate width's initial value of -1.
14098         Otherwise, nstrftime would copy uninitialized data into
14099         the result buffer.
14100
14101 2011-03-21  Jim Meyering  <meyering@redhat.com>
14102
14103         tests: add strftime-tests module
14104         * tests/test-strftime.c: New file.
14105         * modules/strftime-tests: New module.
14106
14107 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14108
14109         strftime: don't assume a byte count fits in 'int'
14110         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
14111         found this problem by static analysis, using gcc -Wstrict-overflow
14112         (GCC 4.5.2, x86-64).  This reported an optimization that depended
14113         on an integer overflow having undefined behavior, but it turns out
14114         that the argument is a size, which might not fit in 'int' anyway,
14115
14116 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14117
14118         stdio: don't require ignore_value around fwrite
14119
14120         This patch works around libc bug 11959
14121         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
14122         Without this patch, applications must often write
14123         ignore_value (fwrite (...)) even though the ignore_value is
14124         not helpful here.  It's common to write many objects, using
14125         fwrite/printf/etc., and then use ferror to detect output error.
14126
14127         I considered making this patch optional, but decided against it,
14128         because libc is obviously being inconsistent here: there is no
14129         reason libc should insist that user code must inspect fwrite
14130         return's value without also insisting that it inspect printf's,
14131         putchar's, etc.  If user code wants to have a strict style where
14132         all these functions' values are checked (so that ferror need not
14133         be checked), we could add support for that style in a new gnulib
14134         module, but in the meantime it's better to be consistent and to
14135         support common usage.
14136
14137         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
14138         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
14139         that we are compiling in checking mode, and if not C++, and
14140         if not already wrapping fwrite for some other reason.
14141         (fwrite): #define to rpl_fwrite if the latter is defined.
14142
14143 2011-03-20  Bruno Haible  <bruno@clisp.org>
14144
14145         verror: Fix compilation error introduced on 2011-02-13.
14146         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
14147         instead of __attribute__.
14148         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14149
14150 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14151             Bruno Haible  <bruno@clisp.org>
14152
14153         socklen: do not depend on sys_socket
14154         While trying to modify Emacs to use gnulib's socklen module,
14155         I discovered a circular dependency: socklen depends on sys_socket
14156         and vice versa.  Emacs can use socklen, but it does not need
14157         sys_socket because it has its own substitute for sys/socket.h.
14158         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
14159         gl_TYPE_SOCKLEN_T.
14160         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
14161         gl_PREREQ_SYS_H_SOCKET.
14162         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14163         gl_PREREQ_SYS_H_SOCKET.
14164         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
14165         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
14166         * modules/socklen (Depends-on): Do not depend on sys_socket.
14167         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
14168
14169 2011-03-20  Jim Meyering  <meyering@redhat.com>
14170
14171         maint.mk: sort file names *after* new transformation
14172         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
14173         prefix would have led to an unwarranted failure in GNU parted.
14174         Sort after that transformation.
14175
14176 2011-03-19  Jim Meyering  <meyering@redhat.com>
14177
14178         maint.mk: fix po-file syntax-check rule
14179         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
14180         Patch by Bruno Haible.
14181
14182 2011-03-19  Bruno Haible  <bruno@clisp.org>
14183
14184         socklen: Update comment.
14185         * m4/socklen.m4: Update comment about platforms.
14186
14187 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14188             Bruno Haible  <bruno@clisp.org>
14189
14190         inet_ntop, inet_pton: Simplify.
14191         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
14192         documented to provide socklen_t and we already depend on sys_socket.
14193         * modules/inet_pton (Depends-on): Likewise.
14194         * lib/arpa_inet.in.h: Adjust comment.
14195
14196 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14197             Bruno Haible  <bruno@clisp.org>
14198
14199         netdb: Simplify.
14200         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
14201         documented to provide socklen_t and we already depend on sys_socket.
14202         * lib/netdb.in.h: Adjust comment.
14203
14204 2011-03-19  Bruno Haible  <bruno@clisp.org>
14205
14206         sys_socket, netdb: Document problem with socklen_t.
14207         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
14208         platforms.
14209         * doc/posix-headers/netdb.texi: Likewise.
14210
14211 2011-03-18  Eric Blake  <eblake@redhat.com>
14212
14213         maint.mk: let po check work in VPATH build
14214         * top/maint.mk (po_file): Allow cfg.mk override.
14215         (sc_po_check): Allow VPATH use.
14216         Reported by Jiri Denemark.
14217
14218 2011-03-16  Jim Meyering  <meyering@redhat.com>
14219
14220         maint.mk: allow fine-grained syntax-check exclusion via Make variables
14221         Before, you would have had to create one .x-sc_ file per rule in order
14222         to exempt offending files.  Now, you may instead use a Make variable --
14223         usually defined in cfg.mk -- whose name identifies the affected rule.
14224         * top/maint.mk (_sc_excl): Define.
14225         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
14226         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
14227
14228 2011-03-13  Bruno Haible  <bruno@clisp.org>
14229
14230         ignore-value tests: Avoid warnings.
14231         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
14232         empty for gcc < 3.4.
14233
14234 2011-03-13  Bruno Haible  <bruno@clisp.org>
14235
14236         passfd: Fix link error on Solaris.
14237         * modules/passfd (Description): Correct.
14238         (Depends-on): Add socketlib.
14239         (Link): New section.
14240         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
14241
14242 2011-03-13  Bruno Haible  <bruno@clisp.org>
14243
14244         passfd: Fix link error on AIX 5.2.
14245         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
14246
14247 2011-03-13  Bruno Haible  <bruno@clisp.org>
14248
14249         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
14250         * lib/sys_socket.in.h: Include <stddef.h>.
14251         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
14252         CMSG_FIRSTHDR. Remove unused variable.
14253
14254 2011-03-13  Bruno Haible  <bruno@clisp.org>
14255
14256         passfd: Fix compilation error on OpenBSD.
14257         * lib/passfd.c: Include <sys/uio.h>.
14258
14259 2011-03-13  Bruno Haible  <bruno@clisp.org>
14260
14261         passfd test: Fix warnings.
14262         * tests/test-passfd.c: Include <sys/wait.h>.
14263         (main): Fix typo.
14264
14265 2011-03-13  Bruno Haible  <bruno@clisp.org>
14266
14267         passfd module, part 4, tweaks.
14268         * tests/test-passfd.c: Reorder includes.
14269         (main): Fix perror and printf calls.
14270
14271 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14272
14273         passfd module, part 4.
14274         * modules/passfd-tests: New file.
14275         * tests/test-passfd.c: New file.
14276
14277 2011-03-13  Jim Meyering  <meyering@redhat.com>
14278
14279         Makefile: rely on GNU make; derive syntax-check rule names
14280         Rather than requiring that each sc_ rule be listed as a dependent
14281         of "check", use features of GNU make to derive the list.
14282         * Makefile (syntax-check-rules): Define.
14283         (check): Depend on the new variable, not the hard-coded list.
14284
14285 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
14286             Bruno Haible  <bruno@clisp.org>
14287
14288         passfd module, part 3.
14289         * lib/passfd.h (recvfd): Add a flags argument.
14290         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
14291         (recvfd): Add a flags argument.
14292         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
14293         exists.
14294         * modules/passfd (Depends-on): Add cloexec.
14295         Suggested by Eric Blake.
14296
14297 2011-03-13  Bruno Haible  <bruno@clisp.org>
14298
14299         passfd module, part 2, tweaks.
14300         * modules/passfd (Files): Reorder.
14301         (Depends-on): Remove errno.
14302         (Include): Remove <sys/socket.h>, <sys/un.h>.
14303         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
14304         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
14305         specification header. Include <sys/socket.h> always. Don't include
14306         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
14307         (sendfd): Clarify that it sets errno when it fails.
14308         (recvfd): Fix specification.
14309
14310 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14311
14312         passfd module, part 2.
14313         * modules/passfd: New file.
14314         * lib/passfd.h: New file.
14315         * lib/passfd.c: New file.
14316
14317 2011-03-12  Bruno Haible  <bruno@clisp.org>
14318
14319         wcswidth, mbswidth: Avoid integer overflow.
14320         * lib/wcswidth.c: Include <limits.h>.
14321         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
14322         * lib/mbswidth.c: Include <limits.h>.
14323         (mbsnwidth): Avoid 'int' overflow.
14324         Reported by Jim Meyering.
14325
14326 2011-03-12  Bruno Haible  <bruno@clisp.org>
14327
14328         futimens, utimensat: Avoid endless recursion on Solaris 10.
14329         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
14330         Solaris.
14331         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
14332         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
14333
14334 2011-03-11  Jim Meyering  <meyering@redhat.com>
14335
14336         maint.mk: relax a regexp to accommodate other formatting styles
14337         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
14338         between "ngettext" and the following "(".
14339
14340 2011-03-11  Pádraig Brady <P@draigBrady.com>
14341
14342         maint.mk: suppress a false positive warning
14343         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
14344         diagnostics are marked with ngettext.
14345
14346 2011-03-10  Eric Blake  <eblake@redhat.com>
14347
14348         wchar: add explicit dependencies, for Tru64
14349         * modules/mbmemcasecoll (Depends-on): Add wchar.
14350         * modules/mbtowc (Depends-on): Likewise.
14351         * modules/vasnprintf (Depends-on): Likewise.
14352         * modules/unistdio/u-printf-args (Depends-on): Likewise.
14353         * modules/wctomb (Depends-on): Likewise.
14354         Reported by Peter O'Gorman.
14355
14356 2011-03-08  Bruno Haible  <bruno@clisp.org>
14357
14358         passfd module, part 1, tweaks.
14359         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
14360         Improve indentation. Improve AC_MSG_CHECKING messages.
14361         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
14362         gl_SOCKET_FAMILIES.
14363
14364 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14365
14366         passfd module, part 1.
14367         * m4/afunix.m4: New file.
14368         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
14369         sockets.
14370
14371 2011-03-08  Bruno Haible  <bruno@clisp.org>
14372
14373         regex-quote: New API.
14374         * lib/regex-quote.h: Include <stdbool.h>.
14375         (struct regex_quote_spec): New type.
14376         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14377         New declarations.
14378         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14379         'const struct regex_quote_spec *' argument.
14380         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
14381         (pcre_special): New constant.
14382         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14383         New functions.
14384         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14385         'const struct regex_quote_spec *' argument.
14386         * modules/regex-quote (Depends-on): Add stdbool.
14387         * tests/test-regex-quote.c (check): Update for new API. Add test for
14388         anchored results.
14389         * NEWS: Mention the API change.
14390         Reported by Reuben Thomas and Eric Blake.
14391
14392 2011-03-06  Bruno Haible  <bruno@clisp.org>
14393
14394         regex-quote: Fix creation of POSIX extended regular expressions.
14395         * lib/regex-quote.c (ere_special): Add grouping and alternation
14396         operators.
14397
14398 2011-03-05  Bruno Haible  <bruno@clisp.org>
14399
14400         doc: Improve doc regarding autopoint vs. gnulib.
14401         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
14402         disable autopoint while running autoreconf.
14403         Suggested by Ralf Wildenhues.
14404
14405 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14406
14407         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
14408         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
14409
14410 2011-03-03  Bruce Korb  <bkorb@gnu.org>
14411
14412         parse-duration: remove xalloc.h dependency
14413         * lib/parse-duration.c (parse_period): handle NULL return from
14414         strdup instead of calling xstrdup().
14415         * modules/parse-duration: remove "xalloc" dependency
14416
14417 2011-03-03  Matthew Booth  <mbooth@redhat.com>
14418
14419         bootstrap: honor m4_base when running aclocal
14420         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
14421
14422 2011-03-02  Jim Meyering  <meyering@redhat.com>
14423
14424         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
14425         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
14426         on request from Matt Booth.
14427
14428 2011-03-01  Eric Blake  <eblake@redhat.com>
14429
14430         test-link: work on Hurd
14431         * tests/test-link.h (test_link): Hurd rejects linking directories
14432         with EISDIR instead of the POSIX-mandated EPERM.
14433
14434 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
14435
14436         stdio: simplify by moving files to printf-posix, sigpipe
14437         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
14438         since this symbol is needed only if printf is replaced.
14439         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
14440         Require gl_ASM_SYMBOL_PREFIX.
14441         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
14442         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
14443         (Depends-on): Add 'raise'.
14444         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
14445         * modules/stdio (Files): Remove lib/stdio-write.c,
14446         m4/asm-underscore.m4.
14447         (Depends-on): Remove 'raise'.
14448
14449         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
14450         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
14451         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
14452         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
14453
14454 2011-02-28  Bruno Haible  <bruno@clisp.org>
14455
14456         localcharset: Assume ANSI C behaviour of free().
14457         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
14458         calling free().
14459         Suggested by Simon Josefsson <simon@josefsson.org>.
14460
14461 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
14462             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
14463             Bruno Haible  <bruno@clisp.org>  (tiny change)
14464
14465         On Cygwin, use /proc file system instead of win32 API.
14466         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
14467         Win32 file names.
14468         (DllMain): Simplify by removing Cygwin specific code.
14469         (find_shared_library_fullname): Use Linux specific implementation also
14470         for Cygwin.
14471         (get_shared_library_fullname): Update accordingly.
14472         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
14473         Win32 file names.
14474         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
14475         Cygwin specific code.
14476
14477 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
14478             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
14479
14480         Fix OpenMP flag detection for various Fortran compilers.
14481         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
14482         OpenMP-conditional compilation construct, to force compile
14483         failure with missing OpenMP flag.
14484         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
14485
14486 2011-02-25  Eric Blake  <eblake@redhat.com>
14487
14488         strstr: expand test coverage
14489         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
14490         compilation.
14491         * tests/test-memmem.c (main): Duplicate tests.
14492         * tests/test-strcasestr.c (main): Likewise.
14493         * tests/test-c-strcasestr.c (main): Likewise.
14494
14495 2011-02-25  Jim Meyering  <meyering@redhat.com>
14496
14497         maint.mk: detect missing-NL-at-EOF, too
14498         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
14499         it also detects when a file lacks a newline at EOF.
14500         (require_exactly_one_NL_at_EOF_): Renamed from
14501         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
14502         since people may well have .x-sc_... file names tied to the
14503         existing name.  Suggested by Eric Blake.
14504
14505 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14506
14507         dirname: move m4/dos.m4 functionality into lib/dosname.h
14508
14509         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
14510         extracts symbols from it, puts them into config.h; but it's much
14511         easier to use the symbols directly.  filename.h already does this,
14512         but it disagrees with dos.m4 in some respects.  This patch
14513         introduces a different include file dosname.h that packages up
14514         dos.m4, and then later we can work on merging filename.h and
14515         dosname.h.  Applications that need only the easy-to-configure
14516         symbols should consider including dosname.h rather than dirname.h.
14517         * NEWS: Mention incompatible changes.
14518         * m4/dos.m4: Remove.
14519         * lib/dosname.h, modules/dosname: New files.
14520         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
14521         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
14522         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
14523         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
14524         Include dosname.h, not dirname.h.
14525         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
14526         Include dosname.h, for definitions of symbols like ISSLASH
14527         that used to be in config.h.
14528         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
14529         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14530         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14531         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14532         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
14533         * modules/rmdir (Files): Likewise.
14534         * modules/stat (Files): Likewise.
14535         * modules/unlink (Files): Likewise.
14536         * modules/dirname-lgpl (Depends-on): Add dosname.
14537         * modules/lstat (Depends-on): Likewise.
14538         * modules/openat (Depends-on): Likewise.
14539         * modules/rmdir (Depends-on): Likewise.
14540         * modules/savewd (Depends-on): Likewise.
14541         * modules/stat (Depends-on): Likewise.
14542         * modules/unlink (Depends-on): Likewise.
14543         * modules/openat (Depends-on): Remove dirname-lgpl.
14544         * modules/savewd (Depends-on): Likewise.
14545         * tests/test-dirname.c: Do not use removed symbols like
14546         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
14547         the remaining symbols, e.g., ISSLASH ('\\').
14548
14549 2011-02-25  Eric Blake  <eblake@redhat.com>
14550
14551         strstr: revert patches that introduced bug and pessimization
14552         * lib/str-two-way.h: Add another reference.
14553         (two_way_short_needle, two_way_long_needle): Revert changes from
14554         2011-02-24; they pessimize search speed.
14555         (critical_factorization): Partially revert changes from
14556         2010-06-22; they violate the requirement that the left half of the
14557         needle be smaller than the period of the needle.
14558
14559 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14560
14561         filenamecat: remove unnecessary dependency on dirname-lgpl
14562         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
14563         is no direct dependency, just an indirect one via filenamecat-lgpl.
14564
14565         remove: remove unnecessary use of m4/dos.m4
14566         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
14567         * modules/remove (FILES): Remove m4/dos.m4.
14568
14569         * lib/openat-proc.c: Don't include dirname.h; not needed.
14570
14571         backupfile: remove unnecessary use of m4/dos.m4
14572         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
14573         of its symbols are used by the backupfile code.  backupfile.c does
14574         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
14575         for the rare case of programs that want all their backup file
14576         names to live within 8+3 limits, and dos.m4 doesn't address that.
14577         * modules/backupfile (Files): Remove m4/dos.m4.
14578
14579 2011-02-24  Jim Meyering  <meyering@redhat.com>
14580
14581         strstr: fix a bug whereby strstr would mistakenly return NULL
14582         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
14583         in period calculation.
14584         (two_way_long_needle): Likewise.
14585         The original problem was reported by Mike Stump in
14586         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
14587         Ralf Wildenhues provided the short needle and haystack.
14588         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
14589         Add a more involved test to trigger the bug in two_way_long_needle.
14590
14591 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14592
14593         gnulib-tool: remove use of bold display in help screen
14594         * gnulib-tool (func_usage): Do not use bold display anymore in the
14595         help screen.  That was just meant to be a temporary emphasis for a
14596         backward-incompatible change.
14597
14598 2011-02-23  Bruno Haible  <bruno@clisp.org>
14599
14600         Fix misindentation of preprocessor directives.
14601         * lib/argp-namefrob.h: Reindent preprocessor directives.
14602         * lib/getopt_int.h (struct _getopt_data): Likewise.
14603         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
14604         * lib/vasnprintf.c (decode_long_double): Likewise.
14605         * tests/test-argmatch.c: Insert blank lines, for clarity.
14606         * tests/test-exclude.c: Likewise.
14607
14608 2011-02-22  Bruno Haible  <bruno@clisp.org>
14609
14610         ioctl: Fix for MacOS X in 64-bit mode.
14611         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
14612         value.
14613         Suggested by Eric Blake.
14614         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
14615
14616 2011-02-22  Jim Meyering  <meyering@redhat.com>
14617
14618         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
14619         * Makefile (sc_cpp_indent_check): Don't limit the check to files
14620         in lib/.
14621
14622 2011-02-22  Eric Blake  <eblake@redhat.com>
14623
14624         maint: avoid any CDPATH issue
14625         * Makefile (sc_cpp_indent_check): Anchor cd argument.
14626
14627         maint: adjust cpp indentation for my modules, as well
14628         * Makefile (sc_cpp_indent_check): Add my name.
14629         * lib/fbufmode.c: Filter through cppi.
14630         * lib/fpurge.c: Likewise.
14631         * lib/freadable.c: Likewise.
14632         * lib/freading.c: Likewise.
14633         * lib/fwritable.c: Likewise.
14634         * lib/fwriting.c: Likewise.
14635         * lib/sigaction.c: Likewise.
14636
14637 2011-02-22  Jim Meyering  <meyering@redhat.com>
14638
14639         maint: adjust cpp indentation to reflect nesting depth
14640         I.e., in a block of code that begins with an unnested "#if",
14641         put one space between the "#" in column 1 and following token.
14642         For example,
14643         -#include <sys/vfs.h>
14644         +# include <sys/vfs.h>
14645         Do this only in .c files that are part of a module I maintain.
14646         * lib/linkat.c: Filter through cppi.
14647         * lib/nanosleep.c: Likewise.
14648         * lib/openat.c: Likewise.
14649         * lib/openat-die.c: Likewise.
14650         * lib/dup3.c: Likewise.
14651         * lib/fchownat.c: Likewise.
14652         * lib/flock.c: Likewise.
14653         * lib/fsync.c: Likewise.
14654         * lib/fts.c: Likewise.
14655         * lib/getpass.c: Likewise.
14656         * lib/gettimeofday.c: Likewise.
14657         * lib/userspec.c: Likewise.
14658         * Makefile (sc_cpp_indent_check): New rule, to check this.
14659
14660 2011-02-22  Bruno Haible  <bruno@clisp.org>
14661
14662         New module 'wctomb'.
14663         * lib/stdlib.in.h (wctomb): New declaration.
14664         * lib/wctomb.c: New file.
14665         * lib/wctomb-impl.h: New file.
14666         * m4/wctomb.m4: New file.
14667         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14668         REPLACE_WCTOMB.
14669         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14670         REPLACE_WCTOMB.
14671         * modules/wctomb: New file.
14672         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14673         * doc/posix-functions/wctomb.texi: Mention the new module.
14674         * modules/wctob (Depends-on): Add wctomb.
14675
14676 2011-02-22  Bruno Haible  <bruno@clisp.org>
14677
14678         New module 'mbtowc'.
14679         * lib/stdlib.in.h (mbtowc): New declaration.
14680         * lib/mbtowc.c: New file.
14681         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14682         * m4/mbtowc.m4: New file.
14683         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14684         REPLACE_MBTOWC.
14685         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14686         REPLACE_MBTOWC.
14687         * modules/mbtowc: New file.
14688         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14689         * doc/posix-functions/mbtowc.texi: Mention the new module.
14690         * modules/btowc (Depends-on): Add mbtowc.
14691
14692 2011-02-22  Bruno Haible  <bruno@clisp.org>
14693
14694         wcrtomb: Add more tests for native Windows platforms.
14695         * tests/test-wcrtomb-w32-1.sh: New file.
14696         * tests/test-wcrtomb-w32-2.sh: New file.
14697         * tests/test-wcrtomb-w32-3.sh: New file.
14698         * tests/test-wcrtomb-w32-4.sh: New file.
14699         * tests/test-wcrtomb-w32-5.sh: New file.
14700         * tests/test-wcrtomb-w32.c: New file.
14701         * modules/wcrtomb-tests (Files): Add them.
14702         (Makefile.am): Arrange to run these tests.
14703         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
14704         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
14705
14706 2011-02-20  Bruno Haible  <bruno@clisp.org>
14707
14708         wcrtomb: Enhance test.
14709         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14710
14711 2011-02-20  Bruno Haible  <bruno@clisp.org>
14712
14713         mbrtowc: Tiny optimization.
14714         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14715
14716 2011-02-20  Jim Meyering  <meyering@redhat.com>
14717
14718         test-exclude.c: remove unmatched #endif
14719         * tests/test-exclude.c: Remove stray #endif, left over from
14720         the change of a week ago.
14721
14722 2011-02-19  Jim Meyering  <meyering@redhat.com>
14723
14724         git-version-gen: skip "-dirty" check when appropriate
14725         * build-aux/git-version-gen: Don't run any git commands when the
14726         version string comes from .tarball-version.  Prior to this, we
14727         would run git update-index --refresh even from a just-unpacked
14728         tarball directory, and that could affect a .git/ directory in a
14729         parent of the build directory.  Reported by Mike Frysinger.
14730
14731 2011-02-19  Bruno Haible  <bruno@clisp.org>
14732
14733         unictype/property-byname: Reduce the size of the 'data' segment.
14734         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
14735
14736 2011-02-19  Bruno Haible  <bruno@clisp.org>
14737
14738         unictype/scripts: Reduce the size of the 'data' segment.
14739         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
14740         '%pic'.
14741         * lib/unictype/scripts_byname.gperf: Regenerated.
14742
14743 2011-02-19  Bruno Haible  <bruno@clisp.org>
14744
14745         stdint: Update documentation.
14746         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
14747
14748 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14749
14750         stdint: omit redundant check for wchar.h
14751         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
14752         always tests whether wchar.h exists, so remove the now-redundant test.
14753
14754 2011-02-18  Bruno Haible  <bruno@clisp.org>
14755
14756         stdint: Cut dependency to module 'wchar'.
14757         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14758         include the necessary prerequisites.
14759         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14760         * modules/stdint (Depends-on): Remove wchar.
14761         (Makefile.am): Substitute HAVE_WCHAR_H.
14762         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14763
14764 2011-02-18  Eric Blake  <eblake@redhat.com>
14765
14766         longlong: skip, rather than fail, on cross-compilation
14767         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14768         when cross-compiling; regression from 2011-02-16.
14769
14770 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14771
14772         * NEWS: Mention 2011-02-08 change to stdlib.
14773
14774 2011-02-17  Bruno Haible  <bruno@clisp.org>
14775
14776         getloadavg: Add comments about platforms.
14777         * m4/getloadavg.m4: Add comment.
14778         * lib/getloadavg.c: Likewise.
14779
14780 2011-02-17  Bruno Haible  <bruno@clisp.org>
14781
14782         getloadavg: Fix link error on Solaris 2.6.
14783         * modules/getloadavg (Link): New section.
14784         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14785         linking test-getloadavg.
14786         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14787         getloadavg.
14788
14789 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14790
14791         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14792         It was 'int', but this doesn't match the IRIX 6.5 manual.
14793         Suggested by Bruno Haible in
14794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
14795
14796 2011-02-17  Bruno Haible  <bruno@clisp.org>
14797
14798         havelib: Fix comments.
14799         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
14800         change.
14801
14802 2011-02-17  Bruno Haible  <bruno@clisp.org>
14803
14804         havelib: Update config.rpath.
14805         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
14806
14807 2011-02-17  Bruno Haible  <bruno@clisp.org>
14808
14809         getloadavg test: Add some plausibility checks.
14810         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14811         is improbable.
14812
14813 2011-02-16  Eric Blake  <eblake@redhat.com>
14814
14815         maintainer-makefile: make syntax-check a no-op from tarballs
14816         * top/maint.mk (no-vc-detected): New rule.
14817         (local-checks-available): Use it to avoid hanging if someone tries
14818         'make syntax-check' from a tarball.  Also append to any non-syntax
14819         checks already defined in cfg.mk.
14820
14821 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14822
14823         longlong: tune, particularly for common case of c99
14824
14825         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14826         or running anything if c99, or if unsigned long long int does not
14827         work.  In either case, we know the answer without further tests.
14828         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14829         it at most once, and use its results for both long long int and
14830         unsigned long long int.  This is more likely to be efficient in
14831         the common case where the program wants to check for both long
14832         long int and unsigned long long int.
14833         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14834         since the answer is already known.
14835
14836 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14837
14838         getloadavg: set errno
14839         * lib/getloadavg.c: Set errno when returning -1.  If no other
14840         error number looks appropriate, set it to ENOSYS if the getloadavg
14841         looks like it can't possibly ever work, ENOTSUP otherwise.
14842         Suggested by Bruno Haible in
14843         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14844
14845         getloadavg: trim unused parts and speed up 'configure'
14846         * NEWS: Document this.
14847         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14848         always compiled if getloadavg is absent.
14849         Move test code to ...
14850         * tests/test-getloadavg.c: New file, containing previous
14851         contents of test from lib/getloadavg.c.  It also contains
14852         suggestions by Bruno Haible in
14853         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14854         * modules/getloadavg-tests: New file.
14855         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14856         Do tests in the same order as they're needed for getloadavg.c.
14857         Omit setgid-related tests that generate symbols KMEM_GROUP,
14858         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14859         Do only the tests that are needed to see whether the system has
14860         getloadavg, moving the other tests into ...
14861         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14862         NLIST_NAME_UNION; nobody should be using it.  Do not define
14863         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14864         relevant, as the user of this module shouldn't care how getloadavg
14865         is implemented.
14866
14867         getloadavg: omit unused var
14868         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14869
14870 2011-02-15  Jim Meyering  <meyering@redhat.com>
14871
14872         doc: update users.txt
14873         * users.txt: Update iwhd's URL.
14874
14875 2011-02-13  Bruno Haible  <bruno@clisp.org>
14876
14877         Consistent macro naming for macros that use GCC __attribute__.
14878         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14879         _ATTRIBUTE_NONNULL_.
14880         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14881         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14882         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14883         ATTRIBUTE_DEPRECATED.
14884         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14885         ATTRIBUTE_NORETURN.
14886         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14887         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14888         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14889         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14890         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14891         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14892         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14893         ATTRIBUTE_SENTINEL.
14894         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14895         ATTRIBUTE_RETURN_CHECK.
14896         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14897         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14898         ATTRIBUTE_NORETURN.
14899         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14900         Reported by Paul Eggert.
14901
14902 2011-02-13  Bruno Haible  <bruno@clisp.org>
14903
14904         Don't interfere with a program's definition of __attribute__.
14905         * lib/argp.h (__attribute__): Remove definition.
14906         (_GL_ATTRIBUTE_FORMAT): New macro.
14907         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14908         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14909         (_GL_ATTRIBUTE_FORMAT): New macro.
14910         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14911         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14912         GCC 3 or newer.
14913         * lib/error.h (__attribute__): Remove definition.
14914         (_GL_ATTRIBUTE_FORMAT): New macro.
14915         (error, error_at_line): Use it.
14916         * lib/hash.h (__attribute__): Remove definition.
14917         (ATTRIBUTE_WUR): Update definition. Define always.
14918         * lib/openat.h (__attribute__): Remove definition.
14919         (ATTRIBUTE_NORETURN): Update definition. Define always.
14920         * lib/sigpipe-die.h (__attribute__): Remove definition.
14921         (ATTRIBUTE_NORETURN): Update definition. Define always.
14922         * lib/vasnprintf.h (__attribute__): Remove definition.
14923         (_GL_ATTRIBUTE_FORMAT): New macro.
14924         (asnprintf, vasnprintf): Use it.
14925         * lib/xalloc.h (__attribute__): Remove definition.
14926         (ATTRIBUTE_NORETURN): Update definition. Define always.
14927         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14928         * lib/xmemdup0.h (__attribute__): Remove definition.
14929         (ATTRIBUTE_NORETURN): Update definition. Define always.
14930         * lib/xprintf.h (__attribute__): Remove definition.
14931         (_GL_ATTRIBUTE_FORMAT): New macro.
14932         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14933         * lib/xstrtol.h (__attribute__): Remove definition.
14934         (ATTRIBUTE_NORETURN): Update definition. Define always.
14935         * lib/xvasprintf.h (__attribute__): Remove definition.
14936         (_GL_ATTRIBUTE_FORMAT): New macro.
14937         (xasprintf, xvasprintf): Use it.
14938         * tests/test-argmatch.c (__attribute__): Remove definition.
14939         (ATTRIBUTE_NORETURN): Update definition. Define always.
14940         * tests/test-exclude.c (__attribute__): Remove definition.
14941         (ATTRIBUTE_NORETURN): Update definition. Define always.
14942         Reported by Paul Eggert.
14943
14944 2011-02-13  Bruno Haible  <bruno@clisp.org>
14945
14946         mbrtowc: Add more tests for native Windows platforms.
14947         * tests/test-mbrtowc-w32-1.sh: New file.
14948         * tests/test-mbrtowc-w32-2.sh: New file.
14949         * tests/test-mbrtowc-w32-3.sh: New file.
14950         * tests/test-mbrtowc-w32-4.sh: New file.
14951         * tests/test-mbrtowc-w32-5.sh: New file.
14952         * tests/test-mbrtowc-w32.c: New file.
14953         * modules/mbrtowc-tests (Files): Add them.
14954         (Makefile.am): Arrange to run these tests.
14955         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14956         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14957
14958 2011-02-13  Bruno Haible  <bruno@clisp.org>
14959
14960         mbrtowc: Work around native Windows bug.
14961         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14962         guess when no suitable locale for testing was found.
14963         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14964
14965 2011-02-13  Bruno Haible  <bruno@clisp.org>
14966
14967         mbsinit: Work around mingw bug.
14968         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14969         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14970         Windows.
14971         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14972
14973 2011-02-13  Bruno Haible  <bruno@clisp.org>
14974
14975         mbsinit: Don't crash for a NULL argument.
14976         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14977         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14978
14979 2011-02-13  Bruno Haible  <bruno@clisp.org>
14980
14981         Don't interfere with a program's definition of __attribute__.
14982         * lib/stdio.in.h (__attribute__): Remove definition.
14983         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14984         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14985         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14986         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14987         * lib/string.in.h (__attribute__): Remove definition.
14988         Reported by Paul Eggert.
14989
14990 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14991
14992         stdlib: don't get in the way of non-GCC __attribute__
14993         See thread starting at
14994         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14995         Revert previous stdlib change, installing the following instead:
14996         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14997         to get in the way of a non-GCC compiler that supports __attribute__.
14998         (_GL_ATTRIBUTE_RETURN): New macro.
14999         (_Exit): Use it instead of __attribute__.
15000
15001 2011-02-12  Bruno Haible  <bruno@clisp.org>
15002
15003         quotearg test: Avoid test failure on mingw.
15004         * tests/test-quotearg.sh: Convert the locale identifier from native
15005         Windows syntax to Unix syntax.
15006
15007 2011-02-12  Bruno Haible  <bruno@clisp.org>
15008
15009         setlocale: Prefer gnulib's override over libintl's override.
15010         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
15011         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
15012         GNULIB_defined_setlocale is set.
15013
15014 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15015
15016         stdlib: support non-GCC __attribute__
15017
15018         Fix a serious and tricky problem encountered when attempting to
15019         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
15020         5.5, but it crashed due to memory corruption on Solaris 10 with
15021         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
15022         bits that are otherwise zero.  This tagging is optional inside
15023         Emacs but is preferred and is used when __attribute__ ((__aligned
15024         (8))) works, as it does with both recent-enough GCC and with Sun C
15025         5.11.  However, Sun C 5.11 is not GCC and does not #define
15026         __GNUC__ and __GNUC_MINOR__.
15027
15028         When I added the getloadavg module to Emacs, it brought in
15029         stdlib.in.h, which contained this fragment:
15030
15031            #ifndef __attribute__
15032            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
15033            #  define __attribute__(Spec)   /* empty */
15034            # endif
15035            #endif
15036
15037         When files that include <stdlib.h> were compiled with Sun C 5.11,
15038         the above code disabled __attribute__ ((__aligned (8))), which
15039         caused variables to not be properly aligned, which eventually led
15040         to the pointer corruption mentioned above.  (This was a bit hard
15041         to diagnose, unfortunately.)
15042
15043         Several "#define __attribute__(X) /* empty */" code snippets need
15044         to be eradicated from Gnulib to work with non-GCC compilers that
15045         support __attribute__.  The Autoconf way to do this is to test for
15046         each kind of attribute that we want support for, and selectively
15047         enable that in source code.
15048
15049         Fix this problem just for stdlib.h, by adding a test for the
15050         __noreturn__ attribute, and change stdlib.in.h to use that test
15051         when needed.  This technique can be easily generalized to the
15052         other *.in.h files and attributes, and a similar technique can be
15053         used for *.h and *.c files.  This patch is enough to solve the
15054         problem for Emacs + getloadavg, and I thought I'd publish it for
15055         feedback before undertaking further, similar fixes in other
15056         modules.
15057
15058         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
15059         because it's not needed for stdlib.h.  It merely substitutes the
15060         value directly into stdlib.h.  We may well need to #define it, or
15061         similar symbols, for other modules, but it's nice to also have an
15062         option to not #define it for applications like Emacs that do not
15063         need it.
15064
15065         * lib/stdlib.in.h (__attribute__): Do not #define.
15066         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
15067         be defined only if the _Exit module is also used.
15068         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
15069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
15070         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
15071         platforms.
15072         * modules/_Exit (Files): Add m4/attribute.m4.
15073         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
15074         * m4/attribute.m4: New file.
15075
15076 2011-02-12  Bruno Haible  <bruno@clisp.org>
15077
15078         wcsrtombs: Work around bug on native Windows.
15079         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
15080         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
15081         instead of len.
15082         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
15083
15084 2011-02-12  Bruno Haible  <bruno@clisp.org>
15085
15086         mbsrtowcs: Work around bug on native Windows.
15087         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
15088         against mingw bug.
15089         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15090
15091 2011-02-12  Bruno Haible  <bruno@clisp.org>
15092
15093         Avoid setlocale bugs in tests.
15094         * modules/btowc (Dependencies): Add setlocale.
15095         * modules/c-strcase (Dependencies): Likewise.
15096         * modules/mbmemcasecmp (Dependencies): Likewise.
15097         * modules/mbmemcasecoll (Dependencies): Likewise.
15098         * modules/mbrtowc (Dependencies): Likewise.
15099         * modules/mbscasecmp (Dependencies): Likewise.
15100         * modules/mbscasestr (Dependencies): Likewise.
15101         * modules/mbschr (Dependencies): Likewise.
15102         * modules/mbscspn (Dependencies): Likewise.
15103         * modules/mbsinit (Dependencies): Likewise.
15104         * modules/mbsncasecmp (Dependencies): Likewise.
15105         * modules/mbsnrtowcs (Dependencies): Likewise.
15106         * modules/mbspbrk (Dependencies): Likewise.
15107         * modules/mbspcasecmp (Dependencies): Likewise.
15108         * modules/mbsrchr (Dependencies): Likewise.
15109         * modules/mbsrtowcs (Dependencies): Likewise.
15110         * modules/mbsspn (Dependencies): Likewise.
15111         * modules/mbsstr (Dependencies): Likewise.
15112         * modules/nl_langinfo (Dependencies): Likewise.
15113         * modules/quotearg (Dependencies): Likewise.
15114         * modules/unicase/locale-language (Dependencies): Likewise.
15115         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
15116         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
15117         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
15118         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
15119         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
15120         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
15121         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
15122         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
15123         * modules/vasnprintf-posix (Dependencies): Likewise.
15124         * modules/wcrtomb (Dependencies): Likewise.
15125         * modules/wcsnrtombs (Dependencies): Likewise.
15126         * modules/wcsrtombs (Dependencies): Likewise.
15127
15128 2011-02-12  Bruno Haible  <bruno@clisp.org>
15129
15130         setlocale: Workaround native Windows bug.
15131         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
15132         succeeds but sets LC_CTYPE to "C", report a failure.
15133         * tests/test-setlocale2.sh: New file.
15134         * tests/test-setlocale2.c: New file.
15135         * modules/setlocale-tests (Files): Add the new files.
15136         (Makefile.am): Enable test-setlocale2.sh test.
15137         * doc/posix-functions/setlocale.texi: Mention workaround.
15138
15139 2011-02-11  Bruno Haible  <bruno@clisp.org>
15140
15141         Tests for module 'setlocale'.
15142         * modules/setlocale-tests: New file.
15143         * tests/test-setlocale1.sh: New file.
15144         * tests/test-setlocale1.c: New file.
15145
15146         New module 'setlocale'.
15147         * lib/locale.in.h (setlocale): New declaration.
15148         * lib/setlocale.c: New file, based on
15149         gettext/gettext-runtime/intl/setlocale.c.
15150         * m4/setlocale.m4: New file.
15151         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
15152         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
15153         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
15154         REPLACE_SETLOCALE.
15155         * modules/setlocale: New file.
15156         * tests/test-locale-c++.cc: Test the declaration of setlocale.
15157         * doc/posix-functions/setlocale.texi: Mention the new module.
15158
15159 2011-02-11  Bruno Haible  <bruno@clisp.org>
15160
15161         Prepare for locale dependent tests on mingw.
15162         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
15163         because it has the wrong locale encoding.
15164         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
15165         French_France.1252 instead of "fr".
15166         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
15167         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
15168         because it has the wrong locale encoding.
15169         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
15170         native Windows, try Turkish_Turkey.65001.
15171         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
15172         Chinese_China.54936.
15173
15174         Prepare for locale dependent tests on mingw.
15175         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
15176         differently.
15177         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15178         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15179         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15180         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15181
15182 2011-02-11  Eric Blake  <eblake@redhat.com>
15183
15184         strptime: avoid compiler warnings
15185         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
15186         compiler warnings about dead code.
15187         Reported by Daniel P. Berrange.
15188
15189 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
15190
15191         doc: update users.txt
15192         * users.txt: Add rcs.
15193
15194 2011-02-10  John W. Eaton  <jwe@gnu.org>
15195
15196         doc: update users.txt
15197         * users.txt: Add octave.
15198
15199 2011-02-10  Jim Meyering  <meyering@redhat.com>
15200
15201         doc: update users.txt
15202         * users.txt: Add iwhd.
15203
15204 2011-02-09  Bruno Haible  <bruno@clisp.org>
15205
15206         gnulib-tool: Make copyright notice adjustment more robust.
15207         * gnulib-tool (func_import): In sed_transform_main_lib_file,
15208         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
15209         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
15210         License".
15211         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
15212
15213 2011-02-06  Bruno Haible  <bruno@clisp.org>
15214
15215         New module 'towctrans'.
15216         * modules/towctrans: New file.
15217         * lib/wctype.in.h (towctrans): New declaration.
15218         * lib/towctrans.c: New file.
15219         * lib/towctrans-impl.h: New file.
15220         * m4/towctrans.m4: New file.
15221         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
15222         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
15223         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
15224         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
15225         * doc/posix-functions/towctrans.texi: Mention the new module.
15226
15227 2011-02-06  Bruno Haible  <bruno@clisp.org>
15228
15229         New module 'wctrans'.
15230         * modules/wctrans: New file.
15231         * lib/wctype.in.h (wctrans): New declaration.
15232         * lib/wctrans.c: New file.
15233         * lib/wctrans-impl.h: New file.
15234         * m4/wctrans.m4: New file.
15235         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
15236         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
15237         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
15238         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
15239         * doc/posix-functions/wctrans.texi: Mention the new module.
15240
15241 2011-02-06  Bruno Haible  <bruno@clisp.org>
15242
15243         New module 'iswctype'.
15244         * modules/iswctype: New file.
15245         * lib/wctype.in.h (iswctype): New declaration.
15246         * lib/iswctype.c: New file.
15247         * lib/iswctype-impl.h: New file.
15248         * m4/iswctype.m4: New file.
15249         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
15250         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
15251         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
15252         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
15253         * doc/posix-functions/iswctype.texi: Mention the new module and the
15254         HP-UX 11.00 problem.
15255
15256 2011-02-06  Bruno Haible  <bruno@clisp.org>
15257
15258         New module 'wctype'.
15259         * modules/wctype: Change to represent the wctype() substitute.
15260         * lib/wctype.in.h (wctype): New declaration.
15261         * lib/wctype.c: New file.
15262         * lib/wctype-impl.h: New file.
15263         * m4/wctype.m4: New file.
15264         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
15265         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
15266         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
15267         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
15268         * doc/posix-functions/wctype.texi: Mention the new module and the
15269         HP-UX 11.00 problem.
15270
15271 2011-02-06  Bruno Haible  <bruno@clisp.org>
15272
15273         wctype-h: Ensure wctype_t and wctrans_t are defined.
15274         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
15275         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15276         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15277         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
15278         HAVE_WCTRANS_T.
15279         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
15280
15281 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15282
15283         flock: fix license typo
15284
15285         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
15286         omitted.
15287
15288 2011-02-08  Bruno Haible  <bruno@clisp.org>
15289
15290         Split large sed scripts, for HP-UX sed.
15291         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
15292         to avoid HP-UX limit of 99 commands, in the near future.
15293         * modules/stdlib (Makefile.am): Likewise.
15294         * modules/unistd (Makefile.am): Likewise.
15295         * modules/wchar (Makefile.am): Likewise.
15296         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15297         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
15298         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
15299
15300 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15301             Bruno Haible  <bruno@clisp.org>
15302
15303         stdlib: improve random_r modularization
15304         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
15305         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
15306         you also need the random_r module to get this material right.
15307         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
15308         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
15309         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
15310
15311 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15312
15313         stdlib: don't depend on stdint
15314         * lib/stdlib.in.h: Don't include <stdint.h> merely because
15315         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
15316         be independent of whether stdint.h is needed.
15317         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
15318         here, instead of ...
15319         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
15320         struct random_data should be using the random_r module, not just
15321         the stdlib module (which wouldn't make sense: what package needs
15322         just struct random_data without also needing random_r?).
15323         * modules/stdlib (Depends-on): Remove stdint.
15324
15325         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
15326         See the thread rooted at
15327         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
15328         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
15329         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
15330         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
15331         __VMS)); previously it was always included (via fcntl--.h).
15332         (getloadavg): Do not use c_strtod.  Instead, approximate it by
15333         hand; this is good enough for load averages.  Also, do not use
15334         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
15335         flags directly if available and don't bother otherwise.  (Packages
15336         that need the extra reliability should use the modules that define
15337         these flags on older platforms that lack them.)
15338         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
15339         fcntl-safer.
15340
15341 2011-02-08  Jim Meyering  <meyering@redhat.com>
15342
15343         di-set.h, ino-map.h: add multiple-inclusion guard
15344         Technically, the guard is required only for ino-map.h, due to its
15345         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
15346         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
15347         * lib/ino-map.h: Likewise.
15348
15349 2011-02-06  Bruno Haible  <bruno@clisp.org>
15350
15351         iswblank: Ensure declaration on glibc systems.
15352         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
15353         * modules/iswblank (Dependencies): Add 'extensions'.
15354         * doc/posix-functions/iswblank.texi: Document the glibc problem.
15355
15356 2011-02-06  Bruno Haible  <bruno@clisp.org>
15357
15358         New module 'iswblank'.
15359         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
15360         * modules/iswblank: New file.
15361         * modules/wctype-h (Files): Remove lib/iswblank.c.
15362         (Makefile.am): Substitute GNULIB_ISWBLANK.
15363         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
15364         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
15365         (gl_WCTYPE_H_DEFAULTS): New macro.
15366         (gl_WCTYPE_H): Require it. Remove iswblank related code.
15367         * modules/iswblank-tests: New file.
15368         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
15369         * tests/test-wctype-h.c (main): Remove iswblank tests.
15370         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
15371         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
15372         of 'wctype-h'.
15373         * NEWS: Mention the change.
15374         * modules/mbchar (Depends-on): Add iswblank.
15375
15376 2011-02-08  Bruno Haible  <bruno@clisp.org>
15377
15378         di-set tests: Refactor.
15379         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
15380         unnecessary includes.
15381         (ASSERT): Remove macro.
15382         (main): Make C90 compliant by avoiding variable declaration after
15383         statement.
15384         * modules/di-set-tests (Files): Add tests/macros.h.
15385
15386 2011-02-08  Bruno Haible  <bruno@clisp.org>
15387
15388         ino-map tests: Refactor.
15389         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
15390         unnecessary includes.
15391         (ASSERT): Remove macro.
15392         (main): Make C90 compliant by avoiding variable declaration after
15393         statement.
15394         * modules/ino-map-tests (Files): Add tests/macros.h.
15395
15396 2011-02-08  Jim Meyering  <meyering@redhat.com>
15397
15398         di-set: add "const" to a cast
15399         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
15400         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
15401
15402 2011-02-06  Bruno Haible  <bruno@clisp.org>
15403
15404         Rename module 'wctype' to 'wctype-h'.
15405         * modules/wctype-h: Renamed from modules/wctype.
15406         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
15407         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
15408         (Files, Depends-on, Makefile.am): Update.
15409         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
15410         (Files, Makefile.am): Update.
15411         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
15412         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
15413         * doc/posix-headers/wctype.texi: Update.
15414         * doc/posix-functions/iswalnum.texi: Update.
15415         * doc/posix-functions/iswalpha.texi: Update.
15416         * doc/posix-functions/iswblank.texi: Update.
15417         * doc/posix-functions/iswcntrl.texi: Update.
15418         * doc/posix-functions/iswdigit.texi: Update.
15419         * doc/posix-functions/iswgraph.texi: Update.
15420         * doc/posix-functions/iswlower.texi: Update.
15421         * doc/posix-functions/iswprint.texi: Update.
15422         * doc/posix-functions/iswpunct.texi: Update.
15423         * doc/posix-functions/iswspace.texi: Update.
15424         * doc/posix-functions/iswupper.texi: Update.
15425         * doc/posix-functions/iswxdigit.texi: Update.
15426         * doc/posix-functions/towlower.texi: Update.
15427         * doc/posix-functions/towupper.texi: Update.
15428         * NEWS: Mention the change.
15429         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
15430         * modules/mbchar (Dependencies): Likewise.
15431         * modules/mbswidth (Dependencies): Likewise.
15432         * modules/quotearg (Dependencies): Likewise.
15433         * modules/regex (Dependencies): Likewise.
15434         * modules/wcscasecmp (Dependencies): Likewise.
15435         * modules/wcsncasecmp (Dependencies): Likewise.
15436         * modules/wcwidth (Dependencies): Likewise.
15437
15438 2011-02-06  Bruno Haible  <bruno@clisp.org>
15439
15440         New module 'wcswidth'.
15441         * modules/wcswidth: New file.
15442         * lib/wchar.in.h (wcswidth): New declaration.
15443         * lib/wcswidth.c: New file.
15444         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
15445         * m4/wcswidth.m4: New file.
15446         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
15447         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
15448         REPLACE_WCSWIDTH.
15449         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
15450         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
15451         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
15452         * doc/posix-functions/wcswidth.texi: Mention the new module.
15453
15454 2011-02-06  Bruno Haible  <bruno@clisp.org>
15455
15456         New module 'wcstok'.
15457         * modules/wcstok: New file.
15458         * lib/wchar.in.h (wcstok): New declaration.
15459         * lib/wcstok.c: New file.
15460         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
15461         * m4/wcstok.m4: New file.
15462         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
15463         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
15464         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
15465         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
15466         * doc/posix-functions/wcstok.texi: Mention the new module.
15467
15468 2011-02-06  Bruno Haible  <bruno@clisp.org>
15469
15470         New module 'wcsstr'.
15471         * modules/wcsstr: New file.
15472         * lib/wchar.in.h (wcsstr): New declaration.
15473         * lib/wcsstr.c: New file.
15474         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
15475         * m4/wcsstr.m4: New file.
15476         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
15477         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
15478         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
15479         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
15480         * doc/posix-functions/wcsstr.texi: Mention the new module.
15481
15482 2011-02-06  Bruno Haible  <bruno@clisp.org>
15483
15484         New module 'wcspbrk'.
15485         * modules/wcspbrk: New file.
15486         * lib/wchar.in.h (wcspbrk): New declaration.
15487         * lib/wcspbrk.c: New file.
15488         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
15489         * m4/wcspbrk.m4: New file.
15490         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
15491         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
15492         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
15493         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
15494         * doc/posix-functions/wcspbrk.texi: Mention the new module.
15495
15496 2011-02-06  Bruno Haible  <bruno@clisp.org>
15497
15498         New module 'wcsspn'.
15499         * modules/wcsspn: New file.
15500         * lib/wchar.in.h (wcsspn): New declaration.
15501         * lib/wcsspn.c: New file.
15502         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
15503         * m4/wcsspn.m4: New file.
15504         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
15505         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
15506         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
15507         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
15508         * doc/posix-functions/wcsspn.texi: Mention the new module.
15509
15510 2011-02-06  Bruno Haible  <bruno@clisp.org>
15511
15512         New module 'wcscspn'.
15513         * modules/wcscspn: New file.
15514         * lib/wchar.in.h (wcscspn): New declaration.
15515         * lib/wcscspn.c: New file.
15516         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
15517         * m4/wcscspn.m4: New file.
15518         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
15519         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
15520         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
15521         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
15522         * doc/posix-functions/wcscspn.texi: Mention the new module.
15523
15524 2011-02-06  Bruno Haible  <bruno@clisp.org>
15525
15526         New module 'wcsrchr'.
15527         * modules/wcsrchr: New file.
15528         * lib/wchar.in.h (wcsrchr): New declaration.
15529         * lib/wcsrchr.c: New file.
15530         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
15531         * m4/wcsrchr.m4: New file.
15532         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
15533         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
15534         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
15535         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
15536         * doc/posix-functions/wcsrchr.texi: Mention the new module.
15537
15538 2011-02-06  Bruno Haible  <bruno@clisp.org>
15539
15540         New module 'wcschr'.
15541         * modules/wcschr: New file.
15542         * lib/wchar.in.h (wcschr): New declaration.
15543         * lib/wcschr.c: New file.
15544         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
15545         * m4/wcschr.m4: New file.
15546         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
15547         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
15548         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
15549         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
15550         * doc/posix-functions/wcschr.texi: Mention the new module.
15551
15552 2011-02-06  Bruno Haible  <bruno@clisp.org>
15553
15554         New module 'wcsdup'.
15555         * modules/wcsdup: New file.
15556         * lib/wchar.in.h (wcsdup): New declaration.
15557         * lib/wcsdup.c: New file.
15558         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
15559         * m4/wcsdup.m4: New file.
15560         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
15561         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
15562         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
15563         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
15564         * doc/posix-functions/wcsdup.texi: Mention the new module.
15565
15566 2011-02-06  Bruno Haible  <bruno@clisp.org>
15567
15568         New module 'wcsxfrm'.
15569         * modules/wcsxfrm: New file.
15570         * lib/wchar.in.h (wcsxfrm): New declaration.
15571         * lib/wcsxfrm.c: New file.
15572         * lib/wcsxfrm-impl.h: New file.
15573         * m4/wcsxfrm.m4: New file.
15574         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
15575         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
15576         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
15577         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
15578         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
15579
15580 2011-02-06  Bruno Haible  <bruno@clisp.org>
15581
15582         New module 'wcscoll'.
15583         * modules/wcscoll: New file.
15584         * lib/wchar.in.h (wcscoll): New declaration.
15585         * lib/wcscoll.c: New file.
15586         * lib/wcscoll-impl.h: New file.
15587         * m4/wcscoll.m4: New file.
15588         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
15589         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
15590         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
15591         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
15592         * doc/posix-functions/wcscoll.texi: Mention the new module.
15593
15594 2011-02-06  Bruno Haible  <bruno@clisp.org>
15595
15596         New module 'wcsncasecmp'.
15597         * modules/wcsncasecmp: New file.
15598         * lib/wchar.in.h (wcsncasecmp): New declaration.
15599         * lib/wcsncasecmp.c: New file.
15600         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
15601         * m4/wcsncasecmp.m4: New file.
15602         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
15603         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
15604         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
15605         HAVE_WCSNCASECMP.
15606         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
15607         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
15608
15609 2011-02-06  Bruno Haible  <bruno@clisp.org>
15610
15611         New module 'wcscasecmp'.
15612         * modules/wcscasecmp: New file.
15613         * lib/wchar.in.h (wcscasecmp): New declaration.
15614         * lib/wcscasecmp.c: New file.
15615         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
15616         * m4/wcscasecmp.m4: New file.
15617         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
15618         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
15619         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
15620         HAVE_WCSCASECMP.
15621         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
15622         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15623
15624 2011-02-05  Bruno Haible  <bruno@clisp.org>
15625
15626         New module 'wcsncmp'.
15627         * modules/wcsncmp: New file.
15628         * lib/wchar.in.h (wcsncmp): New declaration.
15629         * lib/wcsncmp.c: New file.
15630         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
15631         * m4/wcsncmp.m4: New file.
15632         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
15633         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
15634         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
15635         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15636         * doc/posix-functions/wcsncmp.texi: Mention the new module.
15637
15638 2011-02-05  Bruno Haible  <bruno@clisp.org>
15639
15640         New module 'wcscmp'.
15641         * modules/wcscmp: New file.
15642         * lib/wchar.in.h (wcscmp): New declaration.
15643         * lib/wcscmp.c: New file.
15644         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15645         * m4/wcscmp.m4: New file.
15646         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15647         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15648         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15649         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15650         * doc/posix-functions/wcscmp.texi: Mention the new module.
15651
15652 2011-02-05  Bruno Haible  <bruno@clisp.org>
15653
15654         New module 'wcsncat'.
15655         * modules/wcsncat: New file.
15656         * lib/wchar.in.h (wcsncat): New declaration.
15657         * lib/wcsncat.c: New file.
15658         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15659         * m4/wcsncat.m4: New file.
15660         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15661         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15662         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15663         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15664         * doc/posix-functions/wcsncat.texi: Mention the new module.
15665
15666 2011-02-05  Bruno Haible  <bruno@clisp.org>
15667
15668         New module 'wcscat'.
15669         * modules/wcscat: New file.
15670         * lib/wchar.in.h (wcscat): New declaration.
15671         * lib/wcscat.c: New file.
15672         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15673         * m4/wcscat.m4: New file.
15674         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15675         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15676         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15677         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15678         * doc/posix-functions/wcscat.texi: Mention the new module.
15679
15680 2011-02-05  Bruno Haible  <bruno@clisp.org>
15681
15682         New module 'wcpncpy'.
15683         * modules/wcpncpy: New file.
15684         * lib/wchar.in.h (wcpncpy): New declaration.
15685         * lib/wcpncpy.c: New file.
15686         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15687         * m4/wcpncpy.m4: New file.
15688         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15689         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15690         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
15691         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
15692         * doc/posix-functions/wcpncpy.texi: Mention the new module.
15693
15694 2011-02-05  Bruno Haible  <bruno@clisp.org>
15695
15696         New module 'wcsncpy'.
15697         * modules/wcsncpy: New file.
15698         * lib/wchar.in.h (wcsncpy): New declaration.
15699         * lib/wcsncpy.c: New file.
15700         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
15701         * m4/wcsncpy.m4: New file.
15702         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
15703         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
15704         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
15705         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
15706         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15707
15708 2011-02-05  Bruno Haible  <bruno@clisp.org>
15709
15710         New module 'wcpcpy'.
15711         * modules/wcpcpy: New file.
15712         * lib/wchar.in.h (wcpcpy): New declaration.
15713         * lib/wcpcpy.c: New file.
15714         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15715         * m4/wcpcpy.m4: New file.
15716         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15717         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15718         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15719         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15720         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15721
15722 2011-02-05  Bruno Haible  <bruno@clisp.org>
15723
15724         New module 'wcscpy'.
15725         * modules/wcscpy: New file.
15726         * lib/wchar.in.h (wcscpy): New declaration.
15727         * lib/wcscpy.c: New file.
15728         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15729         * m4/wcscpy.m4: New file.
15730         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15731         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15732         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15733         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15734         * doc/posix-functions/wcscpy.texi: Mention the new module.
15735
15736 2011-02-05  Bruno Haible  <bruno@clisp.org>
15737
15738         New module 'wcsnlen'.
15739         * modules/wcsnlen: New file.
15740         * lib/wchar.in.h (wcsnlen): New declaration.
15741         * lib/wcsnlen.c: New file.
15742         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
15743         * m4/wcsnlen.m4: New file.
15744         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
15745         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
15746         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
15747         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
15748         * doc/posix-functions/wcsnlen.texi: Mention the new module.
15749
15750 2011-02-05  Bruno Haible  <bruno@clisp.org>
15751
15752         New module 'wcslen'.
15753         * modules/wcslen: New file.
15754         * lib/wchar.in.h (wcslen): New declaration.
15755         * lib/wcslen.c: New file.
15756         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
15757         * m4/wcslen.m4: New file.
15758         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15759         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15760         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15761         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15762         * doc/posix-functions/wcslen.texi: Mention the new module.
15763
15764 2011-02-05  Bruno Haible  <bruno@clisp.org>
15765
15766         New module 'wmemset'.
15767         * modules/wmemset: New file.
15768         * lib/wchar.in.h (wmemset): New declaration.
15769         * lib/wmemset.c: New file.
15770         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15771         * m4/wmemset.m4: New file.
15772         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15773         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15774         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15775         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15776         * doc/posix-functions/wmemset.texi: Mention the new module.
15777
15778 2011-02-05  Bruno Haible  <bruno@clisp.org>
15779
15780         New module 'wmemmove'.
15781         * modules/wmemmove: New file.
15782         * lib/wchar.in.h (wmemmove): New declaration.
15783         * lib/wmemmove.c: New file.
15784         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15785         * m4/wmemmove.m4: New file.
15786         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15787         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15788         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15789         HAVE_WMEMMOVE.
15790         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15791         * doc/posix-functions/wmemmove.texi: Mention the new module.
15792
15793 2011-02-05  Bruno Haible  <bruno@clisp.org>
15794
15795         New module 'wmemcpy'.
15796         * modules/wmemcpy: New file.
15797         * lib/wchar.in.h (wmemcpy): New declaration.
15798         * lib/wmemcpy.c: New file.
15799         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
15800         * m4/wmemcpy.m4: New file.
15801         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
15802         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
15803         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
15804         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
15805         * doc/posix-functions/wmemcpy.texi: Mention the new module.
15806
15807 2011-02-05  Bruno Haible  <bruno@clisp.org>
15808
15809         New module 'wmemcmp'.
15810         * modules/wmemcmp: New file.
15811         * lib/wchar.in.h (wmemcmp): New declaration.
15812         * lib/wmemcmp.c: New file.
15813         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15814         * m4/wmemcmp.m4: New file.
15815         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15816         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15817         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15818         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15819         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15820
15821 2011-02-07  Jim Meyering  <meyering@redhat.com>
15822
15823         di-set, ino-map: new modules, from coreutils
15824         * lib/di-set.c: New file.
15825         * lib/di-set.h: Likewise.
15826         * lib/ino-map.c: Likewise.
15827         * lib/ino-map.h: Likewise.
15828         * modules/di-set: Likewise.
15829         * modules/di-set-tests: Likewise.
15830         * modules/ino-map: Likewise.
15831         * modules/ino-map-tests: Likewise.
15832         * tests/test-di-set.c: Likewise.
15833         * tests/test-ino-map.c: Likewise.
15834
15835 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15836
15837         getloadavg: merge minor changes from Emacs
15838
15839         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15840         (getloadavg): Use memset, not bzero.
15841
15842         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15843         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15844         clash (bug#86).
15845
15846 2010-11-14  Bruno Haible  <bruno@clisp.org>
15847
15848         Allow multiple gnulib generated replacements to coexist.
15849         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15850         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15851         * lib/langinfo.in.h (nl_item): Likewise.
15852         * lib/math.in.h (_NaN, NAN): Likewise.
15853         * lib/netdb.in.h (struct addrinfo): Likewise.
15854         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15855         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15856         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15857         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15858         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15859         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15860         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15861         pthread_mutexattr_init, pthread_mutexattr_settype,
15862         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15863         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15864         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15865         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15866         * lib/sched.in.h (struct sched_param): Likewise.
15867         * lib/se-selinux.in.h (security_class_t, security_context_t,
15868         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15869         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15870         lsetfilecon, fsetfilecon, security_check_context,
15871         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15872         Likewise.
15873         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15874         Likewise.
15875         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15876         _gl_function_taking_int_returning_void_t, union sigval,
15877         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15878         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15879         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15880         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15881         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15882         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15883         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15884         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15885         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15886         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15887         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15888         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15889         socklen_t, rpl_fd_isset): Likewise.
15890         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15891         * lib/sys_time.in.h (struct timeval): Likewise.
15892         * lib/sys_times.in.h (struct tms): Likewise.
15893         * lib/sys_utsname.in.h (struct utsname):
15894         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15895         * lib/unistd.in.h (getpagesize): Likewise.
15896         * lib/wchar.in.h (mbstate_t): Likewise.
15897         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15898         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15899         towlower, towupper): Likewise.
15900         Reported by Sam Steingold <sds@gnu.org>.
15901
15902 2011-02-05  Eric Blake  <eblake@redhat.com>
15903
15904         unsetenv: work around Haiku issues
15905         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15906         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15907
15908 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15909
15910         libposix: avoid calling error() within libposix
15911         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15912         is defined.
15913
15914 2011-02-05  Eric Blake  <eblake@redhat.com>
15915
15916         strerror_r-posix: port to cygwin
15917         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15918         implementation.
15919         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15920         * tests/test-strerror_r.c (main): Fix test.
15921         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15922         issue.
15923
15924 2011-02-05  Bruno Haible  <bruno@clisp.org>
15925
15926         New module 'wmemchr'.
15927         * modules/wmemchr: New file.
15928         * lib/wchar.in.h (wmemchr): New declaration.
15929         * lib/wmemchr.c: New file.
15930         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15931         * m4/wmemchr.m4: New file.
15932         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15933         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15934         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15935         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15936         * doc/posix-functions/wmemchr.texi: Mention the new module.
15937
15938 2011-02-04  Eric Blake  <eblake@redhat.com>
15939
15940         fdopendir: detect FreeBSD bug
15941         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15942         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15943
15944 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15945
15946         stdbool: do not define HAVE_STDBOOL_H
15947         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15948         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15949         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15950         imported from the latest Autoconf git.  It was motivated by Emacs,
15951         which uses gnulib but does not need HAVE_STDBOOL_H.
15952
15953 2011-02-04  Bruno Haible  <bruno@clisp.org>
15954
15955         wcsnrtombs: Prepare for new module wwcsnrtombs.
15956         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15957         * lib/wcsnrtombs.c: Include it.
15958         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15959
15960         wcsrtombs: Prepare for new module wwcsrtombs.
15961         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15962         * lib/wcsrtombs.c: Include it.
15963         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15964
15965         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15966         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15967         * lib/mbsnrtowcs.c: Include it.
15968         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15969
15970         mbsrtowcs: Prepare for new module mbsrtowwcs.
15971         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15972         * lib/mbsrtowcs.c: Include it.
15973         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15974
15975 2011-02-04  Bruno Haible  <bruno@clisp.org>
15976
15977         vasnprintf: Reduce use of malloc for small format strings.
15978         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15979         (arguments): Add room for the first 7 arguments.
15980         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15981         (char_directives, u8_directives, u16_directives, u32_directives): Add
15982         room for the first 7 directives.
15983         * lib/printf-parse.c: Include <string.h>.
15984         (PRINTF_PARSE): Change memory handling code so that it uses the first
15985         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15986         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15987         Reported by Pádraig Brady <P@draigbrady.com>.
15988
15989 2011-01-31  Eric Blake  <eblake@redhat.com>
15990
15991         dup2: work around Haiku bug
15992         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15993         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15994         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15995         * tests/test-dup2.c (main): Enhance test.
15996
15997 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15998
15999         doc: off_t is not available in eglibc 2.11.2 stdio.h.
16000         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
16001         declared by eglibc 2.11.2.
16002         * lib/stdio.in.h: Likewise.
16003
16004 2011-01-31  Eric Blake  <eblake@redhat.com>
16005
16006         ignore-value: add missing test dependency
16007         * tests/test-ignore-value.c: Revert previous change; stdio.h
16008         provides off_t.
16009         * modules/ignore-value-tests (Depends-on): Add missing dependency.
16010
16011 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16012
16013         mktime: clarify long_int width checking
16014         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
16015         the top level, to make it clearer that the assumption about
16016         long_int width is being checked.  See
16017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
16018
16019 2011-01-30  Simon Josefsson  <simon@josefsson.org>
16020
16021         ignore-value: Fix self-test.
16022         * tests/test-ignore-value.c: Include sys/types.h for off_t.
16023
16024 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16025
16026         TYPE_MAXIMUM: avoid theoretically undefined behavior
16027         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
16028         negative number, which the C Standard says has undefined behavior.
16029         In practice this is not a problem, but might as well do it by the book.
16030         Reported by Rich Felker and Eric Blake; see
16031         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
16032         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
16033         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16034         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16035         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
16036         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16037         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
16038
16039         mktime: #undef mktime before #defining it
16040         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
16041
16042         mktime: systematically normalize tm_isdst comparisons
16043         * lib/mktime.c (isdst_differ): New function.
16044         (__mktime_internal): Use it systematically for all isdst comparisons.
16045         This completes the fix for libc BZ #6723, and removes the need for
16046         normalizing tm_isdst.  See
16047         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
16048         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
16049
16050         mktime: fix some integer overflow issues and sidestep the rest
16051
16052         This was prompted by a bug report by Benjamin Lindner for MinGW
16053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
16054         His bug is due to signed integer overflow (0 - INT_MIN), and I
16055         I scanned through mktime.c looking for other integer overflow
16056         problems, fixing all the bugs I found.
16057
16058         Although the C Standard says the resulting code is still not safe
16059         in the presence of integer overflow, in practice it should be good
16060         enough for all real-world two's-complement implementations, except
16061         for debugging environments that deliberately trap on integer
16062         overflow (e.g., gcc -ftrapv).
16063
16064         * lib/mktime.c (WRAPV): New macro.
16065         (SHR): Also check that long_int and time_t shift right in the
16066         usual way, before using the fast-but-unportable method.
16067         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
16068         used.  The code already assumed two's complement, so there's
16069         no need to test for alternatives.  All uses removed.
16070         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
16071         the C standard.  Problem reported by Rich Felker in
16072         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
16073         (twos_complement_arithmetic): Also check long_int and time_t.
16074         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
16075         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
16076         (__mktime_internal): Avoid integer overflow with unary subtraction
16077         in two instances where -1 - X is an adequate replacement for -X,
16078         since the calculations are approximate.
16079
16080 2011-01-29  Eric Blake  <eblake@redhat.com>
16081
16082         mktime: avoid infinite loop
16083         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
16084         type; behavior is still undefined but portable to all known targets.
16085         Reported by Rich Felker.
16086
16087 2011-01-29  Simon Josefsson  <simon@josefsson.org>
16088
16089         rename, unlink, same-inode: Relicense.
16090         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
16091         * modules/unlink (License): Likewise.
16092         * modules/same-inode (License): Likewise.
16093
16094 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16095
16096         mktime: avoid problems on NetBSD 5 / i386
16097         * lib/mktime.c (long_int): New type.  This works around a problem
16098         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
16099         but time_t is 64 bits, and where I expect the existing code is
16100         wrong in some cases.
16101         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
16102         (ydhms_diff): Bring back the compile-time check for wide-enough
16103         year and yday.
16104
16105         mktime: fix misspelling in comment
16106         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
16107         This merges all recent glibc changes of importance.
16108
16109 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16110
16111         move-if-change: cope with concurrent mv of identical file.
16112         * build-aux/move-if-change (CMPPROG): Accept environment
16113         variable as an override for `cmp'.
16114         (usage): Document CMPPROG.
16115         Adjust comparison to drop stdout.  Cope with failure of mv if
16116         the target file exists and is identical to the source, for
16117         parallel builds.
16118         Report from H.J. Lu against binutils in PR binutils/12283.
16119
16120 2011-01-28  Bruce Korb  <bkorb@gnu.org>
16121
16122         * users.txt: Mention sharutils.
16123
16124 2011-01-28  Simon Josefsson  <simon@josefsson.org>
16125
16126         * users.txt: Mention OATH Toolkit.
16127
16128 2011-01-27  Bruno Haible  <bruno@clisp.org>
16129
16130         Prepare for supporting FreeBSD 10.
16131         * build-aux/config.libpath: Remove handling of freebsd1*.
16132
16133 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
16134
16135         Prepare for supporting FreeBSD 10.
16136         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
16137         match FreeBSD 10.0.
16138
16139 2011-01-27  Bruno Haible  <bruno@clisp.org>
16140
16141         vma-iter, get-rusage-as: Add OpenBSD support.
16142         * modules/vma-iter (configure.ac): Test for mquery.
16143         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
16144         * lib/vma-iter.c: Include <sys/mman.h>.
16145         (vma_iterate): Add an implementation based on mquery().
16146         * lib/resource-ext.h (get_rusage_as): Update comments.
16147         * lib/get-rusage-as.c: Likewise.
16148         * lib/get-rusage-data.c: Likewise.
16149
16150 2011-01-26  Karl Berry  <karl@gnu.org>
16151
16152         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
16153         variables to make it easier to override the makeinfo program used.
16154
16155 2011-01-26  Eric Blake  <eblake@redhat.com>
16156
16157         fcntl: work around Haiku F_DUPFD bugs
16158         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
16159         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
16160         cloexec bit on duplication.
16161         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
16162
16163 2011-01-26  Bruno Haible  <bruno@clisp.org>
16164
16165         Enable memory leak tests on AIX.
16166         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
16167         * tests/test-fprintf-posix3.c (main): Likewise.
16168
16169 2011-01-26  Bruno Haible  <bruno@clisp.org>
16170
16171         Tests for module 'get-rusage-data'.
16172         * modules/get-rusage-data-tests: New file.
16173         * tests/test-get-rusage-data.c: New file.
16174
16175         New module 'get-rusage-data'.
16176         * lib/resource-ext.h (get_rusage_data): New declaration.
16177         * lib/get-rusage-data.c: New file.
16178         * modules/get-rusage-data: New file.
16179
16180 2011-01-25  Bruno Haible  <bruno@clisp.org>
16181
16182         get-rusage-as: Allow for easier testing.
16183         * lib/resource-ext.h (get_rusage_as): Add comment.
16184         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
16185         (main): New function for interactive testing.
16186
16187 2011-01-25  Bruno Haible  <bruno@clisp.org>
16188
16189         vma-iter: Treat Haiku like BeOS.
16190         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
16191         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
16192
16193 2011-01-25  Eric Blake  <eblake@redhat.com>
16194
16195         c-stack: fix regression on cygwin when libsigsegv is present
16196         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
16197
16198 2011-01-24  Bruno Haible  <bruno@clisp.org>
16199
16200         vma-iter: Avoid empty intervals.
16201         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
16202         on an empty interval.
16203
16204 2011-01-24  Jim Meyering  <meyering@redhat.com>
16205
16206         u64: remove unnecessary #include
16207         * lib/u64.h: Don't include <stddef.h>.  It was not used.
16208
16209 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16210
16211         Allow the user to avoid the HAVE_RAW_DECL_* macros.
16212         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16213
16214 2011-01-23  Bruno Haible  <bruno@clisp.org>
16215
16216         New module 'vma-iter'.
16217         * lib/vma-iter.h: New file.
16218         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
16219         * modules/vma-iter: New file.
16220         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
16221         for get_rusage_as_via_iterator.
16222         (vma_iterate_callback): New function.
16223         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
16224         * modules/get-rusage-as (Depends-on): Add vma-iter.
16225
16226 2011-01-23  Bruno Haible  <bruno@clisp.org>
16227
16228         uninorm: Tweak includes.
16229         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
16230         Reported by Jim Meyering.
16231
16232 2011-01-23  Bruno Haible  <bruno@clisp.org>
16233
16234         get-rusage-as: Improve on NetBSD.
16235         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
16236         /proc, like on FreeBSD.
16237
16238 2011-01-23  Jim Meyering  <meyering@redhat.com>
16239
16240         xreadlink.h: remove unnecessary #include
16241         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
16242
16243         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
16244         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
16245
16246 2011-01-23  Bruno Haible  <bruno@clisp.org>
16247
16248         get-rusage-as: Fix bug.
16249         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
16250         original limit when aborting the first loop.
16251
16252 2011-01-23  Bruno Haible  <bruno@clisp.org>
16253
16254         wctype: Ensure valid C syntax.
16255         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
16256         unconditionally, instead of gl_NEXT_HEADERS conditionally.
16257
16258 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16259
16260         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
16261         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
16262         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
16263         as they are needed only for configure's test case.
16264         This removes two unnecessary symbols from config.h.
16265
16266         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
16267         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
16268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
16269         AC_CHECK_HEADERS_ONCE on a header that we also invoke
16270         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
16271         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
16272         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
16273         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
16274         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16275         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16276         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16277         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16278         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16279         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16280         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
16281         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16282         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16283         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16284
16285 2011-01-21  Eric Blake  <eblake@redhat.com>
16286
16287         maintainer-makefile: work with older git for submodule check
16288         * top/maint.mk (public-submodule-commit): Rewrite to avoid
16289         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
16290         Reported by Matthias Bolte.
16291
16292         bootstrap: minor portability fixes
16293         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
16294         (usage): Omit leading capital and trailing . on help phrases, per
16295         GNU Coding Standards.
16296         (check_versions, top level): Prefix messages with script name.
16297
16298 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
16299
16300         bootstrap: support --no-git option
16301         * build-aux/bootstrap: Add --no-git option, to be used when
16302         --gnulib-srcdir points to the exact desired checkout.
16303
16304 2011-01-21  Eric Blake  <eblake@redhat.com>
16305
16306         strerror_r-posix: work with glibc 2.13
16307         * lib/strerror_r.c (strerror_r): Fix return type.
16308
16309 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16310             Bruno Haible  <bruno@clisp.org>
16311
16312         uN_strstr: New unit tests.
16313         * modules/unistr/u8-strstr-tests: New file.
16314         * modules/unistr/u16-strstr-tests: New file.
16315         * modules/unistr/u32-strstr-tests: New file.
16316         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
16317         * tests/unistr/test-u8-strstr.c: New file.
16318         * tests/unistr/test-u16-strstr.c: New file.
16319         * tests/unistr/test-u32-strstr.c: New file.
16320
16321 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16322             Bruno Haible  <bruno@clisp.org>
16323
16324         Make uN_strstr functions O(n) worst-case.
16325         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
16326         16-bit and 32-bit unit cases, use the unibyte algorithm from
16327         lib/mbsstr.c.
16328         * lib/unistr/u8-strstr.c: Include <string.h>.
16329         (UNIT_IS_UINT8_T): New macro.
16330         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
16331         (U_STRLEN, U_STRNLEN): New macros.
16332         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
16333         (U_STRLEN, U_STRNLEN): New macros.
16334         * modules/unistr/u8-strstr (Depends-on): Add strstr.
16335         (configure.ac): Update required libunistring version.
16336         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
16337         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
16338         malloca.
16339         (configure.ac): Update required libunistring version.
16340         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
16341         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
16342         malloca.
16343         (configure.ac): Update required libunistring version.
16344
16345 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16346             Bruno Haible  <bruno@clisp.org>
16347
16348         Prepare for faster uN_strstr functions.
16349         * lib/str-kmp.h: Support definable UNITs.
16350         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
16351         needle_len argument.
16352         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
16353         * lib/mbscasestr.c (mbscasestr): Likewise.
16354
16355 2011-01-21  Pádraig Brady <P@draigBrady.com>
16356
16357         malloca-tests: make faster by unsetting MALLOC_PERTURB_
16358         * tests/test-malloca.c (main): Unset the environment variable
16359         to greatly speed up the test.
16360         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
16361         * modules/malloca-tests: Depend on unsetenv.
16362
16363 2011-01-21  Pádraig Brady <P@draigBrady.com>
16364
16365         ignore-value: remove stdint dependency
16366         * lib/ignore-value.h: Remove <stdint.h>
16367         * modules/ignore-value: Remove stdint dependency.
16368
16369 2011-01-21  Jim Meyering  <meyering@redhat.com>
16370
16371         maint.mk: adjust variable name to be consistent with other gl_ vars
16372         * top/maint.mk (gl_public_submodule_commit): Rename the variable
16373         to be lower case.
16374
16375 2011-01-20  Jim Meyering  <meyering@redhat.com>
16376
16377         maint.mk: make "check" depend on public-submodule-commit by default
16378         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
16379
16380 2011-01-20  Bruno Haible  <bruno@clisp.org>
16381
16382         mbfile, mbiter: Complete change from 2008-12-21.
16383         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
16384         * m4/mbiter.m4 (gl_MBITER): Likewise.
16385
16386 2011-01-20  Jim Meyering  <meyering@redhat.com>
16387
16388         init.sh: insert space between each function name and "()"
16389         * tests/init.sh: Make it a little easier to see that a function's
16390         name is "warn_", and not "warn" when looking at the first part of
16391         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
16392
16393 2011-01-20  Jim Meyering  <meyering@redhat.com>
16394
16395         mountlist: clean up code formatting
16396         * lib/mountlist.c (read_file_system_list): Split a long line,
16397         correct bracing style, use NULL in place of "(struct statfs *)0",
16398         don't parenthesize return value, add spaces around "=" and after
16399         ";-in-for-stmt".
16400
16401 2011-01-14  Markus Duft <mduft@gentoo.org>
16402
16403         mountlist: add support for Interix
16404         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
16405         Apply statvfs to all entries of /dev/fs.
16406         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
16407         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
16408
16409 2011-01-20  Jim Meyering  <meyering@redhat.com>
16410
16411         maint.mk: improve the public-submodule-commit rule
16412         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
16413         to suppress printing of its commands... unless V=1.
16414         Add git submodule's --quiet option to suppress printing of e.g.,
16415         "Entering gnulib" output.
16416         "cd" into $(srcdir) before running git submodule.
16417
16418 2011-01-20  Bruno Haible  <bruno@clisp.org>
16419
16420         include_next: Fix bug introduced on 2011-01-18.
16421         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
16422         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
16423         ac_cv_header_... variable if the second argument is not 'check'.
16424         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
16425         gl_NEXT_HEADERS_INTERNAL.
16426
16427 2011-01-20  Bruno Haible  <bruno@clisp.org>
16428
16429         Allow the user to avoid the GNULIB_TEST_* macros.
16430         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
16431         Suggested by Paul Eggert.
16432
16433 2011-01-14  Jim Meyering  <meyering@redhat.com>
16434
16435         bootstrap: avoid failure when there is no .gitmodules file
16436         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
16437         has been assigned to, even when its value is the empty string.
16438         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
16439         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
16440         Reported by John W. Eaton <jwe@gnu.org>.
16441
16442 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16443
16444         assume <ctype.h>, ..., <time.h> exist
16445         For years gnulib has been assuming the existence of the headers
16446         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
16447         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
16448         them, since they don't appear to be needed.
16449         * README (Portability guidelines): Document this.
16450         * lib/flock.c: Assume <fcntl.h> exists.
16451         * lib/regex_internal.h: Assume <locale.h> exists.
16452         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
16453         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
16454         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
16455         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
16456         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
16457         * m4/regex.m4 (gl_REGEX): Likewise.
16458         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
16459         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
16460         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
16461         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
16462         * tests/test-argp.c: Likewise.
16463         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
16464
16465         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
16466         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
16467         AA_APPLE_UNIVERSAL_BUILD.  See
16468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
16469         * NEWS: Document this.
16470
16471 2011-01-19  Eric Blake  <eblake@redhat.com>
16472
16473         c-stack: assume stack overflow if SA_SIGINFO unsupported
16474         * lib/c-stack.c (SIGACTION_WORKS): Rename...
16475         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
16476         sigaction will work.
16477         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
16478         behavior match Linux.
16479         * tests/test-c-stack.c (main): Prefer NULL for pointers.
16480
16481         stdbool-tests: accomodate Haiku
16482         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
16483
16484         binary-io: fix O_TEXT on Haiku
16485         * modules/binary-io (Depends-on): Add fcntl-h.
16486         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
16487         than blindly undefining O_TEXT.
16488         Reported by Scott McCreary.
16489
16490 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16491
16492         include_next: do not check for standard headers like stddef.h
16493
16494         I found this problem when modifying Emacs to use gnulib.
16495         I noticed that it added HAVE_STDDEF_H to config.h, even though
16496         gnulib always assumes <stddef.h> exists as per README and this
16497         symbol is unnecessary.
16498         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
16499         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
16500         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
16501         faster for headers like stddef.h that are known to exist.
16502         (gl_CHECK_NEXT_HEADERS): Use it.
16503         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
16504         rather than gl_CHECK_NEXT_HEADERS.
16505         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
16506         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
16507
16508 2011-01-18  Eric Blake  <eblake@redhat.com>
16509
16510         ansi-c++-opt: skip C++ dependency style if C++ is unused
16511         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
16512         tests when we know C++ compilation is not desired.
16513         Reported by Scott McCreary.
16514
16515 2011-01-18  Bruno Haible  <bruno@clisp.org>
16516
16517         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
16518         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
16519         (main): Perform test also when getrlimit and setrlimit don't exist or
16520         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
16521         limiting the address space size using setrlimit, compare the address
16522         space size before and after the the test.
16523         * tests/test-dprintf-posix2.c: Likewise.
16524         * tests/test-fprintf-posix3.sh: Update skip messages.
16525         * tests/test-dprintf-posix2.sh: Likewise.
16526         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
16527         * modules/dprintf-posix-tests (Depends-on): Likewise.
16528         Reported by Bruce Korb <bkorb@gnu.org> and
16529         Gary V. Vaughan <gary@gnu.org>.
16530
16531 2011-01-18  Bruno Haible  <bruno@clisp.org>
16532
16533         get-rusage-as: Improvement for Cygwin.
16534         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
16535         areas that are merely reserved.
16536
16537 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16538
16539         strftime: remove dependencies on multibyte modules
16540
16541         strftime depended on mbrlen, mbsinit, and wchar, but these modules
16542         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
16543         only if __osf__ is defined, and I suspect OSF doesn't need these
16544         other modules.  If my guess is wrong, we'll need to come up with a
16545         variant of strftime that doesn't need the multibyte modules.
16546
16547         I discovered this problem when attempting modify Emacs to use the
16548         strftime module.  With the previous gnulib, this caused Emacs to
16549         need 31 new files, ranging from lib/config.charset to
16550         m4/wint_t.m4.  This was overkill and I expect would be offputting
16551         to the Emacs maintainers.  After this change, only 6 new files are
16552         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
16553         stdbool.m4, and tm_gmtoff.m4.
16554
16555         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
16556         Suggested by Bruno Haible in
16557         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
16558         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
16559         and do not check for wchar.h.
16560         * modules/strftime (Files): Remove m4/mbstate_t.m4.
16561         (Depends-on): Remove mbrlen, mbsinit, wchar.
16562
16563 2011-01-18  Bruno Haible  <bruno@clisp.org>
16564
16565         Tests for module 'get-rusage-as'.
16566         * modules/get-rusage-as-tests: New file.
16567         * tests/test-get-rusage-as.c: New file.
16568
16569         New module 'get-rusage-as'.
16570         * modules/get-rusage-as: New file.
16571         * lib/resource-ext.h: New file.
16572         * lib/get-rusage-as.c: New file.
16573
16574 2011-01-17  Eric Blake  <eblake@redhat.com>
16575
16576         sigaction: relax license from LGPLv3+ to LGPLv2+
16577         * modules/sigaction (License): Relax to LGPLv2+.
16578
16579 2011-01-14  Bruno Haible  <bruno@clisp.org>
16580
16581         filemode: Make function declarations usable in C++ mode.
16582         * lib/filemode.h: Enclose function declarations in extern "C" block.
16583         Reported by John W. Eaton <jwe@gnu.org>.
16584
16585 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
16586
16587         save-cwd: no longer include "xgetcwd.h"
16588         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
16589         This avoids a compilation failure in projects that use save-cwd
16590         without also using the xgetcwd module.
16591
16592 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16593
16594         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
16595         This is so that a program like Emacs, which needs only dtoastr,
16596         does not have to bother with distributing and compiling ftoastr
16597         and ldtoastr.
16598         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
16599         * modules/dtoastr, modules/ldtoastr: New files.
16600         * modules/ftoastr: Now works just for 'float'.
16601         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
16602         (Makefile.am): Remove ftoastr.h (not needed and no effect),
16603         dtoastr.c, ldtoastr.c.
16604
16605 2011-01-11  Jim Meyering  <meyering@redhat.com>
16606
16607         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
16608         There is no need to work around the lack of the fchdir function,
16609         since gnulib can now provide a replacement when required.
16610         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
16611         * modules/save-cwd (Depends-on): Add fchdir.
16612
16613 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16614
16615         openat, save-cwd: avoid xmalloc
16616
16617         This removes a direct (but undocumented) dependency of openat on
16618         xalloc, along with an indirect dependency via save-cwd.  It also
16619         removes a dependency of save-cwd on xgetcwd, and thereby
16620         indirectly on xalloc.  This change causes the openat substitute
16621         to fall back on save_cwd when memory is tight, and for save_cwd to
16622         fail instead of dying when memory is tight, but that's good enough.
16623         Problem and initial idea for fix reported by Bastien Roucaries in
16624         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
16625
16626         * lib/openat-proc.c: Include stdlib.h (for malloc), not
16627         xalloc.h (for xmalloc).
16628         (openat_proc_name): Use malloc, not xmalloc.
16629         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
16630         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
16631
16632         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
16633         This avoids heap allocation for file names whose lengths are in
16634         the range 512..1023, with the upper bound increasing to at most
16635         4031 depending on the platform's PATH_MAX.  (We do not want
16636         pathmax.h here as it might supply a non-constant PATH_MAX.)
16637         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
16638         Perhaps they should be moved to malloca.h?
16639         (OPENAT_BUFFER_SIZE): Use them.
16640
16641 2011-01-10  Bruno Haible  <bruno@clisp.org>
16642
16643         doc: Update users.txt.
16644         * users.txt: Add recutils.
16645
16646 2011-01-09  Karl Berry  <karl@gnu.org>
16647
16648         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16649
16650         * doc/configmake.texi: New file.
16651         * doc/gnulib.texi: Include it.
16652         * modules/configmake: Move documentation from here.
16653
16654 2011-01-09  Bruno Haible  <bruno@clisp.org>
16655
16656         Update to Unicode 6.0.0.
16657         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16658         (get_lbp): Update for Unicode 6.0.0.
16659         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16660         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16661         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16662         U+11001, U+11038..U+11046. Remove U+06DE.
16663         (uc_width): Fix bounds of planes.
16664         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16665         lib/uniwidth/width.c.
16666         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16667         trailing whitespace removed.
16668         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16669         without comments, but with the original copyright notice.
16670         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16671         * lib/unicase/ignorable.h: Likewise.
16672         * lib/unicase/tocasefold.h: Likewise.
16673         * lib/unicase/tolower.h: Likewise.
16674         * lib/unicase/totitle.h: Likewise.
16675         * lib/unicase/toupper.h: Likewise.
16676         * lib/unictype/bidi_of.h: Likewise.
16677         * lib/unictype/blocks.h: Likewise.
16678         * lib/unictype/categ_C.h: Likewise.
16679         * lib/unictype/categ_Cn.h: Likewise.
16680         * lib/unictype/categ_L.h: Likewise.
16681         * lib/unictype/categ_Ll.h: Likewise.
16682         * lib/unictype/categ_Lm.h: Likewise.
16683         * lib/unictype/categ_Lo.h: Likewise.
16684         * lib/unictype/categ_Lu.h: Likewise.
16685         * lib/unictype/categ_M.h: Likewise.
16686         * lib/unictype/categ_Mc.h: Likewise.
16687         * lib/unictype/categ_Me.h: Likewise.
16688         * lib/unictype/categ_Mn.h: Likewise.
16689         * lib/unictype/categ_N.h: Likewise.
16690         * lib/unictype/categ_Nd.h: Likewise.
16691         * lib/unictype/categ_No.h: Likewise.
16692         * lib/unictype/categ_P.h: Likewise.
16693         * lib/unictype/categ_Po.h: Likewise.
16694         * lib/unictype/categ_S.h: Likewise.
16695         * lib/unictype/categ_Sc.h: Likewise.
16696         * lib/unictype/categ_Sk.h: Likewise.
16697         * lib/unictype/categ_Sm.h: Likewise.
16698         * lib/unictype/categ_So.h: Likewise.
16699         * lib/unictype/categ_of.h: Likewise.
16700         * lib/unictype/combining.h: Likewise.
16701         * lib/unictype/ctype_alnum.h: Likewise.
16702         * lib/unictype/ctype_alpha.h: Likewise.
16703         * lib/unictype/ctype_graph.h: Likewise.
16704         * lib/unictype/ctype_lower.h: Likewise.
16705         * lib/unictype/ctype_print.h: Likewise.
16706         * lib/unictype/ctype_punct.h: Likewise.
16707         * lib/unictype/ctype_upper.h: Likewise.
16708         * lib/unictype/decdigit.h: Likewise.
16709         * lib/unictype/digit.h: Likewise.
16710         * lib/unictype/numeric.h: Likewise.
16711         * lib/unictype/pr_alphabetic.h: Likewise.
16712         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16713         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16714         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16715         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16716         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16717         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16718         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16719         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16720         * lib/unictype/pr_case_ignorable.h: Likewise.
16721         * lib/unictype/pr_cased.h: Likewise.
16722         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16723         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16724         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16725         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16726         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16727         * lib/unictype/pr_combining.h: Likewise.
16728         * lib/unictype/pr_composite.h: Likewise.
16729         * lib/unictype/pr_currency_symbol.h: Likewise.
16730         * lib/unictype/pr_decimal_digit.h: Likewise.
16731         * lib/unictype/pr_deprecated.h: Likewise.
16732         * lib/unictype/pr_format_control.h: Likewise.
16733         * lib/unictype/pr_grapheme_base.h: Likewise.
16734         * lib/unictype/pr_grapheme_extend.h: Likewise.
16735         * lib/unictype/pr_grapheme_link.h: Likewise.
16736         * lib/unictype/pr_id_continue.h: Likewise.
16737         * lib/unictype/pr_id_start.h: Likewise.
16738         * lib/unictype/pr_ideographic.h: Likewise.
16739         * lib/unictype/pr_lowercase.h: Likewise.
16740         * lib/unictype/pr_math.h: Likewise.
16741         * lib/unictype/pr_numeric.h: Likewise.
16742         * lib/unictype/pr_other_alphabetic.h: Likewise.
16743         * lib/unictype/pr_other_id_continue.h: Likewise.
16744         * lib/unictype/pr_other_math.h: Likewise.
16745         * lib/unictype/pr_punctuation.h: Likewise.
16746         * lib/unictype/pr_sentence_terminal.h: Likewise.
16747         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16748         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16749         * lib/unictype/pr_unified_ideograph.h: Likewise.
16750         * lib/unictype/pr_uppercase.h: Likewise.
16751         * lib/unictype/pr_xid_continue.h: Likewise.
16752         * lib/unictype/pr_xid_start.h: Likewise.
16753         * lib/unictype/scripts.h: Likewise.
16754         * lib/unictype/scripts_byname.gperf: Likewise.
16755         * lib/unictype/sy_java_ident.h: Likewise.
16756         * lib/unigbrk/gbrkprop.h: Likewise.
16757         * lib/unilbrk/lbrkprop1.h: Likewise.
16758         * lib/unilbrk/lbrkprop2.h: Likewise.
16759         * lib/uninorm/decomposition-table2.h: Likewise.
16760         * lib/uniwbrk/wbrkprop.h: Likewise.
16761         * tests/unicase/test-cased.c: Likewise.
16762         * tests/unicase/test-ignorable.c: Likewise.
16763         * tests/unicase/test-uc_tolower.c: Likewise.
16764         * tests/unicase/test-uc_totitle.c: Likewise.
16765         * tests/unicase/test-uc_toupper.c: Likewise.
16766         * tests/unictype/test-categ_C.c: Likewise.
16767         * tests/unictype/test-categ_Cn.c: Likewise.
16768         * tests/unictype/test-categ_L.c: Likewise.
16769         * tests/unictype/test-categ_Ll.c: Likewise.
16770         * tests/unictype/test-categ_Lm.c: Likewise.
16771         * tests/unictype/test-categ_Lo.c: Likewise.
16772         * tests/unictype/test-categ_Lu.c: Likewise.
16773         * tests/unictype/test-categ_M.c: Likewise.
16774         * tests/unictype/test-categ_Mc.c: Likewise.
16775         * tests/unictype/test-categ_Me.c: Likewise.
16776         * tests/unictype/test-categ_Mn.c: Likewise.
16777         * tests/unictype/test-categ_N.c: Likewise.
16778         * tests/unictype/test-categ_Nd.c: Likewise.
16779         * tests/unictype/test-categ_No.c: Likewise.
16780         * tests/unictype/test-categ_P.c: Likewise.
16781         * tests/unictype/test-categ_Po.c: Likewise.
16782         * tests/unictype/test-categ_S.c: Likewise.
16783         * tests/unictype/test-categ_Sc.c: Likewise.
16784         * tests/unictype/test-categ_Sk.c: Likewise.
16785         * tests/unictype/test-categ_Sm.c: Likewise.
16786         * tests/unictype/test-categ_So.c: Likewise.
16787         * tests/unictype/test-ctype_alnum.c: Likewise.
16788         * tests/unictype/test-ctype_alpha.c: Likewise.
16789         * tests/unictype/test-ctype_graph.c: Likewise.
16790         * tests/unictype/test-ctype_lower.c: Likewise.
16791         * tests/unictype/test-ctype_print.c: Likewise.
16792         * tests/unictype/test-ctype_punct.c: Likewise.
16793         * tests/unictype/test-ctype_upper.c: Likewise.
16794         * tests/unictype/test-decdigit.h: Likewise.
16795         * tests/unictype/test-digit.h: Likewise.
16796         * tests/unictype/test-numeric.h: Likewise.
16797         * tests/unictype/test-pr_alphabetic.c: Likewise.
16798         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16799         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16800         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16801         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16802         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16803         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16804         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16805         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16806         * tests/unictype/test-pr_case_ignorable.c: Likewise.
16807         * tests/unictype/test-pr_cased.c: Likewise.
16808         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16809         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16810         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16811         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16812         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16813         * tests/unictype/test-pr_combining.c: Likewise.
16814         * tests/unictype/test-pr_composite.c: Likewise.
16815         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16816         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16817         * tests/unictype/test-pr_deprecated.c: Likewise.
16818         * tests/unictype/test-pr_format_control.c: Likewise.
16819         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16820         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16821         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16822         * tests/unictype/test-pr_id_continue.c: Likewise.
16823         * tests/unictype/test-pr_id_start.c: Likewise.
16824         * tests/unictype/test-pr_ideographic.c: Likewise.
16825         * tests/unictype/test-pr_lowercase.c: Likewise.
16826         * tests/unictype/test-pr_math.c: Likewise.
16827         * tests/unictype/test-pr_numeric.c: Likewise.
16828         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16829         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16830         * tests/unictype/test-pr_other_math.c: Likewise.
16831         * tests/unictype/test-pr_punctuation.c: Likewise.
16832         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16833         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16834         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16835         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16836         * tests/unictype/test-pr_uppercase.c: Likewise.
16837         * tests/unictype/test-pr_xid_continue.c: Likewise.
16838         * tests/unictype/test-pr_xid_start.c: Likewise.
16839         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16840         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16841         changes.
16842         * lib/unictype/categ_Cc.h: Likewise.
16843         * lib/unictype/categ_Cf.h: Likewise.
16844         * lib/unictype/categ_Co.h: Likewise.
16845         * lib/unictype/categ_Cs.h: Likewise.
16846         * lib/unictype/categ_Lt.h: Likewise.
16847         * lib/unictype/categ_Nl.h: Likewise.
16848         * lib/unictype/categ_Pc.h: Likewise.
16849         * lib/unictype/categ_Pd.h: Likewise.
16850         * lib/unictype/categ_Pe.h: Likewise.
16851         * lib/unictype/categ_Pf.h: Likewise.
16852         * lib/unictype/categ_Pi.h: Likewise.
16853         * lib/unictype/categ_Ps.h: Likewise.
16854         * lib/unictype/categ_Z.h: Likewise.
16855         * lib/unictype/categ_Zl.h: Likewise.
16856         * lib/unictype/categ_Zp.h: Likewise.
16857         * lib/unictype/categ_Zs.h: Likewise.
16858         * lib/unictype/ctype_blank.h: Likewise.
16859         * lib/unictype/ctype_cntrl.h: Likewise.
16860         * lib/unictype/ctype_digit.h: Likewise.
16861         * lib/unictype/ctype_space.h: Likewise.
16862         * lib/unictype/ctype_xdigit.h: Likewise.
16863         * lib/unictype/mirror.h: Likewise.
16864         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16865         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16866         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16867         * lib/unictype/pr_bidi_control.h: Likewise.
16868         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16869         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16870         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16871         * lib/unictype/pr_bidi_pdf.h: Likewise.
16872         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16873         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16874         * lib/unictype/pr_dash.h: Likewise.
16875         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16876         * lib/unictype/pr_diacritic.h: Likewise.
16877         * lib/unictype/pr_extender.h: Likewise.
16878         * lib/unictype/pr_hex_digit.h: Likewise.
16879         * lib/unictype/pr_hyphen.h: Likewise.
16880         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16881         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16882         * lib/unictype/pr_ignorable_control.h: Likewise.
16883         * lib/unictype/pr_iso_control.h: Likewise.
16884         * lib/unictype/pr_join_control.h: Likewise.
16885         * lib/unictype/pr_left_of_pair.h: Likewise.
16886         * lib/unictype/pr_line_separator.h: Likewise.
16887         * lib/unictype/pr_logical_order_exception.h: Likewise.
16888         * lib/unictype/pr_non_break.h: Likewise.
16889         * lib/unictype/pr_not_a_character.h: Likewise.
16890         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16891         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16892         * lib/unictype/pr_other_id_start.h: Likewise.
16893         * lib/unictype/pr_other_lowercase.h: Likewise.
16894         * lib/unictype/pr_other_uppercase.h: Likewise.
16895         * lib/unictype/pr_paired_punctuation.h: Likewise.
16896         * lib/unictype/pr_paragraph_separator.h: Likewise.
16897         * lib/unictype/pr_pattern_syntax.h: Likewise.
16898         * lib/unictype/pr_pattern_white_space.h: Likewise.
16899         * lib/unictype/pr_private_use.h: Likewise.
16900         * lib/unictype/pr_quotation_mark.h: Likewise.
16901         * lib/unictype/pr_radical.h: Likewise.
16902         * lib/unictype/pr_soft_dotted.h: Likewise.
16903         * lib/unictype/pr_space.h: Likewise.
16904         * lib/unictype/pr_titlecase.h: Likewise.
16905         * lib/unictype/pr_variation_selector.h: Likewise.
16906         * lib/unictype/pr_white_space.h: Likewise.
16907         * lib/unictype/pr_zero_width.h: Likewise.
16908         * lib/unictype/sy_c_ident.h: Likewise.
16909         * lib/unictype/sy_c_whitespace.h: Likewise.
16910         * lib/unictype/sy_java_whitespace.h: Likewise.
16911         * lib/uninorm/composition-table.gperf: Likewise.
16912         * lib/uninorm/decomposition-table1.h: Likewise.
16913         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16914         LB8.
16915         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16916         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16917         * modules/unictype/*: Bump version number of expected libunistring
16918         version.
16919
16920 2011-01-09  Bruno Haible  <bruno@clisp.org>
16921
16922         Update to Unicode 5.2.0.
16923         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16924         trailing whitespace removed.
16925
16926 2011-01-09  Bruno Haible  <bruno@clisp.org>
16927
16928         New Unicode character properties, from Unicode 5.2.0.
16929         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16930         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16931         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16932         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16933         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16934         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16935         uc_is_property_cased, uc_is_property_case_ignorable,
16936         uc_is_property_changes_when_lowercased,
16937         uc_is_property_changes_when_uppercased,
16938         uc_is_property_changes_when_titlecased,
16939         uc_is_property_changes_when_casefolded,
16940         uc_is_property_changes_when_casemapped): New declarations.
16941         * lib/unictype/pr_byname.gperf: Add the new properties.
16942         * modules/unictype/property-byname (Depends-on): Depend on the new
16943         properties modules.
16944         * modules/unictype/property-all (Depends-on): Likewise.
16945         * MODULES.html.sh (Unicode string functions): Add
16946         unictype/property-case-ignorable, unictype/property-cased,
16947         unictype/property-changes-when-casefolded,
16948         unictype/property-changes-when-casemapped,
16949         unictype/property-changes-when-lowercased,
16950         unictype/property-changes-when-titlecased,
16951         unictype/property-changes-when-uppercased.
16952
16953         New module 'unictype/property-changes-when-casemapped'.
16954         * modules/unictype/property-changes-when-casemapped: New file.
16955         * lib/unictype/pr_changes_when_casemapped.c: New file.
16956         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16957         generated by gen-uni-tables.
16958         * modules/unictype/property-changes-when-casemapped-tests: New file.
16959         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16960         automatically generated by gen-uni-tables.
16961
16962         New module 'unictype/property-changes-when-casefolded'.
16963         * modules/unictype/property-changes-when-casefolded: New file.
16964         * lib/unictype/pr_changes_when_casefolded.c: New file.
16965         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16966         generated by gen-uni-tables.
16967         * modules/unictype/property-changes-when-casefolded-tests: New file.
16968         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16969         automatically generated by gen-uni-tables.
16970
16971         New module 'unictype/property-changes-when-titlecased'.
16972         * modules/unictype/property-changes-when-titlecased: New file.
16973         * lib/unictype/pr_changes_when_titlecased.c: New file.
16974         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16975         generated by gen-uni-tables.
16976         * modules/unictype/property-changes-when-titlecased-tests: New file.
16977         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16978         automatically generated by gen-uni-tables.
16979
16980         New module 'unictype/property-changes-when-uppercased'.
16981         * modules/unictype/property-changes-when-uppercased: New file.
16982         * lib/unictype/pr_changes_when_uppercased.c: New file.
16983         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16984         generated by gen-uni-tables.
16985         * modules/unictype/property-changes-when-uppercased-tests: New file.
16986         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16987         automatically generated by gen-uni-tables.
16988
16989         New module 'unictype/property-changes-when-lowercased'.
16990         * modules/unictype/property-changes-when-lowercased: New file.
16991         * lib/unictype/pr_changes_when_lowercased.c: New file.
16992         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16993         generated by gen-uni-tables.
16994         * modules/unictype/property-changes-when-lowercased-tests: New file.
16995         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16996         automatically generated by gen-uni-tables.
16997
16998         New module 'unictype/property-case-ignorable'.
16999         * modules/unictype/property-case-ignorable: New file.
17000         * lib/unictype/pr_case_ignorable.c: New file.
17001         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
17002         by gen-uni-tables.
17003         * modules/unictype/property-case-ignorable-tests: New file.
17004         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
17005         generated by gen-uni-tables.
17006
17007         New module 'unictype/property-cased'.
17008         * modules/unictype/property-cased: New file.
17009         * lib/unictype/pr_cased.c: New file.
17010         * lib/unictype/pr_cased.h: New file, automatically generated by
17011         gen-uni-tables.
17012         * modules/unictype/property-cased-tests: New file.
17013         * tests/unictype/test-pr_cased.c: New file, automatically generated by
17014         gen-uni-tables.
17015
17016 2011-01-09  Bruno Haible  <bruno@clisp.org>
17017
17018         Update to Unicode 5.2.0.
17019         * lib/gen-uni-tables.c (output_predicate, output_category,
17020         output_combclass, output_bidi_category, output_decimal_digit_test,
17021         output_decimal_digit, output_digit_test, output_digit,
17022         output_numeric_test, output_numeric, output_mirror, output_scripts,
17023         output_scripts_byname, output_blocks, output_ident_category): Fix
17024         comment header.
17025         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
17026         get_wbp.
17027         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
17028         items.
17029         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
17030         Changes_When_Lowercased, Changes_When_Uppercased,
17031         Changes_When_Titlecased, Changes_When_Casefolded,
17032         Changes_When_Casemapped.
17033         (is_property_alphabetic, is_property_default_ignorable_code_point):
17034         Update for Unicode 5.2.0.
17035         (is_property_cased, is_property_case_ignorable,
17036         is_property_changes_when_lowercased,
17037         is_property_changes_when_uppercased,
17038         is_property_changes_when_titlecased,
17039         is_property_changes_when_casefolded,
17040         is_property_changes_when_casemapped): New functions.
17041         (output_properties): Output also the properties cased, case_ignorable,
17042         changes_when_lowercased, changes_when_uppercased,
17043         changes_when_titlecased, changes_when_casefolded,
17044         changes_when_casemapped.
17045         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
17046         Unicode TR#11 revision 17 -> 19.
17047         (LBP_CP): New enumeration value.
17048         (LBP_*): Adjust values accordingly.
17049         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17050         TR#14 revision 22 -> 24.
17051         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
17052         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
17053         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17054         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
17055         is_WBP_MIDLETTER.
17056         (output_composition_tables): Allow for 24 bits instead of 16 bits in
17057         the code1 and code2 of each composition rule.
17058         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
17059         * lib/unicase/ignorable.h: Likewise.
17060         * lib/unicase/tocasefold.h: Likewise.
17061         * lib/unicase/tolower.h: Likewise.
17062         * lib/unicase/totitle.h: Likewise.
17063         * lib/unicase/toupper.h: Likewise.
17064         * lib/unictype/bidi_of.h: Likewise.
17065         * lib/unictype/blocks.h: Likewise.
17066         * lib/unictype/categ_C.h: Likewise.
17067         * lib/unictype/categ_Cf.h: Likewise.
17068         * lib/unictype/categ_Cn.h: Likewise.
17069         * lib/unictype/categ_L.h: Likewise.
17070         * lib/unictype/categ_Ll.h: Likewise.
17071         * lib/unictype/categ_Lm.h: Likewise.
17072         * lib/unictype/categ_Lo.h: Likewise.
17073         * lib/unictype/categ_Lu.h: Likewise.
17074         * lib/unictype/categ_M.h: Likewise.
17075         * lib/unictype/categ_Mc.h: Likewise.
17076         * lib/unictype/categ_Mn.h: Likewise.
17077         * lib/unictype/categ_N.h: Likewise.
17078         * lib/unictype/categ_Nd.h: Likewise.
17079         * lib/unictype/categ_Nl.h: Likewise.
17080         * lib/unictype/categ_No.h: Likewise.
17081         * lib/unictype/categ_P.h: Likewise.
17082         * lib/unictype/categ_Pd.h: Likewise.
17083         * lib/unictype/categ_Po.h: Likewise.
17084         * lib/unictype/categ_S.h: Likewise.
17085         * lib/unictype/categ_Sc.h: Likewise.
17086         * lib/unictype/categ_So.h: Likewise.
17087         * lib/unictype/categ_of.h: Likewise.
17088         * lib/unictype/combining.h: Likewise.
17089         * lib/unictype/ctype_alnum.h: Likewise.
17090         * lib/unictype/ctype_alpha.h: Likewise.
17091         * lib/unictype/ctype_graph.h: Likewise.
17092         * lib/unictype/ctype_lower.h: Likewise.
17093         * lib/unictype/ctype_print.h: Likewise.
17094         * lib/unictype/ctype_punct.h: Likewise.
17095         * lib/unictype/ctype_upper.h: Likewise.
17096         * lib/unictype/decdigit.h: Likewise.
17097         * lib/unictype/digit.h: Likewise.
17098         * lib/unictype/numeric.h: Likewise.
17099         * lib/unictype/pr_alphabetic.h: Likewise.
17100         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17101         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17102         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17103         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17104         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17105         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17106         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17107         * lib/unictype/pr_combining.h: Likewise.
17108         * lib/unictype/pr_composite.h: Likewise.
17109         * lib/unictype/pr_currency_symbol.h: Likewise.
17110         * lib/unictype/pr_dash.h: Likewise.
17111         * lib/unictype/pr_decimal_digit.h: Likewise.
17112         * lib/unictype/pr_deprecated.h: Likewise.
17113         * lib/unictype/pr_diacritic.h: Likewise.
17114         * lib/unictype/pr_extender.h: Likewise.
17115         * lib/unictype/pr_grapheme_base.h: Likewise.
17116         * lib/unictype/pr_grapheme_extend.h: Likewise.
17117         * lib/unictype/pr_grapheme_link.h: Likewise.
17118         * lib/unictype/pr_id_continue.h: Likewise.
17119         * lib/unictype/pr_id_start.h: Likewise.
17120         * lib/unictype/pr_ideographic.h: Likewise.
17121         * lib/unictype/pr_ignorable_control.h: Likewise.
17122         * lib/unictype/pr_logical_order_exception.h: Likewise.
17123         * lib/unictype/pr_lowercase.h: Likewise.
17124         * lib/unictype/pr_numeric.h: Likewise.
17125         * lib/unictype/pr_other_alphabetic.h: Likewise.
17126         * lib/unictype/pr_punctuation.h: Likewise.
17127         * lib/unictype/pr_sentence_terminal.h: Likewise.
17128         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17129         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17130         * lib/unictype/pr_unified_ideograph.h: Likewise.
17131         * lib/unictype/pr_uppercase.h: Likewise.
17132         * lib/unictype/pr_xid_continue.h: Likewise.
17133         * lib/unictype/pr_xid_start.h: Likewise.
17134         * lib/unictype/pr_zero_width.h: Likewise.
17135         * lib/unictype/scripts.h: Likewise.
17136         * lib/unictype/scripts_byname.gperf: Likewise.
17137         * lib/unictype/sy_java_ident.h: Likewise.
17138         * lib/unigbrk/gbrkprop.h: Likewise.
17139         * lib/unilbrk/lbrkprop1.h: Likewise.
17140         * lib/unilbrk/lbrkprop2.h: Likewise.
17141         * lib/unilbrk/lbrktables.h: Likewise.
17142         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
17143         LBP_CP. Implement rule LB30.
17144         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
17145         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
17146         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
17147         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
17148         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
17149         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
17150         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
17151         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
17152         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
17153         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
17154         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
17155         bits instead of 16 bits in the code1 and code2 of each composition
17156         rule.
17157         (uc_composition): Update for Unicode 5.2.0.
17158         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
17159         * lib/uninorm/decomposition-table2.h: Likewise.
17160         * lib/uniwbrk/wbrkprop.h: Likewise.
17161         * tests/unicase/test-cased.c: Likewise.
17162         * tests/unicase/test-ignorable.c: Likewise.
17163         * tests/unicase/test-uc_tolower.c: Likewise.
17164         * tests/unicase/test-uc_totitle.c: Likewise.
17165         * tests/unicase/test-uc_toupper.c: Likewise.
17166         * tests/unictype/test-categ_C.c: Likewise.
17167         * tests/unictype/test-categ_Cf.c: Likewise.
17168         * tests/unictype/test-categ_Cn.c: Likewise.
17169         * tests/unictype/test-categ_L.c: Likewise.
17170         * tests/unictype/test-categ_Ll.c: Likewise.
17171         * tests/unictype/test-categ_Lm.c: Likewise.
17172         * tests/unictype/test-categ_Lo.c: Likewise.
17173         * tests/unictype/test-categ_Lu.c: Likewise.
17174         * tests/unictype/test-categ_M.c: Likewise.
17175         * tests/unictype/test-categ_Mc.c: Likewise.
17176         * tests/unictype/test-categ_Mn.c: Likewise.
17177         * tests/unictype/test-categ_N.c: Likewise.
17178         * tests/unictype/test-categ_Nd.c: Likewise.
17179         * tests/unictype/test-categ_Nl.c: Likewise.
17180         * tests/unictype/test-categ_No.c: Likewise.
17181         * tests/unictype/test-categ_P.c: Likewise.
17182         * tests/unictype/test-categ_Pd.c: Likewise.
17183         * tests/unictype/test-categ_Po.c: Likewise.
17184         * tests/unictype/test-categ_S.c: Likewise.
17185         * tests/unictype/test-categ_Sc.c: Likewise.
17186         * tests/unictype/test-categ_So.c: Likewise.
17187         * tests/unictype/test-ctype_alnum.c: Likewise.
17188         * tests/unictype/test-ctype_alpha.c: Likewise.
17189         * tests/unictype/test-ctype_graph.c: Likewise.
17190         * tests/unictype/test-ctype_lower.c: Likewise.
17191         * tests/unictype/test-ctype_print.c: Likewise.
17192         * tests/unictype/test-ctype_punct.c: Likewise.
17193         * tests/unictype/test-ctype_upper.c: Likewise.
17194         * tests/unictype/test-decdigit.h: Likewise.
17195         * tests/unictype/test-digit.h: Likewise.
17196         * tests/unictype/test-numeric.h: Likewise.
17197         * tests/unictype/test-pr_alphabetic.c: Likewise.
17198         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17199         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17200         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17201         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17202         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17203         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17204         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17205         * tests/unictype/test-pr_combining.c: Likewise.
17206         * tests/unictype/test-pr_composite.c: Likewise.
17207         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17208         * tests/unictype/test-pr_dash.c: Likewise.
17209         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17210         * tests/unictype/test-pr_deprecated.c: Likewise.
17211         * tests/unictype/test-pr_diacritic.c: Likewise.
17212         * tests/unictype/test-pr_extender.c: Likewise.
17213         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17214         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17215         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17216         * tests/unictype/test-pr_id_continue.c: Likewise.
17217         * tests/unictype/test-pr_id_start.c: Likewise.
17218         * tests/unictype/test-pr_ideographic.c: Likewise.
17219         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17220         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17221         * tests/unictype/test-pr_lowercase.c: Likewise.
17222         * tests/unictype/test-pr_numeric.c: Likewise.
17223         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17224         * tests/unictype/test-pr_punctuation.c: Likewise.
17225         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17226         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17227         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17228         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17229         * tests/unictype/test-pr_uppercase.c: Likewise.
17230         * tests/unictype/test-pr_xid_continue.c: Likewise.
17231         * tests/unictype/test-pr_xid_start.c: Likewise.
17232         * tests/unictype/test-pr_zero_width.c: Likewise.
17233         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17234         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
17235         changed behaviour: line breaking is now disallowed between a letter
17236         or '=' and '('.
17237         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17238         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17239         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
17240         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
17241         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17242         lib/uniwidth/width.c.
17243         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
17244         without comments, but with the original copyright notice.
17245         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17246         changes.
17247         * lib/unictype/categ_Cc.h: Likewise.
17248         * lib/unictype/categ_Co.h: Likewise.
17249         * lib/unictype/categ_Cs.h: Likewise.
17250         * lib/unictype/categ_Lt.h: Likewise.
17251         * lib/unictype/categ_Me.h: Likewise.
17252         * lib/unictype/categ_Pc.h: Likewise.
17253         * lib/unictype/categ_Pe.h: Likewise.
17254         * lib/unictype/categ_Pf.h: Likewise.
17255         * lib/unictype/categ_Pi.h: Likewise.
17256         * lib/unictype/categ_Ps.h: Likewise.
17257         * lib/unictype/categ_Sk.h: Likewise.
17258         * lib/unictype/categ_Sm.h: Likewise.
17259         * lib/unictype/categ_Z.h: Likewise.
17260         * lib/unictype/categ_Zl.h: Likewise.
17261         * lib/unictype/categ_Zp.h: Likewise.
17262         * lib/unictype/categ_Zs.h: Likewise.
17263         * lib/unictype/ctype_blank.h: Likewise.
17264         * lib/unictype/ctype_cntrl.h: Likewise.
17265         * lib/unictype/ctype_digit.h: Likewise.
17266         * lib/unictype/ctype_space.h: Likewise.
17267         * lib/unictype/ctype_xdigit.h: Likewise.
17268         * lib/unictype/mirror.h: Likewise.
17269         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17270         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17271         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17272         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17273         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17274         * lib/unictype/pr_bidi_control.h: Likewise.
17275         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17276         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17277         * lib/unictype/pr_bidi_pdf.h: Likewise.
17278         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17279         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17280         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17281         * lib/unictype/pr_format_control.h: Likewise.
17282         * lib/unictype/pr_hex_digit.h: Likewise.
17283         * lib/unictype/pr_hyphen.h: Likewise.
17284         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17285         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17286         * lib/unictype/pr_iso_control.h: Likewise.
17287         * lib/unictype/pr_join_control.h: Likewise.
17288         * lib/unictype/pr_left_of_pair.h: Likewise.
17289         * lib/unictype/pr_line_separator.h: Likewise.
17290         * lib/unictype/pr_math.h: Likewise.
17291         * lib/unictype/pr_non_break.h: Likewise.
17292         * lib/unictype/pr_not_a_character.h: Likewise.
17293         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17294         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17295         * lib/unictype/pr_other_id_continue.h: Likewise.
17296         * lib/unictype/pr_other_id_start.h: Likewise.
17297         * lib/unictype/pr_other_lowercase.h: Likewise.
17298         * lib/unictype/pr_other_math.h: Likewise.
17299         * lib/unictype/pr_other_uppercase.h: Likewise.
17300         * lib/unictype/pr_paired_punctuation.h: Likewise.
17301         * lib/unictype/pr_paragraph_separator.h: Likewise.
17302         * lib/unictype/pr_pattern_syntax.h: Likewise.
17303         * lib/unictype/pr_pattern_white_space.h: Likewise.
17304         * lib/unictype/pr_private_use.h: Likewise.
17305         * lib/unictype/pr_quotation_mark.h: Likewise.
17306         * lib/unictype/pr_radical.h: Likewise.
17307         * lib/unictype/pr_soft_dotted.h: Likewise.
17308         * lib/unictype/pr_space.h: Likewise.
17309         * lib/unictype/pr_titlecase.h: Likewise.
17310         * lib/unictype/pr_variation_selector.h: Likewise.
17311         * lib/unictype/pr_white_space.h: Likewise.
17312         * lib/unictype/sy_c_ident.h: Likewise.
17313         * lib/unictype/sy_c_whitespace.h: Likewise.
17314         * lib/unictype/sy_java_whitespace.h: Likewise.
17315         * modules/uni*/*: Bump version number of expected libunistring version.
17316         Reported by Simon Josefsson.
17317
17318 2011-01-09  Karl Heuer  <kwzh@gnu.org>
17319
17320         useless-if-before-free: fix typo in --help and make the internal,
17321         automatic version date update process work once again.
17322         --help output contained a NUL character instead of the
17323         backslash-zero that was intended.  Also, the "must lie within
17324         the first 8 lines" line is on line 9, and hence not getting
17325         automatically updated.
17326         * build-aux/useless-if-before-free: Fix the former by adding a
17327         backslash, and the latter by condensing the three lines of what-it-does
17328         to a single line, leaving one line of slack for the future.
17329
17330 2011-01-09  Bruno Haible  <bruno@clisp.org>
17331
17332         uniwidth/width: Fix width of U+1D173..U+1D17A.
17333         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
17334         symbolic_width, output_width_property_test): New functions.
17335         (main): Invoke output_nonspacing_property, output_width_property_test.
17336         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
17337         U+1D173..U+1D17A.
17338         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
17339         1.
17340         * modules/uniwidth/*: Bump version number of expected libunistring
17341         version.
17342         * modules/unilbrk/*: Likewise.
17343
17344 2011-01-08  Bruno Haible  <bruno@clisp.org>
17345
17346         uninorm tests: Preserve copyright of Unicode data file.
17347         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
17348         Mention modifications.
17349
17350 2011-01-08  Bruno Haible  <bruno@clisp.org>
17351
17352         gen-uni-tables: Prepare for Unicode 5.2.0.
17353         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
17354         (debug_output_lbp, output_lbp): Update.
17355
17356 2011-01-08  Bruno Haible  <bruno@clisp.org>
17357
17358         unilbrk: Clarify gen-uni-tables.c code.
17359         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
17360         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
17361         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
17362
17363 2011-01-07  Bruno Haible  <bruno@clisp.org>
17364
17365         strtod: Restore errno when successfully parsing Infinity or NaN.
17366         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
17367         restore the original errno.
17368
17369 2011-01-07  Bruno Haible  <bruno@clisp.org>
17370
17371         remove test: Avoid failure on HP-UX 11.
17372         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
17373
17374 2011-01-07  Bruno Haible  <bruno@clisp.org>
17375
17376         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
17377         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
17378         error code.
17379
17380 2011-01-07  Pádraig Brady <P@draigBrady.com>
17381
17382         ignore-value: fixup comments, and add Eric Blake
17383         as an author since he rewrote the macros.
17384         * lib/ignore-value.h (ignore_value):  State that
17385         we now support aggregates.  Also specify exactly
17386         when the GCC warn_unused_result feature was added.
17387
17388 2011-01-06  Eric Blake  <eblake@redhat.com>
17389
17390         ignore-value: support aggregate types
17391         * lib/ignore-value.h (ignore_value): Provide separate gcc
17392         definition.
17393         * modules/ignore-value-tests: New test module.
17394         * tests/test-ignore-value.c: New test.
17395
17396         maint.mk: improve sc_prohibit_strcmp regex
17397         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
17398         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
17399         definition of STRNEQ.
17400
17401         signal: work around Haiku issue with SIGBUS
17402         * lib/siglist.h: Add comment.
17403         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
17404         strsignal's favoring of SIGSEGV.
17405         * tests/test-signal.c (main): Avoid test failure.
17406         * doc/posix-headers/signal.texi (signal.h): Document the issue.
17407         Reported by Scott McCreary.
17408
17409         maint.mk: add pre-release check to ensure submodule commits are public
17410         * top/maint.mk (public-submodule-commit): New rule.
17411         (submodule-checks): New variable.
17412         (alpha beta stable): Depend on the variable.
17413
17414 2011-01-05  Pádraig Brady <P@draigBrady.com>
17415         and Jim Meyering  <meyering@redhat.com>
17416
17417         ignore-value: make ignore_value more generic; deprecate ignore_ptr
17418         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
17419         (ATTRIBUTE_DEPRECATED): Define.
17420         (_ignore_case): New function.
17421         (ignore_value): New macro, to replace the old function.
17422         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
17423         * modules/ignore-value (Depends-on): Add stdint.
17424
17425 2011-01-04  Eric Blake  <eblake@redhat.com>
17426
17427         doc: regenerate INSTALL
17428         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
17429         @firstparagraphindent support, now that autoconf dropped it.
17430         (INSTALL_PRELUDE): Reinstate old macro.
17431         * doc/install.texi: Resync from autoconf.
17432         * doc/INSTALL: Reflect recent autoconf update.
17433         * doc/INSTALL.ISO: Likewise.
17434         * doc/INSTALL.UTF-8: Likewise.
17435         Reported by Karl Berry.
17436
17437 2011-01-04  Bruce Korb  <address@hidden>
17438
17439         git-version-gen: avoid a sub-shell
17440         * build-aux/git-version-gen: Redirect stderr in `...` via
17441         "exec 2>...", rather than via an added sub-shell.
17442
17443 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
17444
17445         git-version-gen: use (...) rather than sh -c '...'
17446         * build-aux/git-version-gen: Rather than hard-coding a shell's name
17447         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
17448
17449 2011-01-03  Jim Meyering  <meyering@redhat.com>
17450
17451         git-version-gen: convert leading TABs to spaces
17452         * build-aux/git-version-gen: Expand leading TABs.
17453
17454         git-version-gen: handle failed "git rev-list"
17455         * build-aux/git-version-gen: Rather than leaking a "fatal" error
17456         from git and proceeding as if it had succeeded but printed no SHA1
17457         checksums, suppress the diagnostic and handle the failure.
17458         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
17459
17460         git-version-gen: include command name in one more diagnostic
17461         * build-aux/git-version-gen: When the required .tarball-version file
17462         was missing or unreadable, you might see the diagnostic from "cat",
17463         but no trace of the name of the invoking script.  Now, you still see
17464         the diagnostic from cat, but also get one from "git-version-gen: ".
17465         Inspired by a patch from Bruce Korb.
17466
17467         update-copyright: adjust test to match changed code
17468         * tests/test-update-copyright.sh: Change test's expected output
17469         to match new actual output.
17470
17471 2011-01-02  Bruno Haible  <bruno@clisp.org>
17472
17473         getlogin_r: Avoid test failure on HP-UX 11.
17474         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
17475         ERANGE when the second argument is zero.
17476         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
17477         portability problem.
17478
17479 2011-01-02  Bruce Korb  <bkorb@gnu.org>
17480
17481         * build-aux/update-copyright: doc Simon's changes
17482
17483 2011-01-02  Simon Josefsson  <simon@josefsson.org>
17484
17485         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
17486         environment variable.
17487
17488 2011-01-02  Bruno Haible  <bruno@clisp.org>
17489
17490         unigbrk: Avoid gcc warnings.
17491         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
17492         unused variable.
17493         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
17494         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
17495         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
17496         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
17497         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
17498         Change type of first argument to 'const char *'.
17499         (main): Remove unused variable.
17500         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
17501         type of first argument to 'const char *'.
17502         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
17503         Likewise.
17504         (main): Change type of variable 's'.
17505         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
17506         to 'int'.
17507
17508 2011-01-02  Bruno Haible  <bruno@clisp.org>
17509
17510         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
17511         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
17512         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
17513         bug.
17514         * lib/pwrite.c: Undo 2010-12-31 patch.
17515         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
17516
17517 2011-01-02  Bruno Haible  <bruno@clisp.org>
17518
17519         pread: Fix test whether it works.
17520         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
17521
17522 2011-01-02  Bruno Haible  <bruno@clisp.org>
17523
17524         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
17525         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
17526         ends in "6". Don't require a specific month name. Try also the locale
17527         names found on HP-UX 11 and Solaris 7.
17528
17529 2011-01-02  Bruno Haible  <bruno@clisp.org>
17530
17531         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
17532         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
17533         C linkage.
17534         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
17535
17536 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17537
17538         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
17539         for consistency, since the "cluster" term is not used elsewhere.
17540         * lib/unigbrk.in.h: Update name.
17541         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
17542         * lib/unigbrk/u16-grapheme-next.c: Update name.
17543         * lib/unigbrk/u16-grapheme-prev.c: Update name.
17544         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
17545         * lib/unigbrk/u32-grapheme-next.c: Update name.
17546         * lib/unigbrk/u32-grapheme-prev.c: Update name.
17547         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
17548         * lib/unigbrk/u8-grapheme-next.c: Update name.
17549         * lib/unigbrk/u8-grapheme-prev.c: Update name.
17550         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
17551         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
17552         Suggested by Bruno Haible.
17553
17554 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17555
17556         Remove module 'u8-grapheme-len' as too redundant with
17557         'u8-grapheme-next'.
17558         * modules/unigbrk/u8-grapheme-len: Delete file.
17559         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
17560         * lib/unigbrk.in.h: Remove prototype for deleted function.
17561         * lib/unigbrk/u8-grapheme-len.c: Delete file.
17562         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
17563
17564         Remove module 'u16-grapheme-len' as too redundant with
17565         'u16-grapheme-next'.
17566         * modules/unigbrk/u16-grapheme-len: Delete file.
17567         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
17568         * lib/unigbrk.in.h: Remove prototype for deleted function.
17569         * lib/unigbrk/u16-grapheme-len.c: Delete file.
17570         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
17571
17572         Remove module 'u32-grapheme-len' as too redundant with
17573         'u32-grapheme-next'.
17574         * modules/unigbrk/u32-grapheme-len: Delete file.
17575         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
17576         * lib/unigbrk.in.h: Remove prototype for deleted function.
17577         * lib/unigbrk/u32-grapheme-len.c: Delete file.
17578         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
17579
17580         Suggested by Bruno Haible.
17581
17582 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17583
17584         * unigbrk.in.h: Fix typo: "ben" => "been".
17585         Reported by Bruno Haible.
17586
17587 2011-01-01  Jim Meyering  <meyering@redhat.com>
17588
17589         maint: update almost all copyright ranges to include 2011
17590         Run the new "make update-copyright" rule.
17591
17592 2011-01-01  Jim Meyering  <meyering@redhat.com>
17593
17594         maint: update-copyright: exempt doc/INSTALL*
17595         * Makefile (update-copyright): Also exclude doc/INSTALL*,
17596         since they are generated.  Suggested by Bruno Haible.
17597
17598 2011-01-01  Jim Meyering  <meyering@redhat.com>
17599
17600         maint: refine the update-copyright rule
17601         * Makefile (update-copyright): Also exclude any file that includes
17602         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
17603         code that merely generates the comment.
17604
17605 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17606
17607         New module 'u8-grapheme-len'.
17608         * modules/unigbrk/u8-grapheme-len: New file.
17609         * modules/unigbrk/u8-grapheme-len-tests: New file.
17610         * lib/unigbrk.in.h: Add prototype for new function.
17611         * lib/unigbrk/u8-grapheme-len.c: New file.
17612         * tests/unigbrk/test-u8-grapheme-len.c: New file.
17613
17614         New module 'u16-grapheme-len'.
17615         * modules/unigbrk/u16-grapheme-len: New file.
17616         * modules/unigbrk/u16-grapheme-len-tests: New file.
17617         * lib/unigbrk.in.h: Add prototype for new function.
17618         * lib/unigbrk/u16-grapheme-len.c: New file.
17619         * tests/unigbrk/test-u16-grapheme-len.c: New file.
17620
17621         New module 'u32-grapheme-len'.
17622         * modules/unigbrk/u32-grapheme-len: New file.
17623         * modules/unigbrk/u32-grapheme-len-tests: New file.
17624         * lib/unigbrk.in.h: Add prototype for new function.
17625         * lib/unigbrk/u32-grapheme-len.c: New file.
17626         * tests/unigbrk/test-u32-grapheme-len.c: New file.
17627
17628         New module 'u8-grapheme-next'.
17629         * modules/unigbrk/u8-grapheme-next: New file.
17630         * modules/unigbrk/u8-grapheme-next-tests: New file.
17631         * lib/unigbrk.in.h: Add prototype for new function.
17632         * lib/unigbrk/u8-grapheme-next.c: New file.
17633         * tests/unigbrk/test-u8-grapheme-next.c: New file.
17634
17635         New module 'u16-grapheme-next'.
17636         * modules/unigbrk/u16-grapheme-next: New file.
17637         * modules/unigbrk/u16-grapheme-next-tests: New file.
17638         * lib/unigbrk.in.h: Add prototype for new function.
17639         * lib/unigbrk/u16-grapheme-next.c: New file.
17640         * tests/unigbrk/test-u16-grapheme-next.c: New file.
17641
17642         New module 'u32-grapheme-next'.
17643         * modules/unigbrk/u32-grapheme-next: New file.
17644         * modules/unigbrk/u32-grapheme-next-tests: New file.
17645         * lib/unigbrk.in.h: Add prototype for new function.
17646         * lib/unigbrk/u32-grapheme-next.c: New file.
17647         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17648
17649         New module 'u8-grapheme-prev'.
17650         * modules/unigbrk/u8-grapheme-prev: New file.
17651         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17652         * lib/unigbrk.in.h: Add prototype for new function.
17653         * lib/unigbrk/u8-grapheme-prev.c: New file.
17654         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17655
17656         New module 'u16-grapheme-prev'.
17657         * modules/unigbrk/u16-grapheme-prev: New file.
17658         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17659         * lib/unigbrk.in.h: Add prototype for new function.
17660         * lib/unigbrk/u16-grapheme-prev.c: New file.
17661         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17662
17663         New module 'u32-grapheme-prev'.
17664         * modules/unigbrk/u32-grapheme-prev: New file.
17665         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17666         * lib/unigbrk.in.h: Add prototype for new function.
17667         * lib/unigbrk/u32-grapheme-prev.c: New file.
17668         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17669
17670         New module 'u8-grapheme-breaks'.
17671         * modules/unigbrk/u8-grapheme-breaks: New file.
17672         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17673         * lib/unigbrk.in.h: Add prototype for new function.
17674         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17675         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17676
17677         New module 'u16-grapheme-breaks'.
17678         * modules/unigbrk/u16-grapheme-breaks: New file.
17679         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17680         * lib/unigbrk.in.h: Add prototype for new function.
17681         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17682         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17683
17684         New module 'u32-grapheme-breaks'.
17685         * modules/unigbrk/u32-grapheme-breaks: New file.
17686         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17687         * lib/unigbrk.in.h: Add prototype for new function.
17688         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17689         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17690
17691         New module 'ulc-grapheme-breaks'.
17692         * modules/unigbrk/ulc-grapheme-breaks: New file.
17693         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
17694         * m4/locale-ar.m4: New file.
17695         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
17696         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
17697         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
17698
17699 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17700
17701         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
17702         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
17703         modified how this file was generated before I initially submitted
17704         the module, but failed to regenerate it.  This meant that several
17705         of the level2 entries were wrong.
17706         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17707         Remove the division-by-2 that is folded into the table now that
17708         gbrkprop.h has been regenerated properly.  Now -1 entries are
17709         handled correctly.
17710
17711         New module 'unigbrk/uc-gbrk-prop-tests'.
17712         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17713         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17714         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17715         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17716
17717 2011-01-01  Bruno Haible  <bruno@clisp.org>
17718
17719         Avoid use of hexadecimal escapes.
17720         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17721         instead of hexadecimal escapes.
17722
17723 2011-01-01  Jim Meyering  <meyering@redhat.com>
17724
17725         maint: new rule to update copyright year ranges
17726         * Makefile (update-copyright): New rule.
17727
17728         maint: indent with TABs in Makefile
17729         * Makefile: Expand leading sequences of spaces to TABs
17730
17731         version-etc: update the copyright year it reports
17732         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17733
17734 2010-12-31  Bruno Haible  <bruno@clisp.org>
17735
17736         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
17737         * lib/isfinite.c (zerof, zerod, zerol): New variables.
17738         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
17739         zero.
17740
17741 2010-12-31  Bruno Haible  <bruno@clisp.org>
17742
17743         pwrite: Work around HP-UX 11.11 bug.
17744         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
17745         works and set REPLACE_PWRITE if not.
17746         * lib/pwrite.c (pwrite): Add an implementation that uses the system
17747         function.
17748         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
17749
17750 2010-12-31  Bruno Haible  <bruno@clisp.org>
17751
17752         pread: Work around HP-UX 11 bugs.
17753         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
17754         and set REPLACE_PREAD if not.
17755         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
17756
17757 2010-12-31  Eric Blake  <eblake@redhat.com>
17758
17759         nl_langinfo: fix YESEXPR on Irix 6.5
17760         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17761         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17762         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17763         it.
17764
17765 2010-12-31  Bruno Haible  <bruno@clisp.org>
17766
17767         iconv: Document HP-UX 11 bug.
17768         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17769
17770 2010-12-31  Bruno Haible  <bruno@clisp.org>
17771
17772         ldexpl: Fix link error on HP-UX 11.
17773         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17774         LDEXPL_LIBM, using $ISNANL_LIBM.
17775
17776 2010-12-31  Eric Blake  <eblake@redhat.com>
17777
17778         ftello: avoid compilation failure with SunStudio c89
17779         * lib/ftello.c (ftello): Use lseek, not llseek.
17780
17781         tests: avoid failing coreutils tests on cygwin
17782         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17783         (create_exe_shims_): Return 0 when skipping.
17784
17785 2010-12-31  Bruno Haible  <bruno@clisp.org>
17786
17787         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17788         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17789
17790 2010-12-31  Bruno Haible  <bruno@clisp.org>
17791
17792         waitpid: Fix link error in C++ mode.
17793         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
17794
17795 2010-12-31  Bruno Haible  <bruno@clisp.org>
17796
17797         isnan: Use GCC built-ins when possible.
17798         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
17799         __builtin_isnan.
17800         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
17801         (isnan): Define using GCC built-ins for GCC >= 4.0.
17802
17803 2010-12-31  Bruno Haible  <bruno@clisp.org>
17804
17805         isnand: Fix mistake.
17806         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
17807         __builtin_isnand.
17808
17809 2010-12-31  Bruno Haible  <bruno@clisp.org>
17810
17811         open: Avoid C++ error on HP-UX 11.
17812         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17813
17814 2010-12-31  Bruno Haible  <bruno@clisp.org>
17815
17816         time_r: Add missing declarations on HP-UX 11.
17817         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17818         instead of HAVE_LOCALTIME_R.
17819         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17820         HAVE_LOCALTIME_R always.
17821         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17822         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17823         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17824         HAVE_LOCALTIME_R.
17825         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17826         * doc/posix-functions/localtime_r.texi: Likewise.
17827
17828 2010-12-29  Eric Blake  <eblake@redhat.com>
17829
17830         mountlist: tweak previous commit
17831         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17832         Reported by Paul Eggert.
17833
17834         mountlist: fix local drive detection on cygwin
17835         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17836         that works for cygwin.
17837
17838 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17839
17840         ftoastr, snprintf: ftoastr + snprintf module
17841         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17842         since the snprintf module now should be good enough here.
17843         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17844         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17845         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17846         GNULIB_SNPRINTF only for the test directory, and the latter
17847         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17848         seems to suffice by itself.
17849
17850 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17851
17852         alloca: one step towards thread-safety
17853         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17854         need for a static variable.  All callers changed.  This does not
17855         make the alloca replacement thread-safe, but it's one step.
17856
17857         tests: minor indenting change
17858         * tests/init.sh: Sync from coreutils housekeeping patch
17859         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17860         to keep lines within 80 columns.
17861
17862 2010-12-28  Jim Meyering  <meyering@redhat.com>
17863
17864         regex: don't infloop on persistent failing calloc
17865         * lib/regexec.c (build_trtable): Return failure indication upon
17866         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17867         In glibc, this was fixed for version 2.13:
17868         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17869
17870 2010-12-28  Bruno Haible  <bruno@clisp.org>
17871             Paul Eggert <eggert@cs.ucla.edu>
17872
17873         linkat: Make implementation robust against system behaviour variations.
17874         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17875         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17876         way, and to -2 if it needs a generic runtime test.
17877         * lib/linkat.c (solaris_optimized_link_immediate,
17878         solaris_optimized_link_follow): New functions.
17879         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17880         (check_same_link): Use it.
17881
17882 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17883
17884         New module 'unigbrk/base'.
17885         * modules/unigbrk/base: New file.
17886         * lib/unigbrk.in.h: New file.
17887
17888         New module 'unigbrk/uc-gbrk-prop'.
17889         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17890         * modules/unigbrk/uc-gbrk-prop: New file.
17891         * lib/unigbrk/gbrkprop.h: New file.
17892         * lib/unigbrk/uc-gbrk-prop.c: New file.
17893
17894         New module 'unigbrk/uc-is-grapheme-break'.
17895         * modules/unigbrk/uc-is-grapheme-break: New file.
17896         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17897         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17898         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17899         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17900         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17901
17902         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17903
17904 2010-12-27  Bruno Haible  <bruno@clisp.org>
17905
17906         linkat test: Avoid failure on Solaris 11 2010-11.
17907         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17908
17909 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17910
17911         utimens: work around glibc rounding bug on more platforms
17912         * lib/utimens.c (fdutimens): Work around rounding bug even if
17913         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17914         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17915
17916 2010-12-27  Bruno Haible  <bruno@clisp.org>
17917
17918         select tests: Improve comments.
17919         * tests/test-select.c (do_select): Add comments.
17920
17921 2010-12-27  Bruno Haible  <bruno@clisp.org>
17922
17923         select tests: Safer way of handling timeout.
17924         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17925         at every invocation.
17926
17927 2010-12-27  Bruno Haible  <bruno@clisp.org>
17928
17929         select tests: Use 'bool' where appropriate.
17930         * tests/test-select.c (connect_to_socket): Change argument type to
17931         'bool'.
17932
17933 2010-12-27  Bruno Haible  <bruno@clisp.org>
17934
17935         select tests: Use existing modules.
17936         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17937         (configure.ac): Don't test for unistd.h.
17938         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17939         declared in <unistd.h>.
17940
17941 2010-12-27  Bruno Haible  <bruno@clisp.org>
17942
17943         mbrtowc: Work around a Solaris 7 bug.
17944         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17945         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17946         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17947         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17948         MBRTOWC_NULL_ARG1_BUG.
17949         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17950         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17951         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17952         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17953
17954 2010-12-27  Jim Meyering  <meyering@redhat.com>
17955
17956         read-file.c: tweak syntax
17957         * lib/read-file.c (fread_file): Remove space after "*" in function
17958         definitions.
17959
17960 2010-12-27  Bruno Haible  <bruno@clisp.org>
17961
17962         times test: Avoid gcc warnings on OSF/1.
17963         * tests/test-times.c (main): Cast printf arguments from clock_t to
17964         'long int'.
17965
17966 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17967
17968         utimens: work around glibc rounding bug on older Linux kernels
17969         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17970         on Linux with a glibc whose utimes might not work, then work
17971         around a longstanding glibc bug involving rounding rather than
17972         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17973         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17974
17975 2010-12-26  Bruno Haible  <bruno@clisp.org>
17976
17977         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17978         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17979         _GL_CXXALIAS_SYS.
17980         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17981
17982 2010-12-26  Bruno Haible  <bruno@clisp.org>
17983
17984         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17985         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17986         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17987         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17988         looking for the declaration.
17989         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17990         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17991         problem.
17992         * doc/posix-functions/inet_pton.texi: Likewise.
17993
17994 2010-12-26  Bruno Haible  <bruno@clisp.org>
17995
17996         arpa_inet: Use the common idioms with C++ support.
17997         * lib/arpa_inet.in.h: Include c++defs.h.
17998         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17999         support.
18000         * modules/arpa_inet (Depends-on): Add c++defs.
18001         (Makefile.am): Substitute the contents of c++defs.h.
18002         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
18003         * modules/arpa_inet-c++-tests: New file.
18004         * tests/test-arpa_inet-c++.cc: New file.
18005
18006 2010-12-25  Bruno Haible  <bruno@clisp.org>
18007
18008         Fix more C++ link errors on Solaris 8.
18009         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
18010         $(LIB_EACCESS).
18011         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
18012         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
18013         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
18014         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
18015         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
18016
18017 2010-12-25  Bruno Haible  <bruno@clisp.org>
18018
18019         printf-posix: Fix link error when a non-GCC compiler is used.
18020         * lib/stdio.in.h (printf): When not using GCC, override printf
18021         correctly.
18022         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18023
18024 2010-12-25  Bruno Haible  <bruno@clisp.org>
18025
18026         strerror_r-posix: Update doc.
18027         * doc/posix-functions/strerror_r.texi: Update doc about the return
18028         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
18029
18030 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18031
18032         utimens: simplify the logic of the previous change
18033         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
18034         This should not affect whether the test succeeds or fails.
18035
18036         utimens: configure better on hosts with NFS clock skew
18037         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
18038         uses the clock of the local host.  It might use the clock of the
18039         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
18040         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18041
18042 2010-12-25  Bruno Haible  <bruno@clisp.org>
18043
18044         ptsname test: Avoid failure on Solaris.
18045         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
18046         open a pseudo-terminal; don't use BSD-style ptys.
18047         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
18048
18049 2010-12-25  Bruno Haible  <bruno@clisp.org>
18050
18051         ptsname: Avoid ERANGE failure on some systems.
18052         * lib/ptsname.c (buffer): Increase size.
18053
18054 2010-12-25  Bruno Haible  <bruno@clisp.org>
18055
18056         rename, renameat: Avoid test failures at NFS mounted locations.
18057         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
18058         so that subsequent mkdir calls succeed.
18059
18060 2010-12-25  Bruno Haible  <bruno@clisp.org>
18061
18062         iswblank: Fix C++ link error on Solaris 8.
18063         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
18064         _GL_FUNCDECL_SYS.
18065
18066 2010-12-25  Bruno Haible  <bruno@clisp.org>
18067
18068         unistd: Fix C++ link error on Solaris 8.
18069         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
18070
18071 2010-12-25  Bruno Haible  <bruno@clisp.org>
18072
18073         readlink doc: Mention an old glibc bug.
18074         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
18075
18076 2010-12-25  Bruno Haible  <bruno@clisp.org>
18077
18078         fcntl-h: Fix for use of C++ on glibc systems.
18079         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18080         also on glibc systems in C++ mode.
18081         Reported by Gary V. Vaughan <gary@gnu.org>.
18082
18083 2010-12-25  Bruno Haible  <bruno@clisp.org>
18084
18085         roundl-ieee: Make it work on OSF/1 5.1 with cc.
18086         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
18087
18088 2010-12-25  Bruno Haible  <bruno@clisp.org>
18089
18090         truncl-ieee: Make it work on OSF/1 5.1 with cc.
18091         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
18092         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18093         test whether truncl works according to ISO C 99 with IEC 60559.
18094         * m4/truncl-ieee.m4: New file.
18095         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
18096         m4/signbit.m4.
18097         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
18098
18099 2010-12-25  Bruno Haible  <bruno@clisp.org>
18100
18101         ceill-ieee: Make it work on OSF/1 5.1 with cc.
18102         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
18103         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
18104         test whether ceill works according to ISO C 99 with IEC 60559.
18105         * m4/ceill-ieee.m4: New file.
18106         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
18107         m4/signbit.m4.
18108         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
18109
18110 2010-12-25  Bruno Haible  <bruno@clisp.org>
18111
18112         Ensure all prerequisites of <wchar.h> are included.
18113         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
18114         before <wchar.h>.
18115         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18116         gl_MBRLEN_NUL_RETVAL): Likewise.
18117         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18118         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
18119         AC_FUNC_MBRTOWC): Likewise.
18120         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18121         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18122         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18123         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18124         Likewise.
18125         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18126         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
18127         (gl_WCHAR_H): Improve comments.
18128         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18129
18130 2010-12-25  Bruno Haible  <bruno@clisp.org>
18131
18132         strtok_r: Fix C syntax error in autoconf macro.
18133         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
18134         characters in test program.
18135
18136 2010-12-24  Bruno Haible  <bruno@clisp.org>
18137
18138         ceil, trunc, round: Fix gcc warnings.
18139         * lib/ceil.c (MIN): Undefine before redefining.
18140         * lib/trunc.c (MIN): Likewise.
18141         * lib/round.c (MIN): Likewise.
18142         Include <math.h> first.
18143
18144 2010-12-24  Bruno Haible  <bruno@clisp.org>
18145
18146         select tests: Avoid failures on OSF/1 5.1.
18147         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
18148         failure of closing the last socket; it may fail with ECONNRESET.
18149
18150 2010-12-24  Eric Blake  <eblake@redhat.com>
18151
18152         stdint: avoid HP-UX 10.20 preprocessor bug
18153         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
18154         than #if.
18155         * tests/test-floor2.c (main): Likewise.
18156         Reported by Peter O'Gorman.
18157
18158         pipe: make obsoletion transition easier
18159         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
18160         * modules/pipe (Files): Include revived file.
18161         (Include): Drop reference, to mirror getdate's behavior.
18162
18163 2010-12-24  Bruno Haible  <bruno@clisp.org>
18164
18165         sys_socket: Hide mismatch of declarations on NonStop Kernel.
18166         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
18167         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
18168         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18169
18170 2010-12-24  Bruno Haible  <bruno@clisp.org>
18171
18172         gethostname: Ensure declaration on NonStop Kernel.
18173         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
18174         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18175
18176 2010-12-24  Bruno Haible  <bruno@clisp.org>
18177
18178         sys_select: Ensure all necessary types on NonStop Kernel.
18179         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
18180         include <sys/time.h>.
18181         * doc/posix-headers/sys_select.texi: Mention that it's missing on
18182         NonStop Kernel.
18183         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18184
18185 2010-12-24  Bruno Haible  <bruno@clisp.org>
18186
18187         sys_select: Remove unneeded include.
18188         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
18189         have <sys/select.h>.
18190
18191 2010-12-24  Bruno Haible  <bruno@clisp.org>
18192
18193         gethostname: Provide a fallback for HOST_NAME_MAX.
18194         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
18195         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
18196         instead.
18197         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18198
18199 2010-12-24  Bruno Haible  <bruno@clisp.org>
18200
18201         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
18202         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
18203         (SA_RESTART): Likewise.
18204         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18205
18206 2010-12-24  Bruno Haible  <bruno@clisp.org>
18207
18208         signal: Define NSIG.
18209         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
18210         * tests/test-signal.c (nsig): New variable.
18211         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18212
18213 2010-12-24  Bruno Haible  <bruno@clisp.org>
18214
18215         rename, renameat: Avoid test failures on OSF/1 5.1.
18216         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
18217         alternative error codes.
18218         * tests/test-renameat.c (main): Likewise.
18219
18220 2010-12-24  Bruno Haible  <bruno@clisp.org>
18221
18222         *printf: Detect large precisions bug on Solaris 10/SPARC.
18223         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
18224         by Paul Eggert.
18225         * tests/test-snprintf-posix.h (test_function): Add this test code here
18226         too.
18227         * tests/test-sprintf-posix.h (test_function): Likewise.
18228         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18229         * tests/test-vasprintf-posix.c (test_function): Likewise.
18230         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
18231         around by gnulib.
18232         * doc/posix-functions/printf.texi: Likewise.
18233         * doc/posix-functions/snprintf.texi: Likewise.
18234         * doc/posix-functions/sprintf.texi: Likewise.
18235         * doc/posix-functions/vfprintf.texi: Likewise.
18236         * doc/posix-functions/vprintf.texi: Likewise.
18237         * doc/posix-functions/vsnprintf.texi: Likewise.
18238         * doc/posix-functions/vsprintf.texi: Likewise.
18239         * doc/posix-functions/dprintf.texi: Undo last commit.
18240         * doc/posix-functions/vdprintf.texi: Likewise.
18241
18242 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18243
18244         tests: port test-fdutimensat.c to Solaris 8
18245         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
18246         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
18247         On Solaris 8, it fails with errno == ENOSYS, because there is no
18248         futimens (so it can't use the fd), and there is no lutimens (so it
18249         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
18250
18251         vsnprintf: make more consistent with snprintf; doc fixes
18252
18253         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
18254         the byte count return problem was promoted from the snprintf-posix
18255         to the snprintf module.
18256         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18257         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
18258         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
18259         * tests/test-snprintf.c (main): Check the byte count returned.
18260         * tests/test-vsnprintf.c (main): Likewise.
18261
18262 2010-12-23  Eric Blake  <eblake@redhat.com>
18263
18264         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
18265         * modules/sigpipe (License): Relax license.
18266
18267 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18268
18269         doc: document Solaris printf bug with large float precisions
18270         * doc/posix-functions/dprintf.texi (dprintf):
18271         * doc/posix-functions/fprintf.texi (fprintf):
18272         * doc/posix-functions/printf.texi (printf):
18273         * doc/posix-functions/snprintf.texi (snprintf):
18274         * doc/posix-functions/sprintf.texi (sprintf):
18275         * doc/posix-functions/vdprintf.texi (vdprintf):
18276         * doc/posix-functions/vfprintf.texi (vfprintf):
18277         * doc/posix-functions/vprintf.texi (vprintf):
18278         * doc/posix-functions/vsnprintf.texi (vsnprintf):
18279         * doc/posix-functions/vsprintf.texi (vsprintf):
18280         Mention that these functions mishandle large floating point
18281         precisions on Solaris 10.  The same bug is also present in Solaris
18282         8, and I assume earlier.  This causes "cd gnulib-tests; make
18283         check" to fail on Solaris 8 (and I assume, later) when building
18284         the latest coreutils, in test-vasprintf-posix's call to
18285         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
18286         the wide flavors (e.g., wprintf) so this patch just updates the
18287         documentation for the narrow ones.
18288
18289         test-posixtm.c: add two tests
18290         * tests/test-posixtm.c: Add two tests, to highlight the
18291         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
18292         around this bug; this is merely to document it.
18293
18294 2010-12-22  Bruno Haible  <bruno@clisp.org>
18295
18296         getlogin_r: Work around portability problem on OSF/1.
18297         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
18298         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
18299         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
18300         test for a truncated result.
18301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
18302         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
18303         * modules/getlogin_r (Depends-on): Add memchr.
18304         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
18305
18306 2010-12-22  Bruno Haible  <bruno@clisp.org>
18307
18308         ptsname: Avoid test failure on OSF/1 5.1.
18309         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
18310         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
18311         (same_slave): New function.
18312         (main): Use it to compare ptsname's result with the expected file name.
18313
18314 2010-12-22  Bruno Haible  <bruno@clisp.org>
18315
18316         Port extended stdio modules to HP NonStop Kernel.
18317         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
18318         macros.
18319         * lib/fbufmode.c: Update comments.
18320         * lib/fflush.c: Likewise.
18321         * lib/fpurge.c: Likewise.
18322         * lib/freadable.c: Likewise.
18323         * lib/freadahead.c: Likewise.
18324         * lib/freading.c: Likewise.
18325         * lib/freadptr.c: Likewise.
18326         * lib/freadseek.c: Likewise.
18327         * lib/fseeko.c: Likewise.
18328         * lib/fseterr.c: Likewise.
18329         * lib/fwritable.c: Likewise.
18330         * lib/fwriting.c: Likewise.
18331         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18332
18333 2010-12-22  Bruno Haible  <bruno@clisp.org>
18334
18335         ttyname_r: Work around bug on OSF/1 5.1.
18336         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
18337         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
18338         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
18339         present.
18340         * lib/ttyname_r.c (ttyname_r): Update comments.
18341
18342 2010-12-22  Bruno Haible  <bruno@clisp.org>
18343
18344         round: Implement result sign according to IEEE 754.
18345         * lib/round.c (MIN, MINUS_ZERO): New macros.
18346         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
18347         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
18348         * tests/test-round-ieee.c (main): Likewise.
18349         * tests/test-roundl-ieee.c (main): Likewise.
18350
18351         trunc: Implement result sign according to IEEE 754.
18352         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
18353         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
18354         * tests/test-trunc2.c: Include minus-zero.h.
18355         (MINUS_ZERO): New macro.
18356         (trunc_reference): Keep in sync with lib/trunc.c.
18357         * tests/test-truncf2.c: Include minus-zero.h.
18358         (MINUS_ZERO): New macro.
18359         (truncf_reference): Keep in sync with lib/trunc.c.
18360         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
18361         * tests/test-trunc-ieee.c (main): Likewise.
18362         * tests/test-truncl-ieee.c (main): Likewise.
18363
18364         ceil: Implement result sign according to IEEE 754.
18365         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
18366         (FUNC): Return -0.0 for -1 < x < 0.
18367         * tests/test-ceil2.c: Include minus-zero.h.
18368         (MINUS_ZERO): New macro.
18369         (ceil_reference): Keep in sync with lib/ceil.c.
18370         * tests/test-ceilf2.c: Include minus-zero.h.
18371         (MINUS_ZERO): New macro.
18372         (ceilf_reference): Keep in sync with lib/ceil.c.
18373         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
18374         * tests/test-ceil-ieee.c (main): Likewise.
18375         * tests/test-ceill-ieee.c (main): Likewise.
18376
18377         floor: Implement result sign according to IEEE 754.
18378         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
18379         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
18380         * tests/test-floorf2.c (floorf_reference): Likewise.
18381         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
18382         * tests/test-floor-ieee.c (main): Likewise.
18383         * tests/test-floorl-ieee.c (main): Likewise.
18384
18385 2010-12-22  Bruno Haible  <bruno@clisp.org>
18386
18387         getaddrinfo: Update doc.
18388         * doc/posix-functions/gai_strerror.texi: Return type is also different
18389         on AIX and HP-UX.
18390
18391 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18392
18393         getaddrinfo, inet_ntop: Update doc for Solaris.
18394         * doc/posix-functions/gai_strerror.texi: Return type is also an
18395         issue on Solaris 9 and earlier.
18396         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
18397         on Solaris 10 and earlier.
18398
18399 2010-12-21  Bruno Haible  <bruno@clisp.org>
18400
18401         New module 'roundl-ieee'.
18402         * modules/roundl-ieee: New file.
18403         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
18404         test whether roundl works according to ISO C 99 with IEC 60559.
18405         * m4/roundl-ieee.m4: New file.
18406         * modules/roundl-ieee-tests: New file.
18407         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
18408         * tests/test-roundl.c (main): Remove signbit tests.
18409         * modules/roundl-tests (Depends-on): Remove signbit.
18410         * doc/posix-functions/roundl.texi: Mention the new module.
18411
18412 2010-12-21  Bruno Haible  <bruno@clisp.org>
18413
18414         New module 'truncl-ieee'.
18415         * modules/truncl-ieee: New file.
18416         * modules/truncl-ieee-tests: New file.
18417         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
18418         * tests/test-truncl.c (main): Remove signbit tests.
18419         * modules/truncl-tests (Depends-on): Remove signbit.
18420         * doc/posix-functions/truncl.texi: Mention the new module.
18421
18422 2010-12-21  Bruno Haible  <bruno@clisp.org>
18423
18424         New module 'ceill-ieee'.
18425         * modules/ceill-ieee: New file.
18426         * modules/ceill-ieee-tests: New file.
18427         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
18428         * tests/test-ceill.c (main): Remove signbit tests.
18429         * modules/ceill-tests (Depends-on): Remove signbit.
18430         * doc/posix-functions/ceill.texi: Mention the new module.
18431
18432 2010-12-21  Bruno Haible  <bruno@clisp.org>
18433
18434         New module 'floorl-ieee'.
18435         * modules/floorl-ieee: New file.
18436         * modules/floorl-ieee-tests: New file.
18437         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
18438         * tests/test-floorl.c (main): Remove signbit tests.
18439         * modules/floorl-tests (Depends-on): Remove signbit.
18440         * doc/posix-functions/floorl.texi: Mention the new module.
18441
18442 2010-12-21  Bruno Haible  <bruno@clisp.org>
18443
18444         New module 'round-ieee'.
18445         * modules/round-ieee: New file.
18446         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
18447         whether round works according to ISO C 99 with IEC 60559.
18448         * m4/round-ieee.m4: New file.
18449         * modules/round-ieee-tests: New file.
18450         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
18451         * tests/test-round1.c (main): Remove signbit tests.
18452         * modules/round-tests (Depends-on): Remove 'signbit'.
18453         * doc/posix-functions/round.texi: Mention the new module.
18454
18455 2010-12-21  Bruno Haible  <bruno@clisp.org>
18456
18457         New module 'trunc-ieee'.
18458         * modules/trunc-ieee: New file.
18459         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
18460         whether trunc works according to ISO C 99 with IEC 60559.
18461         * m4/trunc-ieee.m4: New file.
18462         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
18463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
18464         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
18465         * modules/trunc-ieee-tests: New file.
18466         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
18467         * tests/test-trunc1.c (main): Remove signbit tests.
18468         * modules/trunc-tests (Depends-on): Remove 'signbit'.
18469         * doc/posix-functions/trunc.texi: Mention the new module.
18470
18471 2010-12-21  Bruno Haible  <bruno@clisp.org>
18472
18473         New module 'ceil-ieee'.
18474         * modules/ceil-ieee: New file.
18475         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
18476         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
18477         ISO C 99 with IEC 60559.
18478         * m4/ceil-ieee.m4: New file.
18479         * modules/ceil (Files): Add lib/ceil.c.
18480         (Depends-on): Add 'float'.
18481         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18482         * lib/math.in.h (ceil): New declaration.
18483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
18484         REPLACE_CEIL.
18485         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
18486         * modules/ceil-ieee-tests: New file.
18487         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
18488         * tests/test-math-c++.cc: Check the signature of 'ceil'.
18489         * doc/posix-functions/ceil.texi: Mention the new module.
18490
18491 2010-12-21  Bruno Haible  <bruno@clisp.org>
18492
18493         New module 'floor-ieee'.
18494         * modules/floor-ieee: New file.
18495         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
18496         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
18497         ISO C 99 with IEC 60559.
18498         * m4/floor-ieee.m4: New file.
18499         * modules/floor (Files): Add lib/floor.c.
18500         (Depends-on): Add 'float'.
18501         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18502         * lib/math.in.h (floor): New declaration.
18503         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
18504         REPLACE_FLOOR.
18505         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
18506         * modules/floor-ieee-tests: New file.
18507         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
18508         * tests/test-math-c++.cc: Check the signature of 'floor'.
18509         * doc/posix-functions/floor.texi: Mention the new module.
18510
18511 2010-12-21  Bruno Haible  <bruno@clisp.org>
18512
18513         New module 'roundf-ieee'.
18514         * modules/roundf-ieee: New file.
18515         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
18516         test whether roundf works according to ISO C 99 with IEC 60559.
18517         * m4/roundf-ieee.m4: New file.
18518         * modules/roundf-ieee-tests: New file.
18519         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
18520         * tests/test-roundf1.c (main): Remove signbit tests.
18521         * modules/roundf-tests (Depends-on): Remove 'signbit'.
18522         * doc/posix-functions/roundf.texi: Mention the new module.
18523
18524 2010-12-21  Bruno Haible  <bruno@clisp.org>
18525
18526         New module 'truncf-ieee'.
18527         * modules/truncf-ieee: New file.
18528         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
18529         test whether truncf works according to ISO C 99 with IEC 60559.
18530         * m4/truncf-ieee.m4: New file.
18531         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
18532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
18533         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
18534         * modules/truncf-ieee-tests: New file.
18535         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
18536         * tests/test-truncf1.c (main): Remove signbit tests.
18537         * modules/truncf-tests (Depends-on): Remove 'signbit'.
18538         * doc/posix-functions/truncf.texi: Mention the new module.
18539
18540 2010-12-21  Bruno Haible  <bruno@clisp.org>
18541
18542         New module 'ceilf-ieee'.
18543         * modules/ceilf-ieee: New file.
18544         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
18545         test whether ceilf works according to ISO C 99 with IEC 60559.
18546         * m4/ceilf-ieee.m4: New file.
18547         * modules/ceilf-ieee-tests: New file.
18548         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
18549         * tests/test-ceilf1.c (main): Remove signbit tests.
18550         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
18551         * doc/posix-functions/ceilf.texi: Mention the new module.
18552
18553 2010-12-21  Bruno Haible  <bruno@clisp.org>
18554
18555         New module 'floorf-ieee'.
18556         * modules/floorf-ieee: New file.
18557         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
18558         test whether floorf works according to ISO C 99 with IEC 60559.
18559         * m4/floorf-ieee.m4: New file.
18560         * modules/floorf-ieee-tests: New file.
18561         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
18562         * tests/test-floorf1.c (main): Remove signbit tests.
18563         * modules/floorf-tests (Depends-on): Remove 'signbit'.
18564         * doc/posix-functions/floorf.texi: Mention the new module.
18565
18566 2010-12-21  Bruno Haible  <bruno@clisp.org>
18567
18568         Support for minus zero in autoconf macros.
18569         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
18570         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
18571         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
18572         * tests/minus-zero.h: Update comments.
18573
18574 2010-12-21  Bruno Haible  <bruno@clisp.org>
18575
18576         Tests for module 'ceil'.
18577         * modules/ceil-tests: New file.
18578         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
18579         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
18580
18581 2010-12-21  Bruno Haible  <bruno@clisp.org>
18582
18583         Tests for module 'floor'.
18584         * modules/floor-tests: New file.
18585         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
18586         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
18587
18588 2010-12-21  Bruno Haible  <bruno@clisp.org>
18589
18590         math: Fix indentation.
18591         * lib/math.in.h (floorf): Fix indentation.
18592
18593 2010-12-21  Bruno Haible  <bruno@clisp.org>
18594
18595         Fix cross-compilation guesses on Solaris.
18596         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
18597         not match "solaris2.10".
18598         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18599         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
18600         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
18601
18602 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18603
18604         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
18605         This fixes a problem observed with the latest coreutils snapshot
18606         that caused a test to fail on Solaris 8.  src/csplit.c's call
18607         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
18608         earlier, instead of returning the number of bytes that would have
18609         been generated; this causes csplit to incorrectly report memory
18610         exhaustion.
18611         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
18612         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
18613         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
18614         comments to match.
18615         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
18616         Fix typo in matching older versions of Solaris: "solaris2.10"
18617         is matched by the shell pattern "solaris2.[0-9]*".  This matters
18618         only for guessing while cross-compiling.
18619         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
18620
18621 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18622
18623         ftoastr: fix comment again
18624         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18625         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
18626         Also, simplify example a bit by using flags = 0.
18627
18628 2010-12-20  Bruno Haible  <bruno@clisp.org>
18629
18630         round*, trunc*: Update documentation regarding glibc.
18631         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
18632         * doc/posix-functions/round.texi: Likewise.
18633         * doc/posix-functions/roundl.texi: Likewise.
18634         * doc/posix-functions/truncf.texi: Likewise.
18635         * doc/posix-functions/trunc.texi: Likewise.
18636         * doc/posix-functions/truncl.texi: Likewise.
18637
18638 2010-12-20  Bruno Haible  <bruno@clisp.org>
18639
18640         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
18641         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
18642         * doc/posix-functions/round.texi: Likewise.
18643         * doc/posix-functions/roundl.texi: Likewise.
18644
18645 2010-12-20  Bruno Haible  <bruno@clisp.org>
18646
18647         ttyname_r: Add missing declaration on HP-UX 11.
18648         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18649         HAVE_TTYNAME_R.
18650         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18651         declared. Set HAVE_TTYNAME_R always.
18652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18653         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18654         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18655         HAVE_TTYNAME_R.
18656         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18657
18658 2010-12-20  Bruno Haible  <bruno@clisp.org>
18659
18660         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18661         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18662         * doc/posix-functions/getlogin_r.texi: Likewise.
18663         * tests/test-getlogin.c: Include <errno.h>.
18664         (main): Avoid test failure on HP-UX 11.11.
18665         * tests/test-getlogin_r.c (main): Likewise.
18666
18667 2010-12-20  Bruno Haible  <bruno@clisp.org>
18668
18669         getlogin_r: Add missing declaration on HP-UX 11.
18670         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18671         declared also when it exists as a function.
18672         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18673
18674 2010-12-20  Bruno Haible  <bruno@clisp.org>
18675
18676         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18677         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18678         through wcrtomb.
18679
18680 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18681
18682         ftoastr: fix comment
18683         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18684         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18685
18686 2010-12-19  Bruno Haible  <bruno@clisp.org>
18687
18688         isnan: Ensure it is a macro.
18689         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18690         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
18691         Solaris.
18692
18693 2010-12-19  Bruno Haible  <bruno@clisp.org>
18694
18695         ldexpl test: Fix link error on OSF/1 5.1.
18696         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
18697
18698 2010-12-19  Bruno Haible  <bruno@clisp.org>
18699
18700         wctype: Make it work in C++ mode on OSF/1 5.1.
18701         * lib/wctype.in.h (iswblank): Declare but not define here.
18702         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
18703         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
18704         * modules/wctype (Files): Add lib/iswblank.c.
18705
18706 2010-12-19  Bruno Haible  <bruno@clisp.org>
18707
18708         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18709         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18710         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18711
18712 2010-12-19  Bruno Haible  <bruno@clisp.org>
18713
18714         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18715         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18716         _POSIX_PII_SOCKET.
18717         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18718         * doc/posix-functions/recvfrom.texi: Likewise.
18719         * doc/posix-functions/send.texi: Likewise.
18720         * doc/posix-functions/sendto.texi: Likewise.
18721
18722 2010-12-19  Bruno Haible  <bruno@clisp.org>
18723
18724         tcgetsid: Add missing declaration on OSF/1 5.1.
18725         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18726         HAVE_TCGETSID.
18727         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18728         Don't set HAVE_TCGETSID.
18729         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18730         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18731         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18732         HAVE_TCGETSID.
18733         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18734
18735 2010-12-19  Bruno Haible  <bruno@clisp.org>
18736
18737         stdio: Fix problem with popen() declaration on OSF/1 5.1.
18738         * lib/stdio.in.h: During the include_next statement, let recursive
18739         includes of this file include only the system header file.
18740
18741 2010-12-19  Bruno Haible  <bruno@clisp.org>
18742
18743         iconv_open: Fix regression from 2010-12-04.
18744         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
18745         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
18746
18747 2010-12-19  Bruno Haible  <bruno@clisp.org>
18748
18749         stdbool test: Avoid a gcc warning.
18750         * tests/test-stdbool.c (main): Fail if e1 is false.
18751         Reported by Jim Meyering.
18752
18753 2010-12-19  Jim Meyering  <meyering@redhat.com>
18754
18755         setenv: restore to working order
18756         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
18757         mistakenly removed.
18758         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18759         HAVE_SETENV.
18760         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18761         HAVE_SETENV.
18762
18763 2010-12-19  Bruno Haible  <bruno@clisp.org>
18764
18765         Document some different function declarations on OSF/1 5.1.
18766         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18767         * doc/posix-functions/inet_ntop.texi: Likewise.
18768         * doc/posix-functions/gethostname.texi: Likewise.
18769         * lib/unistd.in.h (gethostname): Update comment.
18770
18771 2010-12-19  Bruno Haible  <bruno@clisp.org>
18772
18773         doc: Mention vasprintf-posix module.
18774         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18775         the 'vasprintf-posix' module.
18776         * doc/glibc-functions/vasprintf.texi: Likewise.
18777
18778 2010-12-19  Bruno Haible  <bruno@clisp.org>
18779
18780         unsetenv: Add missing declaration on OSF/1 5.1.
18781         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18782         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18783         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18785         not HAVE_UNSETENV.
18786         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18787         HAVE_UNSETENV.
18788         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18789
18790 2010-12-19  Bruno Haible  <bruno@clisp.org>
18791
18792         setenv: Add missing declaration on OSF/1 5.1.
18793         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
18794         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
18795         declared. Don't set HAVE_SETENV.
18796         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
18797         not HAVE_SETENV.
18798         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
18799         HAVE_SETENV.
18800         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
18801
18802 2010-12-19  Bruno Haible  <bruno@clisp.org>
18803
18804         nl_langinfo tests: Avoid gcc warning.
18805         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
18806
18807 2010-12-19  Bruno Haible  <bruno@clisp.org>
18808
18809         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18810         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18811         _GL_CXXALIAS_SYS.
18812
18813 2010-12-19  Bruno Haible  <bruno@clisp.org>
18814
18815         stdbool: Relax test.
18816         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18817         address to 'bool' work in static initializer, for compilers other than
18818         GCC.
18819
18820 2010-12-19  Bruno Haible  <bruno@clisp.org>
18821
18822         ftello: Add missing declaration on OSF/1 5.1.
18823         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18824         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18826         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18827         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18828
18829 2010-12-19  Bruno Haible  <bruno@clisp.org>
18830
18831         fseeko: Add missing declaration on OSF/1 5.1.
18832         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18833         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18834         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18835         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18836         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18837
18838 2010-12-19  Bruno Haible  <bruno@clisp.org>
18839
18840         fchdir: Add missing declaration on OSF/1 5.1.
18841         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18842         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18844         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18845         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18846
18847 2010-12-19  Bruno Haible  <bruno@clisp.org>
18848
18849         relocatable-prog-wrapper: Separate from relocatable-prog.
18850         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18851         uninstall-relocwrapper rule here.
18852         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18853         Reported by Ian Beckwith <ianb@erislabs.net>.
18854
18855 2010-12-19  Bruno Haible  <bruno@clisp.org>
18856
18857         unistr/u8-mbsnlen: Add missing dependency.
18858         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18859         Reported by Ian Beckwith <ianb@erislabs.net>.
18860
18861 2010-12-19  Bruno Haible  <bruno@clisp.org>
18862
18863         iconv: Make it possible again to use this module without 'iconv-h'.
18864         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18865         if it is not defined.
18866         Reported by Ian Beckwith <ianb@erislabs.net>.
18867
18868 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18869
18870         acl: port to Solaris 8 when copying from tmpfs to ufs
18871         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18872         error number.  Problem observed on Solaris 8 with latest
18873         coreutils, with "mv A B", where A is on a tmpfs file system and B
18874         is on a ufs file system.  This caused coreutils' mv/part-symlink
18875         test to fail.
18876
18877         tests: set fail=0 at start
18878         * tests/init.sh (setup_): Move fail=0 initialization here ...
18879         (mktempd_): ... from here, so that tests can rely on fail being
18880         set to 0 initially.  This fixes a problem in coreutils; see:
18881         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18882
18883 2010-12-18  Bruno Haible  <bruno@clisp.org>
18884
18885         memmem-simple: Stylistic changes.
18886         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18887         Fix preprocessor directive indentation.
18888
18889 2010-12-15  Pádraig Brady <P@draigBrady.com>
18890
18891         memmem, memmem-simple: reorganize and expand empty needle check
18892         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18893         functional checks to memmem-simple so that one has a fully functional
18894         memmem by using just this module.
18895         Restrict the performance only check to the memmem module.
18896         Also expand the empty needle check to ensure the correct
18897         pointer is returned, not just a non NULL pointer.
18898         * doc/glibc-functions/memmem.texi: Rearrange the portability
18899         documentation to correlate with the rearranged checks.
18900         Clarify exactly how the memmem and memmem-simple modules
18901         relate to each other.
18902
18903 2010-12-15  Pádraig Brady <P@draigBrady.com>
18904             Bruno Haible  <bruno@clisp.org>
18905
18906         Improve cross-compilation guesses for uClibc.
18907         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18908         that uClibc does not have the glibc bug.
18909         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18910         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18911
18912 2010-12-14  Eric Blake  <eblake@redhat.com>
18913
18914         configmake: provide fallbacks for oldest supported autotools
18915         * m4/configmake.m4: New file.
18916         * modules/configmake (Files): Ship it.
18917         (configure.ac): Use it to guarantee fallbacks.
18918
18919 2010-12-13  Pádraig Brady <P@draigBrady.com>
18920
18921         read-file: Improve handling of large files
18922         * lib/read-file.c (fread_file): Minimize realloc()s
18923         for regular files, and better manage sizes around SIZE_MAX.
18924
18925 2010-12-13  Eric Blake  <eblake@redhat.com>
18926
18927         cloexec, fcntl: relax license
18928         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18929         consent from all contributors.
18930         * modules/fcntl (License): Likewise.
18931
18932 2010-12-10  Bruno Haible  <bruno@clisp.org>
18933
18934         Tests for module 'pipe-posix'.
18935         * modules/pipe-posix-tests: New file.
18936         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18937
18938 2010-12-10  Bruno Haible  <bruno@clisp.org>
18939
18940         pipe-posix: Make it work in C++ mode.
18941         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18942         (pipe): Use common idiom, not a macro definition.
18943         * lib/pipe.c: New file.
18944         * m4/pipe.m4: New file.
18945         * modules/pipe-posix (Description): Enhance.
18946         (Files): Add lib/pipe.c, m4/pipe.m4.
18947         (configure.ac): Invoke gl_FUNC_PIPE.
18948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18949         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18950         * tests/test-unistd-c++.cc: Check the signature of pipe.
18951
18952 2010-12-10  Bruno Haible  <bruno@clisp.org>
18953
18954         Rename module 'pipe' to 'spawn-pipe'.
18955         * modules/spawn-pipe: New file, renamed from modules/pipe.
18956         (Files, configure.ac, Makefile.am): Update.
18957         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18958         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18959         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18960         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18961         "spawn-pipe.h" instead of "pipe.h".
18962         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18963         to gl_SPAWN_PIPE.
18964         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18965         (Files, Makefile.am): Update.
18966         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18967         Update.
18968         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18969         Include "spawn-pipe.h" instead of "pipe.h".
18970         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18971         * lib/javacomp.c: Likewise.
18972         * lib/javaversion.c: Likewise.
18973         * lib/pipe-filter-gi.c: Likewise.
18974         * lib/pipe-filter-ii.c: Likewise.
18975         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18976         * modules/javacomp (Depends-on): Likewise.
18977         * modules/javaversion (Depends-on): Likewise.
18978         * modules/pipe-filter-gi (Depends-on): Likewise.
18979         * modules/pipe-filter-ii (Depends-on): Likewise.
18980         * MODULES.html.sh (Executing programs): Update.
18981         * NEWS: Mention the change.
18982
18983 2010-12-10  Eric Blake  <eblake@redhat.com>
18984
18985         pipe-posix: new module
18986         * modules/pipe-posix: New file.
18987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18988         (gl_UNISTD_H): Check for declaration.
18989         * modules/unistd (Makefile.am): Substitute it.
18990         * lib/unistd.in.h (pipe): Provide it for mingw.
18991         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18992         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18993
18994 2010-12-07  Bruno Haible  <bruno@clisp.org>
18995
18996         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18997         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18998         u8_strcmp_gnu.
18999         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
19000
19001 2010-12-06  Bruno Haible  <bruno@clisp.org>
19002
19003         Update internal documentation.
19004         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
19005
19006 2010-12-04  Bruno Haible  <bruno@clisp.org>
19007
19008         Put more information about failed tests into the test return codes.
19009         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
19010         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
19011         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19012         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19013         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19014         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19015         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19016         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19017         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
19018         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19019         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
19020         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19021         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19022         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19023         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
19024         returns a bit mask.
19025         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19026         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
19027         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
19028         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19029         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19030         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19031         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19032         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19033         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19034         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19035         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19036         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19037         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19038         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19039         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19040         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19041         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
19042         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
19043         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19044         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
19045         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19046         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19047         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19048         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19049         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19050         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19051         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19052         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19053         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19054         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
19055         gl_PRINTF_PRECISION): Likewise.
19056         * m4/regex.m4 (gl_REGEX): Likewise.
19057         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19058         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19059         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
19060         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19061         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19062         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19063         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19064         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
19065         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19066         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19067         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19068         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19069         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19070         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19071         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19072         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19073         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19074         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19075         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19076         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
19077         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
19078         enumerated value.
19079         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
19080
19081 2010-12-04  Bruno Haible  <bruno@clisp.org>
19082
19083         Update for Solaris 11 2010-11.
19084         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
19085         Express, released in November 2010.
19086
19087 2010-12-04  Bruno Haible  <bruno@clisp.org>
19088
19089         nproc: Relax license.
19090         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
19091         and Paul Eggert.
19092         Requested by Ludovic Courtès <ludo@gnu.org>.
19093
19094 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19095
19096         utimecmp: fine-grained src to nearby coarse-grained dest
19097
19098         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
19099         and the source is on a file system with higher-resolution time
19100         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
19101         not work, and the time stamps are close together, the algorithm to
19102         determine the exact resolution from the read-back mtime was buggy:
19103         it had a "!=" where it should have had an "==".  This bug has been
19104         in the code ever since it was introduced to gnulib.
19105         Problem reported by Dan Jacobson in
19106         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
19107
19108 2010-11-30  Bruno Haible  <bruno@clisp.org>
19109
19110         strerror_r-posix: Fix autoconf test.
19111         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
19112
19113 2010-11-28  Bruno Haible  <bruno@clisp.org>
19114             Paul Eggert  <eggert@cs.ucla.edu>
19115
19116         Tests for module 'getdomainname'.
19117         * modules/getdomainname-tests: New file.
19118         * tests/test-getdomainname.c: New file, based on
19119         tests/test-gethostname.c.
19120
19121 2010-11-28  Bruno Haible  <bruno@clisp.org>
19122             Paul Eggert  <eggert@cs.ucla.edu>
19123
19124         getdomainname: Use the system function when possible.
19125         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
19126         (getdomainname): Replace if needed. Provide the declaration if it is
19127         missing. Don't use _GL_CXXALIAS_SYS_CAST.
19128         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
19129         (getdomainname): When the system has getdomainname, call the system
19130         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
19131         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19132         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
19133         found in libnsl. Look for the declaration also in <netdb.h>. Replace
19134         the function if its second argument is of type 'int' or if it is found
19135         in libnsl.
19136         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
19137         <sys/systeminfo.h> and sysinfo().
19138         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
19139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19140         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
19141         HAVE_GETDOMAINNAME.
19142         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
19143         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
19144         * doc/glibc-functions/getdomainname.texi: Document the problems with
19145         the getdomainname declaration.
19146
19147 2010-11-28  Bruno Haible  <bruno@clisp.org>
19148
19149         sys_socket: Ensure ss_family field on AIX.
19150         * lib/sys_socket.in.h (ss_family): New macro definition.
19151         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
19152         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
19153         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19154         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19155         * modules/sys_socket (Makefile.am): Substitute
19156         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19157         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
19158
19159 2010-11-27  Bruno Haible  <bruno@clisp.org>
19160
19161         readline: Improve configure output.
19162         * m4/readline.m4 (gl_FUNC_READLINE): Make the
19163         "checking for readline..." result understandable.
19164
19165 2010-11-27  Bruno Haible  <bruno@clisp.org>
19166
19167         *printf-posix: Detect a bug on Solaris 10/x86.
19168         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
19169         for floating-point output.
19170         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
19171         directive.
19172         * tests/test-snprintf-posix.h (test_function): Likewise.
19173         * tests/test-sprintf-posix.h (test_function): Likewise.
19174         * tests/test-vasprintf-posix.c (test_function): Likewise.
19175         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
19176         * doc/posix-functions/printf.texi: Likewise.
19177         * doc/posix-functions/snprintf.texi: Likewise.
19178         * doc/posix-functions/sprintf.texi: Likewise.
19179         * doc/posix-functions/vfprintf.texi: Likewise.
19180         * doc/posix-functions/vprintf.texi: Likewise.
19181         * doc/posix-functions/vsnprintf.texi: Likewise.
19182         * doc/posix-functions/vsprintf.texi: Likewise.
19183         * doc/glibc-functions/obstack_printf.texi: Likewise.
19184         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19185
19186 2010-11-27  Bruno Haible  <bruno@clisp.org>
19187
19188         Fix link error when module libunistring-optional is in use.
19189         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
19190         * modules/striconveha-tests (Makefile.am): Likewise.
19191
19192 2010-11-27  Bruno Haible  <bruno@clisp.org>
19193
19194         regex: Mention link dependencies.
19195         * modules/regex (Link): New section.
19196         * modules/rpmatch (Link): Likewise.
19197         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
19198
19199 2010-11-27  Bruno Haible  <bruno@clisp.org>
19200
19201         ftoastr: Fix compilation error on Solaris.
19202         * lib/ftoastr.c: Include <config.h>.
19203
19204 2010-11-27  Bruno Haible  <bruno@clisp.org>
19205
19206         getloadavg: Update documentation.
19207         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
19208
19209 2010-11-27  Bruno Haible  <bruno@clisp.org>
19210
19211         sys_socket: Fix test whether the functions are declared.
19212         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
19213         not <sys/select.h>.
19214
19215 2010-11-27  Bruno Haible  <bruno@clisp.org>
19216
19217         getpass: Make sure to get system declaration on some platforms.
19218         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
19219         gl_USE_SYSTEM_EXTENSIONS.
19220         * modules/getpass (Depends-on): Add extensions.
19221
19222 2010-11-26  Bruno Haible  <bruno@clisp.org>
19223
19224         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
19225         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
19226         'iconv' module is present.
19227         (ICONV_CONST): New macro.
19228         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
19229         ICONV_CONST.
19230         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
19231         set ICONV_CONST.
19232         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
19233         here.
19234         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
19235         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
19236         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
19237         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
19238         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
19239         present.
19240
19241 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19242
19243         ftoastr: comment fix
19244         * lib/ftoastr.c: "little" -> "little or no" in comment
19245
19246 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19247
19248         stdint: port to GCC 4.3 + OSX + Octave
19249         On this platform, stdint.h is buggy and defines int64_t to long
19250         long int.  The replacement defined it to long int, causing
19251         problems with C++ style name mangling.  Instead, trust the system
19252         definition if INT64_MAX is defined, and likewise for the unsigned
19253         variant.   Problem reported by Jarno Rajahalme in
19254         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
19255         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
19256         and don't mess with int64_t and INT64_MAX in this case.
19257         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
19258
19259 2010-11-24  Bruno Haible  <bruno@clisp.org>
19260
19261         doc: Corrections regarding MacOS X 10.4 and 10.5.
19262         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
19263         MacOS X.
19264         Reported by Simon Josefsson.
19265
19266 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
19267
19268         Uninstall ".bin" files installed by relocwrapper.
19269         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
19270         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
19271         unless it is already there.
19272
19273 2010-11-21  Bruno Haible  <bruno@clisp.org>
19274
19275         Update for NetBSD 5.0.
19276         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19277         NetBSD; the test fails on NetBSD 5.0.
19278         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19279         about NetBSD.
19280
19281 2010-11-21  Bruno Haible  <bruno@clisp.org>
19282
19283         Update for HP-UX 11.23 and HP-UX 11.31.
19284         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
19285         HP-UX.
19286
19287 2010-11-21  Bruno Haible  <bruno@clisp.org>
19288
19289         Update for MacOS X 10.5.
19290         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19291         MacOS X; the test fails on MacOS X 10.5.8.
19292         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19293         about MacOS X.
19294
19295 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
19296
19297         bootstrap: add bootstrap_sync option.
19298         See discussion at
19299         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
19300         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
19301         * build-aux/bootstrap: Accept --bootstrap-sync to update
19302         bootstrap if it is not identical to the local gnulib's
19303         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
19304         enable this by default.  Accept --no-bootstrap-sync to disable
19305         it.
19306
19307 2010-11-20  Bruno Haible  <bruno@clisp.org>
19308
19309         Ensure that <features.h> is included before __GLIBC__ is tested.
19310         * lib/printf-parse.h: Include <features.h>.
19311         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
19312         Reported by Mike Frysinger <vapier@gentoo.org>.
19313
19314         Ensure that <features.h> is included before __GLIBC__ is tested.
19315         * lib/wchar.in.h: Include <features.h>.
19316         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
19317         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
19318         Reported by Mike Frysinger <vapier@gentoo.org>.
19319
19320         Ensure that <features.h> is included before __GLIBC__ is tested.
19321         * lib/arpa_inet.in.h: Include <features.h>.
19322         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
19323         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
19324         Reported by Mike Frysinger <vapier@gentoo.org>.
19325
19326         Ensure that <features.h> is included before __GLIBC__ is tested.
19327         * build-aux/link-warning.h: Include <features.h>.
19328         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
19329         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
19330         Reported by Mike Frysinger <vapier@gentoo.org>.
19331
19332         Ensure that <features.h> is included before __GLIBC__ is tested.
19333         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
19334         Reported by Mike Frysinger <vapier@gentoo.org>.
19335
19336 2010-11-20  Bruno Haible  <bruno@clisp.org>
19337
19338         memmem: Fix autoconf test.
19339         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
19340
19341 2010-11-20  Bruno Haible  <bruno@clisp.org>
19342
19343         Port to uClibc.
19344         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
19345         * lib/fcntl.in.h: Likewise.
19346         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
19347         * lib/mbrtowc.c (mbrtowc): Likewise.
19348         * lib/relocatable.c (find_shared_library_fullname): Likewise.
19349         * lib/strerror_r.c: Likewise.
19350         * lib/unistr/u8-strnlen.c: Likewise.
19351         * lib/vasnprintf.c (decimal_point_char): Likewise.
19352         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19353         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19354         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19355         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
19356         * tests/test-sigaction.c (handler, main): Likewise.
19357         * lib/freading.h: Treat uClibc like a non-glibc platform.
19358         * lib/freading.c: Likewise.
19359         * lib/gettext.h: Likewise.
19360         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
19361         Likewise.
19362         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
19363         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19364         * lib/propername.c (proper_name_utf8): Likewise.
19365         * lib/spawn.in.h: Likewise.
19366         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
19367         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
19368         mem_cd_iconveh_internal): Likewise.
19369         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
19370         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19371         strstr, strcasestr): Likewise.
19372         * lib/unicodeio.c (unicode_to_mb): Likewise.
19373         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
19374         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
19375         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
19376         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
19377         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
19378         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
19379         * lib/unistr/u8-stpncpy.c: Likewise.
19380         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19381         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
19382         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19383         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19384         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
19385         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
19386         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
19387         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
19388         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19389         Likewise.
19390         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19391         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19392         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19393         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19394         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19395         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19396         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19397         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19398         * tests/test-getopt.h (OPTIND_MIN): Likewise.
19399         * tests/test-striconveha.c (main): Likewise.
19400         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19401         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
19402         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
19403         * doc/posix-functions/getline.texi: Likewise.
19404         Reported by Mike Frysinger <vapier@gentoo.org>.
19405
19406 2010-11-20  Bruno Haible  <bruno@clisp.org>
19407
19408         nproc: Fix condition.
19409         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
19410         HAVE_PTHREAD_AFFINITY_NP.
19411
19412 2010-11-20  Bruno Haible  <bruno@clisp.org>
19413
19414         Fix a comment.
19415         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
19416
19417 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
19418
19419         ftoastr: don't assume snprintf
19420         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
19421         Implement a subset of snprintf here, by using sprintf safely.
19422         * modules/ftoastr (Depends-on): Remove snprintf.
19423
19424 2010-11-19  Jim Meyering  <meyering@redhat.com>
19425
19426         test-rename.h: fix compilation failure
19427         * tests/test-rename.h (test_rename): Add omitted "}".
19428
19429 2010-11-17  Jim Meyering  <meyering@redhat.com>
19430
19431         maint.mk: add a URL discussing the no-@acronym policy
19432         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
19433
19434 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
19435
19436         ftoastr: depend on snprintf, improve comments
19437         * lib/ftoastr.c: Also mention Loitsch's draft.
19438         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
19439         needed in the current implementation, but it might simplify
19440         speeding up the code later.
19441         * modules/ftoastr: Depend on snprintf; this improves portability.
19442         Suggested by Bruno Haible in the same email.
19443
19444         ftoastr: port to hosts lacking strtof and strtold
19445         Problem reported by Bruno Haible in
19446         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
19447         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
19448         environment and strtold (and presumably strtof) are not available.
19449         * modules/ftoastr (Files): Add m4/c-strtod.m4.
19450         (configure.ac): Require gl_C99_STRTOLD.
19451
19452 2010-11-18  Bruno Haible  <bruno@clisp.org>
19453
19454         c-strtold: Avoid link error on AIX 7.
19455         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
19456         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
19457         (gl_C_STRTOLD): Test whether strtold_l exists.
19458         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19459
19460 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19461
19462         intprops: new macro INT_BITS_STRLEN_BOUND
19463         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
19464         ftoastr.h.  This exposes an internal of intprops.h that was formerly
19465         not exposed.  Also, it uses a slightly tighter bound than before;
19466         though this makes no practical difference, we might as well be as
19467         tight as we easily can.
19468
19469         ftoastr: new module, for lossless conversion of floats to short strings
19470         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
19471         * modules/ftoastr: New files.
19472
19473 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19474
19475         bootstrap: port to Solaris sed
19476         * build-aux/bootstrap (get_version): Port to Solaris sed.
19477         See Ralf Wildenhues's note in
19478         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
19479
19480 2010-11-14  Jim Meyering  <meyering@redhat.com>
19481
19482         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
19483         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
19484         and move definition closer to sole use.
19485
19486 2010-11-13  Jim Meyering  <meyering@redhat.com>
19487
19488         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
19489         Now we require at least autoconf-2.59, which means the work-around
19490         is no longer needed.
19491         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
19492         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19493         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19494         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19495         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19496
19497 2010-11-13  Bruno Haible  <bruno@clisp.org>
19498
19499         rename, renameat: Avoid test failures at NFS mounted locations.
19500         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
19501         functions.
19502         (test_rename): Use assert_nonexistent.
19503         * tests/test-rename.c: Include <dirent.h>.
19504         * tests/test-renameat.c: Likewise.
19505         Reported by Gary V. Vaughan <gary@gnu.org>.
19506
19507         rename, renameat: Document Linux bug with NFS
19508         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
19509         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
19510         * doc/posix-functions/renameat.texi: Likewise.
19511         Suggested by Eric Blake.
19512
19513 2010-11-13  Bruno Haible  <bruno@clisp.org>
19514
19515         rename test: Add comments.
19516         * tests/test-rename.h (test_rename): Add structure and comments.
19517
19518 2010-11-13  Eric Blake  <eblake@redhat.com>
19519
19520         maintainer-makefile: cover a few more files
19521         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
19522         scripts generated within C files, for libvirt.
19523
19524 2010-11-13  Bruno Haible  <bruno@clisp.org>
19525
19526         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
19527         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
19528         character, return the number of bytes that belong together, not always
19529         1.
19530         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
19531         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
19532         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
19533         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
19534         number of bytes of an invalid character.
19535         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
19536         (main): Invoke it.
19537         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
19538         results.
19539         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
19540         malformed byte sequences.
19541         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
19542         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
19543         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
19544         Reported by Ben Pfaff and Paolo Bonzini.
19545
19546 2010-11-13  Bruno Haible  <bruno@clisp.org>
19547
19548         openat: Work around glibc bug with fchownat() and empty file names.
19549         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
19550         (gl_FUNC_FCHOWNAT): Invoke it.
19551         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
19552         * doc/posix-functions/fchownat.texi: Document the glibc bug.
19553         Reported by Gary V. Vaughan <gary@gnu.org>.
19554
19555 2010-11-13  Bruno Haible  <bruno@clisp.org>
19556
19557         openat: Ensure autoconf macro ordering.
19558         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
19559         gl_USE_SYSTEM_EXTENSIONS.
19560         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
19561
19562 2010-11-13  Bruno Haible  <bruno@clisp.org>
19563
19564         Update comments.
19565         * lib/unistr/u8-check.c: Update file name in comments.
19566         * lib/unistr/u8-mblen.c: Likewise.
19567         * lib/unistr/u8-prev.c: Likewise.
19568         * lib/unistr/u8-strmblen.c: Likewise.
19569         * lib/unistr/u8-strmbtouc.c: Likewise.
19570
19571 2010-11-13  Jim Meyering  <meyering@redhat.com>
19572
19573         tests: avoid test failure on Solaris 10 due to lack of PATH export
19574         * tests/test-update-copyright.sh: Don't forget to export PATH.
19575
19576         init.sh: ensure that IFS is defined, just in case...
19577         * tests/init.sh (setup_): Ensure that IFS is defined,
19578         so that saving and restoring it works as expected.  This
19579         appears to be useful at least for an old version of dash
19580         from a long time ago (RH 6).  See here for details:
19581         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
19582
19583         maint.mk: tighten "test a == b" check
19584         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
19585         test to files that contain something like #!/bin/sh.
19586         Without this, coreutils would get two false positives in
19587         the comments of C source files.
19588
19589 2010-11-12  Eric Blake  <eblake@redhat.com>
19590
19591         bootstrap: fix typo in previous attempt
19592         * build-aux/bootstrap (buildreq): Correct the grouping.
19593         Reported by Paul Eggert.
19594
19595         maintainer-makefile: prohibit test x == x
19596         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
19597         Based on a report by Matthias Bolte.
19598
19599         bootstrap: allow FreeBSD gzip
19600         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
19601         which has no '.' and goes to stderr.
19602         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
19603         Reported by Matthias Bolte.
19604
19605         maintainer-makefile: check for i18n setup
19606         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
19607         will likely work.
19608
19609 2010-11-12  Bruno Haible  <bruno@clisp.org>
19610
19611         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
19612         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
19613         * lib/nanosleep.c (nanosleep): Likewise.
19614
19615 2010-11-11  Bruno Haible  <bruno@clisp.org>
19616
19617         fcntl-h: Fix for use of C++ on glibc systems.
19618         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19619         also on glibc systems in C++ mode.
19620         Reported by Gary V. Vaughan <gary@gnu.org>.
19621
19622 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19623
19624         mknod: avoid false failure with dash
19625         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
19626
19627 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19628
19629         unlink: Fix "is it should" typo in diagnostic.
19630         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
19631         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
19632
19633 2010-11-11  Bruno Haible  <bruno@clisp.org>
19634
19635         Tests for module 'strerror_r-posix'.
19636         * modules/strerror_r-posix-tests: New file.
19637         * tests/test-strerror_r.c: New file.
19638         * tests/test-string-c++.cc: Check the signature of strerror_r.
19639
19640         New module 'strerror_r-posix'.
19641         * lib/string.in.h (strerror_r): New declaration.
19642         * lib/strerror_r.c: New file.
19643         * m4/strerror_r.m4: New file.
19644         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19645         of strerror_r.
19646         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19647         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19648         * modules/strerror_r-posix: New file.
19649         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19650         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19651         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19652         portability problems.
19653
19654 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19655
19656         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19657         line is also considered for output. Quoted function name in shell
19658         command, so temporary files for functions like MyClass::operator()
19659         are removed correctly without errors.
19660
19661 2010-11-09  Bruno Haible  <bruno@clisp.org>
19662
19663         * doc/posix-functions/strerror.texi: List more failing platforms.
19664
19665         * doc/posix-functions/strerror.texi: Add a comment.
19666
19667 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19668
19669         fdopendir: fix bug on MacOS X when low on file descriptors
19670
19671         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19672         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19673         All callers changed.
19674         (fdopendir): Invoke save_cwd at the top level, not after using
19675         multiple dup() calls to use up file descriptors.  Then retry
19676         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19677         less than the maximum number of open file descriptors, because
19678         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19679         on Mac OS X 10.6.4 for tar 1.24
19680         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19681         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19682         and for tar 1.25
19683         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19684
19685 2010-11-07  Bruno Haible  <bruno@clisp.org>
19686
19687         vasnprintf: Support I flag on glibc systems.
19688         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19689         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19690         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
19691         snprintf function.
19692         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
19693         glibc systems.
19694         * tests/test-vasnprintf-posix3.c: New file.
19695         * modules/vasnprintf-posix-tests (Files): Add it.
19696         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
19697
19698 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19699
19700         [html] Fix copy/paste bug: Use unique name for compiler warnings.
19701         * MODULES.html.sh: For compiler warnings, use name
19702         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19703
19704 2010-11-05  Eric Blake  <eblake@redhat.com>
19705
19706         ceil, floor: avoid spurious failure with icc
19707         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19708         [denormals-as-zero] when optimizing without -mieee-fp option.
19709         * tests/test-floorf2.c (floorf_reference): Likewise.
19710         * tests/test-ceilf1.c (dummy): New function.
19711         (main): Use it to outsmart icc's optimization.
19712         * tests/test-floorf1.c (dummy, main): Likewise.
19713
19714         tests: require working signbit
19715         * modules/ceilf-tests (Depends-on): Add signbit.
19716         * modules/ceill-tests (Depends-on): Likewise.
19717         * modules/floorf-tests (Depends-on): Likewise.
19718         * modules/floorl-tests (Depends-on): Likewise.
19719         * modules/round-tests (Depends-on): Likewise.
19720         * modules/roundf-tests (Depends-on): Likewise.
19721         * modules/roundl-tests (Depends-on): Likewise.
19722         * modules/trunc-tests (Depends-on): Likewise.
19723         * modules/truncf-tests (Depends-on): Likewise.
19724         * modules/truncl-tests (Depends-on): Likewise.
19725
19726         strtod: work around icc bug
19727         * lib/strtod.c (minus_zero): Define to working value.
19728         (strtod): Use it to avoid icc bug.
19729
19730         copysign: enhance tests
19731         * modules/copysign-tests (Files): Add minus-zero.h.
19732         * tests/test-copysign.c (main): Also test zeros.
19733
19734 2010-11-04  Eric Blake  <eblake@redhat.com>
19735
19736         ceil, floor, round, trunc: enhance tests of -0
19737         * tests/test-ceilf1.c (main): Ensure correct sign of result.
19738         * tests/test-ceill.c (main): Likewise.
19739         * tests/test-floorf1.c (main): Likewise.
19740         * tests/test-floorl.c (main): Likewise.
19741         * tests/test-round1.c (main): Likewise.
19742         * tests/test-roundf1.c (main): Likewise.
19743         * tests/test-roundl.c (main): Likewise.
19744         * tests/test-trunc1.c (main): Likewise.
19745         * tests/test-truncf1.c (main): Likewise.
19746         * tests/test-truncl.c (main): Likewise.
19747
19748 2010-11-04  Eric Blake  <eblake@redhat.com>
19749
19750         frexp, tests: work around ICC bug with -zero
19751         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
19752         works with more compilers.
19753         * tests/minus-zero.h: New file.
19754         * modules/ceilf-tests (Files): Include it.
19755         * modules/ceill-tests (Files): Likewise.
19756         * modules/floorf-tests (Files): Likewise.
19757         * modules/floorl-tests (Files): Likewise.
19758         * modules/frexp-nolibm-tests (Files): Likewise.
19759         * modules/frexp-tests (Files): Likewise.
19760         * modules/frexpl-nolibm-tests (Files): Likewise.
19761         * modules/frexpl-tests (Files): Likewise.
19762         * modules/isnan-tests (Files): Likewise.
19763         * modules/isnand-nolibm-tests (Files): Likewise.
19764         * modules/isnand-tests (Files): Likewise.
19765         * modules/isnanf-nolibm-tests (Files): Likewise.
19766         * modules/isnanf-tests (Files): Likewise.
19767         * modules/isnanl-nolibm-tests (Files): Likewise.
19768         * modules/isnanl-tests (Files): Likewise.
19769         * modules/round-tests (Files): Likewise.
19770         * modules/roundf-tests (Files): Likewise.
19771         * modules/roundl-tests (Files): Likewise.
19772         * modules/ldexpl-tests (Files): Likewise.
19773         * modules/signbit-tests (Files): Likewise.
19774         * modules/snprintf-posix-tests (Files): Likewise.
19775         * modules/sprintf-posix-tests (Files): Likewise.
19776         * modules/strtod-tests (Files): Likewise.
19777         * modules/trunc-tests (Files): Likewise.
19778         * modules/truncf-tests (Files): Likewise.
19779         * modules/truncl-tests (Files): Likewise.
19780         * modules/vsnprintf-posix-tests (Files): Likewise.
19781         * modules/vsprintf-posix-tests (Files): Likewise.
19782         * modules/vasnprintf-posix-tests (Files): Likewise.
19783         * modules/vasprintf-posix-tests (Files): Likewise.
19784         * tests/test-ceilf1.c (main): Use it.
19785         * tests/test-ceill.c (main): Likewise.
19786         * tests/test-floorf1.c (main): Likewise.
19787         * tests/test-floorl.c (main): Likewise.
19788         * tests/test-frexp.c (main): Likewise.
19789         * tests/test-frexpl.c (main): Likewise.
19790         * tests/test-isnan.c (main): Likewise.
19791         * tests/test-isnand.h (main): Likewise.
19792         * tests/test-isnanf.h (main): Likewise.
19793         * tests/test-isnanl.h (main): Likewise.
19794         * tests/test-ldexpl.c (main): Likewise.
19795         * tests/test-round.c (main): Likewise.
19796         * tests/test-roundf.c (main): Likewise.
19797         * tests/test-roundl.c (main): Likewise.
19798         * tests/test-signbit.c (test_signbitf, test_signbitd)
19799         (test_signbitl): Likewise.
19800         * tests/test-snprintf-posix.h (test_function): Likewise.
19801         * tests/test-sprintf-posix.h (test_function): Likewise.
19802         * tests/test-strtod.c (main): Likewise.
19803         * tests/test-trunc1.c (main): Likewise.
19804         * tests/test-truncf1.c (main): Likewise.
19805         * tests/test-truncl.c (main): Likewise.
19806
19807         isnanl: work around icc bug
19808         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19809
19810 2010-11-03  Eric Blake  <eblake@redhat.com>
19811
19812         tests: fix compiler warnings
19813         * tests/test-getopt.h (test_getopt): Fix condition.
19814         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19815         * tests/test-pipe2.c (main): Likewise.
19816         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19817
19818         utimens: fix broken m4 test
19819         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19820
19821 2010-10-28  Bruno Haible  <bruno@clisp.org>
19822
19823         posix_spawn*, getdtablesize: Relax license.
19824         * modules/posix_spawn (License): Change to LGPLv2+.
19825         * modules/posix_spawnp (License): Likewise.
19826         * modules/posix_spawn-internal (License): Likewise.
19827         * modules/posix_spawnattr_init (License): Likewise.
19828         * modules/posix_spawnattr_getflags (License): Likewise.
19829         * modules/posix_spawnattr_setflags (License): Likewise.
19830         * modules/posix_spawnattr_getpgroup (License): Likewise.
19831         * modules/posix_spawnattr_setpgroup (License): Likewise.
19832         * modules/posix_spawnattr_getschedparam (License): Likewise.
19833         * modules/posix_spawnattr_setschedparam (License): Likewise.
19834         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19835         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19836         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19837         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19838         * modules/posix_spawnattr_getsigmask (License): Likewise.
19839         * modules/posix_spawnattr_setsigmask (License): Likewise.
19840         * modules/posix_spawnattr_destroy (License): Likewise.
19841         * modules/posix_spawn_file_actions_init (License): Likewise.
19842         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19843         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19844         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19845         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19846         * modules/getdtablesize (License): Likewise.
19847         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19848
19849 2010-10-26  Bruno Haible  <bruno@clisp.org>
19850
19851         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19852         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19853         Cygwin and mingw.
19854         Suggested by Eric Blake.
19855
19856 2010-10-26  Bruno Haible  <bruno@clisp.org>
19857
19858         stdio: Work around compilation error due to renameat() on Solaris 10.
19859         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19860         * lib/renameat.c: Don't include <unistd.h> here.
19861         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19862         Reported by Paul Eggert and Eric Blake.
19863
19864 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19865
19866         renameat: port to Solaris 10, which declares renameat in unistd.h
19867
19868         * lib/renameat.c: Include unistd.h before stdio.h, because
19869         Solaris 10 declares renameat in unistd.h.  Problem encountered
19870         when building GNU tar 1.24 on Solaris 10.
19871
19872 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19873
19874         fdopendir: fix C89 compilation
19875         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19876         compilers.
19877
19878 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19879
19880         inttostr: simplify by removing unnecessary redundancy
19881         * lib/anytostr.c: Don't include verify.h.
19882         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19883         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19884         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19885         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19886         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19887         Likewise.
19888         * modules/inttostr (Depends-on): Remove 'verify'.
19889
19890 2010-10-23  Bruno Haible  <bruno@clisp.org>
19891
19892         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19893         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19894         Reported by Eric Blake.
19895
19896 2010-10-23  Bruno Haible  <bruno@clisp.org>
19897
19898         Tests: Fix LOCALE_JA on MirBSD 10.
19899         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19900         to an UTF-8 locale.
19901         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19902         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19903         Reported by Eric Blake.
19904
19905 2010-10-21  Bruno Haible  <bruno@clisp.org>
19906
19907         nl_langinfo test: Avoid test failure on NetBSD 5.
19908         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19909         Reported by Eric Blake.
19910
19911 2010-10-21  Eric Blake  <eblake@redhat.com>
19912
19913         c-stack: work around libsigsegv 2.8 bug
19914         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19915         overflow on at least PowerPC64.
19916
19917 2010-10-17  Bruno Haible  <bruno@clisp.org>
19918
19919         userspec: Drop redundant file.
19920         * modules/userspec (Files): Remove lib/inttostr.h.
19921
19922 2010-10-17  Bruno Haible  <bruno@clisp.org>
19923
19924         nl_langinfo tests: Silence some warnings.
19925         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19926         Reported by Jim Meyering.
19927
19928 2010-10-17  Bruno Haible  <bruno@clisp.org>
19929
19930         Make use of GCC's attribute __alloc_size__.
19931         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19932         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19933         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19934         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19935         __alloc_size__.
19936         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19937         Suggested by Jim Meyering.
19938
19939 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19940
19941         bootstrap: anchor .gitignore entries.
19942         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19943         with...
19944         (insert_vc_ignore): ... this new function, which prepends `/' to
19945         all .gitignore entries before passing them to
19946         insert_sorted_if_absent.
19947
19948 2010-10-16  Bruno Haible  <bruno@clisp.org>
19949
19950         nextafter: Fix configure check.
19951         * modules/nextafter (configure.ac): Correct expected prototype.
19952
19953 2010-10-16  Bruno Haible  <bruno@clisp.org>
19954
19955         termios: Update documentation.
19956         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19957
19958 2010-10-16  Bruno Haible  <bruno@clisp.org>
19959
19960         tests: Make them compile with TinyCC.
19961         * tests/test-strstr.c (main): Remove parentheses around array
19962         initializer.
19963
19964 2010-10-15  Eric Blake  <eblake@redhat.com>
19965
19966         ignore-value: make header idempotent
19967         * lib/ignore-value.h: Add double-inclusion guards.
19968         Reported by Stefan Berger.
19969
19970 2010-10-15  Jim Meyering  <meyering@redhat.com>
19971
19972         GNUmakefile: handle "stable" target, not "major"
19973         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19974         lists in maint.mk and announce-gen.  Without this, "make stable"
19975         would fail to ensure that $(VERSION) is up to date.
19976
19977 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19978
19979         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19980         & co.
19981
19982 2010-10-14  Bruno Haible  <bruno@clisp.org>
19983
19984         vasnprintf: Don't set errno to 0.
19985         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19986         block that sets it to 0.
19987         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19988
19989 2010-10-14  Bruno Haible  <bruno@clisp.org>
19990
19991         socketlib: Fix.
19992         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19993         gl_PREREQ_SYS_H_WINSOCK2.
19994         Reported by Ian Beckwith <ianb@erislabs.net>.
19995
19996 2010-10-13  Jim Meyering  <meyering@redhat.com>
19997
19998         test-select-stdin.c: avoid warn_unused_result warnings
19999         * tests/test-select-stdin.c: Include "macros.h".
20000         ASSERT that read and fflush succeed.
20001
20002 2010-10-13  Jim Meyering  <meyering@redhat.com>
20003
20004         git-version-gen: do require git-VC'd files in cwd
20005         * build-aux/git-version-gen: Reject a git version string
20006         if there are no commits associated with the current directory.
20007         This avoids an unlikely false-positive (unrelated dir whose parent
20008         repository also contains a tag matching v*), as pointed out
20009         by Giuseppe Scrivano in
20010         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
20011
20012 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20013
20014         argv-iter: omit nonconforming declaration
20015         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
20016         enum arg_iter_err declaration, which doesn't conform to C99.
20017         Solaris 10 cc warns about this.
20018
20019 2010-10-13  Eric Blake  <eblake@redhat.com>
20020
20021         termios: fix compilation on mingw
20022         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
20023         (gl_TERMIOS_H): Adjust it on mingw.
20024         * modules/termios (Makefile.am): Substitute new key.
20025         * lib/termios.in.h (includes): Make include_next conditional.
20026         * doc/posix-headers/termios.texi (termios.h): Update
20027         documentation.
20028         Reported by Daniel P. Berrange.
20029
20030 2010-10-13  Jim Meyering  <meyering@redhat.com>
20031
20032         git-version-gen: don't require that .git/ be in the current dir
20033         * build-aux/git-version-gen: Adjust this script so that it works
20034         when run from any working directory beneath the top-level .git/-
20035         containing directory.  Inspired by a patch from Giuseppe Scrivano,
20036         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
20037
20038         test-select: avoid warn_unused_result warnings
20039         * tests/test-select.c: Include "macros.h".
20040         ASSERT that each call to read, write, and pipe succeeds.
20041         While not technically required, also check each "close".
20042         * modules/select-tests (Files): Add tests/macros.h.
20043
20044         test-symlinkat: remove declaration of unused local
20045         * tests/test-symlinkat.c (main): Remove unused local, "buf".
20046
20047         test-inttostr: avoid shadowing warnings
20048         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
20049         and use malloc rather than the stack for the same reason as
20050         mentioned in the comment justifying the other allocation.
20051
20052 2010-10-11  Bruno Haible  <bruno@clisp.org>
20053
20054         stdlib: Allow multiple gnulib generated replacements to coexist.
20055         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
20056         Reported by Sam Steingold <sds@gnu.org>.
20057
20058 2010-10-11  Jim Meyering  <meyering@redhat.com>
20059
20060         fix a documentation typo
20061         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
20062
20063 2010-10-11  Eric Blake  <eblake@redhat.com>
20064
20065         futimens: work around Solaris 11 bug
20066         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
20067         * tests/test-futimens.h (test_futimens): Enhance, rather than
20068         weaken test.
20069         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20070
20071 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20072
20073         Indentation.
20074         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
20075         higher-level operators more to the left.
20076
20077 2010-10-11  Jim Meyering  <meyering@redhat.com>
20078
20079         test-futimens: avoid unwarranted test failure on Solaris 5.11
20080         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
20081         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20082         because it tries to dereference the NULL name argument.
20083
20084 2010-10-11  Bruno Haible  <bruno@clisp.org>
20085
20086         Indentation.
20087         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
20088         indentation.
20089
20090 2010-10-11  Jim Meyering  <meyering@redhat.com>
20091
20092         spawn.in.h: make indentation consistent with parentheses
20093         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
20094         Make indentation consistent with parentheses.
20095
20096 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
20097
20098         Fix mismatched parens in previous commit
20099         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
20100         parens.
20101
20102 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20103
20104         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
20105
20106         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
20107         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
20108         * lib/malloca.c: Include "verify.h".
20109         (verify1): Remove, replacing with a verify call.
20110         * lib/relocwrapper.c (verify1): Likewise.
20111         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
20112         Likewise.
20113         * modules/malloca (Depends-on): Add 'verify'.
20114         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
20115         * modules/vasnprintf (Depends-on): Add 'verify'.
20116         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20117         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20118         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20119         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20120         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20121         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20122         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20123
20124         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
20125
20126         Formerly the style was sometimes 2*X - 1, because the C standard
20127         was wrongly thought to disallow ?: in integral constant expressions.
20128         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
20129         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
20130         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20131         * lib/stdint.in.h (_verify_intmax_size): Likewise.
20132         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
20133         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
20134         verify that time_t cannot be floating.
20135
20136 2010-10-08  Eric Blake  <eblake@redhat.com>
20137
20138         time: enforce recent POSIX ruling that time_t is integral
20139         * lib/time.in.h (__time_t_must_be_integral): Detect any
20140         problematic systems, allowing the rest of gnulib to assume POSIX.
20141
20142 2010-10-08  Jim Meyering  <meyering@redhat.com>
20143
20144         fdopendir: fix a bug on systems lacking openat and /proc support
20145         OpenBSD 4.7 is one such system.  The most noticeable effect was
20146         failure of any application making nontrivial use of fts: rm, du,
20147         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
20148           ./rm: traversal failed: `a': Bad file descriptor
20149         Debugging that, you see that even though FD 6 was closed just
20150         prior to the opendir call in fd_clone_opendir, its resulting
20151         dir->dd_fd was 8, rather than the expected value of 6:
20152
20153         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
20154         93                close (fd);
20155         (gdb) n
20156         94                dir = fd_clone_opendir (dupfd);
20157         (gdb) n
20158         95                saved_errno = errno;
20159         (gdb) p dir->dd_fd
20160         $11 = 8
20161
20162         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
20163         The problem is that on OpenBSD, fd_clone_opendir has to resort
20164         to using the old-style save/restore CWD mechanism, due to its
20165         lack of openat/proc support, and *that* would steal the FD (6)
20166         that opendir was supposed to use.
20167
20168         The fix is to squirrel away the desired FD so that save_cwd uses a
20169         different one, and then free the dest FD right before calling opendir.
20170         That guarantees opendir will use the required file descriptor.
20171
20172         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
20173
20174 2010-10-08  Bruno Haible  <bruno@clisp.org>
20175
20176         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
20177         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
20178
20179 2010-10-08  Bruno Haible  <bruno@clisp.org>
20180
20181         nanosleep: Make replacement POSIX compliant.
20182         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
20183         is out of range.
20184         Reported by Jim Meyering.
20185
20186 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20187
20188         bootstrap: add hook for altering gnulib.mk, for Bison
20189         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
20190         the Bison bootstrapping process can rewrite file names and variables
20191         in this file before later parts of 'bootstrap' use the file.
20192         Bison wants to include lib/gnulib.mk from the top-level makefile,
20193         so it needs the file names in this file to be relative to the top
20194         level, not relative to lib; plus it needs variable names to be
20195         rewritten.
20196         (slurp): Use the new function.
20197
20198         bootstrap: reformat for readability
20199         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
20200
20201 2010-10-08  Eric Blake  <eblake@redhat.com>
20202
20203         docs: update cygwin progress
20204         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
20205         1.7.7.
20206         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
20207         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
20208         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
20209         * doc/posix-functions/carg.texi (carg): Likewise.
20210         * doc/posix-functions/cargf.texi (cargf): Likewise.
20211         * doc/posix-functions/casin.texi (casin): Likewise.
20212         * doc/posix-functions/casinf.texi (casinf): Likewise.
20213         * doc/posix-functions/casinh.texi (casinh): Likewise.
20214         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
20215         * doc/posix-functions/catan.texi (catan): Likewise.
20216         * doc/posix-functions/catanf.texi (catanf): Likewise.
20217         * doc/posix-functions/catanh.texi (catanh): Likewise.
20218         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
20219         * doc/posix-functions/ccos.texi (ccos): Likewise.
20220         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
20221         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
20222         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
20223         * doc/posix-functions/cexp.texi (cexp): Likewise.
20224         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
20225         * doc/posix-functions/cimag.texi (cimag): Likewise.
20226         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
20227         * doc/posix-functions/clog.texi (clog): Likewise.
20228         * doc/posix-functions/clogf.texi (clogf): Likewise.
20229         * doc/posix-functions/conj.texi (conj): Likewise.
20230         * doc/posix-functions/conjf.texi (conjf): Likewise.
20231         * doc/posix-functions/cpow.texi (cpow): Likewise.
20232         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
20233         * doc/posix-functions/cproj.texi (cproj): Likewise.
20234         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
20235         * doc/posix-functions/creal.texi (creal): Likewise.
20236         * doc/posix-functions/crealf.texi (crealf): Likewise.
20237         * doc/posix-functions/csin.texi (csin): Likewise.
20238         * doc/posix-functions/csinf.texi (csinf): Likewise.
20239         * doc/posix-functions/csinh.texi (csinh): Likewise.
20240         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
20241         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
20242         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
20243         * doc/posix-functions/ctan.texi (ctan): Likewise.
20244         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
20245         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
20246         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
20247         * doc/posix-headers/complex.texi (complex.h): Likewise.
20248
20249 2010-10-07  Jim Meyering  <meyering@redhat.com>
20250
20251         parse-datetime: avoid compilation failure on OpenBSD 4.7
20252         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
20253         This works around a compilation failure on OpenBSD 4.7:
20254         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
20255
20256 2010-10-07  Eric Blake  <eblake@redhat.com>
20257
20258         docs: update cygwin progress
20259         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
20260         1.7.6.
20261         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20262         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
20263         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
20264         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
20265         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
20266         Likewise.
20267         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
20268         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
20269         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
20270         Likewise.
20271         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
20272         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
20273         Likewise.
20274         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
20275         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
20276         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
20277         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
20278         Likewise.
20279         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
20280         Likewise.
20281         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
20282
20283         docs: update parse-datetime history
20284         * doc/parse-datetime.texi (Authors of parse_datetime): Better
20285         documentation of this function's history and alternatives.
20286
20287         cygwin: use more robust version check
20288         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
20289         exclude an eventual cygwin 1.9.1.
20290         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20291         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20292         (gl_FUNC_STRCASESTR): Likewise.
20293         Reported by Bruno Haible.
20294
20295 2010-10-06  Bruno Haible  <bruno@clisp.org>
20296
20297         string, sys_select: Avoid #including large headers unless necessary.
20298         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
20299         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
20300         OSF/1, BeOS, Haiku.
20301         Reported by Jim Meyering.
20302
20303 2010-10-05  Eric Blake  <eblake@redhat.com>
20304
20305         memmem, strstr, strcasestr: fix bug with long periodic needle
20306         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
20307         periodic needle having false positive.
20308         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
20309         and cygwin 1.7.7.
20310         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
20311         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20312         (gl_FUNC_STRCASESTR): Likewise.
20313         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20314         * tests/test-memmem.c (main): Expose the bug.
20315         * tests/test-strcasestr.c (main): Likewise.
20316         * tests/test-strstr.c (main): Likewise.
20317         * tests/test-c-strcasestr.c (main): Likewise.
20318         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
20319         * doc/posix-functions/strstr.texi (strstr): Likewise.
20320         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20321         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
20322
20323 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20324
20325         parse-datetime: do some more renaming
20326         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
20327         parse_datetime, not get_date.  Mention the renaming.
20328         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
20329         in comments.
20330         * m4/bison.m4: Likewise.
20331
20332 2010-10-05  Eric Blake  <eblake@redhat.com>
20333
20334         parse-datetime: better name than get_date
20335         * NEWS: Reword the deprecation notice.
20336         * modules/get_date: Rename to modules/parse-datetime.
20337         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
20338         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
20339         * lib/get_date.y: Rename to lib/parse-datetime.y.
20340         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
20341         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
20342         * doc/getdate.texi: Provide fallback wrapper.
20343         * lib/getdate.h: Move guts, and wrap...
20344         * lib/parse-datetime.h: ...new file.
20345         * lib/parse-datetime.y (get_date): Rename...
20346         (parse_datetime): ...to this.
20347         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
20348         (gl_PARSE_DATETIME): ...to this.
20349         * doc/posix-functions/getdate.texi (get_date): Provide fallback
20350         documentation.
20351         * modules/getdate (Files): Provide fallback docs and header.
20352         (Notice, Depends-on): Update references.
20353         * tests/test-parse-datetime.c: Likewise.
20354         * DEPENDENCIES: Likewise.
20355         * MODULES.html.sh (Date and time <time.h>): Likewise.
20356         * doc/parse-datetime.texi (Date input formats)
20357         (Authors of parse_datetime): Likewise.
20358         * modules/parse-datetime (Files, configure.ac, Makefile.am)
20359         (Include): Likewise.
20360         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
20361         * gnulib-tool: Likewise.
20362         * m4/bison.m4 (gl_BISON): Likewise.
20363         Suggested by Bruno Haible.
20364
20365 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20366
20367         more ports to Solaris tr, which needs [] around ranges
20368         * gnulib-tool: Solaris tr needs [] around ranges.
20369         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20370         * tests/test-pipe-filter-gi1.c (main): Likewise.
20371         * tests/test-pipe-filter-ii1.c (main): Likewise.
20372
20373 2010-10-05  Eric Blake  <eblake@redhat.com>
20374
20375         bootstrap: fix Solaris regression
20376         * build-aux/bootstrap (check_versions): Solaris tr still needs []
20377         around ranges.
20378         Reported by Pádraig Brady.
20379
20380         bootstrap: work with pkg-config
20381         * build-aux/bootstrap (check_versions): Also transliterate - in
20382         prerequisite name.
20383         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
20384         prerequisites that were already found, to avoid confusion.
20385         Reported by Justin Clift.
20386
20387         faccessat: remove unused wrappers
20388         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
20389         presence of these wrappers dragged in -lgen on Solaris.
20390         Reported by Clemens Brogi; fix suggested by Paul Eggert.
20391
20392 2010-10-05  Jim Meyering  <meyering@redhat.com>
20393
20394         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
20395         * Makefile (sc_pragma_columns): New syntax-check rule.
20396
20397 2010-10-04  Bruno Haible  <bruno@clisp.org>
20398
20399         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
20400         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
20401         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
20402         Reported by Bruce Korb and Eric Blake.
20403
20404 2010-10-04  Bruno Haible  <bruno@clisp.org>
20405
20406         threadlib: Make option --with-libpth-prefix work.
20407         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
20408         use $LIBPTH, not just -lpth.
20409
20410 2010-10-04  Bruno Haible  <bruno@clisp.org>
20411
20412         Avoid line length limitation from HP NonStop system header files.
20413         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
20414         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
20415         * lib/ctype.in.h: Likewise.
20416         * lib/dirent.in.h: Likewise.
20417         * lib/errno.in.h: Likewise.
20418         * lib/fcntl.in.h: Likewise.
20419         * lib/float.in.h: Likewise.
20420         * lib/getopt.in.h: Likewise.
20421         * lib/iconv.in.h: Likewise.
20422         * lib/inttypes.in.h: Likewise.
20423         * lib/langinfo.in.h: Likewise.
20424         * lib/locale.in.h: Likewise.
20425         * lib/math.in.h: Likewise.
20426         * lib/netdb.in.h: Likewise.
20427         * lib/netinet_in.in.h: Likewise.
20428         * lib/poll.in.h: Likewise.
20429         * lib/pthread.in.h: Likewise.
20430         * lib/pty.in.h: Likewise.
20431         * lib/sched.in.h: Likewise.
20432         * lib/se-selinux.in.h: Likewise.
20433         * lib/search.in.h: Likewise.
20434         * lib/signal.in.h: Likewise.
20435         * lib/spawn.in.h: Likewise.
20436         * lib/stdarg.in.h: Likewise.
20437         * lib/stddef.in.h: Likewise.
20438         * lib/stdint.in.h: Likewise.
20439         * lib/stdio.in.h: Likewise.
20440         * lib/stdlib.in.h: Likewise.
20441         * lib/string.in.h: Likewise.
20442         * lib/strings.in.h: Likewise.
20443         * lib/sys_file.in.h: Likewise.
20444         * lib/sys_ioctl.in.h: Likewise.
20445         * lib/sys_select.in.h: Likewise.
20446         * lib/sys_socket.in.h: Likewise.
20447         * lib/sys_stat.in.h: Likewise.
20448         * lib/sys_time.in.h: Likewise.
20449         * lib/sys_times.in.h: Likewise.
20450         * lib/sys_utsname.in.h: Likewise.
20451         * lib/sys_wait.in.h: Likewise.
20452         * lib/sysexits.in.h: Likewise.
20453         * lib/termios.in.h: Likewise.
20454         * lib/time.in.h: Likewise.
20455         * lib/unistd.in.h: Likewise.
20456         * lib/wchar.in.h: Likewise.
20457         * lib/wctype.in.h: Likewise.
20458         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
20459         * modules/ctype (Makefile.am): Likewise.
20460         * modules/dirent (Makefile.am): Likewise.
20461         * modules/errno (Makefile.am): Likewise.
20462         * modules/fcntl-h (Makefile.am): Likewise.
20463         * modules/float (Makefile.am): Likewise.
20464         * modules/getopt-posix (Makefile.am): Likewise.
20465         * modules/iconv-h (Makefile.am): Likewise.
20466         * modules/inttypes (Makefile.am): Likewise.
20467         * modules/langinfo (Makefile.am): Likewise.
20468         * modules/locale (Makefile.am): Likewise.
20469         * modules/math (Makefile.am): Likewise.
20470         * modules/netdb (Makefile.am): Likewise.
20471         * modules/netinet_in (Makefile.am): Likewise.
20472         * modules/poll-h (Makefile.am): Likewise.
20473         * modules/pthread (Makefile.am): Likewise.
20474         * modules/pty (Makefile.am): Likewise.
20475         * modules/sched (Makefile.am): Likewise.
20476         * modules/search (Makefile.am): Likewise.
20477         * modules/selinux-h (Makefile.am): Likewise.
20478         * modules/signal (Makefile.am): Likewise.
20479         * modules/spawn (Makefile.am): Likewise.
20480         * modules/stdarg (Makefile.am): Likewise.
20481         * modules/stddef (Makefile.am): Likewise.
20482         * modules/stdint (Makefile.am): Likewise.
20483         * modules/stdio (Makefile.am): Likewise.
20484         * modules/stdlib (Makefile.am): Likewise.
20485         * modules/string (Makefile.am): Likewise.
20486         * modules/strings (Makefile.am): Likewise.
20487         * modules/sys_file (Makefile.am): Likewise.
20488         * modules/sys_ioctl (Makefile.am): Likewise.
20489         * modules/sys_select (Makefile.am): Likewise.
20490         * modules/sys_socket (Makefile.am): Likewise.
20491         * modules/sys_stat (Makefile.am): Likewise.
20492         * modules/sys_time (Makefile.am): Likewise.
20493         * modules/sys_times (Makefile.am): Likewise.
20494         * modules/sys_utsname (Makefile.am): Likewise.
20495         * modules/sys_wait (Makefile.am): Likewise.
20496         * modules/sysexits (Makefile.am): Likewise.
20497         * modules/termios (Makefile.am): Likewise.
20498         * modules/time (Makefile.am): Likewise.
20499         * modules/unistd (Makefile.am): Likewise.
20500         * modules/wchar (Makefile.am): Likewise.
20501         * modules/wctype (Makefile.am): Likewise.
20502
20503 2010-10-04  Bruno Haible  <bruno@clisp.org>
20504
20505         read-file tests: Avoid a test failure on NonStop Kernel.
20506         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
20507         a regular file.
20508         Reported by Joachim Schmitz <schmitz@hp.com>.
20509
20510 2010-10-03  Bruno Haible  <bruno@clisp.org>
20511
20512         gnulib-tool: Fixes for --create-testdir with --libtool.
20513         * gnulib-tool (func_get_automake_snippet): Don't augment
20514         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
20515         an executable.
20516         (func_create_testdir): Handle module 'alloca' like func_import.
20517         Reported by Bruce Korb <bruce.korb@gmail.com>.
20518
20519 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20520
20521         Avoid some lines longer than 80 characters.
20522         * lib/stdint.in.h: Break long comment lines.
20523         * lib/math.in.h: Likewise.
20524         (_GL_NUM_UINT_WORDS): New macro, for readability.
20525         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
20526         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
20527         * lib/stdlib.in.h: Likewise.
20528         * lib/spawn.in.h: Likewise.
20529         * lib/sys_socket.in.h: Update an URL.
20530         * lib/sys_stat.in.h: Break long line.
20531
20532 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
20533
20534         Improve pmccabe2html.
20535         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
20536         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
20537         when the sources change. Remove the line in the HTML about "Used
20538         ranges" (which implied that there might be other unused ranges),
20539         rename "Resume" to "Summary" (easier to understand for more users).
20540         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
20541         styles, and some unnecessary blank lines.
20542
20543 2010-10-03  Bruno Haible  <bruno@clisp.org>
20544             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
20545
20546         acl: Add support for ACLs on NonStop Kernel.
20547         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
20548         Check whether the function aclsort() exists.
20549         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
20550         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
20551         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20552         (acl_nontrivial [HAVE_ACLSORT]: New function.
20553         (file_has_acl): Implement for NonStop Kernel.
20554         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20555         (qset_acl): Implement for NonStop Kernel.
20556         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
20557         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20558         (main): Implement for NonStop Kernel.
20559         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
20560         Kernel. Handle this flavor.
20561         * tests/test-set-mode-acl.sh: Likewise.
20562         * tests/test-copy-acl.sh: Likewise.
20563         * tests/test-copy-file.sh: Likewise.
20564
20565 2010-10-03  Bruno Haible  <bruno@clisp.org>
20566
20567         Info about ACLs on NonStop Kernel.
20568         * doc/acl-resources.txt: Add info about NonStop Kernel.
20569         References by Joachim Schmitz <schmitz@hp.com>.
20570
20571 2010-10-02  Bruno Haible  <bruno@clisp.org>
20572
20573         Define missing EDQUOT on NonStop Kernel.
20574         * lib/errno.in.h (EDQUOT): Assign a value if missing.
20575         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
20576         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
20577         missing.
20578         * doc/posix-headers/errno.texi: Mention the NSK bug.
20579         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
20580         Reported by Joachim Schmitz <schmitz@hp.com>.
20581
20582 2010-10-02  Bruno Haible  <bruno@clisp.org>
20583
20584         Update doc for POSIX:2008.
20585         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
20586         Update URL of POSIX specification.
20587
20588 2010-10-02  Bruno Haible  <bruno@clisp.org>
20589
20590         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
20591         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
20592         from gnulib, not from Automake.
20593
20594 2010-10-02  Bruno Haible  <bruno@clisp.org>
20595
20596         New module 'system-posix'.
20597         * modules/system-posix: New file.
20598         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
20599         module is present.
20600         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20601         GNULIB_SYSTEM_POSIX.
20602         * modules/stdlib (Depends-on): Remove sys_wait.
20603         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
20604         * doc/posix-functions/system.texi: Mention the new module.
20605         * doc/posix-headers/stdlib.texi: Likewise.
20606         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
20607         define test_sys_wait_macros to a no-op.
20608         Reported by Sam Steingold <sds@gnu.org>.
20609
20610 2010-09-30  Bruno Haible  <bruno@clisp.org>
20611
20612         More renaming from 'getdate' to 'get_date'.
20613         * doc/get_date.texi: Renamed from doc/getdate.texi.
20614         * modules/get_date (Files): Update.
20615         * MODULES.html.sh (Date and time <time.h>): Update.
20616         * DEPENDENCIES: Update.
20617         * gnulib-tool: Update comment.
20618         * m4/bison.m4 (gl_BISON): Likewise.
20619         * m4/get_date.m4 (gl_GET_DATE): Likewise.
20620
20621 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
20622
20623         bootstrap: support ACLOCAL_FLAGS during aclocal
20624         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
20625         can add additional -I dir for third-party .m4 files.
20626
20627 2010-09-30  Eric Blake  <eblake@redhat.com>
20628
20629         bootstrap: use glibtoolize on MacOS
20630         * build-aux/bootstrap (check_versions): Convert libtool into
20631         libtoolize.
20632         (tool search): Move libtool check earlier, and look for
20633         glibtoolize for MacOS.
20634         (gnulib_tool_options): Auto-add --libtool when appropriate.
20635         Reported by Justin Clift.
20636
20637         poll: fix typo that broke test on MacOS
20638         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
20639         Reported by Justin Clift.
20640
20641         getdate: rename to get_date
20642         Note: getdate.h is not renamed, to minimize client impact.
20643         * modules/getdate: Mark obsolete.  Move old contents...
20644         * modules/get_date: ...to new module name.
20645         * modules/getdate-tests: Move...
20646         * modules/get_date-tests: ...here.
20647         * m4/getdate.m4: Move...
20648         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20649         * lib/getdate.y: Move...
20650         * lib/get_date.y: ...here.
20651         * tests/test-getdate.c: Move...
20652         * tests/test-get_date.c: ...here.
20653         * doc/posix-functions/getdate.texi (getdate): Update name.
20654         * NEWS: Mention the change.
20655
20656 2010-09-29  Bruno Haible  <bruno@clisp.org>
20657
20658         Separate the module 'waitpid' from the module 'sys_wait'.
20659         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20660         present.
20661         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20662         gl_MODULE_INDICATOR_FOR_TESTS.
20663         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20664         * modules/sys_wait (Depends-on): Remove waitpid.
20665         (Makefile.am): Substitute GNULIB_WAITPID.
20666         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20667         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20668         signature only if the 'waitpid' module is present.
20669         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20670         * NEWS: Mention the change.
20671         * modules/grantpt (Depends-on): Add waitpid.
20672         * modules/wait-process (Depends-on): Likewise.
20673
20674 2010-09-29  Bruno Haible  <bruno@clisp.org>
20675
20676         More tests for module 'sys_wait'.
20677         * modules/sys_wait-c++-tests: New file.
20678         * tests/test-sys_wait-c++.cc: New file.
20679         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20680         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20681
20682 2010-09-29  Bruno Haible  <bruno@clisp.org>
20683
20684         New module 'waitpid'.
20685         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20686         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20687         Don't include <process.h>.
20688         (waitpid): Declare only, using modern idiom.
20689         * m4/waitpid.m4: New file.
20690         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
20691         * modules/waitpid: New file.
20692         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
20693         (Makefile.am): Update.
20694         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20695
20696 2010-09-28  Bruno Haible  <bruno@clisp.org>
20697
20698         poll: Assume ANSI C.
20699         * lib/poll.c (poll): Use an ANSI C declaration.
20700
20701 2010-09-28  Bruno Haible  <bruno@clisp.org>
20702
20703         poll-h: Create poll.h on all platforms.
20704         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
20705         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
20706         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20707         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20708         (gl_REPLACE_POLL_H): Don't set POLL_H.
20709         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20710         * modules/poll-h (Depends-on): Add include_next.
20711         (Makefile.am): Create poll.h unconditionally. Substitute also
20712         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20713
20714 2010-09-28  Bruno Haible  <bruno@clisp.org>
20715
20716         Tests for module 'poll-h'.
20717         * modules/poll-h-c++-tests: New file.
20718         * tests/test-poll-h-c++.cc: New file.
20719
20720         Tests for module 'poll-h'.
20721         * modules/poll-h-tests: New file.
20722         * tests/test-poll-h.c: New file.
20723
20724 2010-09-28  Bruno Haible  <bruno@clisp.org>
20725
20726         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20727         * modules/poll-h (Depends-on): Add 'extensions'.
20728
20729 2010-09-28  Bruno Haible  <bruno@clisp.org>
20730
20731         New module 'poll-h'.
20732         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20733         (poll): Use modern idiom.
20734         * modules/poll-h: New file.
20735         * modules/poll (Files): Remove lib/poll.in.h.
20736         (Depends-on): Add poll-h.
20737         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
20738         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
20739         * m4/poll_h.m4: New file.
20740         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
20741         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
20742         and invoke gl_REPLACE_POLL_H.
20743         * lib/poll.c: Use common idiom.
20744         * tests/test-poll.c: Likewise.
20745         * doc/posix-headers/poll.texi: Mention the poll-h module.
20746         Suggested by Eric Blake.
20747
20748 2010-09-26  Bruno Haible  <bruno@clisp.org>
20749
20750         sys_wait: Implement WSTOPSIG.
20751         * lib/sys_wait.in.h (WSTOPSIG): New macro.
20752         Reported by Simon Josefsson.
20753
20754 2010-09-26  Simon Josefsson  <simon@josefsson.org>
20755
20756         stdlib, sys_wait: Avoid compilation error on mingw.
20757         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20758
20759 2010-09-26  Bruno Haible  <bruno@clisp.org>
20760
20761         stdlib tests: Avoid code duplication.
20762         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20763         * modules/sys_wait-tests (Files): Likewise.
20764         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20765         * tests/test-stdlib.c: Include test-sys_wait.h.
20766         (main): Invoke test_sys_wait_macros.
20767         * tests/test-sys_wait.c: Include test-sys_wait.h.
20768         (main): Invoke test_sys_wait_macros.
20769
20770 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20771
20772         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20773         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20774         sure Windows sockets are working before calling getaddrinfo.
20775         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20776         * doc/gnulib.texi (Windows sockets): Fix typo.
20777
20778 2010-09-25  Bruno Haible  <bruno@clisp.org>
20779
20780         Tests for module 'regex-quote'.
20781         * modules/regex-quote-tests: New file.
20782         * tests/test-regex-quote.c: New file.
20783
20784         New module 'regex-quote'.
20785         * lib/regex-quote.h: New file.
20786         * lib/regex-quote.c: New file.
20787         * modules/regex-quote: New file.
20788         Suggested by Reuben Thomas <rrt@sc3d.org>.
20789
20790 2010-09-24  Bruno Haible  <bruno@clisp.org>
20791
20792         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20793         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
20794
20795 2010-09-23  Bruno Haible  <bruno@clisp.org>
20796
20797         setenv: Relax license.
20798         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
20799         Blake.
20800         Requested by Eric Blake.
20801
20802 2010-09-22  Bruno Haible  <bruno@clisp.org>
20803
20804         termios: Relax license.
20805         * modules/termios (License): Change to LGPLv2+.
20806         Requested by Eric Blake.
20807
20808 2010-09-22  Bruno Haible  <bruno@clisp.org>
20809
20810         threadlib: Allow the package to change the default to 'no'.
20811         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20812         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20813         Reported by Paul Eggert.
20814
20815 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20816             Bruno Haible  <bruno@clisp.org>
20817
20818         Fix endless loop in mbmemcasecoll.
20819         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20820         byte.
20821         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20822
20823 2010-09-22  Bruno Haible  <bruno@clisp.org>
20824
20825         Tests for module 'memcoll'.
20826         * modules/memcoll-tests: New file.
20827         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20828
20829         memcoll, xmemcoll: Clarify size vs. length.
20830         * modules/memcoll.c (memcoll0): Clarify specification.
20831         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20832         passed to collate_error.
20833
20834 2010-09-22  Bruno Haible  <bruno@clisp.org>
20835
20836         Tests for module 'memcasecmp'.
20837         * modules/memcasecmp-tests: New file.
20838         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20839
20840 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20841
20842         * lib/pthread.in.h: Add split double-inclusion guard, and include
20843         system <pthread.h> if there is one.  Use @@-style as in other
20844         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20845         pthread.h doesn't.
20846         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20847         (pthread_mutexattr_settype, pthread_mutex_trylock):
20848         New static inline functions, if there's no system <pthread.h>.
20849         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20850         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20851         Approximate with mutexes if the system lacks spinlocks, as in
20852         MacOS.
20853         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20854         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20855         @@-style.  Check for spinlocks separately.
20856         (gl_PTHREAD_DEFAULTS): New macro.
20857         * modules/pthread: Redo to use a more typical style for in.h files.
20858
20859 2010-09-21  Eric Blake  <eblake@redhat.com>
20860
20861         net_if: enhance tests
20862         * tests/test-net_if.c (main): Move signature checks earlier.
20863         Print failures to stderr.
20864         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20865         Document the bug that we do not yet fix.
20866
20867 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20868
20869         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20870         about gnulib, not GSS.
20871
20872 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20873
20874         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20875         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20876         for Emacs.
20877         * build-aux/pmccabe2html: Make Makefile.am example code more
20878         cut-and-paste friendly.
20879
20880 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20881
20882         * tests/test-net_if.c: New file.
20883         * modules/net_if-tests: New file.
20884
20885 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20886
20887         pthread: add pthread_spin_destroy
20888         * lib/pthread.in.h (pthread_spin_destroy): New function.
20889
20890 2010-09-19  Bruno Haible  <bruno@clisp.org>
20891
20892         gnulib-tool: Fix --help output.
20893         * gnulib-tool (func_usage): Fix help message.
20894         Reported by Reuben Thomas <rrt@sc3d.org>.
20895
20896 2010-09-18  Jim Meyering  <meyering@redhat.com>
20897
20898         maint.mk: avoid unexpanded \n in two diagnostics
20899         * top/maint.mk (sc_prohibit_always_true_header_tests):
20900         Don't use a literal \n in a halt=... assignment.  It would not be
20901         expanded, and the two \n bytes would appear in the diagnostic output
20902         rather than the desired newline.  Use halt=$$(printf ... instead.
20903         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20904
20905 2010-09-18  Bruno Haible  <bruno@clisp.org>
20906
20907         netinet_in: Doc tweak.
20908         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20909         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20910
20911 2010-09-18  Jim Meyering  <meyering@redhat.com>
20912
20913         init.sh: correct an outdated comment
20914         * tests/init.sh (create_exe_shims_):  s/function/alias/
20915
20916         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20917         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20918         a file named "*.exe" is removed between the glob expansion and the
20919         processing of that oddly named file.
20920
20921 2010-09-17  Eric Blake  <eblake@redhat.com>
20922
20923         mirbsd: add some more support
20924         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20925         in BSD family.
20926         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20927         devices as OpenBSD.
20928         * m4/host-os.m4 (mirbsd): Add MirBSD.
20929
20930         tests: fix unportable assumption on sys/wait.h
20931         * tests/test-sys_wait.c (main): Relax test.
20932         * tests/test-stdlib.c (main): Likewise.
20933
20934         init.sh: accomodate directory with no .exes
20935         * tests/init.sh: Accomodate directory containing only scripts.
20936
20937         tests: avoid compiler warning
20938         * tests/test-stdlib.c (main): Use the variable.
20939
20940         fdutimens, fdutimensat: update signature, again
20941         * lib/utimens.h (gl_futimens): Delete, and move signature...
20942         (fdutimens): ...here.
20943         (fdutimensat): Rearrange signature.
20944         (lutimensat): Rename variable for clarity.
20945         * lib/fdutimensat.c (fdutimensat): Update signature.
20946         * lib/utimens.c (fdutimens): Likewise.
20947         (gl_futimens): Delete.
20948         (utimens, lutimens): Update callers.
20949         * lib/futimens.c (futimens): Likewise.
20950         * tests/test-fdutimensat.c: Likewise.
20951         * tests/test-utimens.c: Likewise.
20952         * tests/test-futimens.h: Update comment.
20953         * NEWS: Mention this.
20954         Suggested by Paul Eggert.
20955
20956 2010-09-17  Bruno Haible  <bruno@clisp.org>
20957
20958         Take over the maintenance of some older macros from Autoconf.
20959         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20960         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20961         GNU Autoconf.
20962         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20963         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20964
20965 2010-09-17  Eric Blake  <eblake@redhat.com>
20966
20967         fdutimensat: drop atflag validation
20968         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20969         with valid fd, to close a race scenario where futimens is
20970         unsupported and FILE was replaced by a symlink.
20971         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20972         accordingly.
20973         Suggested by Paul Eggert.
20974
20975 2010-09-16  Bruno Haible  <bruno@clisp.org>
20976
20977         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20978         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20979
20980 2010-09-16  Bruno Haible  <bruno@clisp.org>
20981
20982         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20983         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20984         login_tty exists.
20985         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20986
20987 2010-09-16  Bruno Haible  <bruno@clisp.org>
20988
20989         login_tty: Make the replacement code work on BSD systems.
20990         * lib/login_tty.c: Include <sys/ioctl.h>.
20991         (login_tty): Use ioctl TIOCSCTTY when available.
20992         * modules/login_tty (Depends-on): Add sys_ioctl.
20993         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20994
20995 2010-09-16  Bruno Haible  <bruno@clisp.org>
20996
20997         login_tty: Stricter unit test.
20998         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20999         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
21000         and tcgetsid() after login_tty.
21001         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21002
21003 2010-09-16  Bruno Haible  <bruno@clisp.org>
21004
21005         New module 'tcgetsid'.
21006         * lib/tcgetsid.c: New file.
21007         * m4/tcgetsid.m4: New file.
21008         * modules/tcgetsid: New file.
21009         * modules/termios (Depends-on): Add c++defs, warn-on-use.
21010         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
21011         GNULIB_TCGETSID, HAVE_TCGETSID.
21012         * lib/termios.in.h: Include <sys/types.h>.
21013         (tcgetsid): New declaration.
21014         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
21015         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
21016         * doc/posix-functions/tcgetsid.texi: Mention the new module.
21017         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
21018
21019 2010-09-16  Bruno Haible  <bruno@clisp.org>
21020
21021         Tests for module 'termios'.
21022         * modules/termios-c++-tests: New file.
21023         * modules/termios-tests: New file.
21024         * tests/test-termios-c++.cc: New file.
21025         * tests/test-termios.c: New file.
21026
21027         New module 'termios'.
21028         * modules/termios: New file.
21029         * lib/termios.in.h: New file.
21030         * m4/termios_h.m4: New file.
21031         * doc/posix-headers/termios.texi: Mention the new module.
21032
21033 2010-09-16  Eric Blake  <eblake@redhat.com>
21034
21035         fdutimensat: add an atflag parameter
21036         * lib/fdutimensat.c (fdutimensat): Add new parameter.
21037         * lib/utimens.h (fdutimensat): Update prototype.
21038         * tests/test-fdutimensat.c: Adjust test to match.
21039         * NEWS: Document the change.
21040         Suggested by Paul Eggert.
21041
21042 2010-09-16  Bruno Haible  <bruno@clisp.org>
21043
21044         Fix typos in comments.
21045         * lib/striconveh.h: Fix typo in comment.
21046         * lib/login_tty.c (login_tty): Likewise.
21047
21048 2010-09-15  Bruno Haible  <bruno@clisp.org>
21049
21050         stdlib: clarify MirBSD WEXITSTATUS bug
21051         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
21052         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21053
21054 2010-09-15  Eric Blake  <eblake@redhat.com>
21055
21056         stdlib: work around MirBSD WEXITSTATUS bug
21057         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
21058         * modules/stdlib (Depends-on): Add sys_wait.
21059         * tests/test-sys_wait.c (main): Enhance test.
21060         * tests/test-stdlib.c (main): Likewise.
21061         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
21062
21063         docs: mention MacOS issue with WEXITSTATUS(constant)
21064         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
21065         issue.
21066         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21067
21068         strnlen: add tests
21069         * modules/strnlen-tests: New file.
21070         * tests/test-strnlen.c: Likewise.
21071
21072 2010-09-14  Bruno Haible  <bruno@clisp.org>
21073
21074         unistr/base: Avoid link errors when module 'libunistring' is also used.
21075         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
21076         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
21077         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
21078         Declare also when HAVE_LIBUNISTRING is set.
21079         Reported by Pádraig Brady <P@draigbrady.com>.
21080
21081 2010-09-14  Eric Blake  <eblake@redhat.com>
21082
21083         test-rawmemchr: make more robust
21084         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
21085         (Depends-on, configure.ac): Add needed prerequisites to use it.
21086         * modules/memchr-tests (Files, Depends-on, configure.ac):
21087         Likewise, to avoid implicit reliance on memchr module prereqs.
21088         * tests/test-memchr.c (main): Ensure proper masking.
21089         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
21090         reads.
21091
21092         memchr: detect glibc Alpha bug
21093         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
21094         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
21095         Alpha.
21096         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
21097         * tests/test-memchr.c (main): Enhance test.
21098         Reported by Nelson H. F. Beebe.
21099
21100 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21101
21102         fts, getcwd, glob: audit for dirfd returning -1
21103         * lib/fts.c (opendir): Remove #define; no longer used.
21104         (opendirat): New arg PDIR_FD.  All callers changed.
21105         (fts_build, _opendir2): Use new opendirat to avoid the need for
21106         dirfd, or for checking whether dirfd returns a negative value.
21107         Don't use opendir; always use openat followed by fdopendir.
21108         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
21109         it.
21110         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
21111         returns -1 here.
21112         * modules/fts (Depends-on): Remove dirfd.
21113         * modules/getcwd (Depends-on): Likewise.
21114
21115 2010-09-13  Eric Blake  <eblake@redhat.com>
21116
21117         float: fix broken MirBSD header
21118         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
21119         * doc/posix-headers/float.texi (float.h): Document it.
21120
21121 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21122
21123         fts: use O_NOFOLLOW to avoid race condition when opening a directory
21124         * lib/fts.c (opendirat): New arg extra_flags.
21125         (__opendir2): Use it to avoid following symlinks when opening
21126         a directory, if symlinks are not supposed to be followed.  See
21127         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
21128
21129         fdopendir: preserve argument fd before returning
21130         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
21131         (fdopendir_with_dup, fd_clone_opendir): New static functions.
21132         (fdopendir): Use them, arranging for FD to be open to the same
21133         directory that it was when it started.  (It might be temporarily
21134         closed while fdopendir is running, so this not thread- or
21135         signal-safe.)  Be careful to do the right thing even when file
21136         descriptors are scarce and dup fails with errno == EMFILE.  See
21137         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
21138
21139 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
21140
21141         regex: Pass the system regex if its only problem is 32-bit regoff_t.
21142         * NEWS: Document change.
21143         * m4/regex.m4: Disable test for regoff_t size.
21144
21145 2010-09-13  Jim Meyering  <meyering@redhat.com>
21146
21147         fts: don't operate on an invalid file descriptor after failed dup
21148         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
21149         negative file descriptor.
21150
21151 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21152
21153         savedir: add streamsavedir, deprecate fdsavedir
21154         * NEWS: Mention deprecation of fdsavedir.
21155         * lib/savedir.c (streamsavedir): New extern function, whose name
21156         ends in "savedir" to be consistent with the others.  This differs
21157         from savedirstream in that it doesn't close its argument.  The
21158         next version of GNU tar will use this instead of fdsavedir, to
21159         avoid some race conditions and conserve file descriptors.
21160         (savedirstream): Reimplement as a wrapper around streamsavedir.
21161         (fdsavedir): Add a comment deprecating this function.  As far as
21162         I know, only GNU tar used it, and GNU tar doesn't need it any more.
21163         * lib/savedir.h (streamsavedir): New decl.
21164         (fdsavedir): Add a comment deprecating this.
21165
21166 2010-09-10  Bruno Haible  <bruno@clisp.org>
21167
21168         langinfo: Fix last commit.
21169         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
21170         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
21171         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21172
21173 2010-09-10  Bruno Haible  <bruno@clisp.org>
21174
21175         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
21176         * lib/progreloc.c (O_EXEC): Define fallback.
21177
21178 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21179
21180         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
21181         * NEWS: Document recent changes to fcntl-h.
21182         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
21183         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
21184         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
21185         Similarly for O_SEARCH; this last was already true, but not documented.
21186         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
21187         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
21188         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
21189         Likewise.
21190         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
21191         is zero, not whether it is defined.
21192         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
21193         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
21194         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
21195
21196 2010-09-10  Bruno Haible  <bruno@clisp.org>
21197
21198         langinfo, nl_langinfo: Fix for IRIX 5.3.
21199         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
21200         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
21201         HAVE_LANGINFO_YESEXPR.
21202         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
21203         HAVE_LANGINFO_YESEXPR.
21204         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
21205         HAVE_LANGINFO_T_FMT_AMPM is 0.
21206         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
21207         HAVE_LANGINFO_YESEXPR is 0.
21208         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
21209         NOEXPR.
21210         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
21211         * doc/posix-functions/nl_langinfo.texi: Likewise.
21212         Reported by Eric Blake.
21213
21214 2010-09-10  Bruno Haible  <bruno@clisp.org>
21215
21216         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
21217         * doc/glibc-functions/login_tty.texi: Mention the include file problem
21218         on FreeBSD 8.0 and OpenBSD 4.6.
21219         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
21220         * m4/pty_h.m4 (gl_PTY_H): Likewise.
21221         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
21222         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
21223         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
21224         ac_includes_default.
21225         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21226
21227 2010-09-09  Eric Blake  <eblake@redhat.com>
21228
21229         strsignal: work around NetBSD bug
21230         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
21231         * lib/string.in.h (includes): Likewise.
21232         * doc/posix-functions/strsignal.texi (strsignal): Document the
21233         bug.
21234         Reported by Nelson H. F. Beebe.
21235
21236         gnulib-tool: work with NetBSD /bin/sh
21237         * gnulib-tool (func_cache_var, func_cache_lookup_module)
21238         (func_get_description, func_get_comment, func_get_status)
21239         (func_get_notice, func_get_applicability, func_get_filelist)
21240         (func_get_dependencies, func_get_autoconf_early_snippet)
21241         (func_get_autoconf_snippet, func_get_automake_snippet)
21242         (func_get_include_directive, func_get_link_directive)
21243         (func_get_license, func_get_maintainer, func_import): Avoid
21244         shell syntax errors from parsing syntax extensions.
21245
21246 2010-09-09  Bruno Haible  <bruno@clisp.org>
21247
21248         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21249         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
21250         a reliable way to determine whether the 'alias' command works.
21251
21252 2010-09-08  Jim Meyering  <meyering@redhat.com>
21253
21254         init.sh: penalize a set-x-impaired shell; don't disqualify it
21255         * tests/init.sh: Too many shells corrupt application stderr when
21256         you set -x, so we can't afford to disqualify them, since at least
21257         on Irix-6.5, that would disqualify all bourne shells.
21258         Instead, use a two-pass approach.
21259         On the first pass, try to find a shell that meets the stricter
21260         condition that set -x does not corrupt stderr.
21261         If no shell meets the stricter condition, retest each candidate
21262         shell, but without that extra condition.  Finally, when
21263         VERBOSE=yes is requested and set -x might cause trouble, simply
21264         issue a warning and refrain from enabling debug output.
21265
21266 2010-09-08  Eric Blake  <eblake@redhat.com>
21267
21268         unsetenv: fix OpenBSD bug
21269         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
21270         * doc/posix-functions/unsetenv.texi (unsetenv): Update
21271         documentation.
21272         Reported by Jim Meyering.
21273
21274         strtod: work around IRIX 6.5 bug
21275         * lib/strtod.c (strtod): Reparse number on shorter string if
21276         exponent parse was invalid.
21277         * tests/test-strtod.c (main): Add check for "0x1p 2".
21278         Reported by Tom G. Christensen.
21279
21280         getopt: optimize previous patch
21281         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
21282         empty variable.  Speed up awk script.
21283         Reported by Paolo Bonzini.
21284
21285 2010-09-08  Jim Meyering  <meyering@redhat.com>
21286
21287         test.sh: disqualify shells for which set -x corrupts stderr
21288         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
21289         and OpenBSD 4.7.  They make it so with "set -x", environment settings
21290         appear in stderr output.  For example, this command:
21291             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
21292         prints "P=1" on those two systems:
21293
21294 2010-09-08  Bruno Haible  <bruno@clisp.org>
21295
21296         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21297         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
21298         commands, because some shells ignore redirections when there is an
21299         error in the command lookup.
21300         Reported by Eric Blake.
21301
21302 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
21303
21304         * lib/regex.h: Fix a mention of `regex_compile' (should be
21305         `re_compile_pattern').
21306         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
21307         (re_set_registers): Correct name of parameter in comment.
21308
21309         * doc/regex.texi: Add documentation for missing syntax flags.
21310         Remove commented-out documentation of defunct syntax option
21311         RE_NO_EMPTY_ALTS.
21312         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
21313         Add documentation of re_set_registers.
21314         Document trick to re-use a pattern buffer by setting fastmap manually.
21315         Update documentation of struct re_pattern_buffer per public members.
21316         Uncomment documentation of equivalence class operators and
21317         collating symbol operators, since they are now implemented,
21318         Explain leftmost-longest matching in relation to alternatives.
21319         Tidy documentation of substring matching.
21320         Remove POSIX documentation, which is done better in
21321         glibc, and refer the reader there. Keep BSD API documentation, as
21322         that is not readily available elsewhere.
21323
21324 2010-09-07  Eric Blake  <eblake@redhat.com>
21325
21326         getopt: handle POSIXLY_CORRECT set but not exported
21327         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
21328         export state of POSIXLY_CORRECT, due to bash set -o posix.
21329         Reported by Dustin J. Mitchell.
21330
21331 2010-09-05  Bruno Haible  <bruno@clisp.org>
21332
21333         gnulib-tool: Highlight the changed options.
21334         * gnulib-tool (func_usage): Display the --import, --add-import,
21335         --remove-import explanations in bold font.
21336
21337 2010-09-06  Karl Berry  <karl@gnu.org>
21338
21339         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
21340
21341 2010-09-05  Bruno Haible  <bruno@clisp.org>
21342
21343         uniwidth/width: Update comment.
21344         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
21345         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
21346
21347 2010-09-05  Bruno Haible  <bruno@clisp.org>
21348
21349         isinf, isnan: Relax license.
21350         * modules/isinf (License): Change from GPL to LGPL, with consent from
21351         Ben Pfaff.
21352         * modules/isnan (License): Likewise.
21353         Requested by Ludovic Courtès.
21354
21355 2010-09-04  Bruno Haible  <bruno@clisp.org>
21356
21357         gnulib-tool: Help migration from --import to --add-import or --update.
21358         * gnulib-tool: Emit a verbose error message when --import is used
21359         without any module name.
21360
21361 2010-09-04  Bruno Haible  <bruno@clisp.org>
21362
21363         Update doc about gnulib-tool.
21364         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
21365         'gnulib-tool --update' in more detail.
21366         Reported by Eric Blake.
21367
21368 2010-09-04  Bruno Haible  <bruno@clisp.org>
21369
21370         gnulib-tool: Change --import. New options --add/remove-import.
21371         * gnulib-tool: New options --add-import, --remove-import.
21372         (func_usage): Document them.
21373         (have_associative): Define always.
21374         (func_import): In import mode, don't merge the specified settings with
21375         the cached settings. Implement remove-import mode.
21376         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
21377         Explain when to use them versus --import.
21378         (Simple update): Use --add-import instead of --import.
21379         * NEWS: Mention the change.
21380
21381 2010-09-04  Bruno Haible  <bruno@clisp.org>
21382
21383         * doc/gnulib-tool.texi (Initial import): Update paragraph about
21384         separate gnulib.mk.
21385
21386 2010-09-04  Bruno Haible  <bruno@clisp.org>
21387
21388         gnulib-tool: Don't talk about CVS any more.
21389         * gnulib-tool (func_usage, func_import): Write "version control"
21390         instead of CVS.
21391
21392 2010-09-04  Jim Meyering  <meyering@redhat.com>
21393
21394         maint.mk: avoid obscure sc_copyright_check failure in coreutils
21395         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
21396         false positives (whose names may be ill-chosen) when searching
21397         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
21398         would cause a false-positive.
21399
21400         avoid coreutils "make distcheck" failure
21401         Coreutils tests with an absolute build directory name that contains
21402         a space.  Not quoting this directory name caused a failure.
21403         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
21404         * tests/test-vc-list-files-cvs.sh: Likewise.
21405
21406 2010-09-04  Bruno Haible  <bruno@clisp.org>
21407
21408         gnulib-tool: Avoid error when run in a package without Makefile.am.
21409         * gnulib-tool: When collecting the m4dirs in a package that does not
21410         have a Makefile.am, eliminate those directories that contain no
21411         gnulib-cache.m4. Fix expression that counts these directories.
21412
21413 2010-09-04  Bruno Haible  <bruno@clisp.org>
21414
21415         update-copyright test: Improve output when perl is missing or too old.
21416         * tests/test-update-copyright.sh: Move test of Perl version down after
21417         the test whether Perl exists. Provide an explanation relating Perl's
21418         error message to Automake's SKIP: message.
21419
21420 2010-09-04  Bruno Haible  <bruno@clisp.org>
21421
21422         Don't augment PATH in TESTS_ENVIRONMENT.
21423         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
21424         set abs_aux_dir instead of augmenting PATH.
21425         * modules/vc-list-files-tests (Makefile.am): Likewise.
21426         * tests/test-update-copyright.sh: Augment PATH here.
21427         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
21428         path_prepend_.
21429         * tests/test-vc-list-files-git.sh: Likewise.
21430
21431 2010-09-04  Jim Meyering  <meyering@redhat.com>
21432
21433         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
21434         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
21435
21436 2010-09-04  Bruno Haible  <bruno@clisp.org>
21437
21438         strdup: Fix compilation error in C++ mode.
21439         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
21440         the macro.
21441
21442 2010-09-04  Bruno Haible  <bruno@clisp.org>
21443
21444         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
21445         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
21446         macro into a function.
21447         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21448
21449 2010-09-04  Bruno Haible  <bruno@clisp.org>
21450
21451         Set PATH_SEPARATOR the same way autoconf does.
21452         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
21453         the value of PATH_SEPARATOR the same way autoconf-generated configure
21454         scripts do.
21455         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
21456         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21457
21458 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21459
21460         Set PATH_SEPARATOR the same way autoconf does.
21461         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
21462         the same way autoconf-generated configure scripts do.
21463         * posix-modules: Likewise.
21464
21465 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21466
21467         hash: fix safe_hasher const typo
21468         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
21469         const; otherwise, there is a type error later.
21470
21471 2010-09-02  Jim Meyering  <meyering@redhat.com>
21472
21473         test-update-copyright.sh: require perl 5.8.0
21474         * tests/test-update-copyright.sh: Require 5.8.0,
21475         which Tom G. Christensen has confirmed is adequate,
21476         while 5.6.1 is not.
21477
21478 2010-09-02  Eric Blake  <eblake@redhat.com>
21479
21480         tests: init.sh improvements for re-exec'ing with zsh
21481         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
21482         -vx through shell re-exec.
21483         Reported by Tom G. Christensen.
21484
21485         wctype: fix typo in previous commit
21486         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
21487         Reported by Ludovic Courtès.
21488
21489 2010-09-02  Jim Meyering  <meyering@redhat.com>
21490
21491         test-update-copyright.sh: skip test if Perl is too old
21492         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
21493         Reported by Tom G. Christensen.
21494
21495 2010-09-02  Bruno Haible  <bruno@clisp.org>
21496
21497         wctype: Avoid compilation error on IRIX 6.5.30.
21498         * lib/wctype.in.h (iswblank): Declare with a replacement if
21499         REPLACE_ISWBLANK is set.
21500         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
21501         declared. Set REPLACE_ISWBLANK.
21502         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
21503         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
21504         * doc/posix-headers/wctype.texi: Likewise.
21505         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21506
21507 2010-09-01  Bruno Haible  <bruno@clisp.org>
21508
21509         New module 'socketlib'.
21510         * modules/socketlib: New file.
21511         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
21512         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
21513         * modules/sockets (Depends-on): Add socketlib.
21514         Suggested by Sam Steingold <sds@gnu.org>.
21515
21516 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21517
21518         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
21519
21520         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
21521         when one needs search access to a directory but not read access.
21522         On systems where it is available, it works in some cases where
21523         O_RDONLY does not, namely on directories that are searchable but
21524         not readable, and which need only to be searchable.  If O_SEARCH
21525         is not available, fall back to the traditional method of using
21526         O_RDONLY.
21527
21528         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
21529         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
21530         when opening a directory that needs only to be searchable.
21531         * lib/chdir-safer.c (chdir_no_follow): Likewise.
21532         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
21533         * lib/openat-proc.c (openat_proc_name): Likewise.
21534         * lib/openat.c (openat_needs_fchdir): Likewise.
21535         * lib/save-cwd.c (save_cwd): Likewise.
21536         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
21537
21538 2010-08-28  Bruno Haible  <bruno@clisp.org>
21539
21540         New module 'host-cpu-c-abi'.
21541         * modules/host-cpu-c-abi: New file.
21542         * m4/host-cpu-c-abi.m4: New file, based on part of
21543         clisp/src/m4/general.m4.
21544         Requested by Sam Steingold <sds@gnu.org>.
21545
21546 2010-08-31  Eric Blake  <eblake@redhat.com>
21547         and Jim Meyering  <meyering@redhat.com>
21548
21549         hash: factor, and guard against misbehaving hasher function
21550         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
21551         of table->hasher's return value.  Also protect against a hash value
21552         so large that adding it to table->bucket results in a NULL pointer.
21553         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
21554         Use it in place of open-coded check-and-abort.
21555
21556 2010-08-30  Bruno Haible  <bruno@clisp.org>
21557
21558         hash: silence spurious clang warning
21559         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
21560         Reported by Eric Blake.
21561
21562 2010-08-30  Eric Blake  <eblake@redhat.com>
21563
21564         strstr, memmem, strcasestr: avoid leaked shell message
21565         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
21566         FreeBSD.
21567         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21568         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21569
21570         tests: silence clang warning
21571         * tests/test-malloca.c (do_allocation): Avoid dead store.
21572
21573 2010-08-29  Bruno Haible  <bruno@clisp.org>
21574
21575         gettext: Fix recent mistake.
21576         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
21577
21578 2010-08-29  Bruno Haible  <bruno@clisp.org>
21579
21580         selinux-h: Offer a --without-selinux option.
21581         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
21582         --without-selinux was specified, skip all tests and define
21583         HAVE_SELINUX_SELINUX_H to 0.
21584         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
21585         set LIB_SELINUX to empty.
21586         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
21587         gl_LIBSELINUX. If --without-selinux was specified, replace
21588         selinux/context.h.
21589         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
21590
21591 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21592             Bruno Haible  <bruno@clisp.org>
21593
21594         Make the module 'realloc-gnu' work again on AIX and OSF/1.
21595         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
21596         of HAVE_REALLOC.
21597         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
21598         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
21599         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
21600         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21601
21602 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21603             Bruno Haible  <bruno@clisp.org>
21604
21605         Make the module 'calloc-gnu' work again on AIX and OSF/1.
21606         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
21607         HAVE_CALLOC.
21608         * lib/xmalloc.c: Update accordingly.
21609         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
21610         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
21611         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
21612
21613 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21614             Bruno Haible  <bruno@clisp.org>
21615
21616         Make the module 'malloc-gnu' work again on AIX and OSF/1.
21617         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
21618         HAVE_MALLOC.
21619         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
21620         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
21621         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21622
21623 2010-08-29  Bruno Haible  <bruno@clisp.org>
21624
21625         Update modules list.
21626         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21627         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
21628         (String handling <string.h>): Add astrxfrm.
21629         (File system functions): Add readlinkat.
21630
21631 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21632
21633         Tests for module 'realloc-gnu'.
21634         * modules/realloc-gnu-tests: New file.
21635         * tests/test-realloc-gnu.c: New file.
21636
21637         Tests for module 'calloc-gnu'.
21638         * modules/calloc-gnu-tests: New file.
21639         * tests/test-calloc-gnu.c: New file.
21640
21641         Tests for module 'malloc-gnu'.
21642         * modules/malloc-gnu-tests: New file.
21643         * tests/test-malloc-gnu.c: New file.
21644
21645 2010-08-28  Bruno Haible  <bruno@clisp.org>
21646
21647         Rename module 'realloc' -> 'realloc-gnu'.
21648         * modules/realloc-gnu: New file, copied from modules/realloc.
21649         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21650         obsolete.
21651         * modules/mgetgroups (Depends-on): Update.
21652         * doc/posix-functions/realloc.texi: Update.
21653         * NEWS: Mention the change.
21654
21655         Rename module 'calloc' -> 'calloc-gnu'.
21656         * modules/calloc-gnu: New file, copied from modules/calloc.
21657         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21658         obsolete.
21659         * doc/posix-functions/calloc.texi: Update.
21660         * NEWS: Mention the change.
21661
21662         Rename module 'malloc' -> 'malloc-gnu'.
21663         * modules/malloc-gnu: New file, copied from modules/malloc.
21664         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21665         obsolete.
21666         * modules/argp (Depends-on): Update.
21667         * modules/regex (Depends-on): Update.
21668         * doc/posix-functions/malloc.texi: Update.
21669         * NEWS: Mention the change.
21670
21671 2010-08-28  Eric Blake  <eblake@redhat.com>
21672
21673         pread, pwrite: add missing dependency
21674         * modules/pread (Depends-on): Add extensions.
21675         * modules/pwrite (Depends-on): Likewise.
21676
21677 2010-08-28  Bruno Haible  <bruno@clisp.org>
21678
21679         unistr/u*-strchr: Fix tests dependencies.
21680         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21681         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21682         Reported by Ian Beckwith <ianb@erislabs.net>.
21683
21684 2010-08-28  Bruno Haible  <bruno@clisp.org>
21685
21686         read-file: Don't occupy too much unused memory.
21687         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21688
21689 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21690             Eric Blake  <eblake@redhat.com>
21691             Bruno Haible  <bruno@clisp.org>
21692
21693         read-file: Avoid memory reallocations with regular files.
21694         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
21695         (fread_file): With regular files, use the remaining length as the
21696         initial buffer size.  Check against overflow.
21697         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
21698         sys_stat.
21699
21700 2010-08-28  Bruno Haible  <bruno@clisp.org>
21701
21702         ftello: Relax license.
21703         * modules/ftello (License): Relax to LGPLv2+.
21704         Reported by Eric Blake.
21705
21706 2010-08-28  Bruno Haible  <bruno@clisp.org>
21707
21708         Avoid relocwrapper link errors due to gnulib replacement functions.
21709         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21710         function.
21711         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21712
21713 2010-08-28  Bruno Haible  <bruno@clisp.org>
21714
21715         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21716         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21717         defined.
21718         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21719         Suggested by Eric Blake.
21720
21721 2010-08-28  Bruno Haible  <bruno@clisp.org>
21722
21723         sys_socket, netdb: Ensure socklen_t gets defined.
21724         * modules/sys_socket (Depends-on): Add socklen.
21725         * modules/netdb (Depends-on): Likewise.
21726         * modules/getaddrinfo (Depends-on): Remove socklen.
21727         * modules/getsockopt (Depends-on): Likewise.
21728         * modules/setsockopt (Depends-on): Likewise.
21729         * tests/test-sys_socket.c: Check that socklen_t is defined.
21730         * tests/test-netdb.c: Likewise.
21731         * m4/socklen.m4: Update comments.
21732         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21733
21734 2010-08-27  Eric Blake  <eblake@redhat.com>
21735
21736         login_tty: add missing dependency
21737         * modules/login_tty (Depends-on): Add pty.
21738
21739 2010-08-26  Eric Blake  <eblake@redhat.com>
21740
21741         lib-symbol-versions: fix m4 quoting
21742         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
21743         format for AC_LINK_IFELSE.
21744
21745         glob: fix compile test
21746         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
21747
21748         btowc: fix missing file
21749         * modules/btowc (Files): Also ship locale-fr.m4.
21750
21751         lseek: fix link test
21752         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
21753         AC_LINK_IFELSE.
21754
21755         include_next: silence autoconf 2.68 warning
21756         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
21757         AC_COMPILE_IFELSE as special.
21758         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21759         autoconf < 2.68.
21760
21761         acl: fix compilation test
21762         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21763         AC_COMPILE_IFELSE.
21764
21765 2010-08-26  Bruno Haible  <bruno@clisp.org>
21766
21767         Modernize AC_TRY_RUN invocations.
21768         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21769         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21770         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21771         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21772         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21773         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21774         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21775         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21776         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21777         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21778         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21779         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21780         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21781         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21782         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21783         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21784         gl_MBRLEN_NUL_RETVAL): Likewise.
21785         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21786         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21787         Likewise.
21788         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21789         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21790         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21791         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21792         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21793         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21794         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
21795         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21796         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
21797         Likewise.
21798         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21799         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21800         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21801         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21802         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21803         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21804         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21805         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
21806         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21807         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21808
21809 2010-08-26  Bruno Haible  <bruno@clisp.org>
21810
21811         Modernize AC_TRY_LINK invocations.
21812         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21813         AC_TRY_LINK.
21814         * m4/argp.m4 (gl_ARGP): Likewise.
21815         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21816         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21817         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21818         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21819         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21820         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21821         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21822         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21823         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21824         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21825         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21826         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21827         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21828         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21829         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21830         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21831         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21832         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21833         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21834         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21835         Likewise.
21836         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21837         Likewise.
21838         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21839         Likewise.
21840         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21841         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21842         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21843         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21844         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21845         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21846         * m4/servent.m4 (gl_SERVENT): Likewise.
21847         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21848         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21849         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21850         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21851         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21852         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21853         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21854         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21855         * modules/tsearch-tests (configure.ac): Likewise.
21856
21857 2010-08-26  Bruno Haible  <bruno@clisp.org>
21858
21859         Modernize AC_TRY_COMPILE invocations.
21860         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21861         AC_TRY_COMPILE.
21862         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21863         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21864         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21865         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21866         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21867         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21868         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21869         * m4/lock.m4 (gl_LOCK): Likewise.
21870         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21871         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21872         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21873         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21874         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21875         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21876         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21877         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21878         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21879         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21880         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21881         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21882         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21883         extraneous semicolon.
21884
21885 2010-08-26  Jim Meyering  <meyering@redhat.com>
21886
21887         stat-time: relax license LGPL
21888         * modules/stat-time (License): Change from GPL to LGPL,
21889         with consent from all contributors, for use in libguile.
21890         Requested by Ludovic Courtès.
21891
21892 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21893
21894         poll: return immediately on POLLHUP.
21895         * lib/poll.c (poll): Always set timeout before wait_timeout is
21896         computed.
21897
21898 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21899
21900         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21901         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21902         rmdir ("dir/.//"), unlinkat.
21903
21904 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21905
21906         stdbool: avoid spurious failure with modern xlc
21907         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21908
21909 2010-08-24  Bruno Haible  <bruno@clisp.org>
21910
21911         getloadavg: simplify code
21912         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21913         gl_have_func. Update comments.
21914
21915 2010-08-24  Eric Blake  <eblake@redhat.com>
21916
21917         getloadavg: don't define SVR4 on cygwin
21918         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21919         only define SVR4 when -lkvm is required.
21920         Reported by Yaakov Selkowitz.
21921
21922 2010-08-24  Bruno Haible  <bruno@clisp.org>
21923
21924         priv-set: fix comment
21925         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21926
21927 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21928
21929         priv-set: fix comments
21930         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21931         to match code, as suggested by David Bartley in:
21932         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21933
21934 2010-08-23  Eric Blake  <eblake@redhat.com>
21935
21936         stdbool: avoid rejecting clang
21937         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21938         * tests/test-stdbool.c: Enable more tests if using the system
21939         <stdbool.h> instead of the gnulib replacement.
21940         (main): Move xlc bug test to a runtime test for all compilers.
21941         Reported by Anders Kaseorg.
21942
21943         argz: fix shell quoting issue
21944         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21945         Reported by Charles Wilson.
21946
21947 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21948             Erik Faye-Lund <kusmabite@gmail.com>
21949
21950         poll, select: handle ERROR_BROKEN_PIPE.
21951         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21952         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21953         * lib/select.c (win32_compute_revents): Do not mark a pipe
21954         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21955
21956 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21957
21958         fts: allow compilation with C++
21959         * lib/fts_.h: Specify extern "C" linkage with C++.
21960
21961 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21962
21963         Fix gnulib-tool sed script de-commentation for AIX sed.
21964         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21965         sed.
21966
21967 2010-08-17  Eric Blake  <eblake@redhat.com>
21968
21969         test-stddef: test for (some) offsetof bugs
21970         * tests/test-stddef.c: Enhance test to ensure correct type of
21971         offsetof.
21972         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21973         that we are not fixing at this time.
21974
21975 2010-08-15  Bruno Haible  <bruno@clisp.org>
21976
21977         stpncpy: Allow stpncpy to be defined as a macro.
21978         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21979         if it's already correctly declared.
21980         * lib/string.in.h (stpncpy): Undefine before redefining.
21981         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21982
21983 2010-08-14  Bruno Haible  <bruno@clisp.org>
21984
21985         Rename module 'memxfrm' to 'amemxfrm'.
21986         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21987         (amemxfrm): Renamed from memxfrm.
21988         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21989         (amemxfrm): Renamed from memxfrm.
21990         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21991         * NEWS: Mention the change.
21992         * MODULES.html.sh (String handling <string.h>): Update.
21993         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21994         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21995         * lib/unicase/u16-casexfrm.c: Likewise.
21996         * lib/unicase/u32-casexfrm.c: Likewise.
21997         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21998         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21999         * lib/uninorm/u16-normxfrm.c: Likewise.
22000         * lib/uninorm/u32-normxfrm.c: Likewise.
22001         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
22002         memxfrm.
22003         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
22004         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
22005         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
22006         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
22007         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
22008         Suggested by Paul Eggert.
22009
22010 2010-08-14  Bruno Haible  <bruno@clisp.org>
22011
22012         Tests for module 'astrxfrm'.
22013         * modules/astrxfrm-tests: New file.
22014         * tests/test-astrxfrm.c: New file.
22015
22016         New module 'astrxfrm'.
22017         * lib/astrxfrm.h: New file.
22018         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
22019         * modules/astrxfrm: New file.
22020
22021 2010-08-14  Reuben Thomas <rrt@sc3d.org>
22022
22023         regex: Tweak doc.
22024         * doc/regex.texi (Overview): Don't mention regex.c.
22025         (GNU Regular Expression Compiling): Likewise.
22026         (Match-end-of-line Operator): Mention 'not_eol'.
22027
22028 2010-08-14  Brian Gough  <bjg@gnu.org>
22029             Bruno Haible  <bruno@clisp.org>
22030
22031         git-merge-changelog: add doc relating to use with bzr and hg.
22032         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
22033
22034 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
22035
22036         pthread: fix pthread.h creation for srcdir != builddir
22037         * modules/pthread (Makefile.am): Fix the rule to work also in a
22038         non-srcdir build.
22039
22040 2010-08-13  Karl Berry  <karl@gnu.org>
22041
22042         * doc/regex.texi (Predefined Syntaxes): @smallexample.
22043         * doc/posix-*/*: force line break before @url of POSIX
22044         specifications.
22045         Suggested by Werner Lemberg.
22046
22047 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22048
22049         strtod: fix const diagnostic
22050         * lib/strtod.c (strtod): Don't assign const char * to char *,
22051         as this elicits a warning from GCC when warnings are enabled.
22052
22053 2010-08-10  Pádraig Brady <P@draigbrady.com>
22054         and Eric Blake  <eblake@redhat.com>
22055
22056         copy-acl: ignore ENOTSUP on HP-UX
22057         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
22058         so that it is available for HP-UX.
22059         * lib/copy-acl.c (qcopy_acl): Use it.
22060         Reported by Patrick M. Callahan.
22061
22062 2010-08-10  Eric Blake  <eblake@redhat.com>
22063
22064         open, chown: relax license
22065         * modules/open (License): Change to LGPLv2+, with consent by all
22066         authors, for use in augeas.
22067         * modules/chown (License): Likewise.
22068         * modules/lchown (Likewise): Likewise.
22069         Requested by Adam Stokes.
22070
22071 2010-08-09  Karl Berry  <karl@gnu.org>
22072
22073         * build-aux/ar-lib: new file, import from Automake.
22074         * config/srclist.txt: autocheck for updates.
22075
22076 2010-08-09  Eric Blake  <eblake@redhat.com>
22077
22078         readlinkat: adjust client modules
22079         * modules/areadlinkat (Depends-on): Use readlinkat, not
22080         symlinkat.
22081         * modules/areadlinkat-with-size (Depends-on): Likewise.
22082
22083         mknod: be more vocal about danger of running tests as root
22084         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
22085         root, since that is just asking for problems.
22086         Suggested by Bruno Haible, based on a report by Rainer Tammer.
22087
22088         readlinkat: split into its own module
22089         * modules/symlinkat: Split readlinkat...
22090         * modules/readlinkat: ...into separate module.
22091         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
22092         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
22093         * lib/symlinkat.c (readlinkat): Move...
22094         * lib/readlinkat.c: ...into new file.
22095         * modules/symlinkat-tests: Split readlinkat test...
22096         * modules/readlinkat-tests: ...into separate module.
22097         * tests/test-symlinkat.c: Split...
22098         * tests/test-readlinkat.c: ...into new file.
22099         * NEWS: Document the split.
22100         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22101         * lib/unistd.in.h (readlinkat): Likewise.
22102         Suggested by Bruno Haible.
22103
22104 2010-08-08  Bruno Haible  <bruno@clisp.org>
22105
22106         memxfrm: Speed up.
22107         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
22108         that usually only one call to strxfrm is necessary for each string
22109         part.
22110         Reported by Paul Eggert <eggert@cs.ucla.edu>.
22111
22112 2010-08-07  Karl Berry  <karl@gnu.org>
22113
22114         * doc/posix-headers/limits.texi,
22115         * doc/posix-functions/malloc.texi,
22116         * doc/posix-functions/strsignal.texi: missing @item.
22117         * doc/ld-version-script.texi: spurious leading i.
22118         * doc/regex.texi (Interval Operators): no commas inside @var.
22119
22120 2010-08-01  Bruno Haible  <bruno@clisp.org>
22121
22122         Integrate the regex documentation.
22123         * doc/gnulib.texi: Define 'cn' index.
22124         (Regular expressions): New a chapter that includes regex.texi and
22125         regexprops-generic.texi.
22126         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
22127         syntax.
22128
22129         Whitespace cleanup.
22130         * doc/regex.texi: Remove trailing spaces.
22131
22132         Add regex documentation.
22133         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
22134         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
22135         Written by Kathy A. Hargreaves and Karl Berry.
22136
22137 2010-08-01  Bruno Haible  <bruno@clisp.org>
22138
22139         link: Update documentation.
22140         * doc/posix-functions/link.texi: Update regarding Solaris.
22141
22142 2010-07-31  Bruno Haible  <bruno@clisp.org>
22143
22144         Update modules list.
22145         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
22146         (String handling <string.h>): Add memcmp2, memxfrm.
22147         (Container data structures): Add xlist, xsublist, xoset.
22148         (Core language properties): Add alignof, unused-parameter.
22149         (Process control, Numeric conversion functions <stdlib.h>): Renamed
22150         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
22151         (Unibyte characters <ctype.h>): New section.
22152         (String handling <string.h>): New section.
22153         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
22154         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
22155         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
22156         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
22157         tan, tanh, tanl, y0, y1, yn.
22158         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
22159         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
22160         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
22161         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
22162         unlockpt, vdprintf, vdprintf-posix.
22163         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
22164         (File system functions): Add concat-filename, sys_file, sys_ioctl,
22165         xconcat-filename.
22166         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
22167         getdtablesize, pipe2, pipe2-safer.
22168         (Security): New section.
22169         (Networking functions): Add accept4.
22170         (Signal handling): Add sigpipe.
22171         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
22172         mbmemcasecoll.
22173         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
22174         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
22175         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
22176         pipe-filter-ii.
22177         (Misc): Add argp-version-etc, login_tty, parse-duration.
22178
22179 2010-07-31  Bruno Haible  <bruno@clisp.org>
22180
22181         Improve doc in MODULES.html.
22182         * modules/linkat (Description): Add the word "function".
22183         * modules/mkfifo (Description): Likewise.
22184         * modules/mknod (Description): Likewise.
22185         * modules/remove (Description): Likewise.
22186         * modules/renameat (Description): Likewise.
22187         * modules/stat (Description): Likewise.
22188         * modules/symlink (Description): Likewise.
22189         * modules/unlink (Description): Likewise.
22190
22191 2010-07-31  Bruno Haible  <bruno@clisp.org>
22192
22193         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
22194         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
22195         option --enable/disable-c++ instead of --enable/disable-cxx.
22196         * NEWS: Mention the change.
22197
22198 2010-07-31  Bruno Haible  <bruno@clisp.org>
22199
22200         readlink, areadlink: Relax test a bit.
22201         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
22202         alternative to ENOTDIR.
22203         * tests/test-areadlink.h (test_areadlink): Likewise.
22204         Reported by Rainer Tammer.
22205
22206 2010-07-31  Bruno Haible  <bruno@clisp.org>
22207
22208         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
22209         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
22210         character, perform the search using U_STRCHR.
22211         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
22212         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
22213         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
22214         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
22215         Suggested by Paolo Bonzini.
22216
22217 2010-07-31  Bruno Haible  <bruno@clisp.org>
22218
22219         unistr/u*-strstr: Fix dependencies.
22220         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
22221         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
22222         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
22223
22224 2010-07-31  Bruno Haible  <bruno@clisp.org>
22225
22226         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
22227         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
22228         the beginning of the loop.
22229         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
22230         cases in 'switch' statement.
22231
22232         unistr/u8-strchr: Fix several bugs.
22233         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
22234         the string. When not found, return NULL, not a pointer near the end.
22235
22236         More tests for unistr/u8-strchr.
22237         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
22238         that the function does not read past the first occurrence of the byte
22239         being searched.
22240         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
22241         * tests/unistr/test-u16-strchr.c (main): New function.
22242         * tests/unistr/test-u32-strchr.c (main): New function.
22243
22244 2010-07-31  Bruno Haible  <bruno@clisp.org>
22245
22246         posix-modules: Ignore backup files of documentation files.
22247         * posix-modules: grep only through files named *.texi.
22248
22249 2010-07-31  Bruno Haible  <bruno@clisp.org>
22250
22251         symlinkat: Fix documentation.
22252         * doc/posix-functions/readlinkat.texi: Fix module name.
22253
22254 2010-07-31  Bruno Haible  <bruno@clisp.org>
22255
22256         fchownat: Replace also when chown has the trailing slash bug.
22257         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
22258         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
22259         introduced on 2010-04-10.
22260         Reported by Rainer Tammer.
22261
22262 2010-07-31  Bruno Haible  <bruno@clisp.org>
22263
22264         linkat: Work around AIX 7.1 bug.
22265         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
22266         whether linkat handles trailing slash correctly. If not, replace linkat
22267         and define LINKAT_TRAILING_SLASH_BUG.
22268         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
22269         check whether (fd1,file1) points to a directory if file1 or file2 ends
22270         in a slash. Code taken from lib/link.c.
22271         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
22272         Reported by Rainer Tammer.
22273
22274 2010-07-31  Bruno Haible  <bruno@clisp.org>
22275
22276         Correctly determine whether pow is available in libc on AIX 7 with xlc.
22277         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
22278         This disables an xlc optimization that was causing wrong test results.
22279         Reported by Rainer Tammer.
22280
22281 2010-07-31  Bruno Haible  <bruno@clisp.org>
22282
22283         iconv: Work around AIX 6.1..7.1 bug.
22284         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
22285         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
22286         cross-compiling, guess no on all versions of AIX.
22287         Reported by Rainer Tammer.
22288
22289 2010-07-31  Bruno Haible  <bruno@clisp.org>
22290
22291         readlink: Relax test a bit.
22292         * tests/test-readlink.h (test_readlink): Allow different errno value
22293         when readlink is called with a file name that ends in / and refers to
22294         a file.
22295         Suggested by Eric Blake.
22296         Reported by Rainer Tammer.
22297
22298 2010-07-31  Bruno Haible  <bruno@clisp.org>
22299
22300         copysign: Does not require -lm on glibc systems.
22301         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
22302         gl_COMMON_DOUBLE_MATHFUNC.
22303         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
22304
22305 2010-07-31  Bruno Haible  <bruno@clisp.org>
22306
22307         duplocale: Work around AIX 7.1 bug.
22308         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
22309         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
22310         * lib/duplocale.c (rpl_duplocale): Update comment.
22311         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
22312         Reported by Rainer Tammer.
22313
22314 2010-07-30  Bruno Haible  <bruno@clisp.org>
22315
22316         dirfd: Avoid link error on AIX 7.1.
22317         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
22318         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
22319         exist, set REPLACE_DIRFD.
22320         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
22321         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
22322         * doc/posix-functions/dirfd.texi: Update.
22323         Reported by Rainer Tammer.
22324
22325 2010-07-30  Eric Blake  <eblake@redhat.com>
22326
22327         strtod: next round of AIX fixes
22328         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
22329         exponent.
22330         * tests/test-strtod.c (main): Enhance tests.
22331         * doc/posix-functions/strtod.texi (strtod): Document next bug.
22332         Reported by Rainer Tammer.
22333
22334         futimens: fix configure check
22335         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
22336         Reported by Bruno Haible.
22337
22338 2010-07-30  Bruno Haible  <bruno@clisp.org>
22339
22340         getline: Update regarding AIX.
22341         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
22342         Reported by Rainer Tammer.
22343
22344 2010-07-30  Bruno Haible  <bruno@clisp.org>
22345
22346         wcwidth: Drop replacement on AIX 7.
22347         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
22348         AIX 7.
22349         Reported by Rainer Tammer.
22350
22351 2010-07-30  Bruno Haible  <bruno@clisp.org>
22352
22353         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
22354         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
22355         a 'char *'.
22356         Reported by Rainer Tammer.
22357
22358 2010-07-30  Bruno Haible  <bruno@clisp.org>
22359
22360         unlink: Update regarding AIX.
22361         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
22362         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
22363         Reported by Rainer Tammer.
22364
22365 2010-07-30  Bruno Haible  <bruno@clisp.org>
22366
22367         symlink: Update regarding AIX.
22368         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
22369         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
22370         Reported by Rainer Tammer.
22371
22372 2010-07-30  Bruno Haible  <bruno@clisp.org>
22373
22374         strndup: Update regarding AIX.
22375         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
22376         AIX 7.
22377         Reported by Rainer Tammer.
22378
22379 2010-07-30  Bruno Haible  <bruno@clisp.org>
22380
22381         stat: Update regarding AIX.
22382         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
22383         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
22384         Reported by Rainer Tammer.
22385
22386 2010-07-30  Bruno Haible  <bruno@clisp.org>
22387
22388         truncl: Fix autoconf test.
22389         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
22390         whether truncl works.
22391         Reported by Rainer Tammer.
22392
22393 2010-07-30  Bruno Haible  <bruno@clisp.org>
22394
22395         round: Update regarding AIX.
22396         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
22397         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
22398         Reported by Rainer Tammer.
22399
22400 2010-07-30  Bruno Haible  <bruno@clisp.org>
22401
22402         rename: Update regarding AIX.
22403         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
22404         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
22405         Reported by Rainer Tammer.
22406
22407 2010-07-30  Bruno Haible  <bruno@clisp.org>
22408
22409         printf.m4: Update regarding AIX.
22410         * m4/printf.m4: Update comments regarding AIX.
22411         Reported by Rainer Tammer.
22412
22413 2010-07-30  Bruno Haible  <bruno@clisp.org>
22414
22415         iconv: Update regarding AIX.
22416         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
22417         AIX 7.
22418         Reported by Rainer Tammer.
22419
22420 2010-07-30  Bruno Haible  <bruno@clisp.org>
22421
22422         getopt: Update regarding AIX.
22423         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
22424         no on AIX.
22425         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
22426         Reported by Rainer Tammer.
22427
22428 2010-07-30  Bruno Haible  <bruno@clisp.org>
22429
22430         ldexpl; Update regarding AIX.
22431         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
22432         on AIX 7.
22433         Reported by Rainer Tammer.
22434
22435 2010-07-30  Bruno Haible  <bruno@clisp.org>
22436
22437         frexpl: Update regarding AIX.
22438         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
22439         on AIX 7.
22440         Reported by Rainer Tammer.
22441
22442 2010-07-30  Bruno Haible  <bruno@clisp.org>
22443
22444         open, fopen: Update regarding AIX.
22445         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
22446         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22447         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
22448         * doc/posix-functions/fopen.texi: Likewise.
22449         Reported by Rainer Tammer.
22450
22451 2010-07-30  Bruno Haible  <bruno@clisp.org>
22452
22453         chown: Update doc regarding AIX.
22454         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
22455         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
22456         Reported by Rainer Tammer.
22457
22458 2010-07-30  Eric Blake  <eblake@redhat.com>
22459
22460         strtod: fix bug in replacement function on AIX
22461         * lib/strtod.c (strtod): Special case broken "0x" parse in
22462         underlying strtod.
22463         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
22464         * doc/posix-functions/strtod.texi (strtod): Likewise.
22465         Reported by Rainer Tammer.
22466
22467 2010-07-30  Bruno Haible  <bruno@clisp.org>
22468
22469         mbrlen: Fix cross-compilation guess for AIX.
22470         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
22471         guess. Leftover from 2008-12-22.
22472
22473 2010-07-30  Bruno Haible  <bruno@clisp.org>
22474
22475         mbrtowc: Fix cross-compilation guess for AIX.
22476         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
22477         guess. Leftover from 2008-12-21.
22478
22479 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
22480
22481         init.sh: work around trap limitation of some shells
22482         * tests/init.sh (setup_): Move exit trap outside of shell function.
22483
22484 2010-07-29  Eric Blake  <eblake@redhat.com>
22485
22486         strtod: aid debugging
22487         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
22488         understanding why strtod is rejected.
22489
22490 2010-07-28  Bruno Haible  <bruno@clisp.org>
22491
22492         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
22493         * lib/unistr/u8-chr.c: Include <string.h>.
22494         * tests/unistr/test-u8-chr.c: Likewise.
22495         * tests/unistr/test-u16-chr.c: Likewise.
22496         * tests/unistr/test-u32-chr.c: Likewise.
22497         * tests/unistr/test-u8-strchr.c: Likewise.
22498         * tests/unistr/test-u16-strchr.c: Likewise.
22499         * tests/unistr/test-u32-strchr.c: Likewise.
22500         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
22501         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
22502         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
22503         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
22504
22505 2010-07-28  Bruno Haible  <bruno@clisp.org>
22506
22507         Use spaces for indentation, not tabs.
22508         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22509
22510 2010-07-27  Bruno Haible  <bruno@clisp.org>
22511
22512         mbspcasecmp: Fix function specification.
22513         * lib/string.in.h (mbspcasecmp): Fix specification comment.
22514         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
22515         Reported by Eric Blake <eblake@redhat.com>.
22516
22517 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
22518
22519         timespec: use cast and not conditional, as truncation isn't possible
22520         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
22521         instead of a conditional.  Comment about the situation in more detail.
22522         This undoes most of the 2009-10-29 patch.
22523
22524 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
22525
22526         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
22527         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
22528         * lib/unistr/u8-strchr.c: Likewise.
22529         * modules/unistr/u8-chr: Depend on memchr.
22530
22531         unistr/u*-strchr: add tests
22532         * modules/unistr/u8-strchr-tests: New file.
22533         * modules/unistr/u16-strchr-tests: New file.
22534         * modules/unistr/u32-strchr-tests: New file.
22535         * tests/unistr/test-strchr.h: New file.
22536         * tests/unistr/test-u8-strchr.c: New file.
22537         * tests/unistr/test-u16-strchr.c: New file.
22538         * tests/unistr/test-u32-strchr.c: New file.
22539
22540         unistr/u*-chr: test multibyte sequences more
22541         * tests/unistr/test-chr.h: Do complete testing of the characters in the
22542         test vector.
22543         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
22544         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
22545         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
22546
22547         unistr/u*-chr: test multibyte sequences
22548         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
22549
22550         unistr/u*-chr: prepare for multibyte tests
22551         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
22552         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
22553         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
22554         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
22555         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
22556         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
22557
22558 2010-07-18  Bruno Haible  <bruno@clisp.org>
22559
22560         unistr/u8-strchr: Optimize non-ASCII argument case.
22561         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
22562         because the first byte often matches anyway.
22563         Reported by Pádraig Brady <P@draigbrady.com>.
22564
22565 2010-07-15  Karl Berry  <karl@gnu.org>
22566
22567         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
22568
22569 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
22570
22571         getcwd: on Solaris, work better if ancestors are inaccessible
22572         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
22573         buffer and size, try again with a large buffer.  This works better
22574         on Solaris, since its getcwd succeeds even if the path to the root
22575         is inaccessible, and this is helpful in common cases such as .zfs
22576         hidden directories.  Problem reported by J Chapman Flack in
22577         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
22578         Use system getcwd if it's declared, not merely if it's partly
22579         working; use the partly-working test only to avoid needless effort
22580         if the system getcwd fails.
22581         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
22582         comment that was already obsolete and is now even more obsolete.
22583         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
22584         now might call strdup.
22585
22586 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
22587
22588         pthread: Add enough so that coreutils/src/sort.c compiles.
22589         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
22590         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
22591         gnulib. Include <sched.h> and <time.h>, as per POSIX.
22592         Include <sys/types.h>, in case it defines pthread_t.
22593         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
22594         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
22595         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
22596         (pthread_rwlockattr_t, pthread_spinlock_t):
22597         New typedefs, if HAVE_PTHREAD_T is not defined.
22598         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
22599         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
22600         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
22601         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
22602         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
22603         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
22604         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
22605         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
22606         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
22607         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
22608         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
22609         New macros.
22610         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
22611         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
22612         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
22613         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
22614         (pthread_spin_unlock): New dummy functions.
22615         (pthread_create): Return EAGAIN; don't set errno.
22616         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
22617         require AC_C_INLINE.
22618         * modules/pthread (Depends-on): Add sched, time.
22619         (pthread.h): Use AM_V_GEN.
22620
22621 2010-07-13  Bruno Haible  <bruno@clisp.org>
22622
22623         striconveh: Don't malloc memory if the result buffer is sufficient.
22624         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
22625         buffer if its size is sufficient.
22626         Reported by Ludovic Courtès <ludo@gnu.org>.
22627
22628 2010-07-13  Bruno Haible  <bruno@clisp.org>
22629
22630         strtod: Add safety check.
22631         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
22632
22633 2010-07-12  Bruno Haible  <bruno@clisp.org>
22634
22635         Unify tests that set gl_cv_func_ldexpl_no_libm.
22636         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
22637         gl_FUNC_LDEXPL.
22638         (gl_FUNC_LDEXPL): Invoke it.
22639         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22640
22641 2010-07-12  Bruno Haible  <bruno@clisp.org>
22642
22643         Unify tests that set gl_cv_func_ldexp_no_libm.
22644         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22645         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22646         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22647         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22648         * modules/strtod (Files): Add m4/ldexp.m4.
22649
22650 2010-07-12  Bruno Haible  <bruno@clisp.org>
22651
22652         Unify tests that set gl_cv_func_frexpl_no_libm.
22653         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22654         gl_FUNC_FREXPL_NO_LIBM.
22655         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22656         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22657
22658 2010-07-12  Bruno Haible  <bruno@clisp.org>
22659
22660         Unify tests that set gl_cv_func_frexp_no_libm.
22661         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22662         gl_FUNC_FREXP_NO_LIBM.
22663         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22664         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22665
22666 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22667
22668         memcoll: clarify sizes versus lengths, document better, and tweak perf
22669         * lib/memcoll.c (strcoll_loop, memcoll0):
22670         Improve quality of descriptive comments.  Name variables
22671         consistently as to whether they are lengths (which do not include
22672         terminating null) versus sizes (which do).
22673         * lib/xmemcoll.c (xmemcoll0): Likewise.
22674         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22675         returned when s1size == 0; this is easier to compile and saves
22676         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22677
22678 2010-07-12  Bruno Haible  <bruno@clisp.org>
22679
22680         Tests for module '_Exit'.
22681         * modules/_Exit-tests: New file.
22682         * tests/test-_Exit.sh: New file.
22683         * tests/test-_Exit.c: New file.
22684
22685         New module '_Exit'.
22686         * lib/stdlib.in.h (__attribute__): New macro.
22687         (_Exit): New declaration.
22688         * lib/_Exit.c: New file.
22689         * m4/_Exit.m4: New file.
22690         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
22691         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
22692         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
22693         * modules/_Exit: New file.
22694         * tests/test-stdlib-c++.cc (_Exit): Check signature.
22695         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
22696
22697 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22698
22699         strtod: make it more-accurate typically, and don't require libm
22700         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
22701         Include limits.h.  Don't include string.h.
22702         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
22703         (locale_isspace): New function, so that no casts are needed to
22704         check whether *s is a space.
22705         (ldexp): Provide an unused dummy if not available.
22706         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22707         (strtod): Use them.  This implementation prefers to use the
22708         underlying strtod if available, falling back on our own code
22709         only to fix known bugs.  This is more likely to produce an
22710         accurate result.  Also, it avoids the use of libm functions.
22711         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22712         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22713         was absent, but it caused a test failure with coreutils.
22714         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22715         with libm.
22716         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22717         * modules/strtod-tests (Makefile.am): Likewise.
22718
22719 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22720             Bruno Haible  <bruno@clisp.org>
22721
22722         unistr/u8-strchr: Optimize ASCII argument case.
22723         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22724
22725 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22726
22727         (x)memcoll: minor tweaks
22728         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22729         is after the type that it qualifies.
22730         (memcoll0): Likewise.
22731         * lib/memcoll.h (memcoll0): Likewise.
22732         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22733         * lib/xmemcoll.h (xmemcoll0): Likewise.
22734         * lib/memcoll.c (memcoll0): Correct the comment.  This function
22735         differs from memcoll in that the NUL byte is part of the argument.
22736         Omit the abort-checks, as performance is a real issue here.  Plus,
22737         the checks were wrong anyway (an off-by-one error).  Omit local
22738         variable 'diff', as it's a bit clearer that way.
22739         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
22740         no longer needed.
22741
22742 2010-07-08  Chen Guo <chenguo4@yahoo.com>
22743
22744         (x)memcoll: speedup when input is known to be NUL delimited
22745         * lib/memcoll.c: Include stdlib.
22746         (memcoll0): New function.
22747         (strcoll_loop): New function, refactored for use in both memcoll
22748         and memcoll0.
22749         * lib/memcoll.h (memcoll0): Add prototype.
22750         * lib/xmemcoll.c (xmemcoll0): New function.
22751         (collate_error): New function, refactored for use in both xmemcoll
22752         and xmemcoll0.
22753         * lib/xmemcoll.h (xmemcoll0): Add prototype.
22754         * m4/memcoll.m4: add inline invocation.
22755
22756 2010-07-06  Pádraig Brady  <P@draigBrady.com>
22757
22758         * build-aux/bootstrap: Remove any local translations
22759         from the translation project synchronization directory,
22760         so that local only translations are not distributed.
22761
22762 2010-07-04  Bruno Haible  <bruno@clisp.org>
22763
22764         fsusage: Clarify which code applies to which platforms.
22765         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22766         platform.
22767         * lib/fsusage.c (get_fs_usage): Likewise.
22768
22769 2010-07-04  Bruno Haible  <bruno@clisp.org>
22770
22771         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22772         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22773         Reported by Martin Lambers <marlam@marlam.de>.
22774
22775 2010-07-04  Jim Meyering  <meyering@redhat.com>
22776
22777         hash: once again explicitly disallow insertion of NULL
22778         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22779         inserting a NULL pointer cannot work with these functions.
22780         Add a comment with details.
22781         This reverts part of the 2010-07-01 commit, 5bef1a35
22782         "hash: extend module to deal with non-pointer keys".
22783
22784 2010-07-01  Bruno Haible  <bruno@clisp.org>
22785
22786         stdbool: Update doc.
22787         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22788         Info from Christian Weisgerber <naddy@mips.inka.de>.
22789
22790 2010-07-01  Jim Meyering  <meyering@redhat.com>
22791
22792         hash: extend module to deal with non-pointer keys
22793         * lib/hash.c (hash_insert0): New interface, much like hash_insert
22794         but that allows insertion of non-pointer entries.
22795         Do not disallow an ENTRY value of NULL.
22796         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
22797         * lib/hash.h (hash_insert0): Declare.
22798
22799 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22800
22801         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
22802         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
22803         not present (i.e. with autoconf 2.59 and when using gettextize, not
22804         gnulib), require AC_GNU_SOURCE instead.
22805
22806 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
22807
22808         idpriv-drop: Fix tests.
22809         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22810         not to the test-idpriv-droptemp program.
22811
22812 2010-06-29  Bruno Haible  <bruno@clisp.org>
22813
22814         string: Fix syntax error with g++ 2.96.
22815         * lib/string.in.h (__pure__): Remove definition.
22816         (_GL_ATTRIBUTE_PURE): New macro.
22817         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22818         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22819         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22820
22821 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22822
22823         unitypes: Fix bug introduced on 2010-05-18.
22824         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22825
22826 2010-06-22  Eric Blake  <eblake@redhat.com>
22827
22828         memmem: slight optimization
22829         * lib/str-two-way.h (critical_factorization): Update comments.
22830         Reduce work during factorization phase.
22831         Reported by Carlos Bueno <carlos@bueno.org>.
22832
22833 2010-06-21  Bruno Haible  <bruno@clisp.org>
22834
22835         Fix HAVE_CALLOC_POSIX misnomer.
22836         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22837         !HAVE_CALLOC_POSIX.
22838         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22839         HAVE_CALLOC_POSIX.
22840         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22841         instead of HAVE_CALLOC_POSIX.
22842         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22843         HAVE_CALLOC_POSIX.
22844
22845         Use modern idiom for calloc() replacement.
22846         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22847         AC_FUNC_CALLOC.
22848         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22849         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22850         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22851         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22852         (gl_REPLACE_CALLOC): New macro.
22853
22854 2010-06-21  Bruno Haible  <bruno@clisp.org>
22855
22856         Fix HAVE_REALLOC_POSIX misnomer.
22857         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22858         !HAVE_REALLOC_POSIX.
22859         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22860         HAVE_REALLOC_POSIX.
22861         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22862         instead of HAVE_REALLOC_POSIX.
22863         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22864         HAVE_REALLOC_POSIX.
22865
22866         Use modern idiom for realloc() replacement.
22867         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22868         AC_FUNC_REALLOC.
22869         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22870         Autoconf's AC_FUNC_REALLOC.
22871         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22872         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22873         (gl_REPLACE_REALLOC): New macro.
22874         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22875
22876 2010-06-21  Bruno Haible  <bruno@clisp.org>
22877
22878         Fix HAVE_MALLOC_POSIX misnomer.
22879         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22880         !HAVE_MALLOC_POSIX.
22881         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22882         HAVE_MALLOC_POSIX.
22883         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22884         instead of HAVE_MALLOC_POSIX.
22885         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22886         HAVE_MALLOC_POSIX.
22887
22888         Use modern idiom for malloc() replacement.
22889         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22890         AC_FUNC_MALLOC.
22891         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22892         Autoconf's AC_FUNC_MALLOC.
22893         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22894         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22895         (gl_REPLACE_MALLOC): New macro.
22896         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22897
22898 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22899
22900         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22901         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22902         This macro takes 3 arguments, not 4.
22903
22904 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22905
22906         ipv6: fix detection under mingw
22907         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22908         in6_addr.
22909
22910 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22911
22912         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22913         that strtod() works when cross-compiling to a glibc version known
22914         to work.
22915
22916 2010-06-15  Bruno Haible  <bruno@clisp.org>
22917
22918         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22919
22920 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22921
22922         select: Correct timeout.
22923         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22924
22925 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22926
22927         git-version-gen: init shell var to avoid env var influence
22928         * build-aux/git-version-gen (v): Init shell var to empty.
22929
22930 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22931
22932         priv-set: Don't assume that priv.h exists merely because getppriv does.
22933         See Jan Andersen's bug report about AIX 5L in
22934         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22935         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22936         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22937         * lib/priv-set.h: Likewise.
22938         * tests/test-priv-set.c: Likewise.
22939
22940 2010-06-13  Bruno Haible  <bruno@clisp.org>
22941
22942         relocatable: Make it easier to test whether to install wrappers.
22943         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22944         RELOCATABLE_VIA_WRAPPER.
22945
22946 2010-06-13  Bruno Haible  <bruno@clisp.org>
22947
22948         gnulib-tool: Display specified modules and dependencies differently.
22949         * gnulib-tool (func_show_module_list): New function.
22950         (func_import, func_create_testdir): Invoke it.
22951         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22952
22953 2010-06-13  Bruno Haible  <bruno@clisp.org>
22954
22955         gnulib-tool: Align code of func_import and func_create_testdir.
22956         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22957         specified_modules.
22958
22959 2010-06-12  Jim Meyering  <meyering@redhat.com>
22960
22961         test-inttostr: avoid spurious failure on Solaris 9
22962         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22963         to accept "%ju".  Reported by Bruno Haible.
22964
22965 2010-06-11  Jim Meyering  <meyering@redhat.com>
22966
22967         test-sys_socket: mark variables as used more readably
22968         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22969         as "used" explicitly via (void) statement casts.  This is more
22970         readable than using them in an artificial return expression.
22971         Suggestion from Bruno Haible.
22972
22973 2010-06-11  Bruno Haible  <bruno@clisp.org>
22974
22975         Avoid some more warnings from "gcc -Wwrite-strings".
22976         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22977         to 'const char *'.
22978         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22979         * tests/test-c-strcasestr.c (main): Likewise.
22980         * tests/test-mbscasestr1.c (main): Likewise.
22981         * tests/test-mbscasestr2.c (main): Likewise.
22982         * tests/test-memmem.c (main): Likewise.
22983         * tests/test-strstr.c (main): Likewise.
22984         * tests/test-strcasestr.c (main): Likewise.
22985
22986 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22987
22988         init.sh: change framework_failure_ to fail with status 99, not 1
22989         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22990         automake's parallel-tests rule that this is an unexpected failure,
22991         even if the test is listed in XFAIL_TESTS.
22992
22993 2010-06-11  Jim Meyering  <meyering@redhat.com>
22994
22995         test-inttostr: avoid warnings about 4-6KB literal strings
22996         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22997         Include "macros.h", for its definition of ASSERT.
22998         (CK): s/assert/ASSERT/
22999         * modules/inttostr-tests (Files): Add macros.h.
23000
23001         init.sh: don't use $ME_ or skip_ before they are defined
23002         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
23003         their first uses.  Also hoist their companions: warn_, fail_,
23004         framework_failure_, $stderr_fileno.  Prompted by a patch from
23005         Stefano Lattarini.
23006
23007         test-sys_socket: avoid set-but-not-used warnings from gcc
23008         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
23009         avoid warning about set-but-not-used variables.
23010
23011         test-xvasprintf: avoid 'const' discard warnings
23012         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
23013         "const" when assigning from literal strings.
23014         (test_xasprintf): Add "void" in function argument list to placate
23015         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
23016
23017         tests: avoid compilation warnings in argmatch and exclude tests...
23018         in packages that define ARGMATCH_DIE_DECL, like coreutils.
23019         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
23020         Since it always exits, declare with the "noreturn" attribute.
23021         * tests/test-argmatch.c: Likewise.
23022
23023         tests: avoid 'const' discard warnings in mbsstr tests
23024         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
23025         * tests/test-mbsstr2.c (main): Likewise.
23026
23027         test-verify: avoid warning from gcc's -Wmissing-declarations
23028         * tests/test-verify.c (function): Declare to be static.
23029
23030         test-inttostr.c: include <string.h> for use of strcmp
23031         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
23032
23033         test-linkat: avoid failed assertion on "other" architectures
23034         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
23035         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
23036         sparc: https://bugs.launchpad.net/bugs/591968
23037
23038 2010-06-11  Jim Meyering  <meyering@redhat.com>
23039
23040         printf.m4: avoid autoconf's "Expanded Before Required" warning
23041         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
23042         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
23043         autoconf warning.
23044
23045 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
23046
23047         Replacement header templates are now named with ".in", not "_".
23048         * doc/gnulib-intro.texi: Correct.
23049
23050 2010-06-10  Jim Meyering  <meyering@redhat.com>
23051
23052         inttostr-tests: depend on snprintf, not snprintf-posix
23053         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
23054         snprintf-posix, to avoid this aclocal failure:
23055           missing file gnulib-tests/vasnprintf.c
23056           configure.ac:45: error: expected source file, required through \
23057           AC_LIBSOURCES, not found
23058
23059 2010-06-10  Jim Meyering  <meyering@redhat.com>
23060
23061         inttostr: add a new function, inttostr, and tests
23062         The namesake function was not available.  The existence of the
23063         template file, inttostr.c makes its addition nontrivial.
23064         * lib/anytostr.c: Rename from inttostr.c.
23065         (anytostr): Rename from inttostr.
23066         * lib/inttostr.c: New file.
23067         * modules/inttostr (Files): Add anytostr.c.
23068         (Makefile.am): Set lib_SOURCES instead of ...
23069         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
23070         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
23071         * lib/offtostr.c: Likewise.
23072         * lib/uinttostr.c: Likewise.
23073         * lib/umaxtostr.c: Likewise.
23074         * modules/inttostr-tests: New file.
23075         * tests/test-inttostr.c: New file.  Test these functions.
23076
23077 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
23078             Bruno Haible  <bruno@clisp.org>
23079
23080         Add "Extending Gnulib" chapter to manual.
23081         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
23082         chapter.
23083         (Extending Gnulib): New chapter.
23084         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
23085         chapter.
23086
23087 2010-06-09  Bruno Haible  <bruno@clisp.org>
23088
23089         Avoid relocwrapper link errors due to gnulib replacement functions.
23090         * lib/areadlink.c: Use the system's malloc, realloc functions.
23091         (areadlink): Set errno to ENOMEM explicitly.
23092         * modules/areadlink (Depends-on): Remove malloc-posix.
23093         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23094
23095 2010-06-09  Bruno Haible  <bruno@clisp.org>
23096
23097         Avoid relocwrapper link errors due to gnulib replacement functions.
23098         * lib/canonicalize-lgpl.c: Use the system's malloc function.
23099         * lib/malloca.c: Likewise.
23100         * lib/relocatable.c: Likewise.
23101         * lib/progreloc.c: Use the system's malloc, sprintf functions.
23102         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
23103         * lib/setenv.c: Use the system's malloc, realloc functions.
23104         * lib/strerror.c: Use the system's sprintf function.
23105         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23106
23107 2010-06-04  Bruno Haible  <bruno@clisp.org>
23108
23109         Prefer documented low-level autoconf macro names.
23110         * m4/lib-link.m4: Use m4_translit instead of translit.
23111         * m4/environ.m4: Likewise.
23112         * m4/mathfunc.m4: Likewise.
23113         * m4/onceonly.m4: Likewise.
23114         * m4/stdint.m4: Likewise.
23115         Suggested by Eric Blake.
23116
23117 2010-06-04  Martin Lambers  <marlam@marlam.de>
23118             Bruno Haible  <bruno@clisp.org>
23119
23120         havelib: Allow library names with '+' characters.
23121         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23122         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
23123
23124 2010-06-09  Bruno Haible  <bruno@clisp.org>
23125
23126         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
23127         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
23128         realloc failed.
23129
23130 2010-06-08  Peter Simons  <simons@cryp.to>
23131
23132         maint.mk: make the news-check rule more configurable
23133         * top/maint.mk (news-check-lines-spec): New variable.
23134         (news-check): Use "sed -n 1,10p" in place of "head".
23135
23136 2010-06-07  Jim Meyering  <meyering@redhat.com>
23137
23138         do-release-commit-and-tag: fix typo in --help
23139         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
23140
23141         regex: avoid new dead-code warning with gcc-4.6.0
23142         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
23143         if-block containing a while-loop.  It's been unused for at least
23144         5 years.
23145
23146 2010-06-05  Bruno Haible  <bruno@clisp.org>
23147
23148         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
23149         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
23150
23151 2010-06-04  Bruno Haible  <bruno@clisp.org>
23152
23153         Update to GNU gettext 0.18.1.
23154         * modules/gettext (configure.ac): Require gettext infrastructure from
23155         version 0.18.1.
23156
23157 2010-06-03  Bruno Haible  <bruno@clisp.org>
23158
23159         Don't use AC_LIBOBJ with file names in subdirectories.
23160         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
23161         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
23162         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
23163         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
23164         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
23165         gl_LIBUNISTRING_LIBSOURCE.
23166         (Makefile.am): Augment lib_SOURCES here, conditionally.
23167         * NEWS: Drop requirement for Automake option 'subdir-objects'.
23168
23169 2010-06-03  Bruno Haible  <bruno@clisp.org>
23170
23171         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
23172         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
23173         expansion does not end with a newline.
23174         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
23175         unnecessary newline.
23176
23177 2010-06-03  Bruno Haible  <bruno@clisp.org>
23178
23179         Reduce dependencies.
23180         * tests/test-quotearg.h: New file, extracted from
23181         tests/test-quotearg.c.
23182         * tests/test-quotearg-simple.c: New file, extracted from
23183         tests/test-quotearg.c.
23184         * tests/test-quotearg.c: Don't include <ctype.h>.
23185         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
23186         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
23187         use_quote_double_quotes, use_quotearg_colon): Moved to
23188         tests/test-quotearg.h.
23189         (results_g, flag_results, custom_quotes, custom_results): Moved
23190         to tests/test-quotearg-simple.c.
23191         (main): Moved the part that does not depend on gettext to
23192         tests/test-quotearg-simple.c. Return 77 if the test cannot be
23193         performed.
23194         * modules/quotearg-simple: New file.
23195         * modules/quotearg-simple-tests: New file.
23196         * modules/quotearg (Depends-on): Add quotearg-simple.
23197         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
23198         (Files): Add tests/test-quotearg.h.
23199         Reported by Paolo Bonzini.
23200
23201 2010-06-03  Bruno Haible  <bruno@clisp.org>
23202
23203         Reduce dependencies.
23204         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
23205
23206 2010-06-03  Bruno Haible  <bruno@clisp.org>
23207
23208         time: Undefine more broken macros.
23209         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
23210         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
23211         Reported by Eric Blake.
23212
23213 2010-06-03  Bruno Haible  <bruno@clisp.org>
23214
23215         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
23216         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
23217         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
23218         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
23219         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
23220         Reported by Ludovic Courtès <ludo@gnu.org>.
23221
23222 2010-06-02  Eric Blake  <eblake@redhat.com>
23223
23224         time: work with mingw + pthreads-win32 library
23225         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
23226         if timespec is defined only in pthread.h.
23227         * modules/time (Makefile.am): Substitute it.
23228         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
23229         <pthread.h>, when needed.
23230         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
23231         from the library.
23232
23233 2010-05-31  Bruno Haible  <bruno@clisp.org>
23234
23235         Avoid expanding two macros in the wrong order.
23236         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
23237         gl_LIBUNISTRING if it is defined.
23238         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
23239         autoconf >= 2.64.
23240         Reported by Ludovic Courtès <ludo@gnu.org>.
23241
23242 2010-05-27  Jim Meyering  <meyering@redhat.com>
23243
23244         maint.mk: also prohibit "#undef" of always-defined symbols
23245         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
23246         Allow more than one space before the symbol name.
23247         (sc_prohibit_always-defined_macros): Use grep's -E, now that
23248         the regexp uses alternation.
23249
23250 2010-05-26  Eric Blake  <eblake@redhat.com>
23251
23252         maint.mk: avoid echo -e
23253         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
23254         Convert all uses of echo -* to printf.
23255         Reported by Matthias Bolte.
23256
23257 2010-05-25  Bruno Haible  <bruno@clisp.org>
23258
23259         Update to GNU gettext 0.18, part 2.
23260         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
23261         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
23262
23263 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23264
23265         Add missing include in test-pwrite.c.
23266         * tests/test-pwrite.c: Include string.h, for strcmp.
23267
23268 2010-05-24  Bruno Haible  <bruno@clisp.org>
23269
23270         * NEWS: Mention requirement for Automake option 'subdir-objects'.
23271
23272 2010-05-24  Bruno Haible  <bruno@clisp.org>
23273
23274         Don't use conversion with transliteration in u{8,16,32}_strcoll.
23275         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
23276         iconveh_error argument.
23277         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
23278         U_STRCONV_TO_LOCALE.
23279         * lib/unistr/u16-strcoll.c: Likewise.
23280         * lib/unistr/u32-strcoll.c: Likewise.
23281         * modules/unistr/u8-strcoll (Depends-on): Add
23282         uniconv/u8-strconv-to-enc, localcharset. Remove
23283         uniconv/u8-strconv-to-locale.
23284         (configure.ac): Bump version number.
23285         * modules/unistr/u16-strcoll (Depends-on): Add
23286         uniconv/u16-strconv-to-enc, localcharset. Remove
23287         uniconv/u16-strconv-to-locale.
23288         (configure.ac): Bump version number.
23289         * modules/unistr/u32-strcoll (Depends-on): Add
23290         uniconv/u32-strconv-to-enc, localcharset. Remove
23291         uniconv/u32-strconv-to-locale.
23292         (configure.ac): Bump version number.
23293
23294 2010-05-24  Bruno Haible  <bruno@clisp.org>
23295
23296         Avoid a test failure on NetBSD 5.0.
23297         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
23298         an iconv() bug.
23299
23300 2010-05-24  Bruno Haible  <bruno@clisp.org>
23301
23302         Adjust #include directive style.
23303         * modules/regex (Includes): Recommend to write <regex.h>.
23304
23305 2010-05-24  Bruno Haible  <bruno@clisp.org>
23306
23307         regex: Don't require alloca.
23308         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
23309         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
23310         only inside if (0).
23311
23312 2010-05-23  Jim Meyering  <meyering@redhat.com>
23313
23314         test-renameat.c: include <sys/stat.h>
23315         * tests/test-renameat.c: Include <sys/stat.h>; required for
23316         definition of S_IS* macros.
23317
23318 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
23319
23320         Update maintainer documentation for 'relocatable-prog' module.
23321         * doc/relocatable-maint.texi: Update.
23322         Comments by Bruno Haible.
23323
23324 2010-05-23  Bruno Haible  <bruno@clisp.org>
23325
23326         git-merge-changelog: Enable --split-merged-entry by default.
23327         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
23328         (usage): Don't mention this option any more.
23329         Reported by Ralf Wildenhues.
23330
23331 2010-05-23  Jim Meyering  <meyering@redhat.com>
23332
23333         test-pwrite: do not leave behind a test file named "out"
23334         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
23335         The trivial-looking use of init.sh is really necessary.
23336         It ensures that the temporary file, "out", is created in
23337         a temporary directory, and removed upon termination.
23338         * tests/test-pwrite.sh: Re-add file.
23339         * modules/pwrite-tests: Reference it.
23340
23341 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23342
23343         Fix output redirection buglet in init.sh.
23344         * tests/init.sh: Fix redirection of stderr.
23345
23346 2010-05-20  Simon Josefsson  <simon@josefsson.org>
23347
23348         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
23349
23350 2010-05-17  Simon Josefsson  <simon@josefsson.org>
23351
23352         * modules/valgrind-tests: New file.
23353         * m4/valgrind-tests.m4: New file.
23354         * doc/valgrind-tests.texi: New file.
23355         * doc/gnulib.texi (Running self-tests under valgrind): New
23356         section.
23357
23358 2010-05-19  Bruno Haible  <bruno@clisp.org>
23359
23360         Clean up dead code in recent commit.
23361         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
23362         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
23363         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
23364         Suggested by Paolo Bonzini.
23365
23366 2010-05-19  Bruno Haible  <bruno@clisp.org>
23367
23368         Avoid valgrind error reports from libunistring.
23369         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
23370         * modules/libunistring (Files): Add it.
23371         * modules/libunistring-optional (Files): Likewise.
23372
23373 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
23374             Bruno Haible  <bruno@clisp.org>
23375
23376         New module 'libunistring-optional'.
23377         * modules/libunistring-optional: New file.
23378         * m4/libunistring-base.m4: New file.
23379         * m4/libunistring-optional.m4: New file.
23380         * lib/unicase.in.h: Renamed from lib/unicase.h.
23381         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
23382         * lib/unictype.in.h: Renamed from lib/unictype.h.
23383         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
23384         * lib/uniname.in.h: Renamed from lib/uniname.h.
23385         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
23386         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
23387         * lib/unistr.in.h: Renamed from lib/unistr.h.
23388         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
23389         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
23390         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
23391         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
23392         gl_LIBUNISTRING. If the library was found, determine the installed
23393         version and set LIBUNISTRING_VERSION.
23394         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
23395         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
23396         handle a configuration option --with-included-libunistring.
23397         * modules/libunistring (Files): Add m4/absolute-header.m4.
23398         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
23399         Add m4/libunistring-base.m4.
23400         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23401         (Makefile.am): Build unicase.h from unicase.in.h.
23402         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
23403         Add m4/libunistring-base.m4.
23404         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23405         (Makefile.am): Build uniconv.h from uniconv.in.h.
23406         * modules/unictype/base (Files): Use unictype.in.h instead of
23407         unictype.h. Add m4/libunistring-base.m4.
23408         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23409         (Makefile.am): Build unictype.h from unictype.in.h.
23410         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
23411         Add m4/libunistring-base.m4.
23412         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23413         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
23414         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
23415         Add m4/libunistring-base.m4.
23416         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23417         (Makefile.am): Build uniname.h from uniname.in.h.
23418         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
23419         Add m4/libunistring-base.m4.
23420         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23421         (Makefile.am): Build uninorm.h from uninorm.in.h.
23422         * modules/unistdio/base (Files): Use unistdio.in.h instead of
23423         unistdio.h. Add m4/libunistring-base.m4.
23424         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23425         (Makefile.am): Build unistdio.h from unistdio.in.h.
23426         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
23427         Add m4/libunistring-base.m4.
23428         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23429         (Makefile.am): Build unistr.h from unistr.in.h.
23430         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
23431         Add m4/libunistring-base.m4.
23432         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23433         (Makefile.am): Build unitypes.h from unitypes.in.h.
23434         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
23435         Add m4/libunistring-base.m4.
23436         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23437         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
23438         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
23439         uniwidth.h. Add m4/libunistring-base.m4.
23440         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23441         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
23442         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
23443         instead of augmenting lib_SOURCES.
23444         * modules/unicase/empty-suffix-context: Likewise.
23445         * modules/unicase/locale-language: Likewise.
23446         * modules/unicase/tolower: Likewise.
23447         * modules/unicase/totitle: Likewise.
23448         * modules/unicase/toupper: Likewise.
23449         * modules/unicase/u8-casecmp: Likewise.
23450         * modules/unicase/u8-casecoll: Likewise.
23451         * modules/unicase/u8-casefold: Likewise.
23452         * modules/unicase/u8-casexfrm: Likewise.
23453         * modules/unicase/u8-ct-casefold: Likewise.
23454         * modules/unicase/u8-ct-tolower: Likewise.
23455         * modules/unicase/u8-ct-totitle: Likewise.
23456         * modules/unicase/u8-ct-toupper: Likewise.
23457         * modules/unicase/u8-is-cased: Likewise.
23458         * modules/unicase/u8-is-casefolded: Likewise.
23459         * modules/unicase/u8-is-lowercase: Likewise.
23460         * modules/unicase/u8-is-titlecase: Likewise.
23461         * modules/unicase/u8-is-uppercase: Likewise.
23462         * modules/unicase/u8-prefix-context: Likewise.
23463         * modules/unicase/u8-suffix-context: Likewise.
23464         * modules/unicase/u8-tolower: Likewise.
23465         * modules/unicase/u8-totitle: Likewise.
23466         * modules/unicase/u8-toupper: Likewise.
23467         * modules/unicase/u16-casecmp: Likewise.
23468         * modules/unicase/u16-casecoll: Likewise.
23469         * modules/unicase/u16-casefold: Likewise.
23470         * modules/unicase/u16-casexfrm: Likewise.
23471         * modules/unicase/u16-ct-casefold: Likewise.
23472         * modules/unicase/u16-ct-tolower: Likewise.
23473         * modules/unicase/u16-ct-totitle: Likewise.
23474         * modules/unicase/u16-ct-toupper: Likewise.
23475         * modules/unicase/u16-is-cased: Likewise.
23476         * modules/unicase/u16-is-casefolded: Likewise.
23477         * modules/unicase/u16-is-lowercase: Likewise.
23478         * modules/unicase/u16-is-titlecase: Likewise.
23479         * modules/unicase/u16-is-uppercase: Likewise.
23480         * modules/unicase/u16-prefix-context: Likewise.
23481         * modules/unicase/u16-suffix-context: Likewise.
23482         * modules/unicase/u16-tolower: Likewise.
23483         * modules/unicase/u16-totitle: Likewise.
23484         * modules/unicase/u16-toupper: Likewise.
23485         * modules/unicase/u32-casecmp: Likewise.
23486         * modules/unicase/u32-casecoll: Likewise.
23487         * modules/unicase/u32-casefold: Likewise.
23488         * modules/unicase/u32-casexfrm: Likewise.
23489         * modules/unicase/u32-ct-casefold: Likewise.
23490         * modules/unicase/u32-ct-tolower: Likewise.
23491         * modules/unicase/u32-ct-totitle: Likewise.
23492         * modules/unicase/u32-ct-toupper: Likewise.
23493         * modules/unicase/u32-is-cased: Likewise.
23494         * modules/unicase/u32-is-casefolded: Likewise.
23495         * modules/unicase/u32-is-lowercase: Likewise.
23496         * modules/unicase/u32-is-titlecase: Likewise.
23497         * modules/unicase/u32-is-uppercase: Likewise.
23498         * modules/unicase/u32-prefix-context: Likewise.
23499         * modules/unicase/u32-suffix-context: Likewise.
23500         * modules/unicase/u32-tolower: Likewise.
23501         * modules/unicase/u32-totitle: Likewise.
23502         * modules/unicase/u32-toupper: Likewise.
23503         * modules/unicase/ulc-casecmp: Likewise.
23504         * modules/unicase/ulc-casecoll: Likewise.
23505         * modules/unicase/ulc-casexfrm: Likewise.
23506         * modules/uniconv/u8-conv-from-enc: Likewise.
23507         * modules/uniconv/u8-conv-to-enc: Likewise.
23508         * modules/uniconv/u8-strconv-from-enc: Likewise.
23509         * modules/uniconv/u8-strconv-from-locale: Likewise.
23510         * modules/uniconv/u8-strconv-to-enc: Likewise.
23511         * modules/uniconv/u8-strconv-to-locale: Likewise.
23512         * modules/uniconv/u16-conv-from-enc: Likewise.
23513         * modules/uniconv/u16-conv-to-enc: Likewise.
23514         * modules/uniconv/u16-strconv-from-enc: Likewise.
23515         * modules/uniconv/u16-strconv-from-locale: Likewise.
23516         * modules/uniconv/u16-strconv-to-enc: Likewise.
23517         * modules/uniconv/u16-strconv-to-locale: Likewise.
23518         * modules/uniconv/u32-conv-from-enc: Likewise.
23519         * modules/uniconv/u32-conv-to-enc: Likewise.
23520         * modules/uniconv/u32-strconv-from-enc: Likewise.
23521         * modules/uniconv/u32-strconv-from-locale: Likewise.
23522         * modules/uniconv/u32-strconv-to-enc: Likewise.
23523         * modules/uniconv/u32-strconv-to-locale: Likewise.
23524         * modules/unictype/bidicategory-byname: Likewise.
23525         * modules/unictype/bidicategory-name: Likewise.
23526         * modules/unictype/bidicategory-of: Likewise.
23527         * modules/unictype/bidicategory-test: Likewise.
23528         * modules/unictype/block-list: Likewise.
23529         * modules/unictype/block-test: Likewise.
23530         * modules/unictype/category-C: Likewise.
23531         * modules/unictype/category-Cc: Likewise.
23532         * modules/unictype/category-Cf: Likewise.
23533         * modules/unictype/category-Cn: Likewise.
23534         * modules/unictype/category-Co: Likewise.
23535         * modules/unictype/category-Cs: Likewise.
23536         * modules/unictype/category-L: Likewise.
23537         * modules/unictype/category-Ll: Likewise.
23538         * modules/unictype/category-Lm: Likewise.
23539         * modules/unictype/category-Lo: Likewise.
23540         * modules/unictype/category-Lt: Likewise.
23541         * modules/unictype/category-Lu: Likewise.
23542         * modules/unictype/category-M: Likewise.
23543         * modules/unictype/category-Mc: Likewise.
23544         * modules/unictype/category-Me: Likewise.
23545         * modules/unictype/category-Mn: Likewise.
23546         * modules/unictype/category-N: Likewise.
23547         * modules/unictype/category-Nd: Likewise.
23548         * modules/unictype/category-Nl: Likewise.
23549         * modules/unictype/category-No: Likewise.
23550         * modules/unictype/category-P: Likewise.
23551         * modules/unictype/category-Pc: Likewise.
23552         * modules/unictype/category-Pd: Likewise.
23553         * modules/unictype/category-Pe: Likewise.
23554         * modules/unictype/category-Pf: Likewise.
23555         * modules/unictype/category-Pi: Likewise.
23556         * modules/unictype/category-Po: Likewise.
23557         * modules/unictype/category-Ps: Likewise.
23558         * modules/unictype/category-S: Likewise.
23559         * modules/unictype/category-Sc: Likewise.
23560         * modules/unictype/category-Sk: Likewise.
23561         * modules/unictype/category-Sm: Likewise.
23562         * modules/unictype/category-So: Likewise.
23563         * modules/unictype/category-Z: Likewise.
23564         * modules/unictype/category-Zl: Likewise.
23565         * modules/unictype/category-Zp: Likewise.
23566         * modules/unictype/category-Zs: Likewise.
23567         * modules/unictype/category-and: Likewise.
23568         * modules/unictype/category-and-not: Likewise.
23569         * modules/unictype/category-byname: Likewise.
23570         * modules/unictype/category-name: Likewise.
23571         * modules/unictype/category-none: Likewise.
23572         * modules/unictype/category-of: Likewise.
23573         * modules/unictype/category-or: Likewise.
23574         * modules/unictype/category-test: Likewise.
23575         * modules/unictype/combining-class: Likewise.
23576         * modules/unictype/ctype-alnum: Likewise.
23577         * modules/unictype/ctype-alpha: Likewise.
23578         * modules/unictype/ctype-blank: Likewise.
23579         * modules/unictype/ctype-cntrl: Likewise.
23580         * modules/unictype/ctype-digit: Likewise.
23581         * modules/unictype/ctype-graph: Likewise.
23582         * modules/unictype/ctype-lower: Likewise.
23583         * modules/unictype/ctype-print: Likewise.
23584         * modules/unictype/ctype-punct: Likewise.
23585         * modules/unictype/ctype-space: Likewise.
23586         * modules/unictype/ctype-upper: Likewise.
23587         * modules/unictype/ctype-xdigit: Likewise.
23588         * modules/unictype/decimal-digit: Likewise.
23589         * modules/unictype/digit: Likewise.
23590         * modules/unictype/mirror: Likewise.
23591         * modules/unictype/numeric: Likewise.
23592         * modules/unictype/property-alphabetic: Likewise.
23593         * modules/unictype/property-ascii-hex-digit: Likewise.
23594         * modules/unictype/property-bidi-arabic-digit: Likewise.
23595         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
23596         * modules/unictype/property-bidi-block-separator: Likewise.
23597         * modules/unictype/property-bidi-boundary-neutral: Likewise.
23598         * modules/unictype/property-bidi-common-separator: Likewise.
23599         * modules/unictype/property-bidi-control: Likewise.
23600         * modules/unictype/property-bidi-embedding-or-override: Likewise.
23601         * modules/unictype/property-bidi-eur-num-separator: Likewise.
23602         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
23603         * modules/unictype/property-bidi-european-digit: Likewise.
23604         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
23605         * modules/unictype/property-bidi-left-to-right: Likewise.
23606         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
23607         * modules/unictype/property-bidi-other-neutral: Likewise.
23608         * modules/unictype/property-bidi-pdf: Likewise.
23609         * modules/unictype/property-bidi-segment-separator: Likewise.
23610         * modules/unictype/property-bidi-whitespace: Likewise.
23611         * modules/unictype/property-byname: Likewise.
23612         * modules/unictype/property-combining: Likewise.
23613         * modules/unictype/property-composite: Likewise.
23614         * modules/unictype/property-currency-symbol: Likewise.
23615         * modules/unictype/property-dash: Likewise.
23616         * modules/unictype/property-decimal-digit: Likewise.
23617         * modules/unictype/property-default-ignorable-code-point: Likewise.
23618         * modules/unictype/property-deprecated: Likewise.
23619         * modules/unictype/property-diacritic: Likewise.
23620         * modules/unictype/property-extender: Likewise.
23621         * modules/unictype/property-format-control: Likewise.
23622         * modules/unictype/property-grapheme-base: Likewise.
23623         * modules/unictype/property-grapheme-extend: Likewise.
23624         * modules/unictype/property-grapheme-link: Likewise.
23625         * modules/unictype/property-hex-digit: Likewise.
23626         * modules/unictype/property-hyphen: Likewise.
23627         * modules/unictype/property-id-continue: Likewise.
23628         * modules/unictype/property-id-start: Likewise.
23629         * modules/unictype/property-ideographic: Likewise.
23630         * modules/unictype/property-ids-binary-operator: Likewise.
23631         * modules/unictype/property-ids-trinary-operator: Likewise.
23632         * modules/unictype/property-ignorable-control: Likewise.
23633         * modules/unictype/property-iso-control: Likewise.
23634         * modules/unictype/property-join-control: Likewise.
23635         * modules/unictype/property-left-of-pair: Likewise.
23636         * modules/unictype/property-line-separator: Likewise.
23637         * modules/unictype/property-logical-order-exception: Likewise.
23638         * modules/unictype/property-lowercase: Likewise.
23639         * modules/unictype/property-math: Likewise.
23640         * modules/unictype/property-non-break: Likewise.
23641         * modules/unictype/property-not-a-character: Likewise.
23642         * modules/unictype/property-numeric: Likewise.
23643         * modules/unictype/property-other-alphabetic: Likewise.
23644         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23645         * modules/unictype/property-other-grapheme-extend: Likewise.
23646         * modules/unictype/property-other-id-continue: Likewise.
23647         * modules/unictype/property-other-id-start: Likewise.
23648         * modules/unictype/property-other-lowercase: Likewise.
23649         * modules/unictype/property-other-math: Likewise.
23650         * modules/unictype/property-other-uppercase: Likewise.
23651         * modules/unictype/property-paired-punctuation: Likewise.
23652         * modules/unictype/property-paragraph-separator: Likewise.
23653         * modules/unictype/property-pattern-syntax: Likewise.
23654         * modules/unictype/property-pattern-white-space: Likewise.
23655         * modules/unictype/property-private-use: Likewise.
23656         * modules/unictype/property-punctuation: Likewise.
23657         * modules/unictype/property-quotation-mark: Likewise.
23658         * modules/unictype/property-radical: Likewise.
23659         * modules/unictype/property-sentence-terminal: Likewise.
23660         * modules/unictype/property-soft-dotted: Likewise.
23661         * modules/unictype/property-space: Likewise.
23662         * modules/unictype/property-terminal-punctuation: Likewise.
23663         * modules/unictype/property-test: Likewise.
23664         * modules/unictype/property-titlecase: Likewise.
23665         * modules/unictype/property-unassigned-code-value: Likewise.
23666         * modules/unictype/property-unified-ideograph: Likewise.
23667         * modules/unictype/property-uppercase: Likewise.
23668         * modules/unictype/property-variation-selector: Likewise.
23669         * modules/unictype/property-white-space: Likewise.
23670         * modules/unictype/property-xid-continue: Likewise.
23671         * modules/unictype/property-xid-start: Likewise.
23672         * modules/unictype/property-zero-width: Likewise.
23673         * modules/unictype/scripts: Likewise.
23674         * modules/unictype/syntax-c-ident: Likewise.
23675         * modules/unictype/syntax-c-whitespace: Likewise.
23676         * modules/unictype/syntax-java-ident: Likewise.
23677         * modules/unictype/syntax-java-whitespace: Likewise.
23678         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23679         * modules/unilbrk/u8-width-linebreaks: Likewise.
23680         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23681         * modules/unilbrk/u16-width-linebreaks: Likewise.
23682         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23683         * modules/unilbrk/u32-width-linebreaks: Likewise.
23684         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23685         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23686         * modules/uniname/uniname: Likewise.
23687         * modules/uninorm/canonical-decomposition: Likewise.
23688         * modules/uninorm/composition: Likewise.
23689         * modules/uninorm/decomposing-form: Likewise.
23690         * modules/uninorm/decomposition: Likewise.
23691         * modules/uninorm/filter: Likewise.
23692         * modules/uninorm/nfc: Likewise.
23693         * modules/uninorm/nfd: Likewise.
23694         * modules/uninorm/nfkc: Likewise.
23695         * modules/uninorm/nfkd: Likewise.
23696         * modules/uninorm/u8-normalize: Likewise.
23697         * modules/uninorm/u8-normcmp: Likewise.
23698         * modules/uninorm/u8-normcoll: Likewise.
23699         * modules/uninorm/u8-normxfrm: Likewise.
23700         * modules/uninorm/u16-normalize: Likewise.
23701         * modules/uninorm/u16-normcmp: Likewise.
23702         * modules/uninorm/u16-normcoll: Likewise.
23703         * modules/uninorm/u16-normxfrm: Likewise.
23704         * modules/uninorm/u32-normalize: Likewise.
23705         * modules/uninorm/u32-normcmp: Likewise.
23706         * modules/uninorm/u32-normcoll: Likewise.
23707         * modules/uninorm/u32-normxfrm: Likewise.
23708         * modules/unistdio/u8-asnprintf: Likewise.
23709         * modules/unistdio/u8-asprintf: Likewise.
23710         * modules/unistdio/u8-snprintf: Likewise.
23711         * modules/unistdio/u8-sprintf: Likewise.
23712         * modules/unistdio/u8-u8-asnprintf: Likewise.
23713         * modules/unistdio/u8-u8-asprintf: Likewise.
23714         * modules/unistdio/u8-u8-snprintf: Likewise.
23715         * modules/unistdio/u8-u8-sprintf: Likewise.
23716         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23717         * modules/unistdio/u8-u8-vasprintf: Likewise.
23718         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23719         * modules/unistdio/u8-u8-vsprintf: Likewise.
23720         * modules/unistdio/u8-vasnprintf: Likewise.
23721         * modules/unistdio/u8-vasprintf: Likewise.
23722         * modules/unistdio/u8-vsnprintf: Likewise.
23723         * modules/unistdio/u8-vsprintf: Likewise.
23724         * modules/unistdio/u16-asnprintf: Likewise.
23725         * modules/unistdio/u16-asprintf: Likewise.
23726         * modules/unistdio/u16-snprintf: Likewise.
23727         * modules/unistdio/u16-sprintf: Likewise.
23728         * modules/unistdio/u16-u16-asnprintf: Likewise.
23729         * modules/unistdio/u16-u16-asprintf: Likewise.
23730         * modules/unistdio/u16-u16-snprintf: Likewise.
23731         * modules/unistdio/u16-u16-sprintf: Likewise.
23732         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23733         * modules/unistdio/u16-u16-vasprintf: Likewise.
23734         * modules/unistdio/u16-u16-vsnprintf: Likewise.
23735         * modules/unistdio/u16-u16-vsprintf: Likewise.
23736         * modules/unistdio/u16-vasnprintf: Likewise.
23737         * modules/unistdio/u16-vasprintf: Likewise.
23738         * modules/unistdio/u16-vsnprintf: Likewise.
23739         * modules/unistdio/u16-vsprintf: Likewise.
23740         * modules/unistdio/u32-asnprintf: Likewise.
23741         * modules/unistdio/u32-asprintf: Likewise.
23742         * modules/unistdio/u32-snprintf: Likewise.
23743         * modules/unistdio/u32-sprintf: Likewise.
23744         * modules/unistdio/u32-u32-asnprintf: Likewise.
23745         * modules/unistdio/u32-u32-asprintf: Likewise.
23746         * modules/unistdio/u32-u32-snprintf: Likewise.
23747         * modules/unistdio/u32-u32-sprintf: Likewise.
23748         * modules/unistdio/u32-u32-vasnprintf: Likewise.
23749         * modules/unistdio/u32-u32-vasprintf: Likewise.
23750         * modules/unistdio/u32-u32-vsnprintf: Likewise.
23751         * modules/unistdio/u32-u32-vsprintf: Likewise.
23752         * modules/unistdio/u32-vasnprintf: Likewise.
23753         * modules/unistdio/u32-vasprintf: Likewise.
23754         * modules/unistdio/u32-vsnprintf: Likewise.
23755         * modules/unistdio/u32-vsprintf: Likewise.
23756         * modules/unistdio/ulc-asnprintf: Likewise.
23757         * modules/unistdio/ulc-asprintf: Likewise.
23758         * modules/unistdio/ulc-fprintf: Likewise.
23759         * modules/unistdio/ulc-snprintf: Likewise.
23760         * modules/unistdio/ulc-sprintf: Likewise.
23761         * modules/unistdio/ulc-vasnprintf: Likewise.
23762         * modules/unistdio/ulc-vasprintf: Likewise.
23763         * modules/unistdio/ulc-vfprintf: Likewise.
23764         * modules/unistdio/ulc-vsnprintf: Likewise.
23765         * modules/unistdio/ulc-vsprintf: Likewise.
23766         * modules/unistr/u8-check: Likewise.
23767         * modules/unistr/u8-chr: Likewise.
23768         * modules/unistr/u8-cmp: Likewise.
23769         * modules/unistr/u8-cmp2: Likewise.
23770         * modules/unistr/u8-cpy: Likewise.
23771         * modules/unistr/u8-cpy-alloc: Likewise.
23772         * modules/unistr/u8-endswith: Likewise.
23773         * modules/unistr/u8-mblen: Likewise.
23774         * modules/unistr/u8-mbsnlen: Likewise.
23775         * modules/unistr/u8-mbtouc: Likewise.
23776         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23777         * modules/unistr/u8-mbtoucr: Likewise.
23778         * modules/unistr/u8-move: Likewise.
23779         * modules/unistr/u8-next: Likewise.
23780         * modules/unistr/u8-prev: Likewise.
23781         * modules/unistr/u8-set: Likewise.
23782         * modules/unistr/u8-startswith: Likewise.
23783         * modules/unistr/u8-stpcpy: Likewise.
23784         * modules/unistr/u8-stpncpy: Likewise.
23785         * modules/unistr/u8-strcat: Likewise.
23786         * modules/unistr/u8-strchr: Likewise.
23787         * modules/unistr/u8-strcmp: Likewise.
23788         * modules/unistr/u8-strcoll: Likewise.
23789         * modules/unistr/u8-strcpy: Likewise.
23790         * modules/unistr/u8-strcspn: Likewise.
23791         * modules/unistr/u8-strdup: Likewise.
23792         * modules/unistr/u8-strlen: Likewise.
23793         * modules/unistr/u8-strmblen: Likewise.
23794         * modules/unistr/u8-strmbtouc: Likewise.
23795         * modules/unistr/u8-strncat: Likewise.
23796         * modules/unistr/u8-strncmp: Likewise.
23797         * modules/unistr/u8-strncpy: Likewise.
23798         * modules/unistr/u8-strnlen: Likewise.
23799         * modules/unistr/u8-strpbrk: Likewise.
23800         * modules/unistr/u8-strrchr: Likewise.
23801         * modules/unistr/u8-strspn: Likewise.
23802         * modules/unistr/u8-strstr: Likewise.
23803         * modules/unistr/u8-strtok: Likewise.
23804         * modules/unistr/u8-to-u16: Likewise.
23805         * modules/unistr/u8-to-u32: Likewise.
23806         * modules/unistr/u8-uctomb: Likewise.
23807         * modules/unistr/u16-check: Likewise.
23808         * modules/unistr/u16-chr: Likewise.
23809         * modules/unistr/u16-cmp: Likewise.
23810         * modules/unistr/u16-cmp2: Likewise.
23811         * modules/unistr/u16-cpy: Likewise.
23812         * modules/unistr/u16-cpy-alloc: Likewise.
23813         * modules/unistr/u16-endswith: Likewise.
23814         * modules/unistr/u16-mblen: Likewise.
23815         * modules/unistr/u16-mbsnlen: Likewise.
23816         * modules/unistr/u16-mbtouc: Likewise.
23817         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23818         * modules/unistr/u16-mbtoucr: Likewise.
23819         * modules/unistr/u16-move: Likewise.
23820         * modules/unistr/u16-next: Likewise.
23821         * modules/unistr/u16-prev: Likewise.
23822         * modules/unistr/u16-set: Likewise.
23823         * modules/unistr/u16-startswith: Likewise.
23824         * modules/unistr/u16-stpcpy: Likewise.
23825         * modules/unistr/u16-stpncpy: Likewise.
23826         * modules/unistr/u16-strcat: Likewise.
23827         * modules/unistr/u16-strchr: Likewise.
23828         * modules/unistr/u16-strcmp: Likewise.
23829         * modules/unistr/u16-strcoll: Likewise.
23830         * modules/unistr/u16-strcpy: Likewise.
23831         * modules/unistr/u16-strcspn: Likewise.
23832         * modules/unistr/u16-strdup: Likewise.
23833         * modules/unistr/u16-strlen: Likewise.
23834         * modules/unistr/u16-strmblen: Likewise.
23835         * modules/unistr/u16-strmbtouc: Likewise.
23836         * modules/unistr/u16-strncat: Likewise.
23837         * modules/unistr/u16-strncmp: Likewise.
23838         * modules/unistr/u16-strncpy: Likewise.
23839         * modules/unistr/u16-strnlen: Likewise.
23840         * modules/unistr/u16-strpbrk: Likewise.
23841         * modules/unistr/u16-strrchr: Likewise.
23842         * modules/unistr/u16-strspn: Likewise.
23843         * modules/unistr/u16-strstr: Likewise.
23844         * modules/unistr/u16-strtok: Likewise.
23845         * modules/unistr/u16-to-u32: Likewise.
23846         * modules/unistr/u16-to-u8: Likewise.
23847         * modules/unistr/u16-uctomb: Likewise.
23848         * modules/unistr/u32-check: Likewise.
23849         * modules/unistr/u32-chr: Likewise.
23850         * modules/unistr/u32-cmp: Likewise.
23851         * modules/unistr/u32-cmp2: Likewise.
23852         * modules/unistr/u32-cpy: Likewise.
23853         * modules/unistr/u32-cpy-alloc: Likewise.
23854         * modules/unistr/u32-endswith: Likewise.
23855         * modules/unistr/u32-mblen: Likewise.
23856         * modules/unistr/u32-mbsnlen: Likewise.
23857         * modules/unistr/u32-mbtouc: Likewise.
23858         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23859         * modules/unistr/u32-mbtoucr: Likewise.
23860         * modules/unistr/u32-move: Likewise.
23861         * modules/unistr/u32-next: Likewise.
23862         * modules/unistr/u32-prev: Likewise.
23863         * modules/unistr/u32-set: Likewise.
23864         * modules/unistr/u32-startswith: Likewise.
23865         * modules/unistr/u32-stpcpy: Likewise.
23866         * modules/unistr/u32-stpncpy: Likewise.
23867         * modules/unistr/u32-strcat: Likewise.
23868         * modules/unistr/u32-strchr: Likewise.
23869         * modules/unistr/u32-strcmp: Likewise.
23870         * modules/unistr/u32-strcoll: Likewise.
23871         * modules/unistr/u32-strcpy: Likewise.
23872         * modules/unistr/u32-strcspn: Likewise.
23873         * modules/unistr/u32-strdup: Likewise.
23874         * modules/unistr/u32-strlen: Likewise.
23875         * modules/unistr/u32-strmblen: Likewise.
23876         * modules/unistr/u32-strmbtouc: Likewise.
23877         * modules/unistr/u32-strncat: Likewise.
23878         * modules/unistr/u32-strncmp: Likewise.
23879         * modules/unistr/u32-strncpy: Likewise.
23880         * modules/unistr/u32-strnlen: Likewise.
23881         * modules/unistr/u32-strpbrk: Likewise.
23882         * modules/unistr/u32-strrchr: Likewise.
23883         * modules/unistr/u32-strspn: Likewise.
23884         * modules/unistr/u32-strstr: Likewise.
23885         * modules/unistr/u32-strtok: Likewise.
23886         * modules/unistr/u32-to-u16: Likewise.
23887         * modules/unistr/u32-to-u8: Likewise.
23888         * modules/unistr/u32-uctomb: Likewise.
23889         * modules/uniwbrk/u8-wordbreaks: Likewise.
23890         * modules/uniwbrk/u16-wordbreaks: Likewise.
23891         * modules/uniwbrk/u32-wordbreaks: Likewise.
23892         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23893         * modules/uniwbrk/wordbreak-property: Likewise.
23894         * modules/uniwidth/u8-strwidth: Likewise.
23895         * modules/uniwidth/u8-width: Likewise.
23896         * modules/uniwidth/u16-strwidth: Likewise.
23897         * modules/uniwidth/u16-width: Likewise.
23898         * modules/uniwidth/u32-strwidth: Likewise.
23899         * modules/uniwidth/u32-width: Likewise.
23900         * modules/uniwidth/width: Likewise.
23901         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23902         with $(LIBUNISTRING).
23903         * modules/unicase/ignorable-tests: Likewise.
23904         * modules/unicase/locale-language-tests: Likewise.
23905         * modules/unicase/tolower-tests: Likewise.
23906         * modules/unicase/totitle-tests: Likewise.
23907         * modules/unicase/toupper-tests: Likewise.
23908         * modules/unicase/u8-casecmp-tests: Likewise.
23909         * modules/unicase/u8-casecoll-tests: Likewise.
23910         * modules/unicase/u8-casefold-tests: Likewise.
23911         * modules/unicase/u8-is-cased-tests: Likewise.
23912         * modules/unicase/u8-is-casefolded-tests: Likewise.
23913         * modules/unicase/u8-is-lowercase-tests: Likewise.
23914         * modules/unicase/u8-is-titlecase-tests: Likewise.
23915         * modules/unicase/u8-is-uppercase-tests: Likewise.
23916         * modules/unicase/u8-tolower-tests: Likewise.
23917         * modules/unicase/u8-totitle-tests: Likewise.
23918         * modules/unicase/u8-toupper-tests: Likewise.
23919         * modules/unicase/u16-casecmp-tests: Likewise.
23920         * modules/unicase/u16-casecoll-tests: Likewise.
23921         * modules/unicase/u16-casefold-tests: Likewise.
23922         * modules/unicase/u16-is-cased-tests: Likewise.
23923         * modules/unicase/u16-is-casefolded-tests: Likewise.
23924         * modules/unicase/u16-is-lowercase-tests: Likewise.
23925         * modules/unicase/u16-is-titlecase-tests: Likewise.
23926         * modules/unicase/u16-is-uppercase-tests: Likewise.
23927         * modules/unicase/u16-tolower-tests: Likewise.
23928         * modules/unicase/u16-totitle-tests: Likewise.
23929         * modules/unicase/u16-toupper-tests: Likewise.
23930         * modules/unicase/u32-casecmp-tests: Likewise.
23931         * modules/unicase/u32-casecoll-tests: Likewise.
23932         * modules/unicase/u32-casefold-tests: Likewise.
23933         * modules/unicase/u32-is-cased-tests: Likewise.
23934         * modules/unicase/u32-is-casefolded-tests: Likewise.
23935         * modules/unicase/u32-is-lowercase-tests: Likewise.
23936         * modules/unicase/u32-is-titlecase-tests: Likewise.
23937         * modules/unicase/u32-is-uppercase-tests: Likewise.
23938         * modules/unicase/u32-tolower-tests: Likewise.
23939         * modules/unicase/u32-totitle-tests: Likewise.
23940         * modules/unicase/u32-toupper-tests: Likewise.
23941         * modules/unicase/ulc-casecmp-tests: Likewise.
23942         * modules/unicase/ulc-casecoll-tests: Likewise.
23943         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23944         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23945         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23946         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23947         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23948         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23949         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23950         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23951         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23952         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23953         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23954         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23955         * modules/unictype/bidicategory-byname-tests: Likewise.
23956         * modules/unictype/bidicategory-name-tests: Likewise.
23957         * modules/unictype/bidicategory-of-tests: Likewise.
23958         * modules/unictype/bidicategory-test-tests: Likewise.
23959         * modules/unictype/block-list-tests: Likewise.
23960         * modules/unictype/block-of-tests: Likewise.
23961         * modules/unictype/block-test-tests: Likewise.
23962         * modules/unictype/category-C-tests: Likewise.
23963         * modules/unictype/category-Cc-tests: Likewise.
23964         * modules/unictype/category-Cf-tests: Likewise.
23965         * modules/unictype/category-Cn-tests: Likewise.
23966         * modules/unictype/category-Co-tests: Likewise.
23967         * modules/unictype/category-Cs-tests: Likewise.
23968         * modules/unictype/category-L-tests: Likewise.
23969         * modules/unictype/category-Ll-tests: Likewise.
23970         * modules/unictype/category-Lm-tests: Likewise.
23971         * modules/unictype/category-Lo-tests: Likewise.
23972         * modules/unictype/category-Lt-tests: Likewise.
23973         * modules/unictype/category-Lu-tests: Likewise.
23974         * modules/unictype/category-M-tests: Likewise.
23975         * modules/unictype/category-Mc-tests: Likewise.
23976         * modules/unictype/category-Me-tests: Likewise.
23977         * modules/unictype/category-Mn-tests: Likewise.
23978         * modules/unictype/category-N-tests: Likewise.
23979         * modules/unictype/category-Nd-tests: Likewise.
23980         * modules/unictype/category-Nl-tests: Likewise.
23981         * modules/unictype/category-No-tests: Likewise.
23982         * modules/unictype/category-P-tests: Likewise.
23983         * modules/unictype/category-Pc-tests: Likewise.
23984         * modules/unictype/category-Pd-tests: Likewise.
23985         * modules/unictype/category-Pe-tests: Likewise.
23986         * modules/unictype/category-Pf-tests: Likewise.
23987         * modules/unictype/category-Pi-tests: Likewise.
23988         * modules/unictype/category-Po-tests: Likewise.
23989         * modules/unictype/category-Ps-tests: Likewise.
23990         * modules/unictype/category-S-tests: Likewise.
23991         * modules/unictype/category-Sc-tests: Likewise.
23992         * modules/unictype/category-Sk-tests: Likewise.
23993         * modules/unictype/category-Sm-tests: Likewise.
23994         * modules/unictype/category-So-tests: Likewise.
23995         * modules/unictype/category-Z-tests: Likewise.
23996         * modules/unictype/category-Zl-tests: Likewise.
23997         * modules/unictype/category-Zp-tests: Likewise.
23998         * modules/unictype/category-Zs-tests: Likewise.
23999         * modules/unictype/category-and-not-tests: Likewise.
24000         * modules/unictype/category-and-tests: Likewise.
24001         * modules/unictype/category-byname-tests: Likewise.
24002         * modules/unictype/category-name-tests: Likewise.
24003         * modules/unictype/category-none-tests: Likewise.
24004         * modules/unictype/category-of-tests: Likewise.
24005         * modules/unictype/category-or-tests: Likewise.
24006         * modules/unictype/category-test-withtable-tests: Likewise.
24007         * modules/unictype/combining-class-tests: Likewise.
24008         * modules/unictype/ctype-alnum-tests: Likewise.
24009         * modules/unictype/ctype-alpha-tests: Likewise.
24010         * modules/unictype/ctype-blank-tests: Likewise.
24011         * modules/unictype/ctype-cntrl-tests: Likewise.
24012         * modules/unictype/ctype-digit-tests: Likewise.
24013         * modules/unictype/ctype-graph-tests: Likewise.
24014         * modules/unictype/ctype-lower-tests: Likewise.
24015         * modules/unictype/ctype-print-tests: Likewise.
24016         * modules/unictype/ctype-punct-tests: Likewise.
24017         * modules/unictype/ctype-space-tests: Likewise.
24018         * modules/unictype/ctype-upper-tests: Likewise.
24019         * modules/unictype/ctype-xdigit-tests: Likewise.
24020         * modules/unictype/decimal-digit-tests: Likewise.
24021         * modules/unictype/digit-tests: Likewise.
24022         * modules/unictype/mirror-tests: Likewise.
24023         * modules/unictype/numeric-tests: Likewise.
24024         * modules/unictype/property-alphabetic-tests: Likewise.
24025         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
24026         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
24027         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
24028         * modules/unictype/property-bidi-block-separator-tests: Likewise.
24029         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
24030         * modules/unictype/property-bidi-common-separator-tests: Likewise.
24031         * modules/unictype/property-bidi-control-tests: Likewise.
24032         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
24033         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
24034         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
24035         * modules/unictype/property-bidi-european-digit-tests: Likewise.
24036         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
24037         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
24038         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
24039         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
24040         * modules/unictype/property-bidi-pdf-tests: Likewise.
24041         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
24042         * modules/unictype/property-bidi-whitespace-tests: Likewise.
24043         * modules/unictype/property-byname-tests: Likewise.
24044         * modules/unictype/property-combining-tests: Likewise.
24045         * modules/unictype/property-composite-tests: Likewise.
24046         * modules/unictype/property-currency-symbol-tests: Likewise.
24047         * modules/unictype/property-dash-tests: Likewise.
24048         * modules/unictype/property-decimal-digit-tests: Likewise.
24049         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
24050         * modules/unictype/property-deprecated-tests: Likewise.
24051         * modules/unictype/property-diacritic-tests: Likewise.
24052         * modules/unictype/property-extender-tests: Likewise.
24053         * modules/unictype/property-format-control-tests: Likewise.
24054         * modules/unictype/property-grapheme-base-tests: Likewise.
24055         * modules/unictype/property-grapheme-extend-tests: Likewise.
24056         * modules/unictype/property-grapheme-link-tests: Likewise.
24057         * modules/unictype/property-hex-digit-tests: Likewise.
24058         * modules/unictype/property-hyphen-tests: Likewise.
24059         * modules/unictype/property-id-continue-tests: Likewise.
24060         * modules/unictype/property-id-start-tests: Likewise.
24061         * modules/unictype/property-ideographic-tests: Likewise.
24062         * modules/unictype/property-ids-binary-operator-tests: Likewise.
24063         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
24064         * modules/unictype/property-ignorable-control-tests: Likewise.
24065         * modules/unictype/property-iso-control-tests: Likewise.
24066         * modules/unictype/property-join-control-tests: Likewise.
24067         * modules/unictype/property-left-of-pair-tests: Likewise.
24068         * modules/unictype/property-line-separator-tests: Likewise.
24069         * modules/unictype/property-logical-order-exception-tests: Likewise.
24070         * modules/unictype/property-lowercase-tests: Likewise.
24071         * modules/unictype/property-math-tests: Likewise.
24072         * modules/unictype/property-non-break-tests: Likewise.
24073         * modules/unictype/property-not-a-character-tests: Likewise.
24074         * modules/unictype/property-numeric-tests: Likewise.
24075         * modules/unictype/property-other-alphabetic-tests: Likewise.
24076         * modules/unictype/property-other-default-ignorable-code-point-tests:
24077         Likewise.
24078         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
24079         * modules/unictype/property-other-id-continue-tests: Likewise.
24080         * modules/unictype/property-other-id-start-tests: Likewise.
24081         * modules/unictype/property-other-lowercase-tests: Likewise.
24082         * modules/unictype/property-other-math-tests: Likewise.
24083         * modules/unictype/property-other-uppercase-tests: Likewise.
24084         * modules/unictype/property-paired-punctuation-tests: Likewise.
24085         * modules/unictype/property-paragraph-separator-tests: Likewise.
24086         * modules/unictype/property-pattern-syntax-tests: Likewise.
24087         * modules/unictype/property-pattern-white-space-tests: Likewise.
24088         * modules/unictype/property-private-use-tests: Likewise.
24089         * modules/unictype/property-punctuation-tests: Likewise.
24090         * modules/unictype/property-quotation-mark-tests: Likewise.
24091         * modules/unictype/property-radical-tests: Likewise.
24092         * modules/unictype/property-sentence-terminal-tests: Likewise.
24093         * modules/unictype/property-soft-dotted-tests: Likewise.
24094         * modules/unictype/property-space-tests: Likewise.
24095         * modules/unictype/property-terminal-punctuation-tests: Likewise.
24096         * modules/unictype/property-test-tests: Likewise.
24097         * modules/unictype/property-titlecase-tests: Likewise.
24098         * modules/unictype/property-unassigned-code-value-tests: Likewise.
24099         * modules/unictype/property-unified-ideograph-tests: Likewise.
24100         * modules/unictype/property-uppercase-tests: Likewise.
24101         * modules/unictype/property-variation-selector-tests: Likewise.
24102         * modules/unictype/property-white-space-tests: Likewise.
24103         * modules/unictype/property-xid-continue-tests: Likewise.
24104         * modules/unictype/property-xid-start-tests: Likewise.
24105         * modules/unictype/property-zero-width-tests: Likewise.
24106         * modules/unictype/scripts-tests: Likewise.
24107         * modules/unictype/syntax-c-ident-tests: Likewise.
24108         * modules/unictype/syntax-c-whitespace-tests: Likewise.
24109         * modules/unictype/syntax-java-ident-tests: Likewise.
24110         * modules/unictype/syntax-java-whitespace-tests: Likewise.
24111         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
24112         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
24113         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
24114         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
24115         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
24116         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
24117         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
24118         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
24119         * modules/uniname/uniname-tests: Likewise.
24120         * modules/uninorm/canonical-decomposition-tests: Likewise.
24121         * modules/uninorm/compat-decomposition-tests: Likewise.
24122         * modules/uninorm/composition-tests: Likewise.
24123         * modules/uninorm/decomposing-form-tests: Likewise.
24124         * modules/uninorm/decomposition-tests: Likewise.
24125         * modules/uninorm/filter-tests: Likewise.
24126         * modules/uninorm/nfc-tests: Likewise.
24127         * modules/uninorm/nfd-tests: Likewise.
24128         * modules/uninorm/nfkc-tests: Likewise.
24129         * modules/uninorm/nfkd-tests: Likewise.
24130         * modules/uninorm/u8-normcmp-tests: Likewise.
24131         * modules/uninorm/u8-normcoll-tests: Likewise.
24132         * modules/uninorm/u16-normcmp-tests: Likewise.
24133         * modules/uninorm/u16-normcoll-tests: Likewise.
24134         * modules/uninorm/u32-normcmp-tests: Likewise.
24135         * modules/uninorm/u32-normcoll-tests: Likewise.
24136         * modules/unistdio/u8-asnprintf-tests: Likewise.
24137         * modules/unistdio/u8-vasnprintf-tests: Likewise.
24138         * modules/unistdio/u8-vasprintf-tests: Likewise.
24139         * modules/unistdio/u8-vsnprintf-tests: Likewise.
24140         * modules/unistdio/u8-vsprintf-tests: Likewise.
24141         * modules/unistdio/u16-asnprintf-tests: Likewise.
24142         * modules/unistdio/u16-vasnprintf-tests: Likewise.
24143         * modules/unistdio/u16-vasprintf-tests: Likewise.
24144         * modules/unistdio/u16-vsnprintf-tests: Likewise.
24145         * modules/unistdio/u16-vsprintf-tests: Likewise.
24146         * modules/unistdio/u32-asnprintf-tests: Likewise.
24147         * modules/unistdio/u32-vasnprintf-tests: Likewise.
24148         * modules/unistdio/u32-vasprintf-tests: Likewise.
24149         * modules/unistdio/u32-vsnprintf-tests: Likewise.
24150         * modules/unistdio/u32-vsprintf-tests: Likewise.
24151         * modules/unistdio/ulc-asnprintf-tests: Likewise.
24152         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
24153         * modules/unistdio/ulc-vasprintf-tests: Likewise.
24154         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
24155         * modules/unistdio/ulc-vsprintf-tests: Likewise.
24156         * modules/unistr/u8-check-tests: Likewise.
24157         * modules/unistr/u8-chr-tests: Likewise.
24158         * modules/unistr/u8-cmp-tests: Likewise.
24159         * modules/unistr/u8-cmp2-tests: Likewise.
24160         * modules/unistr/u8-cpy-alloc-tests: Likewise.
24161         * modules/unistr/u8-cpy-tests: Likewise.
24162         * modules/unistr/u8-mblen-tests: Likewise.
24163         * modules/unistr/u8-mbsnlen-tests: Likewise.
24164         * modules/unistr/u8-mbtouc-tests: Likewise.
24165         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
24166         * modules/unistr/u8-mbtoucr-tests: Likewise.
24167         * modules/unistr/u8-move-tests: Likewise.
24168         * modules/unistr/u8-next-tests: Likewise.
24169         * modules/unistr/u8-prev-tests: Likewise.
24170         * modules/unistr/u8-set-tests: Likewise.
24171         * modules/unistr/u8-stpcpy-tests: Likewise.
24172         * modules/unistr/u8-stpncpy-tests: Likewise.
24173         * modules/unistr/u8-strcat-tests: Likewise.
24174         * modules/unistr/u8-strcmp-tests: Likewise.
24175         * modules/unistr/u8-strcoll-tests: Likewise.
24176         * modules/unistr/u8-strcpy-tests: Likewise.
24177         * modules/unistr/u8-strdup-tests: Likewise.
24178         * modules/unistr/u8-strlen-tests: Likewise.
24179         * modules/unistr/u8-strmblen-tests: Likewise.
24180         * modules/unistr/u8-strmbtouc-tests: Likewise.
24181         * modules/unistr/u8-strncat-tests: Likewise.
24182         * modules/unistr/u8-strncmp-tests: Likewise.
24183         * modules/unistr/u8-strncpy-tests: Likewise.
24184         * modules/unistr/u8-strnlen-tests: Likewise.
24185         * modules/unistr/u8-to-u16-tests: Likewise.
24186         * modules/unistr/u8-to-u32-tests: Likewise.
24187         * modules/unistr/u8-uctomb-tests: Likewise.
24188         * modules/unistr/u16-check-tests: Likewise.
24189         * modules/unistr/u16-chr-tests: Likewise.
24190         * modules/unistr/u16-cmp-tests: Likewise.
24191         * modules/unistr/u16-cmp2-tests: Likewise.
24192         * modules/unistr/u16-cpy-alloc-tests: Likewise.
24193         * modules/unistr/u16-cpy-tests: Likewise.
24194         * modules/unistr/u16-mblen-tests: Likewise.
24195         * modules/unistr/u16-mbsnlen-tests: Likewise.
24196         * modules/unistr/u16-mbtouc-tests: Likewise.
24197         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
24198         * modules/unistr/u16-mbtoucr-tests: Likewise.
24199         * modules/unistr/u16-move-tests: Likewise.
24200         * modules/unistr/u16-next-tests: Likewise.
24201         * modules/unistr/u16-prev-tests: Likewise.
24202         * modules/unistr/u16-set-tests: Likewise.
24203         * modules/unistr/u16-stpcpy-tests: Likewise.
24204         * modules/unistr/u16-stpncpy-tests: Likewise.
24205         * modules/unistr/u16-strcat-tests: Likewise.
24206         * modules/unistr/u16-strcmp-tests: Likewise.
24207         * modules/unistr/u16-strcoll-tests: Likewise.
24208         * modules/unistr/u16-strcpy-tests: Likewise.
24209         * modules/unistr/u16-strdup-tests: Likewise.
24210         * modules/unistr/u16-strlen-tests: Likewise.
24211         * modules/unistr/u16-strmblen-tests: Likewise.
24212         * modules/unistr/u16-strmbtouc-tests: Likewise.
24213         * modules/unistr/u16-strncat-tests: Likewise.
24214         * modules/unistr/u16-strncmp-tests: Likewise.
24215         * modules/unistr/u16-strncpy-tests: Likewise.
24216         * modules/unistr/u16-strnlen-tests: Likewise.
24217         * modules/unistr/u16-to-u32-tests: Likewise.
24218         * modules/unistr/u16-to-u8-tests: Likewise.
24219         * modules/unistr/u16-uctomb-tests: Likewise.
24220         * modules/unistr/u32-check-tests: Likewise.
24221         * modules/unistr/u32-chr-tests: Likewise.
24222         * modules/unistr/u32-cmp-tests: Likewise.
24223         * modules/unistr/u32-cmp2-tests: Likewise.
24224         * modules/unistr/u32-cpy-alloc-tests: Likewise.
24225         * modules/unistr/u32-cpy-tests: Likewise.
24226         * modules/unistr/u32-mblen-tests: Likewise.
24227         * modules/unistr/u32-mbsnlen-tests: Likewise.
24228         * modules/unistr/u32-mbtouc-tests: Likewise.
24229         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
24230         * modules/unistr/u32-mbtoucr-tests: Likewise.
24231         * modules/unistr/u32-move-tests: Likewise.
24232         * modules/unistr/u32-next-tests: Likewise.
24233         * modules/unistr/u32-prev-tests: Likewise.
24234         * modules/unistr/u32-set-tests: Likewise.
24235         * modules/unistr/u32-stpcpy-tests: Likewise.
24236         * modules/unistr/u32-stpncpy-tests: Likewise.
24237         * modules/unistr/u32-strcat-tests: Likewise.
24238         * modules/unistr/u32-strcmp-tests: Likewise.
24239         * modules/unistr/u32-strcoll-tests: Likewise.
24240         * modules/unistr/u32-strcpy-tests: Likewise.
24241         * modules/unistr/u32-strdup-tests: Likewise.
24242         * modules/unistr/u32-strlen-tests: Likewise.
24243         * modules/unistr/u32-strmblen-tests: Likewise.
24244         * modules/unistr/u32-strmbtouc-tests: Likewise.
24245         * modules/unistr/u32-strncat-tests: Likewise.
24246         * modules/unistr/u32-strncmp-tests: Likewise.
24247         * modules/unistr/u32-strncpy-tests: Likewise.
24248         * modules/unistr/u32-strnlen-tests: Likewise.
24249         * modules/unistr/u32-to-u16-tests: Likewise.
24250         * modules/unistr/u32-to-u8-tests: Likewise.
24251         * modules/unistr/u32-uctomb-tests: Likewise.
24252         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
24253         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
24254         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
24255         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
24256         * modules/uniwidth/u8-strwidth-tests: Likewise.
24257         * modules/uniwidth/u8-width-tests: Likewise.
24258         * modules/uniwidth/u16-strwidth-tests: Likewise.
24259         * modules/uniwidth/u16-width-tests: Likewise.
24260         * modules/uniwidth/u32-strwidth-tests: Likewise.
24261         * modules/uniwidth/u32-width-tests: Likewise.
24262         * modules/uniwidth/width-tests: Likewise.
24263
24264 2010-05-18  Richard Jones  <rjones@redhat.com>
24265
24266         doc: users.txt: list hivex
24267         * users.txt: Add hivex.
24268
24269 2010-05-18  Richard Jones  <rjones@redhat.com>
24270
24271         doc: users.txt: list febootstrap
24272         * users.txt: Add febootstrap.
24273
24274 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
24275
24276         bootstrap: fix an error when gnulib is not used as a git submodule
24277         * build-aux/bootstrap (gnulib_path): If its length is zero then
24278         assign "gnulib" to it.
24279         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
24280
24281 2010-05-16  Bruno Haible  <bruno@clisp.org>
24282
24283         Avoid autoconf warnings about AM_ICONV.
24284         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
24285         2.64.
24286
24287 2010-05-16  Bruno Haible  <bruno@clisp.org>
24288
24289         absolute-header: Make the macro usable in more situations.
24290         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
24291         from gl_ABSOLUTE_HEADER.
24292         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
24293
24294 2010-05-16  James Youngman  <jay@gnu.org>
24295
24296         doc: update users.txt
24297         * users.txt: Add CSSC.
24298
24299 2010-05-16  Jim Meyering  <meyering@redhat.com>
24300
24301         init.sh: fix an error in the previous change; add more comments
24302         * tests/init.sh: Compare exit code in loop against 9, not 2.
24303         Patch by Bruno Haible.
24304         Make the two tests more similar by adding an empty "then" clause.
24305         Add comments.
24306
24307         init.sh: avoid unnecessary shell re-exec
24308         * tests/init.sh: Improve the re-exec-required check to first test the
24309         current shell.  If it passes the test, do not search for a shell that
24310         does pass, and do not re-exec.  This test is particularly contorted to
24311         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
24312         of $(...) evokes a syntax error and causes immediate shell exit with
24313         status 2.  Bruno Haible reported that the re-exec made it impossible
24314         to single-step through any init.sh-using script.
24315
24316 2010-05-16  Bruno Haible  <bruno@clisp.org>
24317
24318         Fix collision between gnulib's and libintl's printf replacements.
24319         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
24320         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
24321         (printf): When using GNU C, map the __printf__ function to rpl_printf
24322         via __asm__. When not using GNU C, define rpl_printf instead of
24323         __printf__.
24324         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
24325         commit.
24326         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
24327         commit.
24328         * m4/asm-underscore.m4: New file.
24329         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
24330         * modules/stdio (Files): Add m4/asm-underscore.m4.
24331         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
24332         Reported by Ben Pfaff.
24333
24334 2010-05-16  Bruno Haible  <bruno@clisp.org>
24335
24336         verify: Avoid skipping the test on openSUSE 11.0.
24337         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
24338
24339 2010-05-13  Bruno Haible  <bruno@clisp.org>
24340
24341         Avoid useless warnings from G++.
24342         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
24343         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
24344         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24345
24346 2010-05-11  Jim Meyering  <meyering@redhat.com>
24347
24348         maint.mk: tweak preceding change
24349         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
24350         regexps tighter by anchoring at EOL, and make the new group "shy"
24351         for slightly decreased overhead.
24352
24353 2010-05-11  Eric Blake  <eblake@redhat.com>
24354
24355         maint.mk: gnulib doesn't guarantee NSIG
24356         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
24357
24358 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24359
24360         test-pwrite.c: Remove unused variable declaration.
24361         * tests/test-pwrite.c (main): Remove read_buf declaration.
24362
24363         Remove useless test-pwrite.sh file.
24364         * tests/test-pwrite.sh: Delete file.
24365         * modules/pwrite-tests: Remove references.
24366         Reported by Bruno Haible.
24367
24368 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24369
24370         init.sh: fix a typo
24371         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
24372
24373 2010-05-10  Jim Meyering  <meyering@redhat.com>
24374
24375         maint.mk: avoid using a temporary file in the always-defined-macros check
24376         * top/maint.mk (.re-defmac): Remove rule.
24377         (gl_trap_): Remove definition.
24378         (sc_prohibit_always-defined_macros): Rewrite not to create and
24379         depend on a temporary file.  Instead, depend on GNU grep's ability
24380         to read a list of regular expressions from stdin when given "-f -".
24381
24382 2010-05-09  Bruno Haible  <bruno@clisp.org>
24383
24384         Update to GNU gettext 0.18, part 1.
24385         * m4/gettext.m4: Update to GNU gettext 0.18.
24386         * m4/intl.m4: Likewise.
24387         * m4/po.m4: Likewise.
24388         * modules/gettext (Files): Add m4/fcntl-o.m4.
24389         (configure.ac): Require gettext infrastructure from version 0.18.
24390
24391 2010-05-09  Jim Meyering  <meyering@redhat.com>
24392
24393         init.sh: enable MALLOC_PERTURB_
24394         * tests/init.sh: Enable glibc's malloc-perturbing option.
24395
24396         maint.mk: improve sc_cross_check_PATH_usage_in_tests
24397         With my recent change in init.sh from the two-line form:
24398             -#   : ${srcdir=.}
24399             -#   . "$srcdir/init.sh"; path_prepend_ .
24400             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
24401         I noticed that using the one-line form would cause this test
24402         to fail with a false-positive, or to stop working altogether,
24403         depending on whether help-version changed or all the tests did.
24404         * top/maint.mk (_hv_regex): Remove this definition.
24405         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
24406         (_hv_regex_strong): Use a stronger regex to check for conformance.
24407         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
24408         Give a separate diagnostic for lack of conforming use.
24409
24410         maint.mk: prohibit definition of symbols defined by gnulib
24411         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
24412         definition of symbols defined by gnulib.
24413
24414 2010-05-09  Bruno Haible  <bruno@clisp.org>
24415
24416         acl: Avoid test failure on Cygwin-hosted mingw.
24417         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
24418
24419 2010-05-09  Bruno Haible  <bruno@clisp.org>
24420
24421         error: Use system's fcntl function.
24422         * lib/error.c (fcntl): Undefine.
24423
24424 2010-05-09  Jim Meyering  <meyering@redhat.com>
24425
24426         verify: adjust formatting to be more consistent
24427         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
24428         argument-list '('s, and after one comma.
24429
24430 2010-05-09  Bruno Haible  <bruno@clisp.org>
24431
24432         error: More reliable output on mingw.
24433         * lib/error.c: Include <windows.h>.
24434         (is_open): New function.
24435         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
24436         defined.
24437
24438 2010-05-09  Bruno Haible  <bruno@clisp.org>
24439
24440         vasnprintf: Fix syntax errors in libintl build on mingw.
24441         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
24442         pad_ourselves and prec_ourselves after use.
24443
24444 2010-05-08  Bruno Haible  <bruno@clisp.org>
24445
24446         * lib/config.charset: Update comments for Cygwin 1.7.
24447         * lib/localcharset.c: Likewise.
24448
24449 2010-05-07  Jim Meyering  <meyering@redhat.com>
24450
24451         init.sh: improve comments
24452         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
24453         . "${srcdir=.}/init.sh"; path_prepend_ .
24454         Add a note about path_prepend_ and the alternative of using
24455         TESTS_ENVIRONMENT.
24456
24457 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24458
24459         exclude: Unescape hashed patterns in wildcard mode.
24460         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
24461         to the hash list.
24462         * tests/test-exclude8.sh: New test case.
24463         * modules/exclude-tests: Add new test.
24464
24465 2010-05-05  Eric Blake  <eblake@redhat.com>
24466
24467         verify: automate tests
24468         * modules/verify-tests: New module.
24469         * tests/test-verify.sh: New file.
24470         * tests/test-verify.c: Guard each negative test with a unique id.
24471         Also avoid warning about unused left hand of comma expressions.
24472
24473 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24474
24475         Further improvements to verify.h, suggested by Eric Blake.
24476         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
24477         the GL_* versions, to avoid collision with OpenGL.
24478         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
24479         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
24480         than testing merely whether it's defined.
24481
24482         Modify verify.h to pacify gcc -Wredundant_decls.
24483         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
24484         These use the prefix "GL_" since they're likely to be useful elsewhere.
24485         We may need to break them out into a different .h file.
24486         (__COUNTER__): Define to 0 if the compiler doesn't support it.
24487         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
24488         of verify_function__.
24489
24490 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24491
24492         Tests for module pwrite.
24493         * modules/pwrite-tests: New file.
24494         * tests/test-pwrite.sh: New file.
24495         * tests/test-pwrite.c: New file.
24496
24497         New module pwrite.
24498         * lib/unistd.in.h (pwrite): New declaration.
24499         * lib/pwrite.c: New file, from glibc with modifications.
24500         * m4/pwrite.m4: New file.
24501         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
24502         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
24503         REPLACE_PWRITE.
24504         * modules/pwrite: New file.
24505         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
24506         REPLACE_PWRITE.
24507         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
24508         * doc/posix-functions/pwrite.texi: Mention the new module.
24509
24510 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24511
24512         pread: Update documentation.
24513         * doc/posix-functions/pread.texi: Mention the 'pread' module.
24514
24515 2010-05-04  Eric Blake  <eblake@redhat.com>
24516
24517         docs: update cygwin progress
24518         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
24519         this bug.
24520         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
24521         Added in cygwin 1.7.2.
24522         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
24523         Likewise.
24524         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
24525         Likewise.
24526         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24527         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
24528         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24529         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
24530         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
24531         Mention nproc module.
24532         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
24533         bug in cygwin 1.7.5 addition.
24534         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
24535         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
24536         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
24537         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
24538         1.7.5.
24539         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
24540         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
24541         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
24542         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
24543         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
24544         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
24545         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
24546         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
24547         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
24548         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
24549         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
24550         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
24551         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
24552         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
24553         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
24554         Likewise.
24555         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
24556         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
24557         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
24558         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
24559         Likewise.
24560         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
24561         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
24562         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
24563         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
24564         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
24565         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
24566         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
24567         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
24568         Likewise.
24569         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
24570         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
24571         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
24572         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
24573         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
24574         Likewise.
24575         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
24576         Likewise.
24577         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
24578         Likewise.
24579         * doc/glibc-functions/xdrrec_endofrecord.texi
24580         (xdrrec_endofrecord): Likewise.
24581         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
24582         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
24583         Likewise.
24584         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
24585         Likewise.
24586
24587 2010-05-04  Jim Meyering  <meyering@redhat.com>
24588
24589         gendocs.sh: make its "-s FILE" option more useful
24590         * build-aux/gendocs.sh: When honoring the -s FILE option, update
24591         $PACKAGE to reflect the probably-different basename of "FILE".
24592
24593 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24594
24595         bootstrap: don't ignore download_po_files failure
24596         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
24597         failure.
24598
24599 2010-05-03  Jim Meyering  <meyering@redhat.com>
24600
24601         maint.mk: allow to pass options to gendocs.sh
24602         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
24603         (gendocs_options_): New overridable variable.
24604
24605         gnu-web-doc-update: don't ignore configure or build failure
24606         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
24607
24608         announce-gen: backslash-escape '@'s in --help output
24609         * build-aux/announce-gen: Fix syntax errors.
24610
24611         maint.mk, announce-gen: allow project-specific announcement mail headers
24612         * top/maint.mk (translation_project_): Define default.
24613         (announcement_Cc_, announcement_mail_headers_): Likewise.
24614         (announcement): Invoke announce-gen with new --mail-headers option.
24615         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
24616
24617         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
24618         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
24619         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
24620         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
24621         line in the "err2" output file when running "make check" in verbose
24622         mode (i.e., with set -x enabled).
24623
24624 2010-05-03  Bruno Haible  <bruno@clisp.org>
24625
24626         wctob: Fix for weird platforms.
24627         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
24628         argument value.
24629
24630 2010-05-03  Jim Meyering  <meyering@redhat.com>
24631
24632         maint.mk: prohibit unwarranted use of <strings.h>
24633         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
24634         strings.h in a file that does not also use strcasecmp, strncasecmp,
24635         ffs or ffsll.
24636
24637         maint.mk: remove obsolete comments
24638         * top/maint.mk: Remove stale, commented-out rules.
24639
24640 2010-05-02  Bruno Haible  <bruno@clisp.org>
24641
24642         wcwidth: Declare also when it's aliased.
24643         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24644         macro.
24645
24646 2010-05-02  Bruno Haible  <bruno@clisp.org>
24647
24648         Fix regression from 2010-04-25.
24649         * gnulib-tool (func_modules_transitive_closure): Check the status of
24650         all modules, not only of the tests that are of the form foo-tests where
24651         foo is a module.
24652
24653 2010-05-02  Bruno Haible  <bruno@clisp.org>
24654
24655         wctob: Work around nasty Cygwin 1.7.2 bug.
24656         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24657         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24658
24659 2010-05-01  Bruno Haible  <bruno@clisp.org>
24660
24661         fpurge: Sharper test.
24662         * tests/test-fpurge.c (main): Add one more ftell check.
24663         * modules/fpurge-tests (Depends-on): Add ftell.
24664         Suggested by Eric Blake.
24665
24666 2010-05-01  Bruno Haible  <bruno@clisp.org>
24667
24668         ftello: Another test.
24669         * tests/test-ftello3.c: New file.
24670         * modules/ftello-tests (Files): Add it.
24671         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24672         MOSTLYCLEANFILES.
24673
24674         ftell: Another test.
24675         * tests/test-ftell3.c: New file.
24676         * modules/ftell-tests (Files): Add it.
24677         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24678         MOSTLYCLEANFILES.
24679
24680 2010-05-01  Bruno Haible  <bruno@clisp.org>
24681
24682         ftell, ftello: Work around Solaris bug.
24683         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24684         * lib/ftello.c: Include stdio-impl.h.
24685         (ftello): On Solaris, when _IOWRT is set, compute the result without
24686         looking at _IOREAD.
24687         * modules/ftello (Files): Add lib/stdio-impl.h.
24688         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24689         * doc/posix-functions/ftello.texi: Likewise.
24690         Reported by Eric Blake.
24691
24692 2010-05-01  Bruno Haible  <bruno@clisp.org>
24693
24694         freading: Adapt to special meaning of _IOREAD flag on Solaris.
24695         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
24696         the _IOWRT flag is also set.
24697
24698 2010-05-01  Bruno Haible  <bruno@clisp.org>
24699
24700         Fix doc about a HP-UX stdio bug.
24701         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
24702         * doc/posix-functions/ftello.texi: Likewise.
24703
24704 2010-05-01  Bruno Haible  <bruno@clisp.org>
24705
24706         lseek test: Fix failure on Solaris.
24707         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24708         output.
24709
24710 2010-04-30  Jim Meyering  <meyering@redhat.com>
24711
24712         bootstrap: don't ignore failure to generate po*/Makevars
24713         * build-aux/bootstrap (with_gettext): Don't ignore failure
24714         to create po/Makevars or runtime-po/Makevars.
24715
24716 2010-04-29  Eric Blake  <eblake@redhat.com>
24717
24718         headers: relax license to LGPLv2+
24719         * modules/fcntl-h (License): Relax license.
24720         * modules/getopt-posix (License): Likewise.
24721         * modules/locale (License): Likewise.
24722         * modules/math (License): Likewise.
24723         * modules/pty (License): Likewise.
24724         * modules/sched (License): Likewise.
24725         * modules/search (License): Likewise.
24726         * modules/spawn (License): Likewise.
24727         * modules/stdarg (License): Likewise.
24728         * modules/sysexits (License): Likewise.
24729
24730 2010-04-29  Jim Meyering  <meyering@redhat.com>
24731
24732         inttypes: relax license to LGPLv2+
24733         * modules/inttypes (License): Relax license.
24734
24735 2010-04-29  Simon Josefsson  <simon@josefsson.org>
24736
24737         * top/maint.mk (indent): Run twice to produce idempotent results.
24738
24739 2010-04-28  Bruno Haible  <bruno@clisp.org>
24740
24741         getdate: Generate getdate.c in the source directory.
24742         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
24743         MOSTLYCLEANFILES.
24744         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
24745
24746 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
24747
24748         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
24749         is not declared as a const *; avoid warnings in that case.
24750
24751 2010-04-28  Eric Blake  <eblake@redhat.com>
24752
24753         canonicalize-lgpl: avoid compiler warning
24754         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
24755         declaration' / 'extraneous semicolon' warning with some compilers.
24756         Reported by Andreas Gruenbacher.
24757
24758 2010-04-28  Jim Meyering  <meyering@redhat.com>
24759
24760         init.sh: ensure a more reliable exit status when exiting via trap
24761         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24762         Inspired by patches from Dmitry V. Levin.
24763         Also trap on signal 3 (SIGQUIT).
24764
24765 2010-04-27  Bruno Haible  <bruno@clisp.org>
24766
24767         Update doc about utimes().
24768         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24769         'utimens' module.
24770         Reported by Andreas Gruenbacher <agruen@suse.de>.
24771
24772 2010-04-27  Eric Blake  <eblake@redhat.com>
24773
24774         full-read, full-write: relax license
24775         * modules/full-read (License): Drop to LGPLv2+.
24776         * modules/full-write (License): Likewise.
24777         * modules/safe-read (License): Likewise.
24778         * modules/safe-write (License): Likewise.
24779
24780         pthread: mention library for linking
24781         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24782
24783 2010-04-27  Jim Meyering  <meyering@redhat.com>
24784
24785         maint.mk: fix a bug introduced in last change
24786         * top/maint.mk (gl_assured_headers_): Now that all names are on
24787         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24788         is not anchored to end of word, it should be adequate.
24789
24790         maint.mk: avoid side-effect in latest syntax-check
24791         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24792         to run commands via $(shell...), and hence to incur cost only when
24793         the new rule is actually run.
24794
24795         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
24796         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
24797         and use that to create a regexp used to detect all #if HAVE_..._H uses.
24798         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
24799         (gl_assured_headers_, az_, AZ_): Define.
24800         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
24801
24802 2010-04-26  Jim Meyering  <jim@meyering.net>
24803             Bruno Haible  <bruno@clisp.org>
24804
24805         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
24806         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
24807         Prompted by an exchange with Gilles Espinasse.
24808
24809 2010-04-26  Jim Meyering  <meyering@redhat.com>
24810
24811         git-version-gen: aesthetic tweak
24812         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24813         so that the command remains on a single line.
24814
24815 2010-04-26  Eric Blake  <eblake@redhat.com>
24816
24817         git-version-gen: allow use on EBCDIC hosts
24818         * build-aux/git-version-gen (dirty): Use literal rather than tying
24819         ourselves to ascii.
24820         Reported by Steve Goetze.
24821
24822 2010-04-25  Bruno Haible  <bruno@clisp.org>
24823
24824         netdb: Add support for GNULIB_POSIXCHECK.
24825         * lib/netdb.in.h: Include warn-on-use.h.
24826         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24827         functions are used when GNULIB_POSIXCHECK is defined and the
24828         getaddrinfo module is not in use.
24829         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24830         freeaddrinfo, gai_strerror, getnameinfo are declared.
24831         * modules/netdb (Depends-on): Add warn-on-use.
24832         (Makefile.am): Include warn-on-use.h in netdb.h.
24833
24834 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24835
24836         build: avoid "make check" failure without .git/ directory
24837         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24838         there is no .git/ directory.
24839
24840 2010-04-25  Bruno Haible  <bruno@clisp.org>
24841
24842         ptsname: Fix misuse of ttyname_r.
24843         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24844         of errno.
24845
24846 2010-04-25  Bruno Haible  <bruno@clisp.org>
24847
24848         ttyname_r: Make it work on Solaris 10.
24849         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24850         if the system function has the POSIX declaration. Test whether the
24851         function fails if the buffer is less than 128 bytes large.
24852         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24853         system's ttyname_r function. Provide a reasonably large buffer.
24854         * modules/ttyname_r (Depends-on): Add extensions.
24855         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24856
24857 2010-04-25  Bruno Haible  <bruno@clisp.org>
24858
24859         Use the 'extensions' module for some more functions on Solaris.
24860         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24861         module.
24862         * doc/posix-functions/ctime_r.texi: Likewise.
24863         * doc/posix-functions/getgrgid_r.texi: Likewise.
24864         * doc/posix-functions/getgrnam_r.texi: Likewise.
24865         * doc/posix-functions/getpwnam_r.texi: Likewise.
24866         * doc/posix-functions/getpwuid_r.texi: Likewise.
24867         * doc/posix-functions/readdir_r.texi: Likewise.
24868         * doc/posix-functions/sigwait.texi: Likewise.
24869         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24870         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24871
24872 2010-04-25  Bruno Haible  <bruno@clisp.org>
24873
24874         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24875         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24876         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24877         * lib/ttyname_r.c: Include <limits.h>.
24878         (ttyname_r): Define using the system's ttyname_r function, if it exists
24879         and not on Solaris.
24880         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24881         set.
24882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24883         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24884         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24885         Reported by Simon Josefsson.
24886
24887 2010-04-25  Bruno Haible  <bruno@clisp.org>
24888
24889         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24890         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24891         * doc/posix-functions/ctime_r.texi: Likewise.
24892         * doc/posix-functions/getgrgid_r.texi: Likewise.
24893         * doc/posix-functions/getgrnam_r.texi: Likewise.
24894         * doc/posix-functions/getlogin_r.texi: Likewise.
24895         * doc/posix-functions/getpwnam_r.texi: Likewise.
24896         * doc/posix-functions/getpwuid_r.texi: Likewise.
24897         * doc/posix-functions/readdir_r.texi: Likewise.
24898         * doc/posix-functions/sigwait.texi: Likewise.
24899         * doc/posix-functions/ttyname_r.texi: Likewise.
24900         Reported by Simon Josefsson.
24901
24902 2010-04-25  Bruno Haible  <bruno@clisp.org>
24903
24904         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24905         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24906         also to --create-testdir.
24907         (func_acceptable): Don't consider the status of *-tests modules here.
24908         (func_modules_transitive_closure): Consider it here, before including a
24909         test module.
24910         (func_import, func_create_testdir): Set inc_all_direct_tests,
24911         inc_all_indirect_tests.
24912         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24913         --create-testdir and --create-megatestdir.
24914
24915 2010-04-25  Bruno Haible  <bruno@clisp.org>
24916
24917         gnulib-tool: Add --without-*-tests options.
24918         * gnulib-tool (func_usage): Document the --without-*-tests options.
24919         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24920         excl_unportable_tests): New variables.
24921         Fail if they are specified with --import or --update.
24922         (func_acceptable): Respect the excl_*_tests variables.
24923         (func_import): Set the excl_*_tests variables to empty.
24924
24925 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24926             Bruno Haible  <bruno@clisp.org>
24927
24928         Work around a MacOS X 10.4 bug with openpty.
24929         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24930         * tests/test-openpty.c (main): Close the master side explicitly.
24931
24932 2010-04-25  Bruno Haible  <bruno@clisp.org>
24933
24934         strnlen: Fix a C++ test error on MacOS X and Solaris.
24935         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24936         the function is not declared.
24937         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24938         Simon Josefsson.
24939
24940 2010-04-24  Bruno Haible  <bruno@clisp.org>
24941
24942         Avoid a gcc warning.
24943         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24944         of correct type for %08lx directive.
24945         Reported by Eric Blake.
24946
24947 2010-04-24  Bruno Haible  <bruno@clisp.org>
24948
24949         vasnprintf: Correct errno value in case of out-of-memory.
24950         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24951         or sprintf. Use the errno value from SNPRINTF or sprintf.
24952         Reported by Ian Beckwith <ianb@erislabs.net>.
24953
24954 2010-04-24  Bruno Haible  <bruno@clisp.org>
24955
24956         ansi-c++-opt: Find correct compiler when cross-compiling.
24957         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24958         AC_CHECK_PROGS.
24959         Reported by Simon Josefsson.
24960
24961 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24962
24963         vc-list-files: Add support for subversion
24964         * build-aux/vc-list-files: Use "svn list" to generate the list of
24965         files controlled by subversion.
24966
24967 2010-04-23  Jim Meyering  <meyering@redhat.com>
24968
24969         vc-list-files tests: convert to use init.sh
24970         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24971         path_prepend_.
24972         Use Exit, not exit.
24973         Use skip_ rather than open coding it.
24974         Remove trap set-up and compare definitions.
24975         * tests/test-vc-list-files-git.sh: Likewise.
24976         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24977
24978 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24979
24980         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24981         backup files.
24982
24983 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24984
24985         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24986
24987 2010-04-20  Eric Blake  <eblake@redhat.com>
24988
24989         tests: be robust to ignored SIGPIPE
24990         * tests/test-select-in.sh: Consume all output.
24991         * tests/test-lseek.sh: Check correct exit status, while avoiding
24992         EPIPE.
24993
24994 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24995             Bruno Haible  <bruno@clisp.org>
24996
24997         visibility: Don't use -fvisibility if it leads to a warning.
24998         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24999         yes, don't pretend that visibility works if it leads to a warning.
25000         Reported by Mike Gran <spk121@yahoo.com>.
25001
25002 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
25003
25004         * build-aux/bootstrap: Use "git -h" for testing for supported options
25005         instead of "git --help".  The short-form option only shows a summary,
25006         and doesn't layout the full man page.  Grep for the full option name
25007         in the summary, too.
25008
25009 2010-04-19  Bruno Haible  <bruno@clisp.org>
25010
25011         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
25012         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
25013         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
25014         mention of RELOCATABLE_STRIP.
25015         Reported by Sylvain Beucler <beuc@beuc.net>.
25016
25017 2010-04-19  Bruno Haible  <bruno@clisp.org>
25018
25019         * lib/diffseq.h: Fix typo in comment.
25020         Reported by Eric Blake.
25021
25022 2010-04-19  Bruno Haible  <bruno@clisp.org>
25023
25024         ioctl: Move autoconf macro to a .m4 file.
25025         * m4/ioctl.m4: New file, extracted from modules/ioctl.
25026         * modules/ioctl (Files): Add it.
25027         (configure.ac): Simply invoke gl_FUNC_IOCTL.
25028         Reported by Ian Beckwith <ianb@erislabs.net>.
25029
25030 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
25031             Bruno Haible  <bruno@clisp.org>
25032
25033         diffseq: Accommodate use-case with abstract arrays.
25034         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
25035         is not defined.
25036         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
25037         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
25038
25039 2010-04-18  Bruno Haible  <bruno@clisp.org>
25040
25041         * doc/posix-headers/stdbool.texi: More precise wording.
25042
25043 2010-04-17  Jim Meyering  <meyering@redhat.com>
25044
25045         maint.mk: use gnu-style indentation in an embedded perl script
25046         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
25047         Rename variable: s/two/last_two_bytes/
25048
25049 2010-04-16  Eric Blake  <eblake@redhat.com>
25050
25051         test-stdbool: skip test that fails with Solaris CC
25052         * tests/test-stdbool.c (f): Skip test that causes compilation
25053         error under buggy C++ compiler.
25054         * lib/stdbool.in.h: Document the limitation.
25055         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
25056
25057         setenv: allow compilation with C++
25058         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
25059         register keyword.
25060
25061         stdint: allow test to pass with C++
25062         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
25063
25064         getopt: allow compilation with C++
25065         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
25066         struct.
25067         * lib/getopt.c (_getopt_internal_r): Use correct type.
25068         Reported by Dagobert Michelson, via Joel E. Denny.
25069
25070 2010-04-16  Bruno Haible  <bruno@clisp.org>
25071
25072         Override netdb.h always.
25073         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
25074         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
25075         Reported by Ludovic Courtès <ludo@gnu.org>.
25076
25077 2010-04-15  Bruno Haible  <bruno@clisp.org>
25078
25079         openpty: Fix mistake from 2010-03-21.
25080         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
25081         Reported by Simon Josefsson.
25082
25083 2010-04-15  Eric Blake  <eblake@redhat.com>
25084
25085         test-forkpty: fix expected signature
25086         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
25087         Reported by Simon Josefsson.
25088
25089 2010-04-15  Jim Meyering  <meyering@redhat.com>
25090
25091         maint.mk: texinfo_suffix_re_: correct the default regexp
25092         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
25093
25094         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
25095         make it configurable via texinfo_suffix_re_.
25096
25097 2010-04-14  Eric Blake  <eblake@redhat.com>
25098
25099         strtok_r: relax license to LGPLv2+
25100         * modules/strtok_r (License): Relax license.
25101         Reported by Matthias Bolte.
25102
25103 2010-04-14  Simon Josefsson  <simon@josefsson.org>
25104
25105         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
25106         version 1.4.4 by default instead of requiring the libgcrypt
25107         version used during build.  This makes it possible to use the
25108         application with older but still binary compatible libgcrypt
25109         versions.
25110
25111 2010-04-13  Eric Blake  <eblake@redhat.com>
25112
25113         getopt-gnu: match recent glibc fixes and posix ruling
25114         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
25115         '+' handling, when requesting extensions.
25116         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
25117         'W;' handling.
25118         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
25119         * doc/posix-functions/getopt.texi (getopt): Document this.
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: merge bug fixes from glibc
25125         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
25126         diagnostics.  Honor '+:' correctly.  Reject ';'.
25127
25128         getopt-posix: detect MacOS bug
25129         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
25130         optind when missing a required argument.
25131         * doc/posix-functions/getopt.texi (getopt): Document the bug.
25132         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25133         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25134         Likewise.
25135
25136         getopt-posix: avoid spurious failure on Solaris
25137         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
25138         an indicator that setting optind=1 is sufficient for reset.
25139
25140         getopt-posix: avoid spurious failure on FreeBSD
25141         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
25142         in POSIX mode, since the m4 test uses it.
25143
25144         gnulib-tool: silence warning on BSD sh
25145         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
25146
25147 2010-04-13  Jim Meyering  <meyering@redhat.com>
25148
25149         doc: users.txt: GNU patch now uses gnulib
25150         * users.txt: Add patch.
25151
25152 2010-04-12  Jim Meyering  <meyering@redhat.com>
25153
25154         maint.mk: generate more concise timing data for syntax-check rules
25155         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
25156         " done" from each line that reports a syntax-check test duration.
25157
25158 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25159
25160         git-version-gen: use "git update-index..." rather than "git status"
25161         * build-aux/git-version-gen: Use git update-index --refresh, not
25162         "git status".  With some versions of git, "git status" would fail
25163         to update the index and result in an unwarranted "-dirty" suffix.
25164
25165 2010-04-11  Jim Meyering  <meyering@redhat.com>
25166
25167         openat: correct formatting (no semantic change)
25168         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
25169         Suggested by Bruno Haible.
25170
25171 2010-04-11  Bruno Haible  <bruno@clisp.org>
25172
25173         Stricter declaration checking in testdirs.
25174         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25175         If for_tests is true, augment AM_CPPFLAGS to define
25176         GNULIB_STRICT_CHECKING.
25177         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
25178         GNULIB_STRICT_CHECKING is defined, verify that the function is
25179         declared.
25180
25181 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
25182             Bruno Haible  <bruno@clisp.org>
25183
25184         libunistring: Improve configure output.
25185         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
25186         Don't say "consider installing GNU libunistring" when checking again
25187         with libiconv.
25188
25189 2010-04-11  Bruno Haible  <bruno@clisp.org>
25190
25191         libunistring: Correct value of $LTLIBUNISTRING.
25192         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
25193         correct the value of $LTLIBUNISTRING.
25194
25195 2010-04-11  Bruno Haible  <bruno@clisp.org>
25196
25197         havelib: Add static libraries to LIBS in the right order.
25198         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
25199         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
25200
25201 2010-04-11  Bruno Haible  <bruno@clisp.org>
25202
25203         libunistring: Detect libunistring also when it depends on libiconv.
25204         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
25205         the second AC_LIB_HAVE_LINKFLAGS invocation.
25206
25207 2010-04-11  James Youngman  <jay@gnu.org>
25208
25209         close-stream: declare local scalars to be "const"
25210         * lib/close-stream.c (close_stream): Make boolean variables const
25211         to document the fact that we set but do not change them.
25212
25213 2010-04-11  Bruno Haible  <bruno@clisp.org>
25214
25215         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
25216
25217 2010-04-11  Jim Meyering  <meyering@redhat.com>
25218
25219         maint.mk: don't include dist-check.mk
25220         * top/maint.mk: Remove bogus include directive.
25221
25222         maint.mk: improve empty-line-at-EOF check
25223         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
25224         solution, rather than tail+Perl-based one.  The latter would read
25225         a few kilobytes from the end of each file, and did not handle empty
25226         files properly.
25227
25228         maint.mk: print the elapsed time for each syntax-check rule
25229         * top/maint.mk (sc_m_rules_): Save start time in a file.
25230         (sc_z_rules_): New rules: remove temp file and print elapsed time.
25231         (local-check): Interpose the .z rules
25232
25233 2010-04-11  Jim Meyering  <meyering@redhat.com>
25234
25235         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
25236         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
25237         empty file with one that ends in an empty line.
25238
25239 2010-04-10  Bruno Haible  <bruno@clisp.org>
25240
25241         mkdir: Make it work on mingw64.
25242         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
25243         * lib/mkdir.c: Update comment.
25244         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
25245
25246 2010-04-10  Bruno Haible  <bruno@clisp.org>
25247
25248         Don't override improved macro from newer autoconf.
25249         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
25250         autoconf >= 2.62.
25251         Reported by Joel E. Denny <jdenny@clemson.edu>.
25252
25253 2010-04-10  Jim Meyering  <meyering@redhat.com>
25254
25255         maint.mk: new syntax-check rule: prohibit empty lines at end of file
25256         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
25257
25258         maint.mk: correct a diagnostic
25259         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
25260         in diagnostic; now use $prohibit.
25261
25262 2010-04-10  Bruno Haible  <address@hidden>
25263
25264         fchownat: Fix a C++ test error on Solaris 8.
25265         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
25266         the function does not exist.
25267
25268 2010-04-10  Bruno Haible  <bruno@clisp.org>
25269
25270         vasnprintf: Add more tests.
25271         * tests/test-vasnprintf-posix.c: Include <errno.h>.
25272         (test_function): Test converting an invalid wide string.
25273
25274         vasnprintf: Correct handling of unconvertible wide string arguments.
25275         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
25276         VASNPRINTF.
25277         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
25278         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
25279         smaller than the expected maximum need for the directive. Set errno to
25280         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
25281         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
25282         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
25283         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
25284         * modules/vasnprintf (Files): Add m4/printf.m4.
25285         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25286
25287 2010-04-10  Bruno Haible  <bruno@clisp.org>
25288
25289         vasnprintf: Fix crash in %ls directive.
25290         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
25291         string is passed as argument to %ls, with no precision and no width.
25292         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25293
25294 2010-04-10  Bruno Haible  <bruno@clisp.org>
25295
25296         vasnprintf: Fix multiple test failures on mingw.
25297         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
25298         _snprintf, or snwprintf, not _snwprintf.
25299
25300 2010-04-10  Bruno Haible  <bruno@clisp.org>
25301
25302         write: Fix a C++ test error on mingw.
25303         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
25304
25305 2010-04-10  Bruno Haible  <bruno@clisp.org>
25306
25307         vasnprintf test: Reduce code duplication.
25308         * tests/test-vasnprintf.c (test_function): New function, extracted from
25309         test_vasnprintf.
25310         (test_vasnprintf, test_asnprintf): Invoke it.
25311
25312 2010-04-10  Bruno Haible  <bruno@clisp.org>
25313
25314         strnlen: Fix warning in C++ mode on MacOS X.
25315         * lib/string.in.h (strnlen): Use the modern idiom.
25316         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
25317         defining strnlen as a macro already in <config.h>.
25318         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25319         REPLACE_STRNLEN.
25320         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
25321         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25322
25323 2010-04-08  James Youngman  <jay@gnu.org>
25324
25325         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
25326         the example.
25327
25328 2010-04-09  Jim Meyering  <meyering@redhat.com>
25329
25330         maint.mk: print better diagnostic when there is no $(_hv_file)
25331         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
25332         announce that when $(_hv_file) (aka help-version) does not exist.
25333
25334         init.sh: run tr in the "C" locale to avoid multibyte interpretation
25335         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
25336         not try to interpret its random input bytes.  Jarno Rajahalme reported
25337         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
25338         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
25339         (mktempd_): Likewise, just in case.
25340
25341         ftruncate: add two years to projected module removal date: 2012
25342         * m4/ftruncate.m4: Adjust comments.
25343
25344         ftruncate: mark module as obsolete; even MinGW provides it, now
25345         * modules/ftruncate (Status): Obsolete.
25346         (Notice): Say that.
25347         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
25348         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
25349
25350 2010-04-08  Bruno Haible  <bruno@clisp.org>
25351
25352         Fix side effects from tests-related modules.
25353         * modules/dprintf-posix (Comment): New section.
25354         * modules/fprintf-posix (Comment): Likewise.
25355         * modules/obstack-printf-posix (Comment): Likewise.
25356         * modules/printf-posix (Comment): Likewise.
25357         * modules/snprintf-posix (Comment): Likewise.
25358         * modules/sprintf-posix (Comment): Likewise.
25359         * modules/vasnprintf-posix (Comment): Likewise.
25360         * modules/vasprintf-posix (Comment): Likewise.
25361         * modules/vdprintf-posix (Comment): Likewise.
25362         * modules/vfprintf-posix (Comment): Likewise.
25363         * modules/vprintf-posix (Comment): Likewise.
25364         * modules/vsnprintf-posix (Comment): Likewise.
25365         * modules/vsprintf-posix (Comment): Likewise.
25366         * modules/xprintf-posix (Comment): Likewise.
25367         * modules/xvasprintf-posix (Comment): Likewise.
25368         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
25369         * modules/floorf-tests (Depends-on): Likewise.
25370         * modules/round-tests (Depends-on): Likewise.
25371         * modules/roundf-tests (Depends-on): Likewise.
25372         * modules/trunc-tests (Depends-on): Likewise.
25373         * modules/truncf-tests (Depends-on): Likewise.
25374         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
25375         'fprintf-posix' module is not present.
25376         * tests/test-floorf2.c (check): Likewise.
25377         * tests/test-trunc2.c (check): Likewise.
25378         * tests/test-truncf2.c (check): Likewise.
25379         * tests/test-round2.c (equal): Likewise.
25380         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25381
25382 2010-04-07  Karl Berry  <karl@gnu.org>
25383
25384         * config/srclist.txt,
25385         * config/srclistvars.sh,
25386         * config/srclist-update: doc fixes.
25387
25388 2010-04-07  Jim Meyering  <meyering@redhat.com>
25389
25390         maint.mk: add a PATH crosschecking syntax-check rule
25391         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
25392         Useful if you use a test like the one in help-version (coreutils,
25393         diffutils, grep, gzip) that ensures $(VERSION) matches what is
25394         printed by prog --version.
25395
25396 2010-04-06  Bruno Haible  <bruno@clisp.org>
25397
25398         Fix link error on mingw.
25399         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
25400         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
25401
25402 2010-04-06  Bruno Haible  <bruno@clisp.org>
25403
25404         Assume rmdir exists.
25405         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
25406
25407 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
25408
25409         doc: update users.txt
25410         * users.txt: Add gcal.
25411
25412 2010-04-06  Jim Meyering  <meyering@redhat.com>
25413
25414         init.sh: simply unset TMPDIR rather than risking env -i
25415         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
25416         although it probably works fine on all Unix-based systems, some
25417         systems (Cygwin?) cannot tolerate a totally cleared environment.
25418         Suggestion from Eric Blake.
25419
25420 2010-04-06  Jim Meyering  <meyering@redhat.com>
25421
25422         init.sh: portability fix: use env's POSIX-specified -i option not -u
25423         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
25424         than unportable env -u.  Solaris 5.11's env lacks support for -u.
25425
25426 2010-04-05  Bruno Haible  <bruno@clisp.org>
25427
25428         btowc: Work around Cygwin 1.7.2 bug.
25429         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
25430         does not map NUL to 0.
25431         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
25432
25433 2010-04-05  Bruno Haible  <bruno@clisp.org>
25434
25435         Make the multithread modules work on Cygwin 1.7.2.
25436         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
25437         imported symbols can be declared weak, so that it returns "no" on
25438         Cygwin 1.7.2.
25439
25440 2010-04-05  Bruno Haible  <bruno@clisp.org>
25441
25442         Use the module 'strncat'.
25443         * modules/unistr/u8-strncat (Depends-on): Add strncat.
25444
25445         Tests for module 'strncat'.
25446         * modules/strncat-tests: New file.
25447         * tests/test-strncat.c: New file.
25448
25449         New module 'strncat'.
25450         * lib/string.in.h (strncat): New declaration.
25451         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
25452         * m4/strncat.m4: New file, based on m4/memchr.m4.
25453         * modules/strncat: New file.
25454         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
25455         is declared.
25456         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
25457         REPLACE_STRNCAT.
25458         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
25459         REPLACE_STRNCAT.
25460         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
25461         module.
25462         * tests/test-string-c++.cc: Check signature of strncat.
25463
25464 2010-04-05  Jim Meyering  <meyering@redhat.com>
25465
25466         xstrtoumax-tests: convert to use init.sh
25467         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
25468         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25469         Use Exit, not exit.
25470         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25471
25472         xstrtoimax-tests: convert to use init.sh
25473         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
25474         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25475         Use Exit, not exit.
25476         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25477
25478 2010-04-05  Bruno Haible  <bruno@clisp.org>
25479
25480         sys_socket: Avoid #define replacements in C++ mode.
25481         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
25482         warning to the function if possible, rather than #defining the symbol
25483         to a dysfunctional alias.
25484
25485 2010-04-05  Bruno Haible  <bruno@clisp.org>
25486
25487         fseeko: Fix C++ test error on mingw.
25488         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
25489         gl_FUNC_FSEEKO.
25490         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
25491         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
25492         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
25493         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
25494
25495 2010-04-05  Bruno Haible  <bruno@clisp.org>
25496
25497         duplocale: Improve test output.
25498         * tests/test-duplocale.c (main): Print reason for skipped test.
25499
25500 2010-04-05  Bruno Haible  <bruno@clisp.org>
25501
25502         Assume rmdir exists.
25503         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
25504         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
25505
25506 2010-04-05  Bruno Haible  <bruno@clisp.org>
25507
25508         Fix link error on Solaris 8 with cc.
25509         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
25510
25511 2010-04-05  Bruno Haible  <bruno@clisp.org>
25512
25513         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25514         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
25515
25516 2010-04-05  Bruno Haible  <bruno@clisp.org>
25517
25518         vasprintf: Update documentation.
25519         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
25520
25521 2010-04-05  Bruno Haible  <bruno@clisp.org>
25522
25523         ptsname: Improve test.
25524         * tests/test-ptsname.c (main): Also try the various master names of BSD
25525         systems.
25526
25527 2010-04-05  Bruno Haible  <bruno@clisp.org>
25528
25529         memchr: Avoid a possible C++ test error.
25530         * lib/string.in.h (memchr): Provide declaration if function is missing.
25531         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
25532         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
25533         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
25534         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
25535
25536 2010-04-05  Bruno Haible  <bruno@clisp.org>
25537
25538         strtok_r: Improve idiom.
25539         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
25540         AC_LIBOBJ is used.
25541
25542 2010-04-05  Bruno Haible  <bruno@clisp.org>
25543
25544         strdup: Improve idiom.
25545         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
25546         AC_LIBOBJ is used.
25547         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
25548         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
25549         when AC_LIBOBJ is used.
25550
25551 2010-04-05  Bruno Haible  <bruno@clisp.org>
25552
25553         mbsinit, mbrtowc, wcrtomb: Improve idioms.
25554         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
25555         don't set REPLACE_MBSINIT to 1.
25556         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
25557         don't set REPLACE_MBRTOWC to 1.
25558         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
25559         exist, don't set REPLACE_MBSRTOWCS to 1.
25560         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
25561         exist, don't set REPLACE_MBSNRTOWCS to 1.
25562         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
25563         don't set REPLACE_WCRTOMB to 1.
25564         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
25565         exist, don't set REPLACE_WCSRTOMBS to 1.
25566         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
25567         exist, don't set REPLACE_WCSNRTOMBS to 1.
25568
25569 2010-04-05  Bruno Haible  <bruno@clisp.org>
25570
25571         ldexpl: Improve idiom.
25572         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
25573         make sure to set HAVE_DECL_LDEXPL to 0.
25574
25575 2010-04-05  Jim Meyering  <meyering@redhat.com>
25576
25577         xstrtol-tests: convert to use init.sh
25578         * modules/xstrtol-tests (Files): Add tests/init.sh.
25579         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25580         Use Exit, not exit.
25581         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25582
25583         atexit-tests: convert to use init.sh
25584         * modules/atexit-tests (Files): Add tests/init.sh.
25585         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25586         Use Exit, not exit.
25587         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25588
25589         init.sh: fix typo
25590         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
25591
25592         init.sh: make it easier for a test script to write to the tty, ...
25593         when using automake's parallel-tests mode.
25594         * tests/init.sh (stderr_fileno_): Define overridable variable.
25595         (warn_): New function, to use it.
25596         (fail_, skip_, framework_failure_): Use warn_.
25597
25598 2010-04-04  Bruno Haible  <bruno@clisp.org>
25599
25600         btowc: Avoid warning.
25601         * lib/btowc.c: Include <stdlib.h>.
25602         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
25603
25604 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25605             Bruno Haible  <bruno@clisp.org>
25606
25607         wchar: Port to NetBSD 1.5.
25608         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
25609         * lib/wctype.in.h (WEOF): Likewise.
25610
25611 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25612             Bruno Haible  <bruno@clisp.org>
25613
25614         Port extended stdio to NetBSD 1.5.
25615         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
25616         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
25617         older.
25618
25619 2010-04-04  Bruno Haible  <bruno@clisp.org>
25620
25621         string: Remove unused substitution.
25622         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25623         HAVE_DECL_STRERROR.
25624         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
25625
25626 2010-04-04  Bruno Haible  <bruno@clisp.org>
25627
25628         strtod: Avoid a possible C++ test error.
25629         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
25630         set REPLACE_STRTOD.
25631
25632 2010-04-04  Bruno Haible  <bruno@clisp.org>
25633
25634         strerror: Update documentation.
25635         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25636
25637 2010-04-04  Bruno Haible  <bruno@clisp.org>
25638
25639         stdio: Fix some C++ test errors on Solaris 8 with GCC.
25640         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
25641         _GL_CXXALIAS_SYS_CAST.
25642
25643 2010-04-04  Bruno Haible  <bruno@clisp.org>
25644
25645         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25646         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25647         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25648         REPLACE_FREXPL to 1.
25649         * doc/posix-functions/frexpl.texi: Update documentation.
25650
25651 2010-04-04  Bruno Haible  <bruno@clisp.org>
25652
25653         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25654         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25655
25656 2010-04-04  Bruno Haible  <bruno@clisp.org>
25657
25658         Implement nanosleep for native Windows.
25659         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25660
25661 2010-04-04  Bruno Haible  <bruno@clisp.org>
25662
25663         math: Fix some C++ test errors on Solaris 8.
25664         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25665
25666 2010-04-04  Bruno Haible  <bruno@clisp.org>
25667
25668         math: Fix some C++ test errors on Cygwin.
25669         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25670         truncl): Provide declaration if the system does not have it.
25671         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25672         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25673         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25674         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25675         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25676         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25677         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25678         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25679         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25680         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25681         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25682         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25683         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25684         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25685         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25686         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25687         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25688         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25689         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25690         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
25691         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25692         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25693
25694 2010-04-04  Bruno Haible  <bruno@clisp.org>
25695
25696         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
25697         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25698         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25699         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25700         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25701         * m4/isinf.m4 (gl_ISINF): Likewise.
25702         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25703
25704 2010-04-04  Bruno Haible  <bruno@clisp.org>
25705
25706         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25707         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25708
25709 2010-04-04  Bruno Haible  <bruno@clisp.org>
25710
25711         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25712         * modules/tmpfile (configure.ac): Update.
25713
25714         tmpfile: Fix C++ test error on mingw.
25715         * lib/stdio.in.h (tmpfile): New declaration.
25716         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25717         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25718         * modules/tmpfile (Depends-on): Add stdio.
25719         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25720         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25721         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25722         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25723         REPLACE_TMPFILE.
25724         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25725
25726 2010-04-04  Bruno Haible  <bruno@clisp.org>
25727
25728         ioctl: Fix C++ test error on mingw.
25729         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25730         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25731         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25732
25733 2010-04-03  Bruno Haible  <bruno@clisp.org>
25734
25735         wcwidth: Fix C++ test error on mingw.
25736         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
25737         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
25738         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
25739
25740 2010-04-03  Bruno Haible  <bruno@clisp.org>
25741
25742         nanosleep: Fix C++ test error on mingw.
25743         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
25744         * lib/time.in.h (nanosleep): Use modern idiom.
25745         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
25746         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
25747         REPLACE_NANOSLEEP to 1.
25748         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
25749         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
25750
25751 2010-04-03  Bruno Haible  <bruno@clisp.org>
25752
25753         strptime: Fix C++ test error on mingw.
25754         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
25755         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
25756         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
25757         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25758         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25759         not REPLACE_STRPTIME.
25760         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25761         REPLACE_STRPTIME.
25762
25763 2010-04-03  Bruno Haible  <bruno@clisp.org>
25764
25765         timegm: Fix C++ test error on mingw.
25766         * lib/time.in.h (timegm): Use modern idiom.
25767         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25768         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25769         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25770         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25771
25772 2010-04-03  Bruno Haible  <bruno@clisp.org>
25773
25774         timegm: Assume declaration if function exists.
25775         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25776         if it exists. Don't clobber ac_cv_func_timegm.
25777
25778 2010-04-03  Bruno Haible  <bruno@clisp.org>
25779
25780         time_r: Fix C++ test error on mingw.
25781         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25782         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25783         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25784         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25785         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25786
25787 2010-04-03  Bruno Haible  <bruno@clisp.org>
25788
25789         time_r: Minor updates.
25790         * modules/time_r (Description): Mention the provided functions.
25791         * lib/time_r.c: Don't include <string.h>.
25792         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25793         * doc/posix-functions/localtime_r.texi: Likewise.
25794
25795 2010-04-03  Bruno Haible  <bruno@clisp.org>
25796
25797         time: Fix regression introduced on 2010-03-08.
25798         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
25799         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
25800
25801 2010-04-03  Jim Meyering  <meyering@redhat.com>
25802
25803         maint.mk: don't silently disable project-specific syntax-check rules
25804         * top/maint.mk (_prohibit_regexp): Define, to help people realize
25805         that they need to convert their project-specific syntax-check rules
25806         to use the new _sc_search_regexp.
25807
25808 2010-04-03  Bruno Haible  <bruno@clisp.org>
25809
25810         fchdir: Fix regression introduced on 2010-03-08.
25811         * lib/unistd.in.h (fchdir): Fix declaration.
25812         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25814         REPLACE_FCHDIR.
25815         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25816         REPLACE_FCHDIR.
25817
25818 2010-04-03  Bruno Haible  <bruno@clisp.org>
25819
25820         getpagesize: Fix C++ test error on mingw.
25821         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25822         system does not declare the function.
25823         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25824         declared.
25825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25826         HAVE_DECL_GETPAGESIZE.
25827         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25828
25829 2010-04-03  Bruno Haible  <bruno@clisp.org>
25830
25831         stdio: Make C++ tests work on mingw.
25832         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25833         does not declare the function.
25834
25835 2010-04-03  Bruno Haible  <bruno@clisp.org>
25836
25837         ftello: Fix C++ test error on mingw.
25838         * lib/stdio.in.h (ftello): Use modern idiom.
25839         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25840         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25841         is missing and that it needs to be replaced.
25842         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25843         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25844         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25845
25846 2010-04-03  Bruno Haible  <bruno@clisp.org>
25847
25848         fseeko: Fix C++ test error on mingw.
25849         * lib/stdio.in.h (fseeko): Use modern idiom.
25850         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25851         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25852         is missing and that it needs to be replaced.
25853         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25855         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25856
25857 2010-04-03  Bruno Haible  <bruno@clisp.org>
25858
25859         mkstemp: Fix C++ test error on mingw.
25860         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25861         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25862         function is missing and that it needs to be replaced.
25863         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25864         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25865
25866 2010-04-03  Bruno Haible  <bruno@clisp.org>
25867
25868         stpncpy: Fix C++ test error on mingw.
25869         * lib/string.in.h (stpncpy): Use modern idiom.
25870         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25871         function is missing and that it needs to be replaced.
25872         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25873         REPLACE_STPNCPY.
25874         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25875
25876 2010-04-03  Bruno Haible  <bruno@clisp.org>
25877
25878         sys_stat: Fix C++ test error on mingw.
25879         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25880         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25881
25882 2010-04-03  Bruno Haible  <bruno@clisp.org>
25883
25884         pty: Update doc.
25885         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25886
25887 2010-04-03  Bruno Haible  <bruno@clisp.org>
25888
25889         unistd: Fix C++ test error on mingw.
25890         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25891
25892 2010-04-03  Bruno Haible  <bruno@clisp.org>
25893
25894         Update doc regarding mingw.
25895         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25896         * doc/glibc-functions/login_tty.texi: Likewise.
25897         * doc/glibc-functions/forkpty.texi: Likewise.
25898
25899 2010-04-03  Bruno Haible  <bruno@clisp.org>
25900
25901         stdlib: Avoid compilation failure of c-strtold on mingw.
25902         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25903
25904 2010-04-03  Bruno Haible  <bruno@clisp.org>
25905
25906         locale: Make C++ tests work on Cygwin and mingw.
25907         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25908         cannot provide the function.
25909         Reported by Simon Josefsson.
25910
25911 2010-04-03  Bruno Haible  <bruno@clisp.org>
25912
25913         localename: Port to MacOS X 10.6.
25914         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25915         memory layout of the locales in MacOS X 10.6 as well.
25916         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25917
25918 2010-04-02  Bruno Haible  <bruno@clisp.org>
25919
25920         gnulib-tool: Ensure that long-running tests are executed last.
25921         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25922         running tests after the one for the other tests.
25923
25924 2010-04-02  Bruno Haible  <bruno@clisp.org>
25925
25926         gnulib-tool: Ensure the tests in the main directory are executed first.
25927         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25928         start with the current directory.
25929
25930 2010-04-02  Bruno Haible  <bruno@clisp.org>
25931
25932         Tests for module 'havelib', moved here from GNU gettext.
25933         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25934         modifications.
25935         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25936         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25937         with modifications.
25938         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25939         modifications.
25940         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25941         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25942         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25943         with modifications.
25944         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25945         with modifications.
25946         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25947         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25948         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25949         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25950         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25951         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25952         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25953         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25954         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25955         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25956         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25957         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25958         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25959         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25960         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25961         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25962         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25963         with modifications.
25964         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25965         with modifications.
25966         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25967         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25968         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25969         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25970         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25971         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25972         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25973         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25974         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25975         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25976         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25977         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25978         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25979         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25980         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25981         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25982         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25983         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25984         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25985         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25986         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25987         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25988         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25989         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25990         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25991         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25992         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25993         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25994         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25995         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25996         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25997         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25998         * tests/havelib/rpathx/rpathx.c: New file, from
25999         gettext/autoconf-lib-link.
26000         * tests/havelib/rpathx/Makefile.am: New file, from
26001         gettext/autoconf-lib-link.
26002         * tests/havelib/rpathx/configure.ac: New file, from
26003         gettext/autoconf-lib-link with modifications.
26004         * tests/havelib/rpathy/rpathy.c: New file, from
26005         gettext/autoconf-lib-link.
26006         * tests/havelib/rpathy/Makefile.am: New file, from
26007         gettext/autoconf-lib-link.
26008         * tests/havelib/rpathy/configure.ac: New file, from
26009         gettext/autoconf-lib-link with modifications.
26010         * tests/havelib/rpathz/rpathz.c: New file, from
26011         gettext/autoconf-lib-link.
26012         * tests/havelib/rpathz/Makefile.am: New file, from
26013         gettext/autoconf-lib-link.
26014         * tests/havelib/rpathz/configure.ac: New file, from
26015         gettext/autoconf-lib-link with modifications.
26016         * tests/havelib/rpathlx/usex.c: New file, from
26017         gettext/autoconf-lib-link.
26018         * tests/havelib/rpathlx/Makefile.am: New file, from
26019         gettext/autoconf-lib-link.
26020         * tests/havelib/rpathlx/configure.ac: New file, from
26021         gettext/autoconf-lib-link with modifications.
26022         * tests/havelib/rpathly/usey.c: New file, from
26023         gettext/autoconf-lib-link.
26024         * tests/havelib/rpathly/Makefile.am: New file, from
26025         gettext/autoconf-lib-link.
26026         * tests/havelib/rpathly/configure.ac: New file, from
26027         gettext/autoconf-lib-link with modifications.
26028         * tests/havelib/rpathlz/usez.c: New file, from
26029         gettext/autoconf-lib-link.
26030         * tests/havelib/rpathlz/Makefile.am: New file, from
26031         gettext/autoconf-lib-link.
26032         * tests/havelib/rpathlz/configure.ac: New file, from
26033         gettext/autoconf-lib-link with modifications.
26034         * tests/havelib/rpathlyx/usey.c: New file, from
26035         gettext/autoconf-lib-link.
26036         * tests/havelib/rpathlyx/Makefile.am: New file, from
26037         gettext/autoconf-lib-link.
26038         * tests/havelib/rpathlyx/configure.ac: New file, from
26039         gettext/autoconf-lib-link with modifications.
26040         * tests/havelib/rpathlzyx/usez.c: New file, from
26041         gettext/autoconf-lib-link.
26042         * tests/havelib/rpathlzyx/Makefile.am: New file, from
26043         gettext/autoconf-lib-link.
26044         * tests/havelib/rpathlzyx/configure.ac: New file, from
26045         gettext/autoconf-lib-link with modifications.
26046         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
26047         with modifications.
26048
26049 2010-04-02  Bruno Haible  <bruno@clisp.org>
26050
26051         gnulib-tool: Create distributed built sources also for the tests.
26052         * gnulib-tool (func_create_testdir): Also generate distributed built
26053         sources in the tests directory.
26054
26055 2010-04-02  Bruno Haible  <bruno@clisp.org>
26056
26057         gnulib-tool: Obey user's environment variables.
26058         * gnulib-tool (func_create_testdir): When creating built sources,
26059         respect the environment variables for autoconf, automake, etc. given by
26060         the user.
26061
26062 2010-04-02  Bruno Haible  <bruno@clisp.org>
26063
26064         gnulib-tool: Provide the value of --m4-base to modules.
26065         * gnulib-tool (func_import, func_create_testdir): Emit a definition
26066         of gl_m4_base.
26067
26068 2010-04-02  Eric Blake  <eblake@redhat.com>
26069
26070         maint.mk: fix some fallout
26071         * NEWS: Document the incompatible change, and its effect on cfg.mk.
26072         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
26073
26074 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26075
26076         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
26077         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
26078         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
26079         (sc_cast_of_x_alloc_return_value): Likewise.
26080         (sc_cast_of_alloca_return_value): Likewise.
26081         (sc_space_tab): Likewise.
26082         (sc_prohibit_atoi_atof): Likewise.
26083         (sc_prohibit_magic_number_exit): Likewise.
26084         (sc_error_exit_success): Likewise.
26085         (sc_file_system): Likewise.
26086         (sc_prohibit_have_config_h): Likewise.
26087         (sc_require_config_h): Likewise.
26088         (sc_prohibit_HAVE_MBRTOWC): Likewise.
26089         (sc_obsolete_symbols): Likewise.
26090         (sc_changelog): Likewise.
26091         (sc_program_name): Likewise.
26092         (sc_the_the): Likewise.
26093         (sc_trailing_blank): Likewise.
26094         (sc_two_space_separator_in_usage): Likewise.
26095         (sc_useless_cpp_parens): Likewise.
26096         (sc_GPL_version): Likewise.
26097         (sc_GFDL_version): Likewise.
26098         (sc_texinfo_acronym): Likewise.
26099         (sc_prohibit_cvs_keyword): Likewise.
26100         (sc_prohibit_stat_st_blocks): Likewise.
26101         (sc_prohibit_S_IS_definition): Likewise.
26102         (sc_redundant_const): Likewise.
26103         (sc_makefile_TAB_only_indentation): Likewise.
26104         (sc_m4_quote_check): Likewise.
26105         (sc_makefile_path_separator_check): Likewise.
26106         (sc_copyright_check): Likewise.
26107         (sc_Wundef_boolean): Likewise.
26108         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26109
26110         maint.mk: match 0 or more whitespace-before-function-call '('
26111         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
26112         that have zero or two-and-more spaces between the function name
26113         and the open parenthesis.
26114         (sc_error_message_warn_fatal): Likewise.
26115         (sc_error_message_uppercase): Likewise.
26116         (sc_error_message_period): Likewise.
26117
26118 2010-03-31  Eric Blake  <eblake@redhat.com>
26119
26120         maint.mk: check for [ as well as test
26121         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
26122         Based on a libvirt report by Matthias Bolte.
26123
26124         gnumakefile: don't squelch _version output
26125         * top/GNUmakefile (_version): Create one-shot dependency rather
26126         than using $(shell) when version must be regenerated.
26127         (_autoreconf): Run verbosely, by default.
26128
26129         sys_time: avoid compiler warnings
26130         * lib/sys_time.in.h (includes): Ensure gcc pragma is
26131         unconditional, fixing regression from 2010-03-29.
26132         Reported by Simon Josefsson.
26133
26134 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26135
26136         maint.mk: s/_header_without_use/_sc_header_without_use/
26137         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
26138         (sc_prohibit_assert_without_use): Use the new name.
26139         (sc_prohibit_close_stream_without_use): Likewise.
26140         (sc_prohibit_getopt_without_use): Likewise.
26141         (sc_prohibit_quotearg_without_use): Likewise.
26142         (sc_prohibit_quote_without_use): Likewise.
26143         (sc_prohibit_long_options_without_use): Likewise.
26144         (sc_prohibit_inttostr_without_use): Likewise.
26145         (sc_prohibit_ignore_value_without_use): Likewise.
26146         (sc_prohibit_error_without_use): Likewise.
26147         (sc_prohibit_xalloc_without_use): Likewise.
26148         (sc_prohibit_hash_without_use): Likewise.
26149         (sc_prohibit_hash_pjw_without_use): Likewise.
26150         (sc_prohibit_safe_read_without_use): Likewise.
26151         (sc_prohibit_argmatch_without_use): Likewise.
26152         (sc_prohibit_canonicalize_without_use): Likewise.
26153         (sc_prohibit_root_dev_ino_without_use): Likewise.
26154         (sc_prohibit_openat_without_use): Likewise.
26155         (sc_prohibit_c_ctype_without_use): Likewise.
26156         (sc_prohibit_signal_without_use): Likewise.
26157         (sc_prohibit_intprops_without_use): Likewise.
26158
26159 2010-03-30  Eric Blake  <eblake@redhat.com>
26160
26161         maint: improve module indicators
26162         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
26163         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
26164         columns, and avoid extra macro expansion.
26165
26166         fdopendir: work around FreeBSD bug
26167         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26168         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
26169         * modules/dirent (Makefile.am): Substitute it.
26170         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
26171         declaration.
26172         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
26173         fix.
26174         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26175
26176 2010-03-29  Bruno Haible  <bruno@clisp.org>
26177
26178         Emit #pragma system_header after the inclusion guard, not before.
26179         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
26180         guard that spans the entire file, not before. This enables an
26181         optimization in GCC's preprocessor.
26182         * lib/ctype.in.h: Likewise.
26183         * lib/dirent.in.h: Likewise.
26184         * lib/errno.in.h: Likewise.
26185         * lib/float.in.h: Likewise.
26186         * lib/getopt.in.h: Likewise.
26187         * lib/iconv.in.h: Likewise.
26188         * lib/langinfo.in.h: Likewise.
26189         * lib/locale.in.h: Likewise.
26190         * lib/math.in.h: Likewise.
26191         * lib/netdb.in.h: Likewise.
26192         * lib/netinet_in.in.h: Likewise.
26193         * lib/pty.in.h: Likewise.
26194         * lib/sched.in.h: Likewise.
26195         * lib/se-selinux.in.h: Likewise.
26196         * lib/search.in.h: Likewise.
26197         * lib/spawn.in.h: Likewise.
26198         * lib/stdarg.in.h: Likewise.
26199         * lib/stdint.in.h: Likewise.
26200         * lib/string.in.h: Likewise.
26201         * lib/strings.in.h: Likewise.
26202         * lib/sys_file.in.h: Likewise.
26203         * lib/sys_ioctl.in.h: Likewise.
26204         * lib/sys_time.in.h: Likewise.
26205         * lib/sys_times.in.h: Likewise.
26206         * lib/sys_utsname.in.h: Likewise.
26207         * lib/sys_wait.in.h: Likewise.
26208         * lib/sysexits.in.h: Likewise.
26209         * lib/wctype.in.h: Likewise.
26210
26211 2010-03-28  James Youngman  <jay@gnu.org>
26212
26213         save-cwd: don't leak a file descriptor when the caller execs.
26214         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
26215         saved file descriptor.
26216         * modules/save-cwd (Depends-on): Depend on cloexec.
26217
26218 2010-03-29  Bruno Haible  <bruno@clisp.org>
26219
26220         Remove vestiges of fts-lgpl module.
26221         * lib/fts_.h: Assume GNULIB_FTS is 1.
26222         * lib/fts.c: Likewise.
26223         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26224
26225 2010-03-28  Bruno Haible  <bruno@clisp.org>
26226
26227         Fix definition of tests witness macro.
26228         * gnulib-tool (func_import): Fix definition of witness macro.
26229
26230 2010-03-28  Bruno Haible  <bruno@clisp.org>
26231
26232         Fix ioctl's protoype on glibc systems.
26233         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
26234         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
26235         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
26236         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
26237         signature. If not, arrange to replace the ioctl function.
26238         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26239         REPLACE_IOCTL.
26240         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
26241         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
26242         Reported by Ludovic Courtès <ludo@gnu.org>.
26243
26244 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
26245
26246         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
26247         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
26248         made it so grep -r --include=GLOB* ... did not work.
26249
26250 2010-03-26  Jim Meyering  <meyering@redhat.com>
26251             Eric Blake  <eblake@redhat.com>
26252
26253         maint.mk: prohibit use of test's -o and -a operators
26254         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
26255
26256 2010-03-28  Bruno Haible  <bruno@clisp.org>
26257
26258         Remove unused GNULIB_XYZ macro definitions.
26259         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
26260         invocation.
26261
26262 2010-03-28  Bruno Haible  <bruno@clisp.org>
26263
26264         Mark privileged tests modules.
26265         * modules/idpriv-drop-tests (Status): New section.
26266         * modules/idpriv-droptemp-tests (Status): New section.
26267
26268 2010-03-28  Bruno Haible  <bruno@clisp.org>
26269
26270         Split C++ tests into separate tests modules.
26271         * modules/dirent-c++-tests: New file, extracted from
26272         modules/dirent-tests.
26273         * modules/dirent-tests: Depend on it.
26274         * modules/fcntl-h-c++-tests: New file, extracted from
26275         modules/fcntl-h-tests.
26276         * modules/fcntl-h-tests: Depend on it.
26277         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
26278         * modules/glob-tests: Depend on it.
26279         * modules/iconv-h-c++-tests: New file, extracted from
26280         modules/iconv-h-tests.
26281         * modules/iconv-h-tests: Depend on it.
26282         * modules/langinfo-c++-tests: New file, extracted from
26283         modules/langinfo-tests.
26284         * modules/langinfo-tests: Depend on it.
26285         * modules/locale-c++-tests: New file, extracted from
26286         modules/locale-tests.
26287         * modules/locale-tests: Depend on it.
26288         * modules/math-c++-tests: New file, extracted from modules/math-tests.
26289         * modules/math-tests: Depend on it.
26290         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
26291         * modules/pty-tests: Depend on it.
26292         * modules/search-c++-tests: New file, extracted from
26293         modules/search-tests.
26294         * modules/search-tests: Depend on it.
26295         * modules/signal-c++-tests: New file, extracted from
26296         modules/signal-tests.
26297         * modules/signal-tests: Depend on it.
26298         * modules/spawn-c++-tests: New file, extracted from
26299         modules/spawn-tests.
26300         * modules/spawn-tests: Depend on it.
26301         * modules/stdio-c++-tests: New file, extracted from
26302         modules/stdio-tests.
26303         * modules/stdio-tests: Depend on it.
26304         * modules/stdlib-c++-tests: New file, extracted from
26305         modules/stdlib-tests.
26306         * modules/stdlib-tests: Depend on it.
26307         * modules/string-c++-tests: New file, extracted from
26308         modules/string-tests.
26309         * modules/string-tests: Depend on it.
26310         * modules/sys_ioctl-c++-tests: New file, extracted from
26311         modules/sys_ioctl-tests.
26312         * modules/sys_ioctl-tests: Depend on it.
26313         * modules/sys_select-c++-tests: New file, extracted from
26314         modules/sys_select-tests.
26315         * modules/sys_select-tests: Depend on it.
26316         * modules/sys_socket-c++-tests: New file, extracted from
26317         modules/sys_socket-tests.
26318         * modules/sys_socket-tests: Depend on it.
26319         * modules/sys_stat-c++-tests: New file, extracted from
26320         modules/sys_stat-tests.
26321         * modules/sys_stat-tests: Depend on it.
26322         * modules/sys_time-c++-tests: New file, extracted from
26323         modules/sys_time-tests.
26324         * modules/sys_time-tests: Depend on it.
26325         * modules/time-c++-tests: New file, extracted from modules/time-tests.
26326         * modules/time-tests: Depend on it.
26327         * modules/unistd-c++-tests: New file, extracted from
26328         modules/unistd-tests.
26329         * modules/unistd-tests: Depend on it.
26330         * modules/wchar-c++-tests: New file, extracted from
26331         modules/wchar-tests.
26332         * modules/wchar-tests: Depend on it.
26333         * modules/wctype-c++-tests: New file, extracted from
26334         modules/wctype-tests.
26335         * modules/wctype-tests: Depend on it.
26336         Reported by Simon Josefsson.
26337
26338 2010-03-28  Bruno Haible  <bruno@clisp.org>
26339
26340         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
26341         * gnulib-tool (func_exists_module): New function, extracted from
26342         func_verify_module.
26343         (func_verify_module): Use it.
26344         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
26345         'foo' only if 'foo' exists.
26346         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
26347         module.
26348
26349 2010-03-28  Bruno Haible  <bruno@clisp.org>
26350
26351         gnulib-tool: Add support for special categories of tests.
26352         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
26353         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
26354         (func_usage): Document them.
26355         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
26356         inc_unportable_tests, inc_all_tests): New variables.
26357         (func_acceptable): Consider these variables.
26358         (func_modules_transitive_closure): Make it work when the 'Status' field
26359         consists of multiple words.
26360         (func_import): Store and restore the values of inc_cxx_tests,
26361         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
26362         inc_all_tests in gnulib-comp.m4.
26363         (func_create_testdir): Set inc_all_tests to true.
26364         * doc/gnulib.texi (Extra tests modules): New section.
26365         Suggested by Jim Meyering.
26366
26367 2010-03-28  Bruno Haible  <bruno@clisp.org>
26368
26369         ansi-c++-opt: Allow turning off the C++ build by default.
26370         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
26371         gl_CXX_CHOICE_DEFAULT_NO is defined.
26372         Requested by Eric Blake.
26373
26374 2010-03-28  Bruno Haible  <bruno@clisp.org>
26375
26376         unistd: Avoid #define replacements in C++ mode.
26377         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
26378         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
26379         setsockopt, shutdown, select): In C++, attach a warning to the function
26380         if possible, rather than #defining the symbol to a dysfunctional alias.
26381         Reported by John W. Eaton <jwe@gnu.org>.
26382
26383 2010-03-28  Bruno Haible  <bruno@clisp.org>
26384
26385         Fix link errors on mingw.
26386         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
26387         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
26388         $(LIBSOCKET).
26389         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
26390         $(LIBSOCKET).
26391
26392 2010-03-28  Bruno Haible  <bruno@clisp.org>
26393             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26394
26395         lib-ignore: Determine different options for different compilers.
26396         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
26397         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
26398         Add comments.
26399         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
26400         * NEWS: Mention the change.
26401
26402 2010-03-27  Bruno Haible  <bruno@clisp.org>
26403
26404         Remove unused GNULIB_XYZ macro definitions.
26405         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26406         * modules/fseek (configure.ac): Likewise.
26407         * modules/ioctl (configure.ac): Likewise.
26408         * modules/open (configure.ac): Likewise.
26409         * modules/stdlib-safer (configure.ac): Likewise.
26410
26411 2010-03-27  Bruno Haible  <bruno@clisp.org>
26412
26413         Add a remark about certain modules.
26414         * modules/malloc (Comment): New section.
26415         * modules/realloc (Comment): Likewise.
26416         * modules/sigpipe (Comment): Likewise.
26417
26418 2010-03-27  Bruno Haible  <bruno@clisp.org>
26419
26420         Resolve conflict between the two kinds of module indicators.
26421         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
26422         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
26423         * modules/canonicalize (configure.ac): Invoke
26424         gl_MODULE_INDICATOR_FOR_TESTS.
26425         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
26426         GNULIB_XYZ.
26427         * tests/test-dirent-c++.cc: Likewise.
26428         * tests/test-dirent-safer.c: Likewise.
26429         * tests/test-dup2.c: Likewise.
26430         * tests/test-fchdir.c: Likewise.
26431         * tests/test-fcntl-h-c++.cc: Likewise.
26432         * tests/test-getopt.c: Likewise.
26433         * tests/test-getopt.h: Likewise.
26434         * tests/test-langinfo-c++.cc: Likewise.
26435         * tests/test-locale-c++.cc: Likewise.
26436         * tests/test-math-c++.cc: Likewise.
26437         * tests/test-pty-c++.cc: Likewise.
26438         * tests/test-search-c++.cc: Likewise.
26439         * tests/test-signal-c++.cc: Likewise.
26440         * tests/test-spawn-c++.cc: Likewise.
26441         * tests/test-stdio-c++.cc: Likewise.
26442         * tests/test-stdlib-c++.cc: Likewise.
26443         * tests/test-string-c++.cc: Likewise.
26444         * tests/test-sys_ioctl-c++.cc: Likewise.
26445         * tests/test-sys_select-c++.cc: Likewise.
26446         * tests/test-sys_socket-c++.cc: Likewise.
26447         * tests/test-sys_stat-c++.cc: Likewise.
26448         * tests/test-sys_time-c++.cc: Likewise.
26449         * tests/test-time-c++.cc: Likewise.
26450         * tests/test-unistd-c++.cc: Likewise.
26451         * tests/test-wchar-c++.cc: Likewise.
26452         * tests/uninorm/test-u8-nfc.c: Likewise.
26453         * tests/uninorm/test-u8-nfd.c: Likewise.
26454         * tests/uninorm/test-u8-nfkc.c: Likewise.
26455         * tests/uninorm/test-u8-nfkd.c: Likewise.
26456         * tests/uninorm/test-u16-nfc.c: Likewise.
26457         * tests/uninorm/test-u16-nfd.c: Likewise.
26458         * tests/uninorm/test-u16-nfkc.c: Likewise.
26459         * tests/uninorm/test-u16-nfkd.c: Likewise.
26460         * tests/uninorm/test-u32-nfc.c: Likewise.
26461         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26462         * tests/uninorm/test-u32-nfd.c: Likewise.
26463         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26464         * tests/uninorm/test-u32-nfkc.c: Likewise.
26465         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26466         * tests/uninorm/test-u32-nfkd.c: Likewise.
26467         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26468         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26469
26470 2010-03-27  Bruno Haible  <bruno@clisp.org>
26471
26472         Distinguish two kinds of module indicators.
26473         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
26474         gl_MODULE_INDICATOR.
26475         (gl_MODULE_INDICATOR): New macro.
26476         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26477         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
26478         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26479         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26480         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26481         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26482         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26483         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26484         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26485         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26486         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26487         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26488         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26489         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26490         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26491         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26492         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26493         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26494         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26495         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26496         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26497         * modules/cloexec (configure.ac): Likewise.
26498         * modules/getopt-gnu (configure.ac): Likewise.
26499         * modules/uninorm/u8-normalize (configure.ac): Likewise.
26500         * modules/uninorm/u16-normalize (configure.ac): Likewise.
26501         * modules/uninorm/u32-normalize (configure.ac): Likewise.
26502         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
26503
26504 2010-03-27  Bruno Haible  <bruno@clisp.org>
26505
26506         New module description field 'Comment'.
26507         * gnulib-tool: New option --extract-comment.
26508         (func_usage): Document it.
26509         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
26510         (func_get_comment): New function.
26511         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
26512
26513 2010-03-27  Bruno Haible  <bruno@clisp.org>
26514
26515         Addendum to 2010-02-07 commit.
26516         * gnulib-tool (func_usage): Document --extract-applicability option.
26517
26518 2010-03-27  Bruno Haible  <bruno@clisp.org>
26519
26520         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
26521         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
26522         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
26523         rather than link errors.
26524
26525 2010-03-27  Bruno Haible  <bruno@clisp.org>
26526
26527         Avoid side effects from tests-related modules on the compilation of lib.
26528         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
26529         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
26530         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
26531         parameter. Emit into AM_CPPFLAGS a definition of the designated C
26532         macro.
26533         (func_import): Define a witness macro. Assign it a value that depends
26534         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
26535         tests-related modules.
26536         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
26537         Reported by Jim Meyering.
26538
26539 2010-03-27  Bruno Haible  <bruno@clisp.org>
26540
26541         Factorize common .m4 code.
26542         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
26543         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
26544         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
26545         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
26546         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26547         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
26548         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
26549         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26550         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26551         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26552         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
26553         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26554         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26555         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26556         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26557         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
26558         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26559         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26560         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26561         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
26562         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
26563         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26564         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26565         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26566         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26567         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26568         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
26569         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
26570         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
26571         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26572         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26573         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26574
26575 2010-03-27  Bruno Haible  <bruno@clisp.org>
26576
26577         Fix a compilation error on Cygwin with g++ >= 4.3.
26578         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
26579         if it is undefined or if we alias it to chmod.
26580         (lstat): Don't warn about the use of this function if it is undefined
26581         or if we alias it to stat.
26582         Reported by Simon Josefsson.
26583
26584 2010-03-27  Bruno Haible  <bruno@clisp.org>
26585
26586         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
26587         * modules/getlogin (configure.ac): Update.
26588
26589         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
26590         * modules/getlogin_r (configure.ac): Update.
26591
26592         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
26593         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
26594         * modules/inet_ntop (configure.ac): Update.
26595
26596         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
26597         * modules/inet_pton (configure.ac): Update.
26598
26599         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
26600         * modules/mbslen (configure.ac): Update.
26601
26602         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
26603         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
26604         * modules/forkpty (configure.ac): Update.
26605         * modules/openpty (configure.ac): Update.
26606
26607 2010-03-26  Simon Josefsson  <simon@josefsson.org>
26608
26609         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
26610         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
26611
26612 2010-03-25  Eric Blake  <eblake@redhat.com>
26613
26614         maint: use pragma consistently across replacement headers
26615         * lib/ctype.in.h (system_header): Hoist for consistent placement.
26616         * lib/dirent.in.h (system_header): Likewise.
26617         * lib/errno.in.h (system_header): Likewise.
26618         * lib/float.in.h (system_header): Likewise.
26619         * lib/getopt.in.h (system_header): Likewise.
26620         * lib/iconv.in.h (system_header): Likewise.
26621         * lib/inttypes.in.h (system_header): Likewise.
26622         * lib/langinfo.in.h (system_header): Likewise.
26623         * lib/locale.in.h (system_header): Likewise.
26624         * lib/math.in.h (system_header): Likewise.
26625         * lib/netdb.in.h (system_header): Likewise.
26626         * lib/netinet_in.in.h (system_header): Likewise.
26627         * lib/pty.in.h (system_header): Likewise.
26628         * lib/sched.in.h (system_header): Likewise.
26629         * lib/se-selinux.in.h (system_header): Likewise.
26630         * lib/search.in.h (system_header): Likewise.
26631         * lib/spawn.in.h (system_header): Likewise.
26632         * lib/stdarg.in.h (system_header): Likewise.
26633         * lib/stdint.in.h (system_header): Likewise.
26634         * lib/string.in.h (system_header): Likewise.
26635         * lib/strings.in.h (system_header): Likewise.
26636         * lib/sys_file.in.h (system_header): Likewise.
26637         * lib/sys_ioctl.in.h (system_header): Likewise.
26638         * lib/sys_socket.in.h (system_header): Likewise.
26639         * lib/sys_times.in.h (system_header): Likewise.
26640         * lib/sys_utsname.in.h (system_header): Likewise.
26641         * lib/sys_wait.in.h (system_header): Likewise.
26642         * lib/sysexits.in.h (system_header): Likewise.
26643         * lib/unistd.in.h (system_header): Likewise.
26644         * lib/wctype.in.h (system_header): Likewise.
26645
26646         arpa/inet: fix mingw compilation warning
26647         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26648         Reported by Matthew Bolte.
26649
26650 2010-03-25  Bruno Haible  <bruno@clisp.org>
26651
26652         Avoid collision between gnulib wrapper and libintl wrapper.
26653         * lib/printf.c (printf): Don't define if a printf wrapper is already
26654         defined in intl/printf.c.
26655         Reported by Michel Boaventura <michel@michelboaventura.com>.
26656
26657 2010-03-25  Bruno Haible  <bruno@clisp.org>
26658
26659         Use ANSI C.
26660         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26661
26662 2010-03-25  Bruno Haible  <bruno@clisp.org>
26663
26664         Minor formatting changes.
26665         * lib/acosl.c: Insert space before function argument list.
26666         * lib/argz.c: Likewise.
26667         * lib/asinl.c: Likewise.
26668         * lib/expl.c: Likewise.
26669         * lib/gen-uni-tables.c: Likewise.
26670         * lib/gettext.h: Likewise.
26671         * lib/glthread/lock.h: Likewise.
26672         * lib/tanl.c: Likewise.
26673         * lib/uniname/uniname.c: Likewise.
26674         * tests/test-idpriv-drop.c: Likewise.
26675         * tests/test-idpriv-droptemp.c: Likewise.
26676         * tests/test-lock.c: Likewise.
26677         * tests/test-tls.c: Likewise.
26678         * lib/argp-help.c: Insert space before function-like macro argument
26679         list.
26680         * lib/memcmp.c: Likewise.
26681         * tests/test-base64.c: Likewise.
26682         * lib/localename.c: Insert space before sizeof's argument list.
26683         * lib/safe-alloc.h: Likewise.
26684         * lib/file-set.h: Insert space before macro argument list.
26685         * tests/test-argp.c: Likewise.
26686         * lib/argp-namefrob.h: Insert space before function parameter list.
26687         * lib/getaddrinfo.c: Likewise.
26688         * lib/netdb.in.h: Likewise.
26689         * lib/parse-duration.h: Likewise.
26690         * lib/parse-duration.c: Likewise.
26691         * lib/poll.c: Likewise.
26692         * lib/select.c: Likewise.
26693         * lib/trim.h: Likewise.
26694         * tests/test-usleep.c: Likewise.
26695         * lib/ldexpl.c: Insert space before function parameter list and before
26696         function argument list.
26697         * lib/logl.c: Likewise.
26698         * lib/sqrtl.c: Likewise.
26699         * lib/trim.c: Likewise.
26700         * lib/cosl.c: Use GNU style indentation. Insert space before function
26701         argument list.
26702         * lib/sinl.c: Likewise.
26703         * lib/tsearch.c: Insert space after 'for'.
26704         Reported by Jim Meyering.
26705
26706 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26707
26708         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26709         config header before grepping, as it's not present before
26710         autoreconf/configure are run.  Reported by Simon Josefsson.
26711
26712 2010-03-23  Bruno Haible  <bruno@clisp.org>
26713
26714         pt_chown: Make it work with automake < 1.11.
26715         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26716         Reported by Simon Josefsson.
26717
26718 2010-03-23  Bruno Haible  <bruno@clisp.org>
26719
26720         pt_chown: Don't depend on GPLed modules.
26721         * lib/pt_chown.c: Don't include idpriv.h.
26722         (main): Don't drop privileges.
26723         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26724         Reported by Simon Josefsson.
26725
26726 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26727
26728         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26729         suggestions from karl@freefriends.org (Karl Berry).
26730
26731 2010-03-22  Eric Blake  <eblake@redhat.com>
26732
26733         gethostname: further tweaks
26734         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
26735         are overriding gethostname.
26736         Suggested by Bruno Haible.
26737
26738 2010-03-21  Bruno Haible  <bruno@clisp.org>
26739
26740         Fix comments.
26741         * lib/forkpty.c (rpl_forkpty): Fix comment.
26742         * lib/openpty.c (rpl_openpty): Likewise.
26743         Reported by Eric Blake.
26744
26745 2010-03-22  Eric Blake  <eblake@redhat.com>
26746
26747         gethostname: fix build on mingw
26748         * lib/unistd.in.h (includes): Work around fact that mingw
26749         <winsock2.h> re-includes <unistd.h>, by avoiding any
26750         redeclarations if we are being included by <winsock2.h>.
26751         Reported by Matthias Bolte.
26752
26753 2010-03-21  Bruno Haible  <bruno@clisp.org>
26754
26755         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26756         * lib/forkpty.c (forkpty): New replacement function, from glibc with
26757         modifications.
26758         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26759         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26760         provide the replacement.
26761         * modules/forkpty (Depends-on): Add openpty, login_tty.
26762         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26763         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26764         * doc/glibc-functions/forkpty.texi: More supported platforms.
26765         * config/srclist.txt: Add forkpty.c (commented).
26766
26767 2010-03-21  Bruno Haible  <bruno@clisp.org>
26768
26769         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26770         (Makefile.am): Verify that PTY_LIB is defined.
26771
26772         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26773
26774 2010-03-21  Bruno Haible  <bruno@clisp.org>
26775
26776         Tests for module 'login_tty'.
26777         * modules/login_tty-tests: New file.
26778         * tests/test-login_tty.c: New file.
26779
26780         New module 'login_tty'.
26781         * lib/login_tty.c: New file.
26782         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26783         * modules/login_tty: New file.
26784         * doc/glibc-functions/login_tty.texi: Mention the new module.
26785
26786 2010-03-21  Bruno Haible  <bruno@clisp.org>
26787
26788         login_tty: Documentation.
26789         * doc/glibc-functions/login_tty.texi: New file.
26790         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26791
26792 2010-03-21  Bruno Haible  <bruno@clisp.org>
26793
26794         pty: Consistent macro naming.
26795         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
26796         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
26797         * modules/pty (configure.ac): Update.
26798
26799 2010-03-21  Bruno Haible  <bruno@clisp.org>
26800
26801         Tests for openpty: Make stricter.
26802         * tests/test-openpty.c (main): Add test of canonical processing and
26803         erase.
26804         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
26805
26806         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26807         * lib/openpty.c (openpty): New replacement function.
26808         * lib/pty.in.h: Include <termios.h>.
26809         (openpty): Update declaration. Add comments.
26810         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26811         is not declared, arrange to provide the replacement. Check for _getpty
26812         and posix_openpt.
26813         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26814         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26815         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26816         * modules/pty-tests (test_pty_c___LDADD): New variable.
26817         * doc/glibc-functions/openpty.texi: More supported platforms.
26818
26819 2010-03-21  Bruno Haible  <bruno@clisp.org>
26820
26821         setenv: Tweaks.
26822         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26823         the test program.
26824         * doc/posix-functions/setenv.texi: Update platforms list.
26825
26826 2010-03-21  Bruno Haible  <bruno@clisp.org>
26827
26828         New module 'unlockpt'.
26829         * lib/unlockpt.c: New file, from glibc with modifications.
26830         * m4/unlockpt.m4: New file.
26831         * modules/unlockpt: New file.
26832         * lib/stdlib.in.h (unlockpt): New declaration.
26833         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26834         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26835         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26836         HAVE_UNLOCKPT.
26837         * doc/posix-functions/unlockpt.texi: Mention the new module.
26838         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26839         * config/srclist.txt: Add unlockpt.c (commented).
26840
26841 2010-03-21  Jim Meyering  <meyering@redhat.com>
26842
26843         maint.mk: prohibit inclusion of "intprops.h" without use
26844         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26845
26846 2010-03-21  Bruno Haible  <bruno@clisp.org>
26847
26848         New module 'grantpt'.
26849         * lib/grantpt.c: New file, from glibc with modifications.
26850         * m4/grantpt.m4: New file.
26851         * modules/grantpt: New file.
26852         * lib/stdlib.in.h (grantpt): New declaration.
26853         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26854         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26855         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26856         HAVE_GRANTPT.
26857         * doc/posix-functions/grantpt.texi: Mention the new module.
26858         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26859         * config/srclist.txt: Add grantpt.c (commented).
26860
26861 2010-03-21  Bruno Haible  <bruno@clisp.org>
26862
26863         New module 'pt_chown'.
26864         * lib/pt_chown.c: New file, from glibc with modifications.
26865         * lib/pty-private.h: New file, from glibc with modifications.
26866         * modules/pt_chown: New file.
26867         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26868
26869 2010-03-21  Bruno Haible  <bruno@clisp.org>
26870
26871         Tests for module 'ptsname'.
26872         * modules/ptsname-tests: New file.
26873         * tests/test-ptsname.c: New file.
26874
26875         New module 'ptsname'.
26876         * lib/ptsname.c: New file, from glibc with modifications.
26877         * m4/ptsname.m4: New file.
26878         * modules/ptsname: New file.
26879         * lib/stdlib.in.h (ptsname): New declaration.
26880         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26881         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26882         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26883         HAVE_PTSNAME.
26884         * doc/posix-functions/ptsname.texi: Mention the new module.
26885         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26886         * config/srclist.txt: Add ptsname.c (commented).
26887
26888 2010-03-21  Bruno Haible  <bruno@clisp.org>
26889
26890         Tests for module 'ttyname_r'.
26891         * modules/ttyname_r-tests: New file.
26892         * tests/test-ttyname_r.c: New file.
26893
26894         New module 'ttyname_r'.
26895         * lib/ttyname_r.c: New file.
26896         * m4/ttyname_r.m4: New file.
26897         * modules/ttyname_r: New file.
26898         * lib/unistd.in.h (ttyname_r): New declaration.
26899         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26900         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26901         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26902         HAVE_TTYNAME_R.
26903         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26904         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26905
26906 2010-03-20  Bruno Haible  <bruno@clisp.org>
26907
26908         signal: Undefine macro definitions in C++ mode.
26909         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26910         sigfillset): Undefine macro definitions from the system header in C++
26911         mode.
26912         Reported by John W. Eaton <jwe@gnu.org>.
26913
26914 2010-03-20  Bruno Haible  <bruno@clisp.org>
26915
26916         Ensure no #include statements inside extern "C" { ... }.
26917         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26918         contain #include statements.
26919         * lib/time.in.h: Likewise.
26920
26921 2010-03-20  Bruno Haible  <bruno@clisp.org>
26922
26923         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26924         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26925         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26926         Reported by John W. Eaton <jwe@gnu.org>.
26927
26928 2010-03-20  Bruno Haible  <bruno@clisp.org>
26929
26930         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26931         Reported by Jim Meyering.
26932
26933 2010-03-20  Bruno Haible  <bruno@clisp.org>
26934
26935         pipe: Set errno upon failure.
26936         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26937         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26938         errno value in error message.
26939
26940 2010-03-20  Bruno Haible  <bruno@clisp.org>
26941             Jim Meyering  <meyering@redhat.com>
26942
26943         lchown: Avoid "unused variable" warning.
26944         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26945
26946 2010-03-20  Bruno Haible  <bruno@clisp.org>
26947
26948         Work around unlink() bug on MacOS X 10.5.6.
26949         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26950         attempting to unlink a parent directory.
26951         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26952         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26953         activate for the replacement function.
26954         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26955
26956 2010-03-20  Bruno Haible  <bruno@clisp.org>
26957
26958         Fix link errors on Solaris 8.
26959         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26960         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26961
26962 2010-03-19  Jim Meyering  <meyering@redhat.com>
26963
26964         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26965         The _LIBC implementation of build_range_exp correctly honors the
26966         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26967         However, the non-_LIBC implementation would ignore that syntax-bit
26968         flag and return REG_ERANGE unconditionally.
26969         This change makes it honor that flag.
26970         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26971         Make two pointer parameters "const".
26972         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26973         (parse_bracket_exp): Update caller.
26974
26975         regex.m4: correct the reversed range endpoint ([b-a]) test
26976         * m4/regex.m4: When requiring that [b-a] evoke failure,
26977         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26978         test pass once again for x86-based systems.
26979
26980 2010-03-19  Bruno Haible  <bruno@clisp.org>
26981
26982         scandir: Fix link error on Solaris 8.
26983         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26984         macros.
26985
26986 2010-03-19  Bruno Haible  <bruno@clisp.org>
26987
26988         getusershell: Fix documentation.
26989         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26990         module.
26991         * doc/glibc-functions/setusershell.texi: Likewise.
26992
26993         getusershell: Provide declaration, missing on Solaris 9.
26994         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26995         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26996         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26997         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26999         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
27000         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
27001         HAVE_GETUSERSHELL.
27002         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
27003
27004 2010-03-19  Bruno Haible  <bruno@clisp.org>
27005
27006         wctype: Provide iswblank function.
27007         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
27008         exists and is fine.
27009         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
27010         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
27011         * tests/test-wctype.c (main): Re-enable the iswblank tests.
27012         * doc/posix-functions/iswblank.texi: Update.
27013
27014 2010-03-19  Bruno Haible  <bruno@clisp.org>
27015
27016         Tests of module 'pty' in C++ mode.
27017         * modules/pty-tests: New file.
27018         * tests/test-pty-c++.cc: New file.
27019         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27020
27021 2010-03-19  Eric Blake  <eblake@redhat.com>
27022
27023         logb: fix documentation
27024         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
27025         1.5 declaration bug.
27026
27027         forkpty, openpty: prefer glibc's const-safe prototype
27028         * lib/forkpty.c (rpl_forkpty): New file.
27029         * lib/openpty.c (rpl_openpty): Likewise.
27030         * modules/forkpty (Files): Distribute it.
27031         * modules/openpty (Files): Likewise.
27032         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
27033         check...
27034         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
27035         replacement for for non-const BSD signature.
27036         * modules/pty (Makefile.am): Substitute witnesses.
27037         * lib/pty.in.h (forkpty, openpty): Declare replacements.
27038         * tests/test-forkpty.c: Update signature check.
27039         * tests/test-openpty.c: Likewise.
27040         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
27041         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27042
27043         forkpty, openpty: split functions into new modules
27044         * modules/pty (Makefile.am): Substitute new witnesses.
27045         (Libraries): Move library detection...
27046         * modules/forkpty: ...into new module.
27047         * modules/openpty: Another new module.
27048         * modules/pty-tests: Rename and split...
27049         * modules/forkpty-tests: ...to this...
27050         * modules/openpty-tests: ...and this.
27051         * tests/test-pty.c: Rename and split...
27052         * tests/test-forkpty.c: ...to this...
27053         * tests/test-openpty.c: ...and this.
27054         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
27055         (gl_PTY): Split library searching...
27056         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
27057         (gl_FORKPTY, gl_OPENPTY): New macros.
27058         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
27059         * NEWS: Mention the split.
27060         * MODULES.html.sh (Misc): Document the modules.
27061         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
27062         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27063
27064         pty: improve replacement header
27065         * lib/pty.in.h: New file.
27066         * modules/pty (Files): Ship it.
27067         (Makefile.am): Always build replacement.
27068         * m4/pty.m4: Rename...
27069         * m4/pty_h.m4: ...to this.
27070         (gl_PTY): Modernize setting of witness macros; update check of
27071         forkpty to take proper advantage of cache.
27072         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
27073
27074         getopt: avoid compiler warning
27075         * lib/getopt.c (attribute_hidden): Remove unused macro.
27076
27077 2010-03-18  Bruno Haible  <bruno@clisp.org>
27078
27079         Fix link errors on Solaris 8.
27080         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
27081         * modules/search-tests (test_search_c___LDADD): Likewise.
27082         * modules/signal-tests (test_signal_c___LDADD): Likewise.
27083         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
27084         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
27085         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
27086         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
27087         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
27088         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
27089
27090 2010-03-18  Bruno Haible  <bruno@clisp.org>
27091
27092         Fix bug introduced on 2010-03-14.
27093         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
27094         (gl_SPAWN_H): Require it.
27095         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
27096         Reported by Simon Josefsson.
27097
27098 2010-03-18  Bruno Haible  <bruno@clisp.org>
27099
27100         Fix typo introduced on 2009-12-31.
27101         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
27102         posix_spawn_file_actions_adddup2.
27103
27104 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
27105         and Eric Blake  <eblake@redhat.com>
27106
27107         test-vc-list-files-git: make more robust
27108         * tests/test-vc-list-files-git.sh: Unset problematic environment
27109         variables.  Chain commands together.
27110
27111 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
27112
27113         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
27114         `AC_CHECK_DECL' invocation.
27115
27116 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
27117
27118         * lib/inttostr.c (inttostr): Make sure the invocation of verify
27119         appears before executable statements. Suggested by Petr Sumbera
27120         <Petr.Sumbera@Sun.COM>.
27121
27122 2010-03-14  Bruno Haible  <bruno@clisp.org>
27123
27124         * tests/test-flock.c (test_exclusive): Comment out a test that causes
27125         portability problems. Instead use a simpler test.
27126         (main): Check that invalid arguments are rejected only on Linux.
27127
27128 2010-03-14  Bruno Haible  <bruno@clisp.org>
27129
27130         Fix bug introduced on 2009-12-31.
27131         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27132         gl_PREREQ_SYS_H_WINSOCK2 always.
27133         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
27134         SYS_SOCKET_H variable.
27135         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
27136         Update comments.
27137         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
27138         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27139         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27140         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27141         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27142
27143 2010-03-14  Bruno Haible  <bruno@clisp.org>
27144
27145         Fix values returned by sinl, cosl.
27146         * lib/trigl.h: Add specification comments.
27147         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
27148         that combines the values from the precomputed table with the values of
27149         the Chebyshev polynomials.
27150
27151 2010-03-14  Bruno Haible  <bruno@clisp.org>
27152
27153         Fix compilation error when modules 'posix_spawn[p]' are not used.
27154         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
27155         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
27156
27157 2010-03-14  Bruno Haible  <bruno@clisp.org>
27158
27159         Fix compilation error on mingw when module 'time_r' is not used.
27160         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
27161         is 1.
27162         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
27163         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27164         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
27165         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
27166
27167 2010-03-14  Bruno Haible  <bruno@clisp.org>
27168
27169         Fix compilation error with Sun C.
27170         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
27171         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
27172         instead of GCC specific ULONG_LONG_MAX.
27173         * lib/xstrtoll.c: Likewise.
27174         * lib/xstrtoull.c: Likewise.
27175
27176 2010-03-13  Bruno Haible  <bruno@clisp.org>
27177
27178         Allow the user to disable C++ code and tests.
27179         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
27180         (gl_PROG_ANSI_CXX): Require it.
27181
27182 2010-03-13  Bruno Haible  <bruno@clisp.org>
27183
27184         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
27185         cases.
27186
27187 2010-03-13  Bruno Haible  <bruno@clisp.org>
27188
27189         Test that gnulib does not break the standard C++ headers.
27190         * tests/test-locale-c++2.cc: New file.
27191         * modules/locale-tests (Files): Add it.
27192         (Makefile.am): Compile it for test-locale-c++.
27193         * tests/test-math-c++2.cc: New file.
27194         * modules/math-tests (Files): Add it.
27195         (Makefile.am): Compile it for test-math-c++.
27196         * tests/test-signal-c++2.cc: New file.
27197         * modules/signal-tests (Files): Add it.
27198         (Makefile.am): Compile it for test-signal-c++.
27199         * tests/test-stdio-c++2.cc: New file.
27200         * modules/stdio-tests (Files): Add it.
27201         (Makefile.am): Compile it for test-stdio-c++.
27202         * tests/test-stdlib-c++2.cc: New file.
27203         * modules/stdlib-tests (Files): Add it.
27204         (Makefile.am): Compile it for test-stdlib-c++.
27205         * tests/test-string-c++2.cc: New file.
27206         * modules/string-tests (Files): Add it.
27207         (Makefile.am): Compile it for test-string-c++.
27208         * tests/test-time-c++2.cc: New file.
27209         * modules/time-tests (Files): Add it.
27210         (Makefile.am): Compile it for test-time-c++.
27211         Reported by John W. Eaton <jwe@gnu.org>.
27212
27213 2010-03-13  Bruno Haible  <bruno@clisp.org>
27214
27215         * gnulib-tool (func_usage): Clarify which options are available for
27216         --create-testdir and --create-megatestdir.
27217
27218 2010-03-13  Bruno Haible  <bruno@clisp.org>
27219
27220         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
27221         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
27222         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
27223         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27224         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
27225         when appropriate.
27226         Reported by Jim Meyering.
27227
27228 2010-03-12  Simon Josefsson  <simon@josefsson.org>
27229
27230         * gnulib-tool (func_import): Explain origin of code.
27231
27232 2010-03-12  Bruno Haible  <bruno@clisp.org>
27233
27234         Fix problem with automake's definition of CXXLINK.
27235         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
27236         Reported by Simon Josefsson and Ludovic Courtès.
27237
27238 2010-03-12  Bruno Haible  <bruno@clisp.org>
27239
27240         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
27241         stable releases.
27242
27243 2010-03-11  Bruno Haible  <bruno@clisp.org>
27244
27245         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
27246         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
27247         whether the system provides one variant or multiple variants of the
27248         function.
27249         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
27250         C++ compilers.
27251         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
27252         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
27253         Reported by Jim Meyering.
27254
27255 2010-03-09  Simon Josefsson  <simon@josefsson.org>
27256
27257         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
27258
27259 2010-03-08  Bruno Haible  <bruno@clisp.org>
27260
27261         gnulib-tool: Add support for --libtool in --create-testdir.
27262         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
27263         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
27264
27265 2010-03-08  Eric Blake  <eblake@redhat.com>
27266
27267         gnulib-tool.texi: mention possibility of git submodule
27268         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
27269         submodules.
27270         * doc/.gitignore: Ignore another generated file.
27271
27272 2010-03-08  Karl Berry  <karl@gnu.org>
27273
27274         * doc/gnulib-tool.texi (VCS Issues): Mention third option
27275         of committing gnulib files while skipping others.
27276
27277 2010-03-07  Bruno Haible  <bruno@clisp.org>
27278
27279         Tests of module 'wctype' in C++ mode.
27280         * tests/test-wctype-c++.cc: New file.
27281         * modules/wctype-tests (Files): Add it and tests/signature.h.
27282         (Depends-on): Add ansi-c++-opt.
27283         (Makefile.am): Arrange to compile and run test-wctype-c++.
27284
27285         Tests of module 'wchar' in C++ mode.
27286         * tests/test-wchar-c++.cc: New file.
27287         * modules/wchar-tests (Files): Add it and tests/signature.h.
27288         (Depends-on): Add ansi-c++-opt.
27289         (Makefile.am): Arrange to compile and run test-wchar-c++.
27290         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
27291         gl_MODULE_INDICATOR.
27292
27293         Tests of module 'unistd' in C++ mode.
27294         * tests/test-unistd-c++.cc: New file.
27295         * modules/unistd-tests (Files): Add it and tests/signature.h.
27296         (Depends-on): Add ansi-c++-opt.
27297         (Makefile.am): Arrange to compile and run test-unistd-c++.
27298         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
27299         gl_MODULE_INDICATOR.
27300
27301         Tests of module 'time' in C++ mode.
27302         * tests/test-time-c++.cc: New file.
27303         * modules/time-tests (Files): Add it and tests/signature.h.
27304         (Depends-on): Add ansi-c++-opt.
27305         (Makefile.am): Arrange to compile and run test-time-c++.
27306         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27307
27308         Tests of module 'sys_time' in C++ mode.
27309         * tests/test-sys_time-c++.cc: New file.
27310         * modules/sys_time-tests (Files): Add it and tests/signature.h.
27311         (Depends-on): Add ansi-c++-opt.
27312         (Makefile.am): Arrange to compile and run test-sys_time-c++.
27313         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
27314         gl_MODULE_INDICATOR.
27315
27316         Tests of module 'sys_stat' in C++ mode.
27317         * tests/test-sys_stat-c++.cc: New file.
27318         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
27319         (Depends-on): Add ansi-c++-opt.
27320         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
27321         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
27322         gl_MODULE_INDICATOR.
27323
27324         Tests of module 'sys_socket' in C++ mode.
27325         * tests/test-sys_socket-c++.cc: New file.
27326         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
27327         (Depends-on): Add ansi-c++-opt.
27328         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
27329         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
27330         gl_MODULE_INDICATOR.
27331
27332         Tests of module 'sys_select' in C++ mode.
27333         * tests/test-sys_select-c++.cc: New file.
27334         * modules/sys_select-tests (Files): Add it and tests/signature.h.
27335         (Depends-on): Add ansi-c++-opt.
27336         (Makefile.am): Arrange to compile and run test-sys_select-c++.
27337         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
27338         gl_MODULE_INDICATOR.
27339
27340         Tests of module 'sys_ioctl' in C++ mode.
27341         * tests/test-sys_ioctl-c++.cc: New file.
27342         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
27343         (Depends-on): Add ansi-c++-opt.
27344         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
27345         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
27346         gl_MODULE_INDICATOR.
27347
27348         Tests of module 'string' in C++ mode.
27349         * tests/test-string-c++.cc: New file.
27350         * modules/string-tests (Files): Add it and tests/signature.h.
27351         (Depends-on): Add ansi-c++-opt.
27352         (Makefile.am): Arrange to compile and run test-string-c++.
27353         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
27354         gl_MODULE_INDICATOR.
27355
27356         Tests of module 'stdlib' in C++ mode.
27357         * tests/test-stdlib-c++.cc: New file.
27358         * modules/stdlib-tests (Files): Add it and tests/signature.h.
27359         (Depends-on): Add ansi-c++-opt.
27360         (Makefile.am): Arrange to compile and run test-stdlib-c++.
27361         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
27362         gl_MODULE_INDICATOR.
27363
27364         Tests of module 'stdio' in C++ mode.
27365         * tests/test-stdio-c++.cc: New file.
27366         * modules/stdio-tests (Files): Add it and tests/signature.h.
27367         (Depends-on): Add ansi-c++-opt.
27368         (Makefile.am): Arrange to compile and run test-stdio-c++.
27369         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
27370         gl_MODULE_INDICATOR.
27371
27372         Tests of module 'spawn' in C++ mode.
27373         * tests/test-spawn-c++.cc: New file.
27374         * modules/spawn-tests (Files): Add it and tests/signature.h.
27375         (Depends-on): Add ansi-c++-opt.
27376         (Makefile.am): Arrange to compile and run test-spawn-c++.
27377         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
27378         gl_MODULE_INDICATOR.
27379
27380         Tests of module 'signal' in C++ mode.
27381         * tests/test-signal-c++.cc: New file.
27382         * modules/signal-tests (Files): Add it and tests/signature.h.
27383         (Depends-on): Add ansi-c++-opt.
27384         (Makefile.am): Arrange to compile and run test-signal-c++.
27385         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
27386         gl_MODULE_INDICATOR.
27387
27388         Tests of module 'search' in C++ mode.
27389         * tests/test-search-c++.cc: New file.
27390         * modules/search-tests (Files): Add it and tests/signature.h.
27391         (Depends-on): Add ansi-c++-opt.
27392         (Makefile.am): Arrange to compile and run test-search-c++.
27393         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
27394         gl_MODULE_INDICATOR.
27395
27396         Tests of module 'math' in C++ mode.
27397         * tests/test-math-c++.cc: New file.
27398         * modules/math-tests (Files): Add it and tests/signature.h.
27399         (Depends-on): Add ansi-c++-opt.
27400         (Makefile.am): Arrange to compile and run test-math-c++.
27401         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27402
27403         Tests of module 'locale' in C++ mode.
27404         * tests/test-locale-c++.cc: New file.
27405         * modules/locale-tests (Files): Add it and tests/signature.h.
27406         (Depends-on): Add ansi-c++-opt.
27407         (Makefile.am): Arrange to compile and run test-locale-c++.
27408         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
27409         gl_MODULE_INDICATOR.
27410
27411         Tests of module 'langinfo' in C++ mode.
27412         * tests/test-langinfo-c++.cc: New file.
27413         * modules/langinfo-tests (Files): Add it and tests/signature.h.
27414         (Depends-on): Add ansi-c++-opt.
27415         (Makefile.am): Arrange to compile and run test-langinfo-c++.
27416         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
27417         gl_MODULE_INDICATOR.
27418
27419         Tests of module 'iconv-h' in C++ mode.
27420         * tests/test-iconv-h-c++.cc: New file.
27421         * modules/iconv-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-iconv-h-c++.
27424
27425         Tests of module 'glob' in C++ mode.
27426         * tests/test-glob-c++.cc: New file.
27427         * modules/glob-tests (Files): Add it.
27428         (Depends-on): Add ansi-c++-opt.
27429         (Makefile.am): Arrange to compile and run test-glob-c++.
27430
27431         Tests of module 'fcntl-h' in C++ mode.
27432         * tests/test-fcntl-h-c++.cc: New file.
27433         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
27434         (Depends-on): Add ansi-c++-opt.
27435         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
27436         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
27437         gl_MODULE_INDICATOR.
27438
27439         Tests of module 'dirent' in C++ mode.
27440         * tests/test-dirent-c++.cc: New file.
27441         * modules/dirent-tests (Files): Add it and tests/signature.h.
27442         (Depends-on): Add ansi-c++-opt.
27443         (Makefile.am): Arrange to compile and run test-dirent-c++.
27444         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27445         gl_MODULE_INDICATOR.
27446
27447         New module 'ansi-c++-opt'.
27448         * modules/ansi-c++-opt: New file.
27449         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
27450
27451         Document C++ namespace mode.
27452         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
27453
27454         wctype: Avoid #define replacements in C++ mode.
27455         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
27456         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
27457         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
27458         In C++, define a namespaced alias symbol.
27459         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
27460         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
27461         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
27462         rule.
27463
27464         wchar: Avoid #define replacements in C++ mode.
27465         * lib/wchar.in.h: Include c++defs.h.
27466         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
27467         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
27468         symbol.
27469         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
27470         * modules/wchar (Depends-on): Add c++defs.
27471         (Makefile.am): Update wchar.h rule.
27472
27473         unistd: Avoid #define replacements in C++ mode.
27474         * lib/unistd.in.h: Include c++defs.h.
27475         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
27476         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
27477         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
27478         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
27479         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
27480         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
27481         symbol.
27482         (environ): Update.
27483         * modules/unistd (Depends-on): Add c++defs.
27484         (Makefile.am): Update unistd.h rule.
27485
27486         time: Avoid #define replacements in C++ mode.
27487         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
27488         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
27489         define a namespaced alias symbol.
27490         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
27491         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
27492         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
27493         * modules/time (Depends-on): Add c++defs, warn-on-use.
27494         (Makefile.am): Update time.h rule.
27495         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27496         * modules/nanosleep (configure.ac): Likewise.
27497         * modules/strptime (configure.ac): Likewise.
27498         * modules/timegm (configure.ac): Likewise.
27499
27500         sys_time: Avoid #define replacements in C++ mode.
27501         * lib/sys_time.in.h: Include c++defs.h.
27502         (gettimeofday): In C++, define a namespaced alias symbol.
27503         * modules/sys_time (Depends-on): Add c++defs.
27504         (Makefile.am): Update sys/time.h rule.
27505
27506         sys_stat: Avoid #define replacements in C++ mode.
27507         * lib/sys_stat.in.h: Include c++defs.h.
27508         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
27509         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
27510         namespaced alias symbol.
27511         In C++, define a namespaced alias symbol.
27512         * modules/sys_stat (Depends-on): Add c++defs.
27513         (Makefile.am): Update sys/stat.h rule.
27514
27515         sys_socket: Avoid #define replacements in C++ mode.
27516         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
27517         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
27518         definitions also when the system has a <sys/socket.h>.
27519         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27520         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
27521         In C++, define a namespaced alias symbol.
27522         * modules/sys_socket (Depends-on): Add c++defs.
27523         (Makefile.am): Update sys/socket.h rule.
27524
27525         sys_select: Avoid #define replacements in C++ mode.
27526         * lib/sys_select.in.h: Include c++defs.h. Enable the function
27527         definitions also when the system has a <sys/select.h>.
27528         (select): In C++, define a namespaced alias symbol.
27529         * modules/sys_select (Depends-on): Add c++defs.
27530         (Makefile.am): Update sys/select.h rule.
27531
27532         sys_ioctl: Avoid #define replacements in C++ mode.
27533         * lib/sys_ioctl.in.h: Include c++defs.h.
27534         (ioctl): In C++, define a namespaced alias symbol.
27535         * modules/sys_ioctl (Depends-on): Add c++defs.
27536         (Makefile.am): Update sys/ioctl.h rule.
27537
27538         string: Avoid #define replacements in C++ mode.
27539         * lib/string.in.h: Include c++defs.h.
27540         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
27541         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27542         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27543         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
27544         strsignal, strverscmp): In C++, define a namespaced alias symbol.
27545         * modules/string (Depends-on): Add c++defs.
27546         (Makefile.am): Update string.h rule.
27547
27548         stdlib: Avoid #define replacements in C++ mode.
27549         * lib/stdlib.in.h: Include c++defs.h.
27550         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
27551         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
27552         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
27553         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
27554         symbol.
27555         * modules/stdlib (Depends-on): Add c++defs.
27556         (Makefile.am): Update stdlib.h rule.
27557
27558         stdio: Avoid #define replacements in C++ mode.
27559         * lib/stdio.in.h: Include c++defs.h.
27560         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
27561         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
27562         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
27563         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
27564         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
27565         namespaced alias symbol.
27566         * modules/stdio (Depends-on): Add c++defs.
27567         (Makefile.am): Update stdio.h rule.
27568
27569         spawn: Avoid #define replacements in C++ mode.
27570         * lib/spawn.in.h: Include c++defs.h.
27571         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27572         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27573         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27574         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27575         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27576         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27577         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27578         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27579         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27580         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27581         In C++, define a namespaced alias symbol.
27582         * modules/spawn (Depends-on): Add c++defs.
27583         (Makefile.am): Update spawn.h rule.
27584
27585         signal: Avoid #define replacements in C++ mode.
27586         * lib/signal.in.h: Include c++defs.h.
27587         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27588         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
27589         namespaced alias symbol.
27590         * modules/signal (Depends-on): Add c++defs.
27591         (Makefile.am): Update signal.h rule.
27592
27593         search: Avoid #define replacements in C++ mode.
27594         * lib/search.in.h: Include c++defs.h.
27595         (_gl_search_compar_fn, _gl_search_action_fn): New types.
27596         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
27597         symbol.
27598         * modules/search (Depends-on): Add c++defs.
27599         (Makefile.am): Update search.h rule.
27600
27601         math: Avoid #define replacements in C++ mode.
27602         * lib/math.in.h: Include c++defs.h.
27603         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
27604         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
27605         trunc, truncl): In C++, define a namespaced alias symbol.
27606         * modules/math (Depends-on): Add c++defs.
27607         (Makefile.am): Update math.h rule.
27608
27609         locale: Avoid #define replacements in C++ mode.
27610         * lib/locale.in.h: Include c++defs.h.
27611         (duplocale): In C++, define a namespaced alias symbol.
27612         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
27613         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
27614         * modules/locale (Depends-on): Add c++defs.
27615         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
27616
27617         langinfo: Avoid #define replacements in C++ mode.
27618         * lib/langinfo.in.h: Include c++defs.h.
27619         (nl_langinfo): In C++, define a namespaced alias symbol.
27620         * modules/langinfo (Depends-on): Add c++defs.
27621         (Makefile.am): Update langinfo.h rule.
27622
27623         iconv-h: Avoid #define replacements in C++ mode.
27624         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
27625         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
27626         symbol.
27627         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27628         whenever iconv is present.
27629         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
27630         (Makefile.am): Update iconv.h rule.
27631
27632         glob: Avoid #define replacements in C++ mode.
27633         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
27634         (_gl_glob_errfunc_fn): New type.
27635         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27636         symbol.
27637         * modules/glob (Depends-on): Add c++defs, warn-on-use.
27638         (Makefile.am): Update glob.h rule.
27639
27640         fcntl-h: Avoid #define replacements in C++ mode.
27641         * lib/fcntl.in.h: Include c++defs.h.
27642         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27643         * modules/fcntl-h (Depends-on): Add c++defs.
27644         (Makefile.am): Update fcntl.h rule.
27645
27646         dirent: Avoid #define replacements in C++ mode.
27647         * lib/dirent.in.h: Include c++defs.h.
27648         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27649         namespaced alias symbol.
27650         (dirfd): Update declaration.
27651         * modules/dirent (Depends-on): Add c++defs.
27652         (Makefile.am): Update dirent.h rule.
27653
27654         ctype: Make it usable in C++ code.
27655         * lib/ctype.in.h: Include c++defs.h.
27656         (isblank): Declare as extern "C".
27657         * modules/ctype (Depends-on): Add c++defs.
27658         (Makefile.am): Update ctype.h rule.
27659
27660         New module 'c++defs'.
27661         * modules/c++defs: New file.
27662         * build-aux/c++defs.h: New file.
27663         Reported by John W. Eaton <jwe@gnu.org>.
27664
27665 2010-03-07  Bruno Haible  <bruno@clisp.org>
27666
27667         logb: Provide missing declaration for Cygwin.
27668         * lib/math.in.h (logb): New declaration.
27669         * m4/logb.m4: New file.
27670         * modules/logb (Files): Add m4/logb.m4.
27671         (Depends-on): Add math.
27672         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27673         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27675         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27676         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27677
27678 2010-03-07  Bruno Haible  <bruno@clisp.org>
27679
27680         Fix test-cond link error.
27681         * tests/test-cond.c: Include <stdio.h>.
27682
27683 2010-03-07  Bruno Haible  <bruno@clisp.org>
27684
27685         Fix test-dirent-safer link error.
27686         * modules/dirent-safer-tests (Makefile.am): Define
27687         test_dirent_safer_LDADD.
27688
27689 2010-03-07  Bruno Haible  <bruno@clisp.org>
27690
27691         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
27692         among default module list.
27693
27694 2010-03-07  Bruno Haible  <bruno@clisp.org>
27695
27696         Fix link error on platforms with GNU libiconv.
27697         * modules/unistr/u8-strcoll-tests (Makefile): Define
27698         test_u8_strcoll_LDADD.
27699         * modules/unistr/u16-strcoll-tests (Makefile): Define
27700         test_u16_strcoll_LDADD.
27701         * modules/unistr/u32-strcoll-tests (Makefile): Define
27702         test_u32_strcoll_LDADD.
27703
27704 2010-03-07  Bruno Haible  <bruno@clisp.org>
27705
27706         Use POSIX declarations for socket functions.
27707         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27708         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27709         rpl_sendto): Change declaration to match POSIX.
27710         * lib/connect.c (rpl_connect): Likewise.
27711         * lib/accept.c (rpl_accept): Likewise.
27712         * lib/bind.c (rpl_bind): Likewise.
27713         * lib/getpeername.c (rpl_getpeername): Likewise.
27714         * lib/getsockname.c (rpl_getsockname): Likewise.
27715         * lib/recv.c (rpl_recv): Likewise.
27716         * lib/send.c (rpl_send): Likewise.
27717         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27718         * lib/sendto.c (rpl_sendto): Likewise.
27719
27720 2010-03-06  Bruno Haible  <bruno@clisp.org>
27721
27722         Clarify access, euidaccess, faccessat.
27723         * doc/posix-functions/faccessat.texi: Mention security problem under
27724         "Other problems", not "Portability problems".
27725         * doc/posix-functions/access.texi: Likewise. Mention a related security
27726         problem.
27727         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27728         * lib/euidaccess.c: Add comments about platforms.
27729         * lib/unistd.in.h (access, euidaccess): Add warnings.
27730
27731 2010-03-07  Bruno Haible  <bruno@clisp.org>
27732
27733         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27734         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
27735         (POSIX_SPAWN_SETSCHEDULER): Likewise.
27736         (POSIX_SPAWN_USEVFORK): Define in a way that works when
27737         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27738         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
27739         declare when POSIX_SPAWN_SETSCHEDULER is zero.
27740         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
27741         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
27742         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
27743         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
27744         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
27745         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
27746         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
27747         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
27748         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
27749         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
27750         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
27751         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
27752         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
27753         Likewise.
27754         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
27755         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
27756         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
27757         Likewise.
27758         * tests/test-spawn.c (main): Make it work when
27759         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27760
27761 2010-03-07  Bruno Haible  <bruno@clisp.org>
27762
27763         Fix incorrect Makefile.am generation in German locale.
27764         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27765         Execute sed command with character range in C locale.
27766
27767 2010-03-06  Bruno Haible  <bruno@clisp.org>
27768
27769         Tests for module 'iconv-h'.
27770         * modules/iconv-h-tests: New file.
27771         * tests/test-iconv-h.c: New file.
27772
27773         New module 'iconv-h'.
27774         * modules/iconv-h: New file.
27775         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27776         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27777         (configure.ac): Remove gl_ICONV_H.
27778         (Makefile.am): Remove rule for iconv.h.
27779
27780 2010-03-06  Bruno Haible  <bruno@clisp.org>
27781
27782         More consistent naming of *.m4 files.
27783         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27784         * modules/wctype (Files): Update.
27785
27786         More consistent naming of *.m4 files.
27787         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27788         * modules/wchar (Files): Update.
27789
27790 2010-03-06  Jim Meyering  <meyering@redhat.com>
27791
27792         euidaccess: relax license to LGPLv2+
27793         * modules/euidaccess (License): Relax to LGPLv2+.
27794
27795 2010-03-06  Bruno Haible  <bruno@clisp.org>
27796
27797         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
27798         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
27799         (Makefile.am): Augment lib_SOURCES instead.
27800
27801 2010-03-04  Jim Meyering  <meyering@redhat.com>
27802
27803         utime: remove obsolete module
27804         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
27805         unnecessary for years, and has been marked as obsolete for 10 months.
27806         * modules/utime: Remove file.
27807         * lib/utime.c: Remove file.
27808         * m4/utime.m4: Remove file.
27809         * m4/utimes-null.m4: Remove file.
27810         * doc/posix-functions/utime.texi (utime): Remove reference to
27811         the module.  Move the sole "fixed by gnulib" item into the
27812         "problems not fixed by Gnulib" list.
27813         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27814
27815 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27816
27817         * modules/exit (License): Relax license to LGPLv2+.
27818         (Status): Mark as obsolete.
27819         * NEWS: Mention deprecated 'exit' module.
27820         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27821         of now obsolete 'exit'.
27822
27823 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27824
27825         fts-lgpl: remove unused module
27826         * modules/fts-lgpl: Remove.
27827         * MODULES.html.sh (func_all_modules): Adjust.
27828         * check-module (find_included_lib_files): Adjust.
27829         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27830
27831 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27832
27833         copy-acl: enhance Solaris ACL error handling
27834         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27835         * lib/set-mode-acl.c (qset_acl): Likewise.
27836
27837 2010-03-02  Bruno Haible  <bruno@clisp.org>
27838
27839         spawn: Don't override the system defined values on FreeBSD 8.
27840         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27841         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27842         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27843         if HAVE_POSIX_SPAWN is 1.
27844         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27845
27846 2010-03-01  Bruno Haible  <bruno@clisp.org>
27847
27848         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27849         regarding Automake.
27850
27851 2010-02-25  Bruno Haible  <bruno@clisp.org>
27852
27853         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27854         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27855         setting, not afterwards.
27856         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27857
27858 2010-02-24  Eric Blake  <eblake@redhat.com>
27859
27860         bootstrap, git-version-gen: use timestamp
27861         * build-aux/git-version-gen (scriptversion): Force UTC.
27862         * build-aux/bootstrap (scriptversion): New variable.
27863
27864         bootstrap: allow older git
27865         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27866         older than 1.6.4.  Requested by the libvirt project.
27867
27868 2010-02-23  Eric Blake  <eblake@redhat.com>
27869
27870         warn-on-use: work with old autoconf
27871         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27872         AS_VAR semantics of autoconf 2.60.
27873         Reported by Bruno Haible.
27874
27875         bootstrap: improve some comments
27876         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27877         clarification comments.
27878
27879         gettimeofday: provide correct function
27880         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27881         when replacement is declared, otherwise provide gettimeofday.
27882         Reported by Michael Goffioul.
27883
27884 2010-02-23  Jim Meyering  <meyering@redhat.com>
27885
27886         lib-ignore: relax license to "unlimited", not LGPLv2+
27887         * modules/lib-ignore (License): Relax to "unlimited".
27888
27889 2010-02-23  Jim Meyering  <meyering@redhat.com>
27890
27891         lib-ignore: relax license to LGPLv2+
27892         * modules/lib-ignore (License): Relax to LGPLv2+.
27893
27894 2010-02-22  Eric Blake  <eblake@redhat.com>
27895
27896         lseek: avoid bash 3.2 broken pipe bug
27897         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27898         warning from bash 3.2.
27899         Reported by Ben Pfaff, with analysis from Bruno Haible.
27900
27901         bootstrap: support non-FSF copyright holder
27902         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27903         bootstrap.conf override of COPYRIGHT_HOLDER.
27904         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27905
27906         bootstrap: interoperate with gettext 0.14.1
27907         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27908
27909         bootstrap: allow for alternate submodule location
27910         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27911         hardcoding submodule location.
27912         (gnulib_mk): Allow direct use of Makefile.am.
27913
27914         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27915         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27916         rather than reconfiguring where the submodule points.
27917
27918         gettimeofday: restore support for platforms that lack function
27919         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27920         replacement if function is missing.
27921         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27922         * modules/sys_time (Makefile.am): Substitute it.
27923         * lib/sys_time.in.h (gettimeofday): Check it.
27924         Reported by Michael Goffioul.
27925
27926 2010-02-21  Bruno Haible  <bruno@clisp.org>
27927
27928         * lib/stdio.in.h (obstack_printf): Fix typo.
27929
27930 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27931
27932         vc-list-files: use bzr ls's -R option
27933         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27934         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27935
27936 2010-02-21  Jim Meyering  <meyering@redhat.com>
27937
27938         init.sh: fix EXEEXT shims to work also for names like test-prog
27939         * tests/init.sh: Re-exec a better shell, when needed.
27940         If the current shell lacks support for posix $(...), an init.sh-using
27941         test will now try to find a shell that supports that.  If EXEEXT is
27942         nonempty, we also require support for hyphen-in-alias-name and shell
27943         substitutions like ${var#glob}.  Failure to find such a shell results
27944         in a skipped test.
27945
27946 2010-02-21  Bruno Haible  <bruno@clisp.org>
27947
27948         Really work around around "broken pipe" error message from bash 3.2.
27949         * gnulib-tool (func_reset_sigpipe): Remove function.
27950         (echo): In bash 3.2, define to a function that uses printf.
27951         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27952
27953 2010-02-20  Bruno Haible  <bruno@clisp.org>
27954
27955         Restore support for automake 1.9.6 with autoconf 2.61.
27956         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27957         Reported by James Youngman <jay@gnu.org>.
27958
27959 2010-02-20  Bruno Haible  <bruno@clisp.org>
27960
27961         Improve *printf warning condition.
27962         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27963         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27964         and the function is overridden due to SIGPIPE emulation.
27965
27966 2010-02-20  Bruno Haible  <bruno@clisp.org>
27967
27968         * lib/stdio.in.h: Tweak comments.
27969
27970 2010-02-19  Bruno Haible  <bruno@clisp.org>
27971
27972         Make it easier to find modules. New gnulib-tool option '--find'.
27973         * gnulib-tool: New option --find.
27974         (func_usage): Document it.
27975         (func_sanitize_modulelist): New function, extracted from
27976         func_all_modules.
27977         (func_all_modules): Invoke it.
27978         * doc/gnulib-tool.texi (Which modules?): New node.
27979
27980 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27981
27982         * lib/sys_select.in.h: Provide select replacement even if
27983         sys/select.h exists on a system, for Interix.
27984
27985 2010-02-18  Jim Meyering  <meyering@redhat.com>
27986
27987         init.sh: don't use $(...) just yet
27988         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27989         to accommodate e.g., Solaris' /bin/sh.
27990
27991 2010-02-17  Bruno Haible  <bruno@clisp.org>
27992
27993         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27994         Reported by Ludovic Courtès <ludo@gnu.org>.
27995
27996 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27997
27998         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27999         linking with -lintl.
28000
28001 2010-02-17  Simon Josefsson  <simon@josefsson.org>
28002
28003         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
28004         if not provided by the system's netdb.h.  Reported by
28005         ludo@gnu.org (Ludovic Courtès).
28006
28007 2010-02-15  Jim Meyering  <meyering@redhat.com>
28008
28009         init.sh: improve portability and efficiency
28010         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
28011         "dummy" in a for loop.
28012         Use '!', not '^' to select the complement of a character set used
28013         in a "case" statement.
28014         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
28015         Suggestions from Eric Blake.
28016
28017         init.sh: automatically accommodate programs with the .exe suffix
28018         Automatically arrange for an invocation of "prog" to execute the
28019         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
28020         may use the simpler "prog", yet still work when built on a system
28021         that requires specifying the added suffix.
28022         Do this by constructing a function named "prog" that invokes
28023         "prog.exe" for each .exe file in selected directories.
28024         * tests/init.sh (find_exe_basenames_): New function.
28025         (create_exe_shim_functions_): New function.
28026         (path_prepend_): Use it.
28027
28028         maint.mk: mark syntax-check sc_*.m rules as .PHONY
28029         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
28030         "make -t syntax-check" doesn't create a ton of sc_*.m files.
28031
28032 2010-02-14  Jim Meyering  <meyering@redhat.com>
28033
28034         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
28035         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
28036         (sc_prohibit_hash_pjw_without_use): New rule.
28037
28038         maint.mk: allow the default upload destination dir to be overridden
28039         * top/maint.mk (upload_dest_dir_): Define with a default that
28040         preserves the status quo.
28041         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
28042         Reported by Peter Simons.
28043
28044         maint.mk: prohibit inclusion of "hash.h" without_use
28045         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
28046
28047 2010-02-10  Jim Meyering  <meyering@redhat.com>
28048
28049         maint.mk: prohibit inclusion of "ignore-value.h" without_use
28050         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
28051
28052 2010-02-09  Eric Blake  <ebb9@byu.net>
28053         and Bruno Haible  <bruno@clisp.org>
28054
28055         obstack-printf-posix: ensure declaration
28056         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
28057         extracted from gl_FUNC_OBSTACK_PRINTF.
28058         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
28059         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28060         Likewise.
28061         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
28062         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
28063         0.
28064
28065 2010-02-08  Bruno Haible  <bruno@clisp.org>
28066
28067         gnulib-tool: Fix typo in 2010-02-07 commit.
28068         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
28069         Reported by Eric Blake.
28070
28071 2010-02-07  Bruno Haible  <bruno@clisp.org>
28072
28073         gnulib-tool: Fix up caching patches.
28074         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
28075         option --no-cache. Use associative arrays when supported by the shell.
28076         (sed_comments): New variable.
28077         (modcache): Renamed from do_cache.
28078         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
28079         abbreviate unnecessarily.
28080         (have_associative): New variable.
28081         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
28082         way also for ksh and zsh.
28083         (func_init_sed_convert_to_cache_statements): New function, extracted
28084         from func_cache_lookup_module. Add support for associative arrays.
28085         Don't set the c_MODULE_cached variable here. Ignore all lines before
28086         the first field header. Remove only the final newline, not all trailing
28087         newlines. Support empty fields correctly. Limit the use of 'eval' to
28088         assignments.
28089         (func_get_description, func_get_status, func_get_notice,
28090         func_get_applicability, func_get_filelist, func_get_dependencies,
28091         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
28092         func_get_automake_snippet, func_get_include_directive,
28093         func_get_link_directive, func_get_license, func_get_maintainer):
28094         Update documentation. List the unoptimized code first. Add support for
28095         associative arrays. Limit the use of 'eval' to assignments.
28096         (func_get_applicability): Undo stylistic pessimisations.
28097         (func_get_automake_snippet, func_get_include_directive): Reduce code
28098         duplication.
28099         (func_modules_transitive_closure, func_modules_add_dummy,
28100         func_modules_notice, func_modules_to_filelist, func_add_file,
28101         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
28102         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
28103         func_create_testdir, func_create_megatestdir): Update documentation.
28104
28105 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28106
28107         * gnulib-tool (func_cache_lookup_module): Store the module name
28108         belonging to the cache variable; error out if two different
28109         module names map to the same cache variable name.
28110
28111 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28112
28113         gnulib-tool: Make caching optional.
28114         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
28115         Update matching short versions of --no-changelog.
28116         (func_usage): Update.
28117         (sed_extract_cache_prog): Renamed from ...
28118         (sed_extract_prog): ... this; revert to old extraction script.
28119         (func_get_description, func_get_status)
28120         (func_get_notice, func_get_applicability, func_get_filelist)
28121         (func_get_dependencies, func_get_autoconf_early_snippet)
28122         (func_get_autoconf_snippet, func_get_automake_snippet)
28123         (func_get_include_directive, func_get_link_directive)
28124         (func_get_license, func_get_maintainer): If $do_cache is false,
28125         use old, non-caching extraction scripts.
28126         Suggestion by Bruno Haible.
28127
28128 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28129
28130         gnulib-tool: cache module metainformation.
28131         * gnulib-tool (sed_extract_prog): Match newline before each
28132         header, and rewrite header to a shell variable suffix.
28133         (func_cache_var, func_cache_lookup_module): New functions,
28134         to turn a module name into a cache variable prefix, and to
28135         look up and cache module metainformation.
28136         (func_get_description, func_get_status)
28137         (func_get_notice, func_get_applicability, func_get_filelist)
28138         (func_get_dependencies, func_get_autoconf_early_snippet)
28139         (func_get_autoconf_snippet, func_get_automake_snippet)
28140         (func_get_include_directive, func_get_link_directive)
28141         (func_get_license, func_get_maintainer): Use
28142         func_cache_lookup_module.
28143
28144 2010-02-07  Bruno Haible  <bruno@clisp.org>
28145
28146         fnctl: Fix missing dependency.
28147         * modules/fcntl (Depends-on): Add getdtablesize.
28148         Reported by John W. Eaton <jwe@gnu.org>.
28149
28150 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28151
28152         Argp: fix recognition of short alias options.
28153
28154         * lib/argp-parse.c (convert_options): Fix improper use of
28155         `|' between character values.
28156         * tests/test-argp.c (group1_option): New alias option
28157         --read (-r).
28158         (group1_parser): Special handling for 'r'.
28159         (test15): New test case.
28160         (test_fun): Add test15.
28161         * tests/test-argp-2.sh: Update expected --help and --usage
28162         outputs.
28163
28164 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28165
28166         * tests/test-argp.c: Fix indentation.
28167
28168 2010-02-04  Eric Blake  <ebb9@byu.net>
28169
28170         gettimeofday: expose type of second argument
28171         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
28172         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
28173         * tests/test-gettimeofday.c: Use it to silence warning.
28174         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
28175         the issue.
28176
28177 2010-02-03  Jim Meyering  <meyering@redhat.com>
28178
28179         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
28180         * lib/regcomp.c (TYPE_SIGNED): Define.
28181         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
28182
28183         regcomp.c: avoid a new -Wshadow warning
28184         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
28185
28186 2010-02-01  Jim Meyering  <meyering@redhat.com>
28187
28188         removing useless parentheses in cpp #define directives
28189         For motivation, see commit c0221df4, "define STREQ(a,b)
28190         consistently, removing useless parentheses"
28191         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
28192         * lib/mountlist.c (MNT_IGNORE): Likewise.
28193         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
28194
28195 2010-02-01  Eric Blake  <ebb9@byu.net>
28196
28197         sys_time: use link-warning
28198         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
28199         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
28200         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
28201         * modules/sys_time (Depends-on): Add warn-on-use.
28202         (Makefile.am): Always build replacement.
28203         (configure.ac): Update substitutions.
28204         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
28205         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
28206         bother with SYS_TIME_H.
28207         * modules/gettimeofday (configure.ac): Declare indicator.
28208         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
28209         in use.
28210
28211         closein-tests: silence compiler warning
28212         * tests/test-closein.c (main): Ignore fread result.
28213         * modules/closein-tests (Depends-on): Add ignore-value.
28214
28215         tests: silence warning about system return
28216         * tests/test-areadlink-with-size.c (main): Ignore system result.
28217         * tests/test-areadlink.c (main): Likewise.
28218         * tests/test-areadlinkat-with-size.c (main): Likewise.
28219         * tests/test-areadlinkat.c (main): Likewise.
28220         * tests/test-canonicalize-lgpl.c (main): Likewise.
28221         * tests/test-canonicalize.c (main): Likewise.
28222         * tests/test-chown.c (main): Likewise.
28223         * tests/test-fchownat.c (main): Likewise.
28224         * tests/test-fdutimensat.c (main): Likewise.
28225         * tests/test-fstatat.c (main): Likewise.
28226         * tests/test-futimens.c (main): Likewise.
28227         * tests/test-lchown.c (main): Likewise.
28228         * tests/test-link.c (main): Likewise.
28229         * tests/test-linkat.c (main): Likewise.
28230         * tests/test-lstat.c (main): Likewise.
28231         * tests/test-mkdir.c (main): Likewise.
28232         * tests/test-mkdirat.c (main): Likewise.
28233         * tests/test-mkfifo.c (main): Likewise.
28234         * tests/test-mkfifoat.c (main): Likewise.
28235         * tests/test-mknod.c (main): Likewise.
28236         * tests/test-readlink.c (main): Likewise.
28237         * tests/test-remove.c (main): Likewise.
28238         * tests/test-rename.c (main): Likewise.
28239         * tests/test-renameat.c (main): Likewise.
28240         * tests/test-rmdir.c (main): Likewise.
28241         * tests/test-symlink.c (main): Likewise.
28242         * tests/test-symlinkat.c (main): Likewise.
28243         * tests/test-unlink.c (main): Likewise.
28244         * tests/test-unlinkat.c (main): Likewise.
28245         * tests/test-utimens.c (main): Likewise.
28246         * tests/test-utimensat.c (main): Likewise.
28247         * modules/areadlink-tests (Depends-on): Add ignore-value.
28248         * modules/areadlink-with-size-tests (Depends-on): Likewise.
28249         * modules/areadlinkat-tests (Depends-on): Likewise.
28250         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
28251         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28252         * modules/canonicalize-tests (Depends-on): Likewise.
28253         * modules/chown-tests (Depends-on): Likewise.
28254         * modules/fdutimensat-tests (Depends-on): Likewise.
28255         * modules/futimens-tests (Depends-on): Likewise.
28256         * modules/lchown-tests (Depends-on): Likewise.
28257         * modules/link-tests (Depends-on): Likewise.
28258         * modules/linkat-tests (Depends-on): Likewise.
28259         * modules/lstat-tests (Depends-on): Likewise.
28260         * modules/mkdir-tests (Depends-on): Likewise.
28261         * modules/mkfifo-tests (Depends-on): Likewise.
28262         * modules/mkfifoat-tests (Depends-on): Likewise.
28263         * modules/mknod-tests (Depends-on): Likewise.
28264         * modules/openat-tests (Depends-on): Likewise.
28265         * modules/readlink-tests (Depends-on): Likewise.
28266         * modules/remove-tests (Depends-on): Likewise.
28267         * modules/rename-tests (Depends-on): Likewise.
28268         * modules/renameat-tests (Depends-on): Likewise.
28269         * modules/rmdir-tests (Depends-on): Likewise.
28270         * modules/symlink-tests (Depends-on): Likewise.
28271         * modules/symlinkat-tests (Depends-on): Likewise.
28272         * modules/unlink-tests (Depends-on): Likewise.
28273         * modules/utimens-tests (Depends-on): Likewise.
28274         * modules/utimensat-tests (Depends-on): Likewise.
28275
28276 2010-01-31  Bruno Haible  <bruno@clisp.org>
28277
28278         Perform the same test for many <math.h> functions.
28279         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
28280         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
28281         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
28282         of gl_MATHFUNC.
28283         * modules/acos (configure.ac): Likewise.
28284         * modules/asin (configure.ac): Likewise.
28285         * modules/atan (configure.ac): Likewise.
28286         * modules/atan2 (configure.ac): Likewise.
28287         * modules/cbrt (configure.ac): Likewise.
28288         * modules/copysign (configure.ac): Likewise.
28289         * modules/cos (configure.ac): Likewise.
28290         * modules/cosh (configure.ac): Likewise.
28291         * modules/erf (configure.ac): Likewise.
28292         * modules/erfc (configure.ac): Likewise.
28293         * modules/exp (configure.ac): Likewise.
28294         * modules/fmod (configure.ac): Likewise.
28295         * modules/hypot (configure.ac): Likewise.
28296         * modules/j0 (configure.ac): Likewise.
28297         * modules/j1 (configure.ac): Likewise.
28298         * modules/jn (configure.ac): Likewise.
28299         * modules/lgamma (configure.ac): Likewise.
28300         * modules/log (configure.ac): Likewise.
28301         * modules/log10 (configure.ac): Likewise.
28302         * modules/log1p (configure.ac): Likewise.
28303         * modules/pow (configure.ac): Likewise.
28304         * modules/remainder (configure.ac): Likewise.
28305         * modules/sin (configure.ac): Likewise.
28306         * modules/sinh (configure.ac): Likewise.
28307         * modules/tan (configure.ac): Likewise.
28308         * modules/tanh (configure.ac): Likewise.
28309         * modules/y0 (configure.ac): Likewise.
28310         * modules/y1 (configure.ac): Likewise.
28311         * modules/yn (configure.ac): Likewise.
28312         Suggested by Paolo Bonzini.
28313
28314 2010-01-31  Bruno Haible  <bruno@clisp.org>
28315
28316         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
28317
28318 2010-01-31  Bruno Haible  <bruno@clisp.org>
28319
28320         Work around getdelim() bug on FreeBSD 8.0.
28321         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
28322         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
28323         not work.
28324         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
28325         is 1.
28326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
28327         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
28328         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
28329         a non-zero size.
28330         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
28331
28332 2010-01-31  Bruno Haible  <bruno@clisp.org>
28333
28334         Work around getline() bug on FreeBSD 8.0.
28335         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
28336         and a non-zero size.
28337         * tests/test-getline.c (main): Likewise.
28338         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
28339         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
28340
28341 2010-01-28  Eric Blake  <ebb9@byu.net>
28342
28343         regex: fix build failure
28344         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
28345         platforms.
28346
28347 2010-01-28  Jim Meyering  <meyering@redhat.com>
28348
28349         regex: do not ignore memory allocation failure
28350         * lib/regex_internal.c (create_cd_newstate): Detect
28351         re_node_set_init_copy failure.   Extracted from glibc commit
28352         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28353
28354         regex: sync more white-space changes from libc
28355         * lib/regex_internal.c: White-space only changes.
28356         * lib/regexec.c: Likewise.
28357
28358         regex: add many uses of __attribute_warn_unused_result__
28359         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
28360         * lib/regexec.c: Likewise.
28361         Extracted from a messy glibc commit.
28362
28363         regcomp.c: spelling and merge-artifact from glibc
28364         * lib/regcomp.c: Merge remainder of glibc's
28365         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28366
28367         regcomp.c: sync white-space changes from glibc
28368         * lib/regcomp.c: Merge to accommodate white space
28369         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28370
28371         regcomp.c: do not ignore internal return values
28372         * lib/regcomp.c: Do not ignore internal return values.
28373         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
28374         but without its white-space changes and spelling fixes.
28375
28376         regex_internal.h: define __attribute_warn_unused_result__
28377         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
28378
28379         maint: add a syntax-check rule to check for vulnerable Makefile.in
28380         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
28381
28382 2010-01-27  Jim Meyering  <meyering@redhat.com>
28383
28384         ncftpput-ftp: clean up spaces
28385         * build-aux/ncftpput-ftp: Make Copyright line consistent.
28386         Remove trailing blanks.
28387
28388 2010-01-27  Simon Josefsson  <simon@josefsson.org>
28389
28390         * build-aux/git-version-gen: Fix copyright statement.
28391         * build-aux/gnupload: Likewise.
28392         * tests/test-arcfour.c: Likewise.
28393         * tests/test-arctwo.c: Likewise.
28394         * tests/test-count-one-bits.c: Likewise.
28395         * tests/test-crc.c: Likewise.
28396         * tests/test-des.c: Likewise.
28397         * tests/test-gc-arcfour.c: Likewise.
28398         * tests/test-gc-arctwo.c: Likewise.
28399         * tests/test-gc-des.c: Likewise.
28400         * tests/test-gc-hmac-md5.c: Likewise.
28401         * tests/test-gc-hmac-sha1.c: Likewise.
28402         * tests/test-gc-md2.c: Likewise.
28403         * tests/test-gc-md4.c: Likewise.
28404         * tests/test-gc-md5.c: Likewise.
28405         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28406         * tests/test-gc-rijndael.c: Likewise.
28407         * tests/test-gc-sha1.c: Likewise.
28408         * tests/test-gc.c: Likewise.
28409         * tests/test-gethostname.c: Likewise.
28410         * tests/test-gettimeofday.c: Likewise.
28411         * tests/test-hash.c: Likewise.
28412         * tests/test-hmac-md5.c: Likewise.
28413         * tests/test-hmac-sha1.c: Likewise.
28414         * tests/test-md2.c: Likewise.
28415         * tests/test-md4.c: Likewise.
28416         * tests/test-md5.c: Likewise.
28417         * tests/test-memchr.c: Likewise.
28418         * tests/test-memchr2.c: Likewise.
28419         * tests/test-memcmp.c: Likewise.
28420         * tests/test-memmem.c: Likewise.
28421         * tests/test-memrchr.c: Likewise.
28422         * tests/test-rawmemchr.c: Likewise.
28423         * tests/test-read-file.c: Likewise.
28424         * tests/test-rijndael.c: Likewise.
28425         * tests/test-sockets.c: Likewise.
28426         * tests/test-strchrnul.c: Likewise.
28427         * tests/test-strstr.c: Likewise.
28428         * tests/test-strtod.c: Likewise.
28429         * build-aux/ncftpput-ftp: Likewise.
28430
28431 2010-01-26  Eric Blake  <ebb9@byu.net>
28432
28433         ignore-value: update recommended header name
28434         * modules/ignore-value (Include): Only use <> for headers that
28435         exist in glibc.
28436
28437 2010-01-26  Jim Meyering  <meyering@redhat.com>
28438
28439         test-userspec.c: avoid compiler warnings
28440         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
28441         and "initialization discards qualifiers..." warnings.
28442         Put the first "uid" in its own scope, and make char* members "const".
28443
28444 2010-01-25  Bruno Haible  <bruno@clisp.org>
28445
28446         gnulib-tool: Make warning diagnostics consistent.
28447         * gnulib-tool (func_warning): New function.
28448         Use it everywhere where gnulib-tool produces output to stderr and it is
28449         not a fatal error.
28450
28451 2010-01-25  Bruno Haible  <bruno@clisp.org>
28452
28453         Fix test dependencies.
28454         * modules/xstrtol-tests (Depends-on): Add inttypes.
28455         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
28456
28457 2010-01-25 Pádraig Brady <P@draigBrady.com>
28458
28459         syntax-check: detect incorrect boolean macro values in config.h
28460         * modules/maintainer-makefile (configure.ac): Parameterize the location
28461         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
28462         The logic is from Eric Blake and the location indicated by Jim Meyering.
28463         Note the more natural CONFIG_HEADER name is prohibited by automake
28464         for backwards compatibility reasons.
28465         * top/maint.mk (sc_Wundef_boolean): New rule.
28466
28467 2010-01-25  Jim Meyering  <meyering@redhat.com>
28468
28469         bootstrap: detect MacOS 10.6's shasum, too
28470         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
28471         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
28472
28473 2010-01-23  Jim Meyering  <meyering@redhat.com>
28474
28475         xstrtoll: new module
28476         * modules/xstrtoll: New file.
28477         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
28478         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
28479         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
28480         ./configure fails if you use this module and lack "long long".
28481         * modules/xstrtoll-tests: New module.
28482         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
28483         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
28484         new init.sh-based test framework.
28485
28486 2010-01-24  Bruno Haible  <bruno@clisp.org>
28487
28488         Tests for module 'yn'.
28489         * modules/yn-tests: New file.
28490         * tests/test-yn.c: New file.
28491
28492         Tests for module 'y1'.
28493         * modules/y1-tests: New file.
28494         * tests/test-y1.c: New file.
28495
28496         Tests for module 'y0'.
28497         * modules/y0-tests: New file.
28498         * tests/test-y0.c: New file.
28499
28500         Tests for module 'tanh'.
28501         * modules/tanh-tests: New file.
28502         * tests/test-tanh.c: New file.
28503
28504         Tests for module 'tan'.
28505         * modules/tan-tests: New file.
28506         * tests/test-tan.c: New file.
28507
28508         Tests for module 'sqrt'.
28509         * modules/sqrt-tests: New file.
28510         * tests/test-sqrt.c: New file.
28511
28512         Tests for module 'sinh'.
28513         * modules/sinh-tests: New file.
28514         * tests/test-sinh.c: New file.
28515
28516         Tests for module 'sin'.
28517         * modules/sin-tests: New file.
28518         * tests/test-sin.c: New file.
28519
28520         Tests for module 'rint'.
28521         * modules/rint-tests: New file.
28522         * tests/test-rint.c: New file.
28523
28524         Tests for module 'remainder'.
28525         * modules/remainder-tests: New file.
28526         * tests/test-remainder.c: New file.
28527
28528         Tests for module 'pow'.
28529         * modules/pow-tests: New file.
28530         * tests/test-pow.c: New file.
28531
28532         Tests for module 'nextafter'.
28533         * modules/nextafter-tests: New file.
28534         * tests/test-nextafter.c: New file.
28535
28536         Tests for module 'modf'.
28537         * modules/modf-tests: New file.
28538         * tests/test-modf.c: New file.
28539
28540         Tests for module 'logb'.
28541         * modules/logb-tests: New file.
28542         * tests/test-logb.c: New file.
28543
28544         Tests for module 'log1p'.
28545         * modules/log1p-tests: New file.
28546         * tests/test-log1p.c: New file.
28547
28548         Tests for module 'log10'.
28549         * modules/log10-tests: New file.
28550         * tests/test-log10.c: New file.
28551
28552         Tests for module 'log'.
28553         * modules/log-tests: New file.
28554         * tests/test-log.c: New file.
28555
28556         Tests for module 'lgamma'.
28557         * modules/lgamma-tests: New file.
28558         * tests/test-lgamma.c: New file.
28559
28560         Tests for module 'ldexp'.
28561         * modules/ldexp-tests: New file.
28562         * tests/test-ldexp.c: New file.
28563
28564         Tests for module 'jn'.
28565         * modules/jn-tests: New file.
28566         * tests/test-jn.c: New file.
28567
28568         Tests for module 'j1'.
28569         * modules/j1-tests: New file.
28570         * tests/test-j1.c: New file.
28571
28572         Tests for module 'j0'.
28573         * modules/j0-tests: New file.
28574         * tests/test-j0.c: New file.
28575
28576         Tests for module 'hypot'.
28577         * modules/hypot-tests: New file.
28578         * tests/test-hypot.c: New file.
28579
28580         Tests for module 'fmod'.
28581         * modules/fmod-tests: New file.
28582         * tests/test-fmod.c: New file.
28583
28584         Tests for module 'fabs'.
28585         * modules/fabs-tests: New file.
28586         * tests/test-fabs.c: New file.
28587
28588         Tests for module 'exp'.
28589         * modules/exp-tests: New file.
28590         * tests/test-exp.c: New file.
28591
28592         Tests for module 'erfc'.
28593         * modules/erfc-tests: New file.
28594         * tests/test-erfc.c: New file.
28595
28596         Tests for module 'erf'.
28597         * modules/erf-tests: New file.
28598         * tests/test-erf.c: New file.
28599
28600         Tests for module 'cosh'.
28601         * modules/cosh-tests: New file.
28602         * tests/test-cosh.c: New file.
28603
28604         Tests for module 'cos'.
28605         * modules/cos-tests: New file.
28606         * tests/test-cos.c: New file.
28607
28608         Tests for module 'copysign'.
28609         * modules/copysign-tests: New file.
28610         * tests/test-copysign.c: New file.
28611
28612         Tests for module 'cbrt'.
28613         * modules/cbrt-tests: New file.
28614         * tests/test-cbrt.c: New file.
28615
28616         Tests for module 'atan2'.
28617         * modules/atan2-tests: New file.
28618         * tests/test-atan2.c: New file.
28619
28620         Tests for module 'atan'.
28621         * modules/atan-tests: New file.
28622         * tests/test-atan.c: New file.
28623
28624         Tests for module 'asin'.
28625         * modules/asin-tests: New file.
28626         * tests/test-asin.c: New file.
28627
28628         Tests for module 'acos'.
28629         * modules/acos-tests: New file.
28630         * tests/test-acos.c: New file.
28631
28632 2010-01-24  Bruno Haible  <bruno@clisp.org>
28633
28634         Fix tests for common <math.h> functions.
28635         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28636         code snippet that references the function pointer, rather than merely
28637         calling the function. Substitute the FUNC_LIBM variable.
28638         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
28639         * modules/acos (configure.ac): Likewise.
28640         * modules/asin (configure.ac): Likewise.
28641         * modules/atan (configure.ac): Likewise.
28642         * modules/atan2 (configure.ac): Likewise.
28643         * modules/cbrt (configure.ac): Likewise.
28644         * modules/copysign (configure.ac): Likewise.
28645         * modules/cos (configure.ac): Likewise.
28646         * modules/cosh (configure.ac): Likewise.
28647         * modules/erf (configure.ac): Likewise.
28648         * modules/erfc (configure.ac): Likewise.
28649         * modules/exp (configure.ac): Likewise.
28650         * modules/fabs (configure.ac): Likewise.
28651         * modules/fmod (configure.ac): Likewise.
28652         * modules/hypot (configure.ac): Likewise.
28653         * modules/j0 (configure.ac): Likewise.
28654         * modules/j1 (configure.ac): Likewise.
28655         * modules/jn (configure.ac): Likewise.
28656         * modules/ldexp (configure.ac): Likewise.
28657         * modules/lgamma (configure.ac): Likewise.
28658         * modules/log (configure.ac): Likewise.
28659         * modules/log10 (configure.ac): Likewise.
28660         * modules/log1p (configure.ac): Likewise.
28661         * modules/logb (configure.ac): Likewise.
28662         * modules/modf (configure.ac): Likewise.
28663         * modules/nextafter (configure.ac): Likewise.
28664         * modules/pow (configure.ac): Likewise.
28665         * modules/remainder (configure.ac): Likewise.
28666         * modules/rint (configure.ac): Likewise.
28667         * modules/sin (configure.ac): Likewise.
28668         * modules/sinh (configure.ac): Likewise.
28669         * modules/tan (configure.ac): Likewise.
28670         * modules/tanh (configure.ac): Likewise.
28671         * modules/y0 (configure.ac): Likewise.
28672         * modules/y1 (configure.ac): Likewise.
28673         * modules/yn (configure.ac): Likewise.
28674
28675 2010-01-24  Bruno Haible  <bruno@clisp.org>
28676
28677         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28678         * tests/test-acosl.c (x): New variable.
28679         (main): Store argument in x and fetch it from x.
28680         * tests/test-asinl.c (x): New variable.
28681         (main): Store argument in x and fetch it from x.
28682         * tests/test-atanl.c (x): New variable.
28683         (main): Store argument in x and fetch it from x.
28684         * tests/test-cosl.c (x): New variable.
28685         (main): Store argument in x and fetch it from x.
28686         * tests/test-expl.c (x): New variable.
28687         (main): Store argument in x and fetch it from x.
28688         * tests/test-logl.c (x): New variable.
28689         (main): Store argument in x and fetch it from x.
28690         * tests/test-sinl.c (x): New variable.
28691         (main): Store argument in x and fetch it from x.
28692         * tests/test-sqrtl.c (x): New variable.
28693         (main): Store argument in x and fetch it from x.
28694         * tests/test-tanl.c (x): New variable.
28695         (main): Store argument in x and fetch it from x.
28696
28697 2010-01-24  Bruno Haible  <bruno@clisp.org>
28698
28699         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
28700         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
28701         assignments to the initial TESTS_ENVIRONMENT.
28702         * doc/gnulib.texi (Unit test modules): Document it.
28703         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
28704         TESTS_ENVIRONMENT.
28705         * modules/btowc-tests (Makefile.am): Likewise.
28706         * modules/c-stack-tests (Makefile.am): Likewise.
28707         * modules/c-strcase-tests (Makefile.am): Likewise.
28708         * modules/copy-file-tests (Makefile.am): Likewise.
28709         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28710         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28711         * modules/mbrtowc-tests (Makefile.am): Likewise.
28712         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28713         * modules/mbscasestr-tests (Makefile.am): Likewise.
28714         * modules/mbschr-tests (Makefile.am): Likewise.
28715         * modules/mbscspn-tests (Makefile.am): Likewise.
28716         * modules/mbsinit-tests (Makefile.am): Likewise.
28717         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28718         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28719         * modules/mbspbrk-tests (Makefile.am): Likewise.
28720         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28721         * modules/mbsrchr-tests (Makefile.am): Likewise.
28722         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28723         * modules/mbsspn-tests (Makefile.am): Likewise.
28724         * modules/mbsstr-tests (Makefile.am): Likewise.
28725         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28726         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28727         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28728         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28729         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28730         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28731         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28732         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28733         * modules/wcrtomb-tests (Makefile.am): Likewise.
28734         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
28735         * modules/wcsrtombs-tests (Makefile.am): Likewise.
28736         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
28737         assignments from TESTS_ENVIRONMENT.
28738         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
28739         augmentation.
28740         * modules/argp-version-etc-tests (Makefile.am): Likewise.
28741         * modules/atexit-tests (Makefile.am): Likewise.
28742         * modules/binary-io-tests (Makefile.am): Likewise.
28743         * modules/closein-tests (Makefile.am): Likewise.
28744         * modules/dprintf-posix-tests (Makefile.am): Likewise.
28745         * modules/exclude-tests (Makefile.am): Likewise.
28746         * modules/fflush-tests (Makefile.am): Likewise.
28747         * modules/fpending-tests (Makefile.am): Likewise.
28748         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28749         * modules/freadahead-tests (Makefile.am): Likewise.
28750         * modules/freadptr-tests (Makefile.am): Likewise.
28751         * modules/freadseek-tests (Makefile.am): Likewise.
28752         * modules/fseek-tests (Makefile.am): Likewise.
28753         * modules/fseeko-tests (Makefile.am): Likewise.
28754         * modules/ftell-tests (Makefile.am): Likewise.
28755         * modules/ftello-tests (Makefile.am): Likewise.
28756         * modules/idpriv-drop-tests (Makefile.am): Likewise.
28757         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28758         * modules/lseek-tests (Makefile.am): Likewise.
28759         * modules/parse-duration-tests (Makefile.am): Likewise.
28760         * modules/perror-tests (Makefile.am): Likewise.
28761         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28762         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28763         * modules/pipe-tests (Makefile.am): Likewise.
28764         * modules/pread-tests (Makefile.am): Likewise.
28765         * modules/printf-posix-tests (Makefile.am): Likewise.
28766         * modules/select-tests (Makefile.am): Likewise.
28767         * modules/sigpipe-tests (Makefile.am): Likewise.
28768         * modules/tsearch-tests (Makefile.am): Likewise.
28769         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28770         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28771         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28772         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28773         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28774         * modules/version-etc-tests (Makefile.am): Likewise.
28775         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28776         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28777         * modules/xalloc-die-tests (Makefile.am): Likewise.
28778         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28779         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28780         * modules/xstrtol-tests (Makefile.am): Likewise.
28781         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28782         * modules/yesno-tests (Makefile.am): Likewise.
28783         Suggested by Jim Meyering.
28784
28785 2010-01-24  Bruno Haible  <bruno@clisp.org>
28786
28787         More documentation.
28788         * doc/gnulib.texi (Writing modules): New chapter.
28789         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28790         the new chapter.
28791
28792 2010-01-24  Jim Meyering  <meyering@redhat.com>
28793
28794         maint.mk: do not prepend "./" after filtering
28795         * top/maint.mk (_prepend_srcdir_prefix): New variable
28796         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
28797         "./" when $(srcdir) is ".".
28798
28799         define STREQ(a,b) consistently, removing useless parentheses
28800         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
28801         since the only risk is that "a" or "b" contains an unparenthesized
28802         comma, but if either did that, STREQ would have 3 or more arguments.
28803         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
28804         * lib/fts.c (STREQ): Remove unnecessary parentheses.
28805         * lib/hash-triple.c (STREQ): Likewise.
28806         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
28807         * lib/getugroups.c (STREQ): Likewise.
28808
28809 2010-01-23  Jim Meyering  <meyering@redhat.com>
28810
28811         maint.mk: fix syntax-check in a non-srcdir build directory
28812         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28813         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28814
28815 2010-01-22  Jim Meyering  <meyering@redhat.com>
28816
28817         userspec: add unit tests
28818         * tests/test-userspec.c: New file.
28819         * modules/userspec-tests: Likewise.
28820
28821 2010-01-21  Jim Meyering  <meyering@redhat.com>
28822
28823         maint.mk: handle source file names containing "." robustly
28824         * top/maint.mk (_dot_escaped_srcdir): Define.
28825         (VC_LIST): Use it in LHS of sed substitution.
28826
28827 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28828
28829         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28830         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28831         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28832         from a non-srcdir build.
28833
28834 2010-01-20  Eric Blake  <ebb9@byu.net>
28835
28836         warn-on-use: use instead of link-warning
28837         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28838         * modules/unistd (Depends-on, Makefile.am): Likewise.
28839         * modules/arpa_inet (Depends-on): Replace link-warning with
28840         warn-on-use.
28841         (Makefile.am): Update rules accordingly.
28842         * modules/ctype (Depends-on, Makefile.am): Likewise.
28843         * modules/dirent (Depends-on, Makefile.am): Likewise.
28844         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28845         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28846         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28847         * modules/locale (Depends-on, Makefile.am): Likewise.
28848         * modules/math (Depends-on, Makefile.am): Likewise.
28849         * modules/search (Depends-on, Makefile.am): Likewise.
28850         * modules/signal (Depends-on, Makefile.am): Likewise.
28851         * modules/spawn (Depends-on, Makefile.am): Likewise.
28852         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28853         * modules/string (Depends-on, Makefile.am): Likewise.
28854         * modules/strings (Depends-on, Makefile.am): Likewise.
28855         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28856         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28857         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28858         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28859         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28860         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28861         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28862         * modules/wchar (Depends-on, Makefile.am): Likewise.
28863         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28864         should be poisoned.
28865         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28866         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28867         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28868         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28869         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28870         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28871         * m4/math_h.m4 (gl_MATH_H): Likewise.
28872         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28873         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28874         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28875         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28876         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28877         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28878         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28879         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28880         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28881         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28882         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28883         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28884         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28885         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28886         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28887         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28888         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28889         GL_LINK_WARNING.
28890         * lib/ctype.in.h: Likewise.
28891         * lib/dirent.in.h: Likewise.
28892         * lib/fcntl.in.h: Likewise.
28893         * lib/inttypes.in.h: Likewise.
28894         * lib/langinfo.in.h: Likewise.
28895         * lib/locale.in.h: Likewise.
28896         * lib/math.in.h: Likewise.
28897         * lib/search.in.h: Likewise.
28898         * lib/signal.in.h: Likewise.
28899         * lib/spawn.in.h: Likewise.
28900         * lib/stdio.in.h: Likewise.
28901         * lib/stdlib.in.h: Likewise.
28902         * lib/string.in.h: Likewise.
28903         * lib/strings.in.h: Likewise.
28904         * lib/sys_file.in.h: Likewise.
28905         * lib/sys_ioctl.in.h: Likewise.
28906         * lib/sys_select.in.h: Likewise.
28907         * lib/sys_socket.in.h: Likewise.
28908         * lib/sys_stat.in.h: Likewise.
28909         * lib/sys_times.in.h: Likewise.
28910         * lib/sys_utsname.in.h: Likewise.
28911         * lib/unistd.in.h: Likewise.
28912         * lib/wchar.in.h: Likewise.
28913
28914 2010-01-20  Bruno Haible  <bruno@clisp.org>
28915
28916         Avoid duplicate -lm.
28917         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28918         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28919         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28920         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28921         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28922         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28923         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28924         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28925         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28926         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28927         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28928         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28929         Reported by Paolo Bonzini.
28930
28931 2010-01-19  Bruno Haible  <bruno@clisp.org>
28932
28933         langinfo, nl_langinfo: Relicense under LGPLv2+.
28934         * modules/langinfo (License): Change to LGPLv2+.
28935         * modules/nl_langinfo (License): Likewise.
28936         Patch by David Lutterkort <lutter@redhat.com>.
28937
28938 2010-01-19  Bruno Haible  <bruno@clisp.org>
28939
28940         Avoid compilation error with cc on OSF/1 5.1.
28941         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28942         statement, not before.
28943         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28944
28945 2010-01-18  Bruno Haible  <bruno@clisp.org>
28946
28947         Avoid a link error due to the __printf__ symbol.
28948         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28949         and 2.6.x.
28950         (__format__, __printf__): Remove definitions.
28951         * lib/argp-fmtstream.h: Likewise.
28952         * lib/argp.h: Likewise.
28953         * lib/error.h: Likewise.
28954         * lib/vasnprintf.h: Likewise.
28955         * lib/xprintf.h: Likewise.
28956         * lib/xvasprintf.h: Likewise.
28957         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28958
28959 2010-01-18  Bruno Haible  <bruno@clisp.org>
28960
28961         Tests for module 'tanl'.
28962         * modules/tanl-tests: New file.
28963         * tests/test-tanl.c: New file.
28964
28965         Tests for module 'sqrtl'.
28966         * modules/sqrtl-tests: New file.
28967         * tests/test-sqrtl.c: New file.
28968
28969         Tests for module 'sinl'.
28970         * modules/sinl-tests: New file.
28971         * tests/test-sinl.c: New file.
28972
28973         Tests for module 'logl'.
28974         * modules/logl-tests: New file.
28975         * tests/test-logl.c: New file.
28976
28977         Tests for module 'expl'.
28978         * modules/expl-tests: New file.
28979         * tests/test-expl.c: New file.
28980
28981         Tests for module 'cosl'.
28982         * modules/cosl-tests: New file.
28983         * tests/test-cosl.c: New file.
28984
28985         Tests for module 'atanl'.
28986         * modules/atanl-tests: New file.
28987         * tests/test-atanl.c: New file.
28988
28989         Tests for module 'asinl'.
28990         * modules/asinl-tests: New file.
28991         * tests/test-asinl.c: New file.
28992
28993         Tests for module 'acosl'.
28994         * modules/acosl-tests: New file.
28995         * tests/test-acosl.c: New file.
28996
28997         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28998         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28999         tanl): Use the standard gnulib idiom.
29000         * lib/cosl.c: Don't include trigl.c and sincosl.c.
29001         * lib/sinl.c: Likewise.
29002         * lib/tanl.c: Don't include trigl.c.
29003         (kernel_tanl): Make static.
29004         * lib/sincosl.c: Include trigl.h first.
29005         * lib/trigl.c: Likewise.
29006         * m4/acosl.m4: New file.
29007         * m4/asinl.m4: New file.
29008         * m4/atanl.m4: New file.
29009         * m4/cosl.m4: New file.
29010         * m4/expl.m4: New file.
29011         * m4/logl.m4: New file.
29012         * m4/sinl.m4: New file.
29013         * m4/sqrtl.m4: New file.
29014         * m4/tanl.m4: New file.
29015         * m4/mathl.m4: Remove file.
29016         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
29017         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29018         Don't initialize GNULIB_MATHL.
29019         * modules/acosl: New file.
29020         * modules/asinl: New file.
29021         * modules/atanl: New file.
29022         * modules/cosl: New file.
29023         * modules/expl: New file.
29024         * modules/logl: New file.
29025         * modules/sinl: New file.
29026         * modules/sqrtl: New file.
29027         * modules/tanl: New file.
29028         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
29029         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
29030         substitute GNULIB_MATHL.
29031         * modules/mathl: Rewritten.
29032         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
29033         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
29034         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
29035         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
29036         * doc/posix-functions/expl.texi: Mention the 'expl' module.
29037         * doc/posix-functions/logl.texi: Mention the 'logl' module.
29038         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
29039         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
29040         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
29041
29042 2010-01-18  Bruno Haible  <bruno@clisp.org>
29043
29044         sqrt: Make gl_FUNC_SQRT requirable.
29045         * m4/sqrt.m4: New file.
29046         * modules/sqrt (Files): Add it.
29047         (configure.ac): Invoke gl_FUNC_SQRT.
29048
29049 2010-01-18  Bruno Haible  <bruno@clisp.org>
29050
29051         New modules for common <math.h> functions.
29052         * m4/mathfunc.m4: New file.
29053         * modules/acos: New file.
29054         * modules/asin: New file.
29055         * modules/atan: New file.
29056         * modules/atan2: New file.
29057         * modules/cbrt: New file.
29058         * modules/copysign: New file.
29059         * modules/cos: New file.
29060         * modules/cosh: New file.
29061         * modules/erf: New file.
29062         * modules/erfc: New file.
29063         * modules/exp: New file.
29064         * modules/fabs: New file.
29065         * modules/fmod: New file.
29066         * modules/hypot: New file.
29067         * modules/j0: New file.
29068         * modules/j1: New file.
29069         * modules/jn: New file.
29070         * modules/ldexp: New file.
29071         * modules/lgamma: New file.
29072         * modules/log: New file.
29073         * modules/log10: New file.
29074         * modules/log1p: New file.
29075         * modules/logb: New file.
29076         * modules/modf: New file.
29077         * modules/nextafter: New file.
29078         * modules/pow: New file.
29079         * modules/remainder: New file.
29080         * modules/rint: New file.
29081         * modules/sin: New file.
29082         * modules/sinh: New file.
29083         * modules/sqrt: New file.
29084         * modules/tan: New file.
29085         * modules/tanh: New file.
29086         * modules/y0: New file.
29087         * modules/y1: New file.
29088         * modules/yn: New file.
29089         * doc/posix-functions/acos.texi: Mention the 'acos' module.
29090         * doc/posix-functions/asin.texi: Mention the 'asin' module.
29091         * doc/posix-functions/atan.texi: Mention the 'atan' module.
29092         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
29093         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
29094         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
29095         * doc/posix-functions/cos.texi: Mention the 'cos' module.
29096         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
29097         * doc/posix-functions/erf.texi: Mention the 'erf' module.
29098         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
29099         * doc/posix-functions/exp.texi: Mention the 'exp' module.
29100         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
29101         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
29102         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
29103         * doc/posix-functions/j0.texi: Mention the 'j0' module.
29104         * doc/posix-functions/j1.texi: Mention the 'j1' module.
29105         * doc/posix-functions/jn.texi: Mention the 'jn' module.
29106         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
29107         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
29108         * doc/posix-functions/log.texi: Mention the 'log' module.
29109         * doc/posix-functions/log10.texi: Mention the 'log10' module.
29110         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
29111         * doc/posix-functions/logb.texi: Mention the 'logb' module.
29112         * doc/posix-functions/modf.texi: Mention the 'modf' module.
29113         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
29114         * doc/posix-functions/pow.texi: Mention the 'pow' module.
29115         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
29116         * doc/posix-functions/rint.texi: Mention the 'rint' module.
29117         * doc/posix-functions/sin.texi: Mention the 'sin' module.
29118         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
29119         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
29120         * doc/posix-functions/tan.texi: Mention the 'tan' module.
29121         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
29122         * doc/posix-functions/y0.texi: Mention the 'y0' module.
29123         * doc/posix-functions/y1.texi: Mention the 'y1' module.
29124         * doc/posix-functions/yn.texi: Mention the 'yn' module.
29125
29126 2010-01-18  Jim Meyering  <meyering@redhat.com>
29127
29128         ignore-value: relax license to LGPLv2+
29129         * modules/ignore-value (License): Relax to LGPLv2+.
29130
29131         getdate: don't leak when TZ contains two or more '"'s
29132         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
29133         double quote in TZ after the first one.
29134
29135         readtokens: do not leak internal token_lengths buffer
29136         * lib/readtokens.c (readtokens): Free the local, lengths,
29137         when the supplied "token_lengths" parameter is NULL.
29138
29139 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29140
29141         Fix a couple of missing LIBTHREAD link failures on AIX.
29142         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
29143         $(LIBTHREAD).
29144         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
29145
29146         Link test-poll against INET_PTON_LIB.
29147         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
29148         for inet_pton on Solaris 10.
29149
29150 2010-01-17  Bruno Haible  <bruno@clisp.org>
29151
29152         unistdio/*-sprintf: Fix typo in module description.
29153         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
29154         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
29155         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
29156         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
29157         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
29158         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
29159         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
29160         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29161
29162 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29163
29164         gnulib-tool: fix filelist for AIX, HP-UX ksh.
29165         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
29166         variables in shell case patterns, for AIX and HP-UX ksh.
29167
29168         Split large sed scripts, for HP-UX sed.
29169         * modules/stdio: Split sed scripts around 50 sed commands,
29170         to avoid HP-UX limit of 99 commands, in the near future.
29171         * modules/string: Likewise.
29172         * modules/unistd: Likewise.
29173
29174         gnulib-tool: avoid writing in the current directory.
29175         * gnulib-tool (func_emit_lib_Makefile_am)
29176         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
29177         not in the current directory, so concurrent gnulib-tool
29178         instances do not interfere.
29179
29180 2010-01-16  Jim Meyering  <meyering@redhat.com>
29181
29182         doc: update users.txt
29183         * users.txt: Add grep.
29184         (diffutils, gzip): Update URLs.
29185
29186 2010-01-12  Bruno Haible  <bruno@clisp.org>
29187
29188         posix_spawn: Avoid test failure on Cygwin.
29189         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29190         characters.
29191         Reported by Simon Josefsson.
29192
29193 2010-01-12  Bruno Haible  <bruno@clisp.org>
29194
29195         * tests/test-cond.c (main): When skipping the test, show the reason.
29196
29197 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29198
29199         * lib/striconv.c (str_cd_iconv): Avoid if before free.
29200
29201 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29202
29203         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
29204         VC_LIST_ALWAYS_EXCLUDE_REGEX.
29205
29206 2010-01-12  Eric Blake  <ebb9@byu.net>
29207
29208         build: guarantee AS_VAR_IF
29209         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
29210         (gl_AS_VAR_IF): Move...
29211         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
29212         Reported by Simon Josefsson.
29213
29214 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29215
29216         * lib/stdio.in.h: Fix typo.
29217
29218 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29219
29220         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
29221         libgpg-error.
29222
29223 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29224
29225         * tests/test-xalloc-die.sh: Use $EXEEXT.
29226
29227 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29228             Bruno Haible  <bruno@clisp.org>
29229
29230         getlogin, getlogin_r: Avoid test failure.
29231         * tests/test-getlogin.c: Include <stdio.h>.
29232         (main): Skip the test when the function fails because stdin is not a
29233         tty.
29234         * tests/test-getlogin_r.c: Include <stdio.h>.
29235         (main): Skip the test when the function fails because stdin is not a
29236         tty.
29237
29238 2010-01-11  Eric Blake  <ebb9@byu.net>
29239
29240         tests: avoid more large file warnings
29241         * tests/test-fflush.c: Avoid warning about ftell use.
29242         * tests/test-fseek.c: Avoid warning about fseek use.
29243
29244 2010-01-10  Bruno Haible  <bruno@clisp.org>
29245
29246         nproc: Work better on Linux when /proc and /sys are not mounted.
29247         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
29248         as lower bound when, on glibc/Linux systems,
29249         sysconf (_SC_NPROCESSORS_CONF) returns 1.
29250         Suggested by Pádraig Brady <P@draigbrady.com>.
29251         Reported by Dmitry V. Levin <ldv@altlinux.org>.
29252
29253         nproc: Refactor.
29254         * lib/nproc.c (num_processors_via_affinity_mask): New function,
29255         extracted from num_processors.
29256         (num_processors): Call it.
29257
29258 2010-01-11  Jim Meyering  <meyering@redhat.com>
29259
29260         utimecmp: avoid new warning from upcoming gcc-4.5.0
29261         * lib/utimecmp.c (BILLION): Define using #define rather than an
29262         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
29263
29264 2010-01-11  Eric Blake  <ebb9@byu.net>
29265
29266         math: add portability warnings for classification macros
29267         * modules/math (Depends-on): Add warn-on-use.
29268         (Makefile.am): Provide new substitutions.
29269         * m4/math_h.m4 (gl_MATH_H): Require inline.
29270         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
29271         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
29272         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
29273         implement warnings.
29274
29275         unistd: warn on use of environ without module
29276         * modules/unistd (Depends-on): Add warn-on-use.
29277         (Makefile.am): Provide new substitutions.
29278         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
29279         * lib/unistd.in.h (environ): Wrap with a warning helper function.
29280
29281         stdio: warn on suspicious uses
29282         * modules/stdio (Depends-on): Add warn-on-use.
29283         (Makefile.am): Provide new substitutions.
29284         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
29285         fseeko.
29286         * lib/stdio.in.h (gets): Always warn on use.
29287         (fseek, ftell): Adjust when warnings are issued, and honor
29288         _GL_NO_LARGE_FILES as a way to silence the warning.
29289         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
29290         any warning about large file offsets.
29291         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
29292         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
29293         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
29294         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
29295         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
29296         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
29297         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
29298         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
29299
29300         warn-on-use: new module
29301         * modules/warn-on-use: New file.
29302         * build-aux/warn-on-use.h: Likewise.
29303         * m4/warn-on-use.m4: Likewise.
29304         * MODULES.html.sh (Support for building): Mention it.
29305
29306 2010-01-10  Bruno Haible  <bruno@clisp.org>
29307
29308         Tests for module 'unistr/u32-strdup'.
29309         * modules/unistr/u32-strdup-tests: New file.
29310         * tests/unistr/test-u32-strdup.c: New file.
29311
29312         Tests for module 'unistr/u16-strdup'.
29313         * modules/unistr/u16-strdup-tests: New file.
29314         * tests/unistr/test-u16-strdup.c: New file.
29315
29316         Tests for module 'unistr/u8-strdup'.
29317         * modules/unistr/u8-strdup-tests: New file.
29318         * tests/unistr/test-u8-strdup.c: New file.
29319         * tests/unistr/test-strdup.h: New file.
29320
29321         Tests for module 'unistr/u32-strncmp'.
29322         * modules/unistr/u32-strncmp-tests: New file.
29323         * tests/unistr/test-u32-strncmp.c: New file.
29324
29325         Tests for module 'unistr/u16-strncmp'.
29326         * modules/unistr/u16-strncmp-tests: New file.
29327         * tests/unistr/test-u16-strncmp.c: New file.
29328
29329         Tests for module 'unistr/u8-strncmp'.
29330         * modules/unistr/u8-strncmp-tests: New file.
29331         * tests/unistr/test-u8-strncmp.c: New file.
29332         * tests/unistr/test-strncmp.h: New file.
29333
29334         Tests for module 'unistr/u32-strcoll'.
29335         * modules/unistr/u32-strcoll-tests: New file.
29336         * tests/unistr/test-u32-strcoll.c: New file.
29337
29338         Tests for module 'unistr/u16-strcoll'.
29339         * modules/unistr/u16-strcoll-tests: New file.
29340         * tests/unistr/test-u16-strcoll.c: New file.
29341
29342         Tests for module 'unistr/u8-strcoll'.
29343         * modules/unistr/u8-strcoll-tests: New file.
29344         * tests/unistr/test-u8-strcoll.c: New file.
29345
29346         Tests for module 'unistr/u32-strcmp'.
29347         * modules/unistr/u32-strcmp-tests: New file.
29348         * tests/unistr/test-u32-strcmp.c: New file.
29349         * tests/unistr/test-u32-strcmp.h: New file.
29350
29351         Tests for module 'unistr/u16-strcmp'.
29352         * modules/unistr/u16-strcmp-tests: New file.
29353         * tests/unistr/test-u16-strcmp.c: New file.
29354         * tests/unistr/test-u16-strcmp.h: New file.
29355
29356         Tests for module 'unistr/u8-strcmp'.
29357         * modules/unistr/u8-strcmp-tests: New file.
29358         * tests/unistr/test-u8-strcmp.c: New file.
29359         * tests/unistr/test-u8-strcmp.h: New file.
29360         * tests/unistr/test-strcmp.h: New file.
29361
29362         Tests for module 'unistr/u32-strncat'.
29363         * modules/unistr/u32-strncat-tests: New file.
29364         * tests/unistr/test-u32-strncat.c: New file.
29365
29366         Tests for module 'unistr/u16-strncat'.
29367         * modules/unistr/u16-strncat-tests: New file.
29368         * tests/unistr/test-u16-strncat.c: New file.
29369
29370         Tests for module 'unistr/u8-strncat'.
29371         * modules/unistr/u8-strncat-tests: New file.
29372         * tests/unistr/test-u8-strncat.c: New file.
29373         * tests/unistr/test-strncat.h: New file.
29374
29375         Tests for module 'unistr/u32-strcat'.
29376         * modules/unistr/u32-strcat-tests: New file.
29377         * tests/unistr/test-u32-strcat.c: New file.
29378
29379         Tests for module 'unistr/u16-strcat'.
29380         * modules/unistr/u16-strcat-tests: New file.
29381         * tests/unistr/test-u16-strcat.c: New file.
29382
29383         Tests for module 'unistr/u8-strcat'.
29384         * modules/unistr/u8-strcat-tests: New file.
29385         * tests/unistr/test-u8-strcat.c: New file.
29386         * tests/unistr/test-strcat.h: New file.
29387
29388         Tests for module 'unistr/u32-stpncpy'.
29389         * modules/unistr/u32-stpncpy-tests: New file.
29390         * tests/unistr/test-u32-stpncpy.c: New file.
29391
29392         Tests for module 'unistr/u16-stpncpy'.
29393         * modules/unistr/u16-stpncpy-tests: New file.
29394         * tests/unistr/test-u16-stpncpy.c: New file.
29395
29396         Tests for module 'unistr/u8-stpncpy'.
29397         * modules/unistr/u8-stpncpy-tests: New file.
29398         * tests/unistr/test-u8-stpncpy.c: New file.
29399         * tests/unistr/test-stpncpy.h: New file.
29400
29401         Tests for module 'unistr/u32-strncpy'.
29402         * modules/unistr/u32-strncpy-tests: New file.
29403         * tests/unistr/test-u32-strncpy.c: New file.
29404
29405         Tests for module 'unistr/u16-strncpy'.
29406         * modules/unistr/u16-strncpy-tests: New file.
29407         * tests/unistr/test-u16-strncpy.c: New file.
29408
29409         Tests for module 'unistr/u8-strncpy'.
29410         * modules/unistr/u8-strncpy-tests: New file.
29411         * tests/unistr/test-u8-strncpy.c: New file.
29412         * tests/unistr/test-strncpy.h: New file.
29413
29414         Tests for module 'unistr/u32-stpcpy'.
29415         * modules/unistr/u32-stpcpy-tests: New file.
29416         * tests/unistr/test-u32-stpcpy.c: New file.
29417
29418         Tests for module 'unistr/u16-stpcpy'.
29419         * modules/unistr/u16-stpcpy-tests: New file.
29420         * tests/unistr/test-u16-stpcpy.c: New file.
29421
29422         Tests for module 'unistr/u8-stpcpy'.
29423         * modules/unistr/u8-stpcpy-tests: New file.
29424         * tests/unistr/test-u8-stpcpy.c: New file.
29425         * tests/unistr/test-stpcpy.h: New file.
29426
29427         Tests for module 'unistr/u32-strcpy'.
29428         * modules/unistr/u32-strcpy-tests: New file.
29429         * tests/unistr/test-u32-strcpy.c: New file.
29430
29431         Tests for module 'unistr/u16-strcpy'.
29432         * modules/unistr/u16-strcpy-tests: New file.
29433         * tests/unistr/test-u16-strcpy.c: New file.
29434
29435         Tests for module 'unistr/u8-strcpy'.
29436         * modules/unistr/u8-strcpy-tests: New file.
29437         * tests/unistr/test-u8-strcpy.c: New file.
29438         * tests/unistr/test-strcpy.h: New file.
29439
29440         Tests for module 'unistr/u32-strnlen'.
29441         * modules/unistr/u32-strnlen-tests: New file.
29442         * tests/unistr/test-u32-strnlen.c: New file.
29443
29444         Tests for module 'unistr/u16-strnlen'.
29445         * modules/unistr/u16-strnlen-tests: New file.
29446         * tests/unistr/test-u16-strnlen.c: New file.
29447
29448         Tests for module 'unistr/u8-strnlen'.
29449         * modules/unistr/u8-strnlen-tests: New file.
29450         * tests/unistr/test-u8-strnlen.c: New file.
29451         * tests/unistr/test-strnlen.h: New file.
29452
29453         Tests for module 'unistr/u32-strlen'.
29454         * modules/unistr/u32-strlen-tests: New file.
29455         * tests/unistr/test-u32-strlen.c: New file.
29456
29457         Tests for module 'unistr/u16-strlen'.
29458         * modules/unistr/u16-strlen-tests: New file.
29459         * tests/unistr/test-u16-strlen.c: New file.
29460
29461         Tests for module 'unistr/u8-strlen'.
29462         * modules/unistr/u8-strlen-tests: New file.
29463         * tests/unistr/test-u8-strlen.c: New file.
29464
29465         Tests for module 'unistr/u32-prev'.
29466         * modules/unistr/u32-prev-tests: New file.
29467         * tests/unistr/test-u32-prev.c: New file.
29468
29469         Tests for module 'unistr/u16-prev'.
29470         * modules/unistr/u16-prev-tests: New file.
29471         * tests/unistr/test-u16-prev.c: New file.
29472
29473         Tests for module 'unistr/u8-prev'.
29474         * modules/unistr/u8-prev-tests: New file.
29475         * tests/unistr/test-u8-prev.c: New file.
29476
29477         Tests for module 'unistr/u32-next'.
29478         * modules/unistr/u32-next-tests: New file.
29479         * tests/unistr/test-u32-next.c: New file.
29480
29481         Tests for module 'unistr/u16-next'.
29482         * modules/unistr/u16-next-tests: New file.
29483         * tests/unistr/test-u16-next.c: New file.
29484
29485         Tests for module 'unistr/u8-next'.
29486         * modules/unistr/u8-next-tests: New file.
29487         * tests/unistr/test-u8-next.c: New file.
29488
29489         Tests for module 'unistr/u32-strmbtouc'.
29490         * modules/unistr/u32-strmbtouc-tests: New file.
29491         * tests/unistr/test-u32-strmbtouc.c: New file.
29492
29493         Tests for module 'unistr/u16-strmbtouc'.
29494         * modules/unistr/u16-strmbtouc-tests: New file.
29495         * tests/unistr/test-u16-strmbtouc.c: New file.
29496
29497         Tests for module 'unistr/u8-strmbtouc'.
29498         * modules/unistr/u8-strmbtouc-tests: New file.
29499         * tests/unistr/test-u8-strmbtouc.c: New file.
29500
29501         Tests for module 'unistr/u32-strmblen'.
29502         * modules/unistr/u32-strmblen-tests: New file.
29503         * tests/unistr/test-u32-strmblen.c: New file.
29504
29505         Tests for module 'unistr/u16-strmblen'.
29506         * modules/unistr/u16-strmblen-tests: New file.
29507         * tests/unistr/test-u16-strmblen.c: New file.
29508
29509         Tests for module 'unistr/u8-strmblen'.
29510         * modules/unistr/u8-strmblen-tests: New file.
29511         * tests/unistr/test-u8-strmblen.c: New file.
29512
29513         Tests for module 'unistr/u32-cpy-alloc'.
29514         * modules/unistr/u32-cpy-alloc-tests: New file.
29515         * tests/unistr/test-u32-cpy-alloc.c: New file.
29516
29517         Tests for module 'unistr/u16-cpy-alloc'.
29518         * modules/unistr/u16-cpy-alloc-tests: New file.
29519         * tests/unistr/test-u16-cpy-alloc.c: New file.
29520
29521         Tests for module 'unistr/u8-cpy-alloc'.
29522         * modules/unistr/u8-cpy-alloc-tests: New file.
29523         * tests/unistr/test-u8-cpy-alloc.c: New file.
29524         * tests/unistr/test-cpy-alloc.h: New file.
29525
29526         Tests for module 'unistr/u32-mbsnlen'.
29527         * modules/unistr/u32-mbsnlen-tests: New file.
29528         * tests/unistr/test-u32-mbsnlen.c: New file.
29529
29530         Tests for module 'unistr/u16-mbsnlen'.
29531         * modules/unistr/u16-mbsnlen-tests: New file.
29532         * tests/unistr/test-u16-mbsnlen.c: New file.
29533
29534         Tests for module 'unistr/u8-mbsnlen'.
29535         * modules/unistr/u8-mbsnlen-tests: New file.
29536         * tests/unistr/test-u8-mbsnlen.c: New file.
29537
29538         Tests for module 'unistr/u32-chr'.
29539         * modules/unistr/u32-chr-tests: New file.
29540         * tests/unistr/test-u32-chr.c: New file.
29541
29542         Tests for module 'unistr/u16-chr'.
29543         * modules/unistr/u16-chr-tests: New file.
29544         * tests/unistr/test-u16-chr.c: New file.
29545
29546         Tests for module 'unistr/u8-chr'.
29547         * modules/unistr/u8-chr-tests: New file.
29548         * tests/unistr/test-u8-chr.c: New file.
29549         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
29550
29551         Tests for module 'unistr/u32-cmp2'.
29552         * modules/unistr/u32-cmp2-tests: New file.
29553         * tests/unistr/test-u32-cmp2.c: New file.
29554
29555         Tests for module 'unistr/u16-cmp2'.
29556         * modules/unistr/u16-cmp2-tests: New file.
29557         * tests/unistr/test-u16-cmp2.c: New file.
29558
29559         Tests for module 'unistr/u8-cmp2'.
29560         * modules/unistr/u8-cmp2-tests: New file.
29561         * tests/unistr/test-u8-cmp2.c: New file.
29562         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
29563
29564         Tests for module 'unistr/u32-cmp'.
29565         * modules/unistr/u32-cmp-tests: New file.
29566         * tests/unistr/test-u32-cmp.c: New file.
29567
29568         Tests for module 'unistr/u16-cmp'.
29569         * modules/unistr/u16-cmp-tests: New file.
29570         * tests/unistr/test-u16-cmp.c: New file.
29571
29572         Tests for module 'unistr/u8-cmp'.
29573         * modules/unistr/u8-cmp-tests: New file.
29574         * tests/unistr/test-u8-cmp.c: New file.
29575         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
29576
29577         Tests for module 'unistr/u32-set'.
29578         * modules/unistr/u32-set-tests: New file.
29579         * tests/unistr/test-u32-set.c: New file.
29580
29581         Tests for module 'unistr/u16-set'.
29582         * modules/unistr/u16-set-tests: New file.
29583         * tests/unistr/test-u16-set.c: New file.
29584
29585         Tests for module 'unistr/u8-set'.
29586         * modules/unistr/u8-set-tests: New file.
29587         * tests/unistr/test-u8-set.c: New file.
29588         * tests/unistr/test-set.h: New file.
29589
29590         Tests for module 'unistr/u32-move'.
29591         * modules/unistr/u32-move-tests: New file.
29592         * tests/unistr/test-u32-move.c: New file.
29593
29594         Tests for module 'unistr/u16-move'.
29595         * modules/unistr/u16-move-tests: New file.
29596         * tests/unistr/test-u16-move.c: New file.
29597
29598         Tests for module 'unistr/u8-move'.
29599         * modules/unistr/u8-move-tests: New file.
29600         * tests/unistr/test-u8-move.c: New file.
29601         * tests/unistr/test-move.h: New file.
29602
29603         Tests for module 'unistr/u32-cpy'.
29604         * modules/unistr/u32-cpy-tests: New file.
29605         * tests/unistr/test-u32-cpy.c: New file.
29606
29607         Tests for module 'unistr/u16-cpy'.
29608         * modules/unistr/u16-cpy-tests: New file.
29609         * tests/unistr/test-u16-cpy.c: New file.
29610
29611         Tests for module 'unistr/u8-cpy'.
29612         * modules/unistr/u8-cpy-tests: New file.
29613         * tests/unistr/test-u8-cpy.c: New file.
29614         * tests/unistr/test-cpy.h: New file.
29615
29616 2010-01-09  Bruno Haible  <bruno@clisp.org>
29617
29618         Tests for module 'unistr/u32-uctomb'.
29619         * modules/unistr/u32-uctomb-tests: New file.
29620         * tests/unistr/test-u32-uctomb.c: New file.
29621
29622         Tests for module 'unistr/u16-uctomb'.
29623         * modules/unistr/u16-uctomb-tests: New file.
29624         * tests/unistr/test-u16-uctomb.c: New file.
29625
29626         Tests for module 'unistr/u8-uctomb'.
29627         * modules/unistr/u8-uctomb-tests: New file.
29628         * tests/unistr/test-u8-uctomb.c: New file.
29629
29630         Tests for module 'unistr/u32-mbtoucr'.
29631         * modules/unistr/u32-mbtoucr-tests: New file.
29632         * tests/unistr/test-u32-mbtoucr.c: New file.
29633
29634         Tests for module 'unistr/u16-mbtoucr'.
29635         * modules/unistr/u16-mbtoucr-tests: New file.
29636         * tests/unistr/test-u16-mbtoucr.c: New file.
29637
29638         Tests for module 'unistr/u8-mbtoucr'.
29639         * modules/unistr/u8-mbtoucr-tests: New file.
29640         * tests/unistr/test-u8-mbtoucr.c: New file.
29641
29642         Tests for module 'unistr/u32-mbtouc'.
29643         * modules/unistr/u32-mbtouc-tests: New file.
29644         * tests/unistr/test-u32-mbtouc.c: New file.
29645
29646         Tests for module 'unistr/u16-mbtouc'.
29647         * modules/unistr/u16-mbtouc-tests: New file.
29648         * tests/unistr/test-u16-mbtouc.c: New file.
29649
29650         Tests for module 'unistr/u8-mbtouc'.
29651         * modules/unistr/u8-mbtouc-tests: New file.
29652         * tests/unistr/test-u8-mbtouc.c: New file.
29653
29654         Tests for module 'unistr/u32-mbtouc-unsafe'.
29655         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29656         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29657         * tests/unistr/test-u32-mbtouc.h: New file.
29658
29659         Tests for module 'unistr/u16-mbtouc-unsafe'.
29660         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29661         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29662         * tests/unistr/test-u16-mbtouc.h: New file.
29663
29664         Tests for module 'unistr/u8-mbtouc-unsafe'.
29665         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29666         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29667         * tests/unistr/test-u8-mbtouc.h: New file.
29668
29669         Tests for module 'unistr/u32-mblen'.
29670         * modules/unistr/u32-mblen-tests: New file.
29671         * tests/unistr/test-u32-mblen.c: New file.
29672
29673         Tests for module 'unistr/u16-mblen'.
29674         * modules/unistr/u16-mblen-tests: New file.
29675         * tests/unistr/test-u16-mblen.c: New file.
29676
29677         Tests for module 'unistr/u8-mblen'.
29678         * modules/unistr/u8-mblen-tests: New file.
29679         * tests/unistr/test-u8-mblen.c: New file.
29680
29681         Tests for module 'unistr/u32-to-u16'.
29682         * modules/unistr/u32-to-u16-tests: New file.
29683         * tests/unistr/test-u32-to-u16.c: New file.
29684
29685         Tests for module 'unistr/u32-to-u8'.
29686         * modules/unistr/u32-to-u8-tests: New file.
29687         * tests/unistr/test-u32-to-u8.c: New file.
29688
29689         Tests for module 'unistr/u16-to-u32'.
29690         * modules/unistr/u16-to-u32-tests: New file.
29691         * tests/unistr/test-u16-to-u32.c: New file.
29692
29693         Tests for module 'unistr/u16-to-u8'.
29694         * modules/unistr/u16-to-u8-tests: New file.
29695         * tests/unistr/test-u16-to-u8.c: New file.
29696
29697         Tests for module 'unistr/u8-to-u32'.
29698         * modules/unistr/u8-to-u32-tests: New file.
29699         * tests/unistr/test-u8-to-u32.c: New file.
29700
29701         Tests for module 'unistr/u8-to-u16'.
29702         * modules/unistr/u8-to-u16-tests: New file.
29703         * tests/unistr/test-u8-to-u16.c: New file.
29704
29705         Tests for module 'unistr/u32-check'.
29706         * modules/unistr/u32-check-tests: New file.
29707         * tests/unistr/test-u32-check.c: New file.
29708
29709         Tests for module 'unistr/u16-check'.
29710         * modules/unistr/u16-check-tests: New file.
29711         * tests/unistr/test-u16-check.c: New file.
29712
29713         Tests for module 'unistr/u8-check'.
29714         * modules/unistr/u8-check-tests: New file.
29715         * tests/unistr/test-u8-check.c: New file.
29716
29717         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29718         (category_equals): New function.
29719         (main): Add more tests.
29720         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29721
29722         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29723
29724 2010-01-10  Bruno Haible  <bruno@clisp.org>
29725
29726         unistr/u*-strcoll: Try harder to distinguish different strings.
29727         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29728         compare s1 and s2 to see if they are different.
29729
29730 2010-01-10  Bruno Haible  <bruno@clisp.org>
29731
29732         unistr/u*-stpncpy: Fix the return value.
29733         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29734         description of the return value consistent with stpncpy in glibc.
29735         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
29736         written non-NUL unit.
29737
29738 2010-01-10  Bruno Haible  <bruno@clisp.org>
29739
29740         unistr/u*-next: Add missing dependencies.
29741         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
29742         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
29743         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
29744
29745 2010-01-10  Bruno Haible  <bruno@clisp.org>
29746
29747         unistr/u8-mbsnlen: Fix return value for incomplete character.
29748         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
29749         u8_mblen.
29750         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
29751         Remove unistr/u8-mblen.
29752         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
29753         u16_mblen.
29754         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
29755         Remove unistr/u16-mblen.
29756
29757 2010-01-10  Bruno Haible  <bruno@clisp.org>
29758
29759         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29760         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29761         Reported by Brian Gough <bjg@gnu.org> and
29762         Chris Clayton <chris2553@googlemail.com> via
29763         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29764
29765 2010-01-09  Bruno Haible  <bruno@clisp.org>
29766
29767         unistr/u16-to-u32: Reject invalid input.
29768         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29769         u16_mbtouc.
29770         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29771         Remove unistr/u16-mbtouc.
29772
29773         unistr/u16-to-u8: Reject invalid input.
29774         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29775         u16_mbtouc.
29776         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29777         Remove unistr/u16-mbtouc.
29778
29779         unistr/u8-to-u32: Reject invalid input.
29780         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29781         u8_mbtouc.
29782         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29783         Remove unistr/u8-mbtouc.
29784
29785         unistr/u8-to-u16: Reject invalid input.
29786         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29787         u8_mbtouc.
29788         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29789         Remove unistr/u8-mbtouc.
29790
29791 2010-01-09  Bruno Haible  <bruno@clisp.org>
29792
29793         Tests for module 'getlogin'.
29794         * modules/getlogin-tests: New file.
29795         * tests/test-getlogin.c: New file.
29796
29797         New module 'getlogin'.
29798         * lib/unistd.in.h (getlogin): New declaration.
29799         * lib/getlogin.c: New file.
29800         * m4/getlogin.m4: New file.
29801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
29802         HAVE_GETLOGIN.
29803         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
29804         HAVE_GETLOGIN.
29805         * modules/getlogin: New file.
29806         * doc/posix-functions/getlogin.texi: Mention the new module.
29807         Reported by John W. Eaton <jwe@gnu.org>.
29808
29809 2010-01-09  Bruno Haible  <bruno@clisp.org>
29810
29811         getlogin_r: Support for native Windows.
29812         * lib/getlogin_r.c: Include <windows.h>
29813         (getlogin_r): Implement for native Windows.
29814         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29815         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29816         via John W. Eaton <jwe@gnu.org>.
29817
29818 2010-01-09  Bruno Haible  <bruno@clisp.org>
29819
29820         getlogin_r: Small fixes.
29821         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29822         succeeds.
29823         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29824         before testing whether getlogin_r is declared. No need to set
29825         HAVE_DECL_GETLOGIN_R to 1.
29826         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29827
29828 2010-01-09  Bruno Haible  <bruno@clisp.org>
29829
29830         * lib/unistd.in.h (getlogin_r): Add comment.
29831
29832 2010-01-09  Bruno Haible  <bruno@clisp.org>
29833
29834         Tests for module 'getlogin_r'.
29835         * modules/getlogin_r-tests: New file.
29836         * tests/test-getlogin_r.c: New file.
29837
29838 2010-01-09  Jim Meyering  <meyering@redhat.com>
29839
29840         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29841         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29842         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29843
29844 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29845
29846         * lib/dup2.c (rpl_dup2): Improve comment.
29847
29848 2010-01-08  Eric Blake  <ebb9@byu.net>
29849
29850         maint.mk: allow packages to add makefile @@ exceptions
29851         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29852         (sc_makefile_check): Rename...
29853         (sc_makefile_at_at_check): ...to this, and use hook.
29854
29855         dup2: work around mingw bug
29856         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29857         Reported by Simon Josefsson.
29858
29859 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29860
29861         glob: Fix C++ compilation.
29862         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29863         C++.
29864
29865 2010-01-07  Bruno Haible  <bruno@clisp.org>
29866
29867         Fix indentation of wctype.in.h, broken since 2007-01-06.
29868         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29869
29870 2010-01-07  Bruno Haible  <bruno@clisp.org>
29871
29872         mbslen: Avoid collision with system function.
29873         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29874         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29875         * m4/mbslen.m4: New file.
29876         * modules/mbslen (Files): Add it.
29877         (configure.ac): Invoke gl_MBSLEN.
29878         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29879         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29880         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29881         via Ian Beckwith <ianb@erislabs.net>.
29882
29883 2010-01-07  Bruno Haible  <bruno@clisp.org>
29884
29885         dirent: Document the last fix.
29886         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29887
29888 2010-01-07  Bruno Haible  <bruno@clisp.org>
29889
29890         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29891         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29892         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29893         va_list are defined.
29894         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29895         Reported by Eric Blake.
29896
29897 2010-01-07  Bruno Haible  <bruno@clisp.org>
29898
29899         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29900         * modules/xlist (Depends-on): Add 'list',
29901         * modules/xoset (Depends-on): Add 'oset'.
29902         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29903
29904 2010-01-07  Bruno Haible  <bruno@clisp.org>
29905
29906         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29907         * doc/posix-functions/strncasecmp.texi: Likewise.
29908
29909 2010-01-07  Bruno Haible  <bruno@clisp.org>
29910
29911         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29912
29913 2010-01-07  John W. Eaton  <jwe@octave.org>
29914
29915         wctype: allow C++ use
29916         * lib/wctype.in.h: Add extern "C" block for C++.
29917
29918 2010-01-06  Eric Blake  <ebb9@byu.net>
29919
29920         maint.mk: detect incorrect GFDL usage
29921         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29922
29923 2010-01-06  Jim Meyering  <meyering@redhat.com>
29924         and Eric Blake  <ebb9@byu.net>
29925
29926         maint.mk: ignore multi-line copyright in NEWS
29927         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29928
29929 2010-01-06  Eric Blake  <ebb9@byu.net>
29930
29931         select: add missing dependency
29932         * modules/select-tests (Depends-on): Move sockets dependency...
29933         * modules/select (Depends-on): ...here.
29934         Reported by Ian Beckwith.
29935
29936         doc: regenerate INSTALL
29937         * doc/INSTALL: Reflect recent autoconf update.
29938         * doc/INSTALL.ISO: Likewise.
29939         * doc/INSTALL.UTF-8: Likewise.
29940
29941         pread: fix compilation on glibc
29942         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29943         Reported by Ralf Wildenhues.
29944
29945         dirent: fix test failure
29946         * lib/dirent.in.h (includes): Guarantee ino_t.
29947         Reported by Ralf Wildenhues.
29948
29949 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29950
29951         linkat, renameat: avoid bad free
29952         * lib/at-func2.c (at_func2): Fix typo.
29953         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29954
29955 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29956
29957         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29958         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29959         to avoid failure of symlink test later.
29960
29961 2010-01-06  Eric Blake  <ebb9@byu.net>
29962
29963         stdio, unistd: guarantee ssize_t
29964         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29965         2008 are exposed when needed.
29966         * lib/stdio.in.h (includes): Likewise.
29967         Reported by Ralf Wildenhues.
29968
29969 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29970
29971         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29972         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29973         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29974
29975 2010-01-06  Jim Meyering  <meyering@redhat.com>
29976
29977         readtokens: this module *does* require xalloc.h
29978         It uses only functions that were omitted by the old syntax-check rule.
29979         * lib/readtokens.c: Include "xalloc.h" once again.
29980         * modules/readtokens (Depends-on): Add xalloc.
29981         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29982
29983 2010-01-05  Eric Blake  <ebb9@byu.net>
29984
29985         maint: support 'make announcement' from a VPATH build
29986         * top/maint.mk (announcement): Look for correct NEWS file.
29987
29988 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29989
29990         utimens (fdutimens): ignore a negative FD, per contract
29991         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29992         when we have a valid file descriptor.  Otherwise, using a brand
29993         new glibc (with just-patched futimens that now fails with EBADF)
29994         would cause this function to fail with ENOSYS.
29995         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29996         See also http://bugzilla.redhat.com/552320.
29997
29998 2010-01-05  Eric Blake  <ebb9@byu.net>
29999
30000         strcase: document what it provides
30001         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
30002         gnulib module.
30003         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
30004         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
30005
30006 2010-01-05  Jim Meyering  <meyering@redhat.com>
30007
30008         maint: remove useless inclusions of "xalloc.h"
30009         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
30010         * lib/readtokens.c: Likewise.
30011         * lib/same.c: Likewise.
30012         * modules/getloadavg (Depends-on): Remove xalloc.
30013         * modules/readtokens: Likewise.
30014         * modules/same: Likewise.
30015
30016         maint.mk: include 4 more function names in alloca.h-checking regexp
30017         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
30018         regexp.  Before, we would give a false-positive (saying alloca.h
30019         is included unnecessarily) when the only uses involved omitted symbols.
30020
30021         xalloc.h: use consistent formatting
30022         * lib/xalloc.h: Move declarations to start in the first column.
30023
30024 2010-01-05  Eric Blake  <ebb9@byu.net>
30025
30026         mkdir: avoid xalloc
30027         * lib/mkdir.c (includes): Drop unused header.
30028         Reported by John W. Eaton.
30029
30030 2010-01-04  Jim Meyering  <meyering@redhat.com>
30031
30032         nl_langinfo: avoid configure-time syntax error
30033         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
30034         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
30035         the empty string.  Don't let that provoke a shell syntax error.
30036
30037         regcomp, regexec, fnmatch: avoid array bounds read error
30038         * lib/regcomp.c (build_equiv_class): From glibc:
30039         Use only the low 24 bits of a findidx return value as an index
30040         into the weights array.  Patch by Ulrich Drepper:
30041         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
30042         * lib/regexec.c (check_node_accept_bytes): Likewise.
30043         * lib/fnmatch_loop.c (FCT): Likewise.
30044
30045         regcomp: skip collseq lookup when there are no rules
30046         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
30047         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
30048
30049         regcomp: recognize ill-formed { } expressions
30050         * lib/regcomp.c (parse_dup_op): From glibc:
30051         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
30052
30053         regcomp: fix typo in comment
30054         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
30055         s/satisfy/satisfies/.
30056
30057         regcomp: sync from glibc: remove dead store
30058         * lib/regcomp.c (duplicate_node_closure): Remove useless
30059         search_duplicated_node call and dead store.
30060
30061         regcomp: sync from glibc; always use nl_langinfo
30062         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
30063         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
30064         * modules/regex (Depends-on): Add nl_langinfo.
30065
30066 2010-01-04  Eric Blake  <ebb9@byu.net>
30067
30068         fdopendir: fix configure test
30069         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
30070
30071 2010-01-01  Bruno Haible  <bruno@clisp.org>
30072
30073         wchar: Remove unused configure check.
30074         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
30075
30076 2010-01-01  Eric Blake  <ebb9@byu.net>
30077
30078         headers: make check of system header explicit
30079         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
30080         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
30081         ourselves.
30082         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30083         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30084         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30085         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
30086         internals.
30087         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
30088         missing.
30089         Suggested by Bruno Haible.
30090
30091 2010-01-01  Jim Meyering  <meyering@redhat.com>
30092
30093         ChangeLog: tweak to eliminate unnecessary copyright line
30094         * ChangeLog: Remove a copyright line that was mistakenly updated
30095         by today's update-copyright run.  Reported by Eric Blake.
30096
30097         test-update-copyright: don't let envvar setting cause test failure
30098         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30099
30100 2010-01-01  Bruno Haible  <bruno@clisp.org>
30101
30102         localename: Avoid gcc warning.
30103         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
30104         function if it is not used.
30105
30106 2010-01-01  Jim Meyering  <meyering@redhat.com>
30107
30108         update nearly all FSF copyright year lists to include 2010
30109         Use the same procedure as for 2009, outlined in
30110         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
30111
30112         version-etc: set COPYRIGHT_YEAR to 2010
30113         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
30114
30115 2009-12-31  Eric Blake  <ebb9@byu.net>
30116
30117         doc: correct availability of cygwin 1.5.x getopt
30118         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
30119         variables.
30120         * doc/posix-functions/opterr.texi (opterr): Likewise.
30121         * doc/posix-functions/optind.texi (optind): Likewise.
30122         * doc/posix-functions/optopt.texi (optopt): Likewise.
30123         * doc/posix-functions/tzname.texi (tzname): Likewise.
30124
30125         openat: update maintainer
30126         * modules/openat (Maintainer): Add myself.
30127
30128         utimens: avoid shadowing warning
30129         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
30130         buffers into one, to avoid shadowing, as well as avoiding a
30131         redundant stat.
30132         Reported by Jim Meyering.
30133
30134         test-dup2: avoid compiler warning
30135         * tests/test-dup2.c (is_inheritable): Only define if used.
30136
30137 2010-01-01  Bruno Haible  <bruno@clisp.org>
30138
30139         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
30140         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
30141         defined, use wctomb instead of wcrtomb.
30142
30143 2010-01-01  Bruno Haible  <bruno@clisp.org>
30144
30145         iconv: Reject native Solaris iconv.
30146         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
30147         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
30148
30149 2009-12-31  Bruno Haible  <bruno@clisp.org>
30150
30151         * tests/test-signal.c (main): Remove test of 'SIG'.
30152
30153 2009-12-31  Bruno Haible  <bruno@clisp.org>
30154
30155         spawn: Fix incomplete fix.
30156         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30157         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30158         warnings for GNULIB_POSIXCHECK again.
30159         Reported by Eric Blake.
30160
30161 2009-12-31  Bruno Haible  <bruno@clisp.org>
30162
30163         Avoid namespace pollution on glibc systems.
30164         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
30165         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
30166         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
30167         glibc systems.
30168
30169 2009-12-31  Bruno Haible  <bruno@clisp.org>
30170
30171         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30172         (gl_REPLACE_WCHAR_H): Turn into a no-op.
30173         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
30174         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30175         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30176         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30177         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30178
30179 2009-12-31  Bruno Haible  <bruno@clisp.org>
30180
30181         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30182         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
30183         afterwards.
30184
30185 2009-12-31  Bruno Haible  <bruno@clisp.org>
30186
30187         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
30188         SYS_UTSNAME_H.
30189
30190 2009-12-31  Bruno Haible  <bruno@clisp.org>
30191
30192         spawn: Fix misapplied patch.
30193         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30194         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30195         warnings for GNULIB_POSIXCHECK.
30196
30197 2009-12-31  Bruno Haible  <bruno@clisp.org>
30198
30199         times: Update after sys_times changed.
30200         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
30201         * modules/times (Files): Add it.
30202         (configure.ac): Invoke gl_FUNC_TIMES.
30203
30204 2009-12-31  Bruno Haible  <bruno@clisp.org>
30205
30206         Use AC_C_INLINE where necessary.
30207         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
30208         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30209         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
30210         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30211         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30212         * m4/mbiter.m4 (gl_MBITER): Likewise.
30213         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30214         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30215         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
30216         * modules/u64 (configure.ac): Likewise.
30217
30218 2009-12-31  Bruno Haible  <bruno@clisp.org>
30219
30220         Use AC_C_INLINE instead of module 'inline' where possible.
30221         * modules/inline (Description): Clarify purpose.
30222         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
30223         * modules/count-one-bits (Depends-on): Remove inline.
30224         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
30225         * modules/openat (Depends-on): Remove inline.
30226         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
30227         instead of depending on module 'inline'.
30228         * modules/filevercmp (Depends-on, configure.ac): Likewise.
30229         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
30230         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
30231         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
30232         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
30233         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
30234         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
30235         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
30236         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
30237         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
30238         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
30239         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
30240         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
30241         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
30242         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
30243         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
30244         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
30245         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
30246         Likewise.
30247         * modules/unictype/property-ascii-hex-digit (Depends-on,
30248         configure.ac): Likewise.
30249         * modules/unictype/property-bidi-arabic-digit (Depends-on,
30250         configure.ac): Likewise.
30251         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
30252         configure.ac): Likewise.
30253         * modules/unictype/property-bidi-block-separator (Depends-on,
30254         configure.ac): Likewise.
30255         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
30256         configure.ac): Likewise.
30257         * modules/unictype/property-bidi-common-separator (Depends-on,
30258         configure.ac): Likewise.
30259         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
30260         Likewise.
30261         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
30262         configure.ac): Likewise.
30263         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
30264         configure.ac): Likewise.
30265         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
30266         configure.ac): Likewise.
30267         * modules/unictype/property-bidi-european-digit (Depends-on,
30268         configure.ac): Likewise.
30269         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
30270         configure.ac): Likewise.
30271         * modules/unictype/property-bidi-left-to-right (Depends-on,
30272         configure.ac): Likewise.
30273         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
30274         configure.ac): Likewise.
30275         * modules/unictype/property-bidi-other-neutral (Depends-on,
30276         configure.ac): Likewise.
30277         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
30278         Likewise.
30279         * modules/unictype/property-bidi-segment-separator (Depends-on,
30280         configure.ac): Likewise.
30281         * modules/unictype/property-bidi-whitespace (Depends-on,
30282         configure.ac): Likewise.
30283         * modules/unictype/property-combining (Depends-on, configure.ac):
30284         Likewise.
30285         * modules/unictype/property-composite (Depends-on, configure.ac):
30286         Likewise.
30287         * modules/unictype/property-currency-symbol (Depends-on,
30288         configure.ac): Likewise.
30289         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
30290         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
30291         Likewise.
30292         * modules/unictype/property-default-ignorable-code-point (Depends-on,
30293         configure.ac): Likewise.
30294         * modules/unictype/property-deprecated (Depends-on, configure.ac):
30295         Likewise.
30296         * modules/unictype/property-diacritic (Depends-on, configure.ac):
30297         Likewise.
30298         * modules/unictype/property-extender (Depends-on, configure.ac):
30299         Likewise.
30300         * modules/unictype/property-format-control (Depends-on, configure.ac):
30301         Likewise.
30302         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
30303         Likewise.
30304         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
30305         Likewise.
30306         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
30307         Likewise.
30308         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
30309         Likewise.
30310         * modules/unictype/property-hyphen (Depends-on, configure.ac):
30311         Likewise.
30312         * modules/unictype/property-id-continue (Depends-on, configure.ac):
30313         Likewise.
30314         * modules/unictype/property-id-start (Depends-on, configure.ac):
30315         Likewise.
30316         * modules/unictype/property-ideographic (Depends-on, configure.ac):
30317         Likewise.
30318         * modules/unictype/property-ids-binary-operator (Depends-on,
30319         configure.ac): Likewise.
30320         * modules/unictype/property-ids-trinary-operator (Depends-on,
30321         configure.ac): Likewise.
30322         * modules/unictype/property-ignorable-control (Depends-on,
30323         configure.ac): Likewise.
30324         * modules/unictype/property-iso-control (Depends-on, configure.ac):
30325         Likewise.
30326         * modules/unictype/property-join-control (Depends-on, configure.ac):
30327         Likewise.
30328         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
30329         Likewise.
30330         * modules/unictype/property-line-separator (Depends-on, configure.ac):
30331         Likewise.
30332         * modules/unictype/property-logical-order-exception (Depends-on,
30333         configure.ac): Likewise.
30334         * modules/unictype/property-lowercase (Depends-on, configure.ac):
30335         Likewise.
30336         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
30337         * modules/unictype/property-non-break (Depends-on, configure.ac):
30338         Likewise.
30339         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
30340         Likewise.
30341         * modules/unictype/property-numeric (Depends-on, configure.ac):
30342         Likewise.
30343         * modules/unictype/property-other-alphabetic (Depends-on,
30344         configure.ac): Likewise.
30345         * modules/unictype/property-other-default-ignorable-code-point
30346         (Depends-on, configure.ac): Likewise.
30347         * modules/unictype/property-other-grapheme-extend (Depends-on,
30348         configure.ac): Likewise.
30349         * modules/unictype/property-other-id-continue (Depends-on,
30350         configure.ac): Likewise.
30351         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
30352         Likewise.
30353         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
30354         Likewise.
30355         * modules/unictype/property-other-math (Depends-on, configure.ac):
30356         Likewise.
30357         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
30358         Likewise.
30359         * modules/unictype/property-paired-punctuation (Depends-on,
30360         configure.ac): Likewise.
30361         * modules/unictype/property-paragraph-separator (Depends-on,
30362         configure.ac): Likewise.
30363         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
30364         Likewise.
30365         * modules/unictype/property-pattern-white-space (Depends-on,
30366         configure.ac): Likewise.
30367         * modules/unictype/property-private-use (Depends-on, configure.ac):
30368         Likewise.
30369         * modules/unictype/property-punctuation (Depends-on, configure.ac):
30370         Likewise.
30371         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
30372         Likewise.
30373         * modules/unictype/property-radical (Depends-on, configure.ac):
30374         Likewise.
30375         * modules/unictype/property-sentence-terminal (Depends-on,
30376         configure.ac): Likewise.
30377         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
30378         Likewise.
30379         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
30380         * modules/unictype/property-terminal-punctuation (Depends-on,
30381         configure.ac): Likewise.
30382         * modules/unictype/property-titlecase (Depends-on, configure.ac):
30383         Likewise.
30384         * modules/unictype/property-unassigned-code-value (Depends-on,
30385         configure.ac): Likewise.
30386         * modules/unictype/property-unified-ideograph (Depends-on,
30387         configure.ac): Likewise.
30388         * modules/unictype/property-uppercase (Depends-on, configure.ac):
30389         Likewise.
30390         * modules/unictype/property-variation-selector (Depends-on,
30391         configure.ac): Likewise.
30392         * modules/unictype/property-white-space (Depends-on, configure.ac):
30393         Likewise.
30394         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
30395         Likewise.
30396         * modules/unictype/property-xid-start (Depends-on, configure.ac):
30397         Likewise.
30398         * modules/unictype/property-zero-width (Depends-on, configure.ac):
30399         Likewise.
30400         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
30401         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
30402         Likewise.
30403
30404 2009-12-31  Bruno Haible  <bruno@clisp.org>
30405
30406         Remove unnecessary AC_C_INLINE invocation.
30407         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
30408         since 2009-08-21.
30409
30410 2009-12-31  Jim Meyering  <meyering@redhat.com>
30411
30412         maint.mk: don't require explicit gpg_key_ID in cfg.mk
30413         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
30414         With this change, we can all remove the gpg_key_ID = ... definition
30415         from our respective cfg.mk files.
30416
30417         maint.mk: create announcement template in ~/, not in /tmp
30418         * top/maint.mk (emit_upload_commands): Adjust.
30419         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
30420         Remove temporary file, .ci-msg.
30421
30422 2009-12-31  Eric Blake  <ebb9@byu.net>
30423
30424         link-warning: always build headers with link warnings
30425         * modules/arpa_inet (Makefile.am): Always build replacement
30426         header.
30427         * modules/ctype (Makefile.am): Likewise.
30428         * modules/dirent (Makefile.am): Likewise.
30429         * modules/inttypes (Makefile.am): Likewise.
30430         * modules/langinfo (Makefile.am): Likewise.
30431         * modules/locale (Makefile.am): Likewise.
30432         * modules/spawn (Makefile.am): Likewise.
30433         * modules/sys_file (Makefile.am): Likewise.
30434         * modules/sys_ioctl (Makefile.am): Likewise.
30435         * modules/sys_select (Makefile.am): Likewise.
30436         * modules/sys_socket (Makefile.am): Likewise.
30437         * modules/sys_times (Makefile.am): Likewise.
30438         * modules/sys_utsname (Makefile.am): Likewise.
30439         * modules/sys_wait (Makefile.am): Likewise.
30440         * modules/wchar (Makefile.am): Likewise.
30441         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
30442         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
30443         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
30444         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
30445         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
30446         Likewise.
30447         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30448         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30449         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
30450         Likewise.
30451         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
30452         Likewise.
30453         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
30454         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
30455         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
30456         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30457         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30458         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30459         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30460         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
30461         (gl_WCHAR_H_DEFAULTS): Likewise.
30462
30463 2009-12-31  Eric Blake  <ebb9@byu.net>
30464
30465         signal, spawn: use link warnings
30466         * lib/signal.in.h (sigset_t): Make unconditional.
30467         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
30468         (sigpending, sigprocmask, sigaction): Add link warnings.
30469         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
30470         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
30471         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
30472         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
30473         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
30474         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
30475         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
30476         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
30477         (posix_spawn_file_actions_destroy)
30478         (posix_spawn_file_actions_addopen)
30479         (posix_spawn_file_actions_addclose)
30480         (posix_spawn_file_actions_adddup2): Likewise.
30481         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
30482         * tests/test-signal.c (main): Enhance test.
30483
30484         spawn: improve wrapper support
30485         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
30486         (gl_SPAWN_H_DEFAULTS): New defaults.
30487         * modules/spawn (Makefile.am): Substitute them.
30488         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
30489         Only declare if missing or broken.
30490
30491         sys_times, sys_utsname: use include_next
30492         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
30493         header.
30494         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
30495         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30496         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30497         * modules/sys_times (Depends-on): Add include_next.
30498         (Makefile.am): Substitute additional values.
30499         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30500         * lib/sys_times.in.h (includes): Include native header, if
30501         available.
30502         * lib/sys_utsname.in.h (includes): Likewise.
30503         * tests/test-sys_times.c (main): Enhance test.
30504
30505         fdutimensat: revert prior patch
30506         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
30507         utimens.h.
30508         Reported by Bruno Haible.
30509
30510 2009-12-30  Eric Blake  <ebb9@byu.net>
30511
30512         sys_wait: drop link-warning dependency
30513         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
30514         link-warning efforts.
30515         * lib/sys_wait.in.h: Likewise.
30516
30517         fdutimensat: remove bogus dependency
30518         * modules/fdutimensat (Depends-on): Drop inline.
30519
30520         unistd: fix typo
30521         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
30522
30523 2009-12-30  Bruno Haible  <bruno@clisp.org>
30524
30525         Fix compilation error with Solaris cc.
30526         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
30527         * lib/unicase/u16-is-invariant.c: Likewise.
30528         * lib/unicase/u32-is-invariant.c: Likewise.
30529         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30530
30531 2009-12-30  Bruno Haible  <bruno@clisp.org>
30532
30533         Fix test crash.
30534         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
30535         locales.
30536         Reported by Simon Josefsson <simon@josefsson.org>.
30537
30538 2009-12-30  Bruno Haible  <bruno@clisp.org>
30539
30540         Fix compilation error on most platforms.
30541         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
30542         Reported by Simon Josefsson <simon@josefsson.org>
30543         and Nelson H. F. Beebe <beebe@math.utah.edu>.
30544
30545 2009-12-30  Eric Blake  <ebb9@byu.net>
30546
30547         futimens, utimensat: work around ntfs-3g bug
30548         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
30549         a ctime bug is present, and expand workaround to cover ntfs-3g.
30550         * lib/utimens.c (fdutimens, lutimens): Likewise.
30551         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
30552         (validate_timespec): Adjust return value.
30553         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
30554         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30555         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
30556
30557 2009-12-29  Eric Blake  <ebb9@byu.net>
30558
30559         link-warning: make usage consistent
30560         * modules/ctype (Depends-on): Add link-warning.
30561         (Makefile.am): Update rules accordingly.
30562         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30563         * modules/locale (Depends-on, Makefile.am): Likewise.
30564         * modules/sys_file (Makefile.am): Likewise.
30565         * modules/getopt-posix (Makefile.am): Delete unused link warning
30566         efforts.
30567         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
30568         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
30569         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
30570         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
30571
30572         stdio: remove unused variables
30573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
30574         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
30575         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30576
30577         tests: test more substitute headers
30578         * modules/ctype-tests: New file.
30579         * modules/dirent-tests: Likewise.
30580         * modules/spawn-tests: Likewise.
30581         * modules/sys_file-tests: Likewise.
30582         * modules/sys_ioctl-tests: Likewise.
30583         * modules/sys_wait-tests: Likewise.
30584         * tests/test-ctype.c: Likewise.
30585         * tests/test-dirent.c: Likewise.
30586         * tests/test-spawn.c: Likewise.
30587         * tests/test-sys_file.c: Likewise.
30588         * tests/test-sys_ioctl.c: Likewise.
30589         * tests/test-sys_wait.c: Likewise.
30590         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
30591         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
30592         whether or not flock is in use.
30593
30594         tests: remove License section from module
30595         * modules/arpa_inet-tests: Remove unneeded section.
30596         * modules/byteswap-tests: Likewise.
30597         * modules/ceilf-tests: Likewise.
30598         * modules/ceill-tests: Likewise.
30599         * modules/crypto/des-tests: Likewise.
30600         * modules/crypto/gc-arcfour-tests: Likewise.
30601         * modules/crypto/gc-arctwo-tests: Likewise.
30602         * modules/crypto/gc-des-tests: Likewise.
30603         * modules/crypto/gc-hmac-md5-tests: Likewise.
30604         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30605         * modules/crypto/gc-md2-tests: Likewise.
30606         * modules/crypto/gc-md4-tests: Likewise.
30607         * modules/crypto/gc-md5-tests: Likewise.
30608         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30609         * modules/crypto/gc-rijndael-tests: Likewise.
30610         * modules/crypto/gc-sha1-tests: Likewise.
30611         * modules/crypto/gc-tests: Likewise.
30612         * modules/crypto/md2-tests: Likewise.
30613         * modules/crypto/md4-tests: Likewise.
30614         * modules/fcntl-h-tests: Likewise.
30615         * modules/floorf-tests: Likewise.
30616         * modules/floorl-tests: Likewise.
30617         * modules/frexp-nolibm-tests: Likewise.
30618         * modules/frexp-tests: Likewise.
30619         * modules/frexpl-nolibm-tests: Likewise.
30620         * modules/frexpl-tests: Likewise.
30621         * modules/getaddrinfo-tests: Likewise.
30622         * modules/inttypes-tests: Likewise.
30623         * modules/isfinite-tests: Likewise.
30624         * modules/isinf-tests: Likewise.
30625         * modules/ldexpl-tests: Likewise.
30626         * modules/locale-tests: Likewise.
30627         * modules/math-tests: Likewise.
30628         * modules/netdb-tests: Likewise.
30629         * modules/netinet_in-tests: Likewise.
30630         * modules/printf-frexp-tests: Likewise.
30631         * modules/printf-frexpl-tests: Likewise.
30632         * modules/priv-set-tests: Likewise.
30633         * modules/random_r-tests: Likewise.
30634         * modules/round-tests: Likewise.
30635         * modules/roundf-tests: Likewise.
30636         * modules/roundl-tests: Likewise.
30637         * modules/search-tests: Likewise.
30638         * modules/select-tests: Likewise.
30639         * modules/signal-tests: Likewise.
30640         * modules/stdbool-tests: Likewise.
30641         * modules/stddef-tests: Likewise.
30642         * modules/stdint-tests: Likewise.
30643         * modules/stdio-tests: Likewise.
30644         * modules/stdlib-tests: Likewise.
30645         * modules/string-tests: Likewise.
30646         * modules/strings-tests: Likewise.
30647         * modules/sys_select-tests: Likewise.
30648         * modules/sys_socket-tests: Likewise.
30649         * modules/sys_stat-tests: Likewise.
30650         * modules/sys_time-tests: Likewise.
30651         * modules/sys_utsname-tests: Likewise.
30652         * modules/sysexits-tests: Likewise.
30653         * modules/time-tests: Likewise.
30654         * modules/trunc-tests: Likewise.
30655         * modules/truncf-tests: Likewise.
30656         * modules/truncl-tests: Likewise.
30657         * modules/tsearch-tests: Likewise.
30658         * modules/unistd-tests: Likewise.
30659         * modules/wchar-tests: Likewise.
30660         * modules/wctype-tests: Likewise.
30661
30662         tests: fix license on several tests
30663         * tests/test-des.c: Update to GPLv3+.
30664         * tests/test-flock.c: Likewise.
30665         * tests/test-fsync.c: Likewise.
30666         * tests/test-futimens.h: Likewise.
30667         * tests/test-gc-arcfour.c: Likewise.
30668         * tests/test-gc-arctwo.c: Likewise.
30669         * tests/test-gc-des.c: Likewise.
30670         * tests/test-gc-hmac-md5.c: Likewise.
30671         * tests/test-gc-hmac-sha1.c: Likewise.
30672         * tests/test-gc-md2.c: Likewise.
30673         * tests/test-gc-md4.c: Likewise.
30674         * tests/test-gc-md5.c: Likewise.
30675         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30676         * tests/test-gc-rijndael.c: Likewise.
30677         * tests/test-gc-sha1.c: Likewise.
30678         * tests/test-gc.c: Likewise.
30679         * tests/test-getcwd.c: Likewise.
30680         * tests/test-link.c: Likewise.
30681         * tests/test-link.h: Likewise.
30682         * tests/test-lutimens.h: Likewise.
30683         * tests/test-md2.c: Likewise.
30684         * tests/test-md4.c: Likewise.
30685         * tests/test-mkdir.h: Likewise.
30686         * tests/test-rename.c: Likewise.
30687         * tests/test-rename.h: Likewise.
30688         * tests/test-safe-alloc.c: Likewise.
30689         * tests/test-utimens-common.h: Likewise.
30690         * tests/test-utimens.h: Likewise.
30691
30692         maint: sync license texts
30693         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
30694         * doc/gpl-3.0.texi: Revert copyright year update.
30695         * doc/lgpl-3.0.texi: Likewise.
30696
30697 2009-12-29  Jim Meyering  <meyering@redhat.com>
30698
30699         update nearly all FSF copyright year lists to include 2009
30700         The files named by the following are exempted:
30701             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
30702               test -f "$dst" && { echo "$dst"; continue; }
30703               test -d "$dst" || continue
30704               echo "$dst"/$(basename "$src")
30705             done > exempt
30706             git ls-files tests/unictype >> exempt
30707         In the remaining files, convert to all-interval notation if
30708         - there is already at least one year interval like 2000-2003
30709         - the file is maintained by me
30710         - the file is in lib/uni*/, where that style already prevails
30711         Otherwise, use update-copyright's default.
30712
30713 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30714         and Eric Blake  <ebb9@byu.net>
30715
30716         tests: don't require debug system() to pass
30717         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30718         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30719         * tests/test-unlink.h (test_unlink_func): Likewise.
30720         * tests/test-fstatat.c (main): ...into callers.
30721         * tests/test-lstat.c (main): Likewise.
30722         * tests/test-rmdir.c (main): Likewise.
30723         * tests/test-unlink.c (main): Likewise.
30724         * tests/test-unlinkat.c (main): Likewise.
30725         * tests/test-areadlink-with-size.c (main): Don't require a
30726         debug-only system call to pass, aiding cross-testing to mingw.
30727         * tests/test-areadlink.c (main): Likewise.
30728         * tests/test-areadlinkat-with-size.c (main): Likewise.
30729         * tests/test-areadlinkat.c (main): Likewise.
30730         * tests/test-canonicalize-lgpl.c (main): Likewise.
30731         * tests/test-canonicalize.c (main): Likewise.
30732         * tests/test-chown.c (main): Likewise.
30733         * tests/test-fchownat.c (main): Likewise.
30734         * tests/test-lchown.c (main): Likewise.
30735         * tests/test-fdutimensat.c (main): Likewise.
30736         * tests/test-futimens.c (main): Likewise.
30737         * tests/test-link.c (main): Likewise.
30738         * tests/test-linkat.c (main): Likewise.
30739         * tests/test-mkdir.c (main): Likewise.
30740         * tests/test-mkdirat.c (main): Likewise.
30741         * tests/test-mkfifo.c (main): Likewise.
30742         * tests/test-mkfifoat.c (main): Likewise.
30743         * tests/test-mknod.c (main): Likewise.
30744         * tests/test-readlink.c (main): Likewise.
30745         * tests/test-remove.c (main): Likewise.
30746         * tests/test-rename.c (main): Likewise.
30747         * tests/test-renameat.c (main): Likewise.
30748         * tests/test-symlink.c (main): Likewise.
30749         * tests/test-symlinkat.c (main): Likewise.
30750         * tests/test-utimens.c (main): Likewise.
30751         * tests/test-utimensat.c (main): Likewise.
30752
30753 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30754
30755         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
30756         on $(UNUSED_PARAMETER_H) to avoid build failure.
30757
30758 2009-12-28  Jim Meyering  <meyering@redhat.com>
30759
30760         update-copyright: you may specify a max. line length other than 72
30761         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30762
30763         maint: use consistent FSF copyright line syntax
30764         * lib/posixtm.c: Add missing comma in FSF copyright line.
30765         * lib/posixtm.h: Likewise.
30766         * lib/getugroups.c: Add missing ", Inc.".
30767
30768         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30769         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30770         FSF copyright line.  Remove trailing blanks.
30771
30772 2009-12-28  Eric Blake  <ebb9@byu.net>
30773
30774         test-dup2: reduce dependencies
30775         * modules/cloexec (Configure.ac): Set witness.
30776         * modules/dup2-tests (Depends-on): Drop cloexec.
30777         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30778         not present.
30779         Suggested by Bruno Haible.
30780
30781 2009-12-26  Bruno Haible  <bruno@clisp.org>
30782
30783         Remove an unneeded dependency.
30784         * modules/fseterr (Depends-on): Remove dup2.
30785
30786 2009-12-26  Eric Blake  <ebb9@byu.net>
30787
30788         tests: use macros.h in more places
30789         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30790         (ASSERT_STREAM): Provide default of stderr.
30791         * tests/test-dirent-safer.c: Include macros.h, using alternate
30792         stream for assertions.
30793         * tests/test-dup-safer.c: Likewise.
30794         * tests/test-freopen-safer.c: Likewise.
30795         * tests/test-getopt.c: Likewise.
30796         * tests/test-openat-safer.c: Likewise.
30797         * tests/test-pipe.c: Likewise.
30798         * tests/test-popen-safer.c: Likewise.
30799         * modules/dirent-safer-tests (Files): Include macros.h.
30800         * modules/unistd-safer-tests (Files): Likewise.
30801         * modules/freopen-safer-tests (Files): Likewise.
30802         * modules/getopt-posix-tests (Files): Likewise.
30803         * modules/openat-safer-tests (Files): Likewise.
30804         * modules/pipe-tests (Files): Likewise.
30805
30806 2009-12-26  Bruno Haible  <bruno@clisp.org>
30807
30808         javacomp: Portability fix.
30809         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30810         that it also works on Solaris.
30811
30812 2009-12-26  Bruno Haible  <bruno@clisp.org>
30813
30814         localename: Fix storage allocation of gl_locale_name_thread's result.
30815         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30816         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30817         all platforms that have 'uselocale'.
30818         (gl_locale_name_thread_unsafe): New function, extracted from
30819         gl_locale_name_thread.
30820         (gl_locale_name_thread): Call struniq on all platforms that have
30821         'uselocale'.
30822         * tests/test-localename.c (test_locale_name_thread): Check that the
30823         resulting strings are permanently allocated.
30824         * modules/localename-tests (Depends-on): Add strdup.
30825
30826 2009-12-26  Bruno Haible  <bruno@clisp.org>
30827
30828         * tests/test-localename.c (categories): Fill in the strings.
30829
30830 2009-12-26  Jim Meyering  <meyering@redhat.com>
30831
30832         isdir: complete the removal of m4/isdir.m4
30833         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30834
30835         isdir: clean up, since at least grep still uses it
30836         * lib/isdir.c: Include "isdir.h".
30837         (S_ISDIR): Remove now-unneeded definition.
30838         * modules/isdir (Files): Add lib/isdir.h.
30839         * lib/isdir.h: New file, with declaration.
30840         * m4/isdir.m4: Remove file -- unneeded.
30841
30842 2009-12-25  Bruno Haible  <bruno@clisp.org>
30843
30844         selinux-h: Make generated .h files standalone.
30845         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30846         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30847         * lib/se-selinux.in.h: Likewise.
30848         * modules/selinux-h (Depends-on): Add unused-parameter.
30849         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30850         selinux/selinux.h and selinux/context.h.
30851         Suggested by Eric Blake.
30852
30853 2009-12-25  Bruno Haible  <bruno@clisp.org>
30854
30855         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30856         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30857         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30858         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30859         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30860
30861 2009-12-24  Bruno Haible  <bruno@clisp.org>
30862
30863         openat: Fix warning.
30864         * lib/openat-proc.c: Include <unistd.h>.
30865
30866 2009-12-24  Bruno Haible  <bruno@clisp.org>
30867
30868         New module 'unused-parameter'.
30869         * build-aux/unused-parameter.h: New file, extracted from earlier
30870         gnulib-common.m4.
30871         * modules/unused-parameter: New file.
30872         * lib/unistr.h: Include unused-parameter.h.
30873         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30874         _GL_UNUSED.
30875         * modules/unistr/base (Depends-on): Add unused-parameter.
30876
30877 2009-12-24  Bruno Haible  <bruno@clisp.org>
30878
30879         Add missing dependencies to 'extensions' module.
30880         * m4/extensions.m4: Add comment.
30881         * modules/accept4 (Depends-on): Add extensions.
30882         * modules/dup3 (Depends-on): Likewise.
30883         * modules/fcntl (Depends-on): Likewise.
30884         * modules/futimens (Depends-on): Likewise.
30885         * modules/mknod (Depends-on): Likewise.
30886         * modules/pipe2 (Depends-on): Likewise.
30887         * modules/stat-time (Depends-on): Likewise.
30888         * modules/strcasestr-simple (Depends-on): Likewise.
30889         * modules/strsignal (Depends-on): Likewise.
30890         * modules/utimensat (Depends-on): Likewise.
30891         * modules/localcharset (Depends-on): Likewise. Needed because of
30892         gl_FCNTL_O_FLAGS.
30893         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30894         AC_TYPE_MBSTATE_T.
30895         * modules/wcsnrtombs (Depends-on): Likewise.
30896         * modules/wcsrtombs (Depends-on): Likewise.
30897
30898 2009-12-24  Bruno Haible  <bruno@clisp.org>
30899
30900         binary-io: Avoid gcc warning due to SET_BINARY.
30901         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30902         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30903
30904 2009-12-24  Bruno Haible  <bruno@clisp.org>
30905
30906         Avoid future namespace pollution on glibc systems.
30907         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30908         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30909         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30910         glibc systems.
30911
30912 2009-12-24  Bruno Haible  <bruno@clisp.org>
30913
30914         Refactor common macros used in tests.
30915         * tests/macros.h: New file.
30916         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30917         and/or <stdlib.h>, if appropriate.
30918         (ASSERT, SIZEOF): Remove macros.
30919         * tests/test-areadlink-with-size.c: Likewise.
30920         * tests/test-areadlinkat.c: Likewise.
30921         * tests/test-areadlinkat-with-size.c: Likewise.
30922         * tests/test-argmatch.c: Likewise.
30923         * tests/test-argv-iter.c: Likewise.
30924         * tests/test-array-mergesort.c: Likewise.
30925         * tests/test-array_list.c: Likewise.
30926         * tests/test-array_oset.c: Likewise.
30927         * tests/test-avltree_list.c: Likewise.
30928         * tests/test-avltree_oset.c: Likewise.
30929         * tests/test-avltreehash_list.c: Likewise.
30930         * tests/test-base64.c: Likewise.
30931         * tests/test-binary-io.c: Likewise.
30932         * tests/test-bitrotate.c: Likewise.
30933         * tests/test-btowc.c: Likewise.
30934         * tests/test-byteswap.c: Likewise.
30935         * tests/test-c-ctype.c: Likewise.
30936         * tests/test-c-stack.c: Likewise.
30937         * tests/test-c-strcasecmp.c: Likewise.
30938         * tests/test-c-strcasestr.c: Likewise.
30939         * tests/test-c-strncasecmp.c: Likewise.
30940         * tests/test-c-strstr.c: Likewise.
30941         * tests/test-canonicalize-lgpl.c: Likewise.
30942         * tests/test-canonicalize.c: Likewise.
30943         * tests/test-carray_list.c: Likewise.
30944         * tests/test-ceilf1.c: Likewise.
30945         * tests/test-ceilf2.c: Likewise.
30946         * tests/test-ceill.c: Likewise.
30947         * tests/test-chown.c: Likewise.
30948         * tests/test-cloexec.c: Likewise.
30949         * tests/test-copy-acl.c: Likewise.
30950         * tests/test-copy-file.c: Likewise.
30951         * tests/test-count-one-bits.c: Likewise.
30952         * tests/test-dprintf-posix.c: Likewise.
30953         * tests/test-dup2.c: Likewise.
30954         * tests/test-dup3.c: Likewise.
30955         * tests/test-duplocale.c: Likewise.
30956         * tests/test-fbufmode.c: Likewise.
30957         * tests/test-fchdir.c: Likewise.
30958         * tests/test-fchownat.c: Likewise.
30959         * tests/test-fcntl-safer.c: Likewise.
30960         * tests/test-fcntl.c: Likewise.
30961         * tests/test-fdopendir.c: Likewise.
30962         * tests/test-fdutimensat.c: Likewise.
30963         * tests/test-fflush2.c: Likewise.
30964         * tests/test-file-has-acl.c: Likewise.
30965         * tests/test-filevercmp.c: Likewise.
30966         * tests/test-flock.c: Likewise.
30967         * tests/test-floorf1.c: Likewise.
30968         * tests/test-floorf2.c: Likewise.
30969         * tests/test-floorl.c: Likewise.
30970         * tests/test-fnmatch.c: Likewise.
30971         * tests/test-fopen.h: Likewise.
30972         * tests/test-fpending.c: Likewise.
30973         * tests/test-fprintf-posix.c: Likewise.
30974         * tests/test-fpurge.c: Likewise.
30975         * tests/test-freadable.c: Likewise.
30976         * tests/test-freadahead.c: Likewise.
30977         * tests/test-freading.c: Likewise.
30978         * tests/test-freadptr.c: Likewise.
30979         * tests/test-freadptr2.c: Likewise.
30980         * tests/test-freadseek.c: Likewise.
30981         * tests/test-freopen.c: Likewise.
30982         * tests/test-frexp.c: Likewise.
30983         * tests/test-frexpl.c: Likewise.
30984         * tests/test-fseek.c: Likewise.
30985         * tests/test-fseeko.c: Likewise.
30986         * tests/test-fstatat.c: Likewise.
30987         * tests/test-fstrcmp.c: Likewise.
30988         * tests/test-fsync.c: Likewise.
30989         * tests/test-ftell.c: Likewise.
30990         * tests/test-ftello.c: Likewise.
30991         * tests/test-func.c: Likewise.
30992         * tests/test-futimens.c: Likewise.
30993         * tests/test-fwritable.c: Likewise.
30994         * tests/test-fwriting.c: Likewise.
30995         * tests/test-getcwd.c: Likewise.
30996         * tests/test-getdate.c: Likewise.
30997         * tests/test-getdelim.c: Likewise.
30998         * tests/test-getdtablesize.c: Likewise.
30999         * tests/test-getgroups.c: Likewise.
31000         * tests/test-getline.c: Likewise.
31001         * tests/test-getndelim2.c: Likewise.
31002         * tests/test-glob.c: Likewise.
31003         * tests/test-hash.c: Likewise.
31004         * tests/test-i-ring.c: Likewise.
31005         * tests/test-iconv-utf.c: Likewise.
31006         * tests/test-iconv.c: Likewise.
31007         * tests/test-idpriv-drop.c: Likewise.
31008         * tests/test-idpriv-droptemp.c: Likewise.
31009         * tests/test-inet_ntop.c: Likewise.
31010         * tests/test-inet_pton.c: Likewise.
31011         * tests/test-isblank.c: Likewise.
31012         * tests/test-isfinite.c: Likewise.
31013         * tests/test-isinf.c: Likewise.
31014         * tests/test-isnan.c: Likewise.
31015         * tests/test-isnand.h: Likewise.
31016         * tests/test-isnanf.h: Likewise.
31017         * tests/test-isnanl.h: Likewise.
31018         * tests/test-lchown.c: Likewise.
31019         * tests/test-ldexpl.c: Likewise.
31020         * tests/test-link.c: Likewise.
31021         * tests/test-linkat.c: Likewise.
31022         * tests/test-linked_list.c: Likewise.
31023         * tests/test-linkedhash_list.c: Likewise.
31024         * tests/test-localename.c: Likewise.
31025         * tests/test-lseek.c: Likewise.
31026         * tests/test-lstat.c: Likewise.
31027         * tests/test-mbmemcasecmp.c: Likewise.
31028         * tests/test-mbmemcasecoll.c: Likewise.
31029         * tests/test-mbrtowc.c: Likewise.
31030         * tests/test-mbscasecmp.c: Likewise.
31031         * tests/test-mbscasestr1.c: Likewise.
31032         * tests/test-mbscasestr2.c: Likewise.
31033         * tests/test-mbscasestr3.c: Likewise.
31034         * tests/test-mbscasestr4.c: Likewise.
31035         * tests/test-mbschr.c: Likewise.
31036         * tests/test-mbscspn.c: Likewise.
31037         * tests/test-mbsinit.c: Likewise.
31038         * tests/test-mbsncasecmp.c: Likewise.
31039         * tests/test-mbsnrtowcs.c: Likewise.
31040         * tests/test-mbspbrk.c: Likewise.
31041         * tests/test-mbspcasecmp.c: Likewise.
31042         * tests/test-mbsrchr.c: Likewise.
31043         * tests/test-mbsrtowcs.c: Likewise.
31044         * tests/test-mbsspn.c: Likewise.
31045         * tests/test-mbsstr1.c: Likewise.
31046         * tests/test-mbsstr2.c: Likewise.
31047         * tests/test-mbsstr3.c: Likewise.
31048         * tests/test-memchr.c: Likewise.
31049         * tests/test-memchr2.c: Likewise.
31050         * tests/test-memcmp.c: Likewise.
31051         * tests/test-memmem.c: Likewise.
31052         * tests/test-memrchr.c: Likewise.
31053         * tests/test-mkdir.c: Likewise.
31054         * tests/test-mkdirat.c: Likewise.
31055         * tests/test-mkfifo.c: Likewise.
31056         * tests/test-mkfifoat.c: Likewise.
31057         * tests/test-mknod.c: Likewise.
31058         * tests/test-nanosleep.c: Likewise.
31059         * tests/test-nl_langinfo.c: Likewise.
31060         * tests/test-obstack-printf.c: Likewise.
31061         * tests/test-open.c: Likewise.
31062         * tests/test-openat.c: Likewise.
31063         * tests/test-pipe-filter-gi1.c: Likewise.
31064         * tests/test-pipe-filter-gi2-main.c: Likewise.
31065         * tests/test-pipe-filter-ii1.c: Likewise.
31066         * tests/test-pipe-filter-ii2-main.c: Likewise.
31067         * tests/test-pipe2.c: Likewise.
31068         * tests/test-popen.h: Likewise.
31069         * tests/test-posixtm.c: Likewise.
31070         * tests/test-pread.c: Likewise.
31071         * tests/test-printf-frexp.c: Likewise.
31072         * tests/test-printf-frexpl.c: Likewise.
31073         * tests/test-printf-posix.c: Likewise.
31074         * tests/test-priv-set.c: Likewise.
31075         * tests/test-quotearg.c: Likewise.
31076         * tests/test-random_r.c: Likewise.
31077         * tests/test-rawmemchr.c: Likewise.
31078         * tests/test-rbtree_list.c: Likewise.
31079         * tests/test-rbtree_oset.c: Likewise.
31080         * tests/test-rbtreehash_list.c: Likewise.
31081         * tests/test-readlink.c: Likewise.
31082         * tests/test-remove.c: Likewise.
31083         * tests/test-rename.c: Likewise.
31084         * tests/test-renameat.c: Likewise.
31085         * tests/test-rmdir.c: Likewise.
31086         * tests/test-round1.c: Likewise.
31087         * tests/test-roundf1.c: Likewise.
31088         * tests/test-roundl.c: Likewise.
31089         * tests/test-safe-alloc.c: Likewise.
31090         * tests/test-sameacls.c: Likewise.
31091         * tests/test-set-mode-acl.c: Likewise.
31092         * tests/test-setenv.c: Likewise.
31093         * tests/test-sigaction.c: Likewise.
31094         * tests/test-signbit.c: Likewise.
31095         * tests/test-sleep.c: Likewise.
31096         * tests/test-snprintf-posix.c: Likewise.
31097         * tests/test-snprintf.c: Likewise.
31098         * tests/test-sprintf-posix.c: Likewise.
31099         * tests/test-stat-time.c: Likewise.
31100         * tests/test-stat.c: Likewise.
31101         * tests/test-strcasestr.c: Likewise.
31102         * tests/test-strchrnul.c: Likewise.
31103         * tests/test-strerror.c: Likewise.
31104         * tests/test-striconv.c: Likewise.
31105         * tests/test-striconveh.c: Likewise.
31106         * tests/test-striconveha.c: Likewise.
31107         * tests/test-strsignal.c: Likewise.
31108         * tests/test-strstr.c: Likewise.
31109         * tests/test-strtod.c: Likewise.
31110         * tests/test-strverscmp.c: Likewise.
31111         * tests/test-symlink.c: Likewise.
31112         * tests/test-symlinkat.c: Likewise.
31113         * tests/test-trunc1.c: Likewise.
31114         * tests/test-trunc2.c: Likewise.
31115         * tests/test-truncf1.c: Likewise.
31116         * tests/test-truncf2.c: Likewise.
31117         * tests/test-truncl.c: Likewise.
31118         * tests/test-uname.c: Likewise.
31119         * tests/test-unlink.c: Likewise.
31120         * tests/test-unlinkat.c: Likewise.
31121         * tests/test-unsetenv.c: Likewise.
31122         * tests/test-usleep.c: Likewise.
31123         * tests/test-utimens.c: Likewise.
31124         * tests/test-utimensat.c: Likewise.
31125         * tests/test-vasnprintf-posix.c: Likewise.
31126         * tests/test-vasnprintf-posix2.c: Likewise.
31127         * tests/test-vasnprintf.c: Likewise.
31128         * tests/test-vasprintf-posix.c: Likewise.
31129         * tests/test-vasprintf.c: Likewise.
31130         * tests/test-vdprintf-posix.c: Likewise.
31131         * tests/test-vfprintf-posix.c: Likewise.
31132         * tests/test-vprintf-posix.c: Likewise.
31133         * tests/test-vsnprintf-posix.c: Likewise.
31134         * tests/test-vsnprintf.c: Likewise.
31135         * tests/test-vsprintf-posix.c: Likewise.
31136         * tests/test-wcrtomb.c: Likewise.
31137         * tests/test-wcsnrtombs.c: Likewise.
31138         * tests/test-wcsrtombs.c: Likewise.
31139         * tests/test-wctype.c: Likewise.
31140         * tests/test-wcwidth.c: Likewise.
31141         * tests/test-xfprintf-posix.c: Likewise.
31142         * tests/test-xmemdup0.c: Likewise.
31143         * tests/test-xprintf-posix.c: Likewise.
31144         * tests/test-xvasprintf.c: Likewise.
31145         * tests/unicase/test-locale-language.c: Likewise.
31146         * tests/unicase/test-mapping-part1.h: Likewise.
31147         * tests/unicase/test-predicate-part1.h: Likewise.
31148         * tests/unicase/test-u8-casecmp.c: Likewise.
31149         * tests/unicase/test-u8-casecoll.c: Likewise.
31150         * tests/unicase/test-u8-casefold.c: Likewise.
31151         * tests/unicase/test-u8-is-cased.c: Likewise.
31152         * tests/unicase/test-u8-is-casefolded.c: Likewise.
31153         * tests/unicase/test-u8-is-lowercase.c: Likewise.
31154         * tests/unicase/test-u8-is-titlecase.c: Likewise.
31155         * tests/unicase/test-u8-is-uppercase.c: Likewise.
31156         * tests/unicase/test-u8-tolower.c: Likewise.
31157         * tests/unicase/test-u8-totitle.c: Likewise.
31158         * tests/unicase/test-u8-toupper.c: Likewise.
31159         * tests/unicase/test-u16-casecmp.c: Likewise.
31160         * tests/unicase/test-u16-casecoll.c: Likewise.
31161         * tests/unicase/test-u16-casefold.c: Likewise.
31162         * tests/unicase/test-u16-is-cased.c: Likewise.
31163         * tests/unicase/test-u16-is-casefolded.c: Likewise.
31164         * tests/unicase/test-u16-is-lowercase.c: Likewise.
31165         * tests/unicase/test-u16-is-titlecase.c: Likewise.
31166         * tests/unicase/test-u16-is-uppercase.c: Likewise.
31167         * tests/unicase/test-u16-tolower.c: Likewise.
31168         * tests/unicase/test-u16-totitle.c: Likewise.
31169         * tests/unicase/test-u16-toupper.c: Likewise.
31170         * tests/unicase/test-u32-casecmp.c: Likewise.
31171         * tests/unicase/test-u32-casecoll.c: Likewise.
31172         * tests/unicase/test-u32-casefold.c: Likewise.
31173         * tests/unicase/test-u32-is-cased.c: Likewise.
31174         * tests/unicase/test-u32-is-casefolded.c: Likewise.
31175         * tests/unicase/test-u32-is-lowercase.c: Likewise.
31176         * tests/unicase/test-u32-is-titlecase.c: Likewise.
31177         * tests/unicase/test-u32-is-uppercase.c: Likewise.
31178         * tests/unicase/test-u32-tolower.c: Likewise.
31179         * tests/unicase/test-u32-totitle.c: Likewise.
31180         * tests/unicase/test-u32-toupper.c: Likewise.
31181         * tests/unicase/test-ulc-casecmp.c: Likewise.
31182         * tests/unicase/test-ulc-casecoll.c: Likewise.
31183         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31184         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31185         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31186         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31187         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31188         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31189         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31190         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31191         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31192         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31193         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31194         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31195         * tests/unictype/test-bidi_byname.c: Likewise.
31196         * tests/unictype/test-bidi_name.c: Likewise.
31197         * tests/unictype/test-bidi_of.c: Likewise.
31198         * tests/unictype/test-bidi_test.c: Likewise.
31199         * tests/unictype/test-block_list.c: Likewise.
31200         * tests/unictype/test-block_of.c: Likewise.
31201         * tests/unictype/test-block_test.c: Likewise.
31202         * tests/unictype/test-categ_and.c: Likewise.
31203         * tests/unictype/test-categ_and_not.c: Likewise.
31204         * tests/unictype/test-categ_byname.c: Likewise.
31205         * tests/unictype/test-categ_name.c: Likewise.
31206         * tests/unictype/test-categ_none.c: Likewise.
31207         * tests/unictype/test-categ_of.c: Likewise.
31208         * tests/unictype/test-categ_or.c: Likewise.
31209         * tests/unictype/test-categ_test_withtable.c: Likewise.
31210         * tests/unictype/test-combining.c: Likewise.
31211         * tests/unictype/test-decdigit.c: Likewise.
31212         * tests/unictype/test-digit.c: Likewise.
31213         * tests/unictype/test-mirror.c: Likewise.
31214         * tests/unictype/test-numeric.c: Likewise.
31215         * tests/unictype/test-pr_byname.c: Likewise.
31216         * tests/unictype/test-pr_test.c: Likewise.
31217         * tests/unictype/test-predicate-part1.h: Likewise.
31218         * tests/unictype/test-scripts.c: Likewise.
31219         * tests/unictype/test-sy_c_ident.c: Likewise.
31220         * tests/unictype/test-sy_java_ident.c: Likewise.
31221         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
31222         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
31223         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
31224         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
31225         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
31226         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
31227         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
31228         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
31229         * tests/uninorm/test-canonical-decomposition.c: Likewise.
31230         * tests/uninorm/test-compat-decomposition.c: Likewise.
31231         * tests/uninorm/test-composition.c: Likewise.
31232         * tests/uninorm/test-decomposing-form.c: Likewise.
31233         * tests/uninorm/test-decomposition.c: Likewise.
31234         * tests/uninorm/test-u8-nfc.c: Likewise.
31235         * tests/uninorm/test-u8-nfd.c: Likewise.
31236         * tests/uninorm/test-u8-nfkc.c: Likewise.
31237         * tests/uninorm/test-u8-nfkd.c: Likewise.
31238         * tests/uninorm/test-u8-normcmp.c: Likewise.
31239         * tests/uninorm/test-u8-normcoll.c: Likewise.
31240         * tests/uninorm/test-u16-nfc.c: Likewise.
31241         * tests/uninorm/test-u16-nfd.c: Likewise.
31242         * tests/uninorm/test-u16-nfkc.c: Likewise.
31243         * tests/uninorm/test-u16-nfkd.c: Likewise.
31244         * tests/uninorm/test-u16-normcmp.c: Likewise.
31245         * tests/uninorm/test-u16-normcoll.c: Likewise.
31246         * tests/uninorm/test-u32-nfc.c: Likewise.
31247         * tests/uninorm/test-u32-nfd.c: Likewise.
31248         * tests/uninorm/test-u32-nfkc.c: Likewise.
31249         * tests/uninorm/test-u32-nfkd.c: Likewise.
31250         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31251         * tests/uninorm/test-u32-normcmp.c: Likewise.
31252         * tests/uninorm/test-u32-normcoll.c: Likewise.
31253         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
31254         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31255         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31256         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31257         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31258         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31259         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31260         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31261         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31262         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31263         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31264         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31265         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31266         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31267         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31268         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31269         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31270         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31271         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31272         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31273         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31274         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31275         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31276         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31277         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31278         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31279         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31280         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31281         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31282         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
31283         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
31284         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
31285         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
31286         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31287         * tests/uniwidth/test-u8-width.c: Likewise.
31288         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31289         * tests/uniwidth/test-u16-width.c: Likewise.
31290         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31291         * tests/uniwidth/test-u32-width.c: Likewise.
31292         * tests/uniwidth/test-uc_width.c: Likewise.
31293         * tests/uniwidth/test-uc_width2.c: Likewise.
31294         * modules/acl-tests (Files): Add tests/macros.h.
31295         * modules/areadlink-tests (Files): Likewise.
31296         * modules/areadlink-with-size-tests (Files): Likewise.
31297         * modules/areadlinkat-tests (Files): Likewise.
31298         * modules/areadlinkat-with-size-tests (Files): Likewise.
31299         * modules/argmatch-tests (Files): Likewise.
31300         * modules/argv-iter-tests (Files): Likewise.
31301         * modules/array-list-tests (Files): Likewise.
31302         * modules/array-mergesort-tests (Files): Likewise.
31303         * modules/array-oset-tests (Files): Likewise.
31304         * modules/avltree-list-tests (Files): Likewise.
31305         * modules/avltree-oset-tests (Files): Likewise.
31306         * modules/avltreehash-list-tests (Files): Likewise.
31307         * modules/base64-tests (Files): Likewise.
31308         * modules/binary-io-tests (Files): Likewise.
31309         * modules/bitrotate-tests (Files): Likewise.
31310         * modules/btowc-tests (Files): Likewise.
31311         * modules/byteswap-tests (Files): Likewise.
31312         * modules/c-ctype-tests (Files): Likewise.
31313         * modules/c-stack-tests (Files): Likewise.
31314         * modules/c-strcase-tests (Files): Likewise.
31315         * modules/c-strcasestr-tests (Files): Likewise.
31316         * modules/c-strstr-tests (Files): Likewise.
31317         * modules/canonicalize-lgpl-tests (Files): Likewise.
31318         * modules/canonicalize-tests (Files): Likewise.
31319         * modules/carray-list-tests (Files): Likewise.
31320         * modules/ceilf-tests (Files): Likewise.
31321         * modules/ceill-tests (Files): Likewise.
31322         * modules/chown-tests (Files): Likewise.
31323         * modules/cloexec-tests (Files): Likewise.
31324         * modules/copy-file-tests (Files): Likewise.
31325         * modules/count-one-bits-tests (Files): Likewise.
31326         * modules/dprintf-posix-tests (Files): Likewise.
31327         * modules/dup2-tests (Files): Likewise.
31328         * modules/dup3-tests (Files): Likewise.
31329         * modules/duplocale-tests (Files): Likewise.
31330         * modules/fbufmode-tests (Files): Likewise.
31331         * modules/fchdir-tests (Files): Likewise.
31332         * modules/fcntl-safer-tests (Files): Likewise.
31333         * modules/fcntl-tests (Files): Likewise.
31334         * modules/fdopendir-tests (Files): Likewise.
31335         * modules/fdutimensat-tests (Files): Likewise.
31336         * modules/fflush-tests (Files): Likewise.
31337         * modules/filevercmp-tests (Files): Likewise.
31338         * modules/flock-tests (Files): Likewise.
31339         * modules/floorf-tests (Files): Likewise.
31340         * modules/floorl-tests (Files): Likewise.
31341         * modules/fnmatch-tests (Files): Likewise.
31342         * modules/fopen-safer-tests (Files): Likewise.
31343         * modules/fopen-tests (Files): Likewise.
31344         * modules/fpending-tests (Files): Likewise.
31345         * modules/fprintf-posix-tests (Files): Likewise.
31346         * modules/fpurge-tests (Files): Likewise.
31347         * modules/freadable-tests (Files): Likewise.
31348         * modules/freadahead-tests (Files): Likewise.
31349         * modules/freading-tests (Files): Likewise.
31350         * modules/freadptr-tests (Files): Likewise.
31351         * modules/freadseek-tests (Files): Likewise.
31352         * modules/freopen-tests (Files): Likewise.
31353         * modules/frexp-nolibm-tests (Files): Likewise.
31354         * modules/frexp-tests (Files): Likewise.
31355         * modules/frexpl-nolibm-tests (Files): Likewise.
31356         * modules/frexpl-tests (Files): Likewise.
31357         * modules/fseek-tests (Files): Likewise.
31358         * modules/fseeko-tests (Files): Likewise.
31359         * modules/fstrcmp-tests (Files): Likewise.
31360         * modules/fsync-tests (Files): Likewise.
31361         * modules/ftell-tests (Files): Likewise.
31362         * modules/ftello-tests (Files): Likewise.
31363         * modules/func-tests (Files): Likewise.
31364         * modules/futimens-tests (Files): Likewise.
31365         * modules/fwritable-tests (Files): Likewise.
31366         * modules/fwriting-tests (Files): Likewise.
31367         * modules/getcwd-tests (Files): Likewise.
31368         * modules/getdate-tests (Files): Likewise.
31369         * modules/getdelim-tests (Files): Likewise.
31370         * modules/getdtablesize-tests (Files): Likewise.
31371         * modules/getgroups-tests (Files): Likewise.
31372         * modules/getline-tests (Files): Likewise.
31373         * modules/getndelim2-tests (Files): Likewise.
31374         * modules/glob-tests (Files): Likewise.
31375         * modules/hash-tests (Files): Likewise.
31376         * modules/i-ring-tests (Files): Likewise.
31377         * modules/iconv-tests (Files): Likewise.
31378         * modules/iconv_open-utf-tests (Files): Likewise.
31379         * modules/idpriv-drop-tests (Files): Likewise.
31380         * modules/idpriv-droptemp-tests (Files): Likewise.
31381         * modules/inet_ntop-tests (Files): Likewise.
31382         * modules/inet_pton-tests (Files): Likewise.
31383         * modules/isblank-tests (Files): Likewise.
31384         * modules/isfinite-tests (Files): Likewise.
31385         * modules/isinf-tests (Files): Likewise.
31386         * modules/isnan-tests (Files): Likewise.
31387         * modules/isnand-nolibm-tests (Files): Likewise.
31388         * modules/isnand-tests (Files): Likewise.
31389         * modules/isnanf-nolibm-tests (Files): Likewise.
31390         * modules/isnanf-tests (Files): Likewise.
31391         * modules/isnanl-nolibm-tests (Files): Likewise.
31392         * modules/isnanl-tests (Files): Likewise.
31393         * modules/lchown-tests (Files): Likewise.
31394         * modules/ldexpl-tests (Files): Likewise.
31395         * modules/link-tests (Files): Likewise.
31396         * modules/linkat-tests (Files): Likewise.
31397         * modules/linked-list-tests (Files): Likewise.
31398         * modules/linkedhash-list-tests (Files): Likewise.
31399         * modules/localename-tests (Files): Likewise.
31400         * modules/lseek-tests (Files): Likewise.
31401         * modules/lstat-tests (Files): Likewise.
31402         * modules/mbmemcasecmp-tests (Files): Likewise.
31403         * modules/mbmemcasecoll-tests (Files): Likewise.
31404         * modules/mbrtowc-tests (Files): Likewise.
31405         * modules/mbscasecmp-tests (Files): Likewise.
31406         * modules/mbscasestr-tests (Files): Likewise.
31407         * modules/mbschr-tests (Files): Likewise.
31408         * modules/mbscspn-tests (Files): Likewise.
31409         * modules/mbsinit-tests (Files): Likewise.
31410         * modules/mbsncasecmp-tests (Files): Likewise.
31411         * modules/mbsnrtowcs-tests (Files): Likewise.
31412         * modules/mbspbrk-tests (Files): Likewise.
31413         * modules/mbspcasecmp-tests (Files): Likewise.
31414         * modules/mbsrchr-tests (Files): Likewise.
31415         * modules/mbsrtowcs-tests (Files): Likewise.
31416         * modules/mbsspn-tests (Files): Likewise.
31417         * modules/mbsstr-tests (Files): Likewise.
31418         * modules/memchr-tests (Files): Likewise.
31419         * modules/memchr2-tests (Files): Likewise.
31420         * modules/memcmp-tests (Files): Likewise.
31421         * modules/memmem-tests (Files): Likewise.
31422         * modules/memrchr-tests (Files): Likewise.
31423         * modules/mkdir-tests (Files): Likewise.
31424         * modules/mkfifo-tests (Files): Likewise.
31425         * modules/mkfifoat-tests (Files): Likewise.
31426         * modules/mknod-tests (Files): Likewise.
31427         * modules/nanosleep-tests (Files): Likewise.
31428         * modules/nl_langinfo-tests (Files): Likewise.
31429         * modules/obstack-printf-tests (Files): Likewise.
31430         * modules/open-tests (Files): Likewise.
31431         * modules/openat-tests (Files): Likewise.
31432         * modules/pipe-filter-gi-tests (Files): Likewise.
31433         * modules/pipe-filter-ii-tests (Files): Likewise.
31434         * modules/pipe2-tests (Files): Likewise.
31435         * modules/popen-safer-tests (Files): Likewise.
31436         * modules/popen-tests (Files): Likewise.
31437         * modules/posixtm-tests (Files): Likewise.
31438         * modules/pread-tests (Files): Likewise.
31439         * modules/printf-frexp-tests (Files): Likewise.
31440         * modules/printf-frexpl-tests (Files): Likewise.
31441         * modules/printf-posix-tests (Files): Likewise.
31442         * modules/priv-set-tests (Files): Likewise.
31443         * modules/quotearg-tests (Files): Likewise.
31444         * modules/random_r-tests (Files): Likewise.
31445         * modules/rawmemchr-tests (Files): Likewise.
31446         * modules/rbtree-list-tests (Files): Likewise.
31447         * modules/rbtree-oset-tests (Files): Likewise.
31448         * modules/rbtreehash-list-tests (Files): Likewise.
31449         * modules/readlink-tests (Files): Likewise.
31450         * modules/remove-tests (Files): Likewise.
31451         * modules/rename-tests (Files): Likewise.
31452         * modules/renameat-tests (Files): Likewise.
31453         * modules/rmdir-tests (Files): Likewise.
31454         * modules/round-tests (Files): Likewise.
31455         * modules/roundf-tests (Files): Likewise.
31456         * modules/roundl-tests (Files): Likewise.
31457         * modules/safe-alloc-tests (Files): Likewise.
31458         * modules/setenv-tests (Files): Likewise.
31459         * modules/sigaction-tests (Files): Likewise.
31460         * modules/signbit-tests (Files): Likewise.
31461         * modules/sleep-tests (Files): Likewise.
31462         * modules/snprintf-posix-tests (Files): Likewise.
31463         * modules/snprintf-tests (Files): Likewise.
31464         * modules/sprintf-posix-tests (Files): Likewise.
31465         * modules/stat-tests (Files): Likewise.
31466         * modules/stat-time-tests (Files): Likewise.
31467         * modules/strcasestr-tests (Files): Likewise.
31468         * modules/strchrnul-tests (Files): Likewise.
31469         * modules/strerror-tests (Files): Likewise.
31470         * modules/striconv-tests (Files): Likewise.
31471         * modules/striconveh-tests (Files): Likewise.
31472         * modules/striconveha-tests (Files): Likewise.
31473         * modules/strsignal-tests (Files): Likewise.
31474         * modules/strstr-tests (Files): Likewise.
31475         * modules/strtod-tests (Files): Likewise.
31476         * modules/strverscmp-tests (Files): Likewise.
31477         * modules/symlink-tests (Files): Likewise.
31478         * modules/symlinkat-tests (Files): Likewise.
31479         * modules/trunc-tests (Files): Likewise.
31480         * modules/truncf-tests (Files): Likewise.
31481         * modules/truncl-tests (Files): Likewise.
31482         * modules/uname-tests (Files): Likewise.
31483         * modules/unicase/cased-tests (Files): Likewise.
31484         * modules/unicase/ignorable-tests (Files): Likewise.
31485         * modules/unicase/locale-language-tests (Files): Likewise.
31486         * modules/unicase/tolower-tests (Files): Likewise.
31487         * modules/unicase/totitle-tests (Files): Likewise.
31488         * modules/unicase/toupper-tests (Files): Likewise.
31489         * modules/unicase/u8-casecmp-tests (Files): Likewise.
31490         * modules/unicase/u8-casecoll-tests (Files): Likewise.
31491         * modules/unicase/u8-casefold-tests (Files): Likewise.
31492         * modules/unicase/u8-is-cased-tests (Files): Likewise.
31493         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
31494         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
31495         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
31496         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
31497         * modules/unicase/u8-tolower-tests (Files): Likewise.
31498         * modules/unicase/u8-totitle-tests (Files): Likewise.
31499         * modules/unicase/u8-toupper-tests (Files): Likewise.
31500         * modules/unicase/u16-casecmp-tests (Files): Likewise.
31501         * modules/unicase/u16-casecoll-tests (Files): Likewise.
31502         * modules/unicase/u16-casefold-tests (Files): Likewise.
31503         * modules/unicase/u16-is-cased-tests (Files): Likewise.
31504         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
31505         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
31506         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
31507         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
31508         * modules/unicase/u16-tolower-tests (Files): Likewise.
31509         * modules/unicase/u16-totitle-tests (Files): Likewise.
31510         * modules/unicase/u16-toupper-tests (Files): Likewise.
31511         * modules/unicase/u32-casecmp-tests (Files): Likewise.
31512         * modules/unicase/u32-casecoll-tests (Files): Likewise.
31513         * modules/unicase/u32-casefold-tests (Files): Likewise.
31514         * modules/unicase/u32-is-cased-tests (Files): Likewise.
31515         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
31516         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
31517         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
31518         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
31519         * modules/unicase/u32-tolower-tests (Files): Likewise.
31520         * modules/unicase/u32-totitle-tests (Files): Likewise.
31521         * modules/unicase/u32-toupper-tests (Files): Likewise.
31522         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
31523         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
31524         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
31525         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
31526         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
31527         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
31528         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
31529         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
31530         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
31531         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
31532         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
31533         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
31534         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
31535         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
31536         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
31537         * modules/unictype/bidicategory-name-tests (Files): Likewise.
31538         * modules/unictype/bidicategory-of-tests (Files): Likewise.
31539         * modules/unictype/bidicategory-test-tests (Files): Likewise.
31540         * modules/unictype/block-list-tests (Files): Likewise.
31541         * modules/unictype/block-of-tests (Files): Likewise.
31542         * modules/unictype/block-test-tests (Files): Likewise.
31543         * modules/unictype/category-C-tests (Files): Likewise.
31544         * modules/unictype/category-Cc-tests (Files): Likewise.
31545         * modules/unictype/category-Cf-tests (Files): Likewise.
31546         * modules/unictype/category-Cn-tests (Files): Likewise.
31547         * modules/unictype/category-Co-tests (Files): Likewise.
31548         * modules/unictype/category-Cs-tests (Files): Likewise.
31549         * modules/unictype/category-L-tests (Files): Likewise.
31550         * modules/unictype/category-Ll-tests (Files): Likewise.
31551         * modules/unictype/category-Lm-tests (Files): Likewise.
31552         * modules/unictype/category-Lo-tests (Files): Likewise.
31553         * modules/unictype/category-Lt-tests (Files): Likewise.
31554         * modules/unictype/category-Lu-tests (Files): Likewise.
31555         * modules/unictype/category-M-tests (Files): Likewise.
31556         * modules/unictype/category-Mc-tests (Files): Likewise.
31557         * modules/unictype/category-Me-tests (Files): Likewise.
31558         * modules/unictype/category-Mn-tests (Files): Likewise.
31559         * modules/unictype/category-N-tests (Files): Likewise.
31560         * modules/unictype/category-Nd-tests (Files): Likewise.
31561         * modules/unictype/category-Nl-tests (Files): Likewise.
31562         * modules/unictype/category-No-tests (Files): Likewise.
31563         * modules/unictype/category-P-tests (Files): Likewise.
31564         * modules/unictype/category-Pc-tests (Files): Likewise.
31565         * modules/unictype/category-Pd-tests (Files): Likewise.
31566         * modules/unictype/category-Pe-tests (Files): Likewise.
31567         * modules/unictype/category-Pf-tests (Files): Likewise.
31568         * modules/unictype/category-Pi-tests (Files): Likewise.
31569         * modules/unictype/category-Po-tests (Files): Likewise.
31570         * modules/unictype/category-Ps-tests (Files): Likewise.
31571         * modules/unictype/category-S-tests (Files): Likewise.
31572         * modules/unictype/category-Sc-tests (Files): Likewise.
31573         * modules/unictype/category-Sk-tests (Files): Likewise.
31574         * modules/unictype/category-Sm-tests (Files): Likewise.
31575         * modules/unictype/category-So-tests (Files): Likewise.
31576         * modules/unictype/category-Z-tests (Files): Likewise.
31577         * modules/unictype/category-Zl-tests (Files): Likewise.
31578         * modules/unictype/category-Zp-tests (Files): Likewise.
31579         * modules/unictype/category-Zs-tests (Files): Likewise.
31580         * modules/unictype/category-and-not-tests (Files): Likewise.
31581         * modules/unictype/category-and-tests (Files): Likewise.
31582         * modules/unictype/category-byname-tests (Files): Likewise.
31583         * modules/unictype/category-name-tests (Files): Likewise.
31584         * modules/unictype/category-none-tests (Files): Likewise.
31585         * modules/unictype/category-of-tests (Files): Likewise.
31586         * modules/unictype/category-or-tests (Files): Likewise.
31587         * modules/unictype/category-test-withtable-tests (Files): Likewise.
31588         * modules/unictype/combining-class-tests (Files): Likewise.
31589         * modules/unictype/ctype-alnum-tests (Files): Likewise.
31590         * modules/unictype/ctype-alpha-tests (Files): Likewise.
31591         * modules/unictype/ctype-blank-tests (Files): Likewise.
31592         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
31593         * modules/unictype/ctype-digit-tests (Files): Likewise.
31594         * modules/unictype/ctype-graph-tests (Files): Likewise.
31595         * modules/unictype/ctype-lower-tests (Files): Likewise.
31596         * modules/unictype/ctype-print-tests (Files): Likewise.
31597         * modules/unictype/ctype-punct-tests (Files): Likewise.
31598         * modules/unictype/ctype-space-tests (Files): Likewise.
31599         * modules/unictype/ctype-upper-tests (Files): Likewise.
31600         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
31601         * modules/unictype/decimal-digit-tests (Files): Likewise.
31602         * modules/unictype/digit-tests (Files): Likewise.
31603         * modules/unictype/mirror-tests (Files): Likewise.
31604         * modules/unictype/numeric-tests (Files): Likewise.
31605         * modules/unictype/property-alphabetic-tests (Files): Likewise.
31606         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
31607         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
31608         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
31609         Likewise.
31610         * modules/unictype/property-bidi-block-separator-tests (Files):
31611         Likewise.
31612         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
31613         Likewise.
31614         * modules/unictype/property-bidi-common-separator-tests (Files):
31615         Likewise.
31616         * modules/unictype/property-bidi-control-tests (Files): Likewise.
31617         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
31618         Likewise.
31619         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
31620         Likewise.
31621         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
31622         Likewise.
31623         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
31624         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
31625         Likewise.
31626         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
31627         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
31628         Likewise.
31629         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
31630         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
31631         * modules/unictype/property-bidi-segment-separator-tests (Files):
31632         Likewise.
31633         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
31634         * modules/unictype/property-byname-tests (Files): Likewise.
31635         * modules/unictype/property-combining-tests (Files): Likewise.
31636         * modules/unictype/property-composite-tests (Files): Likewise.
31637         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
31638         * modules/unictype/property-dash-tests (Files): Likewise.
31639         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
31640         * modules/unictype/property-default-ignorable-code-point-tests (Files):
31641         Likewise.
31642         * modules/unictype/property-deprecated-tests (Files): Likewise.
31643         * modules/unictype/property-diacritic-tests (Files): Likewise.
31644         * modules/unictype/property-extender-tests (Files): Likewise.
31645         * modules/unictype/property-format-control-tests (Files): Likewise.
31646         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31647         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31648         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31649         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31650         * modules/unictype/property-hyphen-tests (Files): Likewise.
31651         * modules/unictype/property-id-continue-tests (Files): Likewise.
31652         * modules/unictype/property-id-start-tests (Files): Likewise.
31653         * modules/unictype/property-ideographic-tests (Files): Likewise.
31654         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31655         * modules/unictype/property-ids-trinary-operator-tests (Files):
31656         Likewise.
31657         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31658         * modules/unictype/property-iso-control-tests (Files): Likewise.
31659         * modules/unictype/property-join-control-tests (Files): Likewise.
31660         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31661         * modules/unictype/property-line-separator-tests (Files): Likewise.
31662         * modules/unictype/property-logical-order-exception-tests (Files):
31663         Likewise.
31664         * modules/unictype/property-lowercase-tests (Files): Likewise.
31665         * modules/unictype/property-math-tests (Files): Likewise.
31666         * modules/unictype/property-non-break-tests (Files): Likewise.
31667         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31668         * modules/unictype/property-numeric-tests (Files): Likewise.
31669         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31670         * modules/unictype/property-other-default-ignorable-code-point-tests
31671         (Files): Likewise.
31672         * modules/unictype/property-other-grapheme-extend-tests (Files):
31673         Likewise.
31674         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31675         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31676         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31677         * modules/unictype/property-other-math-tests (Files): Likewise.
31678         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31679         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31680         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31681         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31682         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31683         * modules/unictype/property-private-use-tests (Files): Likewise.
31684         * modules/unictype/property-punctuation-tests (Files): Likewise.
31685         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31686         * modules/unictype/property-radical-tests (Files): Likewise.
31687         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31688         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31689         * modules/unictype/property-space-tests (Files): Likewise.
31690         * modules/unictype/property-terminal-punctuation-tests (Files):
31691         Likewise.
31692         * modules/unictype/property-test-tests (Files): Likewise.
31693         * modules/unictype/property-titlecase-tests (Files): Likewise.
31694         * modules/unictype/property-unassigned-code-value-tests (Files):
31695         Likewise.
31696         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
31697         * modules/unictype/property-uppercase-tests (Files): Likewise.
31698         * modules/unictype/property-variation-selector-tests (Files): Likewise.
31699         * modules/unictype/property-white-space-tests (Files): Likewise.
31700         * modules/unictype/property-xid-continue-tests (Files): Likewise.
31701         * modules/unictype/property-xid-start-tests (Files): Likewise.
31702         * modules/unictype/property-zero-width-tests (Files): Likewise.
31703         * modules/unictype/scripts-tests (Files): Likewise.
31704         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
31705         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
31706         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31707         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31708         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31709         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31710         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31711         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31712         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31713         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31714         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31715         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31716         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31717         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31718         * modules/uninorm/composition-tests (Files): Likewise.
31719         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31720         * modules/uninorm/decomposition-tests (Files): Likewise.
31721         * modules/uninorm/filter-tests (Files): Likewise.
31722         * modules/uninorm/nfc-tests (Files): Likewise.
31723         * modules/uninorm/nfd-tests (Files): Likewise.
31724         * modules/uninorm/nfkc-tests (Files): Likewise.
31725         * modules/uninorm/nfkd-tests (Files): Likewise.
31726         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31727         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31728         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31729         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31730         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31731         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31732         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31733         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31734         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
31735         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
31736         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
31737         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
31738         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31739         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
31740         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
31741         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
31742         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
31743         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31744         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
31745         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
31746         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
31747         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
31748         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31749         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
31750         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
31751         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
31752         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
31753         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
31754         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
31755         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
31756         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
31757         * modules/uniwidth/u8-width-tests (Files): Likewise.
31758         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31759         * modules/uniwidth/u16-width-tests (Files): Likewise.
31760         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31761         * modules/uniwidth/u32-width-tests (Files): Likewise.
31762         * modules/uniwidth/width-tests (Files): Likewise.
31763         * modules/unlink-tests (Files): Likewise.
31764         * modules/unsetenv-tests (Files): Likewise.
31765         * modules/usleep-tests (Files): Likewise.
31766         * modules/utimens-tests (Files): Likewise.
31767         * modules/utimensat-tests (Files): Likewise.
31768         * modules/vasnprintf-posix-tests (Files): Likewise.
31769         * modules/vasnprintf-tests (Files): Likewise.
31770         * modules/vasprintf-posix-tests (Files): Likewise.
31771         * modules/vasprintf-tests (Files): Likewise.
31772         * modules/vdprintf-posix-tests (Files): Likewise.
31773         * modules/vfprintf-posix-tests (Files): Likewise.
31774         * modules/vprintf-posix-tests (Files): Likewise.
31775         * modules/vsnprintf-posix-tests (Files): Likewise.
31776         * modules/vsnprintf-tests (Files): Likewise.
31777         * modules/vsprintf-posix-tests (Files): Likewise.
31778         * modules/wcrtomb-tests (Files): Likewise.
31779         * modules/wcsnrtombs-tests (Files): Likewise.
31780         * modules/wcsrtombs-tests (Files): Likewise.
31781         * modules/wctype-tests (Files): Likewise.
31782         * modules/wcwidth-tests (Files): Likewise.
31783         * modules/xmemdup0-tests (Files): Likewise.
31784         * modules/xprintf-posix-tests (Files): Likewise.
31785         * modules/xvasprintf-tests (Files): Likewise.
31786
31787 2009-12-24  Eric Blake  <ebb9@byu.net>
31788
31789         test-nanosleep: fix typo
31790         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31791         patch.
31792         Reported by Bruno Haible.
31793
31794 2009-12-24  Bruno Haible  <bruno@clisp.org>
31795
31796         Reduce namespace pollution on glibc systems.
31797         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
31798         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
31799         systems.
31800         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
31801         <getopt.h> on glibc systems.
31802         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
31803         systems.
31804         * lib/fcntl.c: Include <unistd.h> here instead.
31805
31806 2009-12-24  Bruno Haible  <bruno@clisp.org>
31807
31808         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31809
31810 2009-12-24  Eric Blake  <ebb9@byu.net>
31811
31812         tests: add signature checks
31813         * tests/signature.h (SIGNATURE_CHECK): New file.
31814         * modules/atexit-tests (Files): Use it.
31815         * modules/btowc-tests (Files): Likewise.
31816         * modules/canonicalize-lgpl-tests (Files): Likewise.
31817         * modules/ceilf-tests (Files): Likewise.
31818         * modules/ceill-tests (Files): Likewise.
31819         * modules/chown-tests (Files): Likewise.
31820         * modules/dprintf-posix-tests (Files): Likewise.
31821         * modules/dup2-tests (Files): Likewise.
31822         * modules/dup3-tests (Files): Likewise.
31823         * modules/duplocale-tests (Files): Likewise.
31824         * modules/fchdir-tests (Files): Likewise.
31825         * modules/fcntl-tests (Files): Likewise.
31826         * modules/fdopendir-tests (Files): Likewise.
31827         * modules/fflush-tests (Files): Likewise.
31828         * modules/flock-tests (Files): Likewise.
31829         * modules/floorf-tests (Files): Likewise.
31830         * modules/floorl-tests (Files): Likewise.
31831         * modules/fnmatch-tests (Files): Likewise.
31832         * modules/fopen-tests (Files): Likewise.
31833         * modules/fprintf-posix-tests (Files): Likewise.
31834         * modules/freopen-tests (Files): Likewise.
31835         * modules/frexp-nolibm-tests (Files): Likewise.
31836         * modules/frexp-tests (Files): Likewise.
31837         * modules/frexpl-nolibm-tests (Files): Likewise.
31838         * modules/frexpl-tests (Files): Likewise.
31839         * modules/fseek-tests (Files): Likewise.
31840         * modules/fseeko-tests (Files): Likewise.
31841         * modules/fsync-tests (Files): Likewise.
31842         * modules/ftell-tests (Files): Likewise.
31843         * modules/ftello-tests (Files): Likewise.
31844         * modules/futimens-tests (Files): Likewise.
31845         * modules/getaddrinfo-tests (Files): Likewise.
31846         * modules/getcwd-tests (Files): Likewise.
31847         * modules/getdelim-tests (Files): Likewise.
31848         * modules/getdtablesize-tests (Files): Likewise.
31849         * modules/getgroups-tests (Files): Likewise.
31850         * modules/gethostname-tests (Files): Likewise.
31851         * modules/getline-tests (Files): Likewise.
31852         * modules/getopt-posix-tests (Files): Likewise.
31853         * modules/gettimeofday-tests (Files): Likewise.
31854         * modules/glob-tests (Files): Likewise.
31855         * modules/iconv-tests (Files): Likewise.
31856         * modules/inet_ntop-tests (Files): Likewise.
31857         * modules/inet_pton-tests (Files): Likewise.
31858         * modules/isblank-tests (Files): Likewise.
31859         * modules/lchown-tests (Files): Likewise.
31860         * modules/ldexpl-tests (Files): Likewise.
31861         * modules/link-tests (Files): Likewise.
31862         * modules/linkat-tests (Files): Likewise.
31863         * modules/lseek-tests (Files): Likewise.
31864         * modules/lstat-tests (Files): Likewise.
31865         * modules/mbrtowc-tests (Files): Likewise.
31866         * modules/mbsinit-tests (Files): Likewise.
31867         * modules/mbsnrtowcs-tests (Files): Likewise.
31868         * modules/mbsrtowcs-tests (Files): Likewise.
31869         * modules/memchr-tests (Files): Likewise.
31870         * modules/memcmp-tests (Files): Likewise.
31871         * modules/memmem-tests (Files): Likewise.
31872         * modules/memrchr-tests (Files): Likewise.
31873         * modules/mkdir-tests (Files): Likewise.
31874         * modules/mkfifo-tests (Files): Likewise.
31875         * modules/mkfifoat-tests (Files): Likewise.
31876         * modules/mknod-tests (Files): Likewise.
31877         * modules/nanosleep-tests (Files): Likewise.
31878         * modules/nl_langinfo-tests (Files): Likewise.
31879         * modules/obstack-printf-tests (Files): Likewise.
31880         * modules/open-tests (Files): Likewise.
31881         * modules/openat-tests (Files): Likewise.
31882         * modules/perror-tests (Files): Likewise.
31883         * modules/pipe2-tests (Files): Likewise.
31884         * modules/poll-tests (Files): Likewise.
31885         * modules/popen-tests (Files): Likewise.
31886         * modules/posix_spawn-tests (Files): Likewise.
31887         * modules/posix_spawnp-tests (Files): Likewise.
31888         * modules/pread-tests (Files): Likewise.
31889         * modules/printf-posix-tests (Files): Likewise.
31890         * modules/pty-tests (Files): Likewise.
31891         * modules/random_r-tests (Files): Likewise.
31892         * modules/rawmemchr-tests (Files): Likewise.
31893         * modules/readlink-tests (Files): Likewise.
31894         * modules/remove-tests (Files): Likewise.
31895         * modules/rename-tests (Files): Likewise.
31896         * modules/renameat-tests (Files): Likewise.
31897         * modules/rmdir-tests (Files): Likewise.
31898         * modules/round-tests (Files): Likewise.
31899         * modules/roundf-tests (Files): Likewise.
31900         * modules/roundl-tests (Files): Likewise.
31901         * modules/select-tests (Files): Likewise.
31902         * modules/setenv-tests (Files): Likewise.
31903         * modules/sigaction-tests (Files): Likewise.
31904         * modules/sleep-tests (Files): Likewise.
31905         * modules/snprintf-posix-tests (Files): Likewise.
31906         * modules/snprintf-tests (Files): Likewise.
31907         * modules/sprintf-posix-tests (Files): Likewise.
31908         * modules/stat-tests (Files): Likewise.
31909         * modules/strcasestr-tests (Files): Likewise.
31910         * modules/strchrnul-tests (Files): Likewise.
31911         * modules/strerror-tests (Files): Likewise.
31912         * modules/strsignal-tests (Files): Likewise.
31913         * modules/strstr-tests (Files): Likewise.
31914         * modules/strtod-tests (Files): Likewise.
31915         * modules/strverscmp-tests (Files): Likewise.
31916         * modules/symlink-tests (Files): Likewise.
31917         * modules/symlinkat-tests (Files): Likewise.
31918         * modules/times-tests (Files): Likewise.
31919         * modules/trunc-tests (Files): Likewise.
31920         * modules/truncf-tests (Files): Likewise.
31921         * modules/truncl-tests (Files): Likewise.
31922         * modules/tsearch-tests (Files): Likewise.
31923         * modules/uname-tests (Files): Likewise.
31924         * modules/unlink-tests (Files): Likewise.
31925         * modules/unsetenv-tests (Files): Likewise.
31926         * modules/usleep-tests (Files): Likewise.
31927         * modules/utimensat-tests (Files): Likewise.
31928         * modules/vasprintf-tests (Files): Likewise.
31929         * modules/vdprintf-posix-tests (Files): Likewise.
31930         * modules/vfprintf-posix-tests (Files): Likewise.
31931         * modules/vprintf-posix-tests (Files): Likewise.
31932         * modules/vsnprintf-posix-tests (Files): Likewise.
31933         * modules/vsnprintf-tests (Files): Likewise.
31934         * modules/vsprintf-posix-tests (Files): Likewise.
31935         * modules/wcrtomb-tests (Files): Likewise.
31936         * modules/wcsnrtombs-tests (Files): Likewise.
31937         * modules/wcsrtombs-tests (Files): Likewise.
31938         * modules/wcwidth-tests (Files): Likewise.
31939         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31940         * tests/test-isinf.c (isinf): Likewise.
31941         * tests/test-isnan.c (isnan): Likewise.
31942         * tests/test-signbit.c (signbit): Likewise.
31943         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31944         declaration, either as macro or with correct signature.
31945         (select): Ensure function under test is declared with correct
31946         signature in correct header.
31947         * tests/test-atexit.c (atexit): Likewise.
31948         * tests/test-btowc.c (btowc): Likewise.
31949         * tests/test-canonicalize-lgpl.c (realpath)
31950         (canonicalize_file_name): Likewise.
31951         * tests/test-ceilf1.c (ceilf): Likewise.
31952         * tests/test-ceill.c (ceill): Likewise.
31953         * tests/test-chown.c (chown): Likewise.
31954         * tests/test-dprintf-posix.c (dprintf): Likewise.
31955         * tests/test-dup2.c (dup2): Likewise.
31956         * tests/test-dup3.c (dup3): Likewise.
31957         * tests/test-duplocale.c (duplocale): Likewise.
31958         * tests/test-fchdir.c (fchdir): Likewise.
31959         * tests/test-fchownat.c (fchownat): Likewise.
31960         * tests/test-fcntl.c (fcntl): Likewise.
31961         * tests/test-fdopendir.c (fdopendir): Likewise.
31962         * tests/test-fflush.c (fflush): Likewise.
31963         * tests/test-flock.c (flock): Likewise.
31964         * tests/test-floorf1.c (floorf): Likewise.
31965         * tests/test-floorl.c (floorl): Likewise.
31966         * tests/test-fnmatch.c (fnmatch): Likewise.
31967         * tests/test-fopen.c (fopen): Likewise.
31968         * tests/test-fprintf-posix.c (fprintf): Likewise.
31969         * tests/test-freopen.c (freopen): Likewise.
31970         * tests/test-frexp.c (frexp): Likewise.
31971         * tests/test-frexpl.c (frexpl): Likewise.
31972         * tests/test-fseek.c (fseek): Likewise.
31973         * tests/test-fseeko.c (fseeko): Likewise.
31974         * tests/test-fstatat.c (fstatat): Likewise.
31975         * tests/test-fsync.c (fsync): Likewise.
31976         * tests/test-ftell.c (ftell): Likewise.
31977         * tests/test-ftello.c (ftello): Likewise.
31978         * tests/test-futimens.c (futimens): Likewise.
31979         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31980         (gai_strerror): Likewise.
31981         * tests/test-getcwd.c (getcwd): Likewise.
31982         * tests/test-getdelim.c (getdelim): Likewise.
31983         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31984         * tests/test-getgroups.c (getgroups): Likewise.
31985         * tests/test-gethostname.c (gethostname): Likewise.
31986         * tests/test-getline.c (getline): Likewise.
31987         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31988         Likewise.
31989         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31990         * tests/test-glob.c (glob, globfree): Likewise.
31991         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31992         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31993         * tests/test-inet_pton.c (inet_pton): Likewise.
31994         * tests/test-isblank.c (isblank): Likewise.
31995         * tests/test-lchown.c (lchown): Likewise.
31996         * tests/test-ldexpl.c (ldexpl): Likewise.
31997         * tests/test-link.c (link): Likewise.
31998         * tests/test-linkat.c (linkat): Likewise.
31999         * tests/test-lseek.c (lseek): Likewise.
32000         * tests/test-lstat.c (lstat): Likewise.
32001         * tests/test-mbrtowc.c (mbrtowc): Likewise.
32002         * tests/test-mbsinit.c (mbsinit): Likewise.
32003         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
32004         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
32005         * tests/test-memchr.c (memchr): Likewise.
32006         * tests/test-memcmp.c (memcmp): Likewise.
32007         * tests/test-memmem.c (memmem): Likewise.
32008         * tests/test-memrchr.c (memrchr): Likewise.
32009         * tests/test-mkdir.c (mkdir): Likewise.
32010         * tests/test-mkdirat.c (mkdirat): Likewise.
32011         * tests/test-mkfifo.c (mkfifo): Likewise.
32012         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
32013         * tests/test-mknod.c (mknod): Likewise.
32014         * tests/test-nanosleep.c (nanosleep): Likewise.
32015         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
32016         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
32017         Likewise.
32018         * tests/test-open.c (open): Likewise.
32019         * tests/test-openat.c (openat): Likewise.
32020         * tests/test-perror.c (perror): Likewise.
32021         * tests/test-pipe2.c (pipe2): Likewise.
32022         * tests/test-poll.c (poll): Likewise.
32023         * tests/test-popen.c (popen, pclose): Likewise.
32024         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
32025         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
32026         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
32027         (posix_spawn_file_actions_destroy)
32028         (posix_spawn_file_actions_addclose)
32029         (posix_spawn_file_actions_addopen)
32030         (posix_spawn_file_actions_adddup2): Likewise.
32031         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
32032         * tests/test-pread.c (pread): Likewise.
32033         * tests/test-printf-posix.c (printf): Likewise.
32034         * tests/test-pty.c (openpty, forkpty): Likewise.
32035         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
32036         (random_r): Likewise.
32037         * tests/test-rawmemchr.c (rawmemchr): Likewise.
32038         * tests/test-readlink.c (readlink): Likewise.
32039         * tests/test-remove.c (remove): Likewise.
32040         * tests/test-rename.c (rename): Likewise.
32041         * tests/test-renameat.c (renameat): Likewise.
32042         * tests/test-rmdir.c (rmdir): Likewise.
32043         * tests/test-round1.c (round): Likewise.
32044         * tests/test-roundf1.c (roundf): Likewise.
32045         * tests/test-roundl.c (roundl): Likewise.
32046         * tests/test-setenv.c (setenv): Likewise.
32047         * tests/test-sigaction.c (sigaction): Likewise.
32048         * tests/test-sleep.c (sleep): Likewise.
32049         * tests/test-snprintf.c (snprintf): Likewise.
32050         * tests/test-sprintf-posix.c (sprintf): Likewise.
32051         * tests/test-stat.c (stat): Likewise.
32052         * tests/test-stpncpy.c (stpncpy): Likewise.
32053         * tests/test-strcasestr.c (strcasestr): Likewise.
32054         * tests/test-strchrnul.c (strchrnul): Likewise.
32055         * tests/test-strerror.c (strerror): Likewise.
32056         * tests/test-strsignal.c (strsignal): Likewise.
32057         * tests/test-strstr.c (strstr): Likewise.
32058         * tests/test-strtod.c (strtod): Likewise.
32059         * tests/test-strverscmp.c (strverscmp): Likewise.
32060         * tests/test-symlink.c (symlink): Likewise.
32061         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
32062         * tests/test-times.c (times): Likewise.
32063         * tests/test-trunc1.c (trunc): Likewise.
32064         * tests/test-truncf1.c (truncf): Likewise.
32065         * tests/test-truncl.c (truncl): Likewise.
32066         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
32067         Likewise.
32068         * tests/test-uname.c (uname): Likewise.
32069         * tests/test-unlink.c (unlink): Likewise.
32070         * tests/test-unlinkat.c (unlinkat): Likewise.
32071         * tests/test-unsetenv.c (unsetenv): Likewise.
32072         * tests/test-usleep.c (usleep): Likewise.
32073         * tests/test-utimensat.c (utimensat): Likewise.
32074         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
32075         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
32076         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
32077         * tests/test-vprintf-posix.c (vprintf): Likewise.
32078         * tests/test-vsnprintf.c (vsnprintf): Likewise.
32079         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
32080         * tests/test-wcrtomb.c (wcrtomb): Likewise.
32081         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
32082         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
32083         * tests/test-wcwidth.c (wcwidth): Likewise.
32084
32085         build: pull in conditional headers during GNULIB_POSIXCHECK
32086         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
32087         definitions from any conditionally-included headers.
32088         * lib/stdlib.in.h (includes): Likewise.
32089         * lib/unistd.in.h (includes): Likewise.
32090
32091 2009-12-24  Bruno Haible  <bruno@clisp.org>
32092
32093         * tests/test-argv-iter.c: Include header file being tested immediately
32094         after config.h.
32095         * tests/test-base64.c: Likewise.
32096         * tests/test-flock.c: Likewise.
32097         * tests/test-fsync.c: Likewise.
32098         * tests/test-getdate.c: Likewise.
32099         * tests/test-getndelim2.c: Likewise.
32100         * tests/test-isfinite.c: Likewise.
32101         * tests/test-isinf.c: Likewise.
32102         * tests/test-strerror.c: Likewise.
32103         * tests/test-strsignal.c: Likewise.
32104
32105 2009-12-23  Eric Blake  <ebb9@byu.net>
32106
32107         unistd: work around cygwin bug
32108         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
32109         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
32110         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32111
32112 2009-12-23  Bruno Haible  <bruno@clisp.org>
32113
32114         localename: More tests.
32115         * tests/test-localename.c (SIZEOF): New macro.
32116         (categories): New variable.
32117         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
32118         test_locale_name_default): Add test w.r.t. thread locale.
32119         (test_locale_name_thread): New function.
32120         (main): Invoke it.
32121
32122         localename: Make aware of thread locale.
32123         * lib/localename.h (gl_locale_name_thread): New declaration.
32124         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
32125         behaviour with respect to thread locale.
32126         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
32127         <langinfo.h>, glthread/lock.h.
32128         (SIZE_BITS): New macro.
32129         (string_hash): New function.
32130         (struct hash_node): New type.
32131         (HASH_TABLE_SIZE): New macro.
32132         (struniq_hash_table, struniq_lock): New variables.
32133         (struniq): New function.
32134         (gl_locale_name_thread): New function.
32135         (gl_locale_name): Invoke it.
32136         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
32137         * modules/localename (Depends-on): Add lock.
32138         Reported by Mike Gran <spk121@yahoo.com>.
32139
32140 2009-12-23  Eric Blake  <ebb9@byu.net>
32141
32142         va-args: new module
32143         * modules/va-args: New file.
32144         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
32145         * MODULES.html.sh (Core language properties): Mention it.
32146
32147         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
32148         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
32149         named alias for __attribute__((__unused__)).
32150         * lib/chown.c: Update client.
32151         * lib/fchmodat.c: Likewise.
32152         * lib/fts.c: Likewise.
32153         * lib/getdate.y: Likewise.
32154         * lib/getgroups.c: Likewise.
32155         * lib/getopt.c: Likewise.
32156         * lib/getugroups.c: Likewise.
32157         * lib/mkdir.c: Likewise.
32158         * lib/mkfifo.c: Likewise.
32159         * lib/mkfifoat.c: Likewise.
32160         * lib/mknod.c: Likewise.
32161         * lib/mknodat.c: Likewise.
32162         * lib/readlink.c: Likewise.
32163         * lib/se-context.in.h: Likewise.
32164         * lib/se-selinux.in.h: Likewise.
32165         * lib/sockets.c: Likewise.
32166         * lib/symlink.c: Likewise.
32167         * lib/symlinkat.c: Likewise.
32168         * lib/unicodeio.c: Likewise.
32169         * lib/unistr.h: Likewise.
32170         * tests/test-areadlink.c: Likewise.
32171         * tests/test-areadlinkat.c: Likewise.
32172         * tests/test-filenamecat.c: Likewise.
32173         * tests/test-fseeko.c: Likewise.
32174         * tests/test-ftello.c: Likewise.
32175         * tests/test-getdate.c: Likewise.
32176         * tests/test-getgroups.c: Likewise.
32177         * tests/test-gethostname.c: Likewise.
32178         * tests/test-quotearg.c: Likewise.
32179         * tests/test-version-etc.c: Likewise.
32180         * tests/test-xalloc-die.c: Likewise.
32181         * tests/test-xfprintf-posix.c: Likewise.
32182         * tests/test-xprintf-posix.c: Likewise.
32183         * tests/test-xvasprintf.c: Likewise.
32184
32185         tests: avoid compiler warnings
32186         * tests/test-fcntl.c (main): Delete unused parameters.
32187         * tests/test-freopen-safer.c (main): Likewise.
32188         * tests/test-xalloc-die.c (main): Mark unused parameters.
32189         * tests/test-fseeko.c (main): Likewise.
32190         * tests/test-ftello.c (main): Likewise.
32191         * tests/test-nanosleep.c (main): Avoid declaration warning.
32192         * tests/test-sleep.c (main): Likewise.
32193         * tests/test-unsetenv.c (main): Silence warning about string
32194         literal.
32195         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32196
32197 2009-12-23  Bruno Haible  <bruno@clisp.org>
32198
32199         * tests/test-localename.c (test_locale_name): New function, extracted
32200         from main. Also test mixed situations.
32201         (test_locale_name_posix, test_locale_name_environ,
32202         test_locale_name_default): New functions.
32203         (main): Invoke them all.
32204         * modules/localename-tests (configure.ac): Test for newlocale.
32205
32206 2009-12-23  Bruno Haible  <bruno@clisp.org>
32207
32208         unistd: Ensure getcwd gets declared before being overridden.
32209         * lib/unistd.in.h: Conditionally include <io.h>.
32210
32211 2009-12-22  Bruno Haible  <bruno@clisp.org>
32212
32213         wchar: Diagnose broken combination of glibc and gcc versions and flags.
32214         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
32215         (gl_WCHAR_H): Invoke it.
32216         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
32217         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
32218         Reported by Karl Berry <karl@freefriends.org>.
32219
32220 2009-12-22  Eric Blake  <ebb9@byu.net>
32221
32222         math, unistd: avoid redundant includes
32223         * lib/math.in.h (isnan): No need to re-include <math.h>.
32224         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
32225
32226         getsubopt: work around cygwin bug
32227         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
32228         avoid conflicting with system getsubopt.
32229         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
32230         bug.
32231
32232         getopt: synchronize from glibc
32233         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
32234         parameter order.  Adjust all callers.
32235         (_getopt_internal_r, main): Adjust quoting in error messages.
32236         Drop considerations for outdated POSIX 1003.2 error message.
32237         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
32238         callers.
32239         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
32240
32241         test-getopt: test stderr behavior
32242         * modules/getopt-posix-tests (Depends-on): Add dup2.
32243         * tests/test-getopt.c (ASSERT): Avoid stderr.
32244         (main): Move stderr to a temporary file.
32245         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
32246         Instead, add parameter to inform caller if output occurred.
32247         (test_getopt): Adjust all existing tests to expect silence, and
32248         add new tests of leading ":".
32249         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32250         glibc shortcomings with leading "-:" or "+:" in optstring.
32251         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32252         Likewise.
32253         * doc/posix-functions/getopt.texi (getopt): Likewise.
32254
32255         test-getopt: enhance test
32256         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
32257         supports optind=0.
32258         * tests/test-getopt.c (OPTIND_MIN): Move...
32259         * tests/test-getopt.h (OPTIND_MIN): ...here.
32260         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
32261         Require that optind=0 works, since modern BSD supports it in
32262         addition to optreset, and since coreutils expects it.
32263         (test_getopt_long_only): New test.
32264         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32265         glibc shortcomings with 'W;', and enforcement of optind=0.
32266         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32267         Likewise.
32268
32269 2009-12-21  Bruno Haible  <bruno@clisp.org>
32270
32271         localename: Improvements for MacOS X and Cygwin.
32272         * lib/localename.h (gl_locale_name_environ): New declaration.
32273         * lib/localename.c (gl_locale_name_environ): New function, extracted from
32274         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
32275         (gl_locale_name_posix): Invoke it.
32276         (gl_locale_name_default): Add comments. Use Windows native API also on
32277         Cygwin.
32278
32279 2009-12-21  Bruno Haible  <bruno@clisp.org>
32280
32281         Update list of Win32 locale ids.
32282         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
32283         (LANG_SAMI): Renamed from LANG_SAAMI.
32284         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
32285         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
32286         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
32287         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
32288         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
32289         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
32290         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
32291         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
32292         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
32293         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
32294         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
32295         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
32296         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
32297         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
32298         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
32299         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
32300         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
32301         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
32302         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
32303         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
32304         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
32305         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
32306         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
32307         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
32308         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
32309         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
32310         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
32311         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
32312         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
32313         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
32314         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
32315         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
32316         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
32317         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
32318         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
32319         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
32320         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
32321         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
32322         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
32323         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
32324         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
32325         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
32326         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
32327         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
32328         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
32329         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
32330         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
32331         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
32332         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
32333         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
32334         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
32335         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
32336         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
32337         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
32338         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
32339         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
32340         Add more languages and countries for Sami, Sorbian. Add more countries
32341         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
32342         for Pashto. Change country for Syriac, Tswana.
32343
32344 2009-12-21  Eric Blake  <ebb9@byu.net>
32345
32346         test-utimens: avoid spurious failure
32347         * tests/test-chown.h (nap): Factor...
32348         * tests/nap.h: ...into new file.
32349         * tests/test-lchown.h (nap): Avoid duplication.
32350         * tests/test-utimens-common.h (nap): Use shared implementation,
32351         necessary on file systems with 1-second resolution.
32352         * modules/chown-tests (Files): Include new file.
32353         * modules/fdutimensat-tests (Files): Likewise.
32354         * modules/futimens-tests (Files): Likewise.
32355         * modules/lchown-tests (Files): Likewise.
32356         * modules/openat-tests (Files): Likewise.
32357         * modules/utimens-tests (Files): Likewise.
32358         * modules/utimensat-tests (Files): Likewise.
32359
32360 2009-12-19  Eric Blake  <ebb9@byu.net>
32361
32362         futimens, utimensat: work around Linux bug
32363         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
32364         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32365         * lib/utimensat.c (rpl_utimensat): Work around it.
32366         * lib/futimens.c (rpl_futimens): Adjust comment.
32367
32368         utimens: work around Linux ctime bug
32369         * lib/utimens.c (detect_ctime_bug): New helper function.
32370         (update_timespec): Differentiate between workaround needed for
32371         this bug vs. what is needed for systems that lack utimensat.
32372         (fdutimens, lutimens): Work around bug.
32373
32374         utimens: check for ctime update
32375         * tests/test-utimens-common.h (check_ctime): Define.
32376         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
32377         * tests/test-futimens.h (test_futimens): Likewise.
32378         * tests/test-lutimens.h (test_lutimens): Likewise.
32379         * doc/posix-functions/futimens.texi (futimens): Document the bug.
32380         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32381
32382 2009-12-19  Bruno Haible  <bruno@clisp.org>
32383
32384         dprintf-posix: Check against memory leak fixed on 2009-12-15.
32385         * tests/test-dprintf-posix2.sh: New file.
32386         * tests/test-dprintf-posix2.c: New file.
32387         * modules/dprintf-posix-tests (Files): Add them.
32388         (configure.ac): Check for getrlimit and setrlimit.
32389         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32390
32391 2009-12-19  Bruno Haible  <bruno@clisp.org>
32392
32393         fprintf-posix: Check against memory leak fixed on 2009-12-15.
32394         * tests/test-fprintf-posix3.sh: New file.
32395         * tests/test-fprintf-posix3.c: New file.
32396         * modules/fprintf-posix-tests (Files): Add them.
32397         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32398
32399 2009-12-19  Eric Blake  <ebb9@byu.net>
32400
32401         dirfd: fix prototype
32402         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
32403         * lib/dirfd.c (dirfd): Likewise.
32404
32405         canonicalize: reduce memory usage
32406         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
32407         allocation to size.
32408         Reported by Solar Designer <solar@openwall.com>.
32409
32410 2009-12-19  Bruno Haible  <bruno@clisp.org>
32411
32412         New module attribute 'Applicability'.
32413         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
32414         * gnulib-tool: New option --extract-applicability.
32415         (func_usage): Document it.
32416         (sed_extract_prog): Recognize it.
32417         (func_get_applicability): New function.
32418         (func_import): Generalize handling of 'link-warning' module.
32419         * modules/link-warning (Applicability): New section.
32420         * modules/arg-nonnull (Applicability): New section.
32421         Repoted by Simon Josefsson <simon@josefsson.org>.
32422
32423 2009-12-19  Bruno Haible  <bruno@clisp.org>
32424
32425         fflush: tweak
32426         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
32427         * lib/fseeko.c (rpl_fseeko): Likewise.
32428
32429 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
32430
32431         * lib/gl_list.h: Fix typo in comment.
32432
32433 2009-12-16  Eric Blake  <ebb9@byu.net>
32434
32435         fcntl: use to simplify other modules
32436         * modules/cloexec (Depends-on): Add fcntl.
32437         * modules/fchdir (Depends-on): Likewise.
32438         * modules/fd-safer-flag (Depends-on): Likewise.
32439         * modules/unistd-safer (Depends-on): Likewise.
32440         * modules/dup3 (configure.ac): Set module indicator.
32441         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
32442         missing.
32443         * lib/fchdir.c (_gl_register_dup): Fix comment.
32444         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
32445         * lib/dup-safer.c (dup_safer): Likewise.
32446         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
32447         * lib/dup3.c (dup3): Likewise.
32448         * tests/test-fchdir.c (main): Enhance test.
32449         Fixes a dup_cloexec bug reported by Ondřej Vašík.
32450
32451         fcntl: port portions of fcntl to mingw
32452         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
32453         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
32454         replacement for mingw.
32455         * modules/fcntl (Description): Update.
32456         (Depends-on): Add dup2.
32457         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
32458         * modules/fcntl-h (Makefile.am): Substitute it.
32459         * lib/fcntl.in.h (fcntl): Update declaration.
32460         (F_DUPFD, F_GETFD): New macros, when needed.
32461         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32462         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
32463         * tests/test-fcntl.c (check_flags, main): Enhance test for items
32464         we now guarantee.
32465
32466         fcntl: work around cygwin bug in F_DUPFD
32467         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
32468         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
32469         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
32470         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
32471         * doc/posix-functions/fcntl.texi (fcntl): Document it.
32472
32473         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
32474         * modules/fcntl (Files): List new files.
32475         (configure.ac): Run a test.
32476         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
32477         * lib/fcntl.c (rpl_fcntl): Likewise.
32478         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
32479         (gl_FCNTL_H): Always replace fcntl.h.
32480         * modules/fcntl-h (Makefile.am): Substitute witnesses.
32481         * lib/fcntl.in.h (fcntl): Declare replacement.
32482         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
32483         needed, plus a witness.
32484         * doc/posix-functions/fcntl.texi (fcntl): Document this.
32485         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32486         * tests/test-fcntl.c: New file.
32487         * modules/fcntl-tests: Likewise.
32488
32489         binary-io: avoid potential compilation warning
32490         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
32491         directives.
32492
32493         fflush: avoid compilation error on NetBSD
32494         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
32495         between off_t and fpos_t, since the latter is sometimes a struct.
32496         * lib/fseeko.c (rpl_fseeko): Likewise.
32497         Reported by Alexander Nasonov <alnsn@yandex.ru>.
32498
32499 2009-12-15  Eric Blake  <ebb9@byu.net>
32500
32501         fcntl-h, stdio, sys_ioctl: fix declarations
32502         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
32503         function must not take arguments.
32504         * lib/sys_ioctl.in.h (ioctl): Likewise.
32505         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
32506         (open): Add a link warning.
32507
32508 2009-12-15  Jim Meyering  <meyering@redhat.com>
32509
32510         areadlink, areadlink-with-size: relax license to LGPLv2+
32511         * modules/areadlink (License): Relax to LGPLv2+.
32512         * modules/areadlink-with-size (License): Likewise.
32513
32514 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
32515             Bruno Haible  <bruno@clisp.org>
32516
32517         *printf: Fix memory leak.
32518         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
32519         * lib/vfprintf.c (vfprintf): Likewise.
32520         * lib/dprintf.c (dprintf): Likewise.
32521         * lib/vdprintf.c (vdprintf): Likewise.
32522
32523 2009-12-14  Eric Blake  <ebb9@byu.net>
32524
32525         accept4: adjust module dependencies
32526         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
32527
32528         utimens: one more try at avoiding compiler warning
32529         * lib/utimens.c (lutimens): Lower scope of result.
32530
32531 2009-12-13  Bruno Haible  <bruno@clisp.org>
32532
32533         Move the malloc checking from module 'list' to new module 'xlist'.
32534         * modules/xlist: New file.
32535         * lib/gl_xlist.h: New file.
32536         * lib/gl_xlist.c: New file.
32537         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
32538         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
32539         gl_list_add_last, gl_list_add_before, gl_list_add_after,
32540         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
32541         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
32542         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
32543         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
32544         gl_sortedlist_nx_add): New declarations.
32545         (struct gl_list_implementation): Rename and change methods accordingly.
32546         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
32547         (gl_list_nx_create): Renamed from gl_list_create.
32548         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32549         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32550         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32551         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32552         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32553         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32554         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32555         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32556         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
32557         gl_list_create_empty.
32558         (gl_list_nx_create): Renamed from gl_list_create.
32559         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32560         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32561         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32562         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32563         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32564         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32565         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32566         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32567         * lib/gl_array_list.c: Don't include xalloc.h.
32568         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
32569         NULL upon out-of-memory.
32570         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
32571         out-of-memory.
32572         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
32573         Change return type to 'int'.
32574         (gl_array_nx_set_at): Renamed from gl_array_set_at.
32575         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32576         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
32577         upon out-of-memory.
32578         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
32579         upon out-of-memory.
32580         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
32581         upon out-of-memory.
32582         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
32583         upon out-of-memory.
32584         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
32585         out-of-memory.
32586         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
32587         Update.
32588         (gl_array_list_implementation): Update.
32589         * lib/gl_carray_list.c: Don't include xalloc.h.
32590         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
32591         Return NULL upon out-of-memory.
32592         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
32593         out-of-memory.
32594         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
32595         Change return type to 'int'.
32596         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
32597         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32598         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
32599         upon out-of-memory.
32600         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
32601         upon out-of-memory.
32602         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
32603         out-of-memory.
32604         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
32605         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
32606         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
32607         Update.
32608         (gl_carray_list_implementation): Update.
32609         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
32610         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
32611         gl_linked_create_empty. Return NULL upon out-of-memory.
32612         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
32613         out-of-memory.
32614         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
32615         Change return type to 'int'. Return -1 upon out-of-memory.
32616         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
32617         out-of-memory.
32618         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
32619         upon out-of-memory.
32620         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
32621         upon out-of-memory.
32622         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
32623         NULL upon out-of-memory.
32624         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
32625         upon out-of-memory.
32626         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
32627         out-of-memory.
32628         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
32629         Update.
32630         * lib/gl_linked_list.c: Don't include xalloc.h.
32631         (gl_linked_list_implementation): Update.
32632         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
32633         (add_to_bucket): Change return type to 'int'.
32634         (gl_linkedhash_list_implementation): Update.
32635         * lib/gl_anytree_list1.h (free_subtree): New function.
32636         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
32637         gl_tree_create_empty. Return NULL upon out-of-memory.
32638         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
32639         Change return type to 'int'. Return -1 upon out-of-memory.
32640         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
32641         out-of-memory.
32642         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32643         (gl_tree_remove_node): New function, moved here from
32644         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32645         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32646         Update.
32647         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32648         malloc, not xmalloc. Return NULL upon out-of-memory.
32649         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32650         out-of-memory.
32651         (gl_tree_remove_node_from_tree): New function, extracted from
32652         gl_tree_remove_node.
32653         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32654         upon out-of-memory.
32655         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32656         out-of-memory.
32657         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32658         upon out-of-memory.
32659         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32660         upon out-of-memory.
32661         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32662         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32663         not xmalloc. Return NULL upon out-of-memory.
32664         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32665         out-of-memory.
32666         (gl_tree_remove_node_from_tree): New function, extracted from
32667         gl_tree_remove_node.
32668         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32669         upon out-of-memory.
32670         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32671         out-of-memory.
32672         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32673         upon out-of-memory.
32674         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32675         upon out-of-memory.
32676         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32677         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
32678         gl_anytree_list1.h before gl_anyavltree_list2.h.
32679         (gl_avltree_list_implementation): Update.
32680         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32681         gl_anytree_list1.h before gl_anyavltree_list2.h.
32682         (gl_rbtree_list_implementation): Update.
32683         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32684         Change return type to 'int'. Return -1 upon out-of-memory. Use
32685         __builtin_expect.
32686         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32687         (gl_avltreehash_list_implementation): Update.
32688         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32689         (gl_rbtreehash_list_implementation): Update.
32690         * modules/array-list (Depends-on): Remove xalloc.
32691         * modules/carray-list (Depends-on): Likewise.
32692         * modules/linked-list (Depends-on): Likewise.
32693         * modules/linkedhash-list (Depends-on): Likewise.
32694         * modules/avltree-list (Depends-on): Likewise.
32695         * modules/rbtree-list (Depends-on): Likewise.
32696         * modules/avltreehash-list (Depends-on): Likewise.
32697         * modules/rbtreehash-list (Depends-on): Likewise.
32698
32699         * modules/xsublist: New file.
32700         * lib/gl_xsublist.h: New file.
32701         * lib/gl_xsublist.c: New file.
32702         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
32703         (gl_sublist_nx_create): New declaration.
32704         * lib/gl_sublist.c: Don't include xalloc.h.
32705         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
32706         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32707         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32708         Change return type to 'int'. Return -1 upon out-of-memory.
32709         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32710         upon out-of-memory.
32711         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32712         NULL upon out-of-memory.
32713         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32714         upon out-of-memory.
32715         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32716         NULL upon out-of-memory.
32717         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32718         NULL upon out-of-memory.
32719         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32720         upon out-of-memory.
32721         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32722         (gl_sublist_list_implementation): Update.
32723         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32724         upon out-of-memory.
32725         * modules/sublist (Depends-on): Remove xalloc.
32726
32727         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32728         * tests/test-carray_list.c: Likewise.
32729         * tests/test-linked_list.c: Likewise.
32730         * tests/test-linkedhash_list.c: Likewise.
32731         * tests/test-avltree_list.c: Likewise.
32732         * tests/test-rbtree_list.c: Likewise.
32733         * tests/test-avltreehash_list.c: Likewise.
32734         * tests/test-rbtreehash_list.c: Likewise.
32735         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
32736         * modules/carray-list-tests (Makefile.am): Likewise.
32737         * modules/linked-list-tests (Makefile.am): Likewise.
32738         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32739         * modules/avltree-list-tests (Makefile.am): Likewise.
32740         * modules/rbtree-list-tests (Makefile.am): Likewise.
32741         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32742         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32743
32744         * NEWS: Mention the changes.
32745
32746         * lib/clean-temp.c: Include gl_xlist.h.
32747         * modules/clean-temp (Depends-on): Add xlist.
32748
32749         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
32750         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
32751
32752         * tests/test-array_oset.c: Include gl_xlist.h.
32753         * modules/array-oset-tests (Depends-on): Add xlist.
32754
32755         Reported by José E. Marchesi <jemarch@gnu.org>.
32756
32757 2009-12-13  Bruno Haible  <bruno@clisp.org>
32758
32759         Move the malloc checking from module 'oset' to new module 'xoset'.
32760         * modules/xoset: New file.
32761         * lib/gl_xoset.h: New file.
32762         * lib/gl_xoset.c: New file.
32763         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32764         declarations.
32765         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32766         (struct gl_oset_implementation): Rename and change methods accordingly.
32767         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32768         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32769         'int'. Mark as __warn_unused_result__.
32770         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32771         gl_oset_create_empty.
32772         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32773         'int'.
32774         * lib/gl_array_oset.c: Don't include xalloc.h.
32775         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32776         malloc, not xmalloc.
32777         (grow): Change return type to 'int'. Don't call xalloc_die.
32778         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32779         to 'int'.
32780         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32781         'int'.
32782         (gl_array_oset_implementation): Update.
32783         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32784         gl_tree_create_empty.
32785         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32786         'int'.
32787         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32788         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32789         xmalloc.
32790         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32791         not xmalloc.
32792         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32793         xmalloc.
32794         (gl_avltree_oset_implementation): Update.
32795         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
32796         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32797         xmalloc.
32798         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32799         not xmalloc.
32800         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32801         xmalloc.
32802         (gl_rbtree_oset_implementation): Update.
32803         * modules/array-oset (Depends-on): Remove xalloc.
32804         * modules/avltree-oset (Depends-on): Likewise.
32805         * modules/rbtree-oset (Depends-on): Likewise.
32806         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
32807         * tests/test-avltree_oset.c: Likewise.
32808         * tests/test-rbtree_oset.c: Likewise.
32809         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32810         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32811         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32812         * NEWS: Mention the change.
32813
32814 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32815
32816         maint.mk: allow a project to override release-prep commands
32817         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32818         commands into a new rule.
32819         (release-prep): New rule.
32820         (release-prep-hook): New overridable variable.
32821
32822 2009-12-13  Bruno Haible  <bruno@clisp.org>
32823
32824         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32825
32826 2009-12-13  Jim Meyering  <meyering@redhat.com>
32827
32828         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32829         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32830
32831 2009-12-12  Bruno Haible  <bruno@clisp.org>
32832
32833         duplocale: Tweak.
32834         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32835
32836 2009-12-12  Karl Berry  <karl@gnu.org>
32837
32838         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32839
32840 2009-12-12  Bruno Haible  <bruno@clisp.org>
32841
32842         * m4/po.m4: Undo incorrect untabification.
32843
32844 2009-12-12  Bruno Haible  <bruno@clisp.org>
32845
32846         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32847         * modules/c-strtod (Depends-on): Add locale.
32848         * modules/c-strtold (Depends-on): Likewise.
32849
32850 2009-12-12  Bruno Haible  <bruno@clisp.org>
32851
32852         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32853
32854 2009-12-11  Eric Blake  <ebb9@byu.net>
32855
32856         setenv: relax requirement in light of POSIX ruling
32857         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32858         not NULL.
32859         * tests/test-setenv.c (main): Relax test.
32860         * tests/test-unsetenv.c (main): Likewise.
32861         * doc/posix-functions/setenv.texi (setenv): Document this.
32862         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32863
32864 2009-12-11  Bruno Haible  <bruno@clisp.org>
32865
32866         New module 'fd-safer-flag'.
32867         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32868         * lib/dup-safer.c (dup_safer_flag): Remove function.
32869         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32870         * lib/fd-safer.c (fd_safer_flag): Remove function.
32871         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32872         * modules/cloexec (configure.ac): Drop indicator macro.
32873         * modules/fd-safer-flag: New file.
32874         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32875         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32876         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32877
32878 2009-12-11  Bruno Haible  <bruno@clisp.org>
32879
32880         Tests for module 'nl_langinfo'.
32881         * modules/nl_langinfo-tests: New file.
32882         * tests/test-nl_langinfo.sh: New file.
32883         * tests/test-nl_langinfo.c: New file.
32884
32885         New module 'nl_langinfo'.
32886         * lib/nl_langinfo.c: New file.
32887         * m4/nl_langinfo.m4: New file.
32888         * modules/nl_langinfo: New file.
32889         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32890
32891 2009-12-11  Bruno Haible  <bruno@clisp.org>
32892
32893         Tests for module 'langinfo'.
32894         * modules/langinfo-tests: New file.
32895         * tests/test-langinfo.c: New file.
32896
32897         New module 'langinfo'.
32898         * lib/langinfo.in.h: New file.
32899         * m4/langinfo_h.m4: New file.
32900         * modules/langinfo: New file.
32901         * doc/posix-headers/langinfo.texi: Mention the new module.
32902
32903 2009-12-11  Bruno Haible  <bruno@clisp.org>
32904
32905         * lib/config.charset: Untabify.
32906
32907 2009-12-11  Bruno Haible  <bruno@clisp.org>
32908
32909         * modules/unistd-safer (configure.ac): Drop indicator macro.
32910
32911 2009-12-11  Bruno Haible  <bruno@clisp.org>
32912
32913         Move pipe2-safer code to its own file.
32914         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32915         * lib/pipe-safer.c (pipe2_safer): Remove function.
32916         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32917         (Makefile.am): Add it to lib_SOURCES.
32918
32919 2009-12-10  Bruno Haible  <bruno@clisp.org>
32920
32921         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32922
32923 2009-12-10  Bruno Haible  <bruno@clisp.org>
32924
32925         Declare which arguments expect non-NULL values, for GCC and clang.
32926         * build-aux/arg-nonnull.h: New file.
32927         * modules/arg-nonnull: New file.
32928         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32929         (inet_ntop, inet_pton): Use it.
32930         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32931         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32932         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32933         (open, openat): Use it.
32934         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32935         (fnmatch): Use it.
32936         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32937         (getopt, getopt_long, getopt_long_only): Use it.
32938         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32939         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32940         Use it.
32941         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32942         (iconv_open): Use it.
32943         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32944         (strtoimax, strtoumax): Use it.
32945         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32946         (duplocale): Use it.
32947         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32948         (frexp, frexpl): Use it.
32949         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32950         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32951         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32952         (tsearch, tfind, tdelete, twalk): Use it.
32953         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32954         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32955         sigpending): Use it.
32956         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32957         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32958         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32959         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32960         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32961         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32962         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32963         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32964         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32965         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32966         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32967         Use it.
32968         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32969         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32970         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32971         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32972         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32973         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32974         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32975         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32976         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32977         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32978         strtoull, unsetenv): Use it.
32979         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32980         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32981         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32982         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32983         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32984         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32985         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32986         (strcasecmp, strncasecmp): Use it.
32987         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32988         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32989         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32990         rpl_setsockopt): Use it.
32991         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32992         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32993         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32994         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32995         (gettimeofday): Use it.
32996         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32997         (times): Use it.
32998         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32999         (uname): Use it.
33000         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
33001         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
33002         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
33003         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
33004         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
33005         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
33006         unlinkat, write): Use it.
33007         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
33008         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
33009         * lib/argv-iter.h: Include arg-nonnull.h.
33010         (_ATTRIBUTE_NONNULL_): Remove macro.
33011         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
33012         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
33013         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
33014         optimization.
33015         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
33016         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
33017         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
33018         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
33019         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
33020         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
33021         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
33022         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
33023         * modules/arpa_inet (Depends-on): Add arg-nonnull.
33024         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
33025         * modules/dirent (Depends-on): Add arg-nonnull.
33026         (Makefile.am): Insert arg-nonnull.h into dirent.h.
33027         * modules/fcntl-h (Depends-on): Add arg-nonnull.
33028         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
33029         * modules/fnmatch (Depends-on): Add arg-nonnull.
33030         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
33031         * modules/getopt-posix (Depends-on): Add arg-nonnull.
33032         (Makefile.am): Insert arg-nonnull.h into getopt.h.
33033         * modules/glob (Depends-on): Add arg-nonnull.
33034         (Makefile.am): Insert arg-nonnull.h into glob.h.
33035         * modules/iconv_open (Depends-on): Add arg-nonnull.
33036         (Makefile.am): Insert arg-nonnull.h into iconv.h.
33037         * modules/inttypes (Depends-on): Add arg-nonnull.
33038         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
33039         * modules/locale (Depends-on): Add arg-nonnull.
33040         (Makefile.am): Insert arg-nonnull.h into locale.h.
33041         * modules/math (Depends-on): Add arg-nonnull.
33042         (Makefile.am): Insert arg-nonnull.h into math.h.
33043         * modules/netdb (Depends-on): Add arg-nonnull.
33044         (Makefile.am): Insert arg-nonnull.h into netdb.h.
33045         * modules/search (Depends-on): Add arg-nonnull.
33046         (Makefile.am): Insert arg-nonnull.h into search.h.
33047         * modules/signal (Depends-on): Add arg-nonnull.
33048         (Makefile.am): Insert arg-nonnull.h into signal.h.
33049         * modules/spawn (Depends-on): Add arg-nonnull.
33050         (Makefile.am): Insert arg-nonnull.h into spawn.h.
33051         * modules/stdio (Depends-on): Add arg-nonnull.
33052         (Makefile.am): Insert arg-nonnull.h into stdio.h.
33053         * modules/stdlib (Depends-on): Add arg-nonnull.
33054         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
33055         * modules/string (Depends-on): Add arg-nonnull.
33056         (Makefile.am): Insert arg-nonnull.h into string.h.
33057         * modules/strings (Depends-on): Add arg-nonnull.
33058         (Makefile.am): Insert arg-nonnull.h into strings.h.
33059         * modules/sys_socket (Depends-on): Add arg-nonnull.
33060         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
33061         * modules/sys_stat (Depends-on): Add arg-nonnull.
33062         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
33063         * modules/sys_time (Depends-on): Add arg-nonnull.
33064         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
33065         * modules/sys_times (Depends-on): Add arg-nonnull.
33066         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
33067         * modules/sys_utsname (Depends-on): Add arg-nonnull.
33068         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
33069         * modules/time (Depends-on): Add arg-nonnull.
33070         (Makefile.am): Insert arg-nonnull.h into time.h.
33071         * modules/unistd (Depends-on): Add arg-nonnull.
33072         (Makefile.am): Insert arg-nonnull.h into unistd.h.
33073         * modules/wchar (Depends-on): Add arg-nonnull.
33074         (Makefile.am): Insert arg-nonnull.h into wchar.h.
33075         * modules/argv-iter (Depends-on): Add arg-nonnull.
33076         * tests/test-canonicalize.c (null_ptr): New function.
33077         (main): Use it.
33078         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
33079         (main): Use it.
33080         * tests/test-memmem.c (null_ptr): New function.
33081         (main): Use it.
33082         Reported by Jim Meyering.
33083
33084 2009-12-10  Bruno Haible  <bruno@clisp.org>
33085
33086         Use spaces for indentation, not tabs.
33087         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
33088         * m4/*.m4: Untabify.
33089         * build-aux/*.h: Untabify.
33090         * tests/**/*.[hc]: Untabify.
33091         * README: New section "Indent with spaces, not TABs", based on
33092         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
33093         * NEWS: Mention the change.
33094
33095 2009-12-10  Bruno Haible  <bruno@clisp.org>
33096
33097         pty test: Fix link error.
33098         * modules/pty-tests (Makefile.am): Add the default LDADD value to
33099         test_pty_LDADD.
33100
33101 2009-12-07  Simon Josefsson  <simon@josefsson.org>
33102
33103         * modules/pty: New file.
33104         * modules/pty-tests: New file.
33105         * m4/pty.m4: New file.
33106         * tests/test-pty.c: New file.
33107         * doc/glibc-headers/pty.texi: Modified.
33108         * doc/glibc-functions/forkpty.texi: Modified.
33109         * doc/glibc-functions/openpty.texi: Modified.
33110
33111 2009-12-10  Bruno Haible  <bruno@clisp.org>
33112
33113         Avoid syntax error in C++ mode.
33114         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
33115
33116 2009-12-10  Bruno Haible  <bruno@clisp.org>
33117
33118         Use sed with option -e.
33119         * gnulib-tool (func_version, func_emit_copyright_notice,
33120         func_emit_initmacro_end, func_import, func_create_testdir): Pass
33121         option -e to sed.
33122         * modules/link-warning (Makefile.am): Likewise.
33123
33124 2009-12-10  Jim Meyering  <meyering@redhat.com>
33125
33126         mgetgroups: do not write bytes beyond end of malloc'd buffer
33127         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
33128         username, we call getgroups with a one-element-shorter buffer,
33129         but still told it the length was original, max_n_groups.
33130
33131 2009-12-09  Eric Blake  <ebb9@byu.net>
33132
33133         cloexec: relax license
33134         * modules/cloexec (Maintainer): Add myself.
33135         (License): Use LGPL, not GPL.
33136
33137         link-warning: optimize generation
33138         * modules/link-warning (Makefile.am): Reduce process usage.
33139
33140 2009-12-09  Bruno Haible  <bruno@clisp.org>
33141
33142         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
33143         workaround was added on 2009-11-17.
33144
33145 2009-12-09  Jim Meyering  <meyering@redhat.com>
33146             Bruno Haible  <bruno@clisp.org>
33147
33148         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
33149         * modules/link-warning (Makefile.am): Make the comment-removing sed
33150         command more robust in the face of bootstrap-prepended comment lines.
33151
33152 2009-12-09  Bruno Haible  <bruno@clisp.org>
33153
33154         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
33155         most one group.
33156
33157 2009-12-09  Simon Josefsson <simon@josefsson.org>
33158             Bruno Haible  <bruno@clisp.org>
33159
33160         * build-aux/link-warning.h: Add copyright notice.
33161         * modules/link-warning (Makefile.am): Generate link-warning.h from
33162         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
33163         * NEWS: Mention change in link-warning module.
33164         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
33165         * modules/dirent (Makefile.am): Add dependency to dirent.h.
33166         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
33167         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
33168         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
33169         * modules/math (Makefile.am): Add dependency to math.h.
33170         * modules/search (Makefile.am): Add dependency to search.h.
33171         * modules/signal (Makefile.am): Add dependency to signal.h.
33172         * modules/spawn (Makefile.am): Add dependency to spawn.h.
33173         * modules/stdio (Makefile.am): Add dependency to stdio.h.
33174         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
33175         * modules/string (Makefile.am): Add dependency to string.h.
33176         * modules/strings (Makefile.am): Add dependency to strings.h.
33177         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
33178         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
33179         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
33180         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
33181         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
33182         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
33183         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
33184         * modules/unistd (Makefile.am): Add dependency to unistd.h.
33185         * modules/wchar (Makefile.am): Add dependency to wchar.h.
33186
33187 2009-12-09  Bruno Haible  <bruno@clisp.org>
33188
33189         fchdir: Optimize away rpl_fstat when possible.
33190         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
33191         REPLACE_OPEN_DIRECTORY.
33192         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
33193
33194 2009-12-09  Bruno Haible  <bruno@clisp.org>
33195
33196         * lib/fchdir.c: Update comment.
33197
33198 2009-12-09  Bruno Haible  <bruno@clisp.org>
33199
33200         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
33201
33202 2009-12-08  Eric Blake  <ebb9@byu.net>
33203
33204         fchdir: avoid memory leak on re-registration.
33205         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
33206
33207 2009-12-08  Jim Meyering  <meyering@redhat.com>
33208
33209         init.sh: avoid Solaris 10 /bin/sh portability problem
33210         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
33211         sourced script:
33212           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
33213           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
33214           bar
33215         tests/init.sh relied on that, accepting a --set-path=DIR argument,
33216         and two tests used that idiom.
33217         * tests/init.sh: Update suggested usage comments.
33218         (path_prepend_): New function, to be used in place
33219         of the --src-path=DIR option.
33220         (setup_): Move PATH-prepending code into path_prepend_.
33221         * tests/test-pread.sh: Adapt to new usage.
33222         * tests/test-xalloc-die.sh: Likewise.
33223
33224 2009-12-08  Simon Josefsson  <simon@josefsson.org>
33225
33226         * doc/gnulib.texi (Glibc pty.h): Add.
33227         * doc/glibc-functions/forkpty.texi: Add.
33228         * doc/glibc-functions/openpty.texi: Add.
33229         Suggested by Bruno Haible.
33230
33231 2009-12-08  Eric Blake  <ebb9@byu.net>
33232
33233         fchdir: fix logic bugs
33234         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
33235         * tests/test-fchdir.c (main): Enhance test.
33236         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
33237         is in use.
33238
33239         dup2: fix logic bugs
33240         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
33241         REPLACE_DUP2 to decide when rpl_dup2 is needed.
33242         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
33243         exists.
33244         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
33245
33246 2009-12-07  Eric Blake  <ebb9@byu.net>
33247
33248         unlink: fix m4 detection
33249         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
33250
33251         unistd-safer: add unit test
33252         * modules/unistd-safer-tests: New file.
33253         * tests/test-dup-safer.c: Likewise.
33254         * tests/test-cloexec.c (setmode): Avoid compiler warning.
33255         * tests/test-dup2.c (setmode): Likewise.
33256         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
33257
33258         cloexec: preserve text vs. binary across dup_cloexec
33259         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
33260         mode.
33261         * modules/dup2-tests (Depends-on): Add binary-io.
33262         * modules/cloexec-tests (Depends-on): Likewise.
33263         * tests/test-dup2.c (setmode, is_mode): New helpers.
33264         (main): Add tests that translation mode is preserved.
33265         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
33266         Reported by Bruno Haible.
33267
33268         mgetgroups: reduce duplicate listings
33269         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
33270         resulting array.
33271         * tests/test-chown.h (test_chown): Simplify client.
33272         * tests/test-lchown.h (test_lchown): Likewise.
33273
33274 2009-12-06  Bruno Haible  <bruno@clisp.org>
33275
33276         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
33277         value.
33278
33279 2009-12-06  Bruno Haible  <bruno@clisp.org>
33280
33281         * lib/progname.c: Include stdio.h, stdlib.h.
33282         (set_program_name): Reject a NULL argument.
33283
33284 2009-12-05  Eric Blake  <ebb9@byu.net>
33285
33286         pipe2-safer: new module
33287         * modules/pipe2-safer: New file.
33288         * lib/unistd-safer.h (pipe2_safer): New prototype.
33289         * lib/unistd--.h (pipe2): New wrapper.
33290         * lib/pipe-safer.c (pipe2_safer): New function.
33291         * modules/pipe (Depends-on): Add pipe2-safer.
33292         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
33293
33294         stdlib-safer: preserve cloexec flag for mkostemp[s]
33295         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
33296         fd_safer_flag.
33297
33298         unistd-safer: allow preservation of cloexec status via flag
33299         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
33300         prototypes.
33301         * lib/dup-safer.c (dup_safer_flag): New function.
33302         * lib/fd-safer.c (fd_safer_flag): Likewise.
33303         * modules/cloexec (configure.ac): Set witness.
33304
33305         test-dup2: enhance test
33306         * modules/dup2-tests (Depends-on): Add cloexec.
33307         * tests/test-dup2.c (main): Enhance test.
33308
33309         cloexec: add dup_cloexec
33310         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
33311         header and comments.
33312         * lib/cloexec.c (set_cloexec_flag): Add comments.
33313         (dup_cloexec): New function, with mingw implementation borrowed
33314         from...
33315         * lib/w32spawn.h (dup_noinherit): ...here.
33316         * modules/execute (Depends-on): Add cloexec.
33317         * modules/pipe (Depends-on): Likewise.
33318         * modules/cloexec (Depends-on): Add dup2.
33319         * modules/cloexec-tests (Files): New file.
33320         * tests/test-cloexec.c: Likewise.
33321
33322         test-xalloc-die: fix test for mingw
33323         * modules/xalloc-die-tests (Files): Add tests/init.sh.
33324         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
33325         directory and .exe suffix off argv[0] output.
33326
33327         test-fseeko: fix test for mingw
33328         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
33329         than undefining fseek, so test will pass on mingw.
33330
33331 2009-12-05  Bruno Haible  <bruno@clisp.org>
33332
33333         * lib/progname.h (set_program_name): Clarify specification.
33334         * lib/progname.c (set_program_name): Likewise.
33335         Reported by Jim Meyering.
33336
33337 2009-12-05  Jim Meyering  <meyering@redhat.com>
33338
33339         maint.mk: backslash-escape parens in default regexp
33340         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
33341         backslash-escape the literal parentheses.
33342
33343         maint.mk: news-date-check: use grep -E
33344         * top/maint.mk (today): Define a Make variable, not a...
33345         (news-date-check): ...shell variable.
33346         (news-date-regexp): Use the Make variable.
33347         Use grep's -E option.  Change the failing diagnostic to mention
33348         the variable, $(news-date-regexp).
33349
33350 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
33351
33352         maintainer-makefile: allow customization of NEWS entry format
33353         * top/maint.mk (news-date-regexp): New overridable variable.
33354         (news-date-check): Use it.
33355
33356 2009-12-04  Eric Blake  <ebb9@byu.net>
33357
33358         mgetgroups: add xgetgroups, and avoid ENOSYS failures
33359         * lib/mgetgroups.h (xgetgroups): New prototype.
33360         * lib/mgetgroups.c (xgetgroups): New wrapper.
33361         (mgetgroups): Handle ENOSYS.
33362         * modules/mgetgroups (Depends-on): Add realloc.
33363         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
33364
33365         mgetgroups: avoid argument promotion issues with -1
33366         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
33367         for invalid gid_t.
33368         * tests/test-chown.h (getegid, test_chown): Likewise.
33369         * tests/test-lchown.h (getegid, test_lchown): Likewise.
33370
33371 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
33372
33373         exclude: Fix header file problems.
33374         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
33375
33376 2009-12-01  Jim Meyering  <meyering@redhat.com>
33377
33378         fts: fts_open: do not let an empty string cause immediate failure
33379         This is required in support of GNU rm, for which the command
33380         "rm A '' B" must process and remove both A and B, in spite of
33381         the empty string argument.
33382         * lib/fts.c (fts_open): Do not let the presence of an empty string
33383         cause fts_open to fail immediately.  Most fts-using tools must be
33384         able to process all arguments, in order, and can be expected to
33385         diagnose such arguments themselves.
33386
33387 2009-11-30  Eric Blake  <ebb9@byu.net>
33388
33389         utimens: fix compilation error
33390         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
33391         Declare variable at right scope.
33392
33393 2009-11-29  Jim Meyering  <meyering@redhat.com>
33394
33395         bootstrap: handle perl-5.11's changed --version output
33396         * build-aux/bootstrap (get_version): Handle perl separately,
33397         since perl-5.11's --version output is different.
33398
33399 2009-11-28  Jim Meyering  <meyering@redhat.com>
33400
33401         userspec: depend on the inttostr module, too
33402         * modules/userspec (Depends-on): Add inttostr.
33403
33404         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
33405         * lib/userspec.c (parse_with_separator): Do not accept a user ID
33406         number of MAXUID when it evaluates to (uid_t) -1.
33407         Likewise for group ID.  Reported by Matt McCutchen in
33408         <http://savannah.gnu.org/bugs/?28113>
33409
33410         userspec: reformat to use spaces, not TABs
33411         * lib/userspec.c: Expand TABs to spaces.
33412         Add Emacs' "indent-tabs-mode: nil" hint.
33413
33414 2009-11-27  Eric Blake  <ebb9@byu.net>
33415
33416         getopt-gnu: flush out another BSD bug
33417         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
33418         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
33419         flush out BSD bug.
33420         * tests/test-getopt.h (test_getopt): End lists with NULL.
33421         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33422         (test_getopt_long_posix): Enhance test.
33423         * modules/getopt-posix-tests (Depends-on): Add stdbool.
33424         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
33425         getopt-gnu.
33426         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33427         Likewise.
33428
33429 2009-11-27  Simon Josefsson  <simon@josefsson.org>
33430
33431         * modules/idpriv-droptemp-tests (Notice): Fix text.
33432
33433 2009-11-27  Jim Meyering  <meyering@redhat.com>
33434
33435         test-xalloc-die: avoid spurious failure due to libtool argv difference
33436         In a libtool-enabled project, this test would fail due to a difference
33437         in the emitted program name, e.g.,
33438         -test-xalloc-die: memory exhausted
33439         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
33440         Use program to avoid that.
33441         * modules/xalloc-die-tests (Depends-on): Add progname.
33442         * tests/test-xalloc-die.c: Include progname.h".
33443         (program_name): Remove decl.
33444         (main): Call set_program_name.
33445         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
33446
33447 2009-11-26  Richard Jones  <rjones@redhat.com>
33448
33449         w32sock: leave win32 error in place.
33450         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
33451
33452 2009-11-26  Eric Blake  <ebb9@byu.net>
33453
33454         init.sh: suggest to use skip_ and fail_ functions in comments
33455         * tests/init.sh: Add a sentence.
33456
33457 2009-11-25  Bruno Haible  <bruno@clisp.org>
33458
33459         init.sh: add documentation in comments
33460         * tests/init.sh: Add some developer and user documentation.
33461
33462 2009-11-26  Jim Meyering  <meyering@redhat.com>
33463
33464         init.sh: accommodate even those who specify bogus srcdir manually
33465         * tests/init.sh: Normally, srcdir is guaranteed by automake and
33466         configure-time tests to be sanitized, so that there is no need to
33467         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
33468         (with no double quotes) suffices.  However, since tests may be
33469         invoked manually, and since you may explicitly set srcdir to the
33470         name of a directory containing spaces, do quote its uses here.
33471         * tests/test-pread.sh: Likewise.
33472         Suggested by Bruno Haible.
33473
33474         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
33475         * tests/test-pread.sh: Write no data into the pipe, because
33476         test-pread actually reads none.  This avoids a diagnostic,
33477         "bash: echo: write error: Broken pipe", that arises in the unusual
33478         event something is ignoring SIGPIPE, and might be interpreted
33479         as some sort of failure.  Reported by Bruno Haible.
33480
33481 2009-11-25  Jim Meyering  <meyering@redhat.com>
33482
33483         test-pread: cover failure with ESPIPE and EINVAL
33484         * tests/test-pread.c (main): Test for failure, too.
33485         * tests/test-pread.sh: Invoke with stdin on a pipe.
33486         Suggested by Eric Blake.
33487
33488         pread: improvement and fix
33489         * modules/pread (Depends-on): Depend on lseek, for portability to
33490         e.g., mingw.  Suggested by Eric Blake.
33491         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
33492
33493         unistd.in.h: correct declaration of pread
33494         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
33495         Reported by Richard W.M. Jones.
33496
33497         test-pread.sh: distribute the test script
33498         * modules/pread-tests (Files): Include test-pread.sh.
33499
33500         test-pread.sh: clean up
33501         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
33502         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
33503         That is unnecessary, since it's always ".".
33504         Suggestion from Eric Blake.
33505
33506         test-pread.sh: make executable
33507         * tests/test-pread.sh: Set executable bit.
33508         Reported by Eric Blake.
33509
33510         correct typo in test-pread.sh
33511         * tests/test-pread.sh: Add #! line.
33512
33513         test pread
33514         * tests/test-pread.c: New file.
33515         * tests/test-pread.sh: Likewise.
33516         * modules/pread-tests: Likewise.
33517
33518         pread: new module
33519         * modules/pread: New file.
33520         * lib/unistd.in.h (pread): Define/declare.
33521         * lib/pread.c (pread): New file.
33522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
33523         * modules/unistd (Makefile.am): Substitute witnesses.
33524         * doc/posix-functions/pread.texi (pread): Update.
33525         * MODULES.html.sh: Add pread.
33526
33527 2009-11-25  Jim Meyering  <meyering@redhat.com>
33528
33529         tests/init.sh: new file to be used via most *.sh tests
33530         * tests/init.sh: New file.
33531
33532 2009-11-25  Eric Blake  <ebb9@byu.net>
33533
33534         utimens: work around older Linux failure with symlinks
33535         * lib/utimens.c (lutimensat_works_really): New variable.
33536         (fdutimens, lutimens): Use it to manage kernels that support
33537         nanosecond times on files, but not on symlinks.
33538         Reported by Ondřej Vašík.
33539
33540         utimes: fix configure grammar
33541         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
33542
33543 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
33544
33545         regex: Fix fastmap for multibyte character ranges.
33546         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
33547         characters when a multibyte character range is included.
33548
33549 2009-11-22  Andy Wingo  <wingo@pobox.com>
33550
33551         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
33552         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
33553
33554 2009-11-24  Bruno Haible  <bruno@clisp.org>
33555
33556         doc: Most *_l functions exist in MacOS X 10.5.
33557         * doc/posix-functions/duplocale.texi: Update platforms list.
33558         * doc/posix-functions/freelocale.texi: Likewise.
33559         * doc/posix-functions/newlocale.texi: Likewise.
33560         * doc/posix-functions/uselocale.texi: Likewise.
33561         * doc/posix-functions/isalnum_l.texi: Likewise.
33562         * doc/posix-functions/isalpha_l.texi: Likewise.
33563         * doc/posix-functions/isblank_l.texi: Likewise.
33564         * doc/posix-functions/iscntrl_l.texi: Likewise.
33565         * doc/posix-functions/isdigit_l.texi: Likewise.
33566         * doc/posix-functions/isgraph_l.texi: Likewise.
33567         * doc/posix-functions/islower_l.texi: Likewise.
33568         * doc/posix-functions/isprint_l.texi: Likewise.
33569         * doc/posix-functions/ispunct_l.texi: Likewise.
33570         * doc/posix-functions/isspace_l.texi: Likewise.
33571         * doc/posix-functions/isupper_l.texi: Likewise.
33572         * doc/posix-functions/iswalnum_l.texi: Likewise.
33573         * doc/posix-functions/iswalpha_l.texi: Likewise.
33574         * doc/posix-functions/iswblank_l.texi: Likewise.
33575         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33576         * doc/posix-functions/iswctype_l.texi: Likewise.
33577         * doc/posix-functions/iswdigit_l.texi: Likewise.
33578         * doc/posix-functions/iswgraph_l.texi: Likewise.
33579         * doc/posix-functions/iswlower_l.texi: Likewise.
33580         * doc/posix-functions/iswprint_l.texi: Likewise.
33581         * doc/posix-functions/iswpunct_l.texi: Likewise.
33582         * doc/posix-functions/iswspace_l.texi: Likewise.
33583         * doc/posix-functions/iswupper_l.texi: Likewise.
33584         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33585         * doc/posix-functions/isxdigit_l.texi: Likewise.
33586         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
33587         * doc/posix-functions/strcasecmp_l.texi: Likewise.
33588         * doc/posix-functions/strcoll_l.texi: Likewise.
33589         * doc/posix-functions/strfmon_l.texi: Likewise.
33590         * doc/posix-functions/strftime_l.texi: Likewise.
33591         * doc/posix-functions/strncasecmp_l.texi: Likewise.
33592         * doc/posix-functions/strxfrm_l.texi: Likewise.
33593         * doc/posix-functions/tolower_l.texi: Likewise.
33594         * doc/posix-functions/toupper_l.texi: Likewise.
33595         * doc/posix-functions/towctrans_l.texi: Likewise.
33596         * doc/posix-functions/towlower_l.texi: Likewise.
33597         * doc/posix-functions/towupper_l.texi: Likewise.
33598         * doc/posix-functions/wcscoll_l.texi: Likewise.
33599         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33600         * doc/posix-functions/wctrans_l.texi: Likewise.
33601         * doc/posix-functions/wctype_l.texi: Likewise.
33602         * doc/glibc-functions/strptime_l.texi: Likewise.
33603         * doc/glibc-functions/strtod_l.texi: Likewise.
33604         * doc/glibc-functions/strtof_l.texi: Likewise.
33605         * doc/glibc-functions/strtol_l.texi: Likewise.
33606         * doc/glibc-functions/strtold_l.texi: Likewise.
33607         * doc/glibc-functions/strtoll_l.texi: Likewise.
33608         * doc/glibc-functions/strtoul_l.texi: Likewise.
33609         * doc/glibc-functions/strtoull_l.texi: Likewise.
33610         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33611         * doc/glibc-functions/wcstod_l.texi: Likewise.
33612         * doc/glibc-functions/wcstof_l.texi: Likewise.
33613         * doc/glibc-functions/wcstol_l.texi: Likewise.
33614         * doc/glibc-functions/wcstold_l.texi: Likewise.
33615         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33616         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33617         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33618
33619 2009-11-24  Bruno Haible  <bruno@clisp.org>
33620
33621         duplocale: Fix logic bug.
33622         * lib/duplocale.c: Don't include <langinfo.h>.
33623         (_NL_LOCALE_NAME): Remove macro.
33624         (rpl_duplocale): Use setlocale instead of nl_langinfo.
33625         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
33626
33627 2009-11-23  Jim Meyering  <meyering@redhat.com>
33628
33629         test-update-copyright: don't hard-code /usr/bin/perl
33630         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
33631         perl to print the current year.  Gilles Espinasse reported that
33632         the replaced use of perl was hard-coded as /usr/bin/perl.
33633
33634 2009-11-23  Bruno Haible  <bruno@clisp.org>
33635
33636         duplocale: Add support for glibc 2.3.x.
33637         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
33638
33639 2009-11-22  Bruno Haible  <bruno@clisp.org>
33640
33641         vasnprintf: Tiny optimization.
33642         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33643         MacOS X.
33644
33645 2009-11-22  Bruno Haible  <bruno@clisp.org>
33646
33647         Tests for module 'duplocale'.
33648         * modules/duplocale-tests: New file.
33649         * tests/test-duplocale.c: New file.
33650
33651         New module 'duplocale'.
33652         * m4/duplocale.m4: New file.
33653         * lib/locale.in.h (duplocale): New declaration.
33654         * lib/duplocale.c: New file.
33655         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33656         gl_LOCALE_H_DEFAULTS): New macros.
33657         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33658         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33659         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33660         REPLACE_DUPLOCALE.
33661         * modules/duplocale: New file.
33662         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33663
33664 2009-11-22  Bruno Haible  <bruno@clisp.org>
33665
33666         * modules/locale-tests (configure.ac): Test for newlocale function.
33667         * tests/test-locale.c: When the system has extended locale functions,
33668         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33669
33670         locale: Make locale_t available when possible.
33671         * lib/locale.in.h: Include <xlocale.h> when it exists.
33672         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33673         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33674         * modules/locale (Depends-on): Add extensions.
33675         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33676         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33677
33678 2009-11-22  Bruno Haible  <bruno@clisp.org>
33679
33680         Add comments.
33681         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33682         invocation.
33683         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33684         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33685         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33686
33687 2009-11-22  Bruno Haible  <bruno@clisp.org>
33688
33689         error: account for the possibility of freopen (stdout).
33690         * lib/error.c: Include <unistd.h>.
33691         (flush_stdout): New function, extracted from error and error_at_line.
33692         Determine stdout's fd dynamically.
33693         (error, error_at_line): Invoke flush_stdout.
33694         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
33695         * modules/error (Depends-on): Add unistd.
33696
33697 2009-11-22  Bruno Haible  <bruno@clisp.org>
33698
33699         diffseq: Add comment.
33700         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
33701
33702 2009-11-22  Jim Meyering  <meyering@redhat.com>
33703
33704         c-stack: avoid defining an unused static function
33705         * lib/c-stack.c (find_stack_direction): Do not define this function
33706         when it will not be used.
33707
33708         diffseq: avoid spurious gcc warnings
33709         * lib/diffseq.h (IF_LINT2): Define.
33710         (compareseq): Use it to initialize two members of "part".
33711         This avoids two used-uninitialized warnings.
33712
33713 2009-11-21  Jim Meyering  <meyering@redhat.com>
33714
33715         c-stack: avoid "ignoring return value of `write'" warning
33716         * lib/c-stack.c: Include "ignore-value.h".
33717         (die): Explicitly ignore each write return value.
33718         * modules/c-stack (Depends-on): Add ignore-value.
33719
33720 2009-11-21  Bruno Haible  <bruno@clisp.org>
33721
33722         diffseq: reduce scope of variable 'best'.
33723         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33724         variable, earlier used for two different purposes.
33725
33726 2009-11-21  Jim Meyering  <meyering@redhat.com>
33727
33728         diffseq: remove useless assignment to "best"
33729         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33730         assignment.  At that point "best" is already guaranteed to be zero.
33731
33732 2009-11-20  Eric Blake  <ebb9@byu.net>
33733
33734         build: mention ftp redirector in release announcements
33735         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
33736         values that used to come from cfg.mk; mention FTP redirect URL.
33737         * build-aux/announce-gen: Mention the mirror list.
33738         Suggested by Karl Berry.
33739
33740         nanosleep: improve port to mingw
33741         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
33742         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
33743         LIB_NANOSLEEP, but only when needed.
33744         * modules/select (Link): Document LIBSOCKET.
33745         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
33746         enough.
33747
33748         nanosleep: work around cygwin bug
33749         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
33750         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
33751         bug.
33752         (getnow): Delete, not needed.
33753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
33754         LIB_CLOCK_GETTIME.
33755         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
33756         clock-time, gettime.
33757         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33758         bug.
33759         * modules/nanosleep-tests: New test.
33760         * tests/test-nanosleep.c: New file.
33761
33762         sleep: work around cygwin bug
33763         * lib/sleep.c (rpl_sleep): Work around the bug.
33764         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33765         (gl_PREREQ_SLEEP): Delete unused macro.
33766         * modules/sleep (Depends-on): Add verify.
33767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33768         * modules/unistd (Makefile.am): Substitute witness.
33769         * lib/unistd.in.h (sleep): Update prototype.
33770         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33771         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33772         * modules/sleep-tests (Depends-on): Check for alarm.
33773
33774 2009-11-20  Jim Meyering  <meyering@redhat.com>
33775
33776         maint.mk: improve sc_prohibit_magic_number_exit
33777         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33778         so it does not match uses like System.exit(1).
33779         Add comments showing how to correct all offenders.
33780
33781 2009-11-19  Eric Blake  <ebb9@byu.net>
33782
33783         xalloc-die-tests: add missing library
33784         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33785
33786         test-xvasprintf: silence compiler warnings
33787         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33788         empty string from gcc.
33789
33790 2009-11-19  Jim Meyering  <meyering@redhat.com>
33791
33792         xfreopen: new module, from coreutils
33793         * modules/xfreopen: New module.
33794         * lib/xfreopen.c: New file.
33795         * lib/xfreopen.h: New file.
33796         * MODULES.html.sh (File stream based Input/Output"): Add it.
33797
33798 2009-11-19  Eric Blake  <ebb9@byu.net>
33799
33800         manywarnings: depend on warnings
33801         * modules/manywarnings (Depends-on): Add warnings.
33802
33803         build: avoid compiler warnings
33804         * lib/select.c (rpl_select): Delete unused variable.
33805         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
33806
33807 2009-11-18  Eric Blake  <ebb9@byu.net>
33808
33809         tests: avoid false negative with --with-packager
33810         * tests/test-version-etc.sh: Discard packager information.
33811         * tests/test-argp-version-etc-1.sh: Likewise.
33812         Reported by Mike Frysinger.
33813
33814         utimens: fix regression on Solaris
33815         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33816         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33817         can only change fd timestamps via futimesat.  Instead, use an
33818         additional witness macro to avoid BSD bug.
33819         Reported by Jim Meyering.
33820
33821 2009-11-17  Eric Blake  <ebb9@byu.net>
33822
33823         usleep: use it to simplify tests
33824         * modules/stat-time-tests (Depends-on): Add usleep.
33825         (configure.ac): Drop usleep check.
33826         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33827         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33828         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33829         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33830         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33831         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33832         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33833         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33834         Likewise.
33835         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33836         * tests/test-lchown.h (nap): Likewise.
33837         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33838         * tests/test-stat-time.c (nap): Likewise.
33839         * tests/test-utimens-common.h (nap): Update comments.
33840
33841         usleep: new module
33842         * modules/usleep: New file.
33843         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33844         * lib/usleep.c (usleep): Likewise.
33845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33846         * modules/unistd (Makefile.am): Substitute witnesses.
33847         * lib/unistd.in.h (usleep): Add declaration.
33848         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33849         * MODULES.html.sh (Date and time): Likewise.
33850         * modules/usleep-tests (Depends-on): New test.
33851         * tests/test-usleep.c: New file.
33852
33853         chown: work around OpenBSD bug
33854         * lib/chown.c (rpl_chown): Work around the bug.
33855         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33856         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33857         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33858         * modules/chown (Depends-on): Add stdbool.
33859         * modules/lchown (Depends-on): Likewise.
33860         * doc/posix-functions/chown.texi (chown): Document the bug.
33861         * doc/posix-functions/lchown.texi (lchown): Likewise.
33862         * tests/test-lchown.h (test_chown): Relax test.
33863
33864         mkstemp: avoid conflict with C++ keyword template
33865         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33866         * lib/mkostemp.c (mkostemp): Likewise.
33867         * lib/mkostemps.c (mkostemps): Likewise.
33868         * lib/mkstemp.c (mkstemp): Likewise.
33869         * lib/mkstemps.c (mkstemps): Likewise.
33870
33871         xalloc-die-tests: optimize
33872         * tests/test-xalloc-die.sh: Reduce number of processes.
33873
33874 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33875
33876         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33877         patch from ludo@gnu.org (Ludovic Courtès).
33878
33879 2009-11-17  Jim Meyering  <meyering@redhat.com>
33880
33881         version-etc: use proper license string
33882         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33883         * modules/version-etc-fsf: Likewise.
33884
33885 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33886
33887         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33888         printed to stdout.  Deal with EOL differences.
33889
33890 2009-11-17  Eric Blake  <ebb9@byu.net>
33891
33892         unsetenv: work around Solaris bug
33893         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33894         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33895         Reported by Jim Meyering.
33896
33897         vasnprintf: avoid compiler warnings
33898         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33899         variables.
33900         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33901
33902 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33903
33904         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33905         settings since xalloc-die is no longer the self test,
33906         xalloc-die.sh is.
33907
33908 2009-11-17  Jim Meyering  <meyering@redhat.com>
33909
33910         test-xalloc-die.sh: make the code agree with the commit log
33911         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33912         at the end, just in case you happen to have a test-xalloc-die
33913         program in some other PATH directory.
33914
33915         test-xalloc-die.sh: fix a portability bug
33916         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33917         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33918         Otherwise, argv[0] (as often seen in diagnostics) would be too
33919         system-dependent, sometimes with, and sometimes without the leading "./".
33920
33921         version-etc-fsf: relax license to LGPLv3+
33922         * modules/version-etc-fsf (License): Relax license.
33923
33924 2009-11-16  Eric Blake  <ebb9@byu.net>
33925
33926         xalloc-die-tests: avoid printing null pointer
33927         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33928         shell script.
33929         * tests/test-xalloc-die.c (program_name): Declare.
33930         * tests/test-xalloc-die.sh (tmpfiles): New file.
33931
33932         setenv, unsetenv: work around various bugs
33933         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33934         (setenv) [HAVE_SETENV]: Work around bugs.
33935         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33936         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33937         for bugs.
33938         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33939         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33941         * modules/stdlib (Makefile.am): Update substitutions.
33942         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33943         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33944         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33945         * modules/setenv-tests: New test.
33946         * modules/unsetenv-tests: Likewise.
33947         * tests/test-setenv.c: New file.
33948         * tests/test-unsetenv.c: Likewise.
33949
33950 2009-11-16  Jim Meyering  <meyering@redhat.com>
33951
33952         version-etc: relax license to LGPLv3+
33953         * modules/version-etc (License): Relax license.
33954
33955         better AC_REQUIRE expanded-before-required-warning avoidance
33956         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33957         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33958         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33959         which is no longer needed.
33960
33961 2009-11-16  Eric Blake  <ebb9@byu.net>
33962
33963         test-freading: clean up temporary file
33964         * tests/test-freading.c (main): Remove file on success, and use
33965         ASSERT more liberally.
33966         Reported by Jim Meyering.
33967
33968 2009-11-16  Jim Meyering  <meyering@redhat.com>
33969
33970         avoid new AC_REQUIRE expanded-before-required warnings
33971         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33972         merely using it.
33973         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33974         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33975
33976 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33977
33978         * tests/test-xalloc-die.c: New file.
33979         * modules/xalloc-die-tests: New file.
33980         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33981         XFAIL_TESTS so it can be appended by modules.
33982
33983 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33984
33985         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33986         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33987
33988 2009-11-14  Eric Blake  <ebb9@byu.net>
33989
33990         fnmatch: avoid compiler warning
33991         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33992         to silence compiler warning about mismatch signedness in ?:.
33993         Reported by Robert Millan.
33994
33995         intprops: add double-inclusion guard
33996         * lib/intprops.h: Allow idempotent includes.
33997         Suggested by Bruce Korb.
33998
33999         openat: detect Solaris fchownat bug
34000         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
34001         penalizing glibc chownat when only lchownat is broken.
34002         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
34003         trailing slash bugs.
34004         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
34005         * modules/openat-tests (Files): Include more files.
34006         (Depends-on): Add mgetgroups, sleep, stat-time.
34007         (configure.ac): Add additional checks.
34008         (Makefile.am): Build new test.
34009         * tests/test-fchownat.c: New file.
34010
34011         lchown: detect Solaris and FreeBSD bug
34012         * lib/lchown.c (rpl_lchown): Work around bug.
34013         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
34014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34015         * modules/unistd (Makefile.am): Populate it.
34016         * lib/unistd.in.h (lchown): Update declaration.
34017         * doc/posix-functions/lchown.texi (lchown): Document the bug.
34018         * modules/lchown-tests: New file.
34019         * tests/test-lchown.h (test_lchown): Likewise.
34020         * tests/test-lchown.c (main): Likewise.
34021
34022         chown: detect Solaris and FreeBSD bug
34023         * lib/chown.c (rpl_chown): Work around bug.
34024         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
34025         (gl_PREREQ_CHOWN): Delete.
34026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34027         * modules/unistd (Makefile.am): Populate it.
34028         * lib/unistd.in.h (chown): Update declaration.
34029         * lib/lchown.c (chown): Update client.
34030         * modules/lchown (Depends-on): Add lstat.
34031         * doc/posix-functions/chown.texi (chown): Document the bug.
34032         * doc/posix-functions/getgroups.texi (getgroups): Document
34033         getgroups pitfall.
34034         * modules/chown-tests: New file.
34035         * tests/test-chown.h (test_chown): Likewise.
34036         * tests/test-chown.c (main): Likewise.
34037
34038 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
34039
34040         gnulib-tool: correctly detect absence of m4 directories
34041         * gnulib-tool: Avoid extra newline on data passed to wc -l.
34042
34043 2009-11-14  Jim Meyering  <meyering@redhat.com>
34044
34045         maint.mk: Prohibit inclusion of "xalloc.h" without use.
34046         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34047
34048 2009-11-14  John W. Eaton  <jwe@gnu.org>
34049
34050         strftime.h: wrap funtion declaration in extern "C" block
34051         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
34052
34053 2009-11-13  Eric Blake  <ebb9@byu.net>
34054
34055         getgroups: avoid compiler warning
34056         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
34057
34058         getgroups: work around FreeBSD bug
34059         * lib/getgroups.c (rpl_getgroups): Work around the bug.
34060         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
34061         * doc/posix-functions/getgroups.texi (getgroups): Document it.
34062         * tests/test-getgroups.c (main): Fix buffer overrun.
34063
34064         getgroups: avoid compilation failure
34065         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
34066         * modules/getgroups (Depends-on): Add stdint.
34067
34068 2009-11-13  Jim Meyering  <meyering@redhat.com>
34069
34070         test-getgroups: avoid compilation failure
34071         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
34072
34073 2009-11-13  Eric Blake  <ebb9@byu.net>
34074
34075         mgetgroups: new module, taken from coreutils
34076         * modules/mgetgroups: New file.
34077         * lib/mgetgroups.h: Likewise.
34078         * lib/mgetgroups.c (mgetgroups): Likewise.
34079         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
34080         * MODULES.html.sh (Users and groups): Mention it.
34081
34082         getgroups: don't expose GETGROUPS_T to user
34083         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
34084         an element at a time if GETGROUPS_T is wrong size.
34085         * lib/getugroups.h (getugroups): Change signature.
34086         * lib/unistd.in.h (getgroups): Likewise.
34087         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
34088         signature needs fixing.
34089         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
34090         AC_TYPE_GETGROUPS.
34091         * modules/group-member (Depends-on): Add getgroups.
34092         * lib/group-member.c (group_info, get_group_info): Use gid_t.
34093         (group_member): Rely on getgroups replacement.
34094         * lib/getugroups.c (getugroups): Use gid_t.
34095         * tests/test-getgroups.c (main): Likewise.
34096         * NEWS: Mention the signature change.
34097         * doc/posix-functions/getgroups.texi (getgroups): Mention the
34098         problem with signature.
34099         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
34100         GETGROUPS_T is still useful for setgroups.
34101
34102         getgroups, getugroups: provide stubs for mingw
34103         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
34104         * lib/getugroups.c (getugroups): Likewise.
34105         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
34106         function.  Modernize replacement scheme.
34107         (gl_PREREQ_GETGROUPS): Delete.
34108         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
34109         * modules/getgroups (configure.ac): Declare witness.
34110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34111         * modules/unistd (Depends-on): Substitute witness.
34112         * lib/unistd.in.h (getgroups): Declare replacement.
34113
34114         getgroups: avoid calling exit
34115         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
34116         drop xalloc.
34117         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
34118         dependencies.
34119         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
34120         exiting, in the rare case of malloc failure.
34121
34122         getgroups: fix logic error
34123         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
34124         has more than 20 groups.
34125         * modules/getgroups-tests: New test.
34126         * tests/test-getgroups.c: New file.
34127
34128 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34129
34130         * tests/test-base64.c: Improve.
34131
34132 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34133
34134         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
34135         Blake <ebb9@byu.net>.
34136
34137 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34138
34139         * tests/test-xvasprintf.c: Add %s%s related checks.
34140
34141 2009-11-12  Eric Blake  <ebb9@byu.net>
34142
34143         version-etc: match standards.texi style
34144         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
34145         and use <> only for URLs.
34146
34147 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
34148
34149         fts: do not fail on a submount during traversal
34150         * lib/fts.c (fts_build): Read the stat info again after opening
34151         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
34152         Original report at http://bugzilla.redhat.com/501848.
34153
34154 2009-11-12  Jim Meyering  <meyering@redhat.com>
34155
34156         bootstrap: sync from coreutils
34157         * build-aux/bootstrap (bootstrap_epilogue): New function.
34158         Use git_modules_config in one more place.  This make bootstrap's
34159         --gnulib-srcdir option more useful for testing.
34160
34161         bootstrap: generalize autoheader check
34162         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
34163         AC_CONFIG_HEADERS.
34164
34165 2009-11-11  Eric Blake  <ebb9@byu.net>
34166
34167         mkfifoat: use new modules for Solaris and BSD bugs
34168         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
34169         * lib/mkfifoat.c (mknodat): Split...
34170         * lib/mknodat.c (mknodat): ...into new file.
34171         * modules/mkfifoat (Files): Ship new file.
34172         (Depends-on): Add mkfifo, mknod.
34173         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
34174         (Depends-on): Add symlink.
34175         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
34176         redundant with test_mkfifo.h.
34177         (do_mkfifoat, do_mknodat): New helpers.
34178
34179         mknod: new module
34180         * modules/mknod: New file.
34181         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
34182         * lib/mknod.c (mknod): Likewise.
34183         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34184         defaults.
34185         * modules/sys_stat (Makefile.am): Substitute them.
34186         * lib/sys_stat.in.h (mknod): Declare replacement.
34187         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34188         Document it.
34189         * doc/posix-functions/mknod.texi (mknod): Likewise.
34190         * modules/mknod-tests: New test.
34191         * tests/test-mknod.c: Likewise.
34192
34193         mkfifo: new module
34194         * modules/mkfifo: New file.
34195         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
34196         * lib/mkfifo.c (mkfifo): Likewise.
34197         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34198         defaults.
34199         * modules/sys_stat (Makefile.am): Substitute them.
34200         * lib/sys_stat.in.h (mkfifo): Declare replacement.
34201         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34202         Document it.
34203         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
34204         * modules/mkfifo-tests: New test.
34205         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
34206         from test-mkfifoat.c.
34207         * tests/test-mkfifo.c: New file.
34208
34209         readlink: detect FreeBSD bug
34210         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
34211         slash on symlink.
34212         * doc/posix-functions/readlink.texi (readlink): Document the bug.
34213         * tests/test-readlink.h (test_readlink): Enhance test.
34214
34215         symlink: detect FreeBSD bug
34216         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
34217         slash on symlink.
34218         * doc/posix-functions/symlink.texi (symlink): Document the bug.
34219         * tests/test-symlink.h (test_symlink): Enhance test.
34220
34221 2009-11-10  Eric Blake  <ebb9@byu.net>
34222
34223         link: detect FreeBSD bug
34224         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
34225         symlink.
34226         * doc/posix-functions/link.texi (link): Document the bug.
34227         * tests/test-link.h (test_link): Enhance test.
34228         * tests/test-linkat.c (main): Update caller.
34229
34230         unlink, remove: detect FreeBSD bug
34231         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
34232         slash on symlink.
34233         * doc/posix-functions/unlink.texi (unlink): Document the bug.
34234         * doc/posix-functions/remove.texi (remove): Likewise.
34235         * tests/test-unlink.h (test_unlink): Enhance test.
34236         * tests/test-remove.c (main): Likewise.
34237
34238 2009-11-09  Eric Blake  <ebb9@byu.net>
34239
34240         rename: detect FreeBSD bug
34241         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
34242         slash on symlink.
34243         * modules/renameat-tests (Depends-on): Add filenamecat.
34244         * tests/test-rename.h (test_rename): Allow one more errno.
34245         * tests/test-renameat.c (main): Likewise.
34246         * doc/posix-functions/rename.texi (rename): Document the bug.
34247
34248         open: detect FreeBSD bug
34249         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
34250         symlink.
34251         * doc/posix-functions/open.texi (open): Document the bug.
34252         * doc/posix-functions/utimes.texi (utimes): Likewise.
34253         * tests/test-open.h (test_open): Add parameters, and test symlink
34254         handling.
34255         * tests/test-open.c (main): Adjust caller.
34256         * tests/test-fcntl-safer.c (main): Likewise.
34257         * modules/open-tests (Depends-on): Add stdbool, symlink.
34258         * modules/fcntl-safer-tests (Depends-on): Likewise.
34259         * tests/test-openat.c (main): Add test-open tests.
34260
34261         stat: detect FreeBSD bug
34262         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
34263         symlink.
34264         * doc/posix-functions/stat.texi (stat): Document the bug.
34265         * tests/test-stat.h (test_stat_func): Add argument.
34266         * tests/test-stat.c (main): Adjust caller.
34267         * tests/test-fstatat.c (main): Likewise.
34268         * modules/stat-tests (Depends-on): Add stdbool, symlink.
34269         Reported by Jim Meyering.
34270
34271 2009-11-09  James Youngman  <jay@gnu.org>
34272
34273         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
34274         * lib/strftime.c: Correct placement of #include "ignore-value.h".
34275
34276 2009-11-08  Jim Meyering  <meyering@redhat.com>
34277
34278         utimens: remove invalid futimesat call
34279         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
34280         It used the file descriptor of the target file as the DIR_FD
34281         parameter and NULL as the file name.  That caused failure with
34282         errno == EFAULT on FreeBSD-8.0-rc2
34283
34284 2009-11-07  Eric Blake  <ebb9@byu.net>
34285
34286         fflush, freadseek: use fseeko, not fseek
34287         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34288         (clear_ungetc_buffer): Avoid potential problems on large files.
34289         * lib/freadseek.c (freadseek): Likewise.
34290         * modules/freadseek (Depends-on): Add fseeko.
34291         * modules/fseek (configure.ac): Set a witness.
34292         * tests/test-fflush.c (main): Use fseeko.
34293         * tests/test-fpurge.c (fseek): Disable link warning.
34294         * tests/test-freadable.c (fseek): Likewise.
34295         * tests/test-freading.c (fseek): Likewise.
34296         * tests/test-fseeko.c (fseek): Likewise.
34297         * tests/test-ftell.c (fseek): Likewise.
34298         * tests/test-ftello.c (fseek): Likewise.
34299         * tests/test-fwritable.c (fseek): Likewise.
34300         * tests/test-fwriting.c (fseek): Likewise.
34301
34302 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34303
34304         * modules/memchr (Depends-on): Drop getpagesize dependency.
34305
34306 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34307
34308         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
34309         Reported by Ludovic Courtès.
34310         * build-aux/pmccabe2html: Improve example usage.
34311         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
34312
34313 2009-11-06  Jim Meyering  <meyering@redhat.com>
34314
34315         do-release-commit-and-tag: New module.
34316         Automate the release-commit and tag process.
34317         * build-aux/do-release-commit-and-tag: New script, from coreutils.
34318         * modules/do-release-commit-and-tag: New file.
34319         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34320
34321 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34322
34323         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
34324         because test-select.c uses inet_pton.
34325
34326 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34327
34328         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
34329         GETADDRINFO_LIB.  Bump serial number.
34330         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
34331         Suggested by Eric Blake <ebb9@byu.net>.
34332
34333 2009-11-05  Eric Blake  <ebb9@byu.net>
34334
34335         strtod: detect darwin bug
34336         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
34337         Reported by Leo Davis.
34338
34339         freopen-safer: new module
34340         * modules/freopen-safer: New module.
34341         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
34342         * lib/freopen-safer.c (freopen_safer): New file.
34343         * lib/stdio-safer.h (freopen_safer): New declaration.
34344         * lib/stdio--.h (freopen): New override.
34345         * MODULES.html.sh (File stream based Input/Output): Mention it.
34346         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
34347         freopen-safer module.
34348         * doc/posix-functions/stderr.texi (stderr): Likewise.
34349         * doc/posix-functions/stdin.texi (stdin): Likewise.
34350         * doc/posix-functions/stdout.texi (stdout): Likewise.
34351         * modules/freopen-safer-tests: New test.
34352         * tests/test-reopen-safer.c: New file.
34353
34354 2009-11-05  Jim Meyering  <meyering@redhat.com>
34355
34356         maint.mk: Prohibit inclusion of "close-stream.h" without use.
34357         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34358
34359 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34360
34361         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
34362
34363 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34364
34365         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
34366
34367 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34368
34369         Fix link error.
34370         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34371         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34372
34373 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34374
34375         * tests/test-func.c: Also test value of __func__.
34376
34377 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34378
34379         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
34380         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
34381
34382 2009-11-05  Bruno Haible  <bruno@clisp.org>
34383
34384         Fix link error.
34385         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34386         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34387         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
34388
34389 2009-11-05  Bruno Haible  <bruno@clisp.org>
34390
34391         Tests for module 'inet_pton'.
34392         * modules/inet_pton-tests: New file.
34393         * tests/test-inet_pton.c: New file.
34394
34395 2009-11-05  Bruno Haible  <bruno@clisp.org>
34396
34397         Tests for module 'inet_ntop'.
34398         * modules/inet_ntop-tests: New file.
34399         * tests/test-inet_ntop.c: New file.
34400
34401 2009-11-04  Eric Blake  <ebb9@byu.net>
34402
34403         stdlib-safer: wrap all mkstemp variants
34404         * modules/mkostemp (configure.ac): Set witness.
34405         * modules/mkostemps (configure.ac): Likewise.
34406         * modules/mkstemps (configure.ac): Likewise.
34407         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
34408         (mkstemps_safer): Wrap more functions.
34409         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
34410         wrapping.
34411         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
34412         (mkstemps_safer): Implement the wrappers.
34413
34414         mkstemps, mkostemps: new modules
34415         * modules/mkostemps: New module.
34416         * modules/mkstemps: Likewise.
34417         * lib/mkostemps.c (mkostemps): New file.
34418         * lib/mkstemps.c (mkstemps): Likewise.
34419         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
34420         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
34421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
34422         * modules/stdlib (Makefile.am): Substitute them.
34423         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
34424         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
34425         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
34426         * doc/gnulib.texi (Glibc stdlib.h): Include them.
34427         * MODULES.html.sh (File system functions): Mention them.
34428
34429         tempname: resync from glibc
34430         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
34431         same values for __GT_FILE as glibc.  Abort even when assertions
34432         are disabled.
34433         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
34434         match its value otherwise.  Allow idempotent inclusion.
34435         * lib/mkdtemp.c (mkdtemp): Adjust caller.
34436         * lib/mkostemp.c (mkostemp): Likewise.
34437         * lib/mkstemp.c (mkstemp): Likewise.
34438         * lib/tmpfile.c (tmpfile): Likewise.
34439         * NEWS: Document this.
34440
34441         utimens: fix use of futimens on older Linux
34442         * lib/utimens.c (fdutimens): Use updated, rather than original,
34443         timespec to avoid bug in older Linux kernel.
34444         Reported by Simon Josefsson.
34445
34446 2009-11-04  Bruno Haible  <bruno@clisp.org>
34447
34448         Make num_processors more flexible and consistent.
34449         * lib/nproc.h (enum nproc_query): New type.
34450         (num_processors): Add a 'query' argument.
34451         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
34452         (num_processors): Add a 'query' argument. Test the value of the
34453         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
34454         mingw, count the number of CPUs available for the current process.
34455         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
34456         Check for sched_getaffinity and sched_getaffinity_np.
34457         * modules/nproc (Depends-on): Add c-ctype, extensions.
34458         * NEWS: Mention the change.
34459
34460 2009-11-03  Bruno Haible  <bruno@clisp.org>
34461
34462         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
34463
34464 2009-11-03  Jim Meyering  <meyering@redhat.com>
34465
34466         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
34467         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
34468         if it is defined.
34469
34470 2009-11-02  Eric Blake  <ebb9@byu.net>
34471
34472         mktime, timegm: share common declaration
34473         * lib/mktime-internal.h: New file.
34474         * lib/mktime.c: Use it rather than open-coding a declaration.
34475         * lib/timegm.c: Likewise.
34476         * modules/mktime (Files): Ship it.
34477         * modules/timegm (Files): Likewise.
34478         Suggested by Bruno Haible.
34479
34480         test-update-copyright: update test to match script changes
34481         * tests/test-update-copyright.sh: Avoid hard-coding perl
34482         location.  Don't update *.bak created by earlier runs.
34483
34484 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34485             Simon Josefsson  <simon@josefsson.org>
34486             Bruno Haible  <bruno@clisp.org>
34487
34488         Fix link error on Solaris 8.
34489         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
34490         also in libnsl. Define also INET_PTON_LIB.
34491         * modules/inet_pton (Link): New section.
34492
34493 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34494             Bruno Haible  <bruno@clisp.org>
34495
34496         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
34497         * modules/inet_ntop (Link): New section.
34498         Reported by Boyan Kasarov <bkasarov@gmail.com>.
34499
34500 2009-11-02  Eric Blake  <ebb9@byu.net>
34501
34502         maint: avoid compiler warnings in m4 macros
34503         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
34504         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
34505
34506 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34507
34508         * m4/pmccabe2html.m4: Remove file.
34509         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
34510         function.  Change maintainer.
34511         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
34512         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
34513         Courtès).
34514
34515 2009-10-31  Eric Blake  <ebb9@byu.net>
34516
34517         fseeko: fix m4 regression
34518         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
34519         regression from 2009-10-27.
34520         Reported by Ralf Wildenhues.
34521
34522 2009-10-31  Jim Meyering  <meyering@redhat.com>
34523
34524         inttostr: aesthetics and improved (compile-time) safety
34525         Define inttype_is_signed rather than inttype_is_unsigned,
34526         since the sole use is via "#if inttype_is_signed".
34527         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
34528         inttype_is_unsigned.
34529         * lib/offtostr.c (inttype_is_signed): Likewise.
34530         * lib/uinttostr.c (inttype_is_signed): Likewise.
34531         * lib/umaxtostr.c (inttype_is_signed): Likewise.
34532         * lib/inttostr.c (inttostr): Use verify to cross-check the
34533         inttype_is_signed value and the signedness of the actual type.
34534         * modules/inttostr (Depends-on): Add verify.
34535
34536 2009-10-30  Eric Blake  <ebb9@byu.net>
34537
34538         build: avoid compiler warnings
34539         * lib/fchmodat.c (lchmod): Mark unused variables.
34540         * lib/getopt.c (_getopt_initialize): Likewise.
34541         * lib/mktime.c (__mktime_internal): Provide prototype.
34542         * lib/inttostr.c (inttostr): Avoid compiler warning even with
34543         older gcc that do not understand #pragma GCC diagnostic.
34544         * lib/uinttostr.c (inttype_is_unsigned): Define.
34545         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
34546
34547 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34548
34549         stat: fix compilation on AIX
34550         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
34551         only see struct stat64.
34552
34553 2009-10-30  Eric Blake  <ebb9@byu.net>
34554
34555         exclude: make more robust
34556         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
34557         rather than masking a coding bug.
34558         Suggested by Bruno Haible.
34559
34560 2009-10-30  Jim Meyering  <meyering@redhat.com>
34561
34562         perl scripts: remove #!/usr/bin/perl in favor of more portable...
34563         Rather than putting #!/usr/bin/perl on the first line,
34564         start with a variant of what's recommended by "man perlrun" that
34565         invokes the first "perl" program from your shell's search path.
34566         * build-aux/gitlog-to-changelog: Replace #!... as above.
34567         Add a "Local Variables" perl mode setting.
34568         Prompted by a patch from Ludovic Courtès.
34569         Improved by Eric Blake.
34570         * build-aux/useless-if-before-free: Likewise.
34571         * build-aux/announce-gen: Likewise.
34572         * build-aux/update-copyright: Likewise.
34573
34574 2009-10-29  Eric Blake  <ebb9@byu.net>
34575
34576         filenamecat-lgpl: adjust clients
34577         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
34578         filenamecat.
34579         * modules/renameat (Depends-on): Likewise.
34580
34581         filenamecat: split into filenamecat-lgpl
34582         * modules/filenamecat-lgpl: New module.
34583         * modules/filenamecat (Files): Move library-safe files into
34584         filenamecat-lgpl.
34585         (Depends-on): Add filenamecat-lgpl.
34586         (configure.ac): Declare witness.
34587         * lib/filenamecat.h (file_name_concat): Only declare when using
34588         GPL module.
34589         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
34590         Move...
34591         * lib/filenamecat-lgpl.c: ...into new file.
34592         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
34593         (gl_FILE_NAME_CONCAT): Use it.
34594         * MODULES.html.sh (File system functions): Mention new module.
34595
34596         argp: avoid memory leak
34597         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
34598         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
34599         base_name, since the latter malloc()s and can call exit().
34600         Leak introduced 2006-07-03.
34601
34602         dirname-lgpl: adjust clients that don't need full dirname
34603         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
34604         * modules/filenamecat (Depends-on): Likewise.
34605         * modules/linkat (Depends-on): Likewise.
34606         * modules/mkancesdirs (Depends-on): Likewise.
34607         * modules/mkdir (Depends-on): Likewise.
34608         * modules/openat (Depends-on): Likewise.
34609         * modules/savewd (Depends-on): Likewise.
34610         * modules/rename (Depends-on): Likewise.
34611         (License): Relax license.
34612         * modules/mkdir-tests (Depends-on): Drop progname.
34613         (Makefile.am): Delete unneeded LDADD.
34614         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
34615
34616         dirname: split into dirname-lgpl
34617         * modules/dirname-lgpl: New module.
34618         * modules/dirname (Files): Move library-safe files into
34619         dirname-lgpl.
34620         (Depends-on): Add dirname-lgpl.
34621         (configure.ac): Declare witness.
34622         * modules/double-slash-root (License): Relax license.
34623         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
34624         module.
34625         * lib/dirname.c (dir_len, mdir_name): Move...
34626         * lib/dirname-lgpl.c: ...into new file.
34627         * lib/basename.c (last_component, base_len): Move...
34628         * lib/basename-lgpl.c: ...into new file.
34629         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
34630         (gl_DIRNAME): Use it.
34631         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
34632         Mention new module.
34633         * modules/dirname-tests (Depends-on): Add progname.
34634         * tests/test-dirname.c (program_name): Delete.
34635
34636         mkdir: make safe for libraries
34637         * modules/mkdir (Depends-on): Drop xalloc.
34638         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
34639         exit.
34640
34641         tests: avoid some compiler warnings
34642         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34643         literals.
34644         * tests/test-memchr.c (main): Avoid type mismatch.
34645         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34646         * tests/test-base64.c (main): Likewise.
34647         * tests/test-getdelim.c (main): Likewise.
34648         * tests/test-gethostname.c (main): Likewise.
34649         * tests/test-getline.c (main): Likewise.
34650         * tests/test-netinet_in.c (main): Likewise.
34651         * tests/test-select.c (open_server_socket, main): Likewise.
34652         * tests/test-select-stdin.c (main): Likewise.
34653         * tests/test-sockets.c (main): Likewise.
34654         * tests/test-strsignal.c (main): Likewise.
34655         * tests/test-sys_select.c (main): Likewise.
34656         * tests/test-sys_socket.c (main): Likewise.
34657         * tests/test-u64.c (main): Likewise.
34658         * tests/test-xfprintf-posix.c (main): Likewise.
34659         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34660
34661         sockets: avoid compiler warning
34662         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34663
34664         maint: detect usage(1) and other suspicious exits
34665         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34666
34667 2009-10-29  Jim Meyering  <meyering@redhat.com>
34668
34669         timespec: long-to-int truncation could make timespec_cmp malfunction
34670         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34671         a multiple of 2^32 nanoseconds as no difference.
34672
34673 2009-10-28  Jim Meyering  <meyering@redhat.com>
34674
34675         fprintftime: wrap macro code argument in "do {...} while(0)"
34676         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34677         cpy macro must be a statement that can be followed by a semicolon.
34678         Now that the else clause contains a comment and is hence longer
34679         than one line, I require curly braces.  That in turn requires
34680         that we wrap this code block in the standard do...while(0).
34681
34682         fprintftime: remove stray semicolon from previous change
34683         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34684
34685         fprintftime: avoid a warning about ignored fwrite return value
34686         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34687         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34688         that is unsafe.
34689         * modules/fprintftime (Depends-on): Add ignore-value.
34690
34691         exclude: avoid an unwarranted warning
34692         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
34693
34694 2009-10-27  Eric Blake  <ebb9@byu.net>
34695
34696         fseek: avoid compilation failure when fflush is replaced
34697         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
34698         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
34699         module is in use.
34700         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
34701         module is not in use; since REPLACE_FSEEK worked otherwise.
34702         (GNULIB_FTELLO): Likewise for ftell.
34703         Reported by Ian Beckwith and others.
34704
34705 2009-10-27  Bruno Haible  <bruno@clisp.org>
34706
34707         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34708         Reported by Jim Meyering.
34709
34710 2009-10-27  Jim Meyering  <jim@meyering.net>
34711             Bruno Haible  <bruno@clisp.org>
34712
34713         Avoid warning despite dropping the return value of fwrite.
34714         * lib/unicodeio.c: Include ignore-value.h.
34715         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34716         * modules/unicodeio (Depends-on): Add ignore-value.
34717
34718 2009-10-26  Eric Blake  <ebb9@byu.net>
34719
34720         areadlinkat: fix fallback path
34721         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34722         pointer and zero.
34723
34724 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34725
34726         Use a better IO block size for modern systems
34727         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34728         * lib/md2.c: Likewise.
34729         * lib/md4.c: Likewise.
34730         * lib/md5.c: Likewise.
34731         * lib/sha1.c: Likewise.
34732         * lib/sha256.c: Likewise.
34733         * lib/sha512.c: Likewise.
34734
34735 2009-10-22  Eric Blake  <ebb9@byu.net>
34736
34737         tests: avoid several compiler warnings
34738         * tests/test-getcwd.c (main): Avoid buffer underflow.
34739         * tests/test-getdate.c (main): String literals are not safe with
34740         putenv, so use setenv.  Declare unused argument.
34741         * modules/getdate-tests (Depends-on): Add setenv.
34742         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
34743         problems with string literals in char *.
34744         * tests/test-hash.c (main): Avoid shadowing declaration.
34745         (insert_new): Treat string literals as char const *.
34746         * tests/test-getopt.h (test_getopt): Likewise.
34747         (getopt_loop): Alter types to minimize casting elsewhere.
34748         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
34749         (test_getopt_long_posix): Likewise.
34750         (do_getopt_long): Add wrapper to minimize casting.
34751         * tests/test-atexit.c (clear_temp_file): Use void.
34752         * tests/test-areadlink-with-size.c (main): Declare unused
34753         arguments.
34754         * tests/test-areadlink.c (main): Likewise.
34755         * tests/test-areadlinkat-with-size.c (main): Likewise.
34756         * tests/test-areadlinkat.c (main): Likewise.
34757         * tests/test-canonicalize-lgpl.c (main): Likewise.
34758         * tests/test-canonicalize.c (main): Likewise.
34759         * tests/test-dirent-safer.c (main): Likewise.
34760         * tests/test-dirname.c (main): Likewise.
34761         * tests/test-dup2.c (main): Likewise.
34762         * tests/test-fchdir.c (main): Likewise.
34763         * tests/test-fcntl-h.c (main): Likewise.
34764         * tests/test-fcntl-safer.c (main): Likewise.
34765         * tests/test-fdopendir.c (main): Likewise.
34766         * tests/test-fdutimensat.c (main): Likewise.
34767         * tests/test-fflush.c (main): Likewise.
34768         * tests/test-filenamecat.c (main): Likewise.
34769         * tests/test-filevercmp.c (main): Likewise.
34770         * tests/test-fopen-safer.c (main): Likewise.
34771         * tests/test-fopen.c (main): Likewise.
34772         * tests/test-fpending.c (main): Likewise.
34773         * tests/test-fpurge.c (main): Likewise.
34774         * tests/test-freading.c (main): Likewise.
34775         * tests/test-fstatat.c (main): Likewise.
34776         * tests/test-fsync.c (main): Likewise.
34777         * tests/test-futimens.c (main): Likewise.
34778         * tests/test-getndelim2.c (main): Likewise.
34779         * tests/test-gettimeofday.c (main): Likewise.
34780         * tests/test-getopt.c (main): Likewise.
34781         * tests/test-i-ring.c (main): Likewise.
34782         * tests/test-inttypes.c (main): Likewise.
34783         * tests/test-link.c (main): Likewise.
34784         * tests/test-lstat.c (main): Likewise.
34785         * tests/test-math.c (main): Likewise.
34786         * tests/test-md5.c (main): Likewise.
34787         * tests/test-memchr2.c (main): Likewise.
34788         * tests/test-memrchr.c (main): Likewise.
34789         * tests/test-mkdir.c (main): Likewise.
34790         * tests/test-mkdirat.c (main): Likewise.
34791         * tests/test-mkfifoat.c (main): Likewise.
34792         * tests/test-open.c (main): Likewise.
34793         * tests/test-openat-safer.c (main): Likewise.
34794         * tests/test-openat.c (main): Likewise.
34795         * tests/test-quotearg.c (main): Likewise.
34796         * tests/test-rawmemchr.c (main): Likewise.
34797         * tests/test-readlink.c (main): Likewise.
34798         * tests/test-remove.c (main): Likewise.
34799         * tests/test-rename.c (main): Likewise.
34800         * tests/test-renameat.c (main): Likewise.
34801         * tests/test-rmdir.c (main): Likewise.
34802         * tests/test-sha1.c (main): Likewise.
34803         * tests/test-signal.c (main): Likewise.
34804         * tests/test-sigaction.c (main): Likewise.
34805         * tests/test-stat.c (main): Likewise.
34806         * tests/test-stat-time.c (main): Likewise.
34807         * tests/test-stddef.c (main): Likewise.
34808         * tests/test-stdint.c (main): Likewise.
34809         * tests/test-stdio.c (main): Likewise.
34810         * tests/test-stdlib.c (main): Likewise.
34811         * tests/test-strchrnul.c (main): Likewise.
34812         * tests/test-strerror.c (main): Likewise.
34813         * tests/test-string.c (main): Likewise.
34814         * tests/test-strtod.c (main): Likewise.
34815         * tests/test-strverscmp.c (main): Likewise.
34816         * tests/test-symlink.c (main): Likewise.
34817         * tests/test-symlinkat.c (main): Likewise.
34818         * tests/test-sys_stat.c (main): Likewise.
34819         * tests/test-sys_time.c (main): Likewise.
34820         * tests/test-time.c (main): Likewise.
34821         * tests/test-unistd.c (main): Likewise.
34822         * tests/test-unlink.c (main): Likewise.
34823         * tests/test-unlinkat.c (main): Likewise.
34824         * tests/test-utimens.c (main): Likewise.
34825         * tests/test-utimensat.c (main): Likewise.
34826         * tests/test-version-etc.c (main): Likewise.
34827         * tests/test-wchar.c (main): Likewise.
34828         * tests/test-wctype.c (main): Likewise.
34829         * tests/test-xprintf-posix.c (main): Likewise.
34830         * tests/test-posixtm.c (main): Likewise.
34831         (STREQ): Delete unused macro.
34832         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34833         shadowed variables.
34834         * tests/test-memchr.c (main): Likewise.
34835
34836 2009-10-21  Eric Blake  <ebb9@byu.net>
34837
34838         areadlinkat: avoid failure on older glibc
34839         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34840         rather than mis-comparing 0 against FUNC_RESULT of char*.
34841
34842 2009-10-21  Bruno Haible  <bruno@clisp.org>
34843
34844         * modules/stpncpy (License): Relicense under LGPLv2+.
34845         Reported by David Lutterkort <lutter@redhat.com>.
34846
34847 2009-10-20  Eric Blake  <ebb9@byu.net>
34848
34849         utimensat: work around Solaris 9 bug
34850         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34851         has trailing slash bugs.
34852         * tests/test-lutimens.h (test_lutimens): Enhance test.
34853         * tests/test-utimens.h (test_utimens): Likewise.
34854         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34855         * doc/posix-functions/utimes.texi (utimes): Likewise.
34856         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34857         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34858         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34859         * doc/posix-functions/futimens.texi (futimens): Likewise.
34860
34861         fdutimensat: new module
34862         * modules/fdutimensat: New file.
34863         * lib/fdutimensat.c (fdutimensat): Likewise.
34864         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34865         * MODULES.html.sh (File system functions): Mention module.
34866         * modules/fdutimensat-tests: New test.
34867         * tests/test-fdutimensat.c: Likewise.
34868
34869         doc: regenerate INSTALL
34870         * doc/INSTALL: Reflect recent autoconf update.
34871         * doc/INSTALL.ISO: Likewise.
34872         * doc/INSTALL.UTF-8: Likewise.
34873
34874 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34875
34876         acl: warn if ACL support is not detected
34877         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34878
34879 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34880
34881         * lib/nproc.h: Add extern "C" block for C++.
34882
34883 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34884             Bruno Haible  <bruno@clisp.org>
34885
34886         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34887         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34888         * doc/posix-functions/isalpha.texi: Likewise.
34889         * doc/posix-functions/isblank.texi: Likewise.
34890         * doc/posix-functions/iscntrl.texi: Likewise.
34891         * doc/posix-functions/isdigit.texi: Likewise.
34892         * doc/posix-functions/isgraph.texi: Likewise.
34893         * doc/posix-functions/islower.texi: Likewise.
34894         * doc/posix-functions/isprint.texi: Likewise.
34895         * doc/posix-functions/ispunct.texi: Likewise.
34896         * doc/posix-functions/isspace.texi: Likewise.
34897         * doc/posix-functions/isupper.texi: Likewise.
34898         * doc/posix-functions/isxdigit.texi: Likewise.
34899
34900 2009-10-18  Bruno Haible  <bruno@clisp.org>
34901
34902         Tests for module 'isblank'.
34903         * modules/isblank-tests: New file.
34904         * tests/test-isblank.c: New file.
34905
34906         New module 'isblank'.
34907         * lib/isblank.c: New file.
34908         * m4/isblank.m4: New file.
34909         * modules/isblank: New file.
34910         * doc/posix-functions/isblank.texi: Mention the new module.
34911
34912 2009-10-18  Bruno Haible  <bruno@clisp.org>
34913
34914         New module 'ctype'.
34915         * lib/ctype.in.h: New file.
34916         * m4/ctype.m4: New file.
34917         * modules/ctype: New file.
34918         * doc/posix-headers/ctype.texi: Mention the new module.
34919
34920 2009-10-18  Jim Meyering  <meyering@redhat.com>
34921
34922         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34923         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34924         right after its initialization, rather than farther down.
34925         Keeping these in close proximity makes it easier to ensure
34926         that each such variable is initialized.  E.g.,
34927
34928             LIB_CLOCK_GETTIME=
34929             AC_SUBST([LIB_CLOCK_GETTIME])
34930
34931         This change also increments these serial numbers.
34932         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34933         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34934         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34935
34936 2009-10-18  Bruno Haible  <bruno@clisp.org>
34937
34938         Don't let environment variables perturb build.
34939         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34940         (gl_PREREQ_GETHRXTIME): ... not here.
34941
34942 2009-10-18  Bruno Haible  <bruno@clisp.org>
34943
34944         Avoid symlink attack in localcharset module.
34945         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34946         (O_NOFOLLOW): Define fallback.
34947         (get_charset_aliases): Don't open the file if it is a symbolic link.
34948         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34949         gl_FCNTL_H.
34950         (gl_FCNTL_H): Require it.
34951         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34952         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34953         Reported by Fergal Glynn <fglynn@veracode.com>.
34954
34955 2009-10-18  Bruno Haible  <bruno@clisp.org>
34956
34957         Implement nproc for mingw.
34958         * lib/nproc.c: Include <windows.h>
34959         (num_processors): On native Windows platforms, try GetSystemInfo.
34960
34961 2009-10-18  Bruno Haible  <bruno@clisp.org>
34962
34963         Implement nproc for IRIX.
34964         * lib/nproc.c: Include <sys/sysmp.h>.
34965         (num_processors): On IRIX systems, try sysmp.
34966         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34967
34968 2009-10-18  Bruno Haible  <bruno@clisp.org>
34969
34970         Implement nproc for HP-UX.
34971         * lib/nproc.c: Include <sys/pstat.h>
34972         (num_processors): On HP-UX systems, try pstat_getdynamic.
34973         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34974         pstat_getdynamic.
34975
34976 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34977             Bruno Haible  <bruno@clisp.org>
34978
34979         Implement nproc for NetBSD, OpenBSD.
34980         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34981         (ARRAY_SIZE): New macro.
34982         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34983         * m4/nproc.m4: New file.
34984         * modules/nproc (Files): Add m4/nproc.m4.
34985         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34986         (Makefile.am): Instead, augment lib_SOURCES.
34987
34988 2009-10-18  Bruno Haible  <bruno@clisp.org>
34989
34990         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34991         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34992         sys/param.h.
34993
34994 2009-10-16  Eric Blake  <ebb9@byu.net>
34995
34996         utimensat: new module
34997         * modules/utimensat: New file.
34998         * lib/utimensat.c (utimensat): Likewise.
34999         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35000         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
35001         so we can work around Linux bugs.
35002         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35003         * modules/sys_stat (Makefile.am): Substitute them.
35004         * lib/sys_stat.in.h (utimensat): Declare it.
35005         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35006         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35007         * modules/utimensat-tests: New test.
35008         * tests/test-utimensat.c: Likewise.
35009
35010         utimens: let lutimens work on non-symlinks
35011         * lib/utimens.c (lutimens): Fall back to utimens rather than
35012         failing with ENOSYS, when file is not a symlink.
35013         (utimens): Reduce redirection.
35014         * tests/test-lutimens.h (test_lutimens): Update test to cover
35015         non-symlinks.
35016         * tests/test-utimens.h (test_utimens): Update test to cover
35017         symlinks.
35018         * tests/test-utimens.c (main): Update caller.
35019
35020         utimens: cache whether utimensat syscall works
35021         * lib/utimens.c (utimensat_works_really): New cache variable.
35022         (fdutimens, lutimens): Use it to avoid failing syscall.
35023
35024         test-stat-time, test-utimens: improve portability
35025         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
35026         ext4 on alpha, and for cygwin.
35027         * tests/test-utimens-common.h: New file.
35028         (nap): Factor delays into single function.
35029         * tests/test-lutimens.h (test_lutimens): Use new header.
35030         * tests/test-futimens.h (test_futimens): Likewise.
35031         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
35032         timestamps to occur from same machine, as was done previously for
35033         test_utimens.
35034         * modules/utimens-tests (Files): Ship new file.
35035         * modules/futimens-tests (Files): Likewise.
35036         Reported in part by Jim Meyering.
35037
35038         sys_stat: sort replacement declarations
35039         * lib/sys_stat.in.h: Sort declarations.
35040         * lib/futimens.c (futimens): Fix typo.
35041
35042 2009-10-15  Jim Meyering  <meyering@redhat.com>
35043
35044         don't let environment settings perturb build
35045         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
35046         could cause a configure-time and/or build-time malfunction.
35047         Typically, a configure-time function-in-library test is performed
35048         via code like this:
35049
35050           LIB_VAR=
35051           AC_SUBST([LIB_VAR])
35052           prefix_saved_LIBS=$LIBS
35053             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
35054                        [test "$ac_cv_search_FUNC" = "none required" ||
35055                         LIB_VAR=$ac_cv_search_FUNC])
35056           LIBS=$prefix_saved_LIBS
35057
35058         However, in each of the files affected by this change, the LIB_VAR=
35059         initialization was omitted.  Thus, when set in the environment, its
35060         value would propagate into generated Makefiles when FUNC is not found
35061         in LIB_NAME.
35062         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
35063         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35064         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35065
35066 2009-10-14  Eric Blake  <ebb9@byu.net>
35067
35068         fchdir: avoid infinite recursion in mingw
35069         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
35070         recursing.
35071
35072         test-stat-time: port to mingw
35073         * tests/test-stat-time.c (force_unlink): Return a value.
35074         (test_ctime) [W32]: Fix compilation error.
35075         (nap): Don't call usleep with too large an argument.  Use
35076         force_unlink.
35077         * doc/pastposix-functions/usleep.texi (usleep): Document the
35078         portability issue.
35079
35080 2009-10-13  Jim Meyering  <meyering@redhat.com>
35081
35082         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
35083         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
35084         * modules/pipe-filter-ii: Likewise.
35085         * modules/sys_socket-tests: Likewise.
35086         * modules/tsearch-tests: Likewise.
35087         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
35088         (check): Depend on it.
35089
35090 2009-10-12  Eric Blake  <ebb9@byu.net>
35091
35092         utimens-tests: port to NFS file systems
35093         * tests/test-utimens.h (test_utimens): Refactor utimecmp
35094         comparisons to avoid spurious failures from timestamp drift
35095         between NFS machines.
35096
35097 2009-10-12  Eric Blake  <ebb9@byu.net>
35098
35099         stat-time-tests: minor cleanups
35100         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
35101         * tests/test-stat-time.c (nap): Separate assignment from call.
35102         Suggested by Paolo Bonzini and Bruno Haible.
35103
35104         sys_stat: guarantee struct timespec
35105         * lib/sys_stat.in.h (includes): Always include <time.h>
35106         * modules/sys_stat (Depends-on): Add time.
35107         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
35108         mode_t permission values.
35109         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
35110         get at subsecond timestamps.
35111
35112 2009-10-10  Eric Blake  <ebb9@byu.net>
35113
35114         futimens: new module
35115         * modules/futimens: New file.
35116         * lib/futimens.c (futimens): Likewise.
35117         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
35118         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
35119         we can work around Linux bugs.
35120         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35121         * modules/sys_stat (Makefile.am): Substitute them.
35122         * lib/sys_stat.in.h (futimens): Declare it.
35123         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35124         * doc/posix-functions/futimens.texi (futimens): Likewise.
35125         * modules/futimens-tests: New test.
35126         * tests/test-futimens.c: Likewise.
35127
35128         utimens: introduce fdutimens
35129         * lib/utimens.h (fdutimens): New prototype.
35130         * lib/utimens.c (gl_futimens): Move guts...
35131         (fdutimens): ...to new interface.
35132         * tests/test-utimens.c (do_fdutimens): Use it.
35133
35134         utimens: add UTIME_NOW and UTIME_OMIT support
35135         * lib/utimens.c (validate_timespec, update_timespec): New helper
35136         functions.
35137         (gl_futimens, lutimens): Use them.
35138         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
35139         stdbool, sys_stat.
35140         (Link): Mention resulting library dependency.
35141         * modules/utimecmp (Link): Likewise.
35142         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
35143         (Makefile.am): Pick up library dependency.
35144         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
35145         definition.
35146         * tests/test-sys_stat.c: Test the definitions.
35147         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
35148         * NEWS: Document library dependency.
35149
35150         utimecmp: support symlink timestamps
35151         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
35152         hashing when possible.  Use pathconf when available.
35153         (SYSCALL_RESOLUTION): Recognize tighter resolution.
35154         * modules/utimecmp (Depends-on): Add lstat.
35155
35156         utimens: add lutimens interface
35157         * lib/utimens.c (lutimens): New function.
35158         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
35159         * lib/utimens.h (lutimens): Declare new interface.
35160         * tests/test-utimens.c (main): Enhance test.
35161         * tests/test-lutimens.h (test_lutimens): New file.
35162         * modules/utimens-tests (Files): Distribute it.
35163         (Depends-on): Add symlink.
35164         (configure.ac): Check for usleep.
35165
35166         utimens: validate futimens usage
35167         * lib/utimens.c (gl_futimens): Require valid fd up front, using
35168         fewer syscalls on failure later on.  Avoid compiler warning on
35169         mingw.
35170         * modules/utimens (Depends-on): Add dup2.
35171
35172         utimens: add test
35173         * modules/utimens-tests: New test.
35174         * tests/test-utimens.h: New file.
35175         * tests/test-futimens.h: Likewise.
35176         * tests/test-utimens.c: Likewise.
35177
35178         doc: mention timestamp portability issues
35179         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
35180         instead.
35181         * doc/posix-functions/utime.texi (utime): Likewise.
35182         * doc/posix-functions/utimes.texi (utimes): Likewise.
35183         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
35184         instead.
35185         * doc/posix-functions/futimens.texi (futimens): Mention utimens
35186         module.
35187         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35188         Mention weakness with symlink timestamps.
35189         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
35190         to utimensat/futimens instead.
35191         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
35192
35193         test-dup2: enhance test
35194         * tests/test-dup2.c (main): Also check AT_FDCWD.
35195
35196         test-stat-time: avoid more spurious failures
35197         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
35198         xfs; and avoid race if the two timestamps cross quantization edge.
35199
35200         relocatable: prefer 'file system' over 'filesystem'
35201         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
35202         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
35203         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
35204         * doc/relocatable.texi (Enabling Relocatability): Likewise.
35205         * lib/relocatable.c (compute_curr_prefix): Likewise.
35206
35207 2009-10-10  Jim Meyering  <meyering@redhat.com>
35208
35209         stat-time-tests: check for the usleep function
35210         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
35211
35212 2009-10-10  Bruno Haible  <bruno@clisp.org>
35213
35214         * modules/xnanosleep: Put the Link section after the Include section.
35215
35216 2009-10-09  Eric Blake  <ebb9@byu.net>
35217
35218         dup2: work around FreeBSD 6.1 bug
35219         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
35220         * doc/posix-functions/dup2.texi (dup2): Document it.
35221         Reported by Nelson H. F. Beebe and Jim Meyering.
35222
35223         test-stat-time: port to buggy NFS clients
35224         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
35225         (test_ctime): Also skip test if mtime and ctime are skewed.
35226
35227         maint: prefer 'file system' over 'filesystem'
35228         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35229         * doc/posix-functions/lstat.texi (lstat): Likewise.
35230         * lib/file-has-acl.c (file_has_acl): Likewise.
35231         * lib/fwriteerror.c [TEST]: Likewise.
35232         * tests/test-areadlink.h (test_areadlink): Likewise.
35233         * tests/test-areadlinkat-with-size.c (main): Likewise.
35234         * tests/test-areadlinkat.c (main): Likewise.
35235         * tests/test-canonicalize-lgpl.c (main): Likewise.
35236         * tests/test-canonicalize.c (main): Likewise.
35237         * tests/test-fstatat.c (main): Likewise.
35238         * tests/test-linkat.c (main): Likewise.
35239         * tests/test-lstat.h (test_lstat_func): Likewise.
35240         * tests/test-mkdir.h (test_mkdir): Likewise.
35241         * tests/test-readlink.h (test_readlink): Likewise.
35242         * tests/test-remove.c (main): Likewise.
35243         * tests/test-rename.h (test_rename): Likewise.
35244         * tests/test-renameat.c (main): Likewise.
35245         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35246         * tests/test-symlink.h (test_symlink): Likewise.
35247         * tests/test-symlinkat.c (main): Likewise.
35248         * tests/test-unlink.h (test_unlink_func): Likewise.
35249         * tests/test-unlinkat.c (main): Likewise.
35250
35251         maint: make realtime library usage explicit
35252         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
35253         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
35254         * modules/settime (Link): Likewise.
35255         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
35256
35257         test-stat-time: speed up execution
35258         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
35259         warning on mingw.
35260         (nap): New helper function.
35261         (prepare_test): Use it to reduce sleep time.
35262         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
35263         execution.
35264         * modules/stat-time-tests (configure.ac): Check for usleep.
35265
35266 2009-10-09  Jim Meyering  <meyering@redhat.com>
35267
35268         selinux-h: always use getfilecon wrappers
35269         * lib/getfilecon.c: New file.
35270         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
35271         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
35272         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
35273         (fgetfilecon): Provide a stub.
35274         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
35275         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
35276         file unconditionally.
35277         When <selinux/selinux.h> is found, arrange to use wrappers.
35278         * modules/selinux-h (Files): Add getfilecon.c.
35279         (Makefile.am): Substitute include-next-related bits
35280         into the now-always-generated selinux/selinux.h file.
35281         * doc/glibc-functions/lgetfilecon.texi: New file.
35282         * doc/glibc-functions/fgetfilecon.texi: New file.
35283         * doc/glibc-functions/getfilecon.texi: New file.
35284         * doc/glibc-functions/getfilecon-desc.texi: New file.
35285         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
35286         which to pull in the new files.
35287         * MODULES.html.sh (Misc): Add selinux-h.
35288
35289 2009-10-08  Jim Meyering  <meyering@redhat.com>
35290
35291         unistd: fix comment typo
35292         * lib/unistd.in.h (euidaccess): Fix a comment typo.
35293
35294 2009-10-08  Eric Blake  <ebb9@byu.net>
35295
35296         areadlink: use SIZE_MAX consistently
35297         * modules/areadlink (Depends-on): Add stdint.
35298         * modules/areadlink-with-size (Depends-on): Likewise.
35299         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
35300         gives NULL; drop sys/types, since unistd gives size_t; and add
35301         stdint for SIZE_MAX.
35302         (SIZE_MAX): Rely on headers.
35303         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
35304         and add stdint.
35305         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
35306         (SIZE_MAX): Likewise.
35307         (INITIAL_BUF_SIZE): Turn into enum.
35308         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
35309
35310 2009-10-08  Jim Meyering  <meyering@redhat.com>
35311
35312         areadlinkat: avoid compilation failure
35313         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
35314         Fix typo in comment.
35315
35316 2009-10-07  Eric Blake  <ebb9@byu.net>
35317
35318         areadlinkat-with-size: new module
35319         * modules/areadlinkat-with-size: New module.
35320         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
35321         * lib/areadlink.h (areadlinkat): Declare it.
35322         * MODULES.html.sh (File system functions): Mention it.
35323         * modules/areadlinkat-with-size-tests: New test.
35324         * tests/test-areadlinkat-with-size.c: New file.
35325
35326         xreadlinkat: new module
35327         * modules/xreadlinkat: New module.
35328         * lib/xreadlinkat.c (xreadlinkat): New file.
35329         * lib/xreadlink.h (xreadlinkat): Declare it.
35330         * MODULES.html.sh (File system functions): Mention it.
35331
35332         areadlinkat: new module
35333         * lib/at-func.c (FUNC_FAIL): New define.
35334         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
35335         * modules/areadlinkat: New module.
35336         * lib/linkat.c (areadlinkat): Move...
35337         * lib/areadlinkat.c (areadlinkat): ...to new file.
35338         * lib/areadlink.h (areadlinkat): Declare it.
35339         * modules/linkat (Depends-on): Add areadlinkat.
35340         * MODULES.html.sh (File system functions): Mention it.
35341         * modules/areadlinkat-tests: New test.
35342         * tests/test-areadlinkat.c: New file.
35343
35344         areadlink, areadlink-with-size: add tests
35345         * modules/areadlink-tests: New test.
35346         * modules/areadlink-with-size-tests: Likewise.
35347         * tests/test-areadlink.h: New file.
35348         * tests/test-areadlink.c: Likewise.
35349         * tests/test-areadlink-with-size.c: Likewise.
35350
35351         maint: minor cleanups
35352         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
35353         _UNUSED_PARAMETER_ instead.
35354         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
35355         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
35356         * modules/linkat-tests (Files): Distribute test-link.h.
35357
35358         openat, utimens: whitespace cleanup
35359         * lib/openat.c: Prefer space throughout, rather than mix of 8
35360         spaces vs. tabs.
35361         * lib/at-func.c: Likewise.
35362         * lib/utimens.c: Likewise.
35363
35364         openat: avoid using wrong fd
35365         * lib/openat.c (openat_permissive): Reject user's fd if saving the
35366         working directory chooses same fd.
35367         * lib/at-func.c (AT_FUNC_NAME): Likewise.
35368
35369         mkdir, mkdirat: fix cygwin 1.5.x bug
35370         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
35371         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
35372         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
35373         bug.
35374         (gl_PREREQ_MKDIR): Delete unused macro.
35375         * modules/mkdir (Files): Track file rename.
35376         (configure.ac): Update macro name.
35377         * modules/openat (Depends-on): Add mkdir.
35378         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
35379
35380         mkdir, mkdirat: add tests
35381         * modules/mkdir-tests: New test.
35382         * tests/test-mkdir.h: New file.
35383         * tests/test-mkdir.c: Likewise.
35384         * tests/test-mkdirat.c: Likewise.
35385         * modules/openat-tests (Files): Add new files.
35386         (Makefile.am): Run new test.
35387
35388 2009-10-06  Eric Blake  <ebb9@byu.net>
35389
35390         doc: tweak *at function documentation
35391         * doc/posix-functions/faccessat.texi (faccessat): Mention
35392         known issue with replacement.
35393         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
35394         * doc/posix-functions/linkat.texi (linkat): Likewise.
35395         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35396         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35397         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35398         * doc/posix-functions/renameat.texi (renameat): Likewise.
35399         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35400
35401         openat: fix GNU/Hurd bug in unlinkat
35402         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
35403         broken.
35404         * doc/posix-functions/unlink.texi (unlink): Document this.
35405         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
35406
35407         fdopendir: fix GNU/Hurd bug
35408         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
35409         allowing non-directory fds.
35410         * lib/fdopendir.c (rpl_fdopendir): Work around it.
35411         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35412         * modules/dirent (Makefile.am): Substitute it.
35413         * lib/dirent.in.h (fdopendir): Declare replacement.
35414         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
35415         * tests/test-fdopendir.c (main): Test something other than
35416         /dev/null, since on Hurd that behaves like a directory.
35417
35418         test-symlink: port to GNU/Hurd
35419         * tests/test-symlink.h (test_symlink): Relax expected errno.
35420
35421         doc: tweak more cygwin information
35422         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
35423         now compatible with glibc.
35424         * doc/posix-functions/getopt.texi (getopt): Likewise.
35425
35426         getopt-gnu: add another test
35427         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
35428         guarantee behavior relied on by m4.
35429         * tests/test-getopt.c (main): Use it.
35430         * modules/getopt-posix-tests (Depends-on): Add setenv.
35431         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
35432
35433         getopt: fix compilation on darwin
35434         * lib/getopt.in.h (includes): Leave breadcrumbs during system
35435         include.
35436         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
35437         Reported by Ludovic Courtès.
35438
35439 2009-10-06  Bruno Haible  <bruno@clisp.org>
35440
35441         * modules/size_max (Description): Discourage its use.
35442         Reported by Simon Josefsson.
35443
35444 2009-10-06  Jim Meyering  <meyering@redhat.com>
35445
35446         linkat: avoid compilation failure
35447         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
35448
35449 2009-10-05  Eric Blake  <ebb9@byu.net>
35450
35451         linkat: support Linux 2.6.17
35452         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
35453         linkat on Linux, but allow cache variable override.
35454         * lib/linkat.c (rpl_linkat): Define override.
35455         * modules/linkat (Depends-on): Add symlinkat.
35456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
35457         * modules/unistd (Makefile.am): Substitute it.
35458         * lib/unistd.in.h (linkat): Declare replacement.
35459         Reported by Pádraig Brady.
35460
35461         quotearg: port test to systems with C.UTF-8 locale
35462         * tests/test-quotearg.c (struct result_strings): Add another
35463         member, differentiating between C.ASCII and C.UTF-8 handling.
35464         (compare_strings): Add parameter.
35465         (main): Adjust all callers.
35466
35467         getopt: avoid clash with FreeBSD _getopt_internal
35468         * lib/getopt.in.h (_getopt_internal): Override the name.
35469         * lib/getopt_int.h (includes): Pick up any overrides.
35470         Reported by Reuben Thomas.
35471
35472         hash: allow C89 compilation
35473         * lib/hash.c (check_tuning): Move declaration before statement.
35474         Reported by Reuben Thomas.
35475
35476 2009-10-05  Karl Berry  <karl@gnu.org>
35477
35478         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
35479
35480 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
35481             Bruno Haible  <bruno@clisp.org>
35482
35483         * lib/uname.c (uname): Use a table-driven algorithm to compute
35484         Windows NT versions.
35485
35486 2009-10-04  Bruno Haible  <bruno@clisp.org>
35487
35488         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
35489         program_invocation_short_name.
35490         * modules/progname (configure.ac): Test for presence of
35491         program_invocation_short_name.
35492         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35493
35494 2009-10-04  Bruno Haible  <bruno@clisp.org>
35495
35496         * lib/progname.c (set_program_name): Fix comment.
35497         Reported by Jim Meyering.
35498
35499 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35500             Bruno Haible  <bruno@clisp.org>
35501
35502         * lib/uname.c: Include <string.h>.
35503         (uname): Do only one call to GetVersionEx in the common case.
35504
35505 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35506             Bruno Haible  <bruno@clisp.org>
35507
35508         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
35509         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
35510         (uname): Add support for Windows CE and various non-x86 CPU types.
35511
35512 2009-10-03  Bruno Haible  <bruno@clisp.org>
35513
35514         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
35515         invocation to tests/configure.ac.
35516         Reported by Ian Beckwith <ianb@erislabs.net>.
35517
35518 2009-10-02  Eric Blake  <ebb9@byu.net>
35519
35520         fchdir: avoid compiler warning
35521         * lib/fchdir.c (canonicalize_file_name)
35522         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
35523
35524         test-open: support mingw errno values
35525         * tests/test-open.h (test_open): Relax test.
35526         * tests/test-fopen.h (test_fopen): Likewise.
35527         * tests/test-openat-safer.c (main): Likewise.
35528
35529         open: fix opening directory on mingw
35530         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
35531
35532         test-open: on GNU/Hurd, /dev/null is a directory
35533         * tests/test-fopen.h (main): Rename...
35534         (test_fopen): ...to this.  Use a guaranteed non-directory when
35535         confirming open behavior on trailing slash.
35536         * tests/test-openat-safer.c (main): Likewise.
35537         * tests/test-open.h (main): Likewise....
35538         (test_open): ...to this.
35539         * tests/test-fopen.c (main): Adjust caller.
35540         * tests/test-fopen-safer.c (main): Likewise.
35541         * tests/test-open.c (main): Likewise.
35542         * tests/test-fcntl-safer.c (main): Likewise.
35543         Reported by Samuel Thibault.
35544
35545         rename, fchdir: don't ignore chdir failure
35546         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
35547         * lib/rename.c (rpl_rename) [W32]: Likewise.
35548         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
35549         an empty destination directory if source cannot be renamed,
35550         although there is still possibility for failure.
35551         * doc/posix-functions/rename.texi (rename): Document the race.
35552         Reported by Jim Meyering.
35553
35554         maint: cleanup whitespace in recent commits
35555         * lib/rename.c (rpl_rename): Remove tabs.
35556         * tests/test-link.h (test_link): Likewise.
35557         * lib/fchdir.c (get_name): Likewise.
35558         Reported by Jim Meyering.
35559
35560 2009-10-02  Ben Pfaff  <blp@gnu.org>
35561
35562         relocatable-prog-wrapper: Add missing dependency on
35563         double-slash-root.
35564         * modules/relocatable-prog-wrapper: Add dependency.
35565         Reported by Ian Beckwith <ianb@erislabs.net>.
35566
35567 2009-10-02  Eric Blake  <ebb9@byu.net>
35568
35569         renameat: fix Solaris bugs
35570         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
35571         needed fixing.
35572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
35573         * modules/stdio (Makefile.am): Substitute it.
35574         * lib/stdio.in.h (renameat): Declare replacement.
35575         * lib/renameat.c (rpl_renameat): Implement fix.
35576
35577         renameat: new module
35578         * modules/renameat: New file.
35579         * lib/renameat.c (renameat): Likewise.
35580         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
35581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35582         * modules/stdio (Makefile.am): Substitute them.
35583         * lib/stdio.in.h (renameat): Declare it.
35584         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35585         * doc/posix-functions/renameat.texi (renameat): Likewise.
35586         * modules/renameat-tests: New test.
35587         * tests/test-renameat.c: Likewise.
35588
35589         rename: fix mingw bugs
35590         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
35591         directory overwrite bugs.
35592
35593         rename: fix another cygwin 1.5 bug
35594         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
35595         checks.
35596         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
35597         unnecessary cygwin workarounds.  Also work around bug with moving
35598         full directory onto an empty one.
35599         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
35600
35601         rename-dest-slash: merge into rename module
35602         * modules/rename-dest-slash (Status): Mark obsolete.
35603         (Depends-on): Add rename.
35604         (Files): Let rename do it all.
35605         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
35606         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
35607         * m4/rename-dest-slash.m4: ...so this file can be deleted.
35608         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
35609         * lib/rename.c (rpl_rename): Update comments.
35610
35611         rename: fix cygwin 1.5.x bugs
35612         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
35613         * lib/rename.c (rpl_rename): Work around them.
35614         * modules/rename (Depends-on): Add same-inode.
35615
35616         rename: fix Solaris 10 bug
35617         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35618         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
35619         was the only bug.
35620
35621         rename: fix Solaris 9 bug
35622         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
35623         on non-directory.  Avoid calling exit.
35624         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
35625         strdup.
35626         * modules/rename-tests (Depends-on): Drop lstat.
35627         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35628         (gl_PREREQ_RENAME): Delete unused macro.
35629
35630         rename-dest-slash: fix NetBSD bug
35631         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
35632         links.
35633         * modules/rename-dest-slash (Depends-on): Add same-inode.
35634
35635         rename-tests: new test, exposes several platform bugs
35636         * modules/rename-tests: New file.
35637         * tests/test-rename.h: Likewise.
35638         * tests/test-rename.c: Likewise.
35639         * doc/posix-functions/rename.texi (rename): Improve documentation,
35640         including bugs that will eventually be fixed in gnulib.
35641
35642 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35643
35644         * lib/uname.c: Include <stdlib.h>
35645         (uname): Assume version info is available.
35646
35647 2009-10-02  Jim Meyering  <meyering@redhat.com>
35648
35649         gnu-web-doc-update: correct --help output
35650         * build-aux/gnu-web-doc-update: Make --help output relevant.
35651
35652         gnu-web-doc-update: add standard options
35653         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35654
35655         gnu-web-doc-update: New module.
35656         Use this script to automatically update the on-line web documentation
35657         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35658         * modules/gnu-web-doc-update: New file, from coreutils.
35659         * build-aux/gnu-web-doc-update: New script.
35660
35661 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35662
35663         link: LoadLibrary is not needed.
35664         * lib/link.c: Use GetModuleHandle.
35665
35666 2009-10-01  Eric Blake  <ebb9@byu.net>
35667
35668         getopt: bump serial number
35669         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35670         change.
35671
35672         tests: tighten link, rmdir, and remove tests
35673         * tests/test-link.h (includes): No need to use <config.h> here.
35674         Clean up if directory hard link was created, otherwise test for
35675         trailing '.'.
35676         * tests/test-linkat.c (main): Simplify.
35677         * tests/test-remove.c (main): Enhance test for trailing '.'.
35678         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35679
35680 2009-10-01  Jim Meyering  <meyering@redhat.com>
35681
35682         maint.mk: requiring "make major" was annoying, for a "minor" release.
35683         What is intended is "stable", to contrast with alpha and beta,
35684         so require "make stable", not "make major".
35685         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35686         (get_tool_versions): Likewise.
35687         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35688
35689 2009-09-30  Ben Pfaff  <blp@gnu.org>
35690
35691         Fix broken build of replacement for Windows tmpfile().
35692         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
35693         flags argument added along with the 'mkostemp' module.
35694
35695 2009-09-28  Bruno Haible  <bruno@clisp.org>
35696
35697         Avoid identifier clash with POSIX function 'remove' defined as a macro.
35698         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
35699         to 'remove_elt'.
35700         (gl_list_remove): Update.
35701         * lib/gl_list.c (gl_list_remove): Update.
35702         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
35703         to 'remove_elt'.
35704         (gl_oset_remove): Update.
35705         * lib/gl_list.c (gl_oset_remove): Update.
35706         Reported by Eric Blake.
35707
35708 2009-09-28  Eric Blake  <ebb9@byu.net>
35709
35710         doc: mention yet more cygwin 1.7 status
35711         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35712         cygwin.
35713         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35714         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35715
35716         argp: fix test failure
35717         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35718         that are not upper-case.  Pass correct range to tolower.
35719
35720 2009-09-27  Jim Meyering  <meyering@redhat.com>
35721
35722         test-yesno: work around sparc-dash here-document infelicity
35723         Without this change, the literal \177 byte in a here document
35724         would make dash 0.5.5.1-3 access uninitialized memory.
35725         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35726         Instead, use a marker, "@", and filter through tr to create the desired
35727         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35728
35729 2009-09-27  Bruno Haible  <bruno@clisp.org>
35730
35731         Disable untested support for new flavours of ACLs on AIX.
35732         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35733         progress.
35734         * lib/set-mode-acl.c (qset_acl): Likewise.
35735
35736 2008-12-07  Bruno Haible  <bruno@clisp.org>
35737
35738         Add support for new flavours of ACLs on AIX. (Untested.)
35739         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
35740         (file_has_acl): Add support for newer AIX.
35741         * lib/set-mode-acl.c (qset_acl): Likewise.
35742         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
35743         Rainer Tammer <tammer@tammer.net>.
35744
35745 2009-09-26  Eric Blake  <ebb9@byu.net>
35746
35747         argp: fix compilation of getopt
35748         * lib/getopt.in.h (includes): Use different guard than glibc.
35749         Reported by Sergey Poznyakoff.
35750
35751         doc: mention more cygwin 1.7 status
35752         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
35753         bug.
35754         * doc/posix-functions/execl.texi (execl): Likewise.
35755         * doc/posix-functions/execle.texi (execle): Likewise.
35756         * doc/posix-functions/execlp.texi (execlp): Likewise.
35757         * doc/posix-functions/execv.texi (execv): Likewise.
35758         * doc/posix-functions/execve.texi (execve): Likewise.
35759         * doc/posix-functions/execvp.texi (execvp): Likewise.
35760         * doc/glibc-functions/canonicalize_file_name.texi
35761         (canonicalize_file_name): Cygwin 1.7 now provides this.
35762         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35763         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35764         on AT_SYMLINK_NOFOLLOW.
35765
35766 2009-09-24  Eric Blake  <ebb9@byu.net>
35767
35768         test-linkat: make test more robust
35769         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35770
35771         getopt: fix inclusion guards for cygwin
35772         * modules/getopt-posix (Depends-on): Add include-next.
35773         (Makefile.am): Substitute more items in replacement header.
35774         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35775         <getopt.h>.
35776         * lib/getopt.in.h (includes): Use split inclusion guard, and
35777         prefer <getopt.h> over include <unistd.h> when one is present.
35778         (option): Also override name of 'struct option'.
35779
35780         same-inode: revert prior change; it is not yet ready
35781         * NEWS: Undo mention of this change.
35782         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35783         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35784         * lib/cycle-check.c (cycle_check): Likewise.
35785         * lib/same.c (same_name): Likewise.
35786         * lib/at-func2.c (at_func2): Likewise.
35787
35788 2009-09-23  Eric Blake  <ebb9@byu.net>
35789
35790         linkat: new module
35791         * modules/linkat: New file.
35792         * lib/at-func2.c (at_func2): Likewise.
35793         * lib/linkat.c (linkat): Likewise.
35794         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
35795         * lib/openat-priv.h (at_func2): Add declaration.
35796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35797         * modules/unistd (Makefile.am): Substitute them.
35798         * lib/unistd.in.h (linkat): Declare it.
35799         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35800         * doc/posix-functions/linkat.texi (linkat): Likewise.
35801         * doc/posix-functions/link.texi (link): Tweak wording.
35802         * tests/test-link.c (main): Move guts...
35803         * tests/test-link.h (test_link): ...into new file.
35804         * modules/linkat-tests: New test.
35805         * tests/test-linkat.c: Likewise.
35806         * modules/link-tests (Files): Ship new file.
35807         (Depends-on): Add stdbool.
35808
35809         dirname: add library-safe mdir_name
35810         * lib/dirname.h (mdir_name): New prototype.
35811         * lib/dirname.c (dir_name): Move guts...
35812         (mdir_name): ...to new function that avoids xalloc_die.
35813
35814         fchdir: another mingw fix
35815         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35816         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35817         on mingw (where it has not yet been ported), and make it optional
35818         elsewhere.
35819         (_gl_register_fd): Use it.
35820
35821         same-inode: make SAME_INODE tri-state, to port to mingw
35822         * NEWS: Mention this change.
35823         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35824         st_ino always being 0.
35825         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35826         * lib/cycle-check.c (cycle_check): Likewise.
35827         * lib/same.c (same_name): Likewise.
35828
35829         lstat: avoid mingw compilation error
35830         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35831         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35832         lstat ourselves.
35833         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35834         was adequate.
35835         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35836         the checks for lstat.
35837         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35838
35839         link: fix test failure on Solaris 9
35840         * lib/link.c (rpl_link): Don't assume link will catch bogus
35841         trailing slash on source.
35842
35843         test-symlinkat: enhance test
35844         * tests/test-readlink.c (main): Move guts...
35845         * tests/test-readlink.h (test_readlink): ...into new file.
35846         * tests/test-symlink.c (main): Move guts...
35847         * tests/test-symlink.h (test_symlink): ...into new file.
35848         * tests/test-symlinkat.c (main): Use new files for further
35849         coverage.
35850         (do_symlink, do_readlink): New helper functions.
35851         * modules/symlink-tests (Files): Ship new file.
35852         (Depends-on): Add stdbool.
35853         * modules/readlink-tests (Files): Ship new file.
35854         (Depends-on): Add stdbool.
35855         * modules/symlinkat-tests (Files): Use new files.
35856
35857 2009-09-23  Eric Blake  <ebb9@byu.net>
35858
35859         readlink: document portability issue with symlink length
35860         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35861         systems have bogus st_size on symlinks, and mention the
35862         areadlink-with-size module.
35863         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35864         * doc/posix-functions/readlink.texi (readlink): Mention the
35865         areadlink module, and ERANGE failure.
35866         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35867         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35868
35869         readlink: fix Solaris 9 bug with trailing slash
35870         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35871         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35872         * doc/posix-functions/readlink.texi (readlink): Document this.
35873         * modules/readlink-tests: New test.
35874         * tests/test-readlink.c: Likewise.
35875
35876         readlink: fix cygwin 1.5.x bug with return type
35877         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35878         * lib/unistd.in.h (readlink): Use ssize_t.
35879         * lib/readlink.c (readlink): Likewise.
35880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35881         * modules/unistd (Makefile.am): Substitute it.
35882         * lib/unistd.in.h (readlink): Declare replacement.
35883         * doc/posix-functions/readlink.texi (readlink): Document this.
35884
35885         symlink: use throughout gnulib
35886         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35887         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35888         symlink is not used.
35889         * modules/symlinkat (Depends-on): Add symlink.
35890         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35891         * modules/canonicalize-tests (Depends-on): Likewise.
35892         * modules/lstat-tests (Depends-on): Likewise.
35893         * modules/openat-tests (Depends-on): Likewise.
35894         * modules/remove-tests (Depends-on): Likewise.
35895         * modules/rmdir-tests (Depends-on): Likewise.
35896         * modules/unlink-tests (Depends-on): Likewise.
35897         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35898         * tests/test-canonicalize.c (symlink): Likewise.
35899         * tests/test-fstatat.c (symlink): Likewise.
35900         * tests/test-lstat.c (symlink): Likewise.
35901         * tests/test-remove.c (symlink): Likewise.
35902         * tests/test-rmdir.c (symlink): Likewise.
35903         * tests/test-unlink.c (symlink): Likewise.
35904         * tests/test-unlinkat.c (symlink): Likewise.
35905
35906         symlink: new module, for Solaris 9 bug
35907         * modules/symlink: New file.
35908         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35909         * lib/symlink.c: Likewise.
35910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35911         * modules/unistd (Makefile.am): Substitute them.
35912         * lib/unistd.in.h (symlink): Declare replacement.
35913         * MODULES.html.sh (File system functions): Mention it.
35914         * doc/posix-functions/symlink.texi (symlink): Likewise.
35915         * modules/symlink-tests: New test.
35916         * tests/test-symlink.c: Likewise.
35917
35918 2009-09-23  Bruno Haible  <bruno@clisp.org>
35919
35920         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35921         when needed.
35922         Test case: gnulib-tool --import --with-tests atexit inttypes.
35923         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35924
35925 2009-09-23  Bruno Haible  <bruno@clisp.org>
35926
35927         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35928         subcommand, not in a subshell.
35929
35930 2009-09-22  Eric Blake  <ebb9@byu.net>
35931
35932         unistd: sort replacement declarations
35933         * lib/unistd.in.h: Sort declarations.
35934
35935         open, openat: minor optimization
35936         * lib/open.c (open): If open succeeded, len is non-zero.
35937         * lib/openat.c (rpl_openat): Likewise.
35938
35939         link-follow: ensure correct result
35940         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35941         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35942         distinguish between possible failures.
35943
35944 2009-09-21  Eric Blake  <ebb9@byu.net>
35945
35946         fts: avoid compiler warning
35947         * lib/fts.c (dirent_inode_sort_may_be_useful)
35948         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35949
35950 2009-09-19  Bruno Haible  <bruno@clisp.org>
35951
35952         * lib/progreloc.c (canonicalize_file_name): New declaration.
35953
35954 2009-09-19  Eric Blake  <ebb9@byu.net>
35955
35956         link: fix quoting
35957         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35958
35959         openat: fix openat bugs on Solaris 9
35960         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35961         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35962         * modules/openat (Depends-on): Add open.
35963         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35964         * modules/fcntl-h (Makefile.am): Substitute it.
35965         * lib/fcntl.in.h (openat): Declare replacement.
35966         * doc/posix-functions/openat.texi (openat): Document this.
35967
35968         openat: move fstatat and unlinkat into correct files
35969         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35970         compiled.
35971         * lib/openat.c (fstatat, unlinkat): Move...
35972         * lib/fstatat.c (fstatat): ...into correct files.
35973         * lib/unlinkat.c (unlinkat): Likewise.
35974
35975         openat: fix unlinkat bugs on Solaris 9
35976         * lib/unlinkat.c (unlinkat): New file.
35977         * modules/openat (Depends-on): Add unlink.
35978         (Files): Distribute it.
35979         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35980         trailing slash behavior is broken.
35981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35982         * modules/unistd (Makefile.am): Substitute it.
35983         * lib/unistd.in.h (unlinkat): Declare replacement.
35984         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35985
35986         openat: fix fstatat bugs on Solaris 9
35987         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35988         stat.
35989         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35990
35991         test-unlinkat: enhance test, to expose Solaris 9 bug
35992         * tests/test-unlink.c (main): Factor guts...
35993         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35994         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35995         * tests/test-rmdir.c (main): Adjust caller.
35996         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35997         (unlinker): New helper function.
35998         (rmdirat): Enhance check.
35999         * modules/rmdir-tests (Depends-on): Add stdbool.
36000         * modules/unlink-tests (Depends-on): Likewise.
36001         (Files): Add test-unlink.h.
36002         * modules/openat-tests (Files): Likewise.
36003         (Depends-on): Add unlinkdir.
36004
36005         test-fstatat: new test, to expose Solaris 9 bugs
36006         * tests/test-stat.c (main): Factor guts...
36007         * tests/test-stat.h (test_stat_func): ...into new file.
36008         * tests/test-lstat.c (main): Factor guts...
36009         * tests/test-lstat.h (test_lstat_func): ...into new file.
36010         * tests/test-fstatat.c: New file.
36011         * modules/stat-tests (Files): Add test-stat.h.
36012         * modules/lstat-tests (Files): Add test-lstat.h.
36013         (Depends-on): Add stdbool.
36014         * modules/openat-tests (Depends-on): Add pathmax.
36015         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
36016         (Makefile.am): Run new test.
36017
36018         remove: new module, for mingw and Solaris 9 bugs
36019         * modules/remove: New file.
36020         * lib/remove.c: Likewise.
36021         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
36022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36023         * modules/stdio (Makefile.am): Use them.
36024         * lib/stdio.in.h (remove): Declare replacement.
36025         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36026         * doc/posix-functions/remove.texi (remove): Likewise.
36027         * modules/remove-tests: New test.
36028         * tests/test-remove.c: Likewise.
36029
36030         unlink: new module, for Solaris 9 bug
36031         * modules/unlink: New file.
36032         * lib/unlink.c: Likewise.
36033         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36035         * modules/unistd (Makefile.am): Use them.
36036         * lib/unistd.in.h (stat): Declare replacement.
36037         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36038         * doc/posix-functions/unlink.texi (unlink): Likewise.
36039         * modules/unlink-tests: New test.
36040         * tests/test-unlink.c: Likewise.
36041
36042         lstat: fix Solaris 9 bug
36043         * lib/lstat.c (lstat): Also check for trailing slash on
36044         non-symlink, non-directories.  Use stat module to simplify logic.
36045         * doc/posix-functions/lstat.texi (lstat): Document it.
36046         * modules/lstat-tests (Depends-on): Add errno, same-inode.
36047         (configure.ac): Check for symlink.
36048         * tests/test-lstat.c (main): Add more tests.
36049
36050         stat: add as dependency to other modules
36051         * modules/chown (Depends-on): Add stat.
36052         * modules/euidaccess (Depends-on): Likewise.
36053         * modules/fchdir (Depends-on): Likewise.
36054         * modules/isdir (Depends-on): Likewise.
36055         * modules/link (Depends-on): Likewise.
36056         * modules/lstat (Depends-on): Likewise.
36057         * modules/mkdir-p (Depends-on): Likewise.
36058         * modules/modechange (Depends-on): Likewise.
36059         * modules/open (Depends-on): Likewise.
36060         * modules/readlink (Depends-on): Likewise.
36061         * modules/same (Depends-on): Likewise.
36062
36063         stat: fix Solaris 9 bug
36064         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
36065         slash.
36066         * lib/stat.c (rpl_stat): Work around it.
36067         * doc/posix-functions/stat.texi (stat): Update documentation.
36068
36069         stat: new module, for mingw bug
36070         * modules/stat: New file.
36071         * lib/stat.c: Likewise.
36072         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36073         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36074         * modules/sys_stat (Makefile.am): Use them.
36075         * lib/sys_stat.in.h (stat): Declare replacement.
36076         * lib/openat.c (fstatat): Deal with lstat and stat being function
36077         macros.
36078         * modules/openat (Depends-on): Add inline.
36079         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36080         * doc/posix-functions/stat.texi (stat): Likewise.
36081         * modules/stat-tests: New test.
36082         * tests/test-stat.c: Likewise.
36083
36084 2009-09-19  Jim Meyering  <meyering@redhat.com>
36085
36086         syntax-check: detect unnecessary inclusion of canonicalize.h
36087         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
36088
36089 2009-09-19  Eric Blake  <ebb9@byu.net>
36090
36091         canonicalize-lgpl: adjust clients to use correct header
36092         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36093         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
36094         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
36095         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
36096         * lib/progreloc.c (includes): Likewise.
36097
36098 2009-09-19  Jim Meyering  <meyering@redhat.com>
36099
36100         test-posixtm.c: correct a comment
36101         * tests/test-posixtm.c: Correct first-line comment.
36102         Spotted by Eric Blake.
36103
36104 2009-09-16  Jim Meyering  <meyering@redhat.com>
36105
36106         posixtm-tests: make T const-correct; add a test case
36107         * tests/test-posixtm.c (T): Declare const.
36108         Add a test for -(2^31+1).
36109         Remove useless can-succeed-only-in-2002 test.
36110
36111         posixtm-tests: adjust the sole failing test
36112         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
36113         expected output matches what mktime now produces.  Cross-checked via
36114         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
36115
36116         posixtm: move #ifdef'd tests into a new module
36117         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
36118         * tests/test-posixtm.c: ... this new file.
36119         * modules/posixtm-tests: New module.
36120
36121 2009-09-19  Eric Blake  <ebb9@byu.net>
36122
36123         openat: simplify use of at-func.c
36124         * lib/at-func.c (includes): Include prerequisites here, to
36125         simplify requirements on client files.
36126         * lib/openat-priv.h: Add double-inclusion guard.
36127         * lib/faccessat.c (includes): Simplify.
36128         * lib/fchmodat.c (includes): Likewise.
36129         * lib/fchownat.c (includes): Likewise.
36130         * lib/mkdirat.c (includes): Likewise.
36131         * lib/mkfifoat.c (includes): Likewise.
36132         * lib/symlinkat.c (includes): Likewise.
36133
36134         openat: allow return of fd 0
36135         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
36136         * modules/save-cwd (Depends-on): Replace fcntl-safer with
36137         unistd-safer.
36138         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
36139         <fcntl.h>; this module does not leak fds.
36140         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
36141         must be allowed to return 0, leaving openat_safer to add the
36142         safety.
36143         (openat_permissive): Avoid writing to just-opened fd 2 if
36144         restoring the current directory fails.
36145         * lib/openat-die.c (openat_restore_fail): Add comment.
36146         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
36147         (save_cwd): Guarantee safe fd, but without use of open_safer.
36148         * tests/test-openat.c: New test.
36149         * modules/openat-tests (Files, Makefile.am): Distribute and build
36150         new file.
36151
36152         relocatable-prog-wrapper: fix build
36153         * modules/relocatable-prog-wrapper (Files): Update name of
36154         canonicalize m4 file, broken on 2009-09-17.
36155         Reported by emad hajjar <aleppos@hotmail.com>.
36156
36157 2009-09-19  Bruno Haible  <bruno@clisp.org>
36158
36159         * lib/safe-alloc.h: Use the standard header with GPL copyright.
36160         * lib/safe-alloc.c: Likewise.
36161         Reported by Ian Beckwith <ianb@erislabs.net>.
36162
36163 2009-09-18  Bruno Haible  <bruno@clisp.org>
36164
36165         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
36166         Reported by <erobles@sensacd.com.mx>.
36167
36168 2009-09-17  Eric Blake  <ebb9@byu.net>
36169
36170         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
36171         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
36172         slashes when checking if last component is missing.
36173         * tests/test-canonicalize.c (main): Test this.
36174
36175         canonicalize, canonicalize-lgpl: honor // if distinct from /
36176         * modules/canonicalize (Files): Add double-slash-root.m4.
36177         * modules/canonicalize-lgpl (Files): Likewise.
36178         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36179         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
36180         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
36181         fallback definition.
36182         (canonicalize_filename_mode): Use it to protect //.
36183         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
36184         (__realpath): Likewise.
36185         * tests/test-canonicalize.c (main): Test this.
36186         * tests/test-canonicalize-lgpl.c (main): Likewise.
36187         * modules/canonicalize-tests (Depends-on): Add same-inode.
36188         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36189
36190         canonicalize-lgpl: fix glibc bug with trailing slash
36191         * m4/canonicalize-lgpl.m4: Move contents...
36192         * m4/canonicalize.m4: ...here.
36193         (gl_CANONICALIZE_LGPL): Factor realpath check...
36194         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
36195         glibc 2.3.5 bug, fixed 2005-04-27.
36196         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
36197         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
36198         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
36199         * modules/canonicalize-lgpl (Files): Manage file rename.
36200         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36201         * modules/stdlib (Makefile.am): Substitute witness.
36202         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36203         is needed.
36204         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
36205         replacement is required.
36206         * lib/canonicalize.c (canonicalize_file_name): Likewise.
36207         * doc/glibc-functions/canonicalize_file_name.texi
36208         (canonicalize_file_name): Document this.
36209         * doc/posix-functions/realpath.texi (realpath): Likewise.
36210
36211         canonicalize-lgpl: reject non-directory with trailing slash
36212         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
36213         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
36214         catches failures in glibc 2.3.5.
36215         * tests/test-canonicalize.c (main): Likewise.
36216
36217         canonicalize-lgpl: use native realpath if it works
36218         * lib/canonicalize-lgpl.c (realpath): Guard with
36219         FUNC_REALPATH_WORKS.
36220         * lib/stdlib.in.h (realpath): Make declaration optional based on
36221         HAVE_REALPATH.
36222         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
36223         native realpath works.
36224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36225         * modules/stdlib (Makefile.am): Substitute witness.
36226
36227         canonicalize, canonicalize-lgpl: use <stdlib.h>
36228         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
36229         (Include): Mention <stdlib.h>.
36230         (configure.ac): Mention functions we provide.
36231         * modules/canonicalize (configure.ac): Likewise.
36232         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
36233         realpath if canonicalize_file_name is missing.
36234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
36235         * modules/stdlib (Makefile.am): Substitute witnesses.
36236         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
36237         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
36238         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
36239         * NEWS: Document this.
36240         * doc/glibc-functions/canonicalize_file_name.texi
36241         (canonicalize_file_name): Likewise.
36242         * doc/posix-functions/realpath.texi (realpath): Likewise.
36243         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
36244
36245         test-canonicalize: consolidate into single C program
36246         * tests/test-canonicalize.sh: Delete; move setup into...
36247         * tests/test-canonicalize.c (main): ...the program, making it
36248         easier to run in debugger.  Add some tests.
36249         * modules/canonicalize-tests (Files): Remove unused file.
36250         (Depends-on): Add progname.
36251         (configure.ac, Makefile.am): Simplify.
36252
36253         test-canonicalize-lgpl: consolidate into single C program
36254         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
36255         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
36256         easier to run in debugger.  Add some tests.
36257         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
36258         (configure.ac, Makefile.am): Simplify.
36259
36260         canonicalize: avoid resolvepath
36261         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
36262         unnecessary checks.
36263         * lib/canonicalize.c (includes): Simplify.
36264         (canonicalize_file_name): Drop resolvepath implementation.
36265         * modules/canonicalize (Depends-on): Drop filenamecat.
36266
36267         canonicalize: don't lose errno
36268         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
36269         over calls to free.
36270
36271         canonicalize: simplify errno handling
36272         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
36273         assignment.
36274
36275         canonicalize, canonicalize-lgpl: update module dependencies
36276         * modules/canonicalize (Depends-on): Add extensions, lstat,
36277         pathmax, stdlib.
36278         (Files): Drop pathmax.h.
36279         (configure.ac): Adjust macro name.
36280         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
36281         lstat, stdlib, sys_stat.
36282         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
36283         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
36284         extensions.
36285         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
36286         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
36287         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
36288         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
36289         declaration, if available.
36290         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
36291         we can rely on the readlink module.
36292         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
36293         (includes): Use <unistd.h> unconditionally.
36294
36295 2009-09-17  Eric Blake  <ebb9@byu.net>
36296
36297         maint: make Include sections of modules consistent
36298         * modules/alloca: Use only header name; no need to list #include.
36299         * modules/alloca-opt: Likewise.
36300         * modules/arpa_inet: Likewise.
36301         * modules/canon-host: Likewise.
36302         * modules/configmake: Likewise.
36303         * modules/dirent: Likewise.
36304         * modules/eealloc: Likewise.
36305         * modules/environ: Likewise.
36306         * modules/fchdir: Likewise.
36307         * modules/fcntl: Likewise.
36308         * modules/fcntl-h: Likewise.
36309         * modules/gethrxtime: Likewise.
36310         * modules/gettime: Likewise.
36311         * modules/ignore-value: Likewise.
36312         * modules/inet_ntop: Likewise.
36313         * modules/inet_pton: Likewise.
36314         * modules/inttypes: Likewise.
36315         * modules/isnand-nolibm: Likewise.
36316         * modules/isnanf-nolibm: Likewise.
36317         * modules/mbchar: Likewise.
36318         * modules/mbfile: Likewise.
36319         * modules/mbiter: Likewise.
36320         * modules/mbuiter: Likewise.
36321         * modules/netdb: Likewise.
36322         * modules/netinet_in: Likewise.
36323         * modules/nproc: Likewise.
36324         * modules/pagealign_alloc: Likewise.
36325         * modules/poll: Likewise.
36326         * modules/printf-frexp: Likewise.
36327         * modules/pthread: Likewise.
36328         * modules/putenv: Likewise.
36329         * modules/random_r: Likewise.
36330         * modules/relocatable-prog: Likewise.
36331         * modules/search: Likewise.
36332         * modules/select: Likewise.
36333         * modules/selinux-h: Likewise.
36334         * modules/settime: Likewise.
36335         * modules/signal: Likewise.
36336         * modules/size_max: Likewise.
36337         * modules/socklen: Likewise.
36338         * modules/ssize_t: Likewise.
36339         * modules/stdarg: Likewise.
36340         * modules/stdbool: Likewise.
36341         * modules/stddef: Likewise.
36342         * modules/stdint: Likewise.
36343         * modules/stdio: Likewise.
36344         * modules/stdlib: Likewise.
36345         * modules/string: Likewise.
36346         * modules/strings: Likewise.
36347         * modules/sys_file: Likewise.
36348         * modules/sys_ioctl: Likewise.
36349         * modules/sys_select: Likewise.
36350         * modules/sys_socket: Likewise.
36351         * modules/sys_stat: Likewise.
36352         * modules/sys_time: Likewise.
36353         * modules/sys_times: Likewise.
36354         * modules/sys_utsname: Likewise.
36355         * modules/sys_wait: Likewise.
36356         * modules/sysexits: Likewise.
36357         * modules/time: Likewise.
36358         * modules/times: Likewise.
36359         * modules/tmpfile: Likewise.
36360         * modules/trim: Likewise.
36361         * modules/unistd: Likewise.
36362         * modules/wchar: Likewise.
36363         * modules/wctype: Likewise.
36364
36365 2009-09-17  Bruno Haible  <bruno@clisp.org>
36366
36367         Make getdate.y compile on QNX and NetBSD 5 / i386.
36368         * m4/getdate.m4 (gl_GETDATE): Conditionally define
36369         TIME_T_FITS_IN_LONG_INT.
36370         * lib/getdate.y (long_time_t): New type.
36371         (relative_time): Change type of 'seconds' field to long_time_t.
36372         (get_date): Update types of local variables. Check against overflow
36373         during conversion from long_time_t to time_t.
36374         Reported by Matt Kraai <kraai@ftbfs.org>
36375         and Hasso Tepper <hasso@netbsd.org>.
36376
36377 2009-09-17  Bruno Haible  <bruno@clisp.org>
36378
36379         * modules/COPYING: Update copyright years.
36380         * modules/README: Likeiwse.
36381         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
36382         Reported by Ian Beckwith <ianb@erislabs.net>.
36383
36384 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36385
36386         * users.txt: Update references for gnuit package.
36387
36388 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36389
36390         * m4/getdelim.m4: Fix typo in copyright line.
36391
36392 2009-09-17  Bruno Haible  <bruno@clisp.org>
36393
36394         * lib/atoll.c: Use the standard header with GPL copyright.
36395         * lib/argz.in.h: Likewise.
36396         * lib/glob.c: Likewise.
36397         * lib/glob-libc.h: Likewise.
36398         * lib/random_r.c: Likewise.
36399         * lib/siglist.h: Likewise.
36400         * lib/strsignal.c: Likewise.
36401         Reported by Ian Beckwith <ianb@erislabs.net>.
36402
36403 2009-09-17  Eric Blake  <ebb9@byu.net>
36404
36405         rmdir: ensure correct dependency order
36406         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
36407
36408 2009-09-17  Bruno Haible  <bruno@clisp.org>
36409
36410         Disable assertion that fails on NetBSD 5 / i386.
36411         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
36412         Reported by Sam Steingold <sds@gnu.org>
36413         and Hasso Tepper <hasso@netbsd.org>.
36414
36415 2009-09-16  Eric Blake  <ebb9@byu.net>
36416
36417         unlinkdir: port to mingw
36418         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
36419         on which no one can unlink a directory.
36420
36421         stdlib: sort witness names
36422         * modules/stdlib (Makefile.am): Sort replacements.
36423         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36424         * lib/stdlib.in.h: Likewise.
36425
36426         parse-duration-tests: avoid link failure
36427         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
36428         LIBINTL.
36429         Reported by Tom G. Christensen.
36430
36431         openat-tests: ensure unlinkat behaves like rmdir
36432         * tests/test-rmdir.c (main): Factor guts...
36433         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
36434         * modules/rmdir-tests (Files): Ship new file.
36435         * modules/openat-tests: New test.
36436         * tests/test-unlinkat.c: Likewise.
36437
36438         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
36439         * modules/rmdir-errno (Status, Notice): Now obsolete.
36440
36441         rmdir: work around cygwin 1.5.x and mingw bugs
36442         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
36443         * lib/rmdir.c (rmdir): Work around it.
36444         * modules/rmdir (Status, Notice): No longer obsolete.
36445         (Files): Add dos.m4.
36446         (Depends-on): Add unistd.
36447         (configure.ac): Set witnesses.
36448         (License): Relax to LGPLv2+.
36449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
36450         * modules/unistd (Makefile.am): Substitute witnesses.
36451         * lib/unistd.in.h (rmdir): Declare replacement.
36452         * doc/posix-functions/rmdir.texi (rmdir): Document this.
36453         * modules/rmdir-tests: New tests.
36454         * tests/test-rmdir.c: Likewise.
36455
36456 2009-09-15  Eric Blake  <ebb9@byu.net>
36457
36458         fchdir: improve use of replacement functions
36459         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
36460         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
36461         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
36462         REPLACE_CLOSEDIR.
36463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
36464         * modules/sys_stat (Makefile.am): Substitute correct witness.
36465         * modules/dirent (Makefile.am): Likewise.
36466         * modules/unistd (Makefile.am): Likewise.
36467         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
36468         * lib/unistd.in.h (dup): Likewise.
36469         * lib/sys_stat.in.h (fstat): Likewise.
36470
36471         maint: ignore gnulib-tool temp files
36472         * .gitignore: Ignore files created during gnulib-tool --test.
36473
36474 2009-09-13  Jim Meyering  <meyering@redhat.com>
36475
36476         posixtm: don't reject a time that specify "60" as the number of seconds
36477         * lib/posixtm.c (posixtime): The code to reject invalid dates
36478         would also reject a time specified with the .60 suffix.
36479         But POSIX allows that, in order to accommodate leap seconds.
36480         So don't reject it.
36481         (main): Adjust tests accordingly.
36482         * modules/posixtm (Depends-on): Add stpcpy.
36483
36484 2009-09-11  Jim Meyering  <meyering@redhat.com>
36485
36486         announce-gen: include [$release_type] in emitted Subject:
36487         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
36488         e.g., [stable] in the emitted Subject: line.
36489
36490 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36491
36492         Remove obsolete macros from several modules.
36493         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
36494         obsolete Autoconf macros with their modern counterparts.
36495         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
36496         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
36497         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
36498         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36499         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
36500         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36501         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36502         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36503         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
36504         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
36505         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36506         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36507         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
36508         * m4/sockets.m4 (gl_SOCKETS): Likewise.
36509         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
36510         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
36511         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36512         * m4/time_r.m4 (gl_TIME_R): Likewise.
36513         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
36514         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
36515         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36516
36517         Fix copyright header in build-aux scripts.
36518         * build-aux/git-version-gen: Fix copyright header to match GPLv3
36519         recommendation.
36520         * build-aux/ncftpput-ftp: Likewise.
36521         * build-aux/update-copyright: Likewise.
36522
36523 2009-09-09  Eric Blake  <ebb9@byu.net>
36524
36525         test-link: allow Linux choice of errno
36526         * tests/test-link.c (main): Relax test for alternate error.
36527
36528         strndup: fix improper m4 caching
36529         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
36530         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
36531         (gl_PREREQ_STRNDUP): Delete.
36532         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
36533         * modules/string (Makefile.am): Substitute it.
36534         * lib/string.in.h (strndup): Modernize prototype.
36535
36536         getcwd: port to mingw
36537         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
36538         different from the POSIX assumptions made throughout the getcwd
36539         module; fortunately, the mingw getcwd does not need replacement.
36540         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
36541         * modules/getcwd-tests: New test.
36542         * tests/test-getcwd.c: Likewise.
36543
36544         link: fix platform bugs
36545         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
36546         * lib/link.c (link): Work around them.  Fix related mingw bug.
36547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
36548         * modules/unistd (Makefile.am): Substitute it.
36549         * lib/unistd.in.h (link): Declare replacement.
36550         * doc/posix-functions/link.texi (link): Document this.
36551         * modules/link (Depends-on): Add strdup-posix, sys_stat.
36552
36553         test-link: consolidate into single C program, test more cases
36554         * tests/test-link.sh: Delete.
36555         * tests/test-link.c: Test more error conditions.  Exposes bugs on
36556         at least Cygwin and Solaris.
36557         * modules/link-tests (Files): Remove unused file.
36558         (Depends-on): Add errno, sys_stat.
36559         (Makefile.am): Simplify.
36560
36561 2009-09-08  Bruno Haible  <bruno@clisp.org>
36562
36563         Work around towlower, towupper bug on mingw.
36564         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
36565         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
36566         * doc/posix-functions/towlower.texi: Mention the mingw bug.
36567         * doc/posix-functions/towupper.texi: Likewise.
36568         Reported by Eric Blake.
36569
36570 2009-09-08  Jim Meyering  <meyering@redhat.com>
36571
36572         build: don't try to run autoheader if we don't use it
36573         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
36574         is not used in configure.ac.
36575
36576 2009-09-08  Eric Blake  <ebb9@byu.net>
36577
36578         euidaccess: fix compilation error
36579         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
36580
36581         rawmemchr: relax license
36582         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
36583         okay.
36584         Reported by Jim Meyering.
36585
36586         mkfifoat: new module
36587         * modules/mkfifoat: New file.
36588         * lib/mkfifoat.c: Likewise.
36589         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
36590         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36591         * modules/sys_stat (Makefile.am): Use them.
36592         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
36593         * MODULES.html.sh (File system functions): Mention module.
36594         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36595         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36596         * modules/mkfifoat-tests: New test.
36597         * tests/test-mkfifoat.c: Likewise.
36598
36599         strchrnul: relax license
36600         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
36601         okay.
36602         Reported by Jim Meyering.
36603
36604 2009-09-08  Eric Blake  <ebb9@byu.net>
36605
36606         fstatat: fix compilation on Solaris
36607         * lib/fstatat.c (includes): Add fcntl.h.
36608         Reported by Pádraig Brady.
36609
36610 2009-09-07  Eric Blake  <ebb9@byu.net>
36611
36612         rename: modernize replacement
36613         * modules/rename (Depends-on): Add stdio.
36614         (configure.ac): Declare witness.
36615         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
36616         stdio take care of replacement.
36617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36618         * modules/stdio (Makefile.am): Substitute them.
36619         * lib/stdio.in.h (rename): Declare replacement.
36620         * lib/rename.c (includes): Allow cross-compilation to non-windows
36621         machines.
36622         * doc/posix-functions/rename.texi (rename): Improve
36623         documentation.
36624
36625         stdio: sort witness names
36626         * modules/stdio (Makefile.am): Sort replacements.
36627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36628         * lib/stdio.in.h: Likewise.
36629
36630         getcwd: minor cleanups
36631         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
36632         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
36633
36634         openat: provide more convenience names
36635         * modules/faccessat (configure.ac): Add C witness.
36636         * lib/unistd.in.h (readlinkat): Fix typo.
36637         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
36638         convenience wrappers.
36639         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
36640         wrappers in syntax checks.
36641
36642 2009-09-06  Eric Blake  <ebb9@byu.net>
36643
36644         doc: fix comments in recent patches
36645         * lib/faccessat.c: Mention correct function.
36646         * lib/fchmodat.c: Likewise.
36647         * lib/fchownat.c: Likewise.
36648         * lib/symlinkat.c: Likewise.
36649         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36650         constants.
36651
36652         faccessat, symlinkat: continue cleanup of previous patch
36653         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36654         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36655         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36657         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36658         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36659         set.
36660
36661 2009-09-06  Bruno Haible  <bruno@clisp.org>
36662
36663         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36664         (fstatat): Declare if GNULIB_FSTATAT is set.
36665         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36666         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36667         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36668         * modules/fcntl-h (Files): Remove m4/openat.m4.
36669         * modules/sys_stat (Files): Remove m4/openat.m4.
36670         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36671         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36672         * modules/unistd (Files): Remove m4/openat.m4.
36673         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36674         GNULIB_OPENAT.
36675         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36676         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36677         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36678         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36679         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36680         gl_OPENAT_DEFAULTS.
36681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36682         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36683         Don't require gl_OPENAT_DEFAULTS.
36684         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36685         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36686         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36687         (gl_OPENAT_DEFAULTS): Remove macro.
36688
36689 2009-09-06  Bruno Haible  <bruno@clisp.org>
36690
36691         * modules/openat (configure.ac): Remove unneeded witness.
36692
36693 2009-09-06  Bruno Haible  <bruno@clisp.org>
36694
36695         Set errno to ENOSYS when a function is entirely unsupported.
36696         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
36697         EOPNOTSUPP.
36698         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36699         * modules/chown (Depends-on): Remove errno.
36700
36701 2009-09-06  Bruno Haible  <bruno@clisp.org>
36702
36703         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
36704
36705 2009-09-06  Bruno Haible  <bruno@clisp.org>
36706
36707         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36708
36709 2009-09-06  Ben Pfaff  <blp@gnu.org>
36710             Bruno Haible  <bruno@clisp.org>
36711
36712         Work around a glibc bug in strtok_r.
36713         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36714         Undefine if UNDEFINE_STRTOK_R is set.
36715         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36717         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36718         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36719         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36720         UNDEFINE_STRTOK_R.
36721         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36722
36723 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36724
36725         exclude: minor fix
36726         * lib/exclude.c: Include wctype.h
36727
36728 2009-09-06  Akim Demaille  <demaille@gostai.com>
36729
36730         bootstrap: improve error message
36731         * build-aux/bootstrap (find_tool): Upon failure, report the list
36732         of candidates.
36733         Honor the initial value of the envvar.
36734
36735 2009-09-05  Eric Blake  <ebb9@byu.net>
36736
36737         symlinkat: new module
36738         * modules/symlinkat: New file.
36739         * lib/symlinkat.c: Likewise.
36740         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
36741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36742         * modules/unistd (Makefile.am): Use them.
36743         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
36744         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
36745         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
36746         * MODULES.html.sh (File system functions): Mention module.
36747         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36748         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36749         * modules/symlinkat-tests: New test.
36750         * tests/test-symlinkat.c: Likewise.
36751
36752         test-openat-safer: add more checks
36753         * tests/test-openat-safer.c (main): Check more code paths.
36754
36755 2009-09-05  Jim Meyering  <meyering@redhat.com>
36756
36757         syntax-check: detect unnecessary inclusion of openat.h
36758         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36759
36760 2009-09-05  Bruno Haible  <bruno@clisp.org>
36761
36762         Support towlower, towupper.
36763         * doc/posix-functions/towlower.texi: Mention module wctype.
36764         * doc/posix-functions/towupper.texi: Likewise.
36765         * lib/wctype.in.h (towlower, towupper): New functions.
36766         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36767         (ASSERT): New macro.
36768         (e): New variable.
36769         (main): Test also towlower, towupper. Test WEOF argument.
36770         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36771
36772 2009-09-05  Bruno Haible  <bruno@clisp.org>
36773
36774         Fix conversion behaviour when the input is invalid.
36775         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36776         mark occurring in first pass of indirect conversion.
36777         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36778         input.
36779         Found by clang's static analyzer.
36780
36781 2009-09-05  Bruno Haible  <bruno@clisp.org>
36782
36783         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36784         where direct conversion is possible.
36785
36786 2009-09-04  Eric Blake  <ebb9@byu.net>
36787
36788         openat: fail with ENOENT on empty name
36789         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36790         buffer.
36791
36792         link-follow: fix logic bug in prior patch
36793         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
36794         reversed sense of yes and no in prior patch.  Avoid confusing
36795         compilation failure with desired semantics.
36796
36797         link-follow: accomodate mingw and cross-compilation
36798         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
36799         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
36800         cross-compilation results to -1, to make linkat easier to
36801         implement when cross-compiling.  Trivially support mingw.
36802         * modules/link-follow (configure.ac): Call new name.
36803         * NEWS: Mention this.
36804
36805 2009-09-03  Eric Blake  <ebb9@byu.net>
36806
36807         faccessat: compile replacement
36808         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36809         needed.
36810
36811         fts: fix compilation error
36812         * lib/fts.c (includes): Re-add "openat.h", for
36813         openat_needs_fchdir.
36814
36815         faccessat: new module
36816         * modules/faccessat: New file.
36817         * lib/faccessat.c: Likewise.
36818         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36820         * modules/unistd (Makefile.am): Use it.
36821         * lib/unistd.in.h (faccessat): Declare it.
36822         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36823         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36824         * MODULES.html.sh (File system functions): Mention it.
36825         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36826         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36827
36828         euidaccess: prefer POSIX over non-standard implementation
36829         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36830         * lib/euidaccess.c (euidaccess): Use it if available.
36831
36832         openat: make template easier to use
36833         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36834         AT_FUNC_F2 to be undefined.
36835         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36836         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36837         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36838         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36839         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36840         Likewise.
36841         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36842         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36843         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36844         Likewise.
36845
36846         openat: declare in POSIX headers
36847         * NEWS: Mention this.
36848         * modules/openat (configure.ac): Declare witnesses.
36849         (Depends-on): Add fcntl-h, sys_stat, unistd.
36850         (Include): Mention correct headers.
36851         * modules/fcntl-h (Depends-on): Add link-warning.
36852         (Files): Add openat.m4.
36853         (Makefile.am): Substitute witnesses.
36854         * modules/sys_stat (Files, Makefile.am): Likewise.
36855         * modules/unistd (Files, Makefile.am): Likewise.
36856         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36857         (gl_OPENAT_DEFAULTS): New macro.
36858         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36860         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36861         (SYS_STAT_H): Remove unused variable.
36862         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36863         * lib/fcntl--.h (includes): Remove unneeded header.
36864         * lib/openat-safer.c (includes): Likewise.
36865         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36866         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36867         appropriate headers.
36868         (__OPENAT_PREFIX): Delete.
36869         * lib/fcntl.in.h (openat): Provide declaration.
36870         (AT_FDCWD): Fix Solaris bug.
36871         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36872         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36873         * lib/fchmodat.c (includes):  Adjust to find declaration.
36874         * lib/fchownat.c (includes): Likewise.
36875         * lib/mkdirat.c (includes): Likewise.
36876         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36877         still visible.
36878
36879 2009-09-02  Eric Blake  <ebb9@byu.net>
36880
36881         errno: use consistently
36882         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36883         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36884         * lib/canonicalize.c (ELOOP): Likewise.
36885         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36886         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36887         * lib/lchown.c (EOPNOTSUPP): Likewise.
36888         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36889         * lib/savewd.c (ESTALE): Likewise.
36890         * lib/settime.c (ENOSYS): Likewise.
36891         * lib/utimens.c (ENOSYS): Likewise.
36892         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36893         * lib/chdir-safer.c (ELOOP): Likewise.
36894         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36895         * modules/c-stack (Depends-on): Add errno.
36896         * modules/canonicalize (Depends-on): Likewise.
36897         * modules/chdir-safer (Depends-on): Likewise.
36898         * modules/fdopendir (Depends-on): Likewise.
36899         * modules/inet_ntop (Depends-on): Likewise.
36900         * modules/inet_pton (Depends-on): Likewise.
36901         * modules/lchown (Depends-on): Likewise.
36902         * modules/openat (Depends-on): Likewise.
36903         * modules/savewd (Depends-on): Likewise.
36904         * modules/settime (Depends-on): Likewise.
36905         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36906
36907         fts: avoid leaking fds
36908         * modules/fts (Depends-on): Add cloexec.
36909         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36910         flag.
36911
36912         fts: make directory fds more robust
36913         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36914         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36915
36916         backupfile, chdir-long, fts, savedir: make safer
36917         * lib/backupfile.c (includes): Use "dirent--.h", since
36918         numbered_backup can write to stderr during readdir.
36919         * lib/savedir.c (includes): Likewise.
36920         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36921         emulation can write to stderr on failure.
36922         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36923         * lib/getcwd.c: Document why opendir_safer is unused.
36924         * lib/glob.c: Likewise.
36925         * lib/scandir.c: Likewise.
36926         * lib/openat-proc.c: Likewise, for open_safer.
36927         * modules/backupfile (Depends-on): Add dirent-safer.
36928         * modules/savedir (Depends-on): Likewise.
36929         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36930         * modules/chdir-long (Depends-on): Add openat-safer.
36931
36932         openat-safer: new module
36933         * modules/openat-safer: New file.
36934         * lib/openat-safer.c: Likewise.
36935         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36936         * lib/fcntl-safer.h (openat_safer): Declare.
36937         * lib/fcntl--.h (openat): Override.
36938         * MODULES.html.sh (File descriptor based I/O): Mention it.
36939         * lib/openat.h: Add double-inclusion guards.
36940         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36941         "fcntl--.h", so we can implement openat.
36942         * modules/openat-safer-tests: New test.
36943         * tests/test-openat-safer.c: New file.
36944
36945         dirent-safer: new module
36946         * modules/dirent-safer: New file.
36947         * lib/dirent--.h: Likewise.
36948         * lib/dirent-safer.h: Likewise.
36949         * lib/opendir-safer.c: Likewise.
36950         * m4/dirent-safer.m4: Likewise.
36951         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36952         * modules/dirent-safer-tests: New test.
36953         * tests/test-dirent-safer.c: New file.
36954         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36955
36956         fdopendir: optimize on mingw
36957         * lib/unistd.in.h (_gl_directory_name): New prototype.
36958         * lib/fchdir.c (_gl_directory_name): Implement it.
36959         (fchdir): Use it to simplify implementation.
36960         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36961         fchdir, when available, to avoid calling [f]chdir().
36962
36963         fdopendir: split into its own module
36964         * lib/openat.c (fdopendir): Move...
36965         * lib/fdopendir.c: ...into new file.
36966         * modules/fdopendir: New module.
36967         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36968         * modules/openat (Depends-on): Add fdopendir.
36969         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36970         fdopendir here.
36971         * modules/savedir (Depends-on): Only need fdopendir, not full
36972         openat.
36973         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36974         * lib/openat.h (fdopendir): Drop prototype.
36975         * lib/dirent.in.h (fdopendir): Provide prototype.
36976         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36977         * modules/dirent (Makefile.am): Substitute them.
36978         * MODULES.html.sh (File system functions): Mention it.
36979         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36980         * modules/fdopendir-tests: New file.
36981         * tests/test-fdopendir.c: Likewise.
36982
36983         fchdir: use more consistent macro convention
36984         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36985         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36986         REPLACE_FCHDIR, rather than relying on config.h macros.
36987         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36988         inside a single make-time REPLACE_FCHDIR block, rather than using
36989         the config.h FCHDIR_REPLACEMENT.
36990         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36991         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36992         Manage fstat replacement.
36993         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36994         REPLACE_FCHDIR.
36995         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36996         (Makefile.am): Substitute REPLACE_FCHDIR.
36997         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36998         FCHDIR_REPLACEMENT.
36999         * lib/dup-safer.c (dup_safer): Likewise.
37000         * lib/dup2.c (rpl_dup2): Likewise.
37001         * lib/dup3.c (rpl_dup3): Likewise.
37002         * lib/open.c (rpl_open): Likewise.
37003
37004         fchdir: simplify error handling, and support dup3
37005         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
37006         stdbool, malloc-posix, realloc-posix.
37007         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
37008         (ensure_dirs_slot): Return false on allocation failure.
37009         (rpl_dup2): Delete.
37010         (_gl_register_dup): New function.
37011         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
37012         (_gl_register_fd): Close fd on allocation failure.
37013         * lib/fcntl.in.h (_gl_register_fd): Update signature.
37014         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
37015         prototype.
37016         (rpl_dup2_fchdir): Delete prototype.
37017         * lib/open.c (open): Update caller.
37018         * lib/dup2.c (dup2): Track fchdir metadata.
37019         * lib/dup3.c (dup3): Likewise.
37020         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
37021         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
37022
37023 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37024
37025         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
37026         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
37027         don't pass arguments to AC_OUTPUT.
37028
37029 2009-09-02  Bruno Haible  <bruno@clisp.org>
37030
37031         * modules/mkdtemp (License): Relicense under LGPLv2+.
37032         Reported by Paolo Bonzini.
37033
37034 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37035
37036         Replace uses of obsolete autoconf macros in Jim's modules.
37037         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
37038         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
37039         can evoke a warning from autoconf when run with -Wobsolete
37040         enabled.  They were declared obsolete for good reasons (see
37041         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
37042         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
37043         should not continue using the deprecated macros.
37044         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
37045         obsolete Autoconf macros with modern counterparts.
37046         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37047         * m4/dos.m4 (gl_AC_DOS): Likewise.
37048         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
37049         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37050         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
37051         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
37052         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
37053         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
37054         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
37055         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
37056         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37057         Likewise.
37058         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37059         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37060         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
37061         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
37062         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37063         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37064
37065 2009-09-01  Eric Blake  <ebb9@byu.net>
37066
37067         fchdir: fix off-by-one bug in previous patch
37068         * lib/fchdir.c (rpl_fstat): Use correct bounds.
37069         (_gl_unregister_fd): Delete useless if.
37070
37071 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
37072
37073         maint.mk: sort the list of syntax-check rules
37074         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
37075         easier to get a sense of progress when the rules are run sequentially
37076         and take a long time.
37077
37078 2009-09-01  Simon Josefsson  <simon@josefsson.org>
37079
37080         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
37081         * modules/netinet_in: Likewise.
37082         * modules/sys_file: Likewise.
37083         * modules/sys_ioctl: Likewise.
37084         * modules/sys_select: Likewise.
37085         * modules/sys_socket: Likewise.
37086         * modules/sys_stat: Likewise.
37087         * modules/sys_time: Likewise.
37088         * modules/sys_times: Likewise.
37089         * modules/sys_utsname: Likewise.
37090         * modules/sys_wait: Likewise.
37091
37092 2009-09-01  Jim Meyering  <meyering@redhat.com>
37093
37094         fts: help ensure that return values are not ignored
37095         * lib/fts_.h (__GNUC_PREREQ): Define.
37096         (__attribute_warn_unused_result__): Define.
37097         (fts_children, fts_close, fts_open, fts_read): Declare with
37098         __attribute_warn_unused_result__.
37099
37100         fts: fts_close now fails also when closing a dir file descriptor fails
37101         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
37102         and propagate to caller, along with errno.
37103
37104         announce-gen: correct formatting in --help output
37105         * build-aux/announce-gen (usage): Move the one-line description in
37106         --help output "up", to where it belongs, just after Usage:.
37107
37108 2009-08-31  Eric Blake  <ebb9@byu.net>
37109
37110         fchdir: port to mingw
37111         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
37112         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
37113         opened, then use a substitute.
37114         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
37115         replacement.
37116         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
37117         (_gl_register_fd): No need to check stat if open already filters
37118         all directories.
37119         (fchdir): Fix error condition to match POSIX.
37120         * modules/fchdir (Depends-on): Add sys_stat.
37121         * doc/posix-functions/open.texi (open): Document the limitation.
37122         * modules/fchdir-tests: New file.
37123         * tests/test-fchdir.c: Likewise.
37124
37125         canonicalize: allow cross-testing from cygwin to mingw
37126         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
37127         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
37128         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
37129         Likewise.
37130         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
37131         target does not support symlinks.
37132         * tests/test-canonicalize-lgpl.sh: Likewise.
37133
37134         chown: avoid compilation warning on mingw
37135         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
37136         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
37137         mingw.
37138         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37139         * modules/chown (Depends-on): Add errno.
37140
37141 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
37142
37143         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
37144         command.
37145
37146 2009-08-31  Jim Meyering  <meyering@redhat.com>
37147
37148         canonicalize: remove useless initialization
37149         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
37150         initialization of local, "end".
37151
37152 2009-08-30  Bruno Haible  <bruno@clisp.org>
37153
37154         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
37155         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
37156         ENOSYS.
37157
37158 2009-08-30  Bruno Haible  <bruno@clisp.org>
37159
37160         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
37161         /usr/xpg4/bin/tr when it exists.
37162         * tests/test-pipe-filter-gi1.sh: Likewise.
37163
37164 2009-08-30  Bruno Haible  <bruno@clisp.org>
37165
37166         Work around deficient /usr/bin/id program on Solaris.
37167         * tests/test-file-has-acl.sh (ID): New variable.
37168         * tests/test-set-mode-acl.sh (ID): Likewise.
37169         * tests/test-copy-acl.sh (ID): Likewise.
37170         * tests/test-copy-file.sh (ID): Likewise.
37171
37172 2009-08-30  Bruno Haible  <bruno@clisp.org>
37173
37174         New module 'xstriconveh'.
37175         * lib/xstriconveh.h: New file.
37176         * lib/xstriconveh.c: New file.
37177         * modules/xstriconveh: New file.
37178
37179 2009-08-30  Bruno Haible  <bruno@clisp.org>
37180
37181         Make it easier to use mem_cd_iconveh.
37182         * lib/striconveh.h (iconveh_t): New type.
37183         (iconveh_open, iconveh_close): New declarations.
37184         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37185         with a single 'const iconveh_t *' argument.
37186         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
37187         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37188         with a single 'const iconveh_t *' argument.
37189         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
37190         * tests/test-striconveh.c (main): Update.
37191         * NEWS: Mention the change.
37192
37193 2009-08-30  Bruno Haible  <bruno@clisp.org>
37194
37195         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
37196         problem.
37197
37198 2009-08-30  Bruno Haible  <bruno@clisp.org>
37199
37200         Work around iconv_open problem on Solaris.
37201         * lib/iconv_open-solaris.gperf: New file.
37202         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
37203         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
37204         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
37205         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
37206         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
37207         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
37208
37209 2009-08-29  Jim Meyering  <meyering@redhat.com>
37210
37211         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
37212         * top/maint.mk (cvs-check): Remove target; it was just an alias
37213         to the better-named vc-diff-check.
37214         (maintainer-distcheck): Remove rule.  It was used only from
37215         the (alpha/beta/major) target, and all of its commands but one
37216         were coreutils-specific.
37217         (vc-dist): Remove rule.
37218         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
37219         Run vc-diff-check, not vc-dist.
37220         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
37221
37222 2009-08-27  Bruno Haible  <bruno@clisp.org>
37223
37224         * tests/test-bitrotate.c (main): Remove test that uses a shift count
37225         of 0.
37226
37227 2009-08-27  Bruno Haible  <bruno@clisp.org>
37228
37229         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
37230         compilers.
37231         * doc/func.texi: Document the SunPRO C bug.
37232
37233 2009-08-27  Bruno Haible  <bruno@clisp.org>
37234
37235         Fix link error on Solaris.
37236         * tests/test-parse-duration.c (xstrdup): Remove function.
37237
37238 2009-08-26  Pádraig Brady  <P@draigbrady.com>
37239
37240         ignore-value: handle pointer types, too
37241         * lib/ignore-value.h (__attribute__): Remove definition.
37242         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
37243         of a more concise and more-often effective "(void) i" statement.
37244         (ignore_ptr): New function to suppress warnings from functions that
37245         return pointers, and to make it explicit that one function doesn't
37246         handle all cases.
37247
37248 2009-08-25  Bruno Haible  <bruno@clisp.org>
37249
37250         dup2: work around a Linux bug.
37251         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
37252         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
37253         * doc/posix-functions/dup2.texi: Mention the Linux bug.
37254         Reported by Simon Josefsson.
37255
37256 2009-08-25  Jim Meyering  <meyering@redhat.com>
37257
37258         libguestfs uses gnulib
37259         * users.txt: Add libguestfs.
37260
37261 2009-08-24  Eric Blake  <ebb9@byu.net>
37262
37263         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
37264         * lib/pipe2.c (includes): Add binary-io.h.
37265         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
37266
37267 2009-08-24  Bruno Haible  <bruno@clisp.org>
37268
37269         Tolerate declared but missing accept4 syscall.
37270         * lib/accept4.c (accept4): Invoke original accept4 function first, if
37271         available.
37272         * lib/sys_socket.in.h (accept4): If the function is already present,
37273         override it.
37274         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
37275         * modules/accept4 (Makefile.am): Compile accept4.c always.
37276         Reported by Paolo Bonzini and Eric Blake.
37277
37278 2009-08-23  Bruno Haible  <bruno@clisp.org>
37279
37280         New module 'accept4'.
37281         * lib/sys_socket.in.h (accept4): New declaration.
37282         * lib/accept4.c: New file.
37283         * m4/accept4.m4: New file.
37284         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37285         GNULIB_ACCEPT4, HAVE_ACCEPT4.
37286         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
37287         HAVE_ACCEPT4.
37288         * modules/accept4: New file.
37289         * doc/glibc-functions/accept4.texi: Mention the new module.
37290
37291 2009-08-24  Jim Meyering  <meyering@redhat.com>
37292
37293         progname: also set global program_invocation_name, when possible
37294         Before this change, a libtool-enabled program that calls glibc's
37295         error function would report the program name as
37296         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
37297         * modules/progname (configure.ac): Check for a declaration of
37298         program_invocation_name.
37299         * lib/progname.c:  Include <errno.h>.
37300         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
37301         Set program_invocation_name.
37302
37303 2009-08-23  Bruno Haible  <bruno@clisp.org>
37304
37305         * lib/dup3.c: Include <string.h>.
37306
37307 2009-08-23  Bruno Haible  <bruno@clisp.org>
37308
37309         * lib/dup3.c (dup3): Test only once whether the system actually exists.
37310         * lib/pipe2.c (pipe2): Likewise.
37311         Suggested by Eric Blake.
37312
37313 2009-08-23  Bruno Haible  <bruno@clisp.org>
37314
37315         Tolerate declared but missing dup3 syscall.
37316         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
37317         * lib/unistd.in.h (dup3): If the function is already present,
37318         override it.
37319         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
37320         * modules/dup3 (Makefile.am): Compile dup3.c always.
37321         Reported by Paolo Bonzini.
37322
37323 2009-08-23  Bruno Haible  <bruno@clisp.org>
37324
37325         Tolerate declared but missing pipe2 syscall.
37326         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
37327         available.
37328         * lib/unistd.in.h (pipe2): If the function is already present,
37329         override it.
37330         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
37331         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
37332         Reported by Paolo Bonzini.
37333
37334 2009-08-23  Bruno Haible  <bruno@clisp.org>
37335
37336         * lib/pipe2.c (pipe2): Move #ifs inside function.
37337
37338 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37339
37340         quotearg: document limitations of quote_these_too
37341         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
37342         those limitations are created.
37343         * lib/quotearg.h (set_char_quoting): Document that digits and
37344         letters that are special after backslash are not permitted.
37345         (quotearg_char): Cross-reference set_char_quoting documentation.
37346
37347 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
37348
37349         quotearg: implement custom_quoting_style
37350         * lib/quotearg.c: (struct quoting_options): Add left_quote and
37351         right_quote fields.
37352         (set_custom_quoting): New public function.
37353         (quotearg_buffer_restyled): Add left_quote and right_quote
37354         arguments, handle them very much like locale quoting, and update
37355         all uses.
37356         (quotearg_n_custom): New public function.
37357         (quotearg_n_custom_mem): New public function.
37358         (quotearg_custom): New public function.
37359         (quotearg_custom_mem): New public function.
37360         * lib/quotearg.h: Prototype and document new public functions.
37361         (enum quoting_style): For escape_quoting_style and
37362         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
37363         ignored even though they're otherwise like c_quoting_style.
37364         Add custom_quoting_style member and document with comparison to
37365         clocale_quoting_style.
37366         * tests/test-quotearg.c (custom_quotes): New array.
37367         (custom_results): New array.
37368         (main): Extend to test custom quoting.
37369
37370 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37371
37372         quotearg: fix right quote escaping when it's in quote_these_too
37373         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
37374         quote, be sure to prepend only one backslash.
37375         * tests/test-quotearg.c (use_quote_double_quotes): New function.
37376         (main): Test it.
37377
37378 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37379
37380         quotearg-tests: test escaping of embedded locale quotes
37381         * tests/test-quotearg.c (struct result_strings): Add member for
37382         new input.
37383         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
37384         (inputs): Add new input.
37385         (results_g): Add expected results.
37386         (flag_results): Likewise.
37387         (locale_results): Likewise.
37388         (compare_strings): Check those.
37389
37390 2009-08-23  Bruno Haible  <bruno@clisp.org>
37391
37392         Tests for module 'dup3'.
37393         * modules/dup3-tests: New file.
37394         * tests/test-dup3.c: New file.
37395
37396         New module 'dup3'.
37397         * lib/unistd.in.h (dup3): New declaration.
37398         * lib/dup3.c: New file.
37399         * m4/dup3.m4: New file.
37400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
37401         HAVE_DUP3.
37402         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
37403         * modules/dup3: New file.
37404         * doc/glibc-functions/dup3.texi: Mention the new module.
37405
37406 2009-08-23  Bruno Haible  <bruno@clisp.org>
37407
37408         Tweak the dup2 test.
37409         * tests/test-dup2.c (main): Create the test file empty. Verify that an
37410         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
37411         the test file is still empty. Fix argument order of lseek.
37412
37413 2009-08-23  Bruno Haible  <bruno@clisp.org>
37414
37415         Avoid test link errors when the modules getopt-gnu, gettext are used.
37416         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
37417         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37418
37419 2009-08-23  Bruno Haible  <bruno@clisp.org>
37420
37421         Fix getdtablesize() on mingw.
37422         * lib/getdtablesize.c (getdtablesize): Implement differently.
37423         * lib/unistd.in.h (getdtablesize): Improve comment.
37424
37425 2009-08-23  Bruno Haible  <bruno@clisp.org>
37426
37427         New module 'mkostemp'.
37428         Based on Ulrich Drepper's 2007-08-10 change in glibc.
37429         * lib/stdlib.in.h (mksotemp): New declaration.
37430         * lib/mkostemp.c: New file, from glibc with modifications.
37431         * lib/tempname.h (GT_FILE): Remove outdated comment.
37432         (gen_tempname): Add flags argument.
37433         * lib/tempname.c (__GT_BIGFILE): Remove macro.
37434         (__GT_FILE): Map to 1.
37435         (small_open, large_open): Remove macros.
37436         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
37437         * lib/mkstemp.c (mkstemp): Update.
37438         * lib/mkdtemp.c (mkdtemp): Likewise.
37439         * m4/mkostemp.m4: New file.
37440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
37441         HAVE_MKOSTEMP.
37442         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
37443         HAVE_MKOSTEMP.
37444         * modules/mkostemp: New file, based on modules/mkstemp.
37445         * doc/glibc-functions/mkostemp.texi: Mention the new module.
37446         * NEWS: Mention the change.
37447
37448 2009-08-23  Bruno Haible  <bruno@clisp.org>
37449
37450         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
37451         Reported by Eric Blake.
37452
37453 2009-08-23  Bruno Haible  <bruno@clisp.org>
37454
37455         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
37456         Reported by Eric Blake.
37457
37458 2009-08-23  Bruno Haible  <bruno@clisp.org>
37459
37460         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
37461         * modules/pipe2 (Depends-on): Likewise.
37462
37463 2009-08-23  Eric Blake  <ebb9@byu.net>
37464
37465         fcntl-h: add O_TTY_INIT support
37466         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
37467         * tests/test-fcntl-h.c (o): Test it.
37468         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37469
37470         fcntl-h: rename from fcntl, in preparation for fcntl(2)
37471         * modules/fcntl: Move <fcntl.h> header replacement...
37472         * modules/fcntl-h: ...to new name, so as not to collide with
37473         like-named function.
37474         * tests/test-fcntl.c: Rename...
37475         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
37476         * modules/fcntl-tests: Rename...
37477         * modules/fcntl-h-tests: ...to this.  Update test file name.
37478         * modules/chdir-long (Depends-on): Update clients.
37479         * modules/chdir-safer (Depends-on): Likewise.
37480         * modules/fcntl-safer (Depends-on): Likewise.
37481         * modules/fts (Depends-on): Likewise.
37482         * modules/mkancesdirs (Depends-on): Likewise.
37483         * modules/mkdir-p (Depends-on): Likewise.
37484         * modules/open (Depends-on): Likewise.
37485         * modules/savewd (Depends-on): Likewise.
37486         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
37487         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37488
37489 2009-08-22  Bruno Haible  <bruno@clisp.org>
37490
37491         * modules/binary-io (License): Relicense under LGPL.
37492         * modules/pipe2 (License): Likewise.
37493
37494 2009-08-22  Bruno Haible  <bruno@clisp.org>
37495
37496         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
37497         return value.
37498         * lib/pipe-filter-gi.c (filter_init): Likewise.
37499         Reported by Eric Blake.
37500
37501 2009-08-22  Bruno Haible  <bruno@clisp.org>
37502
37503         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
37504         * modules/pipe (Depends-on): Add pipe2.
37505
37506 2009-08-22  Bruno Haible  <bruno@clisp.org>
37507
37508         Tests for module 'pipe2'.
37509         * modules/pipe2-tests: New file.
37510         * tests/test-pipe2.c: New file.
37511
37512         New module 'pipe2'.
37513         * lib/unistd.in.h (pipe2): New declaration.
37514         * lib/pipe2.c: New file.
37515         * m4/pipe2.m4: New file.
37516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
37517         HAVE_PIPE2.
37518         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
37519         * modules/pipe2: New file.
37520         * doc/glibc-functions/pipe2.texi: Mention the new module.
37521
37522 2009-08-22  Bruno Haible  <bruno@clisp.org>
37523
37524         Reference some new glibc functions.
37525         * doc/glibc-functions/accept4.texi: New file.
37526         * doc/glibc-functions/dup3.texi: New file.
37527         * doc/glibc-functions/mkostemp.texi: New file.
37528         * doc/glibc-functions/pipe2.texi: New file.
37529         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
37530         (Glibc sys/socket.h): Refer to accept4.
37531         (Glibc unistd.h): Refer to dup3, pipe2.
37532         Reported by Eric Blake.
37533
37534 2009-08-22  Jim Meyering  <meyering@redhat.com>
37535             Bruno Haible  <bruno@clisp.org>
37536
37537         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
37538         This makes it so packages using automake-1.11's silent-rules option
37539         can print e.g., a single "GEN    configmake.h" line, rather than
37540         the 30+ statements that perform the job.  If you want to see the
37541         actual commands, you can still run "make V=1".
37542         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
37543         so that make output is abbreviated when those variables are defined
37544         appropriately.
37545         * modules/argz: Likewise.
37546         * modules/arpa_inet: Likewise.
37547         * modules/byteswap: Likewise.
37548         * modules/configmake: Likewise.
37549         * modules/dirent: Likewise.
37550         * modules/errno: Likewise.
37551         * modules/fcntl: Likewise.
37552         * modules/float: Likewise.
37553         * modules/fnmatch: Likewise.
37554         * modules/getopt-posix: Likewise.
37555         * modules/glob: Likewise.
37556         * modules/iconv_open: Likewise.
37557         * modules/inttypes: Likewise.
37558         * modules/localcharset: Likewise.
37559         * modules/locale: Likewise.
37560         * modules/math: Likewise.
37561         * modules/netdb: Likewise.
37562         * modules/netinet_in: Likewise.
37563         * modules/poll: Likewise.
37564         * modules/posix_spawnp-tests: Likewise.
37565         * modules/sched: Likewise.
37566         * modules/search: Likewise.
37567         * modules/selinux-h: Likewise.
37568         * modules/signal: Likewise.
37569         * modules/spawn: Likewise.
37570         * modules/stdarg: Likewise.
37571         * modules/stdbool: Likewise.
37572         * modules/stddef: Likewise.
37573         * modules/stdint: Likewise.
37574         * modules/stdio: Likewise.
37575         * modules/stdlib: Likewise.
37576         * modules/string: Likewise.
37577         * modules/strings: Likewise.
37578         * modules/sys_file: Likewise.
37579         * modules/sys_ioctl: Likewise.
37580         * modules/sys_select: Likewise.
37581         * modules/sys_socket: Likewise.
37582         * modules/sys_stat: Likewise.
37583         * modules/sys_time: Likewise.
37584         * modules/sys_times: Likewise.
37585         * modules/sys_utsname: Likewise.
37586         * modules/sys_wait: Likewise.
37587         * modules/sysexits: Likewise.
37588         * modules/time: Likewise.
37589         * modules/unistd: Likewise.
37590         * modules/wchar: Likewise.
37591         * modules/wctype: Likewise.
37592
37593 2009-08-22  Jim Meyering  <meyering@redhat.com>
37594
37595         announce-gen: detect write failure
37596         * build-aux/announce-gen: Add Coda at end.
37597         Remove equivalent-but-more-verbose block at top.
37598
37599 2009-08-19  Akim Demaille  <demaille@gostai.com>
37600
37601         bootstrap: --help to stdout.
37602         * bootstrap (usage): Don't send --help to stderr.
37603         Use a here doc instead of a long string.
37604
37605 2009-08-21  Eric Blake  <ebb9@byu.net>
37606
37607         test-popen-safer: split from test-popen
37608         * tests/test-popen.c (main): Move...
37609         * tests/test-popen.h: ...into new file.
37610         * tests/test-popen-safer2.c: New file.
37611         * modules/popen-tests (Files): Add test-popen.h.
37612         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
37613         Suggested by Bruno Haible.
37614
37615         test-fcntl-safer: split from test-open
37616         * tests/test-open.c (main): Move...
37617         * tests/test-open.h: ...into new file.
37618         * tests/test-fcntl-safer.c: New file.
37619         * modules/open-tests (Files): Add test-open.h.
37620         * modules/fcntl-safer-tests: New file.
37621         Suggested by Bruno Haible.
37622
37623         test-fopen-safer: split from test-fopen
37624         * tests/test-fopen.c (main): Move...
37625         * tests/test-fopen.h: ...into new file.
37626         * tests/test-fopen-safer.c: New file.
37627         * modules/fopen-tests (Files): Add test-fopen.h.
37628         * modules/fopen-safer-tests: New file.
37629         Suggested by Bruno Haible.
37630
37631 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37632
37633         popen-safer: test O_CLOEXEC at run-time.
37634         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
37635
37636 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37637
37638         fcntl: move more flags to the header
37639         * lib/cloexec.c: Do not define FD_CLOEXEC here.
37640         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
37641         * lib/fcntl.in.h: Do both things here.
37642
37643 2009-08-21  Jim Meyering  <meyering@redhat.com>
37644
37645         consistently remove $@-t before redirecting to it
37646         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37647         * modules/alloca-opt: Likewise.
37648         * modules/byteswap: Likewise.
37649         * modules/fnmatch: Likewise.
37650         * modules/getopt-posix: Likewise.
37651         * modules/glob: Likewise.
37652         * modules/poll: Likewise.
37653         * modules/posix_spawnp-tests: Likewise.
37654         * modules/sys_socket: Likewise.
37655         * modules/sysexits: Likewise.
37656
37657 2009-08-21  Eric Blake  <ebb9@byu.net>
37658
37659         popen: simplify access to original popen
37660         * lib/popen.c (rpl_popen): No need to worry about popen being a
37661         macro.
37662         Reported by Bruno Haible.
37663
37664 2009-08-20  Eric Blake  <ebb9@byu.net>
37665
37666         build: avoid some compiler warnings
37667         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37668         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37669         type.
37670         (new_exclude_segment, excluded_file_pattern_p)
37671         (excluded_file_name_p): Reduce scope.
37672         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37673         old-style declaration.
37674
37675 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37676
37677         * tests/test-exclude1.sh: Handle Windows EOL.
37678         * tests/test-exclude2.sh: Likewise.
37679         * tests/test-exclude3.sh: Likewise.
37680         * tests/test-exclude4.sh: Likewise.
37681         * tests/test-exclude5.sh: Likewise.
37682         * tests/test-exclude6.sh: Likewise.
37683         * tests/test-exclude7.sh: Likewise.
37684
37685 2009-08-19  Akim Demaille  <demaille@gostai.com>
37686
37687         bootstrap: find sha1sum when named gsha1sum.
37688         * bootstrap (find_tool): New.
37689         ($SHA1SUM): New.
37690         Use it.
37691
37692 2009-08-20  Jim Meyering  <meyering@redhat.com>
37693
37694         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
37695         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
37696         expression that converts "." in a file name to "\." in the resulting
37697         regexp.  Start with a dummy statement, so that prior shell variable
37698         definitions are expanded portably.  Reported by Simon Josefsson.
37699
37700 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
37701
37702         Fix polling for writeability of a screen buffer.
37703         * lib/poll.c: Distinguish input and screen buffers for the
37704         Win32 implementation.
37705         * lib/select.c: Likewise.
37706
37707 2009-08-19  Eric Blake  <ebb9@byu.net>
37708
37709         popen-safer: prevent popen from clobbering std descriptors
37710         * modules/popen-safer: New file.
37711         * lib/popen-safer.c: Likewise.
37712         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37713         * lib/stdio--.h (popen): Provide override.
37714         * lib/stdio-safer.h (popen_safer): Provide declaration.
37715         * tests/test-popen.c (includes): Partially test this.
37716         * modules/popen-safer-tests: New file, for more tests.
37717         * tests/test-popen-safer.c: Likewise.
37718         * MODULES.html.sh (file stream based Input/Output): Mention it.
37719
37720         tests: test some of the *-safer modules
37721         * modules/fopen-safer (Depends-on): Add fopen.
37722         * modules/fcntl-safer (Depends-on): Add fcntl.
37723         * modules/stdlib-safer (Depends-on): Add stdlib.
37724         (configure.ac): Set indicator.
37725         * modules/unistd-safer (configure.ac): Likewise.
37726         * modules/tmpfile-safer (configure.ac): Likewise.
37727         (Depends-on): Add tmpfile.
37728         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37729         active.
37730         * tests/test-fopen.c (includes): Test safer versions when they are
37731         in use.
37732         * tests/test-open.c (includes): Likewise.
37733
37734         popen: fix cygwin 1.5 bug when stdin closed
37735         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
37736         * modules/popen: New file.
37737         * modules/popen-tests: Likewise.
37738         * tests/test-popen.c: Likewise.
37739         * m4/popen.m4: Likewise.
37740         * lib/popen.c: Likewise.
37741         * lib/stdio.in.h (popen): New declaration.
37742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
37743         * modules/stdio (Makefile.am): Likewise.
37744         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
37745
37746 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
37747
37748         maint.mk: give full control over update-copyright exclusions
37749         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
37750         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
37751         (update-copyright): Don't force inclusion of top-level
37752         ChangeLog.  Don't force exclusion of all COPYING files, but make
37753         them the default exclusion instead.
37754
37755 2009-08-16  Bruno Haible  <bruno@clisp.org>
37756
37757         Fix test failures on Solaris 10.
37758         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37759         tests when Solaris iconv() is used.
37760         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37761         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37762         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37763         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37764         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37765
37766 2009-08-16  Bruno Haible  <bruno@clisp.org>
37767
37768         Fix test failures on Solaris 10.
37769         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37770         'tr' program and pass it as first argument.
37771         * tests/test-pipe-filter-gi1.sh: Likewise.
37772         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37773         program as first argument.
37774         * tests/test-pipe-filter-gi1.c (main): Likewise.
37775
37776 2009-08-16  Eric Blake  <ebb9@byu.net>
37777
37778         fpurge: fix previous commits
37779         * modules/fpurge (Makefile.am): Make replacement conditional,
37780         partially reverting 2007-04-29 change; missed in previous
37781         attempt.
37782         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37783         is missing.
37784
37785 2009-08-16  Bruno Haible  <bruno@clisp.org>
37786
37787         Clarify fpurge's effect on the file position.
37788         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37789         * tests/test-fpurge.c (main): Make a second pass for checking the file
37790         position.
37791
37792 2009-08-16  Bruno Haible  <bruno@clisp.org>
37793
37794         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
37795         declaration of fpurge is missing.
37796         * tests/test-fpurge.c (main): Check that the file has not more contents
37797         than expected. Close the file before removing it.
37798
37799 2009-08-15  Eric Blake  <ebb9@byu.net>
37800
37801         fpurge: don't wrap working cygwin implementation
37802         * lib/fpurge.c (fpurge): Fix comment typo.
37803         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
37804         1.7 to avoid replacement.
37805         * tests/test-fpurge.c (main): Enhance test.
37806
37807 2009-08-15  Eric Blake  <ebb9@byu.net>
37808         and Jim Meyering  <meyering@redhat.com>
37809
37810         test-update-copyright: skip if perl is insufficient
37811         * tests/test-update-copyright.sh: Failure to run maintainer tool
37812         should not cause testsuite failure on cygwin 1.5.
37813
37814 2009-08-14  Eric Blake  <ebb9@byu.net>
37815
37816         doc: mention more functions added in cygwin 1.7.0
37817         * doc/posix-headers/limits.texi (limits.h): Update for recent
37818         cygwin additions.
37819         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37820         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37821         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37822         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37823         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37824
37825 2009-08-14  Eric Blake  <ebb9@byu.net>
37826
37827         maint.mk: simplify update-copyright rule
37828         * top/maint.mk (update-copyright-local): Delete, and document how
37829         to do it in cfg.mk instead.
37830         (update-copyright-exclude-regexp): Delete, and document how to do
37831         it in .x-update-copyright instead.
37832         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37833         exclude ChangeLog.
37834
37835 2009-08-14  Bruno Haible  <bruno@clisp.org>
37836
37837         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37838
37839 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37840
37841         maint.mk: support update-copyright-env
37842         * top/maint.mk (update-copyright-env): Define place-holder.
37843         (update-copyright): Expand $(update-copyright-env) before
37844         invoking update-copyright.
37845
37846 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37847
37848         update-copyright: implement forced reformatting
37849         * build-aux/update-copyright: Implement and document
37850         UPDATE_COPYRIGHT_FORCE.
37851         * tests/test-update-copyright.sh: Test it.
37852
37853 2009-08-14  Eric Blake  <ebb9@byu.net>
37854         and Bruno Haible  <bruno@clisp.org>
37855
37856         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37857         * tests/test-locale.c: Revert previous patch related to NULL.
37858         * tests/test-stdio.c: Likewise.
37859         * tests/test-stdlib.c: Likewise.
37860         * tests/test-string.c: Likewise.
37861         * tests/test-unistd.c: Likewise.
37862         * modules/time-tests (Depends-on): Add verify.
37863         * modules/wchar-tests (Depends-on): Likewise.
37864         * tests/test-time.c: Test for NULL compliance.
37865         * tests/test-wchar.c: Likewise.
37866         * modules/locale (Depends-on): Add stddef.
37867         * modules/stdio (Depends-on): Likewise.
37868         * modules/stdlib (Depends-on): Likewise.
37869         * modules/string (Depends-on): Likewise.
37870         * modules/time (Depends-on): Likewise.
37871         * modules/unistd (Depends-on): Likewise.
37872         * modules/wchar (Depends-on): Likewise.
37873         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37874         * lib/stdlib.in.h (includes): Likewise.
37875         * lib/string.in.h (includes): Likewise.
37876         * lib/time.in.h (includes): Likewise.
37877         * lib/unistd.in.h (includes): Likewise.
37878         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37879         replaced.
37880         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37881         * m4/stddef_h.m4: New file.
37882         * modules/stddef: Likewise.
37883         * lib/stddef.in.h: Likewise.
37884         * modules/stddef-tests: Likewise.
37885         * tests/test-stddef.c: Likewise.
37886         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37887         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37888         * doc/posix-headers/locale.texi (locale.h): Likewise.
37889         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37890         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37891         * doc/posix-headers/string.texi (string.h): Likewise.
37892         * doc/posix-headers/time.texi (time.h): Likewise.
37893         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37894         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37895
37896 2009-08-14  Eric Blake  <ebb9@byu.net>
37897
37898         doc: improve git diff of texinfo files
37899         * .gitattributes: Add rule for *.texi files, with hint on how to
37900         use it.
37901         Copied from m4, and based on a report by Bruno Haible.
37902
37903 2009-08-14  Bruno Haible  <bruno@clisp.org>
37904
37905         Disable multithread support by default on Cygwin 1.5.x for real.
37906         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37907
37908 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37909
37910         update-copyright: much ado about intervals
37911         * build-aux/update-copyright: Implement and document
37912         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37913         of copyright year intervals.
37914         Also, document UPDATE_COPYRIGHT_YEAR.
37915         * tests/test-update-copyright.sh: Test it.
37916
37917         update-copyright: convert 2-digit to 4-digit years
37918         * build-aux/update-copyright: Implement and document.
37919         * tests/test-update-copyright.sh: Update.
37920
37921 2009-08-14  Jim Meyering  <meyering@redhat.com>
37922
37923         test-exclude: avoid coreutils "make check" failure
37924         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37925         just as in test-argmatch.c.
37926
37927 2009-08-13  Eric Blake  <ebb9@byu.net>
37928
37929         test-dup2: fix bad assumption
37930         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37931         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37932
37933         test-version-etc: fix CRLF portability issue
37934         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37935         recognize \r.
37936         * tests/test-argp-version-etc-1.sh: Likewise.
37937
37938         getopt: update client modules
37939         * modules/argp (Depends-on): Use getopt-gnu.
37940         * modules/git-merge-changelog (Depends-on): Likewise.
37941         * modules/long-options (Depends-on): Likewise.
37942         * modules/xstrtol (Depends-on): Likewise.
37943
37944 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37945
37946         * tests/test-version-etc.sh: Don't fail on different
37947         project/version.  Don't fail on CRLF differences.  Rewrite to use
37948         multiple -e instead of multiple sed forks, suggested by Eric Blake
37949         <ebb9@byu.net>.
37950         * tests/test-argp-version-etc-1.sh: Likewise.
37951
37952 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37953
37954         * tests/test-version-etc.sh: Don't fail on different
37955         project/version.
37956
37957 2009-08-12  Bruno Haible  <bruno@clisp.org>
37958
37959         Tests for modules 'getopt-posix', 'getopt-gnu'.
37960         * modules/getopt-posix-tests: New file.
37961         * tests/test-getopt.c: New file.
37962         * tests/test-getopt.h: New file.
37963         * tests/test-getopt_long.h: New file.
37964
37965         New modules 'getopt-posix', 'getopt-gnu'.
37966         * modules/getopt-gnu: New file, renamed from modules/getopt.
37967         * modules/getopt-posix: New file.
37968         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37969         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37970         (gl_GETOPT): Remove macro.
37971         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37972         Disable the test against BSD systems that declare optreset. Test
37973         against mingw bug. Test against lack of support of optional arguments
37974         on many platforms.
37975         * doc/glibc-headers/getopt.texi: Update module name and list of
37976         relevant platforms.
37977         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37978         'getopt-gnu' and more portability problems.
37979         * NEWS: Mention the changes.
37980
37981 2009-08-12  Bruno Haible  <bruno@clisp.org>
37982
37983         Ensure that optarg etc. get declared by <unistd.h>.
37984         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37985         AC_USE_SYSTEM_EXTENSIONS.
37986         * modules/getopt (Depends-on): Add 'extensions'.
37987
37988 2009-08-12  Bruno Haible  <bruno@clisp.org>
37989
37990         Avoid test link errors.
37991         * modules/pipe-filter-ii-tests (Makefile.am): Define
37992         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37993         * modules/pipe-filter-gi-tests (Makefile.am): Define
37994         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37995         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37996
37997 2009-08-12  Bruno Haible  <bruno@clisp.org>
37998
37999         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
38000         gl_GETOPT_SUBSTITUTE before.
38001         (gl_GETOPT): Use it.
38002         * m4/argp.m4 (gl_ARGP): Update.
38003         Reported by Sergey Poznyakoff.
38004
38005         * m4/getopt.m4: Reorder macros.
38006         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
38007         (gl_GETOPT_SUBSTITUTE): Remove macro.
38008
38009 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38010
38011         Minor improvement in gitlog-to-changelog
38012
38013         * build-aux/gitlog-to-changelog: New option `--format' makes
38014         output format string configurable.
38015
38016 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38017
38018         Optimize exclude: use hash tables for non-wildcard patterns.
38019
38020         * lib/exclude.c: Include hash.h and mbuiter.h
38021         (struct exclude_pattern, exclude_segment): New data types.
38022         (struct exclude): Rewrite.
38023         (fnmatch_pattern_has_wildcards): New function.
38024         (new_exclude_segment, free_exclude_segment): New functions.
38025         (excluded_file_pattern_p, excluded_file_name_p): New functions.
38026         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
38027         * lib/exclude.h (is_fnmatch_pattern): New prototype.
38028         * modules/exclude: Depend on hash and mbuiter.
38029
38030         * modules/exclude-tests: New file.
38031         * tests/test-exclude.c: New file.
38032         * tests/test-exclude1.sh: New file.
38033         * tests/test-exclude2.sh: New file.
38034         * tests/test-exclude3.sh: New file.
38035         * tests/test-exclude4.sh: New file.
38036         * tests/test-exclude5.sh: New file.
38037         * tests/test-exclude6.sh: New file.
38038         * tests/test-exclude7.sh: New file.
38039
38040 2009-08-12  Bruno Haible  <bruno@clisp.org>
38041
38042         Ensure that getopt() gets declared by <unistd.h>.
38043         * lib/unistd.in.h: Conditionally include getopt.h.
38044         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
38045         Set GNULIB_UNISTD_H_GETOPT.
38046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38047         GNULIB_UNISTD_H_GETOPT.
38048         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
38049
38050 2009-08-12  Bruno Haible  <bruno@clisp.org>
38051
38052         Clarify logic.
38053         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
38054         gl_replace_getopt instead of GETOPT_H.
38055
38056 2009-08-12  Bruno Haible  <bruno@clisp.org>
38057
38058         * m4/getopt.m4: Add comments.
38059
38060 2009-08-12  Bruno Haible  <bruno@clisp.org>
38061
38062         Disable multithread support by default on Cygwin 1.5.x.
38063         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
38064         set gl_use_threads=no if not specified otherwise.
38065
38066 2009-08-11  Bruno Haible  <bruno@clisp.org>
38067
38068         Avoid compilation error on NetBSD 5.0.
38069         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
38070         * tests/test-stdio.c: Likewise.
38071         * tests/test-stdlib.c: Likewise.
38072         * tests/test-string.c: Likewise.
38073         * tests/test-unistd.c: Likewise.
38074         Reported by Greg Troxel <gdt@ir.bbn.com>
38075         at <https://savannah.gnu.org/support/?106973>.
38076
38077 2009-08-11  Bruno Haible  <bruno@clisp.org>
38078
38079         * modules/dup2-tests (Depends-on): Remove close.
38080
38081         Undo 2009-07-19 commit.
38082         * modules/acl-tests (Depends-on): Remove close.
38083         * modules/binary-io-tests (Depends-on): Likewise.
38084         * modules/closein-tests (Depends-on): Likewise.
38085         * modules/flock-tests (Depends-on): Likewise.
38086         * modules/fsync-tests (Depends-on): Likewise.
38087         * modules/lseek-tests (Depends-on): Likewise.
38088         * modules/pipe-tests (Depends-on): Likewise.
38089         * modules/posix_spawn-tests (Depends-on): Likewise.
38090         * modules/posix_spawnp-tests (Depends-on): Likewise.
38091         * modules/stat-time-tests (Depends-on): Likewise.
38092         * modules/yesno-tests (Depends-on): Likewise.
38093
38094 2009-08-10  Bruno Haible  <bruno@clisp.org>
38095
38096         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
38097
38098 2009-08-10  Bruno Haible  <bruno@clisp.org>
38099
38100         Fix a gcc warning.
38101         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
38102
38103 2009-08-10  Bruno Haible  <bruno@clisp.org>
38104
38105         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
38106         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
38107         not only the first time.
38108         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
38109         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
38110         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
38111         is 1, not only the the first time.
38112
38113 2009-08-10  Bruno Haible  <bruno@clisp.org>
38114
38115         Make it possible to use module 'gethostname' without module 'close'.
38116         * lib/unistd.in.h (close): Evoke a link error only if
38117         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38119         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38120         * modules/unistd (Makefile.am): Substitute
38121         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38122         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
38123         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38124         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
38125         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38126         * modules/sys_ioctl (Makefile.am): Substitute
38127         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38128         * modules/socket (configure.ac): On native Windows, set
38129         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
38130         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38131         Reported by Sam Steingold <sds@gnu.org>.
38132
38133 2009-08-10  Bruno Haible  <bruno@clisp.org>
38134
38135         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
38136         * modules/ioctl (configure.ac): Likewise.
38137
38138 2009-08-10  Bruno Haible  <bruno@clisp.org>
38139
38140         Avoid collision between gnulib wrapper and libintl wrapper.
38141         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
38142         already defined in intl/printf.c.
38143         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
38144         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
38145
38146 2009-08-09  Bruno Haible  <bruno@clisp.org>
38147
38148         Make <sys/select.h> really self-contained, also on Solaris 10.
38149         * lib/sys_select.in.h: Include <string.h>.
38150         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
38151         Solaris 10 problem.
38152         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
38153         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
38154         Reported by Jim Meyering.
38155
38156 2009-08-09  Bruno Haible  <bruno@clisp.org>
38157
38158         Avoid warnings from 'aclocal' that are due to a use of macro name
38159         AM_XGETTEXT_OPTION that is not defined in automake.
38160         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
38161         automake.
38162         * modules/error (configure.ac): Likewise.
38163         * modules/propername (configure.ac): Likewise.
38164         * modules/vasprintf (configure.ac): Likewise.
38165         * modules/verror (configure.ac): Likewise.
38166         * modules/xprintf (configure.ac): Likewise.
38167         * modules/xvasprintf (configure.ac): Likewise.
38168
38169 2009-08-08  Bruno Haible  <bruno@clisp.org>
38170
38171         Avoid compilation error in C++ mode.
38172         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
38173         Reported by Sam Steingold <sds@gnu.org>.
38174
38175 2009-08-08  Bruno Haible  <bruno@clisp.org>
38176
38177         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
38178         for the various Unix platforms.
38179         * doc/posix-headers/limits.texi: Update platforms list regarding
38180         HOST_NAME_MAX.
38181         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38182
38183 2009-08-07  Jim Meyering  <meyering@redhat.com>
38184
38185         selinux-at: fix typo in a comment
38186         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
38187         Spotted by Paolo Bonzini.
38188
38189         selinux-at: remove redundant m4 code, add documentation
38190         * modules/selinux-at (configure.ac): Remove redundant code.
38191         LIB_SELINUX is already set via the dependent module, selinux-h.
38192         (Include): Add quotes around selinux-at.h.
38193         * lib/selinux-at.h: Add documentation.
38194         Reported by Bruno Haible in
38195         http://marc.info/?l=gnulib-bug&m=124958988300749
38196
38197 2009-08-07  Bruno Haible  <bruno@clisp.org>
38198
38199         Avoid link error on MacOS X 10.3 and 10.4.
38200         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
38201         on non-ELF systems.
38202         * lib/argp-pv.c (argp_program_version): Likewise.
38203         Reported by Simon Josefsson.
38204
38205 2009-08-07  Simon Josefsson  <simon@josefsson.org>
38206
38207         * tests/test-version-etc.sh: Use $EXEEXT.
38208
38209 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
38210
38211         update-copyright: update documentation to point to maint.mk
38212         * build-aux/update-copyright: Here.
38213
38214 2009-08-06  Jim Meyering  <meyering@redhat.com>
38215
38216         maint.mk: support update-copyright-local
38217         * top/maint.mk (update-copyright-local): Define place-holder.
38218         (update-copyright): Depend on $(update-copyright-local).
38219
38220 2009-08-06  Jim Meyering  <meyering@redhat.com>
38221
38222         selinux-at: new module
38223         Initially written for coreutils, this module will soon be
38224         used by findutils, too.
38225         * MODULES.html.sh [Misc]: Add selinux-at.
38226         * lib/selinux-at.h: New file, from coreutils.
38227         * lib/selinux-at.c: Likewise.
38228         * modules/selinux-at: Likewise.
38229         (License): Change from LGPL to GPL, since it depends
38230         on the GPL'd openat module.
38231
38232         doc: update README
38233         * README: Remove references to cogito.
38234         Remove cvs-repo-updating instructions from 2007.
38235         Don't imply that CVS is better if you have limited disk space.
38236
38237 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38238
38239         update-copyright: support C-style comments
38240         * build-aux/update-copyright: Implement and document.
38241         * tests/test-update-copyright.sh: Test.
38242
38243 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38244
38245         update-copyright: support omitted "(C)"
38246         * build-aux/update-copyright: Implement and document.  Also,
38247         allow variable whitespace before "(C)".
38248         * tests/test-update-copyright.sh: Test.
38249
38250 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38251
38252         update-copyright: don't trip on non-FSF copyright statements
38253         * build-aux/update-copyright: Fix so that the first correctly
38254         formatted FSF copyright statement is recognized no matter what
38255         appears before it.  Update documentation.
38256         * tests/test-update-copyright.sh: Test that.
38257
38258 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38259
38260         update-copyright: clean up code a little
38261         * build-aux/update-copyright: Append "_re" to the name of any
38262         variable holding a regular expression.
38263         Replace "old" and "new" with "stmt" in variable names.
38264         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
38265         handled correctly.
38266         Format code more consistently.
38267
38268 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38269
38270         update-copyright-tests: improve portability
38271         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
38272         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
38273
38274 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38275
38276         update-copyright: support @copyright{} and &copy;
38277         * build-aux/update-copyright: Implement and document.
38278         * tests/test-update-copyright.sh: Test.
38279
38280 2009-08-04  Jim Meyering  <meyering@redhat.com>
38281
38282         update-copyright-tests: correctly test EOL=\r\n handling
38283         * tests/test-update-copyright.sh: Put \r at the end of some lines
38284         for the dos-eol tests.  Based on a patch by Joel E. Denny.
38285
38286         maint.mk: make update-copyright exclusion list more configurable
38287         * top/maint.mk (update-copyright): Default to excluding COPYING,
38288         but allow an override, in case someone does want to update that file.
38289
38290         maint.mk: don't update copyright date in COPYING
38291         * top/maint.mk (update-copyright): Exclude COPYING.
38292
38293         maint.mk: add a copyright-updating rule
38294         * top/maint.mk (update-copyright): New rule.
38295         Derived from coreutils/Makefile.am.
38296
38297         update-copyright: rename some variables
38298         * build-aux/update-copyright: Rename a few variables for clarity.
38299         Tweak syntax.  List Joel E. Denny as coauthor.
38300
38301 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38302
38303         update-copyright: fix bug for 2-digit last year and add tests
38304         * build-aux/update-copyright: Fix bug.
38305         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
38306         specified.
38307         * modules/update-copyright-tests: New
38308         * tests/test-update-copyright.sh: New.
38309
38310 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38311
38312         update-copyright: handle leading tabs in line prefix
38313         * build-aux/update-copyright: Count leading tabs as 8 spaces
38314         when computing margin.  This helps with the formatting of
38315         ChangeLogs, for example.
38316         Fix documentation a little.
38317
38318 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38319
38320         update-copyright: support EOL=\r\n
38321         * build-aux/update-copyright: Implement that.
38322
38323 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38324
38325         update-copyright: automatically format copyright statements
38326         * build-aux/update-copyright: Implement that.
38327         Also, be a little more predictable and safer by always failing
38328         when the full copyright format is not perfectly recognized as an
38329         unbroken whole.  Discussed at
38330         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
38331         Rewrite documentation.
38332
38333 2009-08-03  Bruno Haible  <bruno@clisp.org>
38334
38335         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
38336
38337 2009-08-02  Bruno Haible  <bruno@clisp.org>
38338
38339         Tests for module 'uname'.
38340         * modules/uname-tests: New file.
38341         * tests/test-uname.c: New file.
38342
38343         New module 'uname'.
38344         * lib/uname.c: New file.
38345         * m4/uname.m4: New file.
38346         * modules/uname: New file.
38347         * doc/posix-functions/uname.texi: Mention the new module.
38348
38349 2009-08-02  Bruno Haible  <bruno@clisp.org>
38350
38351         Tests for module 'sys_utsname'.
38352         * modules/sys_utsname-tests: New file.
38353         * tests/test-sys_utsname.c: New file.
38354
38355         New module 'sys_utsname'.
38356         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
38357         * m4/sys_utsname_h.m4: New file.
38358         * modules/sys_utsname: New file.
38359         * doc/posix-headers/sys_utsname.texi: Mention the new module.
38360
38361 2009-08-02  Bruno Haible  <bruno@clisp.org>
38362
38363         Implicitly initialize the sockets library.
38364         * lib/gethostname.c: Include sockets.h.
38365         (rpl_gethostname): Invoke gl_sockets_startup.
38366         * lib/socket.c: Include sockets.h.
38367         (rpl_socket): Invoke gl_sockets_startup.
38368         * modules/gethostname (Depends-on): Add sockets.
38369         * modules/socket (Depends-on): Likewise.
38370         * tests/test-poll.c: Don't include sockets.h.
38371         (main): Don't invoke gl_sockets_startup.
38372         * tests/test-select.c: Don't include sockets.h.
38373         (main): Don't invoke gl_sockets_startup.
38374
38375 2009-08-02  Bruno Haible  <bruno@clisp.org>
38376
38377         Allow multiple calls to gl_sockets_startup.
38378         * lib/sockets.c (initialized_sockets_version): New variable.
38379         (gl_sockets_startup): Do nothing if already called for this or a higher
38380         version.
38381         (gl_sockets_cleanup): Reset initialized_sockets_version.
38382
38383 2009-08-03  Simon Josefsson  <simon@josefsson.org>
38384
38385         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
38386         different project/version.
38387
38388 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
38389             Bruno Haible  <bruno@clisp.org>
38390
38391         Tests for module 'pipe-filter-gi'.
38392         * modules/pipe-filter-gi-tests: New file.
38393         * tests/test-pipe-filter-gi1.sh: New file.
38394         * tests/test-pipe-filter-gi1.c: New file.
38395         * tests/test-pipe-filter-gi2.sh: New file.
38396         * tests/test-pipe-filter-gi2-main.c: New file.
38397         * tests/test-pipe-filter-gi2-child.c: New file.
38398
38399         New module 'pipe-filter-gi'.
38400         * lib/pipe-filter-gi.c: New file.
38401         * modules/pipe-filter-gi: New file.
38402
38403 2009-08-02  Bruno Haible  <bruno@clisp.org>
38404             Paolo Bonzini  <bonzini@gnu.org>
38405
38406         Tests for module 'pipe-filter-ii'.
38407         * modules/pipe-filter-ii-tests: New file.
38408         * tests/test-pipe-filter-ii1.sh: New file.
38409         * tests/test-pipe-filter-ii1.c: New file.
38410         * tests/test-pipe-filter-ii2.sh: New file.
38411         * tests/test-pipe-filter-ii2-main.c: New file.
38412         * tests/test-pipe-filter-ii2-child.c: New file.
38413
38414         New module 'pipe-filter-ii'.
38415         * lib/pipe-filter.h: New file.
38416         * lib/pipe-filter-ii.c: New file.
38417         * lib/pipe-filter-aux.h: New file.
38418         * modules/pipe-filter-ii: New file.
38419
38420 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38421
38422         * lib/gc-libgcrypt.c: Change copyright to FSF.
38423         * lib/gc-gnulib.c: Likewise.
38424
38425 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
38426
38427         * lib/gethostname.c: Include limits.h.
38428
38429 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38430             Bruno Haible  <bruno@clisp.org>
38431
38432         Ensure HOST_NAME_MAX as part of the gethostname module.
38433         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
38434         define also HOST_NAME_MAX.
38435         * tests/test-gethostname.c: Include <limits.h>.
38436         (main): Check also HOST_NAME_MAX.
38437         * doc/posix-headers/limits.texi: Document the mingw problem.
38438
38439 2009-08-02  Bruno Haible  <bruno@clisp.org>
38440
38441         * lib/gethostname.c (gethostname): Fix handling of large len argument.
38442         Add comments.
38443
38444 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38445
38446         * lib/gethostname.c: Add Windows wrapper.
38447         * m4/gethostname.m4: Look for gethostname in -lws2_32.
38448         * modules/gethostname: Depend on sys_socket & errno, for also
38449         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
38450         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
38451
38452 2009-07-31  Jim Meyering  <meyering@redhat.com>
38453
38454         getloadavg: fix symbol name in comment
38455         * lib/getloadavg.c: Correct a typo I introduced when adding
38456         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
38457         Matt Kraai spotted the problem.
38458
38459 2009-07-29  Matt Kraai  <mkraai@beckman.com>
38460
38461         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
38462         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
38463         code also if ! defined N_NAME_POINTER.
38464         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
38465         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
38466         but the n_name member is a 12-byte array.
38467
38468 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
38469
38470         update-copyright: generalize comment handling
38471         * build-aux/update-copyright: Handle copyright statements
38472         within more comment styles.
38473         Document usage.
38474         Report any file with an external copyright holder or parse failure.
38475
38476 2009-07-29  Jim Meyering  <meyering@redhat.com>
38477
38478         mktime: correct setting of REPLACE_MKTIME
38479         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
38480
38481         update-copyright: new module
38482         * modules/update-copyright: New file.
38483         * build-aux/update-copyright: New file.
38484         * MODULES.html.sh (maint+release support): Add update-copyright.
38485
38486 2009-07-27  Bruno Haible  <bruno@clisp.org>
38487
38488         Fix compilation error when <ctime> is used and mktime is replaced.
38489         * lib/time.in.h (mktime): New declaration.
38490         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
38491         REPLACE_MKTIME instead of defining mktime in config.h.
38492         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
38493         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
38494         Reported by Ross McFarland <rwmcfa1@neces.com>.
38495
38496 2009-07-27  Bruno Haible  <bruno@clisp.org>
38497
38498         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
38499         Reported by Matt Kraai <mkraai@beckman.com>.
38500
38501 2009-07-25  Jim Meyering  <meyering@redhat.com>
38502
38503         maint.mk: avoid warnings about missing files
38504         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
38505         diagnostic when .prev-version does not exist.
38506         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
38507         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
38508         nonexistent cfg.mk.
38509         Suggestions from Simon Josefsson.
38510
38511 2009-07-25  Bruno Haible  <bruno@clisp.org>
38512
38513         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
38514         defined as macros. Needed on QNX 6.4.1.
38515         Reported by Matt Kraai <mkraai@beckman.com>.
38516
38517 2009-07-23  Jim Meyering  <meyering@redhat.com>
38518
38519         maint.mk: invoke "make dist" with a working value of XZ_OPT
38520         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
38521
38522 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
38523
38524         Make fseeko.c compile on QNX.
38525         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
38526
38527 2009-07-22  Peter Simons  <simons@cryp.to>
38528
38529         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
38530         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
38531         * lib/md4.h: Likewise.
38532         * lib/md5.h: Likewise.
38533         * lib/sha1.h: Likewise.
38534         * lib/sha256.h: Likewise.
38535         * lib/sha512.h: Likewise.
38536
38537         tests-sha1: don't assign literal string to 'char *' variable
38538         * tests/test-sha1.c (main): Declare locals with "const" to match
38539         attributes of the right hand side.
38540
38541 2009-07-21  Eric Blake  <ebb9@byu.net>
38542
38543         dup2: fix more mingw problems
38544         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
38545         fd to itself.
38546         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38547         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
38548         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
38549         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
38550         care of mingw bugs.
38551
38552 2009-07-21  Jim Meyering  <meyering@redhat.com>
38553
38554         vc-list-files: avoid failure when /bin/sh is dash
38555         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
38556         On some Debian based systems, /bin/sh is a symlink to dash, and running
38557         this command would omit the "/" following each 'tests' prefix:
38558           dash -x build-aux/vc-list-files -C . tests
38559         That is because bash and dash work differently:
38560           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
38561           bash ok
38562           dash odd
38563
38564 2009-07-21  Eric Blake  <ebb9@byu.net>
38565
38566         dup2-tests: test previous patch
38567         * modules/dup2-tests: New file.
38568         * tests/test-dup2.c: Likewise.
38569         * tests/test-open.c (main): Avoid unspecified behavior.
38570         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
38571         test.
38572
38573         dup2: work around mingw and cygwin 1.5 bug
38574         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
38575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38576         * modules/unistd (Makefile.am): Substitute it.
38577         * lib/unistd.in.h (dup2): Declare the replacement.
38578         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
38579         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
38580         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
38581         * modules/execute (Depends-on): Add dup2.
38582         * modules/fseterr (Depends-on): Likewise.
38583         * modules/pipe (Depends-on): Likewise.
38584         * modules/posix_spawn-internal (Depends-on): Likewise.
38585
38586 2009-07-21  Bruno Haible  <bruno@clisp.org>
38587
38588         * modules/.gitattributes: New file.
38589
38590 2009-07-20  Bruno Haible  <bruno@clisp.org>
38591
38592         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
38593         (main): Use it.
38594
38595 2009-07-20  Eric Blake  <ebb9@byu.net>
38596
38597         test-pipe: make a bit more robust.
38598         * tests/test-pipe.c (myerr): Allow error messages regardless of
38599         what we do to stderr.
38600         (test_pipe): Rearrange to avoid deadlock.
38601         (child_main): Try a larger read, to ensure we avoided deadlock.
38602         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
38603         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
38604         if misused.
38605
38606 2009-07-19  Jim Meyering  <meyering@redhat.com>
38607
38608         fts: avoid false-positive cycle-detection
38609         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
38610         for each new command line argument.
38611
38612 2009-07-19  Bruno Haible  <bruno@clisp.org>
38613
38614         Fix build error on mingw with the modules sys_select and unistd.
38615         * modules/acl-tests (Depends-on): Add close.
38616         * modules/binary-io-tests (Depends-on): Likewise.
38617         * modules/closein-tests (Depends-on): Likewise.
38618         * modules/flock-tests (Depends-on): Likewise.
38619         * modules/fsync-tests (Depends-on): Likewise.
38620         * modules/lseek-tests (Depends-on): Likewise.
38621         * modules/pipe-tests (Depends-on): Likewise.
38622         * modules/posix_spawn-tests (Depends-on): Likewise.
38623         * modules/posix_spawnp-tests (Depends-on): Likewise.
38624         * modules/stat-time-tests (Depends-on): Likewise.
38625         * modules/yesno-tests (Depends-on): Likewise.
38626
38627 2009-07-19  Bruno Haible  <bruno@clisp.org>
38628
38629         Unify conditionals.
38630         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
38631         macros, not at the compiler macros.
38632         * lib/pipe.c: Likewise.
38633         * lib/execute.c: Likewise.
38634         * lib/spawni.c: Likewise.
38635
38636 2009-07-19  Bruno Haible  <bruno@clisp.org>
38637
38638         Fix handling of closed stdin/stdout/stderr on mingw.
38639         * lib/w32spawn.h: Include unistd.h.
38640         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
38641         file descriptor with O_NOINHERIT flag.
38642         (fd_safer_noinherit): New function, based on fd-safer.c.
38643         (dup_safer_noinherit): New function, based on dup-safer.c.
38644         (undup_safer_noinherit): New function.
38645         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38646         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38647         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38648         instead of fd_safer.
38649         * tests/test-pipe.c: Include <windows.h>.
38650         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38651         result.
38652
38653         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38654         from main.
38655         (test_pipe): Pass an extra argument for disambiguation.
38656         (main): Invoke parent_main or child_main.
38657
38658         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38659         consistently.
38660
38661 2009-07-18  Eric Blake  <ebb9@byu.net>
38662
38663         test-pipe: fix mingw build
38664         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38665
38666 2009-07-18  Bruno Haible  <bruno@clisp.org>
38667
38668         * modules/pipe-tests (Makefile.am): Fix typo.
38669
38670 2009-07-18  Eric Blake  <ebb9@byu.net>
38671
38672         error: fix mingw build
38673         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38674         Reported by Bruno Haible.
38675
38676         error: avoid undefined use of stdout
38677         * lib/error.c (error, error_at_line): Check that fd 1 is open
38678         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38679         is handling faults and the close_stdout module wants to report the
38680         detection of closed stdout as an error.
38681
38682 2009-07-17  Eric Blake  <ebb9@byu.net>
38683
38684         pipe: be robust in face of closed fds
38685         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38686         should cause child to misbehave.
38687         * modules/pipe-tests: New module.
38688         * tests/test-pipe.c: New file.
38689         * tests/test-pipe.sh: New file.
38690         Reported by Akim Demaille.
38691
38692 2009-07-14  Bruno Haible  <bruno@clisp.org>
38693
38694         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
38695         Reported by anonymous kc.
38696
38697 2009-07-07  Jim Meyering  <meyering@redhat.com>
38698
38699         maint.mk: don't look for translatable strings in *.m4 or *.mk
38700         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
38701         when searching for translatable strings.
38702
38703 2009-07-05  Jim Meyering  <meyering@redhat.com>
38704
38705         remove superfluous parentheses in STREQ definition
38706         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38707         * lib/getugroups.c (STREQ): Likewise.
38708         * lib/fnmatch.c (STREQ): Likewise.
38709         Spotted by Bruno Haible.
38710
38711 2009-07-04  Jim Meyering  <meyering@redhat.com>
38712
38713         argv-iter: new module
38714         * MODULES.html.sh: Add argv-iter.
38715         * lib/argv-iter.c, lib/argv-iter.h: New files.
38716         * modules/argv-iter: New file.
38717         * modules/argv-iter-tests: New file.
38718         * tests/test-argv-iter.c: Test it.
38719
38720 2009-07-04  Bruno Haible  <bruno@clisp.org>
38721
38722         Fix assertion.
38723         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38724         contains more exact copies of a given entry than file2, leave the extra
38725         copies unpaired rather than aborting.
38726         Reported by Eric Blake.
38727
38728 2009-07-02  Bruno Haible  <bruno@clisp.org>
38729
38730         Speedup git-merge-changelog for git cherry-pick.
38731         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38732         (entries_mapping_get): New function, extracted from compute_mapping.
38733         (entries_mapping_reverse_get): New function.
38734         (compute_mapping): Add a 'full' argument. Return the result in a
38735         'struct entries_mapping'.
38736         (main): Update. Access the mappings through entries_mapping_get.
38737         Reported by Eric Blake.
38738
38739 2009-07-02  Bruno Haible  <bruno@clisp.org>
38740
38741         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
38742         best_i.
38743
38744 2009-07-02  Bruno Haible  <bruno@clisp.org>
38745
38746         Speed up approximate search for matching ChangeLog entries.
38747         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
38748         argument. Call fstrcmp_bounded instead of fstrcmp.
38749         (compute_mapping, try_split_merged_entry, main): Update callers.
38750
38751 2009-07-02  Bruno Haible  <bruno@clisp.org>
38752
38753         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
38754
38755 2009-06-30  Bruno Haible  <bruno@clisp.org>
38756
38757         Reduce the number of uc_is_cased calls.
38758         * lib/unicase.h (casing_suffix_context_t): Add
38759         'first_char_except_ignorable' field.
38760         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38761         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38762         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38763         Update initializer.
38764         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38765         case-ignorable characters.
38766         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38767         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38768         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38769         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38770         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38771
38772 2009-06-30  Bruno Haible  <bruno@clisp.org>
38773
38774         Tests for module 'unicase/ignorable'.
38775         * modules/unicase/ignorable-tests: New file.
38776         * tests/unicase/test-ignorable.c: New file, generated by
38777         gen-uni-tables.
38778
38779         Tests for module 'unicase/cased'.
38780         * modules/unicase/cased-tests: New file.
38781         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38782         * tests/unicase/test-predicate-part1.h: New file, derived from
38783         tests/unictype/test-predicate-part1.h.
38784         * tests/unicase/test-predicate-part2.h: New file, same as
38785         tests/unictype/test-predicate-part2.h.
38786
38787         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38788         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38789         (output_casing_properties): New function.
38790         (main): Call it.
38791         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38792         * lib/unicase/cased.c: Include unictype/bitmap.h.
38793         (uc_is_cased): Define through a bitmap lookup.
38794         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
38795         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
38796         (uc_is_case_ignorable): Define through a bitmap lookup.
38797         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
38798         lib/unictype/bitmap.h.
38799         (Depends-on): Add inline. Clean up.
38800         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
38801         lib/unictype/bitmap.h.
38802         (Depends-on): Add inline. Clean up.
38803         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
38804         recognition.
38805         * tests/unicase/test-u16-tolower.c (main): Likewise.
38806         * tests/unicase/test-u32-tolower.c (main): Likewise.
38807
38808 2009-06-30  Bruno Haible  <bruno@clisp.org>
38809
38810         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38811         * lib/unicase/u16-casemap.c: Likewise.
38812         * lib/unicase/u32-casemap.c: Likewise.
38813
38814 2009-06-29  Bruno Haible  <bruno@clisp.org>
38815
38816         Define u32_casefold as a wrapper around u32_ct_casefold.
38817         * lib/unicase/u32-casefold.c: Update.
38818         * modules/unicase/u32-casefold (Depends-on): Add
38819         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38820         unicase/empty-suffix-context. Clean up.
38821
38822         Define u16_casefold as a wrapper around u16_ct_casefold.
38823         * lib/unicase/u16-casefold.c: Update.
38824         * modules/unicase/u16-casefold (Depends-on): Add
38825         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38826         unicase/empty-suffix-context. Clean up.
38827
38828         Define u8_casefold as a wrapper around u8_ct_casefold.
38829         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38830         * lib/unicase/u8-casefold.c: Update.
38831         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38832         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38833
38834         Define u32_totitle as a wrapper around u32_ct_totitle.
38835         * lib/unicase/u32-totitle.c: Update.
38836         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38837         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38838
38839         Define u16_totitle as a wrapper around u16_ct_totitle.
38840         * lib/unicase/u16-totitle.c: Update.
38841         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38842         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38843
38844         Define u8_totitle as a wrapper around u8_ct_totitle.
38845         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38846         functions.
38847         (FUNC): Delegate to U_CT_TOTITLE.
38848         * lib/unicase/u8-totitle.c: Update.
38849         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38850         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38851
38852         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38853         invocation.
38854         * modules/unicase/u32-tolower (Depends-on): Add
38855         unicase/empty-prefix-context, unicase/empty-suffix-context.
38856
38857         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38858         invocation.
38859         * modules/unicase/u16-tolower (Depends-on): Add
38860         unicase/empty-prefix-context, unicase/empty-suffix-context.
38861
38862         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38863         * modules/unicase/u8-tolower (Depends-on): Add
38864         unicase/empty-prefix-context, unicase/empty-suffix-context.
38865
38866         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38867         invocation.
38868         * modules/unicase/u32-toupper (Depends-on): Add
38869         unicase/empty-prefix-context, unicase/empty-suffix-context.
38870
38871         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38872         invocation.
38873         * modules/unicase/u16-toupper (Depends-on): Add
38874         unicase/empty-prefix-context, unicase/empty-suffix-context.
38875
38876         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38877         * modules/unicase/u8-toupper (Depends-on): Add
38878         unicase/empty-prefix-context, unicase/empty-suffix-context.
38879
38880         New module 'unicase/u32-ct-casefold'.
38881         * lib/unicase/u32-ct-casefold.c: New file.
38882         * modules/unicase/u32-ct-casefold: New file.
38883
38884         New module 'unicase/u16-ct-casefold'.
38885         * lib/unicase/u16-ct-casefold.c: New file.
38886         * modules/unicase/u16-ct-casefold: New file.
38887
38888         New module 'unicase/u8-ct-casefold'.
38889         * lib/unicase/u8-ct-casefold.c: New file.
38890         * lib/unicase/u-ct-casefold.h: New file, derived from
38891         lib/unicase/u-casefold.h.
38892         * modules/unicase/u8-ct-casefold: New file.
38893
38894         New module 'unicase/u32-ct-totitle'.
38895         * lib/unicase/u32-ct-totitle.c: New file.
38896         * modules/unicase/u32-ct-totitle: New file.
38897
38898         New module 'unicase/u16-ct-totitle'.
38899         * lib/unicase/u16-ct-totitle.c: New file.
38900         * modules/unicase/u16-ct-totitle: New file.
38901
38902         New module 'unicase/u8-ct-totitle'.
38903         * lib/unicase/u8-ct-totitle.c: New file.
38904         * lib/unicase/u-ct-totitle.h: New file, derived from
38905         lib/unicase/u-totitle.h.
38906         * modules/unicase/u8-ct-totitle: New file.
38907
38908         New module 'unicase/u32-ct-tolower'.
38909         * lib/unicase/u32-ct-tolower.c: New file.
38910         * modules/unicase/u32-ct-tolower: New file.
38911
38912         New module 'unicase/u16-ct-tolower'.
38913         * lib/unicase/u16-ct-tolower.c: New file.
38914         * modules/unicase/u16-ct-tolower: New file.
38915
38916         New module 'unicase/u8-ct-tolower'.
38917         * lib/unicase/u8-ct-tolower.c: New file.
38918         * modules/unicase/u8-ct-tolower: New file.
38919
38920         New module 'unicase/u32-ct-toupper'.
38921         * lib/unicase/u32-ct-toupper.c: New file.
38922         * modules/unicase/u32-ct-toupper: New file.
38923
38924         New module 'unicase/u16-ct-toupper'.
38925         * lib/unicase/u16-ct-toupper.c: New file.
38926         * modules/unicase/u16-ct-toupper: New file.
38927
38928         New module 'unicase/u8-ct-toupper'.
38929         * lib/unicase/u8-ct-toupper.c: New file.
38930         * modules/unicase/u8-ct-toupper: New file.
38931
38932         Add context arguments to u*_casemap functions.
38933         * lib/unicase/unicasemap.h: Include unicase.h.
38934         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38935         suffix_context arguments.
38936         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38937         functions.
38938         (FUNC): Add prefix_context and suffix_context arguments. Use
38939         uc_is_cased and uc_is_case_ignorable.
38940         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38941         * lib/unicase/u16-casemap.c: Likewise.
38942         * lib/unicase/u32-casemap.c: Likewise.
38943         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38944         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38945         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38946         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38947         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38948         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38949
38950         New module 'unicase/u32-suffix-context'.
38951         * lib/unicase/u32-suffix-context.c: New file.
38952         * modules/unicase/u32-suffix-context: New file.
38953
38954         New module 'unicase/u16-suffix-context'.
38955         * lib/unicase/u16-suffix-context.c: New file.
38956         * modules/unicase/u16-suffix-context: New file.
38957
38958         New module 'unicase/u8-suffix-context'.
38959         * lib/unicase/u8-suffix-context.c: New file.
38960         * lib/unicase/u-suffix-context.h: New file.
38961         * modules/unicase/u8-suffix-context: New file.
38962
38963         New module 'unicase/empty-suffix-context'.
38964         * lib/unicase/empty-suffix-context.c: New file.
38965         * modules/unicase/empty-suffix-context: New file.
38966
38967         New module 'unicase/u32-prefix-context'.
38968         * lib/unicase/u32-prefix-context.c: New file.
38969         * modules/unicase/u32-prefix-context: New file.
38970
38971         New module 'unicase/u16-prefix-context'.
38972         * lib/unicase/u16-prefix-context.c: New file.
38973         * modules/unicase/u16-prefix-context: New file.
38974
38975         New module 'unicase/u8-prefix-context'.
38976         * lib/unicase/u8-prefix-context.c: New file.
38977         * lib/unicase/u-prefix-context.h: New file.
38978         * lib/unicase/context.h: New file.
38979         * modules/unicase/u8-prefix-context: New file.
38980
38981         New module 'unicase/empty-prefix-context'.
38982         * lib/unicase/empty-prefix-context.c: New file.
38983         * modules/unicase/empty-prefix-context: New file.
38984
38985         New module 'unicase/ignorable'.
38986         * lib/unicase/ignorable.c: New file.
38987         * modules/unicase/ignorable: New file.
38988
38989         New module 'unicase/cased'.
38990         * lib/unicase/caseprop.h: New file.
38991         * lib/unicase/cased.c: New file.
38992         * modules/unicase/cased: New file.
38993
38994         New functions for case mapping of substrings.
38995         * lib/unicase.h (casing_prefix_context_t): New type.
38996         (unicase_empty_prefix_context): New variable.
38997         (u8_casing_prefix_context, u16_casing_prefix_context,
38998         u32_casing_prefix_context, u8_casing_prefixes_context,
38999         u16_casing_prefixes_context, u32_casing_prefixes_context): New
39000         declarations.
39001         (casing_suffix_context_t): New type.
39002         (unicase_empty_suffix_context): New variable.
39003         (u8_casing_suffix_context, u16_casing_suffix_context,
39004         u32_casing_suffix_context, u8_casing_suffixes_context,
39005         u16_casing_suffixes_context, u32_casing_suffixes_context,
39006         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
39007         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
39008         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
39009         declarations.
39010
39011 2009-06-28  Jim Meyering  <meyering@redhat.com>
39012
39013         boostrap: indent only with spaces
39014         * build-aux/bootstrap: Indent only with spaces, never TABs.
39015
39016         bootstrap: split long lines
39017         * build-aux/bootstrap: Keep line length < 80.
39018
39019         bootstrap: sync from coreutils
39020         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
39021         just as autoreconf does.  Verify a list of prerequisite
39022         package-name,version-number pairs if defined in bootstrap.conf.
39023         Refer to README-prereq, if prerequisites are not satisfied.
39024
39025 2009-06-27  Eric Blake  <ebb9@byu.net>
39026
39027         tests: add test for bogus NULL definition
39028         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
39029         * tests/test-stdlib.c: Likewise.
39030         * tests/test-string.c: Likewise.
39031         * tests/test-locale.c: Likewise.
39032         * tests/test-unistd.c: Likewise.
39033         * modules/stdio-tests (Depends-on): Add verify.
39034         * modules/stdlib-tests (Depends-on): Likewise.
39035         * modules/string-tests (Depends-on): Likewise.
39036         * modules/locale-tests (Depends-on): Likewise.
39037         * modules/unistd-tests (Depends-on): Likewise.
39038
39039 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
39040
39041         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
39042         self-explaining comment.
39043         * m4/selinux-selinux-h: Update serial.
39044         (gl_LIBSELINUX): New macro, adding a warning for missing development
39045         packages to code extracted from...
39046         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
39047         Add warning for missing development packages here, too.
39048
39049 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
39050
39051         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
39052
39053 2009-06-25  Eric Blake  <ebb9@byu.net>
39054
39055         version-etc: fix regression
39056         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
39057         gcc.
39058         (version_etc): Use it, to catch bugs with trailing NULL.
39059         * lib/version-etc.c (version_etc_arn): Delete unused argument.
39060         (version_etc_va): Fix logic bug.
39061         * modules/version-etc-tests: Add test.
39062         * tests/test-version-etc.c: New file.
39063         * tests/test-version-etc.sh: Likewise.
39064
39065 2009-06-25  Sam Steingold  <sds@gnu.org>
39066
39067         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
39068         mbtowc declaration.
39069
39070 2009-06-25  Eric Blake  <ebb9@byu.net>
39071
39072         fpurge: migrate into <stdio.h>
39073         * lib/fpurge.h: Delete...
39074         * lib/stdio.in.h (fpurge): ...and declare here, instead.
39075         * lib/fpurge.c (fpurge): Change declaring header.
39076         * modules/fpurge (Files): Drop deleted file.
39077         (Depends-on): Add stdio.
39078         (configure.ac): Set witness.
39079         * modules/stdio (Makefile.am): Support fpurge macros.
39080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39081         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
39082         * lib/fflush.c: Update client.
39083         * tests/test-fpurge.c: Likewise.
39084         * NEWS: Mention the change.
39085
39086 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39087
39088         * lib/argp-version-etc.c (program_authors): Add const
39089         qualifier.
39090         * lib/version-etc.c: Fix typos in the comments.
39091         * modules/argp-version-etc: Depends on version-etc.
39092
39093 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39094
39095         argp-version-etc: new module.
39096
39097         * lib/argp-version-etc.c: New file.
39098         * lib/argp-version-etc.h: New file.
39099         * modules/argp-version-etc: New file.
39100         * modules/argp-version-etc-tests: New file.
39101         * tests/test-argp-version-etc.c: New test.
39102         * tests/test-argp-version-etc-1.sh: New test.
39103
39104 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39105
39106         Provide additional interfaces and documentation for version-etc
39107         module.
39108
39109         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
39110         interfaces.
39111         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
39112         prototypes.
39113
39114 2009-06-24  Bruno Haible  <bruno@clisp.org>
39115
39116         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
39117         HAVE_LIB${NAME} macro.
39118         Reported by Sam Steingold <sds@gnu.org>.
39119
39120 2009-06-23  Simon Josefsson  <simon@josefsson.org>
39121
39122         * modules/hash-tests (test_hash_LDADD): Link to libintl when
39123         needed.
39124
39125 2009-06-21  Bruno Haible  <bruno@clisp.org>
39126
39127         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
39128         work.
39129         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
39130         together with LIB${NAME}, LTLIB${NAME}.
39131         Reported by Sam Steingold <sds@gnu.org>.
39132
39133 2009-06-20  Jim Meyering  <meyering@redhat.com>
39134
39135         tests: make sc_require_test_exit_idiom more generic
39136         * top/maint.mk (Exit_witness_file): New overridable variable.
39137         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
39138         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
39139
39140 2009-06-19  Jim Meyering  <meyering@redhat.com>
39141
39142         hash: reverse order of src/dst parameters in an internal interface
39143         * lib/hash.c (transfer_entries): Reverse order of parameters to
39144         put DST before SRC.  Adjust callers.
39145
39146         tests: test-hash: avoid wholesale duplication
39147         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
39148         Instead, use a loop and add a single conditional.
39149
39150         tests: test-hash: allow seed selection via a command line argument
39151         * tests/test-hash.c (get_seed): New function.
39152         (main): Use it.
39153
39154 2009-06-19  Eric Blake  <ebb9@byu.net>
39155
39156         hash: avoid memory leak on allocation failure
39157         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
39158         failure.  Factor repeated algorithm...
39159         (transfer_entries): ...into new helper routine.
39160         (hash_delete): React to hash_rehash return value.
39161
39162         hash: reduce memory pressure in hash_rehash no-op case
39163         * lib/hash.c (next_prime): Avoid overflow.
39164         (hash_initialize): Factor bucket size computation...
39165         (compute_bucket_size): ...into new helper function.
39166         (hash_rehash): Use new function and open coding to reduce memory
39167         pressure, and avoid a memory leak in USE_OBSTACK code.
39168         Reported by Jim Meyering.
39169
39170 2009-06-18  Eric Blake  <ebb9@byu.net>
39171
39172         hash: make rotation more obvious
39173         * modules/hash (Depends-on): Add bitrotate and stdint.
39174         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
39175         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
39176         (SIZE_MAX): Rely on headers for definition.
39177         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
39178         (raw_hasher): Use rotr_sz.
39179         Suggested by Jim Meyering.
39180
39181         hash: fix memory leak in last patch
39182         * lib/hash.c (hash_rehash): Avoid memory leak.
39183
39184         hash: avoid no-op rehashing
39185         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
39186
39187         hash: provide default callback functions
39188         * lib/hash.c (raw_hasher, raw_comparator): New functions.
39189         (hash_initialize): Use them as defaults.
39190         * tests/test-hash.c (main): Test this.
39191
39192         hash: minor optimization
39193         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
39194         when possible.
39195         (hash_initialize): Document this promise.
39196         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
39197         * tests/test-hash.c (hash_compare_strings): Test this.
39198
39199 2009-06-18  Bruno Haible  <bruno@clisp.org>
39200
39201         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
39202         going to be replaced anyway.
39203
39204 2009-06-18  Bruno Haible  <bruno@clisp.org>
39205
39206         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
39207         in one place.
39208         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
39209         be replaced anyway.
39210
39211 2009-06-18  Eric Blake  <ebb9@byu.net>
39212
39213         hash: check for resize before insertion
39214         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
39215         threshold before insertion, so that a pathological hash_rehash
39216         that fills every bucket can still trigger another rehash.
39217
39218 2009-06-18  Jim Meyering  <meyering@redhat.com>
39219
39220         hash-tests: add a loop around the small tests
39221         * tests/test-hash.c (main): Repeat small tests with selected
39222         small initial table sizes.
39223
39224 2009-06-17  Eric Blake  <ebb9@byu.net>
39225
39226         hash: minor cleanups
39227         * lib/hash.h (hash_entry): Make opaque, by moving...
39228         * lib/hash.c (hash_entry): ...here.
39229         (hash_insert): Clarify restrictions on what can be inserted.
39230         (hash_get_next): Clarify when it is safe to remove an element
39231         during traversal.
39232         (check_tuning): Skip verification when tuning is known safe.
39233         (hash_initialize): Clarify restrictions on tuning.
39234
39235 2009-06-17  Jim Meyering  <jim@meyering.net>
39236         and Eric Blake  <ebb9@byu.net>
39237
39238         hash-tests: new module
39239         * modules/hash-tests: New file.
39240         * tests/test-hash.c: New file.
39241
39242 2009-06-17  Eric Blake  <ebb9@byu.net>
39243
39244         strstr-simple: document new module
39245         * MODULES.html.sh: Document new module.
39246
39247         strstr, strcasestr: replace on platforms with broken memchr
39248         * modules/strstr: Split into...
39249         * modules/strstr-simple: ...new module that does not care about
39250         performance, but does care about glibc bug.
39251         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
39252         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
39253         if platform memchr is broken, per Debian bug 521737.
39254         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
39255         memchr.
39256         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
39257         * doc/posix-functions/strstr.texi (strstr): Document the fix.
39258         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39259         * modules/mountlist (Depends-on): Add strstr-simple.
39260         * modules/gen-uni-tables (Depends-on): Likewise.
39261         * modules/argz (Depends-on): Add strstr.
39262
39263 2009-06-17  Bruno Haible  <bruno@clisp.org>
39264
39265         * modules/posix_spawn-internal (Depends-on): Add errno.
39266
39267 2009-06-17  Bruno Haible  <bruno@clisp.org>
39268
39269         Define missing ESTALE on Interix 3.5.
39270         * lib/errno.in.h (ESTALE): Assign a value if missing.
39271         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
39272         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
39273         missing.
39274         * doc/posix-headers/errno.texi: Mention the Interix bug.
39275         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
39276
39277 2009-06-15  Eric Blake  <ebb9@byu.net>
39278
39279         memchr, memchr2: add valgrind exception
39280         * lib/memchr.valgrind: New file.
39281         * lib/memchr2.valgrind: New file.
39282         * modules/memchr (Files): Distribute valgrind file.
39283         * modules/memchr2 (Files): Likewise.
39284
39285         docs: memchr is no longer obsolete
39286         * MODULES.html.sh: Move memchr from obsolete to string.h section.
39287         * lib/string.in.h (memchr): Simplify logic.
39288
39289 2009-06-14  Jim Meyering  <meyering@redhat.com>
39290
39291         link-follow: fix the "checking..." message to not mention trailing slash
39292         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
39293         never considered trailing slashes.
39294
39295 2009-06-14  Bruno Haible  <bruno@clisp.org>
39296
39297         * m4/memchr.m4: Mention also the bug on IA-64.
39298         * doc/posix-functions/memchr.texi: Likewise.
39299
39300 2009-06-12  Eric Blake  <ebb9@byu.net>
39301
39302         memchr: detect broken x86_64 and alpha implementations
39303         * modules/memchr-tests (Depends-on): Move mmap detection...
39304         * modules/memchr (Depends-on): ...here.
39305         (configure.ac): Set indicator.
39306         * lib/string.in.h (memchr): Declare replacement.
39307         * modules/string (Makefile.am): Trigger replacement.
39308         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39309         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
39310         bugs.
39311         * doc/posix-functions/memchr.texi (memchr): Document the bug.
39312         * modules/getpagesize (License): Relax license.
39313
39314 2009-06-11  Bruno Haible  <bruno@clisp.org>
39315
39316         * lib/idpriv.h: Add more references.
39317
39318 2009-06-08  Bruno Haible  <bruno@clisp.org>
39319
39320         Tests for module 'idpriv-droptemp'.
39321         * modules/idpriv-droptemp-tests: New file.
39322         * tests/test-idpriv-droptemp.sh: New file.
39323         * tests/test-idpriv-droptemp.su.sh: New file.
39324         * tests/test-idpriv-droptemp.c: New file.
39325
39326         New module 'idpriv-droptemp'.
39327         * lib/idpriv-droptemp.c: New file.
39328         * modules/idpriv-droptemp: New file.
39329
39330 2009-06-08  Bruno Haible  <bruno@clisp.org>
39331
39332         Tests for module 'idpriv-drop'.
39333         * modules/idpriv-drop-tests: New file.
39334         * tests/test-idpriv-drop.sh: New file.
39335         * tests/test-idpriv-drop.su.sh: New file.
39336         * tests/test-idpriv-drop.c: New file.
39337
39338         New module 'idpriv-drop'.
39339         * lib/idpriv.h: New file.
39340         * lib-idpriv-drop.c: New file.
39341         * m4/idpriv.m4: New file.
39342         * modules/idpriv-drop: New file.
39343
39344 2009-06-08  Bruno Haible  <bruno@clisp.org>
39345
39346         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
39347         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39348         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39349         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39350         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39351         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39352         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39353
39354 2009-06-08  Eric Blake  <ebb9@byu.net>
39355
39356         test-strstr: use memory fence, when possible
39357         * tests/test-strstr.c (main): Use memory fence, in order to be
39358         more likely to trigger Debian bug 521737.
39359         * modules/strstr-tests (Files): Pull in additional files.
39360
39361         memchr: no longer obsolete, for wider field testing
39362         * modules/memchr (Status, Notice): Delete, this module is no
39363         longer obsolete.
39364         * modules/vasnprintf (Depends-on): Add memchr.
39365
39366 2009-06-07  Jim Meyering  <meyering@redhat.com>
39367
39368         hash: declare some functions with the warn_unused_result attribute
39369         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
39370
39371 2009-06-07  Bruno Haible  <bruno@clisp.org>
39372
39373         * tests/test-alignof.c: Don't test int64_t if it does not exist.
39374         Reported by Eric Blake.
39375
39376 2009-06-06  Eric Blake  <ebb9@byu.net>
39377
39378         test-alignof: fix typo with long double
39379         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
39380         compiler error.
39381
39382 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
39383
39384         Escape non-texinfo { and }s.
39385         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
39386         markup error.
39387
39388 2009-06-04  Jim Meyering  <meyering@redhat.com>
39389
39390         gitlog-to-changelog: don't infloop on an empty commit log
39391         * build-aux/gitlog-to-changelog: Warn about an empty log message.
39392         Reported by Boris Petersen <transacid@centerim.org>.
39393
39394 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
39395
39396         version-etc: extend for packagers
39397         Add three new configure options, intended for packagers:
39398           --with-packager="packager name"
39399           --with-packager-version="packager-specific version"
39400           --with-packager-bug-reports="packager bug reporting"
39401         An example with coreutils:
39402           $ ./configure \
39403             --with-packager=Gentoo \
39404             --with-packager-bug-report=http://bugs.gentoo.org/ \
39405             --with-packager-version="patchset 1.6"
39406           $ ./src/ls --version | head -n2
39407           ls (GNU coreutils) 7.1-dirty
39408           Packaged by Gentoo (patchset 1.6)
39409         Note that the bug reporting info via --help doesn't show up because
39410         coreutils uses its own custom emit_bug_reporting_address() implementation
39411         in src/system.h.  If it didn't, it'd look like:
39412           $ ./src/ls --help | tail -n4
39413           Report bugs to <bug-coreutils@gnu.org>.
39414           Report Gentoo bugs to <http://bugs.gentoo.org/>.
39415           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
39416           General help using GNU software: <http://www.gnu.org/gethelp/>.
39417         * lib/version-etc.c: Print new information, if provided.
39418         * m4/version-etc.m4: New file.
39419         * modules/version-etc (Files): Add m4/version-etc.m4.
39420         (configure.ac): Add gl_VERSION_ETC.
39421
39422 2009-05-31  Bruno Haible  <bruno@clisp.org>
39423
39424         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
39425         and 'int64_t'.
39426         * modules/alignof-tests (Dependencies): Add stdint.
39427         Reported by Eric Blake.
39428
39429 2009-05-31  Bruno Haible  <bruno@clisp.org>
39430
39431         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
39432         restriction due to compiler bugs.
39433         Reported by Eric Blake.
39434
39435 2009-05-31  Simon Josefsson  <simon@josefsson.org>
39436             Bruno Haible  <bruno@clisp.org>
39437
39438         Fix test-alignof failure.
39439         * lib/alignof.h (alignof_slot): New macro.
39440         (alignof_type): New macro, with the same semantics as the previous
39441         'alignof'.
39442         (alignof): Alias to alignof_slot.
39443         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
39444         check that the results are usable as constant expressions.
39445
39446 2009-05-31  Bruno Haible  <bruno@clisp.org>
39447
39448         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
39449         * tests/test-memchr.c (main): Check that memchr does not read past the
39450         first occurrence of the byte.
39451         * tests/test-strstr.c (main): Update comment.
39452         Suggested by Eric Blake.
39453
39454 2009-05-30  Bruno Haible  <bruno@clisp.org>
39455
39456         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
39457         detail how to use dumpbin.
39458         Reported by David Byron <dbyron@dbyron.com>.
39459
39460 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39461
39462         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
39463
39464 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39465
39466         * m4/manywarnings.m4: Add GCC 4.4 warnings.
39467
39468 2009-05-28  Bruno Haible  <bruno@clisp.org>
39469
39470         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
39471         build-aux/ files.
39472
39473 2009-05-28  Simon Josefsson  <simon@josefsson.org>
39474
39475         * gnulib-tool (func_import): Transform license on build-aux/ files too.
39476
39477 2009-05-27  Simon Josefsson  <simon@josefsson.org>
39478
39479         * gnulib-tool (sed_transform_main_lib_file)
39480         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
39481         regexps.
39482
39483 2009-05-26  Simon Josefsson  <simon@josefsson.org>
39484
39485         * tests/test-strstr.c: Add another self-test.
39486         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
39487         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
39488
39489 2009-05-23  Bruno Haible  <bruno@clisp.org>
39490
39491         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
39492         change.
39493
39494 2009-05-21  Bruno Haible  <bruno@clisp.org>
39495
39496         Simplify use of mode_t varargs.
39497         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
39498         uses 'mode_t' or 'int'.
39499         * lib/openat.c (openat): Likewise.
39500         * lib/open-safer.c (open_safer): Likewise.
39501         * m4/mode_t.m4: New file.
39502         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
39503         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
39504         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
39505         * modules/open (Files): Add m4/mode_t.m4.
39506         * modules/openat (Files): Likewise.
39507         * modules/fcntl-safer (Files): Likewise.
39508         Suggested by Eric Blake.
39509
39510 2009-05-21  Pádraig Brady  <P@draigbrady.com>
39511
39512         * doc/glibc-functions/fallocate.texi: New file.
39513         * doc/gnulib.texi: Include it.
39514
39515 2009-05-21  Eric Blake  <ebb9@byu.net>
39516             Bruno Haible  <bruno@clisp.org>
39517
39518         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
39519         invocations.
39520         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39521
39522 2009-05-21  Eric Blake  <ebb9@byu.net>
39523             Bruno Haible  <bruno@clisp.org>
39524
39525         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
39526         include_next. Fix of 2008-11-20 commit.
39527         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
39528         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
39529         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
39530         NEXT_MATH_H.
39531         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
39532         instead of NEXT_MATH_H.
39533
39534 2009-05-21  Bruno Haible  <bruno@clisp.org>
39535
39536         Avoid redefinition warnings for SIZE_MAX.
39537         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
39538         Reported by Simon Josefsson.
39539
39540 2009-05-21  Bruno Haible  <bruno@clisp.org>
39541
39542         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
39543         AC_CACHE_VAL.
39544
39545 2009-05-20  Bruno Haible  <bruno@clisp.org>
39546
39547         Make zeroptr.h work on mingw.
39548         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
39549         mprotect.
39550         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
39551         * modules/memchr2-tests (configure.ac): Likewise.
39552         * modules/memcmp-tests (configure.ac): Likewise.
39553         * modules/memmem-tests (configure.ac): Likewise.
39554         * modules/memrchr-tests (configure.ac): Likewise.
39555         Reported by Simon Josefsson.
39556
39557 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39558
39559         * tests/test-glob.c: Include string.h for strcmp prototype.
39560
39561 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39562
39563         * modules/getdelim (Depends-on): Add explicit stdint, although it
39564         was implicitly already pulled in via realloc-posix.
39565         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
39566
39567 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39568
39569         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
39570         G. Christensen" <tgc@jupiterrise.com>.
39571         * m4/sys_socket_h.m4: Check for sa_family_t.
39572         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
39573         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
39574         * tests/test-sys_socket.c: Check that sa_family_t works.
39575
39576 2009-05-18  Eric Blake  <ebb9@byu.net>
39577
39578         maint.mk: allow gnulib_dir in VPATH build
39579         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
39580
39581 2009-05-15  Jim Meyering  <meyering@redhat.com>
39582
39583         maint.mk: Give gnulib_dir a default definition.
39584         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
39585         Thus, most packages no longer need to specify this variable in cfg.mk
39586
39587 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
39588
39589         rename.m4: fix typos that would make non-mingw cross-configure fail
39590         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
39591
39592 2009-05-13  Eric Blake  <ebb9@byu.net>
39593
39594         mmap-anon: avoid out-of-order autoconf expansion
39595         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
39596         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
39597         * modules/memchr-tests (Depends-on): Add extensions.
39598         * modules/memchr2-tests (Depends-on): Add extensions.
39599         * modules/memcmp-tests (Depends-on): Add extensions.
39600         * modules/memmem-tests (Depends-on): Add extensions.
39601         * modules/memrchr-tests (Depends-on): Add extensions.
39602
39603 2009-05-13  Bruno Haible  <bruno@clisp.org>
39604
39605         Make some tests ISO C 99 compliant.
39606         * tests/zerosize-ptr.h: New file.
39607         * tests/test-memchr.c: Include zerosize-ptr.h.
39608         (main): Use a zero-size object pointer instead of NULL.
39609         * tests/test-memchr2.c: Include zerosize-ptr.h.
39610         (main): Use a zero-size object pointer instead of NULL.
39611         * tests/test-memcmp.c: Include zerosize-ptr.h.
39612         (main): Use a zero-size object pointer instead of NULL.
39613         * tests/test-memmem.c: Include zerosize-ptr.h.
39614         (main): Use a zero-size object pointer instead of NULL.
39615         * tests/test-memrchr.c: Include zerosize-ptr.h.
39616         (main): Use a zero-size object pointer instead of NULL.
39617         * modules/memchr-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/memchr2-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         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
39626         m4/mmap-anon.m4.
39627         (Depends-on): Add getpagesize.
39628         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39629         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
39630         m4/mmap-anon.m4.
39631         (Depends-on): Add getpagesize.
39632         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39633         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
39634         m4/mmap-anon.m4.
39635         (Depends-on): Add getpagesize.
39636         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39637
39638 2009-05-12  Bruno Haible  <bruno@clisp.org>
39639
39640         Tests for module 'alignof'.
39641         * modules/alignof-tests: New file.
39642         * tests/test-alignof.c: New file.
39643
39644 2009-05-12  Bruno Haible  <bruno@clisp.org>
39645
39646         Fix alignof macro.
39647         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39648         vendor compilers that are always correct.
39649
39650 2009-05-12  Bruno Haible  <bruno@clisp.org>
39651
39652         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39653         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39654         not whether its fully works.
39655
39656 2009-05-12  Bruno Haible  <bruno@clisp.org>
39657
39658         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39659
39660 2009-05-12  Jim Meyering  <meyering@redhat.com>
39661
39662         * top/maint.mk: Adjust backslash alignment.
39663
39664 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39665
39666         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39667
39668 2009-05-11  Eric Blake  <ebb9@byu.net>
39669
39670         argp: avoid undefined behavior
39671         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39672         macros.
39673
39674 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39675
39676         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39677         user.name to prevent git commit from complaining.
39678
39679 2009-05-10  Bruno Haible  <bruno@clisp.org>
39680
39681         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39682         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39683         it rewrites every file name only once.
39684         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39685
39686 2009-05-08  Bruno Haible  <bruno@clisp.org>
39687
39688         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39689         instead of 'max'.
39690
39691 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39692
39693         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
39694         sockaddr_storage test.
39695
39696 2009-05-07  Simon Josefsson  <simon@josefsson.org>
39697
39698         * modules/sys_socket (Makefile.am): Substitute
39699         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
39700         * m4/sys_socket_h.m4: Check for sockaddr_storage.
39701         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
39702         * tests/test-sys_socket.c: Check sockaddr_storage.
39703
39704 2009-05-08  Bruno Haible  <bruno@clisp.org>
39705
39706         New module 'alignof'.
39707         * lib/alignof.h: New file.
39708         * modules/alignof: New file.
39709
39710 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39711             Bruno Haible  <bruno@clisp.org>
39712
39713         Fix test-file-has-acl on FreeBSD.
39714         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39715         mask is implicitly added.
39716         * tests/test-file-has-acl.c: Include <signal.h>.
39717         (main): Terminate the test after 5 seconds.
39718         * modules/acl-tests (configure.ac): Check for alarm function.
39719
39720 2009-05-04  Bruno Haible  <bruno@clisp.org>
39721
39722         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39723         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39724         * modules/errno (configure.ac): Drop AC_REQUIRE.
39725         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39726         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39727
39728 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39729
39730         * modules/glob-tests: New module.
39731         * tests/test-glob.c: Add.
39732
39733 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39734
39735         * modules/fnmatch-tests: New module.
39736         * tests/test-fnmatch.c: Add.
39737
39738 2009-05-04  Eric Blake  <ebb9@byu.net>
39739
39740         maint: make the new no-submodule-changes rule VPATH-safe
39741         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
39742
39743 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39744             Bruno Haible  <bruno@clisp.org>
39745
39746         acl: Fix infinite loop on FreeBSD.
39747         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
39748         of return value from acl_get_entry.
39749         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
39750         Likewise.
39751
39752 2009-05-03  Bruno Haible  <bruno@clisp.org>
39753
39754         * lib/acl-internal.h (acl_entries): Clarify return value.
39755         * lib/acl_entries.c (acl_entries): Likewise.
39756
39757 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39758
39759         Bug fix in acl module.
39760         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39761
39762 2009-05-03  Bruno Haible  <bruno@clisp.org>
39763
39764         Create gperf-generated file in the source dir, not in the build dir.
39765         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39766         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39767         * modules/unicase/locale-language (unicase/locale-languages.h):
39768         Likewise.
39769         * modules/unicase/special-casing (unicase/special-casing-table.h):
39770         Likewise.
39771         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39772         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39773         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39774         Reported by Ralf Wildenhues.
39775
39776 2009-05-03  Bruno Haible  <bruno@clisp.org>
39777
39778         * modules/fnmatch (Description, configure.ac): Taken from
39779         fnmatch-posix.
39780         * modules/fnmatch-posix: Turn into a symbolic reference to the
39781         'fnmatch' module, and deprecate.
39782         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39783
39784 2009-05-03  Bruno Haible  <bruno@clisp.org>
39785
39786         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39787         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39788         Reported by Ralf Wildenhues.
39789
39790 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39791
39792         * m4/fnmatch.m4: Fix fnmatch re-define.
39793
39794 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39795
39796         priv-set: new module and tests; adapt write-any-file
39797         * lib/priv-set.c: New file.
39798         * lib/priv-set.h: New file.
39799         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
39800         * lib/write-any-file.c: Simplify by using priv-set module.
39801         * m4/priv-set.m4: New file.
39802         * modules/priv-set: New file.
39803         * modules/unlinkdir: Add dependency on priv-set module.
39804         * modules/write-any-file: Likewise.
39805
39806         Tests for module 'priv-set'.
39807         * modules/priv-set-tests: New file.
39808         * tests/test-priv-set.c: New file.
39809
39810 2009-05-03  Jim Meyering  <meyering@redhat.com>
39811             Bruno Haible  <bruno@clisp.org>
39812
39813         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39814         use the converted UTF-8 variant of the name instead.
39815
39816 2009-05-03  Jim Meyering  <meyering@redhat.com>
39817
39818         tests: tighten some getdate tests
39819         * tests/test-getdate.c (main): Tighten tests: require equality,
39820         not just greater than.  Set TZ envvar to UTC0.
39821
39822 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39823
39824         getdate: correctly interpret "next monday" when run on a Monday
39825         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39826         that e.g., "next tues" (when run on a tuesday) results in a date
39827         that is one week in the future, and not today's date.
39828         I.e., add a week when the wday is the same as the current one.
39829         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39830         and earlier by Martin Bernreuther and Jan Minář.
39831         * tests/test-getdate.c (main): Check that "next DAY" is always in
39832         the future and that "last DAY" is always in the past.
39833
39834 2009-05-02  Jim Meyering  <meyering@redhat.com>
39835
39836         build: ensure that a release build fails when a submodule is unclean
39837         * top/maint.mk (no-submodule-changes): New rule.
39838         (alpha beta major): Depend on it.
39839
39840 2009-05-02  Bruno Haible  <bruno@clisp.org>
39841
39842         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39843         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39844         shell variable gl_fnmatch_required to detect which variant is
39845         requested.
39846         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39847         gl_FUNC_FNMATCH_POSIX.
39848         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39849         exclude fnmatch-posix.
39850
39851 2009-05-02  Bruno Haible  <bruno@clisp.org>
39852
39853         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39854         * modules/mbsrtowcs (License): Change to LGPLv2+.
39855         * modules/strnlen1 (License): Likewise.
39856         Reported by Simon Josefsson.
39857
39858 2009-05-02  Bruno Haible  <bruno@clisp.org>
39859
39860         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39861         "cross".
39862         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39863         gnulib-tool was called with option --source-base=lib.
39864
39865 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39866
39867         Use automake *-local hooks without commands, for extensibility.
39868         * modules/localcharset (Makefile.am): Rename install-exec-local
39869         rule to install-exec-localcharset, and make it a prerequisite of
39870         install-exec-local.  Likewise, rename the uninstall-local rule to
39871         uninstall-localcharset, and make it a prerequisite of the former.
39872
39873 2009-05-01  Bruno Haible  <bruno@clisp.org>
39874
39875         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39876         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39877         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39878         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39879         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39880         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39881         m4/locale-zh.m4, m4/codeset.m4.
39882
39883         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39884         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39885         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39886         m4/locale-zh.m4.
39887
39888         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39889         REPLACE_WCRTOMB if mbstate_t must be replaced.
39890         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39891         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39892
39893 2009-05-01  Bruno Haible  <bruno@clisp.org>
39894
39895         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39896         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39897         dngettext, dcngettext, textdomain, bindtextdomain,
39898         bind_textdomain_codeset): Undefine before redefining.
39899
39900 2009-04-30  Bruno Haible  <bruno@clisp.org>
39901
39902         Fix bug introduced on 2009-04-25.
39903         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39904         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39905         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39906         is defined.
39907         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39908         is defined.
39909         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39910         is defined.
39911         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39912
39913 2009-04-28  Bruno Haible  <bruno@clisp.org>
39914
39915         Comment tweaks.
39916         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39917         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39918         * lib/unicase.h (u*_casexfrm): Likewise.
39919         Reported by Paolo Bonzini.
39920
39921 2009-04-28  Bruno Haible  <bruno@clisp.org>
39922
39923         Fix a compilation error.
39924         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39925         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39926         Reported by Jim Meyering.
39927
39928 2009-04-27  Bruno Haible  <bruno@clisp.org>
39929
39930         New module 'libunistring'.
39931         * modules/libunistring: New file.
39932         * m4/libunistring.m4: New file.
39933         * MODULES.html.sh (Unicode string functions): Add it.
39934
39935 2009-04-27  Eric Blake  <ebb9@byu.net>
39936
39937         maint.mk: allow package-specific header to provide <config.h>
39938         * top/maint.mk (sc_require_config_h): New variable.
39939         (sc_require_config_h, sc_require_config_h_first): Use it.
39940
39941 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39942
39943         * top/maint.mk (sc_avoid_if_before_free): Except
39944         useless-if-before-free script.
39945
39946 2009-04-27  Eric Blake  <ebb9@byu.net>
39947
39948         maintainer-makefile: depend on all required helper scripts
39949         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39950         useless-if-before-free.
39951         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39952         version, rather than assuming gnulib checkout is available.
39953         Reported by Simen Josefsson.
39954
39955 2009-04-26  Bruno Haible  <bruno@clisp.org>
39956
39957         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39958         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39959         "../" or "..".
39960
39961 2009-04-26  Bruno Haible  <bruno@clisp.org>
39962
39963         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39964         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39965         AC_LIB_HAVE_LINKFLAGS.
39966
39967 2009-04-26  Bruno Haible  <bruno@clisp.org>
39968
39969         Simplify calling convention of u*_conv_from_encoding.
39970         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39971         u32_conv_from_encoding): Expect a resultbuf argument and return the
39972         result directly as a pointer.
39973         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39974         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39975         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39976         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39977         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39978         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39979         Update.
39980         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39981         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39982         * lib/vasnprintf.c (VASNPRINTF): Update.
39983         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39984         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39985         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39986         * NEWS: Mention the change.
39987
39988 2009-04-26  Bruno Haible  <bruno@clisp.org>
39989
39990         Simplify calling convention of u*_conv_to_encoding.
39991         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39992         u32_conv_to_encoding): Expect a resultbuf argument and return the
39993         result directly as a pointer.
39994         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39995         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39996         freeing scaled_offsets if mem_iconveha failed.
39997         * lib/unicase/u-casexfrm.h (FUNC): Update.
39998         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39999         * lib/vasnprintf.c (VASNPRINTF): Update.
40000         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
40001         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
40002         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
40003         * NEWS: Mention the change.
40004
40005 2009-04-26  Bruno Haible  <bruno@clisp.org>
40006
40007         Avoid test failures on AIX and OSF/1.
40008         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
40009         malloc(0).
40010         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40011         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40012         Likewise.
40013         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
40014         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
40015         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
40016         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
40017         * doc/posix-functions/malloc.texi: Document the portability problem
40018         related to malloc(0).
40019
40020 2009-04-26  Bruno Haible  <bruno@clisp.org>
40021
40022         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
40023         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
40024         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
40025
40026 2009-04-25  Bruno Haible  <bruno@clisp.org>
40027
40028         Avoid link error when creating a namespace clean library.
40029         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
40030         as macro with arguments if already defined as an alias.
40031         * lib/signbitf.c (gl_signbitf): Don't undefine.
40032         * lib/signbitd.c (gl_signbitd): Don't undefine.
40033         * lib/signbitl.c (gl_signbitl): Don't undefine.
40034
40035 2009-04-25  Jim Meyering  <meyering@redhat.com>
40036
40037         vc-list-files: fix another quoting bug
40038         * build-aux/vc-list-files: Avoid sed backslash expansion
40039         of pathological directory names.
40040
40041 2009-04-25  Eric Blake  <ebb9@byu.net>
40042
40043         vc-list-files: fix shell quoting error
40044         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
40045         timestamp.
40046
40047 2009-04-25  Jim Meyering  <meyering@redhat.com>
40048
40049         vc-list-files: restore lost functionality with subdir argument
40050         * build-aux/vc-list-files: When given a non-"." sub-directory
40051         argument, substitute the $dir/ prefix back onto each resulting name.
40052         Otherwise, coreutils' root_tests check would fail.
40053
40054 2009-04-24  Eric Blake  <ebb9@byu.net>
40055
40056         vc-list-files: ignore git symlinks
40057         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
40058         than ls-files, to ignore git symlinks.
40059
40060         maint.mk: import improvements from m4
40061         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
40062         (move_if_change): Delete unused macro.
40063         (news-date-check, vc-diff-check): Support VPATH builds.
40064         (announcement): Likewise.  Split --bootstrap-tools list...
40065         (boostrap-tools): ...into separate list, which can be overridden
40066         in cfg.mk.
40067         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
40068         requiring dependency on useless-if-before-free module.
40069         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
40070         Support VPATH builds.
40071
40072 2009-04-24  Jim Meyering  <meyering@redhat.com>
40073
40074         maint.mk: remove coreutils-specific rules and variables
40075         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
40076         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
40077         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
40078
40079         maint.mk: remove obsolete rule
40080         * top/maint.mk (rel-check): Remove rule.
40081         (WGET, WGETFLAGS): Remove now-unused variables.
40082
40083 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40084
40085         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
40086         consistency.
40087
40088         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
40089         '$(PATH_SEPARATOR)' instead of ':'.
40090
40091 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40092
40093         * lib/getopt1.c (main): Use 'const' for static array.
40094
40095 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40096
40097         * top/maint.mk: Sync with coreutils.
40098         * NEWS: Explain incompatibilities.
40099
40100 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40101             Bruno Haible  <bruno@clisp.org>
40102
40103         Fix cross-compilation results.
40104         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
40105         statement, as third argument of AC_TRY_RUN.
40106         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40107         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40108         Likewise.
40109         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40110         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40111         Likewise.
40112         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40113         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
40114         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
40115
40116 2009-04-20  Bruno Haible  <bruno@clisp.org>
40117
40118         Avoid test failure on mingw.
40119         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
40120
40121 2009-04-20  Bruno Haible  <bruno@clisp.org>
40122
40123         Avoid compilation error on mingw.
40124         * modules/localename-tests (Depends-on): Add locale.
40125
40126 2009-04-19  Bruno Haible  <bruno@clisp.org>
40127
40128         Support for building a shared library on Windows platforms.
40129         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
40130         (main): Test the presence of UNINORM_NFC here.
40131         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
40132         (main): Test the presence of UNINORM_NFD here.
40133         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
40134         (main): Test the presence of UNINORM_NFKC here.
40135         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
40136         (main): Test the presence of UNINORM_NFKD here.
40137
40138 2009-04-19  Bruno Haible  <bruno@clisp.org>
40139
40140         Avoid a compiler warning.
40141         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
40142         Change type of variable 'sequence'.
40143
40144 2009-04-19  Bruno Haible  <bruno@clisp.org>
40145
40146         * modules/configmake (Makefile.am): When the contents of configmake.h
40147         does not change, arrange to preserve its modification time.
40148
40149 2009-04-17  Simon Josefsson  <simon@josefsson.org>
40150
40151         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
40152         gettext domain.
40153
40154 2009-04-16  Jim Meyering  <meyering@redhat.com>
40155
40156         useless-if-before-free: improve conversion code
40157         * build-aux/useless-if-before-free: Adjust code-in-comment to match
40158         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
40159
40160 2009-04-14  Bruno Haible  <bruno@clisp.org>
40161
40162         * modules/fcntl (Depends-on): Add extensions.
40163         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
40164
40165 2009-04-12  Ben Pfaff  <blp@gnu.org>
40166
40167         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
40168         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
40169
40170 2009-03-20  Ben Pfaff  <blp@gnu.org>
40171
40172         Make rename replace existing destinations on Windows.
40173         * m4/rename.m4: Add test for Mingw.
40174         * lib/rename.c: Add rename replacement that uses MoveFileEx with
40175         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
40176         * doc/posix-functions/rename.texi: Document.
40177
40178 2009-04-10  Bruno Haible  <bruno@clisp.org>
40179
40180         New include file "iconveh.h".
40181         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
40182         * lib/striconveh.h: Include it.
40183         (enum iconv_ilseq_handler): Remove definition.
40184         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
40185         striconveh.h.
40186         * lib/striconveha.c: Include striconveh.h.
40187         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
40188         * modules/striconveh (Files): Add lib/iconveh.h.
40189         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
40190         lib/striconveh.h.
40191
40192 2009-04-10  Bruno Haible  <bruno@clisp.org>
40193
40194         * lib/uniconv.h: Update comment.
40195
40196 2009-04-10  Bruno Haible  <bruno@clisp.org>
40197
40198         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40199         always.
40200         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40201         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40202         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40203         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
40204         "unistring-notinline.h", so that the function gets defined always.
40205         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40206         * lib/unistr/u8-uctomb.c: Likewise.
40207         * lib/unistr/u16-mbtouc.c: Likewise.
40208         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40209         * lib/unistr/u16-uctomb.c: Likewise.
40210         * lib/unistr/u32-mbtouc.c: Likewise.
40211         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40212         * lib/unistr/u32-uctomb.c: Likewise.
40213
40214 2009-04-10  Bruno Haible  <bruno@clisp.org>
40215
40216         Mark 'utime' obsolete.
40217         * modules/utime (Status, Notice): New sections.
40218         Suggested by Jim Meyering.
40219
40220         Fix cross-compile guess for utime test.
40221         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
40222         autoconf.
40223         * doc/posix-functions/utime.texi: Give more precisions.
40224         Reported by Jan <ipif@ymail.com>.
40225
40226 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
40227
40228         filevercmp: correct today's change
40229         * lib/filevercmp.c: Also handle coreutils' test inputs.
40230         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
40231
40232         Fix regression in 'filevercmp' module. Thanks Sven Joachim
40233         for reporting it.
40234         * lib/filevercmp.c: Special handle for "", "." and "..".
40235         * tests/test-filevercmp.c: Enlarge the set suite.
40236
40237 2009-04-07  Jim Meyering  <meyering@redhat.com>
40238
40239         useless-if-before-free: show how to remove braced useless free, too
40240         * build-aux/useless-if-before-free: still only in a comment, though.
40241
40242 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
40243
40244         maint.mk: import changes to syntax-check macros from coreutils
40245         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
40246         Use them in the relevant macros.
40247
40248 2009-04-06  Bruno Haible  <bruno@clisp.org>
40249
40250         Fix unportable use of bit-fields.
40251         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
40252         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
40253         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
40254
40255 2009-04-06  Bruno Haible  <bruno@clisp.org>
40256
40257         Avoid test failures on AIX and OSF/1.
40258         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
40259         that malloc(0) = NULL.
40260         * tests/unicase/test-u8-tolower.c (check): Likewise.
40261         * tests/unicase/test-u8-totitle.c (check): Likewise.
40262         * tests/unicase/test-u8-toupper.c (check): Likewise.
40263         * tests/unicase/test-u16-casefold.c (check): Likewise.
40264         * tests/unicase/test-u16-tolower.c (check): Likewise.
40265         * tests/unicase/test-u16-totitle.c (check): Likewise.
40266         * tests/unicase/test-u16-toupper.c (check): Likewise.
40267         * tests/unicase/test-u32-casefold.c (check): Likewise.
40268         * tests/unicase/test-u32-tolower.c (check): Likewise.
40269         * tests/unicase/test-u32-totitle.c (check): Likewise.
40270         * tests/unicase/test-u32-toupper.c (check): Likewise.
40271         * tests/uninorm/test-u8-nfc.c (check): Likewise.
40272         * tests/uninorm/test-u8-nfd.c (check): Likewise.
40273         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
40274         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
40275         * tests/uninorm/test-u16-nfc.c (check): Likewise.
40276         * tests/uninorm/test-u16-nfd.c (check): Likewise.
40277         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
40278         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
40279         * tests/uninorm/test-u32-nfc.c (check): Likewise.
40280         * tests/uninorm/test-u32-nfd.c (check): Likewise.
40281         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
40282         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
40283
40284 2009-04-05  Bruno Haible  <bruno@clisp.org>
40285
40286         Work around an autoconf limitation.
40287         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
40288         comment line if it would be longer than 3 KB.
40289
40290 2009-04-05  Bruno Haible  <bruno@clisp.org>
40291
40292         Avoid test failure with libiconv-1.13.
40293         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
40294         of the expected test results.
40295
40296 2009-04-05  Bruno Haible  <bruno@clisp.org>
40297
40298         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
40299         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
40300         that it should be installed.
40301
40302 2009-04-05  Bruno Haible  <bruno@clisp.org>
40303
40304         * gnulib-tool: New option --copy-file.
40305         (func_usage): Document it.
40306         (func_dest_tmpfilename): Moved out of func_import.
40307         (func_add_file, func_update_file): New functions, extracted from
40308         func_import.
40309         (func_import): Update.
40310
40311 2009-04-05  Karl Berry  <karl@gnu.org>
40312
40313         * README: prominently mention gnulib-tool.
40314         Rearrange sections so getting the code is near the top.
40315
40316 2009-04-05  Bruno Haible  <bruno@clisp.org>
40317
40318         * lib/unicase.h: Mention u*_cmp2.
40319         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40320         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
40321         * lib/unicase/ulc-casecmp.c: Likewise.
40322         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
40323         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
40324         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
40325         unistr/u8-cmp.
40326         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
40327         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
40328         unistr/u16-cmp.
40329         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
40330         unistr/u32-cmp.
40331
40332         * lib/uninorm.h: Mention u*_cmp2.
40333         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40334         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
40335         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
40336         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
40337         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
40338         unistr/u8-cmp.
40339         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
40340         unistr/u16-cmp.
40341         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
40342         unistr/u32-cmp.
40343
40344         New module 'unistr/u32-cmp2'.
40345         * lib/unistr/u32-cmp2.c: New file.
40346         * modules/unistr/u32-cmp2: New file.
40347
40348         New module 'unistr/u16-cmp2'.
40349         * lib/unistr/u16-cmp2.c: New file.
40350         * modules/unistr/u16-cmp2: New file.
40351
40352         New module 'unistr/u8-cmp2'.
40353         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
40354         * lib/unistr/u8-cmp2.c: New file.
40355         * lib/unistr/u-cmp2.h: New file.
40356         * modules/unistr/u8-cmp2: New file.
40357
40358 2009-04-05  Bruno Haible  <bruno@clisp.org>
40359
40360         * lib/unictype.h (uc_property_is_valid): New macro.
40361         * tests/unictype/test-pr_byname.c (main): Use it.
40362
40363         * lib/unistr.h: Doc fixes.
40364         * lib/uniconv.h: Doc fixes.
40365         * lib/unictype.h: Doc fixes.
40366
40367 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
40368
40369         Port coreutils 7.2 to Solaris 8.
40370
40371         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
40372         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
40373         for Solaris 8.  This is a bit of a hack, as it means it's the
40374         caller's responsibility to add -lnsl if needed, but most likely it
40375         won't be needed since only getaddrinfo uses this and getaddrinfo
40376         isn't needed on Solaris 8.
40377
40378         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
40379         problem to Solaris 8 encountered with coreutils 7.2, which
40380         resulted in a message "fnmatch.c:292: warning: passing argument 4
40381         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
40382         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
40383
40384 2009-04-03  Simon Josefsson  <simon@josefsson.org>
40385
40386         * m4/ld-version-script.m4: Add FIXME comment.
40387
40388 2009-04-02  Simon Josefsson  <simon@josefsson.org>
40389
40390         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
40391         SOVERSION variable.
40392
40393 2009-04-02  Bruno Haible  <bruno@clisp.org>
40394
40395         * Makefile (info, html, dvi, pdf): Combine the rules.
40396         Suggested by Jim Meyering.
40397
40398 2009-04-01  Bruno Haible  <bruno@clisp.org>
40399
40400         * Makefile (info, html, dvi, pdf): New targets.
40401         Reported by Reuben Thomas <rrt@sc3d.org>.
40402
40403 2009-04-01  Bruno Haible  <bruno@clisp.org>
40404
40405         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
40406         can be put into PATH.
40407         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
40408
40409 2009-04-01  Bruno Haible  <bruno@clisp.org>
40410
40411         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
40412
40413 2009-04-01  Bruno Haible  <bruno@clisp.org>
40414
40415         Rename module 'visibility'.
40416         * modules/lib-symbol-visibility: Renamed from modules/visibility.
40417         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
40418         * doc/gnulib.texi: Update.
40419         * MODULES.html.sh (Misc): Update.
40420         * NEWS: Mention the change.
40421
40422 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40423
40424         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
40425         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
40426         Eric Blake <ebb9@byu.net> for review.
40427         * MODULES.html.sh: Add lib-msvc-compat.
40428         * doc/gnulib.texi: Link to new section.
40429         * m4/ld-output-def.m4: New file.
40430         * doc/ld-output-def.texi: New file.
40431
40432 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40433
40434         Rename ld-version-script to lib-symbol-versions.  Suggested by
40435         Bruno Haible <bruno@clisp.org>.
40436         * modules/ld-version-script: Renamed to lib-symbol-versions.
40437         * doc/ld-version-script.texi: Fix module name.
40438         * MODULES.html.sh: Add lib-symbol-versions.
40439
40440 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40441
40442         * modules/u64-tests: New file.
40443         * tests/test-u64.c: New file.
40444
40445 2009-03-04  Simon Josefsson  <simon@josefsson.org>
40446
40447         * MODULES.html.sh: Mention u64.
40448         * modules/u64: New module.
40449         * modules/crypto/sha512: Depend on u64 module instead of providing
40450         u64.h.
40451
40452 2009-03-27  Eric Blake  <ebb9@byu.net>
40453
40454         test-strerror: make debugging EAI_SYSTEM easier
40455         * modules/getaddrinfo-tests (Depends-on): Add strerror.
40456         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
40457         failure was EAI_SYSTEM.
40458
40459 2009-03-25  Bruno Haible  <bruno@clisp.org>
40460
40461         Fix a problem with --enable-relocatable on Solaris 7.
40462         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
40463         since 2008-02-24.
40464
40465 2009-03-25  Eric Blake  <ebb9@byu.net>
40466
40467         test-sockets: avoid gcc warning
40468         * tests/test-sockets.c (main): Silence compiler warning.
40469
40470 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40471
40472         New modules nproc, pthread, contributed by Glen Lenker.
40473
40474         * MODULES.html.sh: Add pthread, nproc.
40475         * lib/nproc.c: New file.
40476         * lib/nproc.h: New file.
40477         * lib/pthread.in.h: New file.
40478         * m4/pthread.m4: New file.
40479         * modules/nproc: New file.
40480         * modules/pthread: New file.
40481
40482 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40483
40484         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
40485         New variable.
40486
40487 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
40488
40489         filevercmp: handle simple~ and numbered.~3~ backup suffixes
40490         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40491         * tests/test-filevercmp.c: Add tests for backup suffixes.
40492
40493 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40494
40495         * modules/stdlib (Depends-on): Add stdint, needed when defining
40496         struct random_data on, for example, HP-UX 10.20.  Reported by
40497         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40498
40499 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40500
40501         * lib/readline.c (readline): Call fflush on stdout after printing
40502         prompt.
40503
40504 2009-03-20  Bruno Haible  <bruno@clisp.org>
40505
40506         Remove dependency from 'close' module to -lws2_32 on native Windows.
40507         * lib/close-hook.h: New file.
40508         * lib/close-hook.c: New file.
40509         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
40510         w32sock.h.
40511         (_gl_close_fd_maybe_socket): Remove function.
40512         (rpl_close): Invoke execute_all_close_hooks instead of
40513         _gl_close_fd_maybe_socket.
40514         * lib/sockets.c: Include close-hook.h, w32sock.h.
40515         (close_fd_maybe_socket): New function, essentially from lib/close.c.
40516         (close_sockets_hook): New variable.
40517         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
40518         (gl_sockets_cleanup): Unregister it.
40519         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
40520         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
40521         * modules/close-hook: New file.
40522         * modules/close (Files): Remove lib/w32sock.h.
40523         (Depends-on): Add close-hook.
40524         (Link): Remove section.
40525         * modules/sockets (Files): Add lib/w32sock.h.
40526         (Depends-on): Add close-hook.
40527         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
40528         invocation.
40529         * NEWS: Mention that LIB_CLOSE is gone.
40530
40531 2009-03-23  Eric Blake  <ebb9@byu.net>
40532
40533         signal-tests: test previous patch
40534         * tests/test-signal.c: New file.
40535         * modules/signal-tests: Likewise.
40536
40537         signal.h: always support 'volatile sig_atomic_t'
40538         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
40539         (gl_SIGNAL_H_DEFAULTS): Add a default.
40540         * modules/signal (Makefile.am): Substitute if needed.
40541         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
40542         users can blindly add volatile.
40543         * doc/posix-headers/signal.texi (signal.h): Document it.
40544         Reported by Matthew Woehlke.
40545
40546 2009-03-23  Jim Meyering  <meyering@redhat.com>
40547
40548         pathmax: PATH_MAX: use pathconf only when available
40549         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
40550         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
40551         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
40552         This avoids a link failure in a PSP cross-compilation environment
40553         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
40554
40555         * lib/vasnprintf.c (divide): Fix typo in comment.
40556
40557 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40558
40559         * gnulib-tool (func_filter_filelist): Fix comment.
40560
40561 2009-03-20  Bruno Haible  <bruno@clisp.org>
40562
40563         Make sockets.h self-contained.
40564         * lib/sockets.c: Include sockets.h first.
40565         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
40566
40567 2009-03-19  Eric Blake  <ebb9@byu.net>
40568
40569         doc: mention more functions added in cygwin 1.7.0
40570         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
40571         addition.
40572         * doc/posix-functions/log2f.texi: Likewise.
40573
40574 2009-03-19  Jim Meyering  <meyering@redhat.com>
40575
40576         fsusage: avoid syntax error due to statement-before-declaration
40577         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
40578         after all declarations.  Reported by Matthew Woehlke in
40579         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
40580
40581 2009-03-18  Eric Blake  <ebb9@byu.net>
40582
40583         build-aux/compile: sync from automake
40584         * build-aux/compile: New file, from automake.
40585         * config/srclist.txt: Mention build-aux/compile.
40586
40587 2009-03-17  Bruno Haible  <bruno@clisp.org>
40588
40589         * lib/git-merge-changelog.c: Fix typo in comment.
40590         Reported by Reuben Thomas <rrt@sc3d.org>.
40591
40592 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
40593
40594         * m4/regex.m4: update and improve help for
40595         --without-included-regex.
40596
40597 2009-03-17  Simon Josefsson  <simon@josefsson.org>
40598
40599         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
40600         failure on missing include files.
40601
40602 2009-03-17  Eric Blake  <ebb9@byu.net>
40603
40604         doc: mention more functions added in cygwin 1.7.0
40605         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
40606         addition.
40607         * doc/posix-functions/fwscanf.texi: Likewise.
40608         * doc/posix-functions/swprintf.texi: Likewise.
40609         * doc/posix-functions/swscanf.texi: Likewise.
40610         * doc/posix-functions/vfwprintf.texi: Likewise.
40611         * doc/posix-functions/vfwscanf.texi: Likewise.
40612         * doc/posix-functions/vswprintf.texi: Likewise.
40613         * doc/posix-functions/vswscanf.texi: Likewise.
40614         * doc/posix-functions/vwprintf.texi: Likewise.
40615         * doc/posix-functions/vwscanf.texi: Likewise.
40616         * doc/posix-functions/wcscasecmp.texi: Likewise.
40617         * doc/posix-functions/wcsdup.texi: Likewise.
40618         * doc/posix-functions/wcsftime.texi: Likewise.
40619         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40620         * doc/posix-functions/wprintf.texi: Likewise.
40621         * doc/posix-functions/wscanf.texi: Likewise.
40622         * doc/glibc-functions/gethostbyname2.texi: Likewise.
40623
40624 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40625
40626         maint.mk: really add $(AM_MAKEFLAGS)
40627         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
40628         was inadvertently omitted in the last commit.
40629         Spotted by Bruno Haible.
40630
40631         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
40632         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
40633         $(AM_MAKEFLAGS)' rather than plain `make'.
40634
40635         gnulib-tool: execute $MAKE not make
40636         * gnulib-tool: Default $MAKE to 'make'.
40637         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
40638         than make.  Initialize $MAKE in the do-autobuild script.
40639
40640         gnulib-tool: use $MAKE not make in generated files
40641         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
40642         make, in generated files.  Initialize $MAKE in the do-autobuild
40643         script.
40644
40645         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40646
40647         GNUmakefile: disable parallelism only for multiple, recursive targets
40648         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40649         additions in the Makefile.
40650         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40651         by Automake.
40652         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40653         are listed on the command line and at least one of them is
40654         listed in $(ALL_RECURSIVE_TARGETS).
40655
40656 2009-03-14  Bruno Haible  <bruno@clisp.org>
40657
40658         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40659         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40660         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40661         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40662         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40663         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40664         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40665         unistr/u8-uctomb.
40666         * modules/unistr/u8-strchr (Depends-on): Likewise.
40667         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40668         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40669         unistr/u16-uctomb.
40670         * modules/unistr/u16-strchr (Depends-on): Likewise.
40671         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40672
40673 2009-03-12  Bruno Haible  <bruno@clisp.org>
40674
40675         Work around select() bug on Interix 3.5.
40676         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40677         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40678         * m4/select.m4: New file.
40679         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40680         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40681         * modules/select (Files): Add m4/select.m4.
40682         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40683         * modules/nanosleep (Depends-on): Add select.
40684         * modules/poll (Depends-on): Likewise.
40685         * doc/posix-functions/select.texi: Mention the Interix bug.
40686         Reported by Markus Duft <mduft@gentoo.org>.
40687
40688         * lib/select.c: Renamed from lib/winsock-select.c.
40689         * modules/select (Files): Add lib/select.c, remove
40690         lib/winsock-select.c.
40691         (configure.ac): Update.
40692
40693 2009-03-12  Jim Meyering  <meyering@redhat.com>
40694
40695         avoid gcc warnings about unused macro definitions
40696         * lib/readtokens.c (STREQ): Remove unused definition.
40697         * lib/xmalloc.c (SIZE_MAX): Likewise.
40698         * lib/openat-die.c (N_): Likewise.
40699         * lib/mountlist.c (SIZE_MAX): Remove definition.
40700         Instead, include <stdint.h>.
40701         * lib/readutmp.c: Likewise.
40702         * modules/readutmp (Depends-on): Add stdint.
40703         * modules/mountlist (Depends-on): Add stdint.
40704         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
40705
40706 2009-03-10  Bruno Haible  <bruno@clisp.org>
40707
40708         Tests for module 'mbmemcasecoll'.
40709         * modules/mbmemcasecoll-tests: New file.
40710         * tests/test-mbmemcasecoll1.sh: New file.
40711         * tests/test-mbmemcasecoll2.sh: New file.
40712         * tests/test-mbmemcasecoll3.sh: New file.
40713         * tests/test-mbmemcasecoll.c: New file.
40714
40715         New module 'mbmemcasecoll'.
40716         * lib/mbmemcasecoll.h: New file.
40717         * lib/mbmemcasecoll.c: New file.
40718         * modules/mbmemcasecoll: New file.
40719
40720         * tests/test-mbmemcasecmp.h: New file, extracted from
40721         tests/test-mbmemcasecmp.c.
40722         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40723         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40724         (main): Update.
40725         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40726
40727 2009-03-09  Bruno Haible  <bruno@clisp.org>
40728
40729         Tests for module 'mbmemcasecmp'.
40730         * modules/mbmemcasecmp-tests: New file.
40731         * tests/test-mbmemcasecmp1.sh: New file.
40732         * tests/test-mbmemcasecmp2.sh: New file.
40733         * tests/test-mbmemcasecmp3.sh: New file.
40734         * tests/test-mbmemcasecmp.c: New file.
40735
40736         New module 'mbmemcasecmp'.
40737         * lib/mbmemcasecmp.h: New file.
40738         * lib/mbmemcasecmp.c: New file.
40739         * modules/mbmemcasecmp: New file.
40740
40741 2009-03-09  Bruno Haible  <bruno@clisp.org>
40742
40743         Tests for module 'unicase/ulc-casecoll'.
40744         * modules/unicase/ulc-casecoll-tests: New file.
40745         * tests/unicase/test-ulc-casecoll1.sh: New file.
40746         * tests/unicase/test-ulc-casecoll2.sh: New file.
40747         * tests/unicase/test-ulc-casecoll.c: New file.
40748
40749         New module 'unicase/ulc-casecoll'.
40750         * lib/unicase.h (ulc_casecoll): New declaration.
40751         * lib/unicase/ulc-casecoll.c: New file.
40752         * modules/unicase/ulc-casecoll: New file.
40753
40754         New module 'unicase/ulc-casexfrm'.
40755         * lib/unicase.h (ulc_casexfrm): New declaration.
40756         * lib/unicase/ulc-casexfrm.c: New file.
40757         * modules/unicase/ulc-casexfrm: New file.
40758
40759 2009-03-09  Bruno Haible  <bruno@clisp.org>
40760
40761         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40762         invocations.
40763
40764         * m4/mbscasecmp.m4: Remove file.
40765         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40766         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40767
40768         * m4/mbscasestr.m4: Remove file.
40769         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40770         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40771
40772         * m4/mbschr.m4: Remove file.
40773         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40774         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40775
40776         * m4/mbscspn.m4: Remove file.
40777         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40778         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40779
40780         * m4/mbslen.m4: Remove file.
40781         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40782         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40783
40784         * m4/mbsncasecmp.m4: Remove file.
40785         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40786         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40787
40788         * m4/mbsnlen.m4: Remove file.
40789         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40790         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40791
40792         * m4/mbspbrk.m4: Remove file.
40793         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
40794         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
40795
40796         * m4/mbspcasecmp.m4: Remove file.
40797         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
40798         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
40799
40800         * m4/mbsrchr.m4: Remove file.
40801         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
40802         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
40803
40804         * m4/mbssep.m4: Remove file.
40805         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
40806         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
40807
40808         * m4/mbsspn.m4: Remove file.
40809         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40810         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40811
40812         * m4/mbsstr.m4: Remove file.
40813         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40814         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40815
40816         * m4/mbstok_r.m4: Remove file.
40817         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40818         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40819
40820         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40821
40822         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40823         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40824
40825         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40826
40827 2009-03-08  Bruno Haible  <bruno@clisp.org>
40828
40829         Tests for module 'unicase/ulc-casecmp'.
40830         * modules/unicase/ulc-casecmp-tests: New file.
40831         * tests/unicase/test-ulc-casecmp1.sh: New file.
40832         * tests/unicase/test-ulc-casecmp2.sh: New file.
40833         * tests/unicase/test-ulc-casecmp.c: New file.
40834
40835         New module 'unicase/ulc-casecmp'.
40836         * lib/unicase.h (ulc_casecmp): New declaration.
40837         * lib/unicase/ulc-casecmp.c: New file.
40838         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40839         'const SRC_UNIT *'.
40840         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40841         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40842         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40843         * modules/unicase/ulc-casecmp: New file.
40844
40845         Tests for module 'unicase/u32-is-cased'.
40846         * modules/unicase/u32-is-cased-tests: New file.
40847         * tests/unicase/test-u32-is-cased.c: New file.
40848
40849         Tests for module 'unicase/u16-is-cased'.
40850         * modules/unicase/u16-is-cased-tests: New file.
40851         * tests/unicase/test-u16-is-cased.c: New file.
40852
40853         Tests for module 'unicase/u8-is-cased'.
40854         * modules/unicase/u8-is-cased-tests: New file.
40855         * tests/unicase/test-u8-is-cased.c: New file.
40856         * tests/unicase/test-is-cased.h: New file.
40857
40858         New module 'unicase/u32-is-cased'.
40859         * lib/unicase/u32-is-cased.c: New file.
40860         * modules/unicase/u32-is-cased: New file.
40861
40862         New module 'unicase/u16-is-cased'.
40863         * lib/unicase/u16-is-cased.c: New file.
40864         * modules/unicase/u16-is-cased: New file.
40865
40866         New module 'unicase/u8-is-cased'.
40867         * lib/unicase/u8-is-cased.c: New file.
40868         * lib/unicase/u-is-cased.h: New file.
40869         * modules/unicase/u8-is-cased: New file.
40870
40871         Tests for module 'unicase/u32-is-casefolded'.
40872         * modules/unicase/u32-is-casefolded-tests: New file.
40873         * tests/unicase/test-u32-is-casefolded.c: New file.
40874
40875         Tests for module 'unicase/u16-is-casefolded'.
40876         * modules/unicase/u16-is-casefolded-tests: New file.
40877         * tests/unicase/test-u16-is-casefolded.c: New file.
40878
40879         Tests for module 'unicase/u8-is-casefolded'.
40880         * modules/unicase/u8-is-casefolded-tests: New file.
40881         * tests/unicase/test-u8-is-casefolded.c: New file.
40882         * tests/unicase/test-is-casefolded.h: New file.
40883
40884         New module 'unicase/u32-is-casefolded'.
40885         * lib/unicase/u32-is-casefolded.c: New file.
40886         * modules/unicase/u32-is-casefolded: New file.
40887
40888         New module 'unicase/u16-is-casefolded'.
40889         * lib/unicase/u16-is-casefolded.c: New file.
40890         * modules/unicase/u16-is-casefolded: New file.
40891
40892         New module 'unicase/u8-is-casefolded'.
40893         * lib/unicase/u8-is-casefolded.c: New file.
40894         * modules/unicase/u8-is-casefolded: New file.
40895
40896         Tests for module 'unicase/u32-is-titlecase'.
40897         * modules/unicase/u32-is-titlecase-tests: New file.
40898         * tests/unicase/test-u32-is-titlecase.c: New file.
40899
40900         Tests for module 'unicase/u16-is-titlecase'.
40901         * modules/unicase/u16-is-titlecase-tests: New file.
40902         * tests/unicase/test-u16-is-titlecase.c: New file.
40903
40904         Tests for module 'unicase/u8-is-titlecase'.
40905         * modules/unicase/u8-is-titlecase-tests: New file.
40906         * tests/unicase/test-u8-is-titlecase.c: New file.
40907         * tests/unicase/test-is-titlecase.h: New file.
40908
40909         New module 'unicase/u32-is-titlecase'.
40910         * lib/unicase/u32-is-titlecase.c: New file.
40911         * modules/unicase/u32-is-titlecase: New file.
40912
40913         New module 'unicase/u16-is-titlecase'.
40914         * lib/unicase/u16-is-titlecase.c: New file.
40915         * modules/unicase/u16-is-titlecase: New file.
40916
40917         New module 'unicase/u8-is-titlecase'.
40918         * lib/unicase/u8-is-titlecase.c: New file.
40919         * modules/unicase/u8-is-titlecase: New file.
40920
40921         Tests for module 'unicase/u32-is-lowercase'.
40922         * modules/unicase/u32-is-lowercase-tests: New file.
40923         * tests/unicase/test-u32-is-lowercase.c: New file.
40924
40925         Tests for module 'unicase/u16-is-lowercase'.
40926         * modules/unicase/u16-is-lowercase-tests: New file.
40927         * tests/unicase/test-u16-is-lowercase.c: New file.
40928
40929         Tests for module 'unicase/u8-is-lowercase'.
40930         * modules/unicase/u8-is-lowercase-tests: New file.
40931         * tests/unicase/test-u8-is-lowercase.c: New file.
40932         * tests/unicase/test-is-lowercase.h: New file.
40933
40934         New module 'unicase/u32-is-lowercase'.
40935         * lib/unicase/u32-is-lowercase.c: New file.
40936         * modules/unicase/u32-is-lowercase: New file.
40937
40938         New module 'unicase/u16-is-lowercase'.
40939         * lib/unicase/u16-is-lowercase.c: New file.
40940         * modules/unicase/u16-is-lowercase: New file.
40941
40942         New module 'unicase/u8-is-lowercase'.
40943         * lib/unicase/u8-is-lowercase.c: New file.
40944         * modules/unicase/u8-is-lowercase: New file.
40945
40946         Tests for module 'unicase/u32-is-uppercase'.
40947         * modules/unicase/u32-is-uppercase-tests: New file.
40948         * tests/unicase/test-u32-is-uppercase.c: New file.
40949
40950         Tests for module 'unicase/u16-is-uppercase'.
40951         * modules/unicase/u16-is-uppercase-tests: New file.
40952         * tests/unicase/test-u16-is-uppercase.c: New file.
40953
40954         Tests for module 'unicase/u8-is-uppercase'.
40955         * modules/unicase/u8-is-uppercase-tests: New file.
40956         * tests/unicase/test-u8-is-uppercase.c: New file.
40957         * tests/unicase/test-is-uppercase.h: New file.
40958
40959         New module 'unicase/u32-is-uppercase'.
40960         * lib/unicase/u32-is-uppercase.c: New file.
40961         * modules/unicase/u32-is-uppercase: New file.
40962
40963         New module 'unicase/u16-is-uppercase'.
40964         * lib/unicase/u16-is-uppercase.c: New file.
40965         * modules/unicase/u16-is-uppercase: New file.
40966
40967         New module 'unicase/u8-is-uppercase'.
40968         * lib/unicase/u8-is-uppercase.c: New file.
40969         * modules/unicase/u8-is-uppercase: New file.
40970
40971         New module 'unicase/u32-is-invariant'.
40972         * lib/unicase/u32-is-invariant.c: New file.
40973         * modules/unicase/u32-is-invariant: New file.
40974
40975         New module 'unicase/u16-is-invariant'.
40976         * lib/unicase/u16-is-invariant.c: New file.
40977         * modules/unicase/u16-is-invariant: New file.
40978
40979         New module 'unicase/u8-is-invariant'.
40980         * lib/unicase/u8-is-invariant.c: New file.
40981         * lib/unicase/invariant.h: New file.
40982         * lib/unicase/u-is-invariant.h: New file.
40983         * modules/unicase/u8-is-invariant: New file.
40984
40985         Tests for module 'unicase/u32-casecoll'.
40986         * modules/unicase/u32-casecoll-tests: New file.
40987         * tests/unicase/test-u32-casecoll.c: New file.
40988
40989         Tests for module 'unicase/u16-casecoll'.
40990         * modules/unicase/u16-casecoll-tests: New file.
40991         * tests/unicase/test-u16-casecoll.c: New file.
40992
40993         Tests for module 'unicase/u8-casecoll'.
40994         * modules/unicase/u8-casecoll-tests: New file.
40995         * tests/unicase/test-u8-casecoll.c: New file.
40996
40997         New module 'unicase/u32-casecoll'.
40998         * lib/unicase/u32-casecoll.c: New file.
40999         * modules/unicase/u32-casecoll: New file.
41000
41001         New module 'unicase/u16-casecoll'.
41002         * lib/unicase/u16-casecoll.c: New file.
41003         * modules/unicase/u16-casecoll: New file.
41004
41005         New module 'unicase/u8-casecoll'.
41006         * lib/unicase/u8-casecoll.c: New file.
41007         * lib/unicase/u-casecoll.h: New file.
41008         * modules/unicase/u8-casecoll: New file.
41009
41010         New module 'unicase/u32-casexfrm'.
41011         * lib/unicase/u32-casexfrm.c: New file.
41012         * modules/unicase/u32-casexfrm: New file.
41013
41014         New module 'unicase/u16-casexfrm'.
41015         * lib/unicase/u16-casexfrm.c: New file.
41016         * modules/unicase/u16-casexfrm: New file.
41017
41018         New module 'unicase/u8-casexfrm'.
41019         * lib/unicase/u8-casexfrm.c: New file.
41020         * lib/unicase/u-casexfrm.h: New file.
41021         * modules/unicase/u8-casexfrm: New file.
41022
41023         Tests for module 'unicase/u32-casecmp'.
41024         * modules/unicase/u32-casecmp-tests: New file.
41025         * tests/unicase/test-u32-casecmp.c: New file.
41026
41027         Tests for module 'unicase/u16-casecmp'.
41028         * modules/unicase/u16-casecmp-tests: New file.
41029         * tests/unicase/test-u16-casecmp.c: New file.
41030
41031         Tests for module 'unicase/u8-casecmp'.
41032         * modules/unicase/u8-casecmp-tests: New file.
41033         * tests/unicase/test-u8-casecmp.c: New file.
41034         * tests/unicase/test-casecmp.h: New file.
41035
41036         New module 'unicase/u32-casecmp'.
41037         * lib/unicase/u32-casecmp.c: New file.
41038         * modules/unicase/u32-casecmp: New file.
41039
41040         New module 'unicase/u16-casecmp'.
41041         * lib/unicase/u16-casecmp.c: New file.
41042         * modules/unicase/u16-casecmp: New file.
41043
41044         New module 'unicase/u8-casecmp'.
41045         * lib/unicase/u8-casecmp.c: New file.
41046         * lib/unicase/u-casecmp.h: New file.
41047         * modules/unicase/u8-casecmp: New file.
41048
41049         Tests for module 'unicase/u32-casefold'.
41050         * modules/unicase/u32-casefold-tests: New file.
41051         * tests/unicase/test-u32-casefold.c: New file.
41052
41053         Tests for module 'unicase/u16-casefold'.
41054         * modules/unicase/u16-casefold-tests: New file.
41055         * tests/unicase/test-u16-casefold.c: New file.
41056
41057         Tests for module 'unicase/u8-casefold'.
41058         * modules/unicase/u8-casefold-tests: New file.
41059         * tests/unicase/test-u8-casefold.c: New file.
41060
41061         New module 'unicase/u32-casefold'.
41062         * lib/unicase/u32-casefold.c: New file.
41063         * modules/unicase/u32-casefold: New file.
41064
41065         New module 'unicase/u16-casefold'.
41066         * lib/unicase/u16-casefold.c: New file.
41067         * modules/unicase/u16-casefold: New file.
41068
41069         New module 'unicase/u8-casefold'.
41070         * lib/unicase/u8-casefold.c: New file.
41071         * lib/unicase/u-casefold.h: New file.
41072         * modules/unicase/u8-casefold: New file.
41073
41074         New module 'unicase/tocasefold'.
41075         * lib/unicase/casefold.h: New file.
41076         * lib/unicase/tocasefold.c: New file.
41077         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
41078         * modules/unicase/tocasefold: New file.
41079
41080         Tests for module 'unicase/u32-totitle'.
41081         * modules/unicase/u32-totitle-tests: New file.
41082         * tests/unicase/test-u32-totitle.c: New file.
41083
41084         Tests for module 'unicase/u16-totitle'.
41085         * modules/unicase/u16-totitle-tests: New file.
41086         * tests/unicase/test-u16-totitle.c: New file.
41087
41088         Tests for module 'unicase/u8-totitle'.
41089         * modules/unicase/u8-totitle-tests: New file.
41090         * tests/unicase/test-u8-totitle.c: New file.
41091
41092         New module 'unicase/u32-totitle'.
41093         * lib/unicase/u32-totitle.c: New file.
41094         * modules/unicase/u32-totitle: New file.
41095
41096         New module 'unicase/u16-totitle'.
41097         * lib/unicase/u16-totitle.c: New file.
41098         * modules/unicase/u16-totitle: New file.
41099
41100         New module 'unicase/u8-totitle'.
41101         * lib/unicase/u8-totitle.c: New file.
41102         * lib/unicase/u-totitle.h: New file.
41103         * modules/unicase/u8-totitle: New file.
41104
41105         Tests for module 'unicase/u32-tolower'.
41106         * modules/unicase/u32-tolower-tests: New file.
41107         * tests/unicase/test-u32-tolower.c: New file.
41108
41109         Tests for module 'unicase/u16-tolower'.
41110         * modules/unicase/u16-tolower-tests: New file.
41111         * tests/unicase/test-u16-tolower.c: New file.
41112
41113         Tests for module 'unicase/u8-tolower'.
41114         * modules/unicase/u8-tolower-tests: New file.
41115         * tests/unicase/test-u8-tolower.c: New file.
41116
41117         New module 'unicase/u32-tolower'.
41118         * lib/unicase/u32-tolower.c: New file.
41119         * modules/unicase/u32-tolower: New file.
41120
41121         New module 'unicase/u16-tolower'.
41122         * lib/unicase/u16-tolower.c: New file.
41123         * modules/unicase/u16-tolower: New file.
41124
41125         New module 'unicase/u8-tolower'.
41126         * lib/unicase/u8-tolower.c: New file.
41127         * modules/unicase/u8-tolower: New file.
41128
41129         Tests for module 'unicase/u32-toupper'.
41130         * modules/unicase/u32-toupper-tests: New file.
41131         * tests/unicase/test-u32-toupper.c: New file.
41132
41133         Tests for module 'unicase/u16-toupper'.
41134         * modules/unicase/u16-toupper-tests: New file.
41135         * tests/unicase/test-u16-toupper.c: New file.
41136
41137         Tests for module 'unicase/u8-toupper'.
41138         * modules/unicase/u8-toupper-tests: New file.
41139         * tests/unicase/test-u8-toupper.c: New file.
41140
41141         New module 'unicase/u32-toupper'.
41142         * lib/unicase/u32-toupper.c: New file.
41143         * modules/unicase/u32-toupper: New file.
41144
41145         New module 'unicase/u16-toupper'.
41146         * lib/unicase/u16-toupper.c: New file.
41147         * modules/unicase/u16-toupper: New file.
41148
41149         New module 'unicase/u8-toupper'.
41150         * lib/unicase/u8-toupper.c: New file.
41151         * modules/unicase/u8-toupper: New file.
41152
41153         New module 'unicase/u32-casemap'.
41154         * lib/unicase/u32-casemap.c: New file.
41155         * modules/unicase/u32-casemap: New file.
41156
41157         New module 'unicase/u16-casemap'.
41158         * lib/unicase/u16-casemap.c: New file.
41159         * modules/unicase/u16-casemap: New file.
41160
41161         New module 'unicase/u8-casemap'.
41162         * lib/unicase/unicasemap.h: New file.
41163         * lib/unicase/u8-casemap.c: New file.
41164         * lib/unicase/u-casemap.h: New file.
41165         * modules/unicase/u8-casemap: New file.
41166
41167         New module 'unicase/special-casing'.
41168         * lib/unicase/special-casing.h: New file.
41169         * lib/unicase/special-casing.c: New file.
41170         * lib/unicase/special-casing-table.gperf: New file, generated by
41171         gen-uni-tables.c.
41172         * modules/unicase/special-casing: New file.
41173
41174         Tests for module 'unicase/locale-language'.
41175         * modules/unicase/locale-language-tests: New file.
41176         * tests/unicase/test-locale-language.sh: New file.
41177         * tests/unicase/test-locale-language.c: New file.
41178
41179         New module 'unicase/locale-language'.
41180         * lib/unicase/locale-language.c: New file.
41181         * lib/unicase/locale-languages.gperf: New file.
41182         * modules/unicase/locale-language: New file.
41183
41184         Generate more tables for case conversion and case folding.
41185         * lib/gen-uni-tables.c (SCC_*): New enum items.
41186         (struct special_casing_rule): New type.
41187         (casing_rules, num_casing_rules, allocated_casing_rules): New
41188         variables.
41189         (add_casing_rule, fill_casing_rules): New functions.
41190         (struct casefold_rule): New type.
41191         (casefolding_rules, num_casefolding_rules,
41192         allocated_casefolding_rules): New variables.
41193         (fill_casefolding_rules): New function.
41194         (unicode_casefold): New variable.
41195         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
41196         sort_casing_rules, output_casing_rules): New functions.
41197         (main): Accept to more arguments: SpecialCasing.txt and
41198         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
41199         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
41200         Output mapping for casefolding.
41201
41202         * lib/unicase.h: Include stdbool.h, uninorm.h.
41203         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
41204         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
41205         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
41206         arguments.
41207         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
41208         resultp arguments.
41209         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
41210         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
41211         resultp arguments.
41212         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
41213         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
41214         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
41215         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
41216         declarations.
41217         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
41218
41219 2009-03-08  Bruno Haible  <bruno@clisp.org>
41220
41221         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41222         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
41223         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
41224         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41225
41226 2009-03-07  Bruno Haible  <bruno@clisp.org>
41227
41228         Adjust u*_normcmp, u*_normcoll API.
41229         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41230         u16_normcoll, u32_normcoll): Change failure conventions.
41231         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
41232         errno and return -1.
41233         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41234
41235 2009-03-07  Bruno Haible  <bruno@clisp.org>
41236
41237         Tests for module 'uninorm/u32-normcoll'.
41238         * modules/uninorm/u32-normcoll-tests: New file.
41239         * tests/uninorm/test-u32-normcoll.c: New file.
41240
41241         Tests for module 'uninorm/u16-normcoll'.
41242         * modules/uninorm/u16-normcoll-tests: New file.
41243         * tests/uninorm/test-u16-normcoll.c: New file.
41244
41245         Tests for module 'uninorm/u8-normcoll'.
41246         * modules/uninorm/u8-normcoll-tests: New file.
41247         * tests/uninorm/test-u8-normcoll.c: New file.
41248
41249 2009-03-07  Bruno Haible  <bruno@clisp.org>
41250
41251         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
41252         tests/uninorm/test-u32-normcmp.c.
41253         * tests/uninorm/test-u32-normcmp.c: Include it.
41254         (test_nonascii): New function, extracted from main. Add some more
41255         tests.
41256         (main): Invoke test_ascii and test_nonascii.
41257         * modules/uninorm/u32-normcmp-tests (Files): Add
41258         tests/uninorm/test-u32-normcmp.h.
41259         (Depends-on): Remove uninorm/u32-normcmp.
41260
41261         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
41262         tests/uninorm/test-u16-normcmp.c.
41263         * tests/uninorm/test-u16-normcmp.c: Include it.
41264         (test_nonascii): New function, extracted from main. Add some more
41265         tests.
41266         (main): Invoke test_ascii and test_nonascii.
41267         * modules/uninorm/u16-normcmp-tests (Files): Add
41268         tests/uninorm/test-u16-normcmp.h.
41269         (Depends-on): Remove uninorm/u16-normcmp.
41270
41271         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
41272         tests/uninorm/test-u8-normcmp.c.
41273         * tests/uninorm/test-u8-normcmp.c: Include it.
41274         (test_nonascii): New function, extracted from main. Add some more
41275         tests.
41276         (main): Invoke test_ascii and test_nonascii.
41277         * modules/uninorm/u8-normcmp-tests (Files): Add
41278         tests/uninorm/test-u8-normcmp.h.
41279         (Depends-on): Remove uninorm/u8-normcmp.
41280
41281 2009-03-07  Bruno Haible  <bruno@clisp.org>
41282
41283         New module 'uninorm/u32-normcoll'.
41284         * lib/uninorm/u32-normcoll.c: New file.
41285         * modules/uninorm/u32-normcoll: New file.
41286
41287         New module 'uninorm/u16-normcoll'.
41288         * lib/uninorm/u16-normcoll.c: New file.
41289         * modules/uninorm/u16-normcoll: New file.
41290
41291         New module 'uninorm/u8-normcoll'.
41292         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
41293         declarations.
41294         * lib/uninorm/u8-normcoll.c: New file.
41295         * lib/uninorm/u-normcoll.h: New file.
41296         * modules/uninorm/u8-normcoll: New file.
41297
41298         New module 'uninorm/u32-normxfrm'.
41299         * lib/uninorm/u32-normxfrm.c: New file.
41300         * modules/uninorm/u32-normxfrm: New file.
41301
41302         New module 'uninorm/u16-normxfrm'.
41303         * lib/uninorm/u16-normxfrm.c: New file.
41304         * modules/uninorm/u16-normxfrm: New file.
41305
41306         New module 'uninorm/u8-normxfrm'.
41307         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
41308         declarations.
41309         * lib/uninorm/u8-normxfrm.c: New file.
41310         * lib/uninorm/u-normxfrm.h: New file.
41311         * modules/uninorm/u8-normxfrm: New file.
41312
41313 2009-03-07  Bruno Haible  <bruno@clisp.org>
41314
41315         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
41316         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
41317         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
41318
41319 2009-03-07  Bruno Haible  <bruno@clisp.org>
41320
41321         New module 'memxfrm'.
41322         * lib/memxfrm.h: New file.
41323         * lib/memxfrm.c: New file.
41324         * modules/memxfrm: New file.
41325
41326 2009-03-07  Bruno Haible  <bruno@clisp.org>
41327
41328         New module 'memcmp2'.
41329         * lib/memcmp2.h: New file.
41330         * lib/memcmp2.c: New file.
41331         * modules/memcmp2: New file.
41332
41333 2009-03-07  Bruno Haible  <bruno@clisp.org>
41334
41335         Tests for module 'uninorm/decomposing-form'.
41336         * modules/uninorm/decomposing-form-tests: New file.
41337         * tests/uninorm/test-decomposing-form.c: New file.
41338
41339         New module 'uninorm/decomposing-form'.
41340         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
41341         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
41342         Add 'decomposing_variant' field.
41343         * lib/uninorm/decomposing-form.c: New file.
41344         * lib/uninorm/nfc.c (uninorm_nfc): Update.
41345         * lib/uninorm/nfd.c (uninorm_nfd): Update.
41346         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
41347         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
41348         * modules/uninorm/decomposing-form: New file.
41349         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
41350         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
41351
41352 2009-03-07  Bruno Haible  <bruno@clisp.org>
41353
41354         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
41355         strings.
41356
41357 2009-03-06  Bruno Haible  <bruno@clisp.org>
41358
41359         Tests for module 'uninorm/u32-normcmp'.
41360         * tests/uninorm/test-u32-normcmp.c: New file.
41361         * modules/uninorm/u32-normcmp-tests: New file.
41362
41363         Tests for module 'uninorm/u16-normcmp'.
41364         * tests/uninorm/test-u16-normcmp.c: New file.
41365         * modules/uninorm/u16-normcmp-tests: New file.
41366
41367         Tests for module 'uninorm/u8-normcmp'.
41368         * tests/uninorm/test-u8-normcmp.c: New file.
41369         * modules/uninorm/u8-normcmp-tests: New file.
41370
41371         New module 'uninorm/u32-normcmp'.
41372         * lib/uninorm/u32-normcmp.c: New file.
41373         * modules/uninorm/u32-normcmp: New file.
41374
41375         New module 'uninorm/u16-normcmp'.
41376         * lib/uninorm/u16-normcmp.c: New file.
41377         * modules/uninorm/u16-normcmp: New file.
41378
41379         New module 'uninorm/u8-normcmp'.
41380         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
41381         declarations.
41382         * lib/uninorm/u8-normcmp.c: New file.
41383         * lib/uninorm/u-normcmp.h: New file.
41384         * modules/uninorm/u8-normcmp: New file.
41385
41386 2009-03-06  Bruno Haible  <bruno@clisp.org>
41387
41388         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
41389         Reported by Eric Blake.
41390
41391 2009-03-06  Eric Blake  <ebb9@byu.net>
41392             Bruno Haible  <bruno@clisp.org>
41393
41394         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
41395         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
41396         condition.
41397         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41398         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
41399         condition.
41400         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41401
41402 2009-03-06  Eric Blake  <ebb9@byu.net>
41403
41404         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
41405         to avoid compiler warnings.
41406         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
41407
41408 2009-03-05  Bruno Haible  <bruno@clisp.org>
41409
41410         * tests/test-ftell.c (main): Disable test beyond end of file on
41411         FreeMiNT.
41412         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41413
41414 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
41415
41416         * lib/filevercmp.c: Move hidden files up in ordering.
41417         * tests/test-filevercmp.c: Add tests for hidden files.
41418
41419 2009-03-04  Bruno Haible  <bruno@clisp.org>
41420
41421         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
41422         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
41423         AM_CFLAGS.
41424         Reported by Simon Josefsson.
41425
41426 2009-03-03  Bruno Haible  <bruno@clisp.org>
41427
41428         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
41429         Reported by Simon Josefsson.
41430
41431         * doc/ld-version-script.texi: Update node reference.
41432
41433 2009-03-03  Bruno Haible  <bruno@clisp.org>
41434
41435         * modules/visibility (License): Change to 'unlimited'.
41436         Suggested by Simon Josefsson.
41437
41438 2009-03-03  Jim Meyering  <meyering@redhat.com>
41439
41440         unlinkdir: cannot_unlink_dir may modify process state
41441         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
41442         it's neither thread-safe nor appropriate for use in a library.
41443
41444 2009-03-03  Eric Blake  <ebb9@byu.net>
41445
41446         test-closein: silence test under Darwin
41447         * tests/test-closein.sh: Ignore stderr from cat, since we don't
41448         care if it dies from EPIPE or EBADF.
41449
41450 2009-03-03  Bruno Haible  <bruno@clisp.org>
41451
41452         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
41453         earlier.
41454         * doc/visibility.texi: Fix @node and @section.
41455
41456 2009-03-03  Simon Josefsson  <simon@josefsson.org>
41457
41458         * doc/gnulib.texi: Link to sections for ld version script and
41459         visibility.
41460         * doc/visibility.texi: Add @node and @section.
41461         * modules/ld-version-script: New module.
41462         * m4/ld-version-script.m4: New file.
41463         * doc/ld-version-script.texi: New file.
41464
41465 2009-03-02  David Lutterkort  <lutter@redhat.com>
41466
41467         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
41468         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41469
41470 2009-03-02  Bruno Haible  <bruno@clisp.org>
41471
41472         * doc/visibility.texi: Mention libtool's -export-symbols option.
41473
41474 2009-03-02  Jim Meyering  <meyering@redhat.com>
41475
41476         announce-gen: new option: --no-print-checksums
41477         * build-aux/announce-gen (usage): Describe it.
41478         (print_checksums): Print a newline here, not in the [*] footnote.
41479         (main): Honor it.
41480
41481 2009-03-01  Bruno Haible  <bruno@clisp.org>
41482
41483         Use socklen_t in the native Windows replacements prototypes.
41484         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
41485         instead of 'int'.
41486         * lib/getsockopt.c (rpl_getsockopt): Likewise.
41487         * lib/setsockopt.c (rpl_setsockopt): Likewise.
41488         * modules/getsockopt (Depends-on): Add socklen.
41489         * modules/setsockopt (Depends-on): Add socklen.
41490
41491 2009-03-01  Bruno Haible  <bruno@clisp.org>
41492
41493         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
41494         least 4.2.
41495
41496 2009-03-01  Eric Blake  <ebb9@byu.net>
41497             Bruno Haible  <bruno@clisp.org>
41498
41499         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
41500         error messages.
41501         * lib/wait-process.c (wait_subprocess): Omit error message about
41502         deadly signal sent to the child of termsigp != NULL.
41503
41504 2009-03-01  Eric Blake  <ebb9@byu.net>
41505
41506         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
41507
41508 2009-03-01  Bruno Haible  <bruno@clisp.org>
41509
41510         Avoid a gcc warning.
41511         * tests/test-sched.c (b): Make global.
41512         Reported by Eric Blake.
41513
41514 2009-01-19  Martin Lambers  <marlam@marlam.de>
41515
41516         Provide POSIX semantics for socket timeout options on W32.
41517         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
41518         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
41519         * modules/setsockopt: Depend on sys_time module for struct timeval.
41520         * modules/getsockopt: Depend on sys_time module for struct timeval.
41521
41522 2009-03-01  Simon Josefsson  <simon@josefsson.org>
41523
41524         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
41525         __USE_GNU, for consistency with netdb.in.h.
41526         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41527
41528 2009-03-01  Bruno Haible  <bruno@clisp.org>
41529
41530         More support for FreeMiNT.
41531         * lib/fseeko.c (rpl_fseeko): Complete last commit.
41532         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41533
41534 2009-03-01  Bruno Haible  <bruno@clisp.org>
41535
41536         More support for FreeMiNT.
41537         * lib/fpurge.c (fpurge): Correct last commit.
41538         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41539
41540 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41541
41542         Fix unportable awk script in vc-list-files.
41543         * build-aux/vc-list-files: In the replacement awk script, use
41544         substr with a second argument of 1, not zero.
41545         Report by Simon Josefsson.
41546
41547 2009-02-28  Bruno Haible  <bruno@clisp.org>
41548
41549         More support for FreeMiNT.
41550         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
41551         to FreeMiNT today.
41552         * lib/fwriting.c (fwriting): Likewise.
41553         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
41554
41555 2009-02-28  Bruno Haible  <bruno@clisp.org>
41556
41557         * tests/test-freadseek.c (main): Disable test beyond end of file on
41558         FreeMiNT.
41559         * tests/test-ftello.c (main): Likewise.
41560         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41561
41562 2009-02-28  Bruno Haible  <bruno@clisp.org>
41563
41564         Add tentative support for FreeMiNT.
41565         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
41566         * lib/fpurge.c (fpurge): Likewise.
41567         * lib/freadable.c (freadable): Likewise.
41568         * lib/freading.c (freading): Likewise.
41569         * lib/freadptr.c (freadptr): Likewise.
41570         * lib/freadseek.c (freadptrinc): Likewise.
41571         * lib/fseeko.c (rpl_fseeko): Likewise.
41572         * lib/fseterr.c (fseterr): Likewise.
41573         * lib/fwritable.c (fwritable): Likewise.
41574         * lib/fwriting.c (fwriting): Likewise.
41575         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
41576         Hourihane.
41577         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41578
41579 2009-02-28  Bruno Haible  <bruno@clisp.org>
41580
41581         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
41582         SIGCHLD.
41583         Reported by Jim Meyering.
41584
41585 2009-02-28  Bruno Haible  <bruno@clisp.org>
41586
41587         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
41588         Mention the results of these tests on various platforms.
41589         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
41590         order.
41591         * doc/posix-functions/printf.texi: Likewise.
41592         * doc/posix-functions/snprintf.texi: Likewise.
41593         * doc/posix-functions/sprintf.texi: Likewise.
41594         * doc/posix-functions/vfprintf.texi: Likewise.
41595         * doc/posix-functions/vprintf.texi: Likewise.
41596         * doc/posix-functions/vsnprintf.texi: Likewise.
41597         * doc/posix-functions/vsprintf.texi: Likewise.
41598         * doc/glibc-functions/obstack_printf.texi: Likewise.
41599         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41600
41601 2009-02-28  Bruno Haible  <bruno@clisp.org>
41602
41603         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
41604         Reported by Loïc Minier <lool@dooz.org>.
41605
41606 2009-02-27  Bruno Haible  <bruno@clisp.org>
41607
41608         * gnulib-tool (func_import): Make the sed expression used to create the
41609         sed script for updating the .gitignore file POSIX compliant.
41610         Reported by Eric Blake.
41611
41612 2009-02-27  Bruno Haible  <bruno@clisp.org>
41613
41614         * gnulib-tool (sed): Don't alias as "sed --posix".
41615         Reported by Eric Blake.
41616
41617 2009-02-27  Bruno Haible  <bruno@clisp.org>
41618
41619         Avoid test link errors.
41620         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
41621         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
41622         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
41623         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
41624         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41625
41626 2009-02-27  Bruno Haible  <bruno@clisp.org>
41627
41628         Avoid spurious "(cached)" in configure output.
41629         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
41630         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
41631         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41632         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41633         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41634         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41635         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41636         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41637         Reported by Eric Blake.
41638
41639 2009-02-27  Eric Blake  <ebb9@byu.net>
41640
41641         printf: fix regression in previous patch
41642         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41643
41644 2009-02-27  Bruno Haible  <bruno@clisp.org>
41645
41646         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41647         value.
41648         * lib/stdint.in.h: Likewise.
41649         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41650
41651 2009-02-27  Eric Blake  <ebb9@byu.net>
41652
41653         doc: mention more functions added in cygwin 1.7.0
41654         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41655         addition.
41656         * doc/posix-functions/open_wmemstream.texi: Likewise.
41657         * doc/posix-functions/wcsnlen.texi: Likewise.
41658         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41659         * doc/posix-functions/wcstod.texi: Likewise.
41660         * doc/posix-functions/wcstof.texi: Likewise.
41661         * doc/posix-functions/wcstoimax.texi: Likewise.
41662         * doc/posix-functions/wcstok.texi: Likewise.
41663         * doc/posix-functions/wcstoumax.texi: Likewise.
41664
41665         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41666         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41667         * doc/posix-functions/fprintf.texi: Update.
41668         * doc/posix-functions/printf.texi: Update.
41669         * doc/posix-functions/snprintf.texi: Update.
41670         * doc/posix-functions/sprintf.texi: Update.
41671         * doc/posix-functions/vfprintf.texi: Update.
41672         * doc/posix-functions/vprintf.texi: Update.
41673         * doc/posix-functions/vsnprintf.texi: Update.
41674         * doc/posix-functions/vsprintf.texi: Update.
41675         * doc/glibc-functions/obstack_printf.texi: Update.
41676         * doc/glibc-functions/obstack_vprintf.texi: Update.
41677
41678 2009-02-26  Eric Blake  <ebb9@byu.net>
41679
41680         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41681         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41682         compilation bug by using runtime conversion.
41683         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41684         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41685         * modules/ceill-tests (Files): Use nan.h.
41686         * modules/floorl-tests (Files): Likewise.
41687         * modules/frexpl-tests (Files): Likewise.
41688         * modules/isnanl-tests (Files): Likewise.
41689         * modules/ldexpl-tests (Files): Likewise.
41690         * modules/roundl-tests (Files): Likewise.
41691         * modules/truncl-tests (Files): Likewise.
41692         * tests/test-ceill.c (main): Use a working NaN.
41693         * tests/test-floorl.c (main): Likewise.
41694         * tests/test-frexpl.c (main): Likewise.
41695         * tests/test-isnan.c (test_long_double): Likewise.
41696         * tests/test-isnanl.h (main): Likewise.
41697         * tests/test-ldexpl.h (main): Likewise.
41698         * tests/test-roundl.h (main): Likewise.
41699         * tests/test-truncl.h (main): Likewise.
41700         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
41701
41702 2009-02-26  Eric Blake  <ebb9@byu.net>
41703             Bruno Haible  <bruno@clisp.org>
41704
41705         Work around a *printf bug with %ls on Solaris.
41706         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41707         precision is specified, sprintf stops converting the wide string
41708         argument when the number of bytes that have been produced by this
41709         conversion equals or exceeds the precision.
41710         * doc/posix-functions/fprintf.texi: Update.
41711         * doc/posix-functions/printf.texi: Update.
41712         * doc/posix-functions/snprintf.texi: Update.
41713         * doc/posix-functions/sprintf.texi: Update.
41714         * doc/posix-functions/vfprintf.texi: Update.
41715         * doc/posix-functions/vprintf.texi: Update.
41716         * doc/posix-functions/vsnprintf.texi: Update.
41717         * doc/posix-functions/vsprintf.texi: Update.
41718         * doc/glibc-functions/obstack_printf.texi: Update.
41719         * doc/glibc-functions/obstack_vprintf.texi: Update.
41720
41721 2009-02-26  Eric Blake  <ebb9@byu.net>
41722
41723         stdlib: favor compiler check of random.h
41724         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41725         to avoid an ObjC random.h installed by Swarm.
41726
41727 2009-02-26  Bruno Haible  <bruno@clisp.org>
41728
41729         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41730         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41731         Reported by Gary V. Vaughan <gary@gnu.org>.
41732
41733 2009-02-26  Bruno Haible  <bruno@clisp.org>
41734
41735         Fix *printf behaviour regarding the %ls directive.
41736         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
41737         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
41738         NEED_PRINTF_DIRECTIVE_LS.
41739         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
41740         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41741         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41742         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
41743         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
41744         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
41745         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41746         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41747         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41748         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41749         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41750         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
41751         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41752         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41753         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41754         * doc/posix-functions/fprintf.texi: Update.
41755         * doc/posix-functions/printf.texi: Update.
41756         * doc/posix-functions/snprintf.texi: Update.
41757         * doc/posix-functions/sprintf.texi: Update.
41758         * doc/posix-functions/vfprintf.texi: Update.
41759         * doc/posix-functions/vprintf.texi: Update.
41760         * doc/posix-functions/vsnprintf.texi: Update.
41761         * doc/posix-functions/vsprintf.texi: Update.
41762         * doc/glibc-functions/obstack_printf.texi: Update.
41763         * doc/glibc-functions/obstack_vprintf.texi: Update.
41764         Reported by Eric Blake.
41765
41766 2009-02-25  Bruno Haible  <bruno@clisp.org>
41767
41768         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41769         with known value.
41770         Reported by Gary V. Vaughan <gary@gnu.org>.
41771
41772 2009-02-25  Bruno Haible  <bruno@clisp.org>
41773
41774         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41775         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41776         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41777         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41778         Reported by Gary V. Vaughan <gary@gnu.org>.
41779
41780 2009-02-25  Bruno Haible  <bruno@clisp.org>
41781
41782         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41783         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41784         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41785         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41786         Reported by Gary V. Vaughan <gary@gnu.org>.
41787
41788 2009-02-25  Eric Blake  <ebb9@byu.net>
41789
41790         tests: skip fseek/ftell tests if ungetc is broken
41791         * m4/ungetc.m4: New file.
41792         * modules/fseek-tests: Split test, so ungetc dependency is
41793         separate from rest of test.
41794         * modules/fseeko-tests: Likewise.
41795         * modules/ftell-tests: Likewise.
41796         * modules/ftello-tests: Likewise.
41797         * tests/test-fseek.c (main): Isolate ungetc dependency.
41798         * tests/test-fseeko.c (main): Likewise.
41799         * tests/test-ftell.c (main): Likewise.
41800         * tests/test-ftello.c (main): Likewise.
41801         * tests/test-fseek2.sh: New file.
41802         * tests/test-fseeko2.sh: Likewise.
41803         * tests/test-ftell2.sh: Likewise.
41804         * tests/test-ftello2.sh: Likewise.
41805
41806 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
41807
41808         test-getaddrinfo: fix usage of skip return code 77
41809         * tests/test-gettaddrinfo.c: Return skip code 77 only
41810         for first occurance of skip (4x77 is not 77)
41811
41812 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41813
41814         strtod: avoid C99 decl-after-statement
41815         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41816
41817 2009-02-24  Eric Blake  <ebb9@byu.net>
41818
41819         strtod: detect HP-UX 11.31 bug
41820         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41821         Reported by Gary V. Vaughan.
41822
41823 2009-02-23  Bruno Haible  <bruno@clisp.org>
41824
41825         Fix invalid read past end of memory block.
41826         * lib/vasnprintf.c (DCHAR_SET): Define.
41827         (local_wcslen): Define only when needed.
41828         (local_strnlen, local_wcsnlen): New functions.
41829         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41830         directives that involve a conversion ourselves.
41831         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41832         wcsnlen, mbrtowc, wcrtomb.
41833         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41834         * tests/test-vasprintf-posix.c (test_function): Likewise.
41835         * tests/test-snprintf-posix.h (test_function): Likewise.
41836         * tests/test-sprintf-posix.h (test_function): Likewise.
41837         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41838
41839 2009-02-22  Bruno Haible  <bruno@clisp.org>
41840
41841         Implement new clarified decomposition of Hangul syllables.
41842         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41843         of type LTV, return only a pairwise decomposition.
41844         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41845         Likewise.
41846         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41847         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41848         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41849
41850 2009-02-22  Bruno Haible  <bruno@clisp.org>
41851
41852         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41853         zero-length results and shrink excess allocated memory.
41854         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41855         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41856         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41857         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41858         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41859         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41860         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41861         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41862         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41863         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41864         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41865         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41866
41867 2009-02-21  Bruno Haible  <bruno@clisp.org>
41868
41869         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41870         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41871         spaces after a period. Put a space between a macro name and its
41872         argument list. Trivial rewordings.
41873         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41874         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41875         (main): Return 0 explicitly.
41876
41877 2009-02-21  Bruno Haible  <bruno@clisp.org>
41878
41879         Tests for module 'uninorm/filter'.
41880         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41881         * modules/uninorm/filter-tests: New file.
41882
41883         New module 'uninorm/filter'.
41884         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41885         uninorm_filter_flush, uninorm_filter_free): New declarations.
41886         * lib/uninorm/uninorm-filter.c: New file.
41887         * modules/uninorm/filter: New file.
41888
41889 2009-02-21  Bruno Haible  <bruno@clisp.org>
41890
41891         Tests for module 'uninorm/nfkc'.
41892         * tests/uninorm/test-nfkc.c: New file.
41893         * tests/uninorm/test-u8-nfkc.c: New file.
41894         * tests/uninorm/test-u16-nfkc.c: New file.
41895         * tests/uninorm/test-u32-nfkc.c: New file.
41896         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41897         * tests/uninorm/test-u32-nfkc-big.c: New file.
41898         * modules/uninorm/nfkc-tests: New file.
41899
41900         New module 'uninorm/nfkc'.
41901         * lib/uninorm/nfkc.c: New file.
41902         * modules/uninorm/nfkc: New file.
41903
41904         Tests for module 'uninorm/nfkd'.
41905         * tests/uninorm/test-nfkd.c: New file.
41906         * tests/uninorm/test-u8-nfkd.c: New file.
41907         * tests/uninorm/test-u16-nfkd.c: New file.
41908         * tests/uninorm/test-u32-nfkd.c: New file.
41909         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41910         * tests/uninorm/test-u32-nfkd-big.c: New file.
41911         * modules/uninorm/nfkd-tests: New file.
41912
41913         New module 'uninorm/nfkd'.
41914         * lib/uninorm/nfkd.c: New file.
41915         * modules/uninorm/nfkd: New file.
41916
41917         Tests for module 'uninorm/nfc'.
41918         * tests/uninorm/test-nfc.c: New file.
41919         * tests/uninorm/test-u8-nfc.c: New file.
41920         * tests/uninorm/test-u16-nfc.c: New file.
41921         * tests/uninorm/test-u32-nfc.c: New file.
41922         * tests/uninorm/test-u32-nfc-big.sh: New file.
41923         * tests/uninorm/test-u32-nfc-big.c: New file.
41924         * modules/uninorm/nfc-tests: New file.
41925
41926         New module 'uninorm/nfc'.
41927         * lib/uninorm/nfc.c: New file.
41928         * modules/uninorm/nfc: New file.
41929
41930         Tests for module 'uninorm/nfd'.
41931         * tests/uninorm/test-nfd.c: New file.
41932         * tests/uninorm/test-u8-nfd.c: New file.
41933         * tests/uninorm/test-u16-nfd.c: New file.
41934         * tests/uninorm/test-u32-nfd.c: New file.
41935         * tests/uninorm/test-u32-nfd-big.sh: New file.
41936         * tests/uninorm/test-u32-nfd-big.c: New file.
41937         * tests/uninorm/test-u32-normalize-big.h: New file.
41938         * tests/uninorm/test-u32-normalize-big.c: New file.
41939         * tests/uninorm/NormalizationTest.txt: New file, created from
41940         Unicode 5.1.0 NormalizationTest.txt.
41941         * modules/uninorm/nfd-tests: New file.
41942
41943         New module 'uninorm/nfd'.
41944         * lib/uninorm/nfd.c: New file.
41945         * modules/uninorm/nfd: New file.
41946
41947         New module 'uninorm/u32-normalize'.
41948         * lib/uninorm/u32-normalize.c: New file.
41949         * modules/uninorm/u32-normalize: New file.
41950
41951         New module 'uninorm/u16-normalize'.
41952         * lib/uninorm/u16-normalize.c: New file.
41953         * modules/uninorm/u16-normalize: New file.
41954
41955         New module 'uninorm/u8-normalize'.
41956         * lib/uninorm/u8-normalize.c: New file.
41957         * lib/uninorm/normalize-internal.h: New file.
41958         * lib/uninorm/u-normalize-internal.h: New file.
41959         * modules/uninorm/u8-normalize: New file.
41960
41961         New module 'uninorm/decompose-internal'.
41962         * lib/uninorm/decompose-internal.c: New file.
41963         * modules/uninorm/decompose-internal: New file.
41964
41965         Tests for module 'uninorm/composition'.
41966         * tests/uninorm/test-composition.c: New file.
41967         * modules/uninorm/composition-tests: New file.
41968
41969         New module 'uninorm/composition'.
41970         * lib/uninorm/composition.c: New file.
41971         * lib/uninorm/composition-table.gperf: New file, generated by
41972         gen-uni-tables.
41973         * modules/uninorm/composition: New file.
41974
41975         Tests for module 'uninorm/compat-decomposition'.
41976         * tests/uninorm/test-compat-decomposition.c: New file.
41977         * modules/uninorm/compat-decomposition-tests: New file.
41978
41979         New module 'uninorm/compat-decomposition'.
41980         * lib/uninorm/decompose-internal.h: New file.
41981         * lib/uninorm/compat-decomposition.c: New file.
41982         * modules/uninorm/compat-decomposition: New file.
41983
41984         Tests for module 'uninorm/canonical-decomposition'.
41985         * tests/uninorm/test-canonical-decomposition.c: New file.
41986         * modules/uninorm/canonical-decomposition-tests: New file.
41987
41988         New module 'uninorm/canonical-decomposition'.
41989         * lib/uninorm/canonical-decomposition.c: New file.
41990         * modules/uninorm/canonical-decomposition: New file.
41991
41992         Tests for module 'uninorm/decomposition'.
41993         * tests/uninorm/test-decomposition.c: New file.
41994         * modules/uninorm/decomposition-tests: New file.
41995
41996         New module 'uninorm/decomposition'.
41997         * lib/uninorm/decomposition.c: New file.
41998         * modules/uninorm/decomposition: New file.
41999
42000         New module 'uninorm/decomposition-table'.
42001         * lib/uninorm/decomposition-table.h: New file.
42002         * lib/uninorm/decomposition-table.c: New file.
42003         * lib/uninorm/decomposition-table1.h: New file, generated by
42004         gen-uni-tables.
42005         * lib/uninorm/decomposition-table2.h: New file, generated by
42006         gen-uni-tables.
42007         * modules/uninorm/decomposition-table: New file.
42008
42009         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
42010         (UC_DECOMP_*): New enumeration items.
42011         (get_decomposition): New function.
42012         (struct decomp_table): New type.
42013         (output_decomposition, output_decomposition_tables): New functions.
42014         (unicode_composition_exclusions): New variable.
42015         (fill_composition_exclusions, debug_output_composition_tables): New
42016         functions.
42017         (main): Accept one more argument. Invoke fill_composition_exclusions.
42018         Output decomposition and composition tables.
42019
42020         New module 'uninorm/base'.
42021         * lib/uninorm.h: New file.
42022         * lib/unictype.h: Update comment.
42023         * modules/uninorm/base: New file.
42024
42025 2009-02-21  David Lutterkort  <lutter@redhat.com>
42026
42027         Tests for module 'safe-alloc'.
42028         * tests/test-safe-alloc.c: New file.
42029         * modules/safe-alloc-tests: New file.
42030
42031         New module 'safe-alloc'.
42032         * lib/safe-alloc.h: New file.
42033         * lib/safe-alloc.c: New file.
42034         * m4/safe-alloc.m4: New file.
42035         * modules/safe-alloc: New file.
42036         * doc/safe-alloc.texi: New file.
42037         * doc/gnulib.texi: Include it.
42038         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42039         safe-alloc.
42040
42041 2009-02-18  Bruno Haible  <bruno@clisp.org>
42042
42043         Fix link error on non-glibc systems.
42044         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
42045         variable.
42046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42047
42048 2009-02-18  Jim Meyering  <meyering@redhat.com>
42049
42050         fts: avoid used-uninitialized error due to recent change
42051         * lib/fts.c (fts_read): Guard uses of the new member,
42052         parent->fts_n_dirs_remaining, since it's not relevant for
42053         the parent of a directory specified on the command-line.
42054
42055 2009-02-17  James Youngman  <jay@gnu.org>
42056             Bruno Haible  <bruno@clisp.org>
42057
42058         * m4/include_next.m4: Reformulate comment.
42059
42060 2009-02-16  Jim Meyering  <meyering@redhat.com>
42061
42062         fts: add #if guards so that the fts_lgpl module still builds
42063         * lib/fts.c: Guard just-added hash-table-using parts with
42064         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
42065         Reported by Simon Josefsson.
42066
42067 2009-02-15  Bruno Haible  <bruno@clisp.org>
42068
42069         * modules/array-mergesort-tests: New file.
42070         * tests/test-array-mergesort.c: New file.
42071
42072         New module 'array-mergesort'.
42073         * modules/array-mergesort: New file.
42074         * lib/array-mergesort.h: New file.
42075
42076 2009-02-15  Bruno Haible  <bruno@clisp.org>
42077
42078         Fix 2009-02-07 commit.
42079         * lib/gen-uni-tables.c (output_predicate, output_category,
42080         output_combclass, output_bidi_category, output_decimal_digit,
42081         output_digit, output_numeric, output_mirror, output_scripts,
42082         output_ident_category, output_simple_mapping): Fix format directives.
42083         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
42084
42085 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
42086
42087         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
42088         fixes are available from IBM.
42089
42090 2009-02-13  Jim Meyering  <meyering@redhat.com>
42091
42092         fts: arrange not to stat non-directories in more cases
42093         This makes GNU find (when it doesn't need to stat each file)
42094         *much* more efficient at traversing reiserfs file systems.
42095         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
42096         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
42097         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
42098         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
42099         (leaf_optimization_applies): New function.
42100         (LCO_hash, LCO_compare): New helper functions.
42101         (link_count_optimize_ok): New function.
42102         (fts_stat): Initialize new member (if dir).
42103         (fts_read): Decrement parent's fts_n_dirs_remaining count if
42104         we've just stat'ed a directory.  Skip the stat call when possible.
42105         ---
42106         Note this AFS-related exchange:
42107         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
42108         and note find's pioctl call in find/fstype.c.
42109         But that is necessary only if you want to enable the
42110         optimization for AFS, and for now, I don't.
42111
42112         fts: move a function definition "up" (no semantic change)
42113         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
42114         "up" to precede upcoming use of a related function.
42115
42116 2009-02-11  Jim Meyering  <meyering@redhat.com>
42117
42118         fts: correct internal computation of nlinks (optimization-related)
42119         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
42120         whether the current entry is a directory, so don't test it.
42121
42122 2009-02-10  Bruno Haible  <bruno@clisp.org>
42123
42124         Tests for module 'uniwbrk/ulc-wordbreaks'.
42125         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
42126         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
42127         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
42128
42129         Tests for module 'uniwbrk/u32-wordbreaks'.
42130         * modules/uniwbrk/u32-wordbreaks-tests: New file.
42131         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
42132
42133         Tests for module 'uniwbrk/u16-wordbreaks'.
42134         * modules/uniwbrk/u16-wordbreaks-tests: New file.
42135         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
42136
42137         Tests for module 'uniwbrk/u8-wordbreaks'.
42138         * modules/uniwbrk/u8-wordbreaks-tests: New file.
42139         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
42140
42141 2009-02-10  Bruno Haible  <bruno@clisp.org>
42142
42143         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
42144         property.
42145         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
42146         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
42147         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
42148
42149 2009-02-10  Simon Josefsson  <simon@josefsson.org>
42150
42151         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
42152         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
42153
42154 2009-02-10  Bruno Haible  <bruno@clisp.org>
42155
42156         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
42157         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
42158         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
42159         * lib/unilbrk/u8-possible-linebreaks.c: Update.
42160         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
42161         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
42162
42163 2009-02-09  Simon Josefsson  <simon@josefsson.org>
42164
42165         * lib/sockets.h (gl_fd_to_handle): New function.
42166
42167         * tests/test-sockets.c: Call gl_fd_to_handle.
42168
42169 2009-02-09  Bruno Haible  <bruno@clisp.org>
42170
42171         * doc/havelib.texi: Document the conventions on bi-arch systems.
42172
42173 2009-02-08  Bruno Haible  <bruno@clisp.org>
42174
42175         Document the AC_LIB_LINKFLAGS macro.
42176         * doc/havelib.texi: New file, mostly written on 2005-05-24.
42177         * doc/gnulib.texi: Include it.
42178
42179 2009-02-08  Bruno Haible  <bruno@clisp.org>
42180
42181         Fix wrong order of sections, compared to TOC.
42182         * doc/gnulib.texi: Include relocatable-maint.texi after the
42183         "Regular expressions" node, not before.
42184
42185 2009-02-08  Bruno Haible  <bruno@clisp.org>
42186
42187         Tests for module 'unicase/totitle'.
42188         * modules/unicase/totitle-tests: New file.
42189
42190         Tests for module 'unicase/tolower'.
42191         * modules/unicase/tolower-tests: New file.
42192
42193         Tests for module 'unicase/toupper'.
42194         * modules/unicase/toupper-tests: New file.
42195         * tests/unicase/test-mapping-part1.h: New file.
42196         * tests/unicase/test-mapping-part2.h: New file.
42197
42198         New module 'unicase/totitle'.
42199         * modules/unicase/totitle: New file.
42200         * lib/unicase/totitle.c: New file.
42201
42202         New module 'unicase/tolower'.
42203         * modules/unicase/tolower: New file.
42204         * lib/unicase/tolower.c: New file.
42205
42206         New module 'unicase/toupper'.
42207         * modules/unicase/toupper: New file.
42208         * lib/unicase/toupper.c: New file.
42209         * lib/unicase/simple-mapping.h: New file.
42210
42211         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
42212         (mapping_table): New structure.
42213         (output_simple_mapping): New function.
42214         (main): Invoke output_simple_mapping_test and output_simple_mapping.
42215         * modules/gen-uni-tables (Description): Update.
42216         * lib/unicase/toupper.h: New file, automatically generated by
42217         gen-uni-tables.
42218         * lib/unicase/tolower.h: New file, automatically generated by
42219         gen-uni-tables.
42220         * lib/unicase/totitle.h: New file, automatically generated by
42221         gen-uni-tables.
42222         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
42223         gen-uni-tables.
42224         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
42225         gen-uni-tables.
42226         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
42227         gen-uni-tables.
42228
42229         New module 'unicase/base'.
42230         * modules/unicase/base: New file.
42231         * lib/unicase.h: New file.
42232
42233 2009-02-08  Bruno Haible  <bruno@clisp.org>
42234
42235         New module 'uniwbrk/ulc-wordbreaks'.
42236         * modules/uniwbrk/ulc-wordbreaks: New file.
42237         * lib/uniwbrk/ulc-wordbreaks.c: New file.
42238
42239         New module 'uniwbrk/u32-wordbreaks'.
42240         * modules/uniwbrk/u32-wordbreaks: New file.
42241         * lib/uniwbrk/u32-wordbreaks.c: New file.
42242
42243         New module 'uniwbrk/u16-wordbreaks'.
42244         * modules/uniwbrk/u16-wordbreaks: New file.
42245         * lib/uniwbrk/u16-wordbreaks.c: New file.
42246
42247         New module 'uniwbrk/u8-wordbreaks'.
42248         * modules/uniwbrk/u8-wordbreaks: New file.
42249         * lib/uniwbrk/u8-wordbreaks.c: New file.
42250         * lib/uniwbrk/u-wordbreaks.h: New file.
42251
42252         New module 'uniwbrk/table'.
42253         * modules/uniwbrk/table: New file.
42254         * lib/uniwbrk/wbrktable.h: New file.
42255         * lib/uniwbrk/wbrktable.c: New file.
42256
42257         New module 'uniwbrk/wordbreak-property'.
42258         * modules/uniwbrk/wordbreak-property: New file.
42259         * lib/uniwbrk/wordbreak-property.c: New file.
42260
42261         * lib/gen-uni-tables.c (WBP_*): New enum items.
42262         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
42263         (unicode_org_wbp): New variable.
42264         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
42265         New functions.
42266         (wbp_table): New structure.
42267         (output_wbp, output_wbrk_tables): New functions.
42268         (main): Accept additional argument. Invoke fill_org_wbp,
42269         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
42270         output_wbrk_tables.
42271         * modules/gen-uni-tables (Description): Update.
42272         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
42273         gen-uni-tables.
42274
42275         New module 'uniwbrk/base'.
42276         * modules/uniwbrk/base: New file.
42277         * lib/uniwbrk.h: New file.
42278
42279 2009-02-08  Bruno Haible  <bruno@clisp.org>
42280
42281         Update to Unicode 5.1.0.
42282         * lib/gen-uni-tables.c (is_property_alphabetic): Include
42283         U+2185..U+2188.
42284         (is_property_default_ignorable_code_point): Don't include characters
42285         of category Cc or Cs and not-a-characters.
42286         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
42287         U+0D79, U+109E, U+109F, U+A60C.
42288         * lib/unictype/bidi_of.h: Regenerated.
42289         * lib/unictype/blocks.h: Regenerated.
42290         * lib/unictype/categ_C.h: Regenerated.
42291         * lib/unictype/categ_Cf.h: Regenerated.
42292         * lib/unictype/categ_Cn.h: Regenerated.
42293         * lib/unictype/categ_L.h: Regenerated.
42294         * lib/unictype/categ_Ll.h: Regenerated.
42295         * lib/unictype/categ_Lm.h: Regenerated.
42296         * lib/unictype/categ_Lo.h: Regenerated.
42297         * lib/unictype/categ_Lu.h: Regenerated.
42298         * lib/unictype/categ_M.h: Regenerated.
42299         * lib/unictype/categ_Mc.h: Regenerated.
42300         * lib/unictype/categ_Me.h: Regenerated.
42301         * lib/unictype/categ_Mn.h: Regenerated.
42302         * lib/unictype/categ_N.h: Regenerated.
42303         * lib/unictype/categ_Nd.h: Regenerated.
42304         * lib/unictype/categ_Nl.h: Regenerated.
42305         * lib/unictype/categ_No.h: Regenerated.
42306         * lib/unictype/categ_P.h: Regenerated.
42307         * lib/unictype/categ_Pd.h: Regenerated.
42308         * lib/unictype/categ_Pe.h: Regenerated.
42309         * lib/unictype/categ_Pf.h: Regenerated.
42310         * lib/unictype/categ_Pi.h: Regenerated.
42311         * lib/unictype/categ_Po.h: Regenerated.
42312         * lib/unictype/categ_Ps.h: Regenerated.
42313         * lib/unictype/categ_S.h: Regenerated.
42314         * lib/unictype/categ_Sk.h: Regenerated.
42315         * lib/unictype/categ_Sm.h: Regenerated.
42316         * lib/unictype/categ_So.h: Regenerated.
42317         * lib/unictype/categ_of.h: Regenerated.
42318         * lib/unictype/combining.h: Regenerated.
42319         * lib/unictype/ctype_alnum.h: Regenerated.
42320         * lib/unictype/ctype_alpha.h: Regenerated.
42321         * lib/unictype/ctype_graph.h: Regenerated.
42322         * lib/unictype/ctype_lower.h: Regenerated.
42323         * lib/unictype/ctype_print.h: Regenerated.
42324         * lib/unictype/ctype_punct.h: Regenerated.
42325         * lib/unictype/ctype_upper.h: Regenerated.
42326         * lib/unictype/decdigit.h: Regenerated.
42327         * lib/unictype/digit.h: Regenerated.
42328         * lib/unictype/mirror.h: Regenerated.
42329         * lib/unictype/numeric.h: Regenerated.
42330         * lib/unictype/pr_alphabetic.h: Regenerated.
42331         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
42332         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
42333         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
42334         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
42335         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
42336         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
42337         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
42338         * lib/unictype/pr_combining.h: Regenerated.
42339         * lib/unictype/pr_dash.h: Regenerated.
42340         * lib/unictype/pr_decimal_digit.h: Regenerated.
42341         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
42342         * lib/unictype/pr_deprecated.h: Regenerated.
42343         * lib/unictype/pr_diacritic.h: Regenerated.
42344         * lib/unictype/pr_extender.h: Regenerated.
42345         * lib/unictype/pr_format_control.h: Regenerated.
42346         * lib/unictype/pr_grapheme_base.h: Regenerated.
42347         * lib/unictype/pr_grapheme_extend.h: Regenerated.
42348         * lib/unictype/pr_grapheme_link.h: Regenerated.
42349         * lib/unictype/pr_id_continue.h: Regenerated.
42350         * lib/unictype/pr_id_start.h: Regenerated.
42351         * lib/unictype/pr_ideographic.h: Regenerated.
42352         * lib/unictype/pr_ignorable_control.h: Regenerated.
42353         * lib/unictype/pr_lowercase.h: Regenerated.
42354         * lib/unictype/pr_math.h: Regenerated.
42355         * lib/unictype/pr_numeric.h: Regenerated.
42356         * lib/unictype/pr_other_alphabetic.h: Regenerated.
42357         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
42358         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
42359         * lib/unictype/pr_other_id_continue.h: Regenerated.
42360         * lib/unictype/pr_other_lowercase.h: Regenerated.
42361         * lib/unictype/pr_other_math.h: Regenerated.
42362         * lib/unictype/pr_punctuation.h: Regenerated.
42363         * lib/unictype/pr_sentence_terminal.h: Regenerated.
42364         * lib/unictype/pr_soft_dotted.h: Regenerated.
42365         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
42366         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
42367         * lib/unictype/pr_unified_ideograph.h: Regenerated.
42368         * lib/unictype/pr_uppercase.h: Regenerated.
42369         * lib/unictype/pr_xid_continue.h: Regenerated.
42370         * lib/unictype/pr_xid_start.h: Regenerated.
42371         * lib/unictype/pr_zero_width.h: Regenerated.
42372         * lib/unictype/scripts.h: Regenerated.
42373         * lib/unictype/scripts_byname.gperf: Regenerated.
42374         * lib/unictype/sy_java_ident.h: Regenerated.
42375         * lib/unilbrk/lbrkprop1.h: Regenerated.
42376         * lib/unilbrk/lbrkprop2.h: Regenerated.
42377         * tests/unictype/test-categ_C.c: Regenerated.
42378         * tests/unictype/test-categ_Cf.c: Regenerated.
42379         * tests/unictype/test-categ_Cn.c: Regenerated.
42380         * tests/unictype/test-categ_L.c: Regenerated.
42381         * tests/unictype/test-categ_Ll.c: Regenerated.
42382         * tests/unictype/test-categ_Lm.c: Regenerated.
42383         * tests/unictype/test-categ_Lo.c: Regenerated.
42384         * tests/unictype/test-categ_Lu.c: Regenerated.
42385         * tests/unictype/test-categ_M.c: Regenerated.
42386         * tests/unictype/test-categ_Mc.c: Regenerated.
42387         * tests/unictype/test-categ_Me.c: Regenerated.
42388         * tests/unictype/test-categ_Mn.c: Regenerated.
42389         * tests/unictype/test-categ_N.c: Regenerated.
42390         * tests/unictype/test-categ_Nd.c: Regenerated.
42391         * tests/unictype/test-categ_Nl.c: Regenerated.
42392         * tests/unictype/test-categ_No.c: Regenerated.
42393         * tests/unictype/test-categ_P.c: Regenerated.
42394         * tests/unictype/test-categ_Pd.c: Regenerated.
42395         * tests/unictype/test-categ_Pe.c: Regenerated.
42396         * tests/unictype/test-categ_Pf.c: Regenerated.
42397         * tests/unictype/test-categ_Pi.c: Regenerated.
42398         * tests/unictype/test-categ_Po.c: Regenerated.
42399         * tests/unictype/test-categ_Ps.c: Regenerated.
42400         * tests/unictype/test-categ_S.c: Regenerated.
42401         * tests/unictype/test-categ_Sk.c: Regenerated.
42402         * tests/unictype/test-categ_Sm.c: Regenerated.
42403         * tests/unictype/test-categ_So.c: Regenerated.
42404         * tests/unictype/test-ctype_alnum.c: Regenerated.
42405         * tests/unictype/test-ctype_alpha.c: Regenerated.
42406         * tests/unictype/test-ctype_graph.c: Regenerated.
42407         * tests/unictype/test-ctype_lower.c: Regenerated.
42408         * tests/unictype/test-ctype_print.c: Regenerated.
42409         * tests/unictype/test-ctype_punct.c: Regenerated.
42410         * tests/unictype/test-ctype_upper.c: Regenerated.
42411         * tests/unictype/test-decdigit.h: Regenerated.
42412         * tests/unictype/test-digit.h: Regenerated.
42413         * tests/unictype/test-numeric.h: Regenerated.
42414         * tests/unictype/test-pr_alphabetic.c: Regenerated.
42415         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
42416         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
42417         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
42418         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
42419         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
42420         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
42421         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
42422         * tests/unictype/test-pr_combining.c: Regenerated.
42423         * tests/unictype/test-pr_dash.c: Regenerated.
42424         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
42425         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
42426         * tests/unictype/test-pr_deprecated.c: Regenerated.
42427         * tests/unictype/test-pr_diacritic.c: Regenerated.
42428         * tests/unictype/test-pr_extender.c: Regenerated.
42429         * tests/unictype/test-pr_format_control.c: Regenerated.
42430         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
42431         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
42432         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
42433         * tests/unictype/test-pr_id_continue.c: Regenerated.
42434         * tests/unictype/test-pr_id_start.c: Regenerated.
42435         * tests/unictype/test-pr_ideographic.c: Regenerated.
42436         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
42437         * tests/unictype/test-pr_lowercase.c: Regenerated.
42438         * tests/unictype/test-pr_math.c: Regenerated.
42439         * tests/unictype/test-pr_numeric.c: Regenerated.
42440         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
42441         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
42442         Regenerated.
42443         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
42444         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
42445         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
42446         * tests/unictype/test-pr_other_math.c: Regenerated.
42447         * tests/unictype/test-pr_punctuation.c: Regenerated.
42448         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
42449         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
42450         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
42451         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
42452         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
42453         * tests/unictype/test-pr_uppercase.c: Regenerated.
42454         * tests/unictype/test-pr_xid_continue.c: Regenerated.
42455         * tests/unictype/test-pr_xid_start.c: Regenerated.
42456         * tests/unictype/test-pr_zero_width.c: Regenerated.
42457
42458         Update to Unicode 5.1.0.
42459         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
42460         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
42461         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
42462         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
42463         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
42464         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
42465         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
42466         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
42467         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
42468         (nonspacing_table_ind): Update.
42469         * tests/uniwidth/test-uc_width2.sh: Update expected result.
42470
42471         Update to Unicode 5.1.0.
42472         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
42473         code transform.
42474         * lib/uniname/uniname.c (unicode_character_name,
42475         unicode_name_character): Add the range 0x1Fxxx to the code transform.
42476         * lib/uniname/uninames.h: Regenerated.
42477         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
42478
42479 2009-02-07  Bruno Haible  <bruno@clisp.org>
42480
42481         Merge gen-ctype and gen-lbrk into a single program.
42482         * lib/gen-uni-tables.c: New file, incorporating
42483         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
42484         Add directory prefixes to the names of the generated files.
42485         * lib/unictype/gen-ctype.c: Remove file.
42486         * lib/unilbrk/gen-lbrk.c: Remove file.
42487         * modules/gen-uni-tables: New file.
42488         * modules/unictype/gen-ctype: Remove file.
42489         * modules/unilbrk/gen-lbrk: Remove file.
42490
42491 2009-02-07  Bruno Haible  <bruno@clisp.org>
42492
42493         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
42494
42495         New module 'unistr/u32-strcoll'.
42496         * modules/unistr/u32-strcoll: New file.
42497         * lib/unistr/u32-strcoll.c: New file.
42498
42499         New module 'unistr/u16-strcoll'.
42500         * modules/unistr/u16-strcoll: New file.
42501         * lib/unistr/u16-strcoll.c: New file.
42502
42503         New module 'unistr/u8-strcoll'.
42504         * modules/unistr/u8-strcoll: New file.
42505         * lib/unistr/u8-strcoll.c: New file.
42506         * lib/unistr/u-strcoll.h: New file.
42507
42508 2009-02-07  Bruno Haible  <bruno@clisp.org>
42509
42510         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
42511         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42512         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42513         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
42514         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
42515         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
42516
42517 2009-02-07  Bruno Haible  <bruno@clisp.org>
42518
42519         Make 64-bit clean.
42520         * lib/unictype/gen-ctype.c (output_predicate, output_category,
42521         output_combclass, output_bidi_category, output_decimal_digit,
42522         output_digit, output_numeric, output_mirror, output_scripts,
42523         output_ident_category): Use proper width specifier in format strings.
42524
42525 2009-02-07  Bruno Haible  <bruno@clisp.org>
42526
42527         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
42528         failure behaviour.
42529
42530 2009-02-07  Jim Meyering  <meyering@redhat.com>
42531
42532         regex: avoid compilation failure with upcoming gcc-4.4
42533         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
42534         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
42535         "... error: integer overflow in preprocessor expression".
42536
42537 2009-02-05  Ben Pfaff  <blp@gnu.org>
42538
42539         Fix link errors on Windows when close module is used.
42540         * modules/close: Add $(LIB_CLOSE) to Link section.
42541         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
42542         $(LIB_CLOSE) on Windows.
42543
42544 2009-02-05  Jim Meyering  <meyering@redhat.com>
42545
42546         still avoid unused-parameter warnings, but do it cleanly
42547         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
42548         (get_fs_usage): Cast to void instead.
42549         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
42550         (dev_from_mount_options, read_file_system_list): Cast to void.
42551         Prompted by Bruno Haible.
42552
42553 2009-02-04  Jim Meyering  <meyering@redhat.com>
42554
42555         fsusage.c: correct copyright year
42556         * lib/fsusage.c: Reflect year in which the change is pushed into
42557
42558         avoid misc. warnings
42559         * lib/fsusage.c (UNUSED_PARAM): Define.
42560         (get_fs_usage): Mark parameter "disk" as unused.
42561         * lib/getugroups.c (getgrent): Use "void" in prototype.
42562         * lib/mountlist.c: Mark unused parameters.
42563         (read_file_system_list): Declare a local with "const".
42564         * lib/nanosleep.c (getnow): Declare static.
42565         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
42566
42567         dirfd: set errno upon failure
42568         * lib/dirfd.c: Include <errno.h>.
42569         Set errno to ENOTSUP when returning -1.
42570         * modules/dirfd (Depends-on): Add errno.
42571         Suggested by John Kodis <kodis@comcast.net>.
42572
42573 2009-02-01  Bruno Haible  <bruno@clisp.org>
42574
42575         Don't assume sizeof (long) >= sizeof (void *).
42576         * lib/memcmp.c: Include stdint.h.
42577         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
42578         srcp2 to 'const byte *'.
42579         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
42580         types to uintptr_t.
42581         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
42582         * modules/memcmp (Depends-on): Add stdint.
42583         Reported by Ozkan Sezer <sezeroz@gmail.com>.
42584
42585 2009-01-30  Eric Blake  <ebb9@byu.net>
42586
42587         fix more require-before-expand issues
42588         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
42589         expand, AC_PROG_AWK.
42590         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
42591
42592 2009-01-28  Eric Blake  <ebb9@byu.net>
42593
42594         version-etc: use consistent URL formatting
42595         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
42596         Improve formatting.  Use fputs for string without %.
42597
42598 2009-01-28  Jim Meyering  <meyering@redhat.com>
42599
42600         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
42601         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
42602         "underquoted definition of NAME" from autoconf-2.59.
42603
42604 2009-01-28  Bruno Haible  <bruno@clisp.org>
42605
42606         * doc/gnulib.texi: Add "Obsolete modules" to index.
42607
42608 2009-01-28  Jim Meyering  <meyering@redhat.com>
42609
42610         useless-if-before-free: recognize more variants
42611         * build-aux/useless-if-before-free: Also recognize e.g.,
42612         if (NULL != p) free (p);
42613
42614 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
42615
42616         test-getaddrinfo: skip (don't fail) this test when there's no network
42617         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
42618         on the presumption that it means you lack network access.
42619
42620 2009-01-26  Jim Meyering  <meyering@redhat.com>
42621
42622         fflush: avoid warnings on modern systems
42623         * lib/fflush.c (rpl_fflush): Move declarations of locals,
42624         pos and result, into scopes where they're used.
42625
42626 2009-01-26  Eric Blake  <ebb9@byu.net>
42627
42628         Silence warning reintroduced by recent extensions patch.
42629         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
42630         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
42631         autoconf.
42632
42633         Backport improved autoconf semantics of AC_DEFUN_ONCE.
42634         * m4/00gnulib.m4: New file.
42635         * gnulib-tool (func_get_filelist): Always use it.
42636         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
42637         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
42638
42639 2009-01-25  Bruno Haible  <bruno@clisp.org>
42640
42641         Make test-quotearg work on MacOS X and AIX.
42642         * tests/test-quotearg.sh: New file.
42643         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42644         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42645         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42646         include <libintl.h>.
42647         (fake_locale): Remove variable.
42648         (gettext, dgettext, dcgettext): Remove functions.
42649         (main): Instead of setting a fake locale, set a real locale. Call
42650         textdomain and bindtextdomain.
42651         * modules/quotearg-tests (Files): Add the new files.
42652         (Depends-on): Add gettext, setenv, unsetenv.
42653         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42654         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42655         Augment TESTS_ENVIRONMENT.
42656
42657 2009-01-25  Bruno Haible  <bruno@clisp.org>
42658
42659         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42660         fr_FR.ISO8859-1 locale on MacOS X.
42661         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42662         ja_JP.eucJP locale on MacOS X.
42663         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42664         zh_CN.GB18030 locale on MacOS X.
42665
42666 2009-01-25  Bruno Haible  <bruno@clisp.org>
42667
42668         Avoid link errors on MacOS X 10.3.
42669         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42670         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42671
42672 2009-01-25  Bruno Haible  <bruno@clisp.org>
42673
42674         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42675         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42676         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42677         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42678         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42679         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42680         posix_spawnattr_init, posix_spawnattr_setsigmask,
42681         posix_spawnattr_setflags, posix_spawnattr_destroy.
42682
42683         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42684         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42685         * modules/execute (Files): Remove m4/posix_spawn.m4.
42686         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42687         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42688         posix_spawnattr_init, posix_spawnattr_setsigmask,
42689         posix_spawnattr_setflags, posix_spawnattr_destroy.
42690
42691 2009-01-25  Bruno Haible  <bruno@clisp.org>
42692
42693         * lib/glthread/threadlib.c: Include <stdlib.h>.
42694
42695 2009-01-25  Bruno Haible  <bruno@clisp.org>
42696
42697         * lib/glthread/threadlib.c (dummy): New declaration.
42698
42699 2009-01-25  Bruno Haible  <bruno@clisp.org>
42700
42701         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
42702         multibyte characters also for the GB18030 encoding. Don't crash when
42703         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
42704
42705 2009-01-25  Bruno Haible  <bruno@clisp.org>
42706
42707         Avoid redefining 'struct random_data' on OSF/1 5.1.
42708         * lib/stdlib.in.h: Include <random.h> if it exists.
42709         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42710         HAVE_RANDOM_H. Include <random.h> when testing whether
42711         'struct random_data' exists.
42712         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42713
42714 2009-01-25  Bruno Haible  <bruno@clisp.org>
42715
42716         Don't install charset.alias on MacOS X >= 10.3.
42717         * lib/localcharset.c (DARWIN7): New macro.
42718         (get_charset_aliases): Hardcode the result for Darwin7.
42719         * modules/localcharset (install-exec-local): Don't install
42720         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42721
42722 2009-01-25  Bruno Haible  <bruno@clisp.org>
42723
42724         Don't install charset.alias on mingw and Cygwin.
42725         * modules/localcharset (install-exec-local): Don't install
42726         charset.alias on mingw and Cygwin, if the file does not yet exist.
42727         The result for these platforms is hardcoded in localcharset.c.
42728
42729 2009-01-25  Bruno Haible  <bruno@clisp.org>
42730
42731         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42732         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42733         before requiring AC_USE_SYSTEM_EXTENSIONS.
42734
42735 2009-01-25  Jim Meyering  <meyering@redhat.com>
42736
42737         c-strtod: avoid warnings
42738         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
42739         "assignment discards qualifiers from pointer target type" warnings.
42740
42741 2009-01-24  Bruno Haible  <bruno@clisp.org>
42742
42743         Add support for non-UTF-8 locales on MacOS X.
42744         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
42745         canonical encodings. For Darwin 7 and newer, don't map traditional
42746         encodings to UTF-8.
42747         Reported by Vincent Lefevre <vincent@vinc17.org>
42748         at <http://savannah.gnu.org/bugs/?25235>.
42749
42750 2009-01-24  Bruno Haible  <bruno@clisp.org>
42751
42752         * doc/gnulib.texi (Obsolete modules): New section.
42753         Reported by Mike Frysinger <vapier@gentoo.org>.
42754
42755 2009-01-24  Bruno Haible  <bruno@clisp.org>
42756
42757         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42758         (%.dvi): New rule.
42759
42760 2009-01-24  Bruno Haible  <bruno@clisp.org>
42761
42762         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42763         Reported by Eric Blake.
42764
42765 2009-01-24  Bruno Haible  <bruno@clisp.org>
42766
42767         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42768         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42769         Reported by Gary V. Vaughan <gary@gnu.org>.
42770
42771 2009-01-24  Bruno Haible  <bruno@clisp.org>
42772
42773         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42774
42775 2009-01-23  Bruno Haible  <bruno@clisp.org>
42776
42777         Make c-strtod, c-strtold usable in libraries.
42778         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42779         (C_STRTOD): Call strdup instead of xstrdup.
42780         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42781         * modules/c-strtold (Depends-on): Likewise.
42782         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42783         * NEWS: Mention the change.
42784         Reported by Michael Gold <mgold@ncf.ca>.
42785
42786 2009-01-23  Jim Meyering  <meyering@redhat.com>
42787
42788         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42789         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42790         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42791
42792 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42793
42794         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
42795         GNU CoreUtils.
42796         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
42797         * modules/version-etc (Description): Update.
42798
42799 2009-01-22  Bruno Haible  <bruno@clisp.org>
42800
42801         Cache the C locale object.
42802         * lib/c-strtod.c (c_locale_cache): New variable.
42803         (c_locale): New function.
42804         (C_STRTOD): Use it, and don't call freelocale.
42805         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
42806         Suggested by Paolo Bonzini.
42807
42808 2009-01-21  Bruno Haible  <bruno@clisp.org>
42809
42810         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42811         conditions other than overflow.
42812
42813 2009-01-21  Bruno Haible  <bruno@clisp.org>
42814
42815         * lib/c-strtod.c: Include errno.h.
42816         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42817         value from STRTOD_L and STRTOD.
42818
42819 2009-01-21  Bruno Haible  <bruno@clisp.org>
42820         and Jim Meyering  <meyering@redhat.com>
42821
42822         nanosleep: skip configure test (fail it) for apple universal builds
42823         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42824         universal builds, assume that nanosleep does not work.
42825         * modules/nanosleep (Depends-on): Add multiarch.
42826
42827         mktime: skip configure test (fail it) for apple universal builds
42828         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42829         universal builds, assume that mktime does not work.
42830         * modules/mktime (Depends-on): Add multiarch.
42831
42832 2009-01-21  Eric Blake  <ebb9@byu.net>
42833
42834         multiarch: avoid expand-before-require warning
42835         * modules/multiarch (configure.ac): Require, rather than expand,
42836         gl_MULTIARCH.
42837         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42838         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42839         enforce that all clients require it.  Partial reversion of
42840         2008-12-29 patch.
42841
42842         error: avoid expand-before-require warning
42843         * modules/errno (configure.ac): Require, rather than expand,
42844         gl_HEADER_ERRNO_H.
42845         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42846         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42847         enforce that all clients require it.
42848
42849         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42850         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42851         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42852         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42853
42854 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42855
42856         Revert:
42857         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42858
42859         regex: do not depend on obsolete modules.
42860         * modules/regex: Remove memcmp and memmove.
42861
42862 2009-01-20  Bruno Haible  <bruno@clisp.org>
42863
42864         Make the 'link' module link on Windows NT 4.
42865         * lib/link.c (_WIN32_WINNT): Don't define.
42866         (CreateHardLinkFuncType): New type.
42867         (CreateHardLinkFunc, initialized): New variables.
42868         (initialize): New function.
42869         (link): Invoke CreateHardLink indirectly through the function pointer.
42870
42871 2009-01-20  Bruno Haible  <bruno@clisp.org>
42872
42873         Fix compilation failure on mingw.
42874         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42875
42876 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42877
42878         * doc/c-strtod.texi: Mention a couple of restrictions.
42879
42880 2009-01-20  Jim Meyering  <meyering@redhat.com>
42881
42882         gettimeofday: move more declarations out of functions
42883         * lib/gettimeofday.c: Move extern declarations of tzset and
42884         gmtime out of containing functions.  Prompted by Bruno Haible.
42885
42886 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42887
42888         regex: do not depend on obsolete modules.
42889         * modules/regex: Remove memcmp and memmove.
42890
42891 2009-01-19  Bruno Haible  <bruno@clisp.org>
42892
42893         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42894         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42895         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42896         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42897         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42898
42899 2009-01-19  Bruno Haible  <bruno@clisp.org>
42900
42901         * tests/test-link.c: Include <errno.h>.
42902         (main): Exit with code 77 when a hard link cannot be created due to
42903         the file system.
42904         * tests/test-link.sh: Skip test when a hard link cannot be created due
42905         to the file system.
42906         Suggested by Eric Blake.
42907
42908 2009-01-19  Martin Lambers  <marlam@marlam.de>
42909
42910         * modules/link-tests: New file.
42911         * tests/test-link.sh: New file.
42912         * tests/test-link.c: New file.
42913
42914 2009-01-19  Eric Blake  <ebb9@byu.net>
42915
42916         doc: mention another function added in cygwin 1.7.0
42917         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42918         Another new function in cygwin 1.7.
42919
42920 2009-01-19  Bruno Haible  <bruno@clisp.org>
42921
42922         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42923         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42924         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42925         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42926         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42927         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42928         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42929         * m4/md4.m4 (gl_MD4): Likewise.
42930         * m4/md5.m4 (gl_MD5): Likewise.
42931         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42932         * m4/sha1.m4 (gl_SHA1): Likewise.
42933         * m4/sha256.m4 (gl_SHA256): Likewise.
42934         * m4/sha512.m4 (gl_SHA512): Likewise.
42935
42936 2009-01-19  Bruno Haible  <bruno@clisp.org>
42937
42938         * modules/uniname/uniname-tests (Depends-on): Add progname.
42939         * tests/uniname/test-uninames.c: Include progname.h.
42940         (main): Call set_program_name.
42941
42942         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42943         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42944         (main): Call set_program_name.
42945
42946         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42947         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42948         (main): Call set_program_name.
42949
42950         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42951         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42952         (main): Call set_program_name.
42953
42954         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42955         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42956         (main): Call set_program_name.
42957
42958         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42959         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42960         (main): Call set_program_name.
42961
42962         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42963         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42964         (main): Call set_program_name.
42965
42966         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42967         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42968         (main): Call set_program_name.
42969
42970         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42971         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42972         (main): Call set_program_name.
42973
42974 2009-01-19  Eric Blake  <ebb9@byu.net>
42975
42976         test-unistd: test previous patch
42977         * tests/test-unistd.c: Test *_FILENO macros.
42978
42979         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42980         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42981         Guarantee a definition.
42982         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42983         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42984         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42985         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42986         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42987         Likewise.
42988         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42989         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42990         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42991         Likewise.
42992         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42993         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42994         (STDERR_FILENO): Likewise.
42995         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42996         (STDERR_FILENO): Likewise.
42997         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42998         (STDERR_FILENO): Likewise.
42999         Reported by Elbert Pol.
43000
43001 2009-01-19  Eric Blake  <ebb9@byu.net>
43002
43003         doc: mention more functions added in cygwin 1.7.0
43004         * doc/posix-functions/abort.texi (abort): Update wording related
43005         to cygwin.
43006         * doc/posix-functions/daylight.texi (daylight): Likewise.
43007         * doc/posix-functions/optarg.texi (optarg): Likewise.
43008         * doc/posix-functions/optarg.texi (opterr): Likewise.
43009         * doc/posix-functions/optarg.texi (optind): Likewise.
43010         * doc/posix-functions/optarg.texi (optopt): Likewise.
43011         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
43012         worked in 1.5.x, and was withdrawn in 1.7.
43013         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43014         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
43015         cygwin versions.
43016         * doc/posix-functions/perror.texi (perror): Likewise.
43017         * doc/posix-functions/printf.texi (printf): Likewise.
43018         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
43019         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
43020         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43021         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43022         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43023         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
43024         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43025         Likewise.
43026         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43027         Likewise.
43028         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
43029         this function.
43030         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
43031         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
43032         Likewise.
43033         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
43034         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
43035         * doc/posix-functions/confstr.texi (confstr): Likewise.
43036         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
43037         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
43038         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
43039         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
43040         * doc/posix-functions/fputws.texi (fputws): Likewise.
43041         * doc/posix-functions/fwide.texi (fwide): Likewise.
43042         * doc/posix-functions/getwc.texi (getwc): Likewise.
43043         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
43044         * doc/posix-functions/putwc.texi (putwc): Likewise.
43045         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43046         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
43047         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
43048         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43049         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
43050         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
43051         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
43052         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
43053         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
43054         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
43055         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
43056
43057 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43058
43059         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
43060         * lib/ioctl.c: Include <sys/ioctl.h>.
43061
43062 2009-01-19  Simon Josefsson  <simon@josefsson.org>
43063
43064         * modules/getdate-tests (Depends-on): Add progname.
43065         * tests/test-getdate.c: Use progname module, to avoid link errors
43066         on non-glibc systems.
43067
43068 2009-01-18  Simon Josefsson  <simon@josefsson.org>
43069
43070         * modules/filenamecat-tests (Depends-on): Add progname.
43071         * modules/fstrcmp-tests (Depends-on): Likewise.
43072
43073         * tests/test-filenamecat.c: Use progname module, to avoid link
43074         errors on non-glibc systems.
43075         * tests/test-fstrcmp.c: Likewise.
43076
43077 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43078
43079         gettimeofday: avoid warning: nested extern declaration of 'localtime'
43080         * lib/gettimeofday.c: Move extern declaration out of function.
43081
43082 2009-01-18  Bruno Haible  <bruno@clisp.org>
43083
43084         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
43085         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
43086         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
43087
43088 2009-01-18  Bruno Haible  <bruno@clisp.org>
43089
43090         * lib/strftime.c (MEMPCPY): Remove unused macro.
43091         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
43092
43093 2009-01-18  Martin Lambers  <marlam@marlam.de>
43094
43095         New module 'link'.
43096         * lib/unistd.in.h (link): New declaration.
43097         * lib/link.c: New file.
43098         * m4/link.m4: New file.
43099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
43100         HAVE_LINK.
43101         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
43102         * modules/link: New file.
43103         * doc/posix-functions/link.texi: Mention the new module.
43104
43105 2009-01-18  Bruno Haible  <bruno@clisp.org>
43106
43107         * tests/test-avltree_list.c (main): Call set_program_name.
43108         * tests/test-avltree_oset.c (main): Likewise.
43109         * tests/test-obstack-printf.c: Include progname.h.
43110         (main): Call set_program_name.
43111         * tests/test-quotearg.c: Include progname.h.
43112         (main): Call set_program_name.
43113         * tests/test-xmemdup0.c: Include progname.h.
43114         (main): Call set_program_name.
43115
43116 2009-01-18  Bruno Haible  <bruno@clisp.org>
43117
43118         New module 'alphasort'.
43119         * lib/dirent.in.h (alphasort): New declaration.
43120         * lib/alphasort.c: New file, from glibc with modifications.
43121         * m4/alphasort.m4: New file.
43122         * modules/alphasort: New file.
43123         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
43124         HAVE_ALPHASORT.
43125         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
43126         HAVE_ALPHASORT.
43127         * doc/posix-functions/alphasort.texi: Mention the new module and the
43128         portability problems.
43129
43130 2009-01-18  Bruno Haible  <bruno@clisp.org>
43131
43132         New module 'scandir'.
43133         * lib/dirent.in.h (scandir): New declaration.
43134         * lib/scandir.c: New file, from glibc with modifications.
43135         * m4/scandir.m4: New file.
43136         * modules/scandir: New file.
43137         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
43138         HAVE_SCANDIR.
43139         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
43140         HAVE_SCANDIR.
43141         * doc/posix-functions/scandir.texi: Mention the new module and the
43142         portability problems.
43143
43144 2009-01-17  Bruno Haible  <bruno@clisp.org>
43145
43146         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
43147         Update documentation.
43148         (func_remove_suffix): Escape all dots in the suffix. Update
43149         documentation.
43150         (func_filter_filelist): Update documentation.
43151         Reported by Ralf Wildenhues.
43152
43153 2009-01-17  Bruno Haible  <bruno@clisp.org>
43154
43155         * modules/dprintf-posix-tests: New file.
43156         * tests/test-dprintf-posix.sh: New file.
43157         * tests/test-dprintf-posix.c: New file.
43158
43159         New modules 'dprintf', 'dprintf-posix'.
43160         * lib/stdio.in.h (dprintf): New declaration.
43161         * lib/dprintf.c: New file.
43162         * m4/dprintf.m4: New file.
43163         * m4/dprintf-posix.m4: New file.
43164         * modules/dprintf: New file.
43165         * modules/dprintf-posix: New file.
43166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
43167         HAVE_DPRINTF, REPLACE_DPRINTF.
43168         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
43169         HAVE_DPRINTF, REPLACE_DPRINTF.
43170         * doc/posix-functions/dprintf.texi: Mention the new modules.
43171
43172 2009-01-17  Bruno Haible  <bruno@clisp.org>
43173
43174         * modules/vdprintf-posix-tests: New file.
43175         * tests/test-vdprintf-posix.sh: New file.
43176         * tests/test-vdprintf-posix.c: New file.
43177
43178         New modules 'vdprintf', 'vdprintf-posix'.
43179         * lib/stdio.in.h (vdprintf): New declaration.
43180         * lib/vdprintf.c: New file.
43181         * m4/vdprintf.m4: New file.
43182         * m4/vdprintf-posix.m4: New file.
43183         * modules/vdprintf: New file.
43184         * modules/vdprintf-posix: New file.
43185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
43186         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43187         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
43188         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43189         * doc/posix-functions/vdprintf.texi: Mention the new modules.
43190
43191 2009-01-17  Bruno Haible  <bruno@clisp.org>
43192
43193         Fix replacement of fopen on mingw.
43194         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
43195         mingw.
43196
43197 2009-01-17  Bruno Haible  <bruno@clisp.org>
43198
43199         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
43200         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
43201
43202 2009-01-17  Bruno Haible  <bruno@clisp.org>
43203
43204         Avoid test-fflush2.sh failure on mingw.
43205         * tests/test-fflush2.c: Include binary-io.h.
43206         (main): Put standard input into binary mode.
43207         * modules/fflush-tests (Depends-on): Add binary-io.
43208
43209 2009-01-17  Bruno Haible  <bruno@clisp.org>
43210
43211         * lib/wchar.in.h: In another particular situation, include only the
43212         system's <wchar.h> file.
43213         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
43214         Reported by Albert Chin-A-Young <china@thewrittenword.com>
43215         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
43216
43217 2009-01-17  Bruno Haible  <bruno@clisp.org>
43218
43219         Support for stripping executables in --enable-relocatable.
43220         * build-aux/install-reloc: Expect one more argument, or an environment
43221         variable RELOC_STRIP_PROG. If set, strip the destination program and
43222         its wrapper.
43223         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
43224         RELOC_STRIP_PROG.
43225         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
43226         to set RELOCATABLE_STRIP.
43227         * NEWS: Mention the new Makefile requirement.
43228
43229 2009-01-17  Bruno Haible  <bruno@clisp.org>
43230
43231         * build-aux/install-reloc: Remove debugging information left over by
43232         C compiler on MacOS X.
43233
43234 2009-01-17  Bruno Haible  <bruno@clisp.org>
43235
43236         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
43237         * lib/progreloc.c (find_executable): Fix type of pointer passed to
43238         _NSGetExecutablePath.
43239
43240 2009-01-16  Jim Meyering  <meyering@redhat.com>
43241
43242         strerror: avoid warnings about discarding "const"
43243         * lib/strerror.c (rpl_strerror): Instead of returning a const
43244         string from each and every "case", use a variable, and add a single
43245         cast after the switch.
43246
43247 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
43248
43249         * lib/arpa_inet.in.h: Add extern "C" block for C++.
43250
43251 2009-01-16  Bruno Haible  <bruno@clisp.org>
43252
43253         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
43254         array initializer syntax that also works in C++ mode.
43255         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43256
43257 2009-01-16  Jim Meyering  <meyering@redhat.com>
43258
43259         poll: suppress a warning
43260         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
43261         to ignore "...unsigned expression < 0 is always false" warnings.
43262
43263 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
43264
43265         poll: remove declarations of unused variables
43266         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
43267         sockbuf and optlen.
43268
43269 2009-01-15  Bruno Haible  <bruno@clisp.org>
43270
43271         Make fflush-after-ungetc POSIX compliant on BSD systems.
43272         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
43273         (clear_ungetc_buffer): Implement also for other systems.
43274         (rpl_fflush): On glibc systems, invoke
43275         clear_ungetc_buffer_preserving_position. Otherwise, invoke
43276         clear_ungetc_buffer after fetching the stream's position, not before.
43277
43278 2009-01-15  Bruno Haible  <bruno@clisp.org>
43279
43280         Make fflush-after-ungetc POSIX compliant on glibc systems.
43281         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
43282         after ungetc.
43283         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
43284         (rpl_fflush): On glibc systems, simply call the system's fflush
43285         function after clearing the ungetc buffer.
43286         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
43287         Instead, lseek only to the end of file, then use the system's fseeko
43288         for the rest. On glibc systems, reset the EOF indicator bit.
43289
43290 2009-01-15  Jim Meyering  <meyering@redhat.com>
43291
43292         openmp.m4: revert quote-adding change, for portability to older autoconf
43293         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
43294         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
43295         Simon Josefsson noticed the problem when using autoconf-2.61.
43296
43297 2009-01-15  Bruno Haible  <bruno@clisp.org>
43298
43299         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
43300         * tests/test-fflush2.c (ASSERT): Always fail.
43301         (main): Add two tests for fflush() after ungetc(), taking into account
43302         the Austin Group's clarification.
43303         Suggested by Eric Blake.
43304
43305 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
43306
43307         mktime.m4: remove K&R-style function prototypes
43308         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
43309         for the Sun C++ compiler.
43310
43311 2009-01-14  Bruno Haible  <bruno@clisp.org>
43312
43313         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
43314         while including <wchar.h>.
43315         * lib/wchar.in.h: In two particular situations on HP-UX, include only
43316         the system's <wchar.h> file.
43317         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43318
43319 2009-01-14  Bruno Haible  <bruno@clisp.org>
43320
43321         * m4/csharp.m4: Don't mention gettext on the serial number line.
43322         * m4/csharpexec.m4: Likewise.
43323         * m4/eaccess.m4: Likewise.
43324         * m4/javaexec.m4: Likewise.
43325         * m4/sig_atomic_t.m4: Likewise.
43326         * m4/tmpdir.m4: Likewise.
43327         * m4/intldir.m4: Bump gettext version.
43328         * m4/lib-ld.m4: Likewise.
43329
43330 2009-01-14  Bruno Haible  <bruno@clisp.org>
43331
43332         * lib/progname.c (set_program_name): Add more comments.
43333         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43334
43335 2009-01-14  Simon Josefsson  <simon@josefsson.org>
43336
43337         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
43338         were sys/stat.h does not define it.
43339
43340 2009-01-14  Jim Meyering  <meyering@redhat.com>
43341
43342         many *.m4 files: improve m4 quoting
43343         99% of this change was performed by running the following commands:
43344         git ls-files | grep '\.m4$' | xargs perl -pi \
43345           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
43346           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43347           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43348           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
43349         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
43350         The remainder were to add Copyright dates, increment serial numbers,
43351         undo some changes in comments, exclude m4/intl.m4, and add quotes
43352         around the "1" in ",1" where the unusual spacing prohibited the
43353         above regexps from doing the job.  For more details, see
43354         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
43355         * m4/acl.m4: Modified.
43356         * m4/afs.m4: Likewise.
43357         * m4/alloca.m4: Likewise.
43358         * m4/argp.m4: Likewise.
43359         * m4/argz.m4: Likewise.
43360         * m4/atexit.m4: Likewise.
43361         * m4/bison-i18n.m4: Likewise.
43362         * m4/bison.m4: Likewise.
43363         * m4/byteswap.m4: Likewise.
43364         * m4/c-stack.m4: Likewise.
43365         * m4/c-strtod.m4: Likewise.
43366         * m4/calloc.m4: Likewise.
43367         * m4/canonicalize-lgpl.m4: Likewise.
43368         * m4/chown.m4: Likewise.
43369         * m4/clock_time.m4: Likewise.
43370         * m4/codeset.m4: Likewise.
43371         * m4/copy-file.m4: Likewise.
43372         * m4/csharp.m4: Likewise.
43373         * m4/csharpcomp.m4: Likewise.
43374         * m4/csharpexec.m4: Likewise.
43375         * m4/d-ino.m4: Likewise.
43376         * m4/d-type.m4: Likewise.
43377         * m4/dirfd.m4: Likewise.
43378         * m4/double-slash-root.m4: Likewise.
43379         * m4/eaccess.m4: Likewise.
43380         * m4/eealloc.m4: Likewise.
43381         * m4/environ.m4: Likewise.
43382         * m4/errno_h.m4: Likewise.
43383         * m4/euidaccess.m4: Likewise.
43384         * m4/execute.m4: Likewise.
43385         * m4/fatal-signal.m4: Likewise.
43386         * m4/fchdir.m4: Likewise.
43387         * m4/fcntl_h.m4: Likewise.
43388         * m4/fileblocks.m4: Likewise.
43389         * m4/filenamecat.m4: Likewise.
43390         * m4/findprog.m4: Likewise.
43391         * m4/flexmember.m4: Likewise.
43392         * m4/fnmatch.m4: Likewise.
43393         * m4/fopen.m4: Likewise.
43394         * m4/fpending.m4: Likewise.
43395         * m4/fprintf-posix.m4: Likewise.
43396         * m4/free.m4: Likewise.
43397         * m4/frexp.m4: Likewise.
43398         * m4/frexpl.m4: Likewise.
43399         * m4/fsusage.m4: Likewise.
43400         * m4/ftruncate.m4: Likewise.
43401         * m4/gc-camellia.m4: Likewise.
43402         * m4/gc-random.m4: Likewise.
43403         * m4/gc.m4: Likewise.
43404         * m4/getaddrinfo.m4: Likewise.
43405         * m4/getcwd-abort-bug.m4: Likewise.
43406         * m4/getcwd-path-max.m4: Likewise.
43407         * m4/getdate.m4: Likewise.
43408         * m4/getdomainname.m4: Likewise.
43409         * m4/getgroups.m4: Likewise.
43410         * m4/gethostname.m4: Likewise.
43411         * m4/gethrxtime.m4: Likewise.
43412         * m4/getline.m4: Likewise.
43413         * m4/getloadavg.m4: Likewise.
43414         * m4/getndelim2.m4: Likewise.
43415         * m4/getpass.m4: Likewise.
43416         * m4/gettext.m4: Likewise.
43417         * m4/gettime.m4: Likewise.
43418         * m4/gettimeofday.m4: Likewise.
43419         * m4/gnulib-common.m4: Likewise.
43420         * m4/group-member.m4: Likewise.
43421         * m4/host-os.m4: Likewise.
43422         * m4/iconv.m4: Likewise.
43423         * m4/iconv_open.m4: Likewise.
43424         * m4/inet_ntop.m4: Likewise.
43425         * m4/inet_pton.m4: Likewise.
43426         * m4/inline.m4: Likewise.
43427         * m4/intldir.m4: Likewise.
43428         * m4/intlmacosx.m4: Likewise.
43429         * m4/intmax.m4: Likewise.
43430         * m4/intmax_t.m4: Likewise.
43431         * m4/inttypes.m4: Likewise.
43432         * m4/inttypes_h.m4: Likewise.
43433         * m4/inttypes-pri.m4: Likewise.
43434         * m4/isapipe.m4: Likewise.
43435         * m4/isnand.m4: Likewise.
43436         * m4/isnanf.m4: Likewise.
43437         * m4/isnanl.m4: Likewise.
43438         * m4/javacomp.m4: Likewise.
43439         * m4/javaexec.m4: Likewise.
43440         * m4/jm-winsz1.m4: Likewise.
43441         * m4/jm-winsz2.m4: Likewise.
43442         * m4/lchown.m4: Likewise.
43443         * m4/lcmessage.m4: Likewise.
43444         * m4/ldexpl.m4: Likewise.
43445         * m4/lib-ld.m4: Likewise.
43446         * m4/lib-link.m4: Likewise.
43447         * m4/libsigsegv.m4: Likewise.
43448         * m4/link-follow.m4: Likewise.
43449         * m4/localcharset.m4: Likewise.
43450         * m4/locale-fr.m4: Likewise.
43451         * m4/locale-ja.m4: Likewise.
43452         * m4/locale-tr.m4: Likewise.
43453         * m4/locale-zh.m4: Likewise.
43454         * m4/lock.m4: Likewise.
43455         * m4/longlong.m4: Likewise.
43456         * m4/ls-mntd-fs.m4: Likewise.
43457         * m4/lstat.m4: Likewise.
43458         * m4/malloc.m4: Likewise.
43459         * m4/mathl.m4: Likewise.
43460         * m4/mbrtowc.m4: Likewise.
43461         * m4/mbstate_t.m4: Likewise.
43462         * m4/mbswidth.m4: Likewise.
43463         * m4/memchr.m4: Likewise.
43464         * m4/memcmp.m4: Likewise.
43465         * m4/memcpy.m4: Likewise.
43466         * m4/memmem.m4: Likewise.
43467         * m4/memmove.m4: Likewise.
43468         * m4/mempcpy.m4: Likewise.
43469         * m4/memrchr.m4: Likewise.
43470         * m4/memset.m4: Likewise.
43471         * m4/minmax.m4: Likewise.
43472         * m4/mkdir-slash.m4: Likewise.
43473         * m4/mkdtemp.m4: Likewise.
43474         * m4/mktime.m4: Likewise.
43475         * m4/mmap-anon.m4: Likewise.
43476         * m4/mountlist.m4: Likewise.
43477         * m4/nanosleep.m4: Likewise.
43478         * m4/nls.m4: Likewise.
43479         * m4/nocrash.m4: Likewise.
43480         * m4/open.m4: Likewise.
43481         * m4/openat.m4: Likewise.
43482         * m4/openmp.m4: Likewise.
43483         * m4/pathmax.m4: Likewise.
43484         * m4/perl.m4: Likewise.
43485         * m4/physmem.m4: Likewise.
43486         * m4/pipe.m4: Likewise.
43487         * m4/po.m4: Likewise.
43488         * m4/poll.m4: Likewise.
43489         * m4/posixtm.m4: Likewise.
43490         * m4/posixver.m4: Likewise.
43491         * m4/printf-frexp.m4: Likewise.
43492         * m4/printf-frexpl.m4: Likewise.
43493         * m4/printf-posix.m4: Likewise.
43494         * m4/printf-posix-rpl.m4: Likewise.
43495         * m4/printf.m4: Likewise.
43496         * m4/progtest.m4: Likewise.
43497         * m4/putenv.m4: Likewise.
43498         * m4/readline.m4: Likewise.
43499         * m4/readlink.m4: Likewise.
43500         * m4/readutmp.m4: Likewise.
43501         * m4/realloc.m4: Likewise.
43502         * m4/regex.m4: Likewise.
43503         * m4/relocatable.m4: Likewise.
43504         * m4/relocatable-lib.m4: Likewise.
43505         * m4/rename-dest-slash.m4: Likewise.
43506         * m4/rename.m4: Likewise.
43507         * m4/rmdir-errno.m4: Likewise.
43508         * m4/rmdir.m4: Likewise.
43509         * m4/roundf.m4: Likewise.
43510         * m4/roundl.m4: Likewise.
43511         * m4/rpmatch.m4: Likewise.
43512         * m4/save-cwd.m4: Likewise.
43513         * m4/selinux-selinux-h.m4: Likewise.
43514         * m4/setenv.m4: Likewise.
43515         * m4/settime.m4: Likewise.
43516         * m4/sig2str.m4: Likewise.
43517         * m4/sig_atomic_t.m4: Likewise.
43518         * m4/signalblocking.m4: Likewise.
43519         * m4/signbit.m4: Likewise.
43520         * m4/sigpipe.m4: Likewise.
43521         * m4/sockets.m4: Likewise.
43522         * m4/sockpfaf.m4: Likewise.
43523         * m4/st_dm_mode.m4: Likewise.
43524         * m4/stat-time.m4: Likewise.
43525         * m4/stdbool.m4: Likewise.
43526         * m4/stdint.m4: Likewise.
43527         * m4/stdint_h.m4: Likewise.
43528         * m4/stpcpy.m4: Likewise.
43529         * m4/stpncpy.m4: Likewise.
43530         * m4/strcase.m4: Likewise.
43531         * m4/strchrnul.m4: Likewise.
43532         * m4/strcspn.m4: Likewise.
43533         * m4/strdup.m4: Likewise.
43534         * m4/strftime.m4: Likewise.
43535         * m4/strndup.m4: Likewise.
43536         * m4/strnlen.m4: Likewise.
43537         * m4/strpbrk.m4: Likewise.
43538         * m4/strptime.m4: Likewise.
43539         * m4/strsep.m4: Likewise.
43540         * m4/strtod.m4: Likewise.
43541         * m4/strtoimax.m4: Likewise.
43542         * m4/strtok_r.m4: Likewise.
43543         * m4/strtol.m4: Likewise.
43544         * m4/strtoll.m4: Likewise.
43545         * m4/strtoul.m4: Likewise.
43546         * m4/strtoull.m4: Likewise.
43547         * m4/strtoumax.m4: Likewise.
43548         * m4/strverscmp.m4: Likewise.
43549         * m4/threadlib.m4: Likewise.
43550         * m4/timegm.m4: Likewise.
43551         * m4/tm_gmtoff.m4: Likewise.
43552         * m4/tmpdir.m4: Likewise.
43553         * m4/tmpfile.m4: Likewise.
43554         * m4/tzset.m4: Likewise.
43555         * m4/uintmax_t.m4: Likewise.
43556         * m4/unlinkdir.m4: Likewise.
43557         * m4/unlocked-io.m4: Likewise.
43558         * m4/uptime.m4: Likewise.
43559         * m4/userspec.m4: Likewise.
43560         * m4/utimbuf.m4: Likewise.
43561         * m4/utime.m4: Likewise.
43562         * m4/utimes-null.m4: Likewise.
43563         * m4/utimes.m4: Likewise.
43564         * m4/vararrays.m4: Likewise.
43565         * m4/vasnprintf.m4: Likewise.
43566         * m4/vfprintf-posix.m4: Likewise.
43567         * m4/vprintf-posix.m4: Likewise.
43568         * m4/wait-process.m4: Likewise.
43569         * m4/wchar_t.m4: Likewise.
43570         * m4/wint_t.m4: Likewise.
43571         * m4/write-any-file.m4: Likewise.
43572         * m4/yield.m4: Likewise.
43573
43574 2009-01-13  Bruno Haible  <bruno@clisp.org>
43575
43576         Avoid test-copy-file.sh failures when ACL support insufficient.
43577         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
43578         TESTS_ENVIRONMENT.
43579         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
43580         Reported by Jim Meyering.
43581
43582 2009-01-13  Bruno Haible  <bruno@clisp.org>
43583
43584         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
43585         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
43586         * modules/unistdio/u8-printf-parse (Files): Likewise.
43587         * modules/unistdio/u32-printf-parse (Files): Likewise.
43588         * modules/unistdio/ulc-printf-parse (Files): Likewise.
43589
43590 2009-01-13  Simon Josefsson  <simon@josefsson.org>
43591
43592         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
43593         and m4/inttypes_h.m4 too.
43594
43595 2009-01-12  Eric Blake  <ebb9@byu.net>
43596
43597         tests: IRIX 6.2 cc can't compile -0.0 into .data
43598         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
43599         rather than at compile-time.
43600         * tests/test-floorl.c (minus_zero): Likewise.
43601         * tests/test-frexpl.c (minus_zero): Likewise.
43602         * tests/test-isnan.c (minus_zerol): Likewise.
43603         * tests/test-isnanl.h (minus_zero): Likewise.
43604         * tests/test-ldexpl.c (minus_zero): Likewise.
43605         * tests/test-roundl.c (minus_zero): Likewise.
43606         * tests/test-signbit.c (minus_zerol): Likewise.
43607         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43608         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43609         * tests/test-truncl.c (minus_zero): Likewise.
43610         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43611         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43612         Reported by Tom G. Christensen and Nelson H. F. Beebe.
43613
43614 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43615
43616         regex: fix glibc bug 9697
43617         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
43618         handling.
43619
43620 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43621
43622         regex: fix glibc bug 697
43623         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
43624         being NULL also if there are no backreferences.
43625
43626 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43627
43628         regex: merge glibc changes
43629         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
43630         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
43631         re_string_skip_chars, re_string_reconstruct): Likewise.
43632         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
43633
43634 2009-01-07  Jim Meyering  <meyering@redhat.com>
43635
43636         poll: filter through cppi
43637         * lib/poll.c: Indent cpp directives to reflect nesting.
43638
43639 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
43640
43641         poll: don't return uninitialized
43642         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43643
43644 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43645
43646         avoid compile failure on AIX 6.1
43647         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43648         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43649
43650 2009-01-04  Jim Meyering  <meyering@redhat.com>
43651
43652         remove duplicate inclusion of <stdio.h>
43653         * tests/test-fprintf-posix.c: Likewise.
43654         * tests/test-printf-posix.c: Likewise.
43655         * tests/test-snprintf-posix.c: Likewise.
43656         * tests/test-sprintf-posix.c: Likewise.
43657         * tests/test-vasprintf-posix.c: Likewise.
43658         * tests/test-vfprintf-posix.c: Likewise.
43659         * tests/test-vprintf-posix.c: Likewise.
43660         * tests/test-vsnprintf-posix.c: Likewise.
43661         * tests/test-vsprintf-posix.c: Likewise.
43662
43663 2009-01-03  Jim Meyering  <meyering@redhat.com>
43664
43665         gnulib-tool: fix sed-based filtering
43666         * gnulib-tool (func_filter_filelist): Remove extra backslash
43667         in sed_fff_filter definition.
43668
43669 2009-01-02  Jim Meyering  <meyering@redhat.com>
43670
43671         strftime: avoid compilation failure on Solaris 2.6
43672         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43673         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43674         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43675         be available.  Reported by Tom G. Christensen.  Details in
43676         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43677
43678 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43679             Bruno Haible  <bruno@clisp.org>
43680
43681         Speed up gnulib-tool by doing more string processing through shell
43682         built-ins.
43683         * gnulib-tool (fast_func_append): New variable.
43684         (func_remove_prefix, func_remove_suffix): New functions.
43685         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43686         (func_filter_filelist): New function.
43687         (func_get_dependencies): Use func_remove_suffix instead of sed.
43688         (func_get_automake_snippet): Use func_filter_filelist instead of a
43689         subshell and sed invocation.
43690
43691 2009-01-01  Bruno Haible  <bruno@clisp.org>
43692
43693         Fix a security bug.
43694         * gnulib-tool (func_import, import, update): Don't allow the characters
43695         '"', '$', '`', '\' in macro arguments that become part of commands that
43696         are evaluated.
43697
43698 2009-01-01  Bruno Haible  <bruno@clisp.org>
43699
43700         * gnulib-tool (func_reset_sigpipe): Add more comments.
43701
43702 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43703
43704         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
43705         func_emit_tests_Makefile_am, func_import): Abort loops early if we
43706         already know the answer.
43707
43708 2009-01-01  Jim Meyering  <meyering@redhat.com>
43709
43710         * lib/version-etc.c (version_etc_va): Update copyright year.
43711
43712 2008-12-30  Bruno Haible  <bruno@clisp.org>
43713
43714         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43715         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43716         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43717
43718 2008-12-29  Eric Blake  <ebb9@byu.net>
43719
43720         multiarch: avoid autoconf AC_REQUIRE bug
43721         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43722         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43723         2.63 and older.
43724         Reported by Bruno Haible, and analyzed in
43725         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43726
43727 2008-12-29  Bruno Haible  <bruno@clisp.org>
43728
43729         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43730         files in subdirectories correctly.
43731         Reported by Ralf Wildenhues.
43732
43733 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43734
43735         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
43736         rather than 'join FILE -', for Solaris join.
43737
43738 2008-12-29  Bruno Haible  <bruno@clisp.org>
43739
43740         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
43741         quoting.
43742         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43743         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43744         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43745         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
43746         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43747         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43748         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43749         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43750         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43751         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43752         * m4/nls.m4 (AM_NLS): Likewise.
43753         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
43754         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43755         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43756         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43757         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43758         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43759         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43760         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43761         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43762         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43763         * m4/xsize.m4 (gl_XSIZE): Likewise.
43764         Suggested by Jim Meyering.
43765
43766 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43767
43768         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43769         * lib/parse-duration.c: use a switch instead of cascading if's.
43770
43771 2008-12-29  Eric Blake  <ebb9@byu.net>
43772
43773         wchar.h: supply WEOF on Irix 5.3
43774         * lib/wchar.in.h (wint_t): Also supply WEOF.
43775         * lib/wctype.in.h (wint_t): Likewise.
43776         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43777         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43778         Reported by Tom G. Christensen.
43779
43780 2008-12-26  Bruno Haible  <bruno@clisp.org>
43781
43782         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43783         i486, i586, i686.
43784
43785 2008-12-26  Bruno Haible  <bruno@clisp.org>
43786
43787         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43788
43789 2008-12-26  Bruno Haible  <bruno@clisp.org>
43790
43791         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43792         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43793         not __STDC_CONSTANT_MACROS.
43794         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43795
43796 2008-12-25  Bruno Haible  <bruno@clisp.org>
43797
43798         Add support for universal builds to vasnprintf.
43799         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
43800         universal builds, guess no.
43801         * modules/vasnprintf-posix (Depends-on): Add multiarch.
43802         * modules/vasprintf-posix (Depends-on): Likewise.
43803         * modules/fprintf-posix (Depends-on): Likewise.
43804         * modules/vfprintf-posix (Depends-on): Likewise.
43805         * modules/snprintf-posix (Depends-on): Likewise.
43806         * modules/vsnprintf-posix (Depends-on): Likewise.
43807         * modules/sprintf-posix (Depends-on): Likewise.
43808         * modules/vsprintf-posix (Depends-on): Likewise.
43809         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43810         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43811         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43812         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43813         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43814         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43815         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43816
43817         Add support for universal builds to <inttypes.h>.
43818         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43819         _SCNu64_PREFIX): In Apple
43820         universal builds, define directly, using _LP64.
43821         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43822         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43823         * modules/inttypes (Depends-on): Add multiarch.
43824         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43825
43826         Add support for universal builds to <stdint.h>.
43827         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43828         universal builds, define directly, using _LP64.
43829         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43830         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43831         and size_t.
43832         * modules/stdint (Depends-on): Add multiarch.
43833         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43834
43835         New module 'multiarch'.
43836         * modules/multiarch: New file.
43837         * m4/multiarch.m4: New file.
43838
43839 2008-12-25  Bruno Haible  <bruno@clisp.org>
43840
43841         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43842
43843 2008-12-25  Bruno Haible  <bruno@clisp.org>
43844
43845         * modules/btowc (License): Relicense under LGPLv2+.
43846         * modules/mbsinit (License): Likewise.
43847         * modules/mbrtowc (License): Likewise.
43848         * modules/wcrtomb (License): Likewise.
43849         * modules/streq (License): Likewise.
43850         Reported by David Lutterkort <lutter@redhat.com>.
43851
43852 2008-12-23  Bruno Haible  <bruno@clisp.org>
43853
43854         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43855
43856 2008-12-23  Bruno Haible  <bruno@clisp.org>
43857
43858         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43859         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43860         GETADDRINFO_LIB, not in LIBS.
43861         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43862         * modules/canon-host (Link): Likewise.
43863         * NEWS: Mention the change.
43864         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43865         GETADDRINFO_LIB.
43866
43867 2008-12-22  Bruno Haible  <bruno@clisp.org>
43868
43869         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43870         * doc/posix-functions/iswalpha_l.texi: Likewise.
43871         * doc/posix-functions/iswblank_l.texi: Likewise.
43872         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43873         * doc/posix-functions/iswctype_l.texi: Likewise.
43874         * doc/posix-functions/iswdigit_l.texi: Likewise.
43875         * doc/posix-functions/iswgraph_l.texi: Likewise.
43876         * doc/posix-functions/iswlower_l.texi: Likewise.
43877         * doc/posix-functions/iswprint_l.texi: Likewise.
43878         * doc/posix-functions/iswpunct_l.texi: Likewise.
43879         * doc/posix-functions/iswspace_l.texi: Likewise.
43880         * doc/posix-functions/iswupper_l.texi: Likewise.
43881         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43882         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43883         * doc/posix-functions/open_wmemstream.texi: Likewise.
43884         * doc/posix-functions/swscanf.texi: Likewise.
43885         * doc/posix-functions/towctrans_l.texi: Likewise.
43886         * doc/posix-functions/towlower.texi: Likewise.
43887         * doc/posix-functions/towlower_l.texi: Likewise.
43888         * doc/posix-functions/towupper.texi: Likewise.
43889         * doc/posix-functions/towupper_l.texi: Likewise.
43890         * doc/posix-functions/vfwprintf.texi: Likewise.
43891         * doc/posix-functions/vfwscanf.texi: Likewise.
43892         * doc/posix-functions/vswscanf.texi: Likewise.
43893         * doc/posix-functions/vwprintf.texi: Likewise.
43894         * doc/posix-functions/vwscanf.texi: Likewise.
43895         * doc/posix-functions/wcpcpy.texi: Likewise.
43896         * doc/posix-functions/wcpncpy.texi: Likewise.
43897         * doc/posix-functions/wcscasecmp.texi: Likewise.
43898         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43899         * doc/posix-functions/wcscoll_l.texi: Likewise.
43900         * doc/posix-functions/wcsdup.texi: Likewise.
43901         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43902         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43903         * doc/posix-functions/wcsnlen.texi: Likewise.
43904         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43905         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43906         * doc/posix-functions/wctrans_l.texi: Likewise.
43907         * doc/posix-functions/wctype_l.texi: Likewise.
43908         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43909         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43910         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43911         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43912         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43913         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43914         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43915         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43916         * doc/glibc-functions/wcschrnul.texi: Likewise.
43917         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43918         * doc/glibc-functions/wcstod_l.texi: Likewise.
43919         * doc/glibc-functions/wcstof_l.texi: Likewise.
43920         * doc/glibc-functions/wcstol_l.texi: Likewise.
43921         * doc/glibc-functions/wcstold_l.texi: Likewise.
43922         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43923         * doc/glibc-functions/wcstoq.texi: Likewise.
43924         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43925         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43926         * doc/glibc-functions/wcstouq.texi: Likewise.
43927         * doc/glibc-functions/wmempcpy.texi: Likewise.
43928
43929 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43930             Eric Blake  <ebb9@byu.net>
43931             Paolo Bonzini  <bonzini@gnu.org>
43932             Bruno Haible  <bruno@clisp.org>
43933
43934         Make c-stack work on Haiku.
43935         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43936         (c_stack_action): Use SA_ONSTACK flag.
43937
43938 2008-12-22  Bruno Haible  <bruno@clisp.org>
43939
43940         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43941
43942 2008-12-22  Bruno Haible  <bruno@clisp.org>
43943
43944         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43945         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43946         being overridden.
43947         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43948         New macros.
43949         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43950         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43951         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43952         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43953
43954 2008-12-22  Bruno Haible  <bruno@clisp.org>
43955
43956         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43957         from test code.
43958
43959 2008-12-22  Eric Blake  <ebb9@byu.net>
43960
43961         Avoid gcc warnings on cygwin.
43962         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43963         Avoid unused variable.
43964         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43965         Likewise.
43966
43967 2008-12-22  Bruno Haible  <bruno@clisp.org>
43968
43969         Remove HAVE_MBRTOWC conditionals.
43970         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43971         (mbscasecmp): Assume mbrtowc function.
43972         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43973         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43974         * lib/mbschr.c: Include mbuiter.h unconditionally.
43975         (mbschr): Assume mbrtowc function.
43976         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43977         (mbscspn): Assume mbrtowc function.
43978         * lib/mbslen.c: Include mbuiter.h unconditionally.
43979         (mbslen): Assume mbrtowc function.
43980         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43981         (mbsncasecmp): Assume mbrtowc function.
43982         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43983         (mbsnlen): Assume mbrtowc function.
43984         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43985         (mbspbrk): Assume mbrtowc function.
43986         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43987         (mbspcasecmp): Assume mbrtowc function.
43988         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43989         (mbsrchr): Assume mbrtowc function.
43990         * lib/mbssep.c: Include mbuiter.h unconditionally.
43991         (mbssep): Assume mbrtowc function.
43992         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43993         (mbsspn): Assume mbrtowc function.
43994         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43995         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43996         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43997         (mbstok_r): Assume mbrtowc function.
43998         * lib/propername.c: Include mbuiter.h unconditionally.
43999         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
44000         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
44001         (trim2): Assume mbrtowc function.
44002         * lib/mbswidth.c (mbsinit): Remove fallback definition.
44003         (mbsnwidth): Assume mbrtowc function.
44004         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
44005         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
44006         fallback definitions.
44007         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
44008
44009 2008-12-22  Bruno Haible  <bruno@clisp.org>
44010
44011         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
44012
44013 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
44014
44015         * modules/regex: Request emulations for the mb*/wc* functions we need.
44016         * m4/regex.m4: Don't look for those functions here.
44017         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
44018
44019 2008-12-22  Bruno Haible  <bruno@clisp.org>
44020
44021         * modules/fnmatch (Depends-on): Remove duplicated dependency.
44022
44023 2008-12-21  Bruno Haible  <bruno@clisp.org>
44024
44025         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
44026         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
44027         (Include): Remove conditionalization.
44028         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
44029         (Include): Remove conditionalization.
44030         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
44031         (Include): Remove conditionalization.
44032         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
44033         * m4/mbfile.m4 (gl_MBFILE): Likewise.
44034         * NEWS: Mention the change.
44035         Reported by Alan Hourihane <alanh@fairlite.co.uk>
44036         via Sergey Poznyakoff <gray@gnu.org.ua>.
44037
44038 2008-12-21  Bruno Haible  <bruno@clisp.org>
44039
44040         * MODULES.html.sh (Extended multibyte and wide character utilities
44041         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
44042         wcrtomb, wcsrtombs.
44043         (Support for systems lacking POSIX:2008): Add accept, bind, close,
44044         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
44045         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
44046         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
44047
44048 2008-12-21  Bruno Haible  <bruno@clisp.org>
44049
44050         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
44051
44052 2008-12-21  Bruno Haible  <bruno@clisp.org>
44053
44054         * modules/wcsnrtombs-tests: New file.
44055         * tests/test-wcsnrtombs1.sh: New file.
44056         * tests/test-wcsnrtombs2.sh: New file.
44057         * tests/test-wcsnrtombs3.sh: New file.
44058         * tests/test-wcsnrtombs4.sh: New file.
44059         * tests/test-wcsnrtombs.c: New file.
44060
44061         New module 'wcsnrtombs'.
44062         * lib/wchar.in.h (wcsnrtombs): New declaration.
44063         * lib/wcsnrtombs.c: New file.
44064         * lib/wcsrtombs-state.c: New file.
44065         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
44066         (internal_state): Remove variable.
44067         * m4/wcsnrtombs.m4: New file.
44068         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
44069         compilation units.
44070         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
44071         HAVE_WCSNRTOMBS.
44072         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
44073         HAVE_WCSNRTOMBS.
44074         * modules/wcsnrtombs: New file.
44075         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
44076         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
44077
44078 2008-12-21  Bruno Haible  <bruno@clisp.org>
44079
44080         * modules/wcsrtombs-tests: New file.
44081         * tests/test-wcsrtombs1.sh: New file.
44082         * tests/test-wcsrtombs2.sh: New file.
44083         * tests/test-wcsrtombs3.sh: New file.
44084         * tests/test-wcsrtombs4.sh: New file.
44085         * tests/test-wcsrtombs.c: New file.
44086
44087         New module 'wcsrtombs'.
44088         * lib/wchar.in.h (wcsrtombs): New declaration.
44089         * lib/wcsrtombs.c: New file.
44090         * m4/wcsrtombs.m4: New file.
44091         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
44092         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44093         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
44094         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44095         * modules/wcsrtombs: New file.
44096         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
44097         bugs.
44098
44099 2008-12-21  Bruno Haible  <bruno@clisp.org>
44100
44101         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
44102         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
44103         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
44104         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
44105         if not correct.
44106         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
44107         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
44108         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44109         m4/locale-zh.m4, m4/codeset.m4.
44110         * doc/posix-functions/wcrtomb.texi: Document the bug.
44111
44112 2008-12-21  Bruno Haible  <bruno@clisp.org>
44113
44114         Work around a btowc() bug on IRIX 6.5.
44115         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
44116         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
44117         REPLACE_WTOBC if not.
44118         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
44119         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
44120         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
44121
44122 2008-12-21  Bruno Haible  <bruno@clisp.org>
44123
44124         * modules/wcrtomb-tests: New file.
44125         * tests/test-wcrtomb.sh: New file.
44126         * tests/test-wcrtomb.c: New file.
44127
44128         New module 'wcrtomb'.
44129         * lib/wchar.in.h (wcrtomb): New declaration.
44130         * lib/wcrtomb.c: New file.
44131         * m4/wcrtomb.m4: New file.
44132         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
44133         HAVE_WCRTOMB.
44134         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
44135         HAVE_WCRTOMB.
44136         * modules/wcrtomb: New file.
44137         * doc/posix-functions/wcrtomb.texi: Mention the new module.
44138
44139 2008-12-21  Bruno Haible  <bruno@clisp.org>
44140
44141         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
44142         * modules/mbsrtowcs (Files): Likewise.
44143         * modules/wctob (Files): Likewise.
44144         * modules/c-strcase-tests (Files): Likewise.
44145         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
44146         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
44147         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
44148         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
44149         * modules/vasnprintf-posix-tests (Files): Likewise.
44150
44151 2008-12-21  William Pursell  <bill.pursell@gmail.com>
44152
44153         gitlog-to-changelog: pass all command-line arguments to git-log
44154         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
44155         it is sometimes convenient to filter the commits in various ways.
44156         gitlog-to-changelog only allows --since to specify a start date,
44157         but git-log itself supports many other filtering mechanisms.
44158         At the moment, I want to filter by branch name.  Rather than
44159         adding a --branch option to gitlog-to-changelog, it seems more
44160         flexible to simply pass all options directly to git-log and let
44161         git do the work.  Notice that this effectively makes --since a
44162         redundant option for gitlog-to-changelog, but removing it would
44163         require current usage to change since calls would then require
44164         an additional '--'.
44165
44166 2008-12-21  Bruno Haible  <bruno@clisp.org>
44167
44168         * modules/mbsnrtowcs-tests: New file.
44169         * tests/test-mbsnrtowcs1.sh: New file.
44170         * tests/test-mbsnrtowcs2.sh: New file.
44171         * tests/test-mbsnrtowcs3.sh: New file.
44172         * tests/test-mbsnrtowcs4.sh: New file.
44173         * tests/test-mbsnrtowcs.c: New file.
44174
44175         New module 'mbsnrtowcs'.
44176         * lib/wchar.in.h (mbsnrtowcs): New declaration.
44177         * lib/mbsnrtowcs.c: New file.
44178         * lib/mbsrtowcs-state.c: New file.
44179         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
44180         (internal_state): Remove variable.
44181         * m4/mbsnrtowcs.m4: New file.
44182         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
44183         compilation units.
44184         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
44185         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44186         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
44187         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44188         * modules/mbsnrtowcs: New file.
44189         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
44190         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
44191         portability problem.
44192
44193 2008-12-21  Bruno Haible  <bruno@clisp.org>
44194
44195         Work around mbsrtowcs bug.
44196         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
44197         (gl_FUNC_MBSRTOWCS): Invoke it.
44198         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44199         m4/locale-zh.m4.
44200         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
44201
44202 2008-12-21  Bruno Haible  <bruno@clisp.org>
44203
44204         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
44205
44206 2008-12-21  Bruno Haible  <bruno@clisp.org>
44207
44208         Update doc for AIX.
44209         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
44210         16-bit wchar_t type.
44211         * doc/posix-functions/btowc.texi: Likewise.
44212         * doc/posix-functions/fgetwc.texi: Likewise.
44213         * doc/posix-functions/fgetws.texi: Likewise.
44214         * doc/posix-functions/fputwc.texi: Likewise.
44215         * doc/posix-functions/fputws.texi: Likewise.
44216         * doc/posix-functions/fwide.texi: Likewise.
44217         * doc/posix-functions/fwprintf.texi: Likewise.
44218         * doc/posix-functions/fwscanf.texi: Likewise.
44219         * doc/posix-functions/getwchar.texi: Likewise.
44220         * doc/posix-functions/getwc.texi: Likewise.
44221         * doc/posix-functions/iswalnum.texi: Likewise.
44222         * doc/posix-functions/iswalpha.texi: Likewise.
44223         * doc/posix-functions/iswblank.texi: Likewise.
44224         * doc/posix-functions/iswcntrl.texi: Likewise.
44225         * doc/posix-functions/iswctype.texi: Likewise.
44226         * doc/posix-functions/iswdigit.texi: Likewise.
44227         * doc/posix-functions/iswgraph.texi: Likewise.
44228         * doc/posix-functions/iswlower.texi: Likewise.
44229         * doc/posix-functions/iswprint.texi: Likewise.
44230         * doc/posix-functions/iswpunct.texi: Likewise.
44231         * doc/posix-functions/iswspace.texi: Likewise.
44232         * doc/posix-functions/iswupper.texi: Likewise.
44233         * doc/posix-functions/iswxdigit.texi: Likewise.
44234         * doc/posix-functions/mbrtowc.texi: Likewise.
44235         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44236         * doc/posix-functions/mbstowcs.texi: Likewise.
44237         * doc/posix-functions/mbtowc.texi: Likewise.
44238         * doc/posix-functions/putwchar.texi: Likewise.
44239         * doc/posix-functions/putwc.texi: Likewise.
44240         * doc/posix-functions/swprintf.texi: Likewise.
44241         * doc/posix-functions/tolower.texi: Likewise.
44242         * doc/posix-functions/toupper.texi: Likewise.
44243         * doc/posix-functions/towctrans.texi: Likewise.
44244         * doc/posix-functions/ungetwc.texi: Likewise.
44245         * doc/posix-functions/vswprintf.texi: Likewise.
44246         * doc/posix-functions/wcrtomb.texi: Likewise.
44247         * doc/posix-functions/wcscat.texi: Likewise.
44248         * doc/posix-functions/wcschr.texi: Likewise.
44249         * doc/posix-functions/wcscmp.texi: Likewise.
44250         * doc/posix-functions/wcscoll.texi: Likewise.
44251         * doc/posix-functions/wcscpy.texi: Likewise.
44252         * doc/posix-functions/wcscspn.texi: Likewise.
44253         * doc/posix-functions/wcsftime.texi: Likewise.
44254         * doc/posix-functions/wcslen.texi: Likewise.
44255         * doc/posix-functions/wcsncat.texi: Likewise.
44256         * doc/posix-functions/wcsncmp.texi: Likewise.
44257         * doc/posix-functions/wcsncpy.texi: Likewise.
44258         * doc/posix-functions/wcspbrk.texi: Likewise.
44259         * doc/posix-functions/wcsrchr.texi: Likewise.
44260         * doc/posix-functions/wcsrtombs.texi: Likewise.
44261         * doc/posix-functions/wcsspn.texi: Likewise.
44262         * doc/posix-functions/wcsstr.texi: Likewise.
44263         * doc/posix-functions/wcstod.texi: Likewise.
44264         * doc/posix-functions/wcstof.texi: Likewise.
44265         * doc/posix-functions/wcstoimax.texi: Likewise.
44266         * doc/posix-functions/wcstok.texi: Likewise.
44267         * doc/posix-functions/wcstold.texi: Likewise.
44268         * doc/posix-functions/wcstoll.texi: Likewise.
44269         * doc/posix-functions/wcstol.texi: Likewise.
44270         * doc/posix-functions/wcstombs.texi: Likewise.
44271         * doc/posix-functions/wcstoull.texi: Likewise.
44272         * doc/posix-functions/wcstoul.texi: Likewise.
44273         * doc/posix-functions/wcstoumax.texi: Likewise.
44274         * doc/posix-functions/wcswidth.texi: Likewise.
44275         * doc/posix-functions/wcsxfrm.texi: Likewise.
44276         * doc/posix-functions/wctob.texi: Likewise.
44277         * doc/posix-functions/wctomb.texi: Likewise.
44278         * doc/posix-functions/wctrans.texi: Likewise.
44279         * doc/posix-functions/wctype.texi: Likewise.
44280         * doc/posix-functions/wcwidth.texi: Likewise.
44281         * doc/posix-functions/wmemchr.texi: Likewise.
44282         * doc/posix-functions/wmemcmp.texi: Likewise.
44283         * doc/posix-functions/wmemcpy.texi: Likewise.
44284         * doc/posix-functions/wmemmove.texi: Likewise.
44285         * doc/posix-functions/wmemset.texi: Likewise.
44286         * doc/posix-functions/wprintf.texi: Likewise.
44287         * doc/posix-functions/wscanf.texi: Likewise.
44288
44289 2008-12-21  Bruno Haible  <bruno@clisp.org>
44290
44291         Update doc for HP-UX 11.11.
44292         * doc/posix-functions/btowc.texi: Clarify that the function is missing
44293         in HP-UX version 11.00, not in all versions of HP-UX 11.
44294         * doc/posix-functions/fwide.texi: Likewise.
44295         * doc/posix-functions/fwprintf.texi: Likewise.
44296         * doc/posix-functions/fwscanf.texi: Likewise.
44297         * doc/posix-functions/inet_ntop.texi: Likewise.
44298         * doc/posix-functions/inet_pton.texi: Likewise.
44299         * doc/posix-functions/mbrlen.texi: Likewise.
44300         * doc/posix-functions/mbrtowc.texi: Likewise.
44301         * doc/posix-functions/mbsinit.texi: Likewise.
44302         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44303         * doc/posix-functions/swprintf.texi: Likewise.
44304         * doc/posix-functions/swscanf.texi: Likewise.
44305         * doc/posix-functions/towctrans.texi: Likewise.
44306         * doc/posix-functions/vfwprintf.texi: Likewise.
44307         * doc/posix-functions/vswprintf.texi: Likewise.
44308         * doc/posix-functions/vwprintf.texi: Likewise.
44309         * doc/posix-functions/wcrtomb.texi: Likewise.
44310         * doc/posix-functions/wcsrtombs.texi: Likewise.
44311         * doc/posix-functions/wcsstr.texi: Likewise.
44312         * doc/posix-functions/wctob.texi: Likewise.
44313         * doc/posix-functions/wctrans.texi: Likewise.
44314         * doc/posix-functions/wmemchr.texi: Likewise.
44315         * doc/posix-functions/wmemcmp.texi: Likewise.
44316         * doc/posix-functions/wmemcpy.texi: Likewise.
44317         * doc/posix-functions/wmemmove.texi: Likewise.
44318         * doc/posix-functions/wmemset.texi: Likewise.
44319         * doc/posix-functions/wprintf.texi: Likewise.
44320         * doc/posix-functions/wscanf.texi: Likewise.
44321
44322 2008-12-21  Bruno Haible  <bruno@clisp.org>
44323
44324         Work around a portability problem.
44325         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
44326         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
44327
44328 2008-12-20  Bruno Haible  <bruno@clisp.org>
44329
44330         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
44331         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
44332         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
44333         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
44334         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
44335
44336         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
44337         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
44338         set.
44339         (GNULIB_defined_mbstate_t): New macro.
44340         (mbsinit): Redefine if REPLACE_MBSINIT is set.
44341         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
44342         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
44343         reuses the system's mbrtowc function but works around the bugs.
44344         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
44345         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
44346         macros.
44347         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
44348         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
44349         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
44350         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
44351         REPLACE_MBSINIT if mbsinit needs to be overridden.
44352         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
44353         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44354         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
44355         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44356         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44357         m4/locale-zh.m4.
44358         (Depends): Add mbsinit.
44359         * modules/mbsinit (Depends): Add mbrtowc.
44360         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
44361
44362 2008-12-20  Bruno Haible  <bruno@clisp.org>
44363
44364         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
44365         so that there are no conversion errors on AIX.
44366         * tests/test-mbsrtowcs.c (main): LIkewise.
44367
44368 2008-12-20  Bruno Haible  <bruno@clisp.org>
44369
44370         Work around wctob bug on Solaris <= 9.
44371         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
44372         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
44373         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
44374         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
44375         * modules/wctob (Files): Add m4/locale-fr.m4.
44376         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
44377
44378 2008-12-20  Bruno Haible  <bruno@clisp.org>
44379
44380         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
44381         /dev/null.
44382         * tests/test-select-in.sh: Likewise.
44383         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44384
44385 2008-12-20  Bruno Haible  <bruno@clisp.org>
44386
44387         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
44388         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
44389         Cygwin 1.5.x.
44390
44391 2008-12-20  Bruno Haible  <bruno@clisp.org>
44392
44393         Ensure mbstate_t is defined on HP-UX 11.11.
44394         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
44395         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
44396         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
44397         AC_USE_SYSTEM_EXTENSIONS.
44398         * modules/fnmatch (Depends-on): Add extensions.
44399         * modules/mbrlen (Depends-on): Likewise.
44400         * modules/mbrtowc (Depends-on): Likewise.
44401         * modules/mbsinit (Depends-on): Likewise.
44402         * modules/mbsrtowcs (Depends-on): Likewise.
44403         * modules/mbswidth (Depends-on): Likewise.
44404         * modules/quotearg (Depends-on): Likewise.
44405         * modules/strftime (Depends-on): Likewise.
44406
44407 2008-12-20  Bruno Haible  <bruno@clisp.org>
44408
44409         Ensure wctob is declared on IRIX 6.5.
44410         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
44411         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
44412         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
44413         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
44414         of HAVE_WCTOB.
44415         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
44416         HAVE_WCTOB.
44417         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
44418
44419 2008-12-19  Bruno Haible  <bruno@clisp.org>
44420
44421         * modules/mbsrtowcs-tests: New file.
44422         * tests/test-mbsrtowcs1.sh: New file.
44423         * tests/test-mbsrtowcs2.sh: New file.
44424         * tests/test-mbsrtowcs3.sh: New file.
44425         * tests/test-mbsrtowcs4.sh: New file.
44426         * tests/test-mbsrtowcs.c: New file.
44427
44428         New module 'mbsrtowcs'.
44429         * lib/wchar.in.h (mbsrtowcs): New declaration.
44430         * lib/mbsrtowcs.c: New file.
44431         * m4/mbsrtowcs.m4: New file.
44432         * modules/mbsrtowcs: New file.
44433         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
44434         HAVE_MBSRTOWCS.
44435         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
44436         HAVE_MBSRTOWCS.
44437         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
44438
44439 2008-12-19  Bruno Haible  <bruno@clisp.org>
44440
44441         New module 'mbrlen'.
44442         * lib/wchar.in.h (mbrlen): New declaration.
44443         * lib/mbrlen.c: New file.
44444         * m4/mbrlen.m4: New file.
44445         * modules/mbrlen: New file.
44446         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
44447         HAVE_MBRLEN.
44448         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
44449         HAVE_MBRLEN.
44450         * doc/posix-functions/mbrlen.texi: Document the new module.
44451
44452 2008-12-19  Bruno Haible  <bruno@clisp.org>
44453
44454         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
44455         * modules/mbrtowc (Depends-on): Add verify.
44456         Suggested by Paul Eggert.
44457
44458 2008-12-18  Bruno Haible  <bruno@clisp.org>
44459
44460         * modules/mbsinit-tests: New file.
44461         * tests/test-mbsinit.sh: New file.
44462         * tests/test-mbsinit.c: New file.
44463
44464 2008-12-18  Bruno Haible  <bruno@clisp.org>
44465
44466         * modules/mbrtowc-tests: New file.
44467         * tests/test-mbrtowc1.sh: New file.
44468         * tests/test-mbrtowc2.sh: New file.
44469         * tests/test-mbrtowc3.sh: New file.
44470         * tests/test-mbrtowc4.sh: New file.
44471         * tests/test-mbrtowc.c: New file.
44472
44473         New module 'mbrtowc'.
44474         * lib/wchar.in.h (mbstate_t): Override when the system does not have
44475         mbsinit and mbrtowc.
44476         (mbrtowc): New declaration.
44477         * lib/mbrtowc.c: New file.
44478         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
44479         * modules/mbrtowc: New file.
44480         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
44481         HAVE_MBRTOWC.
44482         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
44483         HAVE_MBRTOWC.
44484         * doc/posix-functions/mbrtowc.texi: Document the new module.
44485
44486 2008-12-18  Bruno Haible  <bruno@clisp.org>
44487
44488         New module 'wctob'.
44489         * lib/wchar.in.h (wctob): New declaration.
44490         * lib/wctob.c: New file.
44491         * m4/wctob.m4: New file.
44492         * modules/wctob: New file.
44493         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
44494         HAVE_WCTOB.
44495         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
44496         * doc/posix-functions/wctob.texi: Document the new module.
44497
44498 2008-12-18  Bruno Haible  <bruno@clisp.org>
44499
44500         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
44501         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
44502
44503 2008-12-18  Simon Josefsson  <simon@josefsson.org>
44504
44505         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
44506         G. Christensen" <tgc@jupiterrise.com>.
44507
44508         * lib/flock.c: Need to include errno.h.  Reported by "Tom
44509         G. Christensen" <tgc@jupiterrise.com>.
44510
44511         * lib/flock.c: Need to include string.h.  Reported by "Tom
44512         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
44513         <ebb9@byu.net>.
44514
44515 2008-12-18  Bruno Haible  <bruno@clisp.org>
44516
44517         * m4/locale-ja.m4: New file, from GNU gettext.
44518
44519 2008-12-17  Bruno Haible  <bruno@clisp.org>
44520
44521         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
44522         Suggested by Eric Blake.
44523
44524 2008-12-17  Bruno Haible  <bruno@clisp.org>
44525
44526         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
44527
44528 2008-12-17  Bruno Haible  <bruno@clisp.org>
44529
44530         * lib/mbsinit.c: Include verify.h. Verify an assumption.
44531         * modules/mbsinit (Depends-on): Add verify.
44532         Suggested by Paul Eggert.
44533
44534 2008-12-17  Bruno Haible  <bruno@clisp.org>
44535
44536         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
44537         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
44538         gl_FUNC_MBRTOWC.
44539         * m4/mbiter.m4 (gl_MBITER): LIkewise.
44540         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
44541         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
44542         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
44543         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
44544         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
44545         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
44546         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
44547         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
44548         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
44549         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
44550         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
44551         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
44552         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
44553         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
44554         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44555         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
44556         * modules/trim (configure.ac): Likewise.
44557
44558 2008-12-17  Bruno Haible  <bruno@clisp.org>
44559
44560         * modules/btowc-tests: New file.
44561         * tests/test-btowc1.sh: New file.
44562         * tests/test-btowc2.sh: New file.
44563         * tests/test-btowc.c: New file.
44564
44565         New module 'btowc'.
44566         * lib/wchar.in.h (btowc): New declaration.
44567         * lib/btowc.c: New file.
44568         * m4/btowc.m4: New file.
44569         * modules/btowc: New file.
44570         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
44571         HAVE_BTOWC.
44572         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
44573         * doc/posix-functions/btowc.texi: Document the new module.
44574
44575 2008-12-17  Bruno Haible  <bruno@clisp.org>
44576
44577         New module 'mbsinit'.
44578         * lib/wchar.in.h (mbsinit): New declaration.
44579         * lib/mbsinit.c: New file.
44580         * m4/mbsinit.m4: New file.
44581         * modules/mbsinit: New file.
44582         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
44583         HAVE_MBSINIT.
44584         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
44585         HAVE_MBSINIT.
44586         * doc/posix-functions/mbsinit.texi: Document the new module.
44587
44588 2008-12-16  Bruno Haible  <bruno@clisp.org>
44589
44590         * lib/unistd.in.h: Add comment.
44591         * tests/test-environ.c: Don't include <stdlib.h>.
44592
44593 2008-12-16  Bruno Haible  <bruno@clisp.org>
44594
44595         * lib/parse-duration.h (parse_duration): Document return value
44596         convention.
44597         * lib/parse-duration.c: Include specification header first. Add
44598         comments.
44599         (_): Remove macro.
44600         (parse_year_month_day, parse_hour_minute_second): Move side effects
44601         outside of strchr call.
44602         (parse_non_iso8601): Move side effects outside of isspace call.
44603         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
44604         call.
44605
44606 2008-12-16  Bruno Haible  <bruno@clisp.org>
44607
44608         * tests/test-parse-duration.sh: Produce no output when the test
44609         succeeds.
44610
44611 2008-12-16  Bruno Haible  <bruno@clisp.org>
44612
44613         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
44614         expressions.
44615
44616 2008-12-15  Bruno Haible  <bruno@clisp.org>
44617
44618         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
44619         * doc/glibc-functions/flistxattr.texi: Likewise.
44620         * doc/glibc-functions/fopencookie.texi: Likewise.
44621         * doc/glibc-functions/fremovexattr.texi: Likewise.
44622         * doc/glibc-functions/fsetxattr.texi: Likewise.
44623         * doc/glibc-functions/getxattr.texi: Likewise.
44624         * doc/glibc-functions/lgetxattr.texi: Likewise.
44625         * doc/glibc-functions/listxattr.texi: Likewise.
44626         * doc/glibc-functions/llistxattr.texi: Likewise.
44627         * doc/glibc-functions/lremovexattr.texi: Likewise.
44628         * doc/glibc-functions/lsetxattr.texi: Likewise.
44629         * doc/glibc-functions/removexattr.texi: Likewise.
44630         * doc/glibc-functions/setxattr.texi: Likewise.
44631         * doc/posix-functions/open_memstream.texi: Likewise.
44632
44633 2008-12-15  Eric Blake  <ebb9@byu.net>
44634
44635         Update doc for cygwin 1.7.
44636         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
44637         functions.
44638         * doc/posix-functions/fchmodat.texi: Likewise.
44639         * doc/posix-functions/fchownat.texi: Likewise.
44640         * doc/posix-functions/fdopendir.texi: Likewise.
44641         * doc/posix-functions/fmemopen.texi: Likewise.
44642         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44643         * doc/posix-functions/fstatat.texi: Likewise.
44644         * doc/posix-functions/futimens.texi: Likewise.
44645         * doc/posix-functions/gai_strerror.texi: Likewise.
44646         * doc/posix-functions/getaddrinfo.texi: Likewise.
44647         * doc/posix-functions/getnameinfo.texi: Likewise.
44648         * doc/posix-functions/if_freenameindex.texi: Likewise.
44649         * doc/posix-functions/if_indextoname.texi: Likewise.
44650         * doc/posix-functions/if_nameindex.texi: Likewise.
44651         * doc/posix-functions/if_nametoindex.texi: Likewise.
44652         * doc/posix-functions/insque.texi: Likewise.
44653         * doc/posix-functions/linkat.texi: Likewise.
44654         * doc/posix-functions/llrint.texi: Likewise.
44655         * doc/posix-functions/llrintf.texi: Likewise.
44656         * doc/posix-functions/llrintl.texi: Likewise.
44657         * doc/posix-functions/lockf.texi: Likewise.
44658         * doc/posix-functions/lrintl.texi: Likewise.
44659         * doc/posix-functions/mkdirat.texi: Likewise.
44660         * doc/posix-functions/mkfifoat.texi: Likewise.
44661         * doc/posix-functions/mknodat.texi: Likewise.
44662         * doc/posix-functions/mq_close.texi: Likewise.
44663         * doc/posix-functions/mq_getattr.texi: Likewise.
44664         * doc/posix-functions/mq_notify.texi: Likewise.
44665         * doc/posix-functions/mq_open.texi: Likewise.
44666         * doc/posix-functions/mq_receive.texi: Likewise.
44667         * doc/posix-functions/mq_send.texi: Likewise.
44668         * doc/posix-functions/mq_setattr.texi: Likewise.
44669         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44670         * doc/posix-functions/mq_timedsend.texi: Likewise.
44671         * doc/posix-functions/mq_unlink.texi: Likewise.
44672         * doc/posix-functions/open_memstream.texi: Likewise.
44673         * doc/posix-functions/openat.texi: Likewise.
44674         * doc/posix-functions/posix_fadvise.texi: Likewise.
44675         * doc/posix-functions/posix_fallocate.texi: Likewise.
44676         * doc/posix-functions/posix_madvise.texi: Likewise.
44677         * doc/posix-functions/posix_memalign.texi: Likewise.
44678         * doc/posix-functions/posix_openpt.texi: Likewise.
44679         * doc/posix-functions/readlinkat.texi: Likewise.
44680         * doc/posix-functions/remque.texi: Likewise.
44681         * doc/posix-functions/renameat.texi: Likewise.
44682         * doc/posix-functions/rintl.texi: Likewise.
44683         * doc/posix-functions/sem_unlink.texi: Likewise.
44684         * doc/posix-functions/shm_open.texi: Likewise.
44685         * doc/posix-functions/shm_unlink.texi: Likewise.
44686         * doc/posix-functions/signgam.texi: Likewise.
44687         * doc/posix-functions/sigset.texi: Likewise.
44688         * doc/posix-functions/stpcpy.texi: Likewise.
44689         * doc/posix-functions/stpncpy.texi: Likewise.
44690         * doc/posix-functions/strerror.texi: Likewise.
44691         * doc/posix-functions/strtod.texi: Likewise.
44692         * doc/posix-functions/symlinkat.texi: Likewise.
44693         * doc/posix-functions/unlinkat.texi: Likewise.
44694         * doc/posix-functions/utimensat.texi: Likewise.
44695         * doc/glibc-functions/bindresvport.texi: Likewise.
44696         * doc/glibc-functions/dn_expand.texi: Likewise.
44697         * doc/glibc-functions/exp10.texi: Likewise.
44698         * doc/glibc-functions/exp10f.texi: Likewise.
44699         * doc/glibc-functions/fgetxattr.texi: Likewise.
44700         * doc/glibc-functions/flistxattr.texi: Likewise.
44701         * doc/glibc-functions/fopencookie.texi: Likewise.
44702         * doc/glibc-functions/freeifaddrs.texi: Likewise.
44703         * doc/glibc-functions/fremovexattr.texi: Likewise.
44704         * doc/glibc-functions/fsetxattr.texi: Likewise.
44705         * doc/glibc-functions/getifaddrs.texi: Likewise.
44706         * doc/glibc-functions/getxattr.texi: Likewise.
44707         * doc/glibc-functions/lgetxattr.texi: Likewise.
44708         * doc/glibc-functions/listxattr.texi: Likewise.
44709         * doc/glibc-functions/llistxattr.texi: Likewise.
44710         * doc/glibc-functions/lremovexattr.texi: Likewise.
44711         * doc/glibc-functions/lsetxattr.texi: Likewise.
44712         * doc/glibc-functions/pow10.texi: Likewise.
44713         * doc/glibc-functions/pow10f.texi: Likewise.
44714         * doc/glibc-functions/rcmd_af.texi: Likewise.
44715         * doc/glibc-functions/removexattr.texi: Likewise.
44716         * doc/glibc-functions/res_init.texi: Likewise.
44717         * doc/glibc-functions/res_mkquery.texi: Likewise.
44718         * doc/glibc-functions/res_query.texi: Likewise.
44719         * doc/glibc-functions/res_querydomain.texi: Likewise.
44720         * doc/glibc-functions/res_send.texi: Likewise.
44721         * doc/glibc-functions/rresvport_af.texi: Likewise.
44722         * doc/glibc-functions/setxattr.texi: Likewise.
44723         * doc/glibc-functions/strcasestr.texi: Likewise.
44724
44725 2008-12-15  Bruno Haible  <bruno@clisp.org>
44726
44727         Fix compilation error on OSF/1 4.0.
44728         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44729         <sys/time.h>, simply delegate to the system header.
44730         Reported by Daniel Richard G. <oss@teragram.com>.
44731
44732 2008-12-15  Bruno Haible  <bruno@clisp.org>
44733
44734         * doc/posix-functions/openat.texi: Mention the 'openat' module.
44735         * doc/posix-functions/fchmodat.texi: Likewise.
44736         * doc/posix-functions/fchownat.texi: Likewise.
44737         * doc/posix-functions/fdopendir.texi: Likewise.
44738         * doc/posix-functions/fstatat.texi: Likewise.
44739         * doc/posix-functions/mkdirat.texi: Likewise.
44740         * doc/posix-functions/unlinkat.texi: Likewise.
44741
44742 2008-12-14  Bruno Haible  <bruno@clisp.org>
44743
44744         Update doc for POSIX:2008.
44745         * doc/posix-functions/faccessat.texi: New file.
44746         * doc/posix-functions/fchmodat.texi: New file.
44747         * doc/posix-functions/fchownat.texi: New file.
44748         * doc/posix-functions/fdopendir.texi: New file.
44749         * doc/posix-functions/fstatat.texi: New file.
44750         * doc/posix-functions/futimens.texi: New file.
44751         * doc/posix-functions/linkat.texi: New file.
44752         * doc/posix-functions/mkdirat.texi: New file.
44753         * doc/posix-functions/mkfifoat.texi: New file.
44754         * doc/posix-functions/mknodat.texi: New file.
44755         * doc/posix-functions/open_wmemstream.texi: New file.
44756         * doc/posix-functions/openat.texi: New file.
44757         * doc/posix-functions/psiginfo.texi: New file.
44758         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44759         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44760         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44761         * doc/posix-functions/readlinkat.texi: New file.
44762         * doc/posix-functions/renameat.texi: New file.
44763         * doc/posix-functions/strerror_l.texi: New file.
44764         * doc/posix-functions/symlinkat.texi: New file.
44765         * doc/posix-functions/unlinkat.texi: New file.
44766         * doc/posix-functions/utimensat.texi: New file.
44767         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44768
44769 2008-12-14  Bruno Haible  <bruno@clisp.org>
44770
44771         Update doc for POSIX:2008.
44772         * doc/posix-functions/alphasort.texi: Renamed from
44773         doc/glibc-functions/alphasort.texi.
44774         * doc/posix-functions/dirfd.texi: Renamed from
44775         doc/glibc-functions/dirfd.texi.
44776         * doc/posix-functions/dprintf.texi: Renamed from
44777         doc/glibc-functions/dprintf.texi.
44778         * doc/posix-functions/duplocale.texi: Renamed from
44779         doc/glibc-functions/duplocale.texi.
44780         * doc/posix-functions/fexecve.texi: Renamed from
44781         doc/glibc-functions/fexecve.texi.
44782         * doc/posix-functions/fmemopen.texi: Renamed from
44783         doc/glibc-functions/fmemopen.texi.
44784         * doc/posix-functions/freelocale.texi: Renamed from
44785         doc/glibc-functions/freelocale.texi.
44786         * doc/posix-functions/getdate_err.texi: Renamed from
44787         doc/glibc-functions/getdate_err.texi.
44788         * doc/posix-functions/isalnum_l.texi: Renamed from
44789         doc/glibc-functions/isalnum_l.texi.
44790         * doc/posix-functions/isalpha_l.texi: Renamed from
44791         doc/glibc-functions/isalpha_l.texi.
44792         * doc/posix-functions/isblank_l.texi: Renamed from
44793         doc/glibc-functions/isblank_l.texi.
44794         * doc/posix-functions/iscntrl_l.texi: Renamed from
44795         doc/glibc-functions/iscntrl_l.texi.
44796         * doc/posix-functions/isdigit_l.texi: Renamed from
44797         doc/glibc-functions/isdigit_l.texi.
44798         * doc/posix-functions/isgraph_l.texi: Renamed from
44799         doc/glibc-functions/isgraph_l.texi.
44800         * doc/posix-functions/islower_l.texi: Renamed from
44801         doc/glibc-functions/islower_l.texi.
44802         * doc/posix-functions/isprint_l.texi: Renamed from
44803         doc/glibc-functions/isprint_l.texi.
44804         * doc/posix-functions/ispunct_l.texi: Renamed from
44805         doc/glibc-functions/ispunct_l.texi.
44806         * doc/posix-functions/isspace_l.texi: Renamed from
44807         doc/glibc-functions/isspace_l.texi.
44808         * doc/posix-functions/isupper_l.texi: Renamed from
44809         doc/glibc-functions/isupper_l.texi.
44810         * doc/posix-functions/iswalnum_l.texi: Renamed from
44811         doc/glibc-functions/iswalnum_l.texi.
44812         * doc/posix-functions/iswalpha_l.texi: Renamed from
44813         doc/glibc-functions/iswalpha_l.texi.
44814         * doc/posix-functions/iswblank_l.texi: Renamed from
44815         doc/glibc-functions/iswblank_l.texi.
44816         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44817         doc/glibc-functions/iswcntrl_l.texi.
44818         * doc/posix-functions/iswctype_l.texi: Renamed from
44819         doc/glibc-functions/iswctype_l.texi.
44820         * doc/posix-functions/iswdigit_l.texi: Renamed from
44821         doc/glibc-functions/iswdigit_l.texi.
44822         * doc/posix-functions/iswgraph_l.texi: Renamed from
44823         doc/glibc-functions/iswgraph_l.texi.
44824         * doc/posix-functions/iswlower_l.texi: Renamed from
44825         doc/glibc-functions/iswlower_l.texi.
44826         * doc/posix-functions/iswprint_l.texi: Renamed from
44827         doc/glibc-functions/iswprint_l.texi.
44828         * doc/posix-functions/iswpunct_l.texi: Renamed from
44829         doc/glibc-functions/iswpunct_l.texi.
44830         * doc/posix-functions/iswspace_l.texi: Renamed from
44831         doc/glibc-functions/iswspace_l.texi.
44832         * doc/posix-functions/iswupper_l.texi: Renamed from
44833         doc/glibc-functions/iswupper_l.texi.
44834         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44835         doc/glibc-functions/iswxdigit_l.texi.
44836         * doc/posix-functions/isxdigit_l.texi: Renamed from
44837         doc/glibc-functions/isxdigit_l.texi.
44838         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44839         doc/glibc-functions/mbsnrtowcs.texi.
44840         * doc/posix-functions/mkdtemp.texi: Renamed from
44841         doc/glibc-functions/mkdtemp.texi.
44842         * doc/posix-functions/newlocale.texi: Renamed from
44843         doc/glibc-functions/newlocale.texi.
44844         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44845         doc/glibc-functions/nl_langinfo_l.texi.
44846         * doc/posix-functions/open_memstream.texi: Renamed from
44847         doc/glibc-functions/open_memstream.texi.
44848         * doc/posix-functions/opterr.texi: Renamed from
44849         doc/glibc-functions/opterr.texi.
44850         * doc/posix-functions/optind.texi: Renamed from
44851         doc/glibc-functions/optind.texi.
44852         * doc/posix-functions/optopt.texi: Renamed from
44853         doc/glibc-functions/optopt.texi.
44854         * doc/posix-functions/psignal.texi: Renamed from
44855         doc/glibc-functions/psignal.texi.
44856         * doc/posix-functions/scandir.texi: Renamed from
44857         doc/glibc-functions/scandir.texi.
44858         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44859         doc/glibc-functions/sched_get_priority_min.texi.
44860         * doc/posix-functions/signgam.texi: Renamed from
44861         doc/glibc-functions/signgam.texi.
44862         * doc/posix-functions/stpcpy.texi: Renamed from
44863         doc/glibc-functions/stpcpy.texi.
44864         * doc/posix-functions/stpncpy.texi: Renamed from
44865         doc/glibc-functions/stpncpy.texi.
44866         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44867         doc/glibc-functions/strcasecmp_l.texi.
44868         * doc/posix-functions/strcoll_l.texi: Renamed from
44869         doc/glibc-functions/strcoll_l.texi.
44870         * doc/posix-functions/strfmon_l.texi: Renamed from
44871         doc/glibc-functions/strfmon_l.texi.
44872         * doc/posix-functions/strftime_l.texi: Renamed from
44873         doc/glibc-functions/strftime_l.texi.
44874         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44875         doc/glibc-functions/strncasecmp_l.texi.
44876         * doc/posix-functions/strndup.texi: Renamed from
44877         doc/glibc-functions/strndup.texi.
44878         * doc/posix-functions/strnlen.texi: Renamed from
44879         doc/glibc-functions/strnlen.texi.
44880         * doc/posix-functions/strsignal.texi: Renamed from
44881         doc/glibc-functions/strsignal.texi.
44882         * doc/posix-functions/strxfrm_l.texi: Renamed from
44883         doc/glibc-functions/strxfrm_l.texi.
44884         * doc/posix-functions/timer_gettime.texi: Renamed from
44885         doc/glibc-functions/timer_gettime.texi.
44886         * doc/posix-functions/tolower_l.texi: Renamed from
44887         doc/glibc-functions/tolower_l.texi.
44888         * doc/posix-functions/toupper_l.texi: Renamed from
44889         doc/glibc-functions/toupper_l.texi.
44890         * doc/posix-functions/towctrans_l.texi: Renamed from
44891         doc/glibc-functions/towctrans_l.texi.
44892         * doc/posix-functions/towlower_l.texi: Renamed from
44893         doc/glibc-functions/towlower_l.texi.
44894         * doc/posix-functions/towupper_l.texi: Renamed from
44895         doc/glibc-functions/towupper_l.texi.
44896         * doc/posix-functions/uselocale.texi: Renamed from
44897         doc/glibc-functions/uselocale.texi.
44898         * doc/posix-functions/vdprintf.texi: Renamed from
44899         doc/glibc-functions/vdprintf.texi.
44900         * doc/posix-functions/wcpcpy.texi:
44901         Renamed from doc/glibc-functions/wcpcpy.texi.
44902         * doc/posix-functions/wcpncpy.texi: Renamed from
44903         doc/glibc-functions/wcpncpy.texi.
44904         * doc/posix-functions/wcscasecmp.texi: Renamed from
44905         doc/glibc-functions/wcscasecmp.texi.
44906         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44907         doc/glibc-functions/wcscasecmp_l.texi.
44908         * doc/posix-functions/wcscoll_l.texi: Renamed from
44909         doc/glibc-functions/wcscoll_l.texi.
44910         * doc/posix-functions/wcsdup.texi: Renamed from
44911         doc/glibc-functions/wcsdup.texi.
44912         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44913         doc/glibc-functions/wcsncasecmp.texi.
44914         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44915         doc/glibc-functions/wcsncasecmp_l.texi.
44916         * doc/posix-functions/wcsnlen.texi: Renamed from
44917         doc/glibc-functions/wcsnlen.texi.
44918         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44919         doc/glibc-functions/wcsnrtombs.texi.
44920         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44921         doc/glibc-functions/wcsxfrm_l.texi.
44922         * doc/posix-functions/wctrans_l.texi: Renamed from
44923         doc/glibc-functions/wctrans_l.texi.
44924         * doc/posix-functions/wctype_l.texi: Renamed from
44925         doc/glibc-functions/wctype_l.texi.
44926         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44927         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44928         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44929         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44930         these subsections.
44931         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44932         Remove sections.
44933
44934 2008-12-14  Bruno Haible  <bruno@clisp.org>
44935
44936         Update doc for POSIX:2008.
44937         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44938
44939 2008-12-14  Bruno Haible  <bruno@clisp.org>
44940
44941         Update doc for POSIX:2008.
44942         * doc/pastposix-functions/bcmp.texi: Renamed from
44943         doc/posix-functions/bcmp.texi.
44944         * doc/pastposix-functions/bcopy.texi: Renamed from
44945         doc/posix-functions/bcopy.texi.
44946         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44947         doc/posix-functions/bsd_signal.texi.
44948         * doc/pastposix-functions/bzero.texi: Renamed from
44949         doc/posix-functions/bzero.texi.
44950         * doc/pastposix-functions/ecvt.texi: Renamed from
44951         doc/posix-functions/ecvt.texi.
44952         * doc/pastposix-functions/fcvt.texi: Renamed from
44953         doc/posix-functions/fcvt.texi.
44954         * doc/pastposix-functions/ftime.texi: Renamed from
44955         doc/posix-functions/ftime.texi.
44956         * doc/pastposix-functions/gcvt.texi: Renamed from
44957         doc/posix-functions/gcvt.texi.
44958         * doc/pastposix-functions/getcontext.texi: Renamed from
44959         doc/posix-functions/getcontext.texi.
44960         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44961         doc/posix-functions/gethostbyaddr.texi.
44962         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44963         doc/posix-functions/gethostbyname.texi.
44964         * doc/pastposix-functions/getwd.texi: Renamed from
44965         doc/posix-functions/getwd.texi.
44966         * doc/pastposix-functions/h_errno.texi: Renamed from
44967         doc/posix-functions/h_errno.texi.
44968         * doc/pastposix-functions/index.texi: Renamed from
44969         doc/posix-functions/index.texi.
44970         * doc/pastposix-functions/makecontext.texi: Renamed from
44971         doc/posix-functions/makecontext.texi.
44972         * doc/pastposix-functions/mktemp.texi: Renamed from
44973         doc/posix-functions/mktemp.texi.
44974         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44975         doc/posix-functions/pthread_attr_getstackaddr.texi.
44976         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44977         doc/posix-functions/pthread_attr_setstackaddr.texi.
44978         * doc/pastposix-functions/rindex.texi: Renamed from
44979         doc/posix-functions/rindex.texi.
44980         * doc/pastposix-functions/scalb.texi: Renamed from
44981         doc/posix-functions/scalb.texi.
44982         * doc/pastposix-functions/setcontext.texi: Renamed from
44983         doc/posix-functions/setcontext.texi.
44984         * doc/pastposix-functions/swapcontext.texi: Renamed from
44985         doc/posix-functions/swapcontext.texi.
44986         * doc/pastposix-functions/ualarm.texi: Renamed from
44987         doc/posix-functions/ualarm.texi.
44988         * doc/pastposix-functions/usleep.texi: Renamed from
44989         doc/posix-functions/usleep.texi.
44990         * doc/pastposix-functions/vfork.texi: Renamed from
44991         doc/posix-functions/vfork.texi.
44992         * doc/pastposix-functions/wcswcs.texi: Renamed from
44993         doc/posix-functions/wcswcs.texi.
44994         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44995         (Function Substitutes): Update.
44996
44997 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44998
44999         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
45000         m4/strerror.m4.
45001
45002 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45003             Bruno Haible  <bruno@clisp.org>
45004
45005         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
45006
45007 2008-12-13  Bruno Haible  <bruno@clisp.org>
45008
45009         * modules/strtoull (Depends-on): Remove unistd.
45010
45011 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45012
45013         * modules/strtoull (Depends-on): Add stdlib.
45014
45015 2008-12-11  Simon Josefsson  <simon@josefsson.org>
45016
45017         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
45018
45019 2008-12-10  Jim Meyering  <meyering@redhat.com>
45020
45021         gl_ASSERT: don't say assertions are disabled when they're not
45022         * m4/assert.m4 (gl_ASSERT): Do not make configure report
45023         "checking whether to enable assertions... no", when they are in
45024         fact enabled.  This is solely a bug in the output of configure.
45025         In spite of saying "no", NDEBUG was not defined in that case.
45026         Also, as noted by Eric Blake, leave assertions enabled upon
45027         --enable-assert=INVALID.
45028
45029 2008-12-10  Bruno Haible  <bruno@clisp.org>
45030
45031         Change MODULES.html to refer to POSIX:2008 where possible.
45032         * MODULES.html.sh (POSIX2008_URL): New variable.
45033         (posix_headers): Remove sys/timeb, ucontext.
45034         (posix2001_headers): New variable.
45035         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
45036         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
45037         index, makecontext, mktemp, pthread_attr_getstackaddr,
45038         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
45039         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
45040         (posix2001_functions): New variable.
45041         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
45042         otherwise.
45043
45044 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45045
45046         add missing include to parse-duration.c
45047         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
45048         * modules/parse-duration (Depends-on): Add xalloc.
45049
45050         fix sed script reading maint.mk
45051         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
45052         (syntax-check-rules): Use it.
45053
45054 2008-12-09  Bruno Haible  <bruno@clisp.org>
45055
45056         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
45057         MacOS X 10.4/PowerPC.
45058         Reported by Simon Josefsson.
45059
45060 2008-12-08  Jim Meyering  <meyering@redhat.com>
45061
45062         work around mingw's lack of some S_IF definitions
45063         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
45064         Reported by Simon Josefsson.
45065
45066 2008-12-08  Bruno Haible  <bruno@clisp.org>
45067
45068         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
45069         applied to variables. Needed on MacOS X 10.4/PowerPC.
45070         Reported by Simon Josefsson.
45071
45072 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
45073         and Eric Blake  <ebb9@byu.net>
45074
45075         assert: honor --enable-assert
45076         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
45077         order to honor --enable-assert, rather than treating it as a
45078         synonym for --disable-assert.
45079
45080 2008-12-08  Jim Meyering  <meyering@redhat.com>
45081
45082         * lib/posixtm.c: Remove now-useless declaration of mktime.
45083
45084         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
45085
45086 2008-12-07  Bruno Haible  <bruno@clisp.org>
45087
45088         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
45089         test_once): Mark functions as static.
45090         * tests/test-tls.c (test_tls): Likewise.
45091
45092 2008-12-07  Bruno Haible  <bruno@clisp.org>
45093
45094         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
45095         iconv_register_autodetect.
45096
45097 2008-12-07  Jim Meyering  <meyering@redhat.com>
45098
45099         posixtm.c: avoid a warning
45100         * lib/posixtm.c (posixtime): Don't initialize tm0.
45101         It's no longer needed to placate gcc4's -Wuninitialized,
45102         and the attempt to placate would elicit a new warning.
45103
45104         unicodeio.c: mark unused parameters
45105         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45106         (fallback_failure_callback): Likewise.
45107
45108 2008-12-07  Bruno Haible  <bruno@clisp.org>
45109
45110         * gnulib-tool (func_create_testdir): When building the tests
45111         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
45112         Reported by Simon Josefsson.
45113
45114 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45115
45116         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
45117
45118 2008-12-06  Bruno Haible  <bruno@clisp.org>
45119
45120         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
45121         Suggested by Eric Blake.
45122
45123 2008-12-06  Bruno Haible  <bruno@clisp.org>
45124
45125         Fix a c-stack test failure on MacOS X.
45126         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
45127         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
45128         handler for SIGBUS as well.
45129         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
45130         install a signal handler for SIGBUS as well.
45131         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
45132
45133 2008-12-06  Bruno Haible  <bruno@clisp.org>
45134
45135         Advocacy documentation.
45136         * doc/gnulib-intro.texi (Benefits): New section.
45137         * doc/gnulib.texi: Update.
45138
45139 2008-12-06  Bruno Haible  <bruno@clisp.org>
45140
45141         Document the 'manywarnings' module.
45142         * doc/manywarnings.texi: New file.
45143         * doc/gnulib.texi: Include it.
45144
45145 2008-12-05  Eric Blake  <ebb9@byu.net>
45146
45147         tests: silence some gcc warnings
45148         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
45149         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
45150         type mismatches.
45151
45152 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45153             Bruno Haible  <bruno@clisp.org>
45154
45155         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
45156
45157 2008-11-29  Jim Meyering  <meyering@redhat.com>
45158
45159         unicodeio.c: mark unused parameters
45160         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45161         (fallback_failure_callback): Likewise.
45162
45163         fts: fix a thinko
45164         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
45165         (set_stat_type): Return S_IF*-valued "type" directly.
45166         Prompted by James Youngman's spotting a related bug.
45167         Confirmed by further testing through find.
45168
45169         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
45170         * lib/fts.c (D_TYPE): Define.
45171         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
45172         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
45173         (s_ifmt_shift_bits): New function.
45174         (set_stat_type): New function.
45175         (fts_build): When not calling fts_stat, call set_stat_type
45176         to propagate dirent.d_type info to fts_read caller.
45177         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
45178         fts_statp->st_mode type information may be valid.
45179
45180 2008-11-28  Simon Josefsson  <simon@josefsson.org>
45181
45182         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
45183         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
45184         <sds@gnu.org>.
45185
45186 2008-11-20  Bruno Haible  <bruno@clisp.org>
45187
45188         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
45189         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
45190         INCLUDE_NEXT.
45191         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
45192         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
45193         * modules/math (Makefile.am): Substitute
45194         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
45195         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45196
45197 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
45198             Bruno Haible  <bruno@clisp.org>
45199
45200         * lib/stdint.in.h: Define all type macros so that their expansion is
45201         a single typedef'ed token. Fixes a compilation failure in Boost which
45202         does "using ::int8_t;".
45203
45204 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45205
45206         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
45207         gl_MANYWARN_ALL_GCC.
45208         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
45209         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
45210         * modules/manywarnings: New file.
45211         * MODULES.html.sh: Mention manywarnings module.
45212
45213 2008-11-18  Bruno Haible  <bruno@clisp.org>
45214
45215         * doc/gnulib-tool.texi (Unit tests): New section.
45216
45217 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45218
45219         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
45220         paths like 'lib/po/foo.po'.
45221
45222 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45223
45224         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
45225         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
45226
45227 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45228
45229         * m4/warnings.m4: Use CPPFLAGS to really check whether the
45230         parameter works.
45231
45232 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45233
45234         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
45235
45236 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45237
45238         * modules/parse-duration-tests: New file.
45239         * tests/test-parse-duration.sh: New file.
45240         * tests/test-parse-duration.c: New file.
45241
45242         New module 'parse-duration'.
45243         * lib/parse-duration.h: New file.
45244         * lib/parse-duration.c: New file.
45245         * modules/parse-duration: New file.
45246
45247 2008-11-17  Bruno Haible  <bruno@clisp.org>
45248
45249         * tests/test-select-out.sh: Comment out the first pipe test.
45250         Reported by Simon Josefsson.
45251
45252 2008-11-17  Bruno Haible  <bruno@clisp.org>
45253
45254         * modules/getaddrinfo (Depends-on): Add servent, hostent.
45255         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
45256         gl_HOSTENT.
45257
45258 2008-11-17  Bruno Haible  <bruno@clisp.org>
45259
45260         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
45261         -lnetwork and -lnet. Needed for Haiku and BeOS.
45262
45263 2008-11-16  Bruno Haible  <bruno@clisp.org>
45264
45265         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
45266
45267 2008-11-16  Bruno Haible  <bruno@clisp.org>
45268
45269         Avoid test failure on Haiku.
45270         * tests/test-fsync.c: Include <errno.h>.
45271         (main): Don't require that fsync (0) fails.
45272
45273 2008-11-15  Bruno Haible  <bruno@clisp.org>
45274
45275         New module 'hostent'.
45276         * modules/hostent: New file.
45277         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
45278
45279 2008-11-15  Bruno Haible  <bruno@clisp.org>
45280
45281         New module 'servent'.
45282         * modules/servent: New file.
45283         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
45284
45285 2008-11-15  Bruno Haible  <bruno@clisp.org>
45286
45287         Avoid generating same test program with two different rules.
45288         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
45289         test-frexp to test-frexp-nolibm.
45290         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
45291         test-frexpl to test-frexpl-nolibm.
45292
45293 2008-11-15  Bruno Haible  <bruno@clisp.org>
45294
45295         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
45296         $(FREXPL_LIBM).
45297
45298 2008-11-15  Bruno Haible  <bruno@clisp.org>
45299
45300         * lib/netdb.in.h: Activate the definitions also when the system's
45301         <netdb.h> has 'struct addrinfo'.
45302         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
45303         EAI_OVERFLOW or AI_NUMERICSERV.
45304         * doc/posix-headers/netdb.texi: Document the problem.
45305
45306 2008-11-15  Bruno Haible  <bruno@clisp.org>
45307
45308         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
45309
45310         Make the 'sched' module work on platforms where <sched.h> exists but
45311         is incomplete (such as Haiku).
45312         * lib/sched.in.h; Include the system's <sched.h> if it exists.
45313         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
45314         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
45315         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
45316         HAVE_STRUCT_SCHED_PARAM.
45317         * modules/sched (Depends-on): Add include_next.
45318         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
45319         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
45320         * doc/posix-headers/sched.texi: Document the issue.
45321
45322 2008-11-13  Jim Meyering  <meyering@redhat.com>
45323
45324         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
45325         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
45326         test would fail due to the difference in the Report bugs to ...
45327         line.  The expected address is empty, "<>", while the actual
45328         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
45329
45330 2008-11-12  Bruno Haible  <bruno@clisp.org>
45331
45332         lstat: don't compile lstat.c on systems lacking lstat
45333         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
45334         which don't have lstat; this is handled by lib/sys_stat.in.h already.
45335         Reported by Daniel P. Berrange via Jim Meyering.
45336
45337 2008-11-12  Jim Meyering  <meyering@redhat.com>
45338
45339         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
45340
45341 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45342
45343         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
45344         instead.
45345
45346 2008-11-12  Bruno Haible  <bruno@clisp.org>
45347
45348         * lib/unicodeio.c: Include unistr.h.
45349         (utf8_wctomb): Remove function.
45350         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
45351
45352 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45353
45354         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
45355         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
45356         <bruno@clisp.org>.
45357         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
45358
45359 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45360
45361         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
45362         * doc/gnulib.texi: Add section for warnings.
45363
45364 2008-11-11  Bruno Haible  <bruno@clisp.org>
45365
45366         * lib/sockets.h: Add a comment.
45367
45368 2008-11-11  Karl Berry  <karl@gnu.org>
45369
45370         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
45371
45372 2008-11-11  Eric Blake  <ebb9@byu.net>
45373
45374         fdl.texi: avoid git symlinks
45375         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
45376
45377 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45378
45379         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
45380
45381 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45382
45383         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
45384         (gl_WARN_ADD): Substitute $2 if literal.
45385
45386 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45387
45388         * m4/warning.m4: Remove.
45389
45390 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45391
45392         * m4/warnings.m4: Almost complete rewrite. :-)
45393
45394 2008-11-10  Simon Josefsson  <simon@josefsson.org>
45395
45396         * modules/warnings: New module.
45397         * m4/warnings.m4: New file.
45398         * MODULES.html.sh: Mention warnings module.
45399         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
45400         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45401
45402 2008-11-10  Eric Blake  <ebb9@byu.net>
45403
45404         fdl.texi: make a symlink to the latest version
45405         * doc/standards.texi: Revert today's earlier change.
45406         * doc/fdl-1.2.texi: Rename from old fdl.texi...
45407         * doc/fdl.texi: ...and replace this with a symlink to the newer
45408         fdl-1.3.texi.
45409
45410 2008-11-10  Bruno Haible  <bruno@clisp.org>
45411
45412         * tests/test-select-fd.c (main): Accept the result file name as fourth
45413         argument.
45414         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
45415         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
45416
45417 2008-11-10  Bruno Haible  <bruno@clisp.org>
45418
45419         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
45420         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
45421         as autoconf-substituted macros.
45422         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
45423         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
45424         gl_NETDB_H_DEFAULTS. Set these variables.
45425         * modules/netdb (Makefile.am): Substitute these variables.
45426
45427 2008-11-10  Eric Blake  <ebb9@byu.net>
45428
45429         standards.texi: include correct file for FDL 1.3
45430         * doc/standards.texi (GNU Free Documentation License): Change
45431         include file to pull in FDL 1.3, not 1.2.
45432
45433         fdl.texi: revert accidental change to license
45434         * doc/fdl.texi: This is FDL 1.2, not 1.3.
45435
45436 2008-11-10  Bruno Haible  <bruno@clisp.org>
45437
45438         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
45439         cross-compiling guesses also when the native compile gives no result.
45440
45441 2008-11-10  Bruno Haible  <bruno@clisp.org>
45442
45443         * lib/spawni.c (__spawni): Force variable into the stack.
45444
45445 2008-11-10  Bruno Haible  <bruno@clisp.org>
45446
45447         Add support for Haiku.
45448         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
45449         glibc and BeOS, but also on Haiku.
45450         * lib/fpurge.c (fpurge): Likewise.
45451         * lib/freadable.c (freadable): Likewise.
45452         * lib/freadahead.c (freadahead): Likewise.
45453         * lib/freading.c (freading): Likewise.
45454         * lib/freadptr.c (freadptr): Likewise.
45455         * lib/freadseek.c (freadptrinc): Likewise.
45456         * lib/fseeko.c (rpl_fseeko): Likewise.
45457         * lib/fseterr.c (fseterr): Likewise.
45458         * lib/fwritable.c (fwritable): Likewise.
45459         * lib/fwriting.c (fwriting): Likewise.
45460         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
45461
45462 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45463
45464         * lib/config.charset: Treat Haiku like BeOS.
45465
45466 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45467
45468         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
45469         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
45470
45471 2008-11-08  Bruno Haible  <bruno@clisp.org>
45472
45473         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
45474         AC_CACHE_CHECK.
45475
45476 2008-11-08  Bruno Haible  <bruno@clisp.org>
45477
45478         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
45479
45480 2008-11-08  Bruno Haible  <bruno@clisp.org>
45481
45482         * tests/test-select-fd.c: New file.
45483         * tests/test-select-in.sh: New file.
45484         * tests/test-select-out.sh: New file.
45485         * tests/test-select-stdin.c: New file.
45486         * modules/select-tests (Files): Add the new files.
45487         (Depends-on): Add gettimeofday.
45488         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
45489         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
45490         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
45491
45492 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
45493             Bruno Haible  <bruno@clisp.org>
45494
45495         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
45496
45497 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
45498
45499         * build-aux/pmccabe2html: Added support for C++ source files.
45500
45501 2008-11-05  Ben Pfaff  <blp@gnu.org>
45502
45503         Fix lib/close.c build on Windows.
45504         * modules/close (Files): Add lib/w32sock.h.
45505
45506 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
45507
45508         Accept Bison's NEWS format.
45509         * build-aux/announce-gen (print_news_deltas): Tweak
45510         $re_prefix.
45511
45512 2008-11-04  Bruno Haible  <bruno@clisp.org>
45513
45514         * modules/random_r (Maintainer): Add glibc.
45515
45516 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45517
45518         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
45519         by karl@freefriends.org (Karl Berry).
45520         * doc/alloca.texi: Likewise.
45521         * doc/c-ctype.texi: Likewise.
45522         * doc/c-strcase.texi: Likewise.
45523         * doc/c-strcaseeq.texi: Likewise.
45524         * doc/c-strcasestr.texi: Likewise.
45525         * doc/c-strstr.texi: Likewise.
45526         * doc/c-strtod.texi: Likewise.
45527         * doc/c-strtold.texi: Likewise.
45528         * doc/ctime.texi: Likewise.
45529         * doc/error.texi: Likewise.
45530         * doc/fdl.texi: Likewise.
45531         * doc/gcd.texi: Likewise.
45532         * doc/getdate.texi: Likewise.
45533         * doc/gnulib-intro.texi: Likewise.
45534         * doc/gnulib-tool.texi: Likewise.
45535         * doc/gnulib.texi: Likewise.
45536         * doc/inet_ntoa.texi: Likewise.
45537         * doc/maintain.texi: Likewise.
45538         * doc/make-stds.texi: Likewise.
45539         * doc/quote.texi: Likewise.
45540         * doc/regexprops-generic.texi: Likewise.
45541         * doc/standards.texi: Likewise.
45542         * doc/verify.texi: Likewise.
45543         * doc/visibility.texi: Likewise.
45544         * doc/gnulib.texi (GNU Free Documentation License): Include
45545         fdl-1.3.texi instead of fdl.texi.
45546
45547 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45548
45549         * doc/fdl-1.3.texi: New file, from
45550         <http://www.gnu.org/licenses/fdl-1.3.texi>.
45551         * modules/fdl-1.3: Add.
45552         * MODULES.html.sh: Add fdl-1.3.
45553
45554 2008-11-03  Bruno Haible  <bruno@clisp.org>
45555
45556         Make determination of absolute name of header file work with AIX xlc.
45557         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
45558         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
45559         preprocessing.
45560         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45561         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45562
45563 2008-11-03  Simon Josefsson  <simon@josefsson.org>
45564
45565         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
45566         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
45567         <ludo@gnu.org>.
45568
45569 2008-11-02  Bruno Haible  <bruno@clisp.org>
45570
45571         Mark 'strpbrk' obsolete.
45572         * modules/strpbrk (Status, Notice): New sections.
45573         * modules/strtok_r (Depends-on): Add strpbrk.
45574
45575 2008-11-02  Bruno Haible  <bruno@clisp.org>
45576
45577         Mark 'strdup' obsolete.
45578         * modules/strdup (Status, Notice): New sections.
45579         * modules/findprog (Depends-on): Add strdup.
45580         * modules/getaddrinfo (Depends-on): Likewise.
45581         * modules/localename (Depends-on): Likewise.
45582         * modules/relocatable-lib (Depends-on): Likewise.
45583         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
45584         * modules/relocatable-prog (Depends-on): Likewise.
45585         * modules/trim (Depends-on): Likewise.
45586         * modules/unictype/gen-ctype (Depends-on): Likewise.
45587         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45588
45589 2008-11-02  Bruno Haible  <bruno@clisp.org>
45590
45591         Mark 'strcspn' obsolete.
45592         * modules/strcspn (Status, Notice): New sections.
45593
45594 2008-11-02  Bruno Haible  <bruno@clisp.org>
45595
45596         Mark 'rmdir' obsolete.
45597         * modules/rmdir (Status, Notice): New sections.
45598         * modules/clean-temp (Depends-on): Add rmdir.
45599         * modules/openat (Depends-on): Likewise.
45600
45601 2008-11-02  Bruno Haible  <bruno@clisp.org>
45602
45603         Mark 'raise' obsolete.
45604         * modules/raise (Status, Notice): New sections.
45605         (Include): Specify <signal.h>.
45606         * modules/stdio (Depends-on): Add raise.
45607         * modules/write (Depends-on): Likewise.
45608
45609 2008-11-02  Bruno Haible  <bruno@clisp.org>
45610
45611         Mark 'memset' obsolete.
45612         * modules/memset (Status, Notice): New sections.
45613
45614 2008-11-02  Bruno Haible  <bruno@clisp.org>
45615
45616         Mark 'memmove' obsolete.
45617         * modules/memmove (Status, Notice): New sections.
45618         * modules/argp (Depends-on): Add memmove.
45619         * modules/argz (Depends-on): Likewise.
45620         * modules/canonicalize (Depends-on): Likewise.
45621         * modules/canonicalize-lgpl (Depends-on): Likewise.
45622         * modules/fts (Depends-on): Likewise.
45623         * modules/getcwd (Depends-on): Likewise.
45624         * modules/human (Depends-on): Likewise.
45625         * modules/regex (Depends-on): Likewise.
45626         * modules/striconveh (Depends-on): Likewise.
45627         * modules/trim (Depends-on): Likewise.
45628         * modules/unistr/u8-move (Depends-on): Likewise.
45629         * modules/unistr/u16-move (Depends-on): Likewise.
45630         * modules/unistr/u32-move (Depends-on): Likewise.
45631
45632 2008-11-02  Bruno Haible  <bruno@clisp.org>
45633
45634         Mark 'memcpy' obsolete.
45635         * modules/memcpy (Status, Notice): New sections.
45636
45637 2008-11-02  Bruno Haible  <bruno@clisp.org>
45638
45639         Mark 'memcmp' obsolete.
45640         * modules/memcmp (Status, Notice): New sections.
45641         * modules/argmatch (Depends-on): Add memchr.
45642         * modules/backupfile (Depends-on): Likewise.
45643         * modules/c-strcasestr (Depends-on): Likewise.
45644         * modules/crypto/des (Depends-on): Likewise.
45645         * modules/csharpcomp (Depends-on): Likewise.
45646         * modules/fnmatch (Depends-on): Likewise.
45647         * modules/git-merge-changelog (Depends-on): Likewise.
45648         * modules/isnand (Depends-on): Likewise.
45649         * modules/isnand-nolibm (Depends-on): Likewise.
45650         * modules/isnanf (Depends-on): Likewise.
45651         * modules/isnanf-nolibm (Depends-on): Likewise.
45652         * modules/isnanl (Depends-on): Likewise.
45653         * modules/isnanl-nolibm (Depends-on): Likewise.
45654         * modules/mbchar (Depends-on): Likewise.
45655         * modules/memcoll (Depends-on): Likewise.
45656         * modules/quotearg (Depends-on): Likewise.
45657         * modules/regex (Depends-on): Likewise.
45658         * modules/relocatable-prog (Depends-on): Likewise.
45659         * modules/same (Depends-on): Likewise.
45660         * modules/signbit (Depends-on): Likewise.
45661         * modules/strcasestr-simple (Depends-on): Likewise.
45662         * modules/unictype/gen-ctype (Depends-on): Likewise.
45663         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45664         * modules/uniname/uniname (Depends-on): Likewise.
45665         * modules/unistr/u8-cmp (Depends-on): Likewise.
45666
45667 2008-11-02  Bruno Haible  <bruno@clisp.org>
45668
45669         Mark 'memchr' obsolete.
45670         * modules/memchr (Status, Notice): New sections.
45671         * modules/argp (Depends-on): Add memchr.
45672         * modules/base64 (Depends-on): Likewise.
45673         * modules/c-strcasestr (Depends-on): Likewise.
45674         * modules/chdir-long (Depends-on): Likewise.
45675         * modules/fnmatch (Depends-on): Likewise.
45676         * modules/getsubopt (Depends-on): Likewise.
45677         * modules/git-merge-changelog (Depends-on): Likewise.
45678         * modules/glob (Depends-on): Likewise.
45679         * modules/strcasestr-simple (Depends-on): Likewise.
45680         * modules/strnlen (Depends-on): Likewise.
45681
45682 2008-11-02  Bruno Haible  <bruno@clisp.org>
45683
45684         Mark 'atexit' obsolete.
45685         * modules/atexit (Status, Notice): New sections.
45686         * modules/chdir-long (Depends-on): Add atexit.
45687         * modules/wait-process (Depends-on): Likewise.
45688
45689 2008-11-02  Bruno Haible  <bruno@clisp.org>
45690
45691         * gnulib-tool: New option --with-obsolete.
45692         (func_usage): Document it.
45693         (func_modules_transitive_closure): Drop obsolete dependencies if
45694         incobsolete is not true.
45695         (func_import): Read and save the incobsolete variable to the cache.
45696
45697 2008-11-02  Bruno Haible  <bruno@clisp.org>
45698
45699         * modules/TEMPLATE-EXTENDED: New field 'Status'.
45700         * gnulib-tool: New option --extract-status.
45701         (func_usage): Document it.
45702         (sed_extract_prog): Recognize it.
45703         (func_get_status): New function.
45704
45705 2008-10-30  Simon Josefsson  <simon@josefsson.org>
45706
45707         * modules/sockets (License): Change from LGPL to LGPLv2+.
45708
45709 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45710
45711         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45712
45713 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45714
45715         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45716         Mention times and sys_times.
45717         * modules/sys_times, modules/sys_times-tests: New modules.
45718         * modules/times, modules/times-tests: Likewise
45719         * m4/sys_times_h.m4: New file.
45720         * lib/sys_times.in.h: Likewise
45721         * lib/times.c: Likewise.
45722         * tests/test-sys_times.c: Likewise.
45723         * tests/test-times.c: Likewise.
45724         * doc/posix-headers/sys_times.texi: Update.
45725         * doc/posix-functions/times.texi: Update.
45726
45727 2008-10-28  Jim Meyering  <meyering@redhat.com>
45728
45729         * modules/tempname (Depends-on): Add lstat.
45730
45731         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45732
45733 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45734
45735         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
45736         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
45737         using idiom used elsewhere in gnulib.
45738
45739 2008-10-27  Jim Meyering  <meyering@redhat.com>
45740
45741         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
45742
45743 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45744
45745         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
45746         TESTS_ENVIRONMENT, for shell scripts that needs to call built
45747         programs.
45748         * tests/test-argp-2.sh: Use $EXEEXT when needed.
45749
45750 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45751
45752         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
45753
45754 2008-10-27  Bruno Haible  <bruno@clisp.org>
45755
45756         * tests/test-lstat.c: Include <stdio.h>.
45757
45758 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45759
45760         * modules/lstat-tests: New module.
45761         * tests/test-lstat.c: New file.
45762
45763 2008-10-26  Jim Meyering  <meyering@redhat.com>
45764
45765         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45766
45767 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45768             Bruno Haible  <bruno@clisp.org>
45769
45770         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45771         * modules/configmake (Include): Add a note that the include must come
45772         after all system headers.
45773         * lib/javaversion.c: Include configmake.h after all other includes.
45774
45775 2008-10-26  Bruno Haible  <bruno@clisp.org>
45776
45777         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45778         HAVE_STRUCT_RANDOM_DATA to 1.
45779         (gl_STDLIB_H): Simplify.
45780
45781 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45782
45783         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45784         substitute HAVE_STRUCT_RANDOM_DATA.
45785         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45786         random_data.
45787         * modules/stdlib (Makefile.am): Substitute
45788         HAVE_STRUCT_RANDOM_DATA.
45789
45790 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45791
45792         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45793         * doc/gnulib-intro.texi (Copyright): Likewise.
45794
45795 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45796
45797         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
45798         findings.
45799
45800 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
45801             Bruno Haible  <bruno@clisp.org>
45802
45803         * lib/unistd.in.h: Include <winsock2.h>.
45804         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
45805         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
45806         Provide dummy declarations.
45807         (gethostname): Override.
45808         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45809         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45810         gl_PREREQ_SYS_H_WINSOCK2.
45811         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45812         * doc/posix-functions/gethostname.texi: More details.
45813
45814 2008-10-25  Bruno Haible  <bruno@clisp.org>
45815
45816         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45817         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45818         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45819
45820         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45821         here ...
45822         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45823         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45824         gl_UNISTD_H_DEFAULTS.
45825
45826 2008-10-25  Eric Blake  <ebb9@byu.net>
45827
45828         signbit: avoid spurious compiler failure
45829         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45830         declarations inside function.
45831
45832 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45833             Bruno Haible  <bruno@clisp.org>
45834
45835         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45836         * modules/random_r (Depends-on): Add stdint.
45837
45838 2008-10-24  Bruno Haible  <bruno@clisp.org>
45839
45840         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45841         Eggert.
45842         * modules/strerror (License): Likewise.
45843
45844 2008-10-24  Jim Meyering  <meyering@redhat.com>
45845
45846         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45847         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45848
45849 2008-10-24  Eric Blake  <ebb9@byu.net>
45850
45851         getgroups: fix compilation when getgroups is available
45852         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45853         but with <config.h> override of getgroups disabled.
45854
45855 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45856
45857         * doc/gnulib.texi (Header files): Add note about C++ problems.
45858         Explained by Bruno Haible <bruno@clisp.org>.
45859
45860 2008-10-23  Bruno Haible  <bruno@clisp.org>
45861
45862         Define a dummy SA_NODEFER macro on Interix.
45863         * lib/signal.in.h (SA_NODEFER): Define fallback.
45864         Reported by Aleksey Cheusov <cheusov@tut.by> via
45865         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45866
45867 2008-10-23  Bruno Haible  <bruno@clisp.org>
45868
45869         * modules/freadahead (License): Change to LGPLv2+.
45870         Suggested by Simon Josefsson.
45871
45872 2008-10-23  Jim Meyering  <meyering@redhat.com>
45873
45874         random_r: new module
45875         * modules/random_r: New file.
45876         * m4/random_r.m4: New file.
45877         * lib/random_r.c: New file, from glibc.
45878         * modules/random_r-tests: New file.
45879         * tests/test-random_r.c: New file.
45880         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45881          Declare.
45882         (RAND_MAX): Define.
45883         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45884         * modules/stdlib: Substitute them, too.
45885         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45886         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45887         * doc/glibc-functions/random_r.texi: Likewise.
45888         * doc/glibc-functions/setstate_r.texi: Likewise.
45889         * doc/glibc-functions/srandom_r.texi: Likewise.
45890         * config/srclist.txt: Mention it.
45891
45892 2008-10-23  David Lutterkort  <lutter@redhat.com>
45893
45894         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45895         link requirement
45896
45897 2008-10-23  Jim Meyering  <meyering@redhat.com>
45898
45899         selinux-h: mark parameters of stub functions as intentionally unused
45900         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45901         * lib/se-context.in.h: Likewise.
45902
45903 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45904
45905         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45906
45907 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45908
45909         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45910
45911 2008-10-22  Eric Blake  <ebb9@byu.net>
45912
45913         glthread/thread: avoid compiler warning
45914         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45915         Add unreachable abort to silence compiler.
45916
45917 2008-10-22  Eric Blake  <ebb9@byu.net>
45918
45919         netdb: also supply struct addrinfo for cygwin 1.5.x
45920         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45921         older cygwin.
45922         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45923         cygwin.
45924         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45925
45926 2008-10-22  Bruno Haible  <bruno@clisp.org>
45927
45928         * users.txt: Update entry about pspp.
45929
45930 2008-10-21  Bruno Haible  <bruno@clisp.org>
45931
45932         Simplification.
45933         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45934         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45935
45936         Simplification.
45937         * lib/ioctl.c (ioctl): Don't undefine.
45938         * lib/socket.c (socket): Don't undefine.
45939
45940         Remove unused module indicator macros.
45941         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45942         GNULIB_$1 as a C macro.
45943
45944         * doc/posix-functions/close.texi: Undo last change.
45945         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45946         Windows platforms.
45947
45948 2008-10-21  Bruno Haible  <bruno@clisp.org>
45949
45950         Add gethostname() declaration to <unistd.h>.
45951         * lib/unistd.in.h (gethostname): New declaration.
45952         * lib/gethostname.c: Include <unistd.h>.
45953         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45954         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45956         and HAVE_GETHOSTNAME.
45957         * modules/gethostname (Depends-on): Add unistd.
45958         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45959         (Include): Specify <unistd.h>.
45960         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45961         HAVE_GETHOSTNAME.
45962         * tests/test-gethostname.c: Include <unistd.h> first.
45963
45964 2008-10-21  Bruno Haible  <bruno@clisp.org>
45965
45966         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45967         * modules/select-tests (Depends-on): Likewise.
45968         Reported by Simon Josefsson.
45969
45970 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45971
45972         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45973         * lib/accept.c: New file, based on winsock.c.
45974         * lib/bind.c: New file, based on winsock.c.
45975         * lib/connect.c: New file, based on winsock.c.
45976         * lib/getpeername.c: New file, based on winsock.c.
45977         * lib/getsockname.c: New file, based on winsock.c.
45978         * lib/getsockopt.c: New file, based on winsock.c.
45979         * lib/ioctl.c: New file, based on winsock.c.
45980         * lib/listen.c: New file, based on winsock.c.
45981         * lib/recv.c: New file, based on winsock.c.
45982         * lib/recvfrom.c: New file, based on winsock.c.
45983         * lib/send.c: New file, based on winsock.c.
45984         * lib/sendto.c: New file, based on winsock.c.
45985         * lib/setsockopt.c: New file, based on winsock.c.
45986         * lib/shutdown.c: New file, based on winsock.c.
45987         * lib/socket.c: New file, based on winsock.c.
45988         * lib/w32sock.h: New file, based on winsock.c.
45989         * lib/winsock.c: Remove file.
45990         * modules/accept: Likewise.
45991         * modules/bind: Likewise.
45992         * modules/connect: Likewise.
45993         * modules/getpeername: Likewise.
45994         * modules/getsockname: Likewise.
45995         * modules/getsockopt: Likewise.
45996         * modules/ioctl: Likewise.
45997         * modules/listen: Likewise.
45998         * modules/recv: Likewise.
45999         * modules/recvfrom: Likewise.
46000         * modules/send: Likewise.
46001         * modules/sendto: Likewise.
46002         * modules/setsockopt: Likewise.
46003         * modules/shutdown: Likewise.
46004         * modules/socket: Use socket.c instead of winsock.c.
46005         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
46006         * doc/posix-functions/accept.texi: Doc fix.
46007         * doc/posix-functions/bind.texi: Doc fix.
46008         * doc/posix-functions/close.texi: Doc fix.
46009         * doc/posix-functions/connect.texi: Doc fix.
46010         * doc/posix-functions/getpeername.texi: Doc fix.
46011         * doc/posix-functions/getsockname.texi: Doc fix.
46012         * doc/posix-functions/getsockopt.texi: Doc fix.
46013         * doc/posix-functions/ioctl.texi: Doc fix.
46014         * doc/posix-functions/listen.texi: Doc fix.
46015         * doc/posix-functions/recv.texi: Doc fix.
46016         * doc/posix-functions/recvfrom.texi: Doc fix.
46017         * doc/posix-functions/send.texi: Doc fix.
46018         * doc/posix-functions/sendto.texi: Doc fix.
46019         * doc/posix-functions/setsockopt.texi: Doc fix.
46020         * doc/posix-functions/shutdown.texi: Doc fix.
46021         * doc/posix-functions/socket.texi: Doc fix.
46022
46023 2008-10-20  Bruno Haible  <bruno@clisp.org>
46024
46025         Take into account the role of SIGABRT_COMPAT on Windows 2008.
46026         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
46027         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
46028         as an alias for SIGABRT.
46029         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
46030         (sigaction): Map it to SIGABRT.
46031         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
46032
46033 2008-10-20  Bruno Haible  <bruno@clisp.org>
46034
46035         * lib/fts.c: Don't include lstat.h.
46036         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
46037
46038         Move the lstat() declaration to <sys/stat.h>.
46039         * lib/lstat.h: Remove file.
46040         * lib/sys_stat.in.h: Add special invocation convention.
46041         (lstat): New declaration.
46042         * lib/lstat.c (orig_lstat): New function.
46043         (rpl_lstat): Use orig_lstat instead of lstat.
46044         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
46045         AC_C_INLINE. Set REPLACE_LSTAT.
46046         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
46047         and REPLACE_LSTAT.
46048         * modules/lstat (Files): Remove lib/lstat.h.
46049         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46050         (Include): Specify <sys/stat.h> instead of lstat.h.
46051         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
46052         REPLACE_LSTAT.
46053         * NEWS: Mention the change.
46054
46055 2008-10-20  Bruno Haible  <bruno@clisp.org>
46056
46057         * modules/posix_spawn-tests: New file.
46058         * tests/test-posix_spawn3.c: New file.
46059
46060 2008-10-20  Bruno Haible  <bruno@clisp.org>
46061
46062         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
46063         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46064         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
46065         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46066         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
46067
46068 2008-10-20  Bruno Haible  <bruno@clisp.org>
46069
46070         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
46071         of posix_spawn on AIX 5.3.
46072
46073 2008-10-20  Bruno Haible  <bruno@clisp.org>
46074
46075         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
46076
46077 2008-10-20  Bruno Haible  <bruno@clisp.org>
46078
46079         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
46080         of AC_LANG_PROGRAM.
46081
46082 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46083
46084         * lib/netdb.in.h: Don't define GNU specific constants until they
46085         are supported or needed.  Reported by Bruno Haible
46086         <bruno@clisp.org>.
46087
46088 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46089
46090         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
46091
46092 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46093
46094         * lib/getaddrinfo.h: Remove file.
46095         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
46096         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
46097         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
46098         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
46099         * modules/netdb: Substitute GNULIB_GETADDRINFO.
46100         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
46101         * tests/test-getaddrinfo.c: Likewise.
46102         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
46103         * NEWS: Mention change.
46104
46105 2008-10-19  Bruno Haible  <bruno@clisp.org>
46106
46107         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
46108
46109 2008-10-19  Bruno Haible  <bruno@clisp.org>
46110
46111         * lib/wait-process.c: Include simply <sys/wait.h>.
46112         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
46113         WIFSTOPPED): Remove fallback definitions.
46114         * modules/wait-process (Depends-on): Add sys_wait.
46115
46116         New module 'sys_wait'.
46117         * modules/sys_wait: New file.
46118         * lib/sys_wait.in.h: New file, partially copied from
46119         lib/wait-process.c.
46120         * m4/sys_wait_h.m4: New file.
46121         * doc/posix-headers/sys_wait.texi: Mention the new module.
46122
46123 2008-10-19  Bruno Haible  <bruno@clisp.org>
46124
46125         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
46126
46127 2008-10-19  Bruno Haible  <bruno@clisp.org>
46128
46129         Assume that waitpid() fills an 'int' status, not a 'union wait'.
46130         * lib/wait-process.c (WAIT_T): Remove type.
46131         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
46132         (wait_subprocess): Update.
46133
46134 2008-10-19  Bruno Haible  <bruno@clisp.org>
46135
46136         New module 'atoll'.
46137         * modules/atoll: New file.
46138         * lib/stdlib.in.h (atoll): New declaration.
46139         * lib/atoll.c: New file, from glibc with modifications.
46140         * m4/atoll.m4: New file.
46141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
46142         HAVE_ATOLL.
46143         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
46144         * doc/posix-functions/atoll.texi: Mention the new module.
46145
46146 2008-10-19  Bruno Haible  <bruno@clisp.org>
46147
46148         Add strtoull() declaration to <stdlib.h>.
46149         * lib/stdlib.in.h (strtoull): New declaration.
46150         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46151         Set HAVE_STRTOULL.
46152         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
46153         HAVE_STRTOULL.
46154         * modules/strtoull (Depends-on): Add stdlib.
46155         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46156         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
46157         HAVE_STRTOULL.
46158
46159 2008-10-19  Bruno Haible  <bruno@clisp.org>
46160
46161         Add strtoll() declaration to <stdlib.h>.
46162         * lib/stdlib.in.h (strtoll): New declaration.
46163         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46164         Set HAVE_STRTOLL.
46165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
46166         HAVE_STRTOLL.
46167         * modules/strtoll (Depends-on): Add stdlib.
46168         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46169         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
46170
46171 2008-10-19  Bruno Haible  <bruno@clisp.org>
46172
46173         * modules/bcopy (Depends-on): Add strings.
46174         (Include): Specify <strings.h>.
46175
46176 2008-10-19  Bruno Haible  <bruno@clisp.org>
46177
46178         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
46179
46180 2008-10-19  Bruno Haible  <bruno@clisp.org>
46181
46182         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
46183         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
46184         mingw.
46185
46186 2008-10-19  Bruno Haible  <bruno@clisp.org>
46187
46188         * lib/atanl.c: Don't include isnanl.h.
46189         * lib/cosl.c: Likewise.
46190         * lib/ldexpl.c: Likewise.
46191         * lib/logl.c: Likewise.
46192         * lib/sinl.c: Likewise.
46193         * lib/sqrtl.c: Likewise.
46194         * lib/tanl.c: Likewise.
46195
46196         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
46197         * lib/isnanf.h: Remove file.
46198         * lib/isnand.h: Remove file.
46199         * lib/isnanl.h: Remove file.
46200         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
46201         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
46202         macros.
46203         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46204         HAVE_ISNANF, don't define it as a C macro.
46205         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
46206         HAVE_ISNAND, don't define it as a C macro.
46207         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
46208         HAVE_ISNANL, don't define it as a C macro.
46209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
46210         HAVE_ISNAN[FDL].
46211         * modules/isnanf (Files): Remove lib/isnanf.h.
46212         (Depends-on): Add math.
46213         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46214         (Include): Specify <math.h> instead of isnanf.h.
46215         * modules/isnand (Files): Remove lib/isnand.h.
46216         (Depends-on): Add math.
46217         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46218         (Include): Specify <math.h> instead of isnand.h.
46219         * modules/isnanl (Files): Remove lib/isnanl.h.
46220         (Depends-on): Add math.
46221         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46222         (Include): Specify <math.h> instead of isnanl.h.
46223         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
46224         HAVE_ISNAN[FDL].
46225         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
46226         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
46227         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
46228         * NEWS: Mention the change.
46229
46230 2008-10-18  Bruno Haible  <bruno@clisp.org>
46231
46232         Add getusershell(), setusershell(), endusershell() declarations to
46233         <unistd.h>.
46234         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
46235         declarations.
46236         * lib/getusershell.c: Include unistd.h.
46237         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
46238         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46239         HAVE_GETUSERSHELL.
46240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
46241         and HAVE_GETUSERSHELL.
46242         * modules/getusershell (Depends-on): Add unistd, extensions.
46243         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46244         (Include): Specify <unistd.h>.
46245         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
46246         HAVE_GETUSERSHELL.
46247
46248 2008-10-18  Bruno Haible  <bruno@clisp.org>
46249
46250         Add a getloadavg() declaration to <stdlib.h>.
46251         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
46252         getloadavg declaration.
46253         (getloadavg): New declaration.
46254         * lib/getloadavg.c: Include <stdlib.h> first.
46255         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
46256         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
46257         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
46258         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
46259         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46260         * modules/getloadavg (Depends-on): Add stdlib, extensions.
46261         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46262         (Include): Specify <stdlib.h>.
46263         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
46264         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46265
46266 2008-10-18  Bruno Haible  <bruno@clisp.org>
46267
46268         * lib/dirchownmod.c: Don't include lchmod.h.
46269
46270         Move the lchmod() declaration to <sys/stat.h>.
46271         * lib/lchmod.h: Remove file.
46272         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
46273         (lchmod): New declaration, moved here from lib/lchown.h.
46274         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
46275         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
46276         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
46277         and HAVE_LCHMOD.
46278         * modules/lchmod (Files): Remove lib/lchmod.h.
46279         (Depends-on): Add sys_stat, extensions.
46280         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46281         (Include): Specify <sys/stat.h> instead of lchmod.h.
46282         * modules/sys_stat (Depends-on): Add link-warning.
46283         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
46284         definition of GL_LINK_WARNING.
46285         * NEWS: Mention the change.
46286
46287 2008-10-18  Bruno Haible  <bruno@clisp.org>
46288
46289         * lib/fchdir.c: Don't include dirfd.h.
46290         * lib/fts.c: Likewise.
46291         * lib/getcwd.c: Likewise.
46292         * lib/glob.c: Likewise.
46293
46294         Move the dirfd() declaration to <dirent.h>.
46295         * lib/dirfd.h: Remove file.
46296         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
46297         (dirfd): New declaration.
46298         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
46299         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
46300         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
46301         HAVE_DECL_DIRFD.
46302         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
46303         HAVE_DECL_DIRFD.
46304         * modules/dirfd (Files): Remove lib/dirfd.h.
46305         (Depends-on): Add dirent, extensions.
46306         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
46307         (Include): Specify <dirent.h> instead of dirfd.h.
46308         * modules/dirent (Depends-on): Add link-warning.
46309         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
46310         definition of GL_LINK_WARNING.
46311         * NEWS: Mention the change.
46312
46313 2008-10-18  Bruno Haible  <bruno@clisp.org>
46314
46315         Move the euidaccess() declaration to <unistd.h>.
46316         * lib/euidaccess.h: Remove file.
46317         * lib/unistd.in.h (euidaccess): New declaration.
46318         * lib/euidaccess.c: Don't include euidaccess.h.
46319         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
46320         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
46321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
46322         and HAVE_EUIDACCESS.
46323         * modules/euidaccess (Files): Remove lib/euidaccess.h.
46324         (Depends-on): Add unistd.
46325         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46326         (Include): Specify <unistd.h> instead of euidaccess.h.
46327         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
46328         HAVE_EUIDACCESS.
46329         * NEWS: Mention the change.
46330
46331 2008-10-18  Bruno Haible  <bruno@clisp.org>
46332
46333         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
46334
46335         Move the getdomainname() declaration to <unistd.h>.
46336         * lib/getdomainname.h: Remove file.
46337         * lib/unistd.in.h (getdomainname): New declaration.
46338         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
46339         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46340         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46341         HAVE_GETDOMAINNAME.
46342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46343         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
46344         * modules/getdomainname (Files): Remove lib/getdomainname.h.
46345         (Depends-on): Add unistd, extensions.
46346         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46347         (Includes): Specify <unistd.h> instead of getdomainname.h.
46348         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
46349         HAVE_GETDOMAINNAME.
46350         * NEWS: Mention the change.
46351
46352 2008-10-18  Bruno Haible  <bruno@clisp.org>
46353
46354         * modules/dirent: New file.
46355         * m4/dirent_h.m4: New file.
46356         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
46357         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
46358         * modules/fchdir (Files): Remove lib/dirent.in.h.
46359         (Depends-on): Add dirent.
46360         (Makefile.am): Move rules to modules/dirent.
46361         * doc/posix-headers/dirent.texi: Mention the new module.
46362
46363 2008-10-18  Bruno Haible  <bruno@clisp.org>
46364
46365         Avoid -Wunused-parameter warnings in public gnulib header files.
46366         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
46367         macro.
46368         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
46369
46370 2008-10-18  Bruno Haible  <bruno@clisp.org>
46371
46372         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
46373         * doc/glibc-functions/error.texi: Mention the module 'error'.
46374         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
46375         * doc/glibc-functions/getdomainname.texi: Mention the module
46376         'getdomainname'.
46377         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
46378         * doc/glibc-functions/getpagesize.texi: Mention the module
46379         'getpagesize'.
46380         * doc/glibc-functions/getusershell.texi: Mention the module
46381         'getusershell'.
46382         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
46383         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
46384         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
46385         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
46386         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
46387         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
46388         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
46389         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
46390         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
46391         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
46392         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
46393         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
46394         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
46395         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
46396
46397 2008-10-17  Bruno Haible  <bruno@clisp.org>
46398
46399         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
46400         HP-UX and IRIX, use -0.0L.
46401         * tests/test-ceill.c (minus_zero): Likewise.
46402         * tests/test-floorl.c (minus_zero): Likewise.
46403         * tests/test-frexpl.c (minus_zero): Likewise.
46404         * tests/test-isnan.c (minus_zerol): Likewise.
46405         * tests/test-isnanl.h (minus_zero): Likewise.
46406         * tests/test-ldexpl.c (minus_zero): Likewise.
46407         * tests/test-roundl.c (minus_zero): Likewise.
46408         * tests/test-signbit.c (minus_zerol): Likewise.
46409         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46410         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46411         * tests/test-truncl.c (minus_zero): Likewise.
46412         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46413         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46414         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
46415         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46416
46417 2008-10-17  Bruno Haible  <bruno@clisp.org>
46418
46419         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
46420         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
46421         that it gets activated only for gcc >= 3.0.
46422         * lib/dirent.in.h: Likewise.
46423         * lib/errno.in.h: Likewise.
46424         * lib/fcntl.in.h: Likewise.
46425         * lib/float.in.h: Likewise.
46426         * lib/iconv.in.h: Likewise.
46427         * lib/inttypes.in.h: Likewise.
46428         * lib/locale.in.h: Likewise.
46429         * lib/math.in.h: Likewise.
46430         * lib/netdb.in.h: Likewise.
46431         * lib/netinet_in.in.h: Likewise.
46432         * lib/search.in.h: Likewise.
46433         * lib/signal.in.h: Likewise.
46434         * lib/spawn.in.h: Likewise.
46435         * lib/stdarg.in.h: Likewise.
46436         * lib/stdint.in.h: Likewise.
46437         * lib/stdio.in.h: Likewise.
46438         * lib/stdlib.in.h: Likewise.
46439         * lib/string.in.h: Likewise.
46440         * lib/strings.in.h: Likewise.
46441         * lib/sys_file.in.h: Likewise.
46442         * lib/sys_ioctl.in.h: Likewise.
46443         * lib/sys_select.in.h: Likewise.
46444         * lib/sys_socket.in.h: Likewise.
46445         * lib/sys_stat.in.h: Likewise.
46446         * lib/sys_time.in.h: Likewise.
46447         * lib/sysexits.in.h: Likewise.
46448         * lib/time.in.h: Likewise.
46449         * lib/unistd.in.h: Likewise.
46450         * lib/wchar.in.h: Likewise.
46451         * lib/wctype.in.h: Likewise.
46452         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46453
46454 2008-10-17  Jim Meyering  <meyering@redhat.com>
46455
46456         ignore-value: don't depend on inline module
46457         * modules/ignore-value (Depends-on): Remove 'inline'.
46458         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
46459         Suggestion from Bruno Haible.
46460
46461 2008-10-17  Bruno Haible  <bruno@clisp.org>
46462
46463         New implementation of condition variables for Win32.
46464         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
46465         (gl_linked_waitqueue_t): New type.
46466         (gl_cond_t): Use it.
46467         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
46468         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
46469         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
46470         (glthread_cond_init_func, glthread_cond_wait_func,
46471         glthread_cond_timedwait_func, glthread_cond_signal_func,
46472         glthread_cond_broadcast_func, glthread_cond_destroy_func):
46473         Reimplemented on the basis of gl_linked_waitqueue_t.
46474         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
46475         gl_waitqueue_t.
46476         (gl_rwlock_t): Update.
46477         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
46478
46479 2008-10-17  Simon Josefsson  <simon@josefsson.org>
46480
46481         * modules/recvfrom (Depends-on): Add dependency on getpeername.
46482         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46483
46484 2008-10-17  Jim Meyering  <meyering@redhat.com>
46485
46486         ignore-value: new module
46487         * modules/ignore-value: New file.
46488         * lib/ignore-value.h: New file.
46489         * MODULES.html.sh (Compiler warning management): New section,
46490         just for this module.  More to come.
46491
46492 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46493
46494         open-safer.c: avoid 'signed and unsigned in conditional...' warning
46495         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
46496         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
46497
46498 2008-10-16  Jim Meyering  <meyering@redhat.com>
46499
46500         openat-die.c: avoid 'no previous prototype' warning
46501         * lib/openat-die.c: Include "openat.h".
46502         Reported by Reuben Thomas <rrt@sc3d.org>.
46503
46504 2008-10-16  Simon Josefsson  <simon@josefsson.org>
46505
46506         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
46507         * lib/netdb.in.h: Fix typo.
46508         Reported by Bruno Haible  <bruno@clisp.org>
46509
46510         * lib/netdb.in.h: Include sys/socket.h for platforms without
46511         netdb.h, to get structures like hostent on MinGW.
46512         * modules/netdb (Depends-on): Add sys_socket.
46513
46514 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46515
46516         * modules/netdb, modules/netdb-tests: New file.
46517         * m4/netdb_h.m4: New file.
46518         * lib/netdb.in.h: Add, currently just an empty file pending
46519         definitions.
46520         * tests/test-netdb.c: New file.
46521         * doc/posix-headers/netdb.texi: Mention that we replace it if
46522         needed.
46523         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46524         netdb.
46525
46526 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46527
46528         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
46529         with code.
46530
46531 2008-10-13  Bruno Haible  <bruno@clisp.org>
46532
46533         * lib/glthread/cond.c (glthread_cond_wait_func,
46534         glthread_cond_timedwait_func): Add a comment.
46535
46536 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46537
46538         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
46539         * tests/test-select.c: Likewise,
46540
46541 2008-10-13  Bruno Haible  <bruno@clisp.org>
46542
46543         * lib/glthread/cond.c (glthread_cond_wait_func,
46544         glthread_cond_timedwait_func): Fix variable name.
46545         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46546
46547 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
46548
46549         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
46550         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
46551         struct sockaddr.sa_len.
46552         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
46553
46554 2008-10-13  Simon Josefsson  <simon@josefsson.org>
46555
46556         * build-aux/pmccabe2html: Add css and css_url parameters.
46557
46558 2008-10-12  Bruno Haible  <bruno@clisp.org>
46559
46560         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
46561         calling aclx_get.
46562         Reported by Rainer Tammer <tammer@tammer.net>.
46563
46564 2008-10-12  Bruno Haible  <bruno@clisp.org>
46565
46566         Use msvcrt aware primitives for creation/termination of Win32 threads.
46567         * lib/glthread/thread.c: Include <process.h>.
46568         (glthread_create_func): Use _beginthreadex instead of CreateThread.
46569         (wrapper_func): Update signature.
46570         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
46571
46572 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46573             Bruno Haible  <bruno@clisp.org>
46574
46575         Provide a Win32 implementation of the 'cond' module.
46576         * lib/glthread/cond.h [USE_WIN32]: New implementation.
46577         * lib/glthread/cond.c (glthread_cond_init_func,
46578         glthread_cond_wait_func, glthread_cond_timedwait_func,
46579         glthread_cond_signal_func, glthread_cond_broadcast_func,
46580         glthread_cond_destroy_func) [USE_WIN32]: New functions.
46581         * modules/cond (Dependencies): Add gettimeofday.
46582
46583 2008-10-11  Bruno Haible  <bruno@clisp.org>
46584
46585         Make sleep work on older versions of mingw.
46586         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
46587         only whether it exists.
46588         * doc/posix-functions/sleep.texi: Mention the problem with older
46589         versions of mingw.
46590
46591 2008-10-11  Bruno Haible  <bruno@clisp.org>
46592
46593         New module 'shutdown'.
46594         * modules/shutdown: New file.
46595         * lib/sys_socket.in.h (shutdown): New declaration.
46596         * lib/winsock.c (shutdown): New function.
46597         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46598         GNULIB_SHUTDOWN.
46599         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
46600         * doc/posix-functions/shutdown.texi: Document the new module.
46601
46602 2008-10-11  Jim Meyering  <meyering@redhat.com>
46603
46604         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
46605
46606 2008-10-11  Bruno Haible  <bruno@clisp.org>
46607
46608         New module 'fclose'.
46609         * modules/fclose: New file.
46610         * lib/stdio.in.h (fclose): New declaration.
46611         * lib/fclose.c: New file.
46612         * m4/fclose.m4: New file.
46613         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
46614         REPLACE_FCLOSE.
46615         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
46616         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
46617         REPLACE_FCLOSE.
46618         * modules/close (Depends-on): fclose.
46619         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
46620
46621 2008-10-11  Bruno Haible  <bruno@clisp.org>
46622
46623         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
46624         set errno and don't call _close.
46625
46626 2008-10-10  Bruno Haible  <bruno@clisp.org>
46627
46628         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
46629         ACL, not afterwards. Fixes test failure on Cygwin.
46630
46631 2008-10-09  Ben Pfaff  <blp@gnu.org>
46632
46633         * build-aux/announce-gen: Fix gnulib version related part of usage
46634         message.  Die with a useful error message if no tarballs are
46635         found.
46636
46637 2008-10-10  Jim Meyering  <meyering@redhat.com>
46638
46639         bootstrap: use git's --depth=N option only if it's supported
46640         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
46641         recognize the --depth option.  Reported by Pádraig Brady.
46642
46643 2008-10-09  Bruno Haible  <bruno@clisp.org>
46644
46645         New module 'ioctl'.
46646         * modules/ioctl: New file.
46647         * lib/sys_socket.in.h (ioctl): Remove declaration.
46648         * lib/winsock.c: Include <sys/ioctl.h>.
46649         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46650         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46651         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46652         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46653         * doc/posix-functions/ioctl.texi: Mention the new module.
46654
46655 2008-10-09  Bruno Haible  <bruno@clisp.org>
46656
46657         New module 'sys_ioctl'.
46658         * lib/sys_ioctl.in.h: New file.
46659         * m4/sys_ioctl_h.m4: New file.
46660         * modules/sys_ioctl: New file.
46661         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46662
46663 2008-10-09  Bruno Haible  <bruno@clisp.org>
46664
46665         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46666         * lib/winsock.c: Include <stdarg.h>.
46667         (rpl_ioctl): Change to second argument 'int' and then varargs.
46668
46669 2008-10-09  Bruno Haible  <bruno@clisp.org>
46670
46671         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46672         when the sys_socket module is present and the system has <winsock2.h>.
46673
46674 2008-10-09  Bruno Haible  <bruno@clisp.org>
46675
46676         * doc/posix-functions/close.texi: Mention module 'close' instead of
46677         module 'sys_socket'.
46678
46679 2008-10-09  Bruno Haible  <bruno@clisp.org>
46680
46681         * doc/glibc-headers/sys_ioctl.texi: New file.
46682         * doc/gnulib.texi: Include it.
46683
46684 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46685             Bruno Haible  <bruno@clisp.org>
46686
46687         Combine the two replacements of 'close'.
46688         * lib/sys_socket.in.h (close): Define to a reminder to include
46689         <unistd.h>.
46690         (_gl_close_fd_maybe_socket): New declaration.
46691         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
46692         * lib/winsock.c (close): Remove undefinition.
46693         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
46694         needed for the gnulib module 'close'.
46695         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
46696         define to an error symbol or to a warning, if suitable.
46697         * lib/close.c: Include <sys/socket.h>.
46698         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
46699         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
46700         UNISTD_H_HAVE_WINSOCK2_H.
46701         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
46702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46703         UNISTD_H_HAVE_WINSOCK2_H.
46704         * modules/sys_socket (Files): Add m4/unistd_h.m4.
46705         (configure.ac): Set a module indicator.
46706         (Makefile.am): Substitute GNULIB_CLOSE.
46707         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46708         * modules/poll-tests (Depends-on): Add close.
46709         * modules/select-tests (Depends-on): Likewise.
46710
46711 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46712             Bruno Haible  <bruno@clisp.org>
46713
46714         New module 'close'.
46715         * modules/close: New file.
46716         * lib/unistd.in.h (close): Move declaration out of the
46717         FCHDIR_REPLACEMENT scope.
46718         (_gl_unregister_fd): New declaration.
46719         * lib/close.c: New file.
46720         * lib/fchdir.c (rpl_close): Remove function.
46721         * m4/close.m4: New file.
46722         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46723         close.
46724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46725         REPLACE_CLOSE.
46726         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46727         REPLACE_CLOSE.
46728         * modules/fchdir (Depends-on): Add close.
46729
46730 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46731             Bruno Haible  <bruno@clisp.org>
46732
46733         * lib/fcntl.in.h (open): Simplify conditionals.
46734         (_gl_register_fd): New declaration.
46735         * lib/fchdir.c (rpl_open): Remove function.
46736         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
46737         also.
46738         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
46739         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46740         open.
46741
46742 2008-10-09  Jim Meyering  <meyering@redhat.com>
46743
46744         GNUmakefile: use the more name-space-friendly "_version"
46745         * top/GNUmakefile (_dummy): Update.
46746         (_version): Rename from "version".
46747
46748 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46749             Bruno Haible  <bruno@clisp.org>
46750
46751         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
46752         rpl_close.
46753         (_gl_register_fd): New function, extracted from rpl_open.
46754         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
46755         (rpl_open, rpl_opendir): Use _gl_register_fd.
46756
46757 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46758
46759         Fix organization of 'open' replacement.
46760         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46761         (gl_FUNC_OPEN): Use it.
46762         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46763
46764 2008-10-08  Bruno Haible  <bruno@clisp.org>
46765
46766         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46767
46768 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46769
46770         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46771         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46772         listen).
46773
46774 2008-10-08  Eric Blake  <ebb9@byu.net>
46775
46776         GNUmakefile: add 'make version' target
46777         * top/GNUmakefile (_curr-ver): Split version update rules...
46778         (version): ...into a target.
46779
46780 2008-10-07  Bruno Haible  <bruno@clisp.org>
46781
46782         Use a more portable replacement expression for -0.0L.
46783         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46784         instead of -0.0L. Fix m4 quotation.
46785
46786         * tests/test-signbit.c: Include <float.h>.
46787         (minus_zero): New variable.
46788         (test_signbitl): Use minus_zero instead of -zero.
46789         * modules/signbit-tests (Depends-on): Add float.
46790
46791         * tests/test-ceill.c: Include <float.h>.
46792         (zero): Remove variable.
46793         (minus_zero): New variable.
46794         (main): Use minus_zero instead of -zero.
46795         * modules/ceill-tests (Depends-on): Add float.
46796
46797         * tests/test-floorl.c: Include <float.h>.
46798         (zero): Remove variable.
46799         (minus_zero): New variable.
46800         (main): Use minus_zero instead of -zero.
46801         * modules/floorl-tests (Depends-on): Add float.
46802
46803         * tests/test-roundl.c: Include <float.h>.
46804         (zero): Remove variable.
46805         (minus_zero): New variable.
46806         (main): Use minus_zero instead of -zero.
46807         * modules/roundl-tests (Depends-on): Add float.
46808
46809         * tests/test-truncl.c: Include <float.h>.
46810         (zero): Remove variable.
46811         (minus_zero): New variable.
46812         (main): Use minus_zero instead of -zero.
46813         * modules/truncl-tests (Depends-on): Add float.
46814
46815         * tests/test-frexpl.c (zero): Remove variable.
46816         (minus_zero): New variable.
46817         (main): Use minus_zero instead of -zero.
46818         * modules/frexpl-tests (Depends-on): Add float.
46819
46820         * tests/test-isnan.c (zerol): Remove variable.
46821         (minus_zerol): New variable.
46822         (test_long_double): Use minus_zerol instead of -zerol.
46823         * modules/isnan-tests (Depends-on): Add float.
46824
46825         * tests/test-isnanl.h (zero): Remove variable.
46826         (minus_zero): New variable.
46827         (main): Use minus_zero instead of -zero.
46828         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46829         * modules/isnanl-tests (Depends-on): Add float.
46830
46831         * tests/test-ldexpl.c (zero): Remove variable.
46832         (minus_zero): New variable.
46833         (main): Use minus_zero instead of -zero.
46834         * modules/ldexpl-tests (Depends-on): Add float.
46835
46836         * tests/test-snprintf-posix.h (zerol): Remove variable.
46837         (minus_zerol): New variable.
46838         (test_function): Use minus_zerol instead of -zerol.
46839         * modules/snprintf-posix-tests (Depends-on): Add float.
46840         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46841
46842         * tests/test-sprintf-posix.h (zerol): Remove variable.
46843         (minus_zerol): New variable.
46844         (test_function): Use minus_zerol instead of -zerol.
46845         * modules/sprintf-posix-tests (Depends-on): Add float.
46846         * modules/vsprintf-posix-tests (Depends-on): Add float.
46847
46848         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46849         (minus_zerol): New variable.
46850         (test_function): Use minus_zerol instead of -zerol.
46851         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46852
46853         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46854         (minus_zerol): New variable.
46855         (test_function): Use minus_zerol instead of -zerol.
46856         * modules/vasprintf-posix-tests (Depends-on): Add float.
46857
46858 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46859
46860         * MODULES.html.sh (Support for building documentation): Mention
46861         pmccabe2html.  Sort entries.
46862
46863         Add pmccabe2html module, from gnupdf.
46864         * build-aux/pmccabe.css: New file.
46865         * build-aux/pmccabe2html: New file.
46866         * m4/pmccabe2html.m4: New file.
46867         * modules/pmccabe2html: New file.
46868
46869 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46870
46871         flock: new module
46872         * MODULES.html.sh: Add to list of modules.
46873         * lib/flock.c: flock implementation for Windows and Unix systems
46874         which have fcntl.
46875         * doc/glibc-functions/flock.texi: Update documentation.
46876         * lib/sys_file.in.h: <sys/file.h> header file.
46877         * m4/flock.m4: M4 macros.
46878         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46879         * modules/flock: flock module.
46880         * modules/flock-tests: flock tests module.
46881         * modules/sys_file: sys/file.h module.
46882         * tests/test-flock.c: test suite for flock.
46883
46884 2008-10-06  Jim Meyering  <meyering@redhat.com>
46885
46886         bootstrap: check for LT_INIT more portably still ;-)
46887         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46888         Spotted by Bruno Haible.
46889
46890 2008-10-06  Eric Blake  <ebb9@byu.net>
46891
46892         test-signbit: avoid tripping Irix cc bug on -0.0L
46893         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46894         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46895         entire testsuite consistent and avoids an Irix 6.2 bug.
46896
46897 2008-10-05  Bruno Haible  <bruno@clisp.org>
46898             Jim Meyering  <jim@meyering.net>
46899
46900         Add an option for ignoring EPIPE during close_stdout.
46901         * lib/closeout.h: Include <stdbool.h>.
46902         (close_stdout_set_ignore_EPIPE): New declaration.
46903         * lib/closeout.c: Include <stdbool.h>.
46904         (ignore_EPIPE): New variable.
46905         (close_stdout_set_ignore_EPIPE): New function.
46906         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46907         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46908         failure.
46909         * modules/closeout (Depends-on): Add stdbool.
46910
46911 2008-10-05  Bruno Haible  <bruno@clisp.org>
46912
46913         * modules/accept: New file.
46914         * modules/bind: New file.
46915         * modules/connect: New file.
46916         * modules/getpeername: New file.
46917         * modules/getsockname: New file.
46918         * modules/getsockopt: New file.
46919         * modules/listen: New file.
46920         * modules/recv: New file.
46921         * modules/recvfrom: New file.
46922         * modules/send: New file.
46923         * modules/sendto: New file.
46924         * modules/setsockopt: New file.
46925         * modules/socket: New file.
46926         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46927         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46928         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46929         the particular module is requested. Add a link warning when the
46930         particular module is not requested.
46931         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46932         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46933         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46934         the particular module is requested.
46935         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46936         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46937         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46938         * modules/sys_socket (Depends-on): Add link-warning.
46939         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46940         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46941         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46942         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46943         GL_LINK_WARNING.
46944         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46945         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46946         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46947         * doc/posix-functions/getpeername.texi: Mention the new module
46948         'getpeername'.
46949         * doc/posix-functions/getsockname.texi: Mention the new module
46950         'getsockname'.
46951         * doc/posix-functions/getsockopt.texi: Mention the new module
46952         'getsockopt'.
46953         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46954         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46955         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46956         * doc/posix-functions/send.texi: Mention the new module 'send'.
46957         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46958         * doc/posix-functions/setsockopt.texi: Mention the new module
46959         'setsockopt'.
46960         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46961         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46962         listen, connect, accept.
46963         * modules/select-tests (Depends-on): Likewise.
46964
46965 2008-10-05  Bruno Haible  <bruno@clisp.org>
46966
46967         * lib/winsock.c (strerror): Remove unused #undef.
46968         (rpl_close): Remove unused local variable.
46969
46970         * modules/sys_socket (Depends-on); Add errno.
46971
46972 2008-10-05  Bruno Haible  <bruno@clisp.org>
46973
46974         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46975         (select): Add a link warning when the 'select' module is not used.
46976         * modules/sys_select (Depends-on): Add link-warning.
46977         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46978         Suggested by Paolo Bonzini.
46979
46980 2008-10-05  Jim Meyering  <meyering@redhat.com>
46981
46982         bootstrap: check for LT_INIT more portably
46983         * build-aux/bootstrap: Avoid using grep -E, since it's not
46984         portable enough.  Suggestion from Bruno Haible.
46985
46986 2008-10-05  Bruno Haible  <bruno@clisp.org>
46987
46988         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46989         as being fixed by gnulib.
46990
46991 2008-10-05  Bruno Haible  <bruno@clisp.org>
46992
46993         * modules/select-tests: New file, mostly copied from
46994         modules/sys_select-tests.
46995         * tests/test-select.c: New file, mostly copied from
46996         tests/test-sys_select.c.
46997         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46998         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46999         (Makefile.am): Remove test_sys_select_LDADD.
47000
47001         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
47002         to an undefined symbol, for an error message.
47003         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
47004         (gl_SYS_SELECT_H_DEFAULTS): New macro.
47005         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
47006         winsock-select.c here.
47007         * modules/sys_select (Files): Remove lib/winsock-select.c.
47008         (Depends-on): Remove alloca.
47009         (Makefile.am): Substitute GNULIB_SELECT.
47010         * modules/select: New file.
47011         * doc/posix-functions/select.texi: Update.
47012
47013 2008-10-05  Bruno Haible  <bruno@clisp.org>
47014
47015         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
47016         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
47017         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
47018         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
47019         getdtablesize.
47020         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
47021         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
47022
47023 2008-10-05  Bruno Haible  <bruno@clisp.org>
47024
47025         * modules/getdtablesize-tests: New file.
47026         * tests/test-getdtablesize.c: New file.
47027
47028         New module 'getdtablesize'.
47029         * lib/unistd.in.h (getdtablesize): New declaration.
47030         * lib/getdtablesize.c: New file.
47031         * m4/getdtablesize.m4: New file.
47032         * modules/getdtablesize: New file.
47033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47034         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
47035         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
47036         HAVE_GETDTABLESIZE.
47037         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
47038
47039 2008-10-05  Bruno Haible  <bruno@clisp.org>
47040
47041         * modules/sched (Makefile.am): Fix typo.
47042         Reported by Simon Josefsson.
47043
47044 2008-10-05  Jim Meyering  <meyering@redhat.com>
47045
47046         bootstrap: check for LT_INIT, too
47047         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
47048         are deprecated.  Suggestion from Ralf Wildenhues.
47049
47050 2008-10-05  Bruno Haible  <bruno@clisp.org>
47051
47052         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
47053         overriding them by ours.
47054         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
47055
47056 2008-10-05  Jim Meyering  <meyering@redhat.com>
47057
47058         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
47059         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
47060         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
47061
47062 2008-10-04  Bruno Haible  <bruno@clisp.org>
47063
47064         * modules/dup2 (License): Change to LGPLv2+.
47065         * modules/sleep (License): Likewise.
47066         * modules/perror (License): Likewise.
47067         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
47068         Blake.
47069         * modules/signal (License): Likewise.
47070         * modules/sigprocmask (License): Likewise.
47071         * modules/raise (License): Change to LGPLv2+, with approval by Jim
47072         Meyering.
47073
47074 2008-10-04  Bruno Haible  <bruno@clisp.org>
47075
47076         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
47077         Reported by Rainer Tammer <tammer@tammer.net>.
47078
47079 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
47080             Bruno Haible  <bruno@clisp.org>
47081
47082         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
47083         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
47084         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
47085
47086 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
47087
47088         filevercmp: new module
47089         * lib/filevercmp.h: New function filevercmp comparing version strings.
47090         * lib/filevercmp.c: Implementation of filevercmp function.
47091         * modules/filevercmp: Module metadata.
47092         * tests/test-filevercmp.c: Unit test for new module.
47093         * modules/filevercmp-tests: Unit test metadata.
47094         * MODULES.html.sh: Add filevercmp module.
47095
47096 2008-10-03  Bruno Haible  <bruno@clisp.org>
47097
47098         * lib/c-ctype.h: Add comment.
47099         Reported by Jim Meyering.
47100
47101 2008-10-02  Bruno Haible  <bruno@clisp.org>
47102
47103         * modules/posix_spawn-internal (Depends-on): Add 'open'.
47104
47105 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47106
47107         * build-aux/bootstrap: Allow renaming bootstrap, and change the
47108         name of bootstrap.conf accordingly.
47109
47110 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47111
47112         * build-aux/bootstrap: Install git-merge-changelog configuration
47113         items into .gitconfig if needed.
47114
47115 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47116
47117         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
47118         git repository, and initialize/update it accordingly.
47119
47120 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
47121
47122         * modules/fsync-tests: New file.
47123         * tests/test-fsync.c: New file.
47124
47125         New module 'fsync'.
47126         * lib/fsync.c: New file.
47127         * m4/fsync.m4: New file.
47128         * modules/fsync: New file.
47129         * lib/unistd.in.h (fsync): New declaration.
47130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
47131         GNULIB_FSYNC and HAVE_FSYNC.
47132         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
47133         * MODULES.html.sh (posix_functions): Add fsync.
47134         * doc/posix-functions/fsync.texi: Mention the new module.
47135
47136 2008-10-02  Jim Meyering  <meyering@redhat.com>
47137
47138         fts.c: sync with similar code from coreutils' remove.c
47139         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
47140         Guard also with "#if defined __linux__", since for now at least,
47141         this code is Linux-kernel-specific.
47142
47143 2008-10-02  Jim Meyering  <meyering@redhat.com>
47144
47145         fts: bug fixes
47146         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
47147         Include <sys/vfs.h>, not <sys/statfs.h>.
47148
47149         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
47150         Include <sys/vfs.h>, not <sys/statfs.h>.
47151
47152 2008-10-01  Bruno Haible  <bruno@clisp.org>
47153
47154         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
47155         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
47156         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
47157         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
47158         * doc/posix-functions/posix_spawnp.texi: Likewise.
47159         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
47160         whether posix_spawn actually works.
47161         * m4/pipe.m4 (gl_PIPE): Likewise.
47162         * modules/execute (Files): Add m4/posix_spawn.m4.
47163         * modules/pipe (Files): Add m4/posix_spawn.m4.
47164         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
47165
47166 2008-10-01  Jim Meyering  <meyering@redhat.com>
47167
47168         remove trailing spaces
47169         * NEWS: Likewise.
47170         * lib/poll.c (poll): Likewise.
47171         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
47172         * lib/winsock.c (rpl_close): Likewise.
47173         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
47174         * modules/yield: Likewise.
47175         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
47176         * tests/test-sys_select.c (connect_to_socket): Likewise.
47177
47178         fts.c: adjust a new interface to be more generally useful
47179         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
47180         (fts_build): Adjust caller.
47181
47182 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47183
47184         * modules/cond-tests: New file.
47185         * tests/test-cond.c: New file.
47186
47187 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47188             Bruno Haible  <bruno@clisp.org>
47189
47190         * modules/cond (Dependencies): Add errno, time.
47191         * lib/glthread/cond.h: Include <time.h>.
47192         (gl_cond_define, gl_cond_define_initialized): Use the same definition
47193         across platforms.
47194
47195 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47196             Bruno Haible  <bruno@clisp.org>
47197
47198         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
47199
47200 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47201             Bruno Haible  <bruno@clisp.org>
47202
47203         * modules/tls-tests (Depends-on): Add thread, yield.
47204         (configure.ac): Remove all checks.
47205         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
47206         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47207         gl_thread_self): Remove definitions. Include glthread/thread.h and
47208         glthread/yield.h instead.
47209         (test_tls): Pass an additional NULL argument to gl_thread_join.
47210
47211 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47212             Bruno Haible  <bruno@clisp.org>
47213
47214         * modules/lock-tests (Depends-on): Add thread, yield.
47215         (configure.ac): Remove all checks.
47216         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
47217         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47218         gl_thread_self): Remove definitions. Include glthread/thread.h and
47219         glthread/yield.h instead.
47220         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
47221         additional NULL argument to gl_thread_join.
47222
47223 2008-09-30  Bruno Haible  <bruno@clisp.org>
47224
47225         Fix the Win32 implementation of the 'thread' module.
47226         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
47227         pointer type.
47228         (gl_thread_self): Invoke gl_thread_self_func.
47229         (gl_thread_self_func): New declaration.
47230         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
47231         (do_init_self_key, init_self_key): New functions.
47232         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
47233         Remove some fields.
47234         (running_threads, running_lock): Remove variables.
47235         (get_current_thread_handle): New function.
47236         (gl_thread_self_func, wrapper_func, glthread_create_func,
47237         glthread_join_func, gl_thread_exit_func): Largely rewritten and
47238         simplified.
47239
47240 2008-09-30  Bruno Haible  <bruno@clisp.org>
47241
47242         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
47243         files.
47244
47245 2008-09-30  Jim Meyering  <meyering@redhat.com>
47246
47247         fts.m4: correct the test for statfs.f_type
47248         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
47249         when checking for statfs.f_type.
47250
47251 2008-09-15  Simon Josefsson  <simon@josefsson.org>
47252
47253         tests: avoid some compiler warnings
47254         * tests/test-memchr.c (main): Pass NULL indirectly.
47255         * tests/test-getdate.c (main): Remove unused variable 'ret'.
47256
47257 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
47258
47259         getdate.y: disallow countable dayshifts like "4 yesterday ago"
47260         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
47261         exactly specified dayshifts.
47262         (dayshift): New rule.
47263         (rel): Add dayshift.
47264         (relative_time_table) [tomorrow, yesterday, today, now]:
47265         Use tDAY_SHIFT in place of tDAY_UNIT.
47266         * tests/test-getdate.c: Add tests for now-disallowed countable
47267         dayshifts, e.g., "4 yesterday ago".
47268
47269 2008-09-29  Bruno Haible  <bruno@clisp.org>
47270
47271         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
47272         * tests/test-posix_spawn1.in.sh: Renamed from
47273         tests/test-posix_spawn.in.sh.
47274         * tests/test-posix_spawn2.c: New file.
47275         * tests/test-posix_spawn2.in.sh: New file.
47276         * modules/posix_spawnp-tests (Files): Update.
47277         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
47278
47279 2008-09-29  Bruno Haible  <bruno@clisp.org>
47280
47281         Propagate effects of putenv/setenv/unsetenv to child processes.
47282         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
47283         * lib/pipe.c (create_pipe): Likewise.
47284
47285 2008-09-29  Bruno Haible  <bruno@clisp.org>
47286
47287         Enable use of shell scripts as executables in mingw.
47288         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
47289         run the program as a shell script.
47290         * lib/pipe.c (create_pipe): Likewise.
47291         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
47292         resulting array.
47293
47294 2008-09-29  Eric Blake  <ebb9@byu.net>
47295
47296         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
47297
47298 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
47299
47300         * doc/posix-functions/accept.texi: Update mingw problems.
47301         * doc/posix-functions/bind.texi: Update mingw problems.
47302         * doc/posix-functions/close.texi: Update mingw problems.
47303         * doc/posix-functions/connect.texi: Update mingw problems.
47304         * doc/posix-functions/getpeername.texi: Update mingw problems.
47305         * doc/posix-functions/getsockname.texi: Update mingw problems.
47306         * doc/posix-functions/getsockopt.texi: Update mingw problems.
47307         * doc/posix-functions/ioctl.texi: Update mingw problems.
47308         * doc/posix-functions/listen.texi: Update mingw problems.
47309         * doc/posix-functions/recv.texi: Update mingw problems.
47310         * doc/posix-functions/recvfrom.texi: Update mingw problems.
47311         * doc/posix-functions/select.texi: Update mingw problems.
47312         * doc/posix-functions/send.texi: Update mingw problems.
47313         * doc/posix-functions/sendto.texi: Update mingw problems.
47314         * doc/posix-functions/setsockopt.texi: Update mingw problems.
47315         * doc/posix-functions/socket.texi: Update mingw problems.
47316
47317 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
47318             Bruno Haible  <bruno@clisp.org>
47319
47320         * lib/sys_select.in.h: Include sys/time.h.
47321         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
47322         * modules/sys_select: Depend on sys_time.
47323         * tests/test-sys_select.c: Test that sys/select.h defines struct
47324         timeval fully.
47325
47326 2008-09-29  Bruno Haible  <bruno@clisp.org>
47327
47328         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
47329         * lib/sys_select.in.h: Likewise.
47330
47331 2008-09-29  Bruno Haible  <bruno@clisp.org>
47332
47333         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
47334
47335 2008-09-29  Bruno Haible  <bruno@clisp.org>
47336
47337         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
47338         Set LIBSOCKET instead of augmenting LIBS.
47339         * modules/sockets (Link): New section.
47340         * modules/sockets-tests (test_sockets_LDADD): New variable.
47341         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
47342         * modules/poll-tests (test_poll_LDADD): New variable.
47343         * NEWS: Document the change.
47344
47345 2008-09-29  Bruno Haible  <bruno@clisp.org>
47346
47347         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
47348         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
47349         ARPA_INET_H directly.
47350         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47351
47352 2008-09-28  Bruno Haible  <bruno@clisp.org>
47353
47354         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
47355         from gl_HEADER_SYS_SOCKET.
47356         (gl_HEADER_SYS_SOCKET): Invoke it.
47357         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47358
47359 2008-09-28  Bruno Haible  <bruno@clisp.org>
47360
47361         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
47362         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
47363         Needed on OSF/1 4.0.
47364
47365 2008-09-28  Bruno Haible  <bruno@clisp.org>
47366
47367         Override open more carefully.
47368         * lib/open.c (orig_open): New function.
47369         (rpl_open): Use orig_open instead of open.
47370         * lib/fcntl.in.h: Add special invocation convention.
47371         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
47372         (gl_FUNC_OPEN): Invoke it.
47373
47374         Override freopen more carefully.
47375         * lib/freopen.c (orig_freopen): New function.
47376         (rpl_freopen): Use orig_freopen instead of freopen.
47377         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
47378         (gl_FUNC_FREOPEN): Invoke it.
47379
47380         Override fopen more carefully.
47381         * lib/fopen.c (orig_fopen): New function.
47382         (rpl_fopen): Use orig_fopen instead of fopen.
47383         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
47384         (gl_FUNC_FOPEN): Invoke it.
47385         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
47386
47387 2008-09-28  Bruno Haible  <bruno@clisp.org>
47388
47389         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
47390         SIGPIPE.
47391
47392 2008-09-28  Bruno Haible  <bruno@clisp.org>
47393
47394         * tests/test-sigaction.c (handler, main): Disable the check whether
47395         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
47396         glibc systems with LinuxThreads.
47397
47398 2008-09-28  Bruno Haible  <bruno@clisp.org>
47399
47400         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
47401
47402         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
47403         with AIX xlc.
47404         * lib/fcntl.in.h (open): Likewise.
47405         Reported by Rainer Tammer <tammer@tammer.net>.
47406
47407 2008-09-28  Bruno Haible  <bruno@clisp.org>
47408
47409         * modules/posix_spawnp-tests: New file.
47410         * tests/test-posix_spawn.c: New file.
47411         * tests/test-posix_spawn.in.sh: New file.
47412
47413         New module 'posix_spawnp'.
47414         * modules/posix_spawnp: New file.
47415         * lib/spawnp.c: New file, from GNU libc with modifications.
47416         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
47417
47418         New module 'posix_spawn'.
47419         * modules/posix_spawn: New file.
47420         * lib/spawn.c: New file, from GNU libc with modifications.
47421         * doc/posix-functions/posix_spawn.texi: Mention the new module.
47422
47423         New module 'posix_spawnattr_destroy'.
47424         * modules/posix_spawnattr_destroy: New file.
47425         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
47426         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
47427         module.
47428
47429         New module 'posix_spawnattr_setsigmask'.
47430         * modules/posix_spawnattr_setsigmask: New file.
47431         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
47432         modifications.
47433         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
47434         new module.
47435
47436         New module 'posix_spawnattr_getsigmask'.
47437         * modules/posix_spawnattr_getsigmask: New file.
47438         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
47439         modifications.
47440         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
47441         new module.
47442
47443         New module 'posix_spawnattr_setsigdefault'.
47444         * modules/posix_spawnattr_setsigdefault: New file.
47445         * lib/spawnattr_setdefault.c: New file, from GNU libc with
47446         modifications.
47447         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
47448         new module.
47449
47450         New module 'posix_spawnattr_getsigdefault'.
47451         * modules/posix_spawnattr_getsigdefault: New file.
47452         * lib/spawnattr_getdefault.c: New file, from GNU libc with
47453         modifications.
47454         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
47455         new module.
47456
47457         New module 'posix_spawnattr_setschedpolicy'.
47458         * modules/posix_spawnattr_setschedpolicy: New file.
47459         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
47460         modifications.
47461         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
47462         new module.
47463
47464         New module 'posix_spawnattr_getschedpolicy'.
47465         * modules/posix_spawnattr_getschedpolicy: New file.
47466         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
47467         modifications.
47468         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
47469         new module.
47470
47471         New module 'posix_spawnattr_setschedparam'.
47472         * modules/posix_spawnattr_setschedparam: New file.
47473         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
47474         modifications.
47475         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
47476         new module.
47477
47478         New module 'posix_spawnattr_getschedparam'.
47479         * modules/posix_spawnattr_getschedparam: New file.
47480         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
47481         modifications.
47482         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
47483         new module.
47484
47485         New module 'posix_spawnattr_setpgroup'.
47486         * modules/posix_spawnattr_setpgroup: New file.
47487         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
47488         modifications.
47489         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
47490         module.
47491
47492         New module 'posix_spawnattr_getpgroup'.
47493         * modules/posix_spawnattr_getpgroup: New file.
47494         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
47495         modifications.
47496         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
47497         module.
47498
47499         New module 'posix_spawnattr_setflags'.
47500         * modules/posix_spawnattr_setflags: New file.
47501         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
47502         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
47503         module.
47504
47505         New module 'posix_spawnattr_getflags'.
47506         * modules/posix_spawnattr_getflags: New file.
47507         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
47508         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
47509         module.
47510
47511         New module 'posix_spawnattr_init'.
47512         * modules/posix_spawnattr_init: New file.
47513         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
47514         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47515         module.
47516
47517         New module 'posix_spawn_file_actions_destroy'.
47518         * modules/posix_spawn_file_actions_destroy: New file.
47519         * lib/spawn_faction_destroy.c: New file, from GNU libc with
47520         modifications.
47521         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
47522         the new module.
47523
47524         New module 'posix_spawn_file_actions_addopen'.
47525         * modules/posix_spawn_file_actions_addopen: New file.
47526         * lib/spawn_faction_addopen.c: New file, from GNU libc with
47527         modifications.
47528         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
47529         the new module.
47530
47531         New module 'posix_spawn_file_actions_adddup2'.
47532         * modules/posix_spawn_file_actions_adddup2: New file.
47533         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
47534         modifications.
47535         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
47536         the new module.
47537
47538         New module 'posix_spawn_file_actions_addclose'.
47539         * modules/posix_spawn_file_actions_addclose: New file.
47540         * lib/spawn_faction_addclose.c: New file, from GNU libc with
47541         modifications.
47542         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
47543         the new module.
47544
47545         New module 'posix_spawn_file_actions_init'.
47546         * modules/posix_spawn_file_actions_init: New file.
47547         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
47548         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
47549         new module.
47550
47551         New module 'posix_spawn-internal'.
47552         * modules/posix_spawn-internal: New file.
47553         * lib/spawn_int.h: New file, from GNU libc with modifications.
47554         * lib/spawni.c: New file, from GNU libc with modifications.
47555         * m4/posix_spawn.m4: New file.
47556
47557         New module 'spawn'.
47558         * modules/spawn: New file.
47559         * lib/spawn.in.h: New file, from GNU libc with modifications.
47560         * m4/spawn_h.m4: New file.
47561         * doc/posix-headers/spawn.texi: Mention the new module.
47562
47563 2008-09-28  Bruno Haible  <bruno@clisp.org>
47564
47565         * modules/sched-tests: New file.
47566         * tests/test-sched.c: New file.
47567
47568         New module 'sched'.
47569         * modules/sched: New file.
47570         * lib/sched.in.h: New file.
47571         * m4/sched_h.m4: New file.
47572         * doc/posix-headers/sched.texi: Mention the new module.
47573
47574 2008-09-27  Eric Blake  <ebb9@byu.net>
47575
47576         Fix previous patch, and tweak references to $0.
47577         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
47578         (func_version, func_gnulib_dir): Don't call this program
47579         gnulib-tool.
47580         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
47581         with using $0 in function.
47582         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
47583         (func_fatal_error): Reuse the name the user invoked us with.
47584
47585 2008-09-27  Bruno Haible  <bruno@clisp.org>
47586
47587         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
47588         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
47589         (gl_ICONV_H): Not here.
47590         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
47591         instead of assigning ICONV_H directly.
47592
47593         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
47594         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
47595         WCHAR_H directly.
47596
47597 2008-09-27  Bruno Haible  <bruno@clisp.org>
47598
47599         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
47600         * modules/arpa_inet (Depends-on): Add link-warning.
47601         (Makefile.am): Insert the definition of GL_LINK-WARNING.
47602         * modules/unistd (Makefile.am): Likewise.
47603
47604 2008-09-26  Bruno Haible  <bruno@clisp.org>
47605
47606         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
47607         variables.
47608         (func_version): Essentially copied from gnulib-tool.
47609         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
47610         func_readlink): Copied from gnulib-tool.
47611
47612 2008-09-26  Bruno Haible  <bruno@clisp.org>
47613
47614         * gnulib-tool (func_version): Change directory to $gnulib_dir before
47615         invoking git-version-gen.
47616
47617 2008-09-26  Bruno Haible  <bruno@clisp.org>
47618
47619         * posix-modules: Update to directory names changed on 2008-01-19.
47620         Remove commas in output before splitting into words. No more need to
47621         avoid 'ftruncate' since 2007-02-19.
47622
47623 2008-09-26  Bruno Haible  <bruno@clisp.org>
47624
47625         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
47626
47627 2008-09-26  Bruno Haible  <bruno@clisp.org>
47628
47629         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
47630         * modules/fwriteerror (Depends-on): Add errno.
47631
47632 2008-09-26  Bruno Haible  <bruno@clisp.org>
47633
47634         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
47635         * tests/test-vc-list-files-cvs.sh: Likewise.
47636
47637 2008-09-26  Bruno Haible  <bruno@clisp.org>
47638
47639         * doc/posix-headers/sys_resource.texi: Reorder items.
47640
47641 2008-09-26  Jim Meyering  <meyering@redhat.com>
47642
47643         fts: tweak inode comparison function
47644         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47645         inode numbers, as documented.
47646
47647         fts: sort dirent entries on inode number before traversing
47648         This avoids a quadratic, seek-related performance penalty when
47649         operating on a directory containing many entries (measurable at 10k;
47650         3.5 hours at 2 million entries with a cold cache) on certain types
47651         of file systems, including ext3 and ext4, but not tmpfs.
47652         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47653         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47654         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47655         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47656         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47657         (fts_build): Set the stat.st_ino member from D_INO.
47658         If it is likely to be useful, sort dirent entries on inode number.
47659
47660         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47661         and the struct statfs.f_type member.
47662         * modules/fts (Depends-on): Add d-ino.
47663
47664 2008-09-26  Bruno Haible  <bruno@clisp.org>
47665
47666         * modules/sigpipe-die (Depends-on): Add sigpipe.
47667
47668         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47669         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47670         and GNULIB_STDIO_H_SIGPIPE are set.
47671         * lib/stdio-write.c: New file.
47672         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47673         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47674         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47675         REPLACE_STDIO_WRITE_FUNCS.
47676         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47677         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47678         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47679         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47680         * modules/stdio (Files): Add lib/stdio-write.c.
47681         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
47682         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47683         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47684         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47685         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47686         REPLACE_FPRINTF_POSIX.
47687         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47688         REPLACE_PRINTF_POSIX.
47689         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47690         REPLACE_VFPRINTF_POSIX.
47691         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
47692         REPLACE_VPRINTF_POSIX.
47693         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
47694         SIGPIPE issue.
47695         * doc/posix-functions/fputc.texi: Likewise.
47696         * doc/posix-functions/fputs.texi: Likewise.
47697         * doc/posix-functions/fwrite.texi: Likewise.
47698         * doc/posix-functions/printf.texi: Likewise.
47699         * doc/posix-functions/putc.texi: Likewise.
47700         * doc/posix-functions/putchar.texi: Likewise.
47701         * doc/posix-functions/puts.texi: Likewise.
47702         * doc/posix-functions/vfprintf.texi: Likewise.
47703         * doc/posix-functions/vprintf.texi: Likewise.
47704
47705         * modules/safe-write (Depends-on): Add write.
47706
47707         * modules/sigpipe-tests: New file.
47708         * tests/test-sigpipe.c: New file.
47709         * tests/test-sigpipe.sh: New file.
47710
47711         * modules/write: New file.
47712         * lib/unistd.in.h: Include <sys/types.h>.
47713         (write): New declaration.
47714         * lib/write.c: New file.
47715         * m4/write.m4: New file.
47716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47717         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47718         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47719         GNULIB_WRITE, REPLACE_WRITE.
47720         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47721         and the SIGPIPE issue.
47722
47723         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47724         (raise): New declaration.
47725         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47726         (ext_signal): New function.
47727         (rpl_raise): New function.
47728         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47729         GNULIB_SIGNAL_H_SIGPIPE.
47730         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47731         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47732
47733         * modules/sigpipe: New file.
47734         * m4/sigpipe.m4: New file.
47735
47736 2008-09-25  Derek Price  <derek@ximbiot.com>
47737             Bruno Haible  <bruno@clisp.org>
47738
47739         * gnulib-tool (func_import): Report all license incompatibilities, not
47740         just the first one.
47741
47742 2008-09-25  Bruno Haible  <bruno@clisp.org>
47743
47744         * gnulib-tool (func_import): When computing the edits, consider not
47745         only the Makefile.ams that exist but also those that will be generated.
47746
47747 2008-09-25  Simon Josefsson  <simon@josefsson.org>
47748
47749         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
47750         fixes gnulib-tool --test warning about duplicate dependency.
47751
47752 2008-09-25  Bruno Haible  <bruno@clisp.org>
47753
47754         * gnulib-tool: Don't ask the user to perform edits in the generated
47755         Makefile.ams.
47756         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
47757         apply to the Makefile.am being generated.
47758         (func_emit_tests_Makefile_am): Execute edits that apply to the
47759         Makefile.am being generated.
47760         (func_import): Setup list of Makefile.am edits before emitting the
47761         Makefile.ams, not at the end.
47762         (func_create_testdir): Update.
47763         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47764
47765 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47766
47767         * gnulib-tool (func_import): Store the --tests-base option in the
47768         comment in gnulib-cache.m4.
47769
47770 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47771
47772         * NEWS: Document increased portability that sys_select now provides.
47773
47774         * lib/sys_select.in.h: Install select wrapper.
47775         * lib/sys_socket.in.h: Use more descriptive name when there is no
47776         select wrapper.
47777         * lib/winsock-select.c: New.
47778         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47779         Require gl_HEADER_SYS_SOCKET.
47780         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47781         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47782         * tests/test-sys_select.c: Add functional tests.
47783
47784 2008-09-24  Eric Blake  <ebb9@byu.net>
47785
47786         open, fopen: close fd leak in last patch
47787         * lib/open.c (rpl_open): Close fd before returning error.
47788         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47789         * doc/posix-functions/open.texi (open): Document that Irix also
47790         has the bug.
47791         * doc/posix-functions/fopen.texi (fopen): Likewise.
47792         Reported by Paolo Bonzini.
47793
47794 2008-09-24  Bruno Haible  <bruno@clisp.org>
47795
47796         Ensure that a filename ending in a slash cannot be used to access a
47797         non-directory.
47798         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
47799         to check whether it's really a directory.
47800         * lib/fopen.c: Include fcntl.h, unistd.h.
47801         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
47802         and fdopen().
47803         * modules/fopen (Depends-on): Add unistd.
47804         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
47805         * tests/test-fopen.c (main): Likewise.
47806         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
47807         * doc/posix-functions/fopen.texi: Likewise.
47808         Reported by Eric Blake.
47809
47810 2008-09-23  Eric Blake  <ebb9@byu.net>
47811
47812         c-stack: avoid compiler optimizations when provoking overflow
47813         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47814         recursion harder to optimize, to ensure a stack overflow occurs.
47815         * tests/test-c-stack.c (recurse): Likewise.
47816         Borrowed from libsigsegv.
47817
47818         c-stack: work around Irix sigaltstack bug
47819         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47820         whether sigaltstack uses wrong end of stack_t (copied in part from
47821         libsigsegv).
47822         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47823         Irix bug, without requiring an over-allocation.
47824         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47825         bug.
47826
47827         fopen: document mingw bug on directories
47828         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47829         not allowing a stream visiting a directory, even though reading
47830         from such a stream is not portable.
47831
47832 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47833
47834         * lib/poll.c: Rewrite.
47835         * modules/poll: Depend on alloca.
47836
47837 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47838
47839         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47840         instead define prototypes for a full set of wrappers.  Ensure
47841         that Cygwin does not use the compatibility code, which is only
47842         for MinGW.
47843         * lib/winsock.c: New.
47844         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47845         * modules/sys_socket: Add lib/winsock.c.
47846
47847         * modules/poll-tests: Add errno and perror.
47848         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47849
47850 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47851
47852         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47853
47854 2008-09-23  Bruno Haible  <bruno@clisp.org>
47855
47856         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47857         * doc/glibc-functions/*: Likewise.
47858
47859 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47860
47861         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47862         success.
47863
47864 2008-09-22  Eric Blake  <ebb9@byu.net>
47865             Bruno Haible  <bruno@clisp.org>
47866
47867         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47868         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47869         supply %A but mishandle pseudo-NaN.
47870         Reported by Simon Josefsson.
47871
47872 2008-09-21  Bruno Haible  <bruno@clisp.org>
47873
47874         * tests/test-lock.c (main): Tweak skip message.
47875         * tests/test-tls.c (main): Likewise.
47876
47877 2008-09-21  Bruno Haible  <bruno@clisp.org>
47878
47879         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47880         whether 'struct sigaction' has sa_sigaction here...
47881         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47882         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47883
47884 2008-09-21  Bruno Haible  <bruno@clisp.org>
47885
47886         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47887         section.
47888         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47889         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47890         the new section.
47891         (Support for obsolete systems lacking POSIX:2001): New section.
47892         (String handling <string.h>): Move strdup to the new section.
47893         Suggested by Simon Josefsson and Paolo Bonzini.
47894
47895 2008-09-21  Bruno Haible  <bruno@clisp.org>
47896
47897         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47898         exponents in %e and %g results on 'long double'. Needed for mingw's
47899         improved *printf functions.
47900         * tests/test-vasprintf-posix.c (test_function): Likewise.
47901         * tests/test-snprintf-posix.h (test_function): Likewise.
47902         * tests/test-sprintf-posix.h (test_function): Likewise.
47903         Reported by Eric Blake.
47904
47905 2008-09-21  Bruno Haible  <bruno@clisp.org>
47906
47907         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47908         * tests/test-sprintf-posix.h (test_function): Likewise.
47909
47910 2008-09-21  Bruno Haible  <bruno@clisp.org>
47911
47912         * modules/getpass (Depends-on): Add strdup-posix.
47913
47914         New module 'strdup-posix'.
47915         * modules/strdup-posix: New file.
47916         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47917         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47918         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47919         REPLACE_STRDUP.
47920         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47921         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47922         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47923         strdup-posix.
47924
47925         * modules/strdup (Depends-on): Remove malloc-posix.
47926
47927 2008-09-20  Bruno Haible  <bruno@clisp.org>
47928
47929         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47930         Wildenhues.
47931
47932 2008-09-20  Bruno Haible  <bruno@clisp.org>
47933
47934         Ensure that wint_t gets defined on IRIX 5.3.
47935         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47936         * lib/wctype.in.h (wint_t): Likewise.
47937         (__wctype_wint_t): Remove type.
47938         (isw*): Use wint_t instead of __wctype_wint_t.
47939         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47940         * modules/wchar (Files): Add m4/wint_t.m4.
47941         (Makefile.am): Substitute HAVE_WINT_T.
47942         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47943         * tests/test-wctype.c: Check that wint_t is defined.
47944         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47945         * doc/posix-headers/wctype.texi: Likewise.
47946         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47947
47948 2008-09-18  Bruno Haible  <bruno@clisp.org>
47949
47950         * gnulib-tool (func_exit): Update comment.
47951
47952 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47953
47954         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47955         assumes strdup exists and does not depend on strdup to return
47956         ENOMEM on out of memory conditions.
47957
47958 2008-09-18  Bruno Haible  <bruno@clisp.org>
47959
47960         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
47961         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47962         digits for the exponent.
47963
47964 2008-09-18  Jim Meyering  <meyering@redhat.com>
47965             Bruno Haible  <bruno@clisp.org>
47966
47967         * lib/vasnprintf.c (decimal_point_char): Define also if
47968         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47969
47970 2008-09-16  Bruno Haible  <bruno@clisp.org>
47971         and Eric Blake  <ebb9@byu.net>
47972
47973         vasnprintf: support Irix 5.3
47974         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47975         that mishandle long double infinity.
47976         Reported by Tom G. Christensen.
47977
47978 2008-09-16  Bruno Haible  <bruno@clisp.org>
47979
47980         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47981         Solaris 9.
47982         * doc/glibc-functions/alphasort.texi: Likewise.
47983         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47984
47985 2008-09-16  Jim Meyering  <meyering@redhat.com>
47986
47987         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47988         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47989         a umask modification leak out of a subshell.  Otherwise, the
47990         opensolaris /bin/sh would be accepted and thus cause unwarranted
47991         failures in the coreutils test suite.
47992
47993 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47994
47995         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47996         to succeed.
47997
47998 2008-09-16  Jim Meyering  <meyering@redhat.com>
47999
48000         avoid spurious test failure when library is built without ACL support
48001         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
48002         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
48003         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
48004         * tests/test-copy-acl.sh: Likewise.
48005
48006 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48007
48008         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
48009         based on character occurrence counts.
48010
48011 2008-09-15  Eric Blake  <ebb9@byu.net>
48012
48013         tests: avoid some compiler warnings
48014         * tests/test-memchr.c (main): Pass NULL indirectly.
48015         * tests/test-closein.c (main): Avoid unused variable.
48016
48017 2008-09-15  Bruno Haible  <bruno@clisp.org>
48018
48019         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
48020         are missing on OpenBSD 4.0 individually.
48021         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48022
48023 2008-09-15  Bruno Haible  <bruno@clisp.org>
48024
48025         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
48026         * doc/posix-functions/strerror.texi: Mention also Cygwin.
48027         * doc/posix-functions/perror.texi: Likewise.
48028         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
48029         is missing.
48030         Reported by Eric Blake.
48031
48032         * lib/errno.in.h: Use replacement values >= 2000.
48033         Reported by Eric Blake.
48034
48035 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48036
48037         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
48038         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
48039         limit.
48040         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
48041         compareseq was aborted.
48042
48043 2008-09-14  Bruno Haible  <bruno@clisp.org>
48044
48045         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
48046         yvec_edit_count.
48047         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
48048         (fstrcmp_bounded): Simplify result computation accordingly.
48049
48050 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48051
48052         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
48053         (fstrcmp): Define in terms of fstrcmp_bounded.
48054         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
48055         lower_bound argument.
48056         Return quickly if the result is certainly < lower_bound.
48057         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
48058
48059 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48060
48061         * lib/diffseq.h (EARLY_ABORT): New macro.
48062         (compareseq): Change return type to bool. Return true when EARLY_ABORT
48063         evaluates to true.
48064
48065 2008-09-14  Bruno Haible  <bruno@clisp.org>
48066
48067         * modules/perror-tests: New file.
48068         * tests/test-perror.sh: New file.
48069         * tests/test-perror.c: New file.
48070
48071         New module 'perror'.
48072         * lib/stdio.in.h (perror): New declaration.
48073         * lib/perror.c: New file.
48074         * m4/perror.m4: New file.
48075         * modules/perror: New file.
48076         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
48077         * doc/posix-functions/perror.texi: Mention the perror module.
48078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
48079         REPLACE_PERROR.
48080         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
48081         REPLACE_PERROR.
48082
48083 2008-09-14  Bruno Haible  <bruno@clisp.org>
48084
48085         * modules/stdio (Makefile.am): Reorder to match the order in
48086         lib/stdio.in.h.
48087         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48088
48089 2008-09-13  Bruno Haible  <bruno@clisp.org>
48090
48091         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
48092
48093 2008-09-13  Bruno Haible  <bruno@clisp.org>
48094
48095         Extend strerror to cover the added errno values.
48096         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
48097         (rpl_strerror): Provide error messages for the added errno values and
48098         for the WSA* values.
48099         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
48100         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
48101         strerror.
48102         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
48103         * modules/strerror (Depends-on): Add errno.
48104         * doc/posix-functions/strerror.texi: Document the change.
48105         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
48106         and EOVERFLOW.
48107
48108 2008-09-13  Bruno Haible  <bruno@clisp.org>
48109
48110         * modules/EOVERFLOW: Remove file.
48111         * m4/eoverflow.m4: Remove file.
48112         * modules/EOVERFLOW-tests: Remove file.
48113         * tests/test-EOVERFLOW.c: Remove file.
48114         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
48115         * modules/ftell (Depends-on): Likewise.
48116         * modules/getdelim (Depends-on): Likewise.
48117         * modules/getugroups (Depends-on): Likewise.
48118         * modules/poll (Depends-on): Likewise.
48119         * modules/snprintf (Depends-on): Likewise.
48120         * modules/sprintf-posix (Depends-on): Likewise.
48121         * modules/vasnprintf (Depends-on): Likewise.
48122         * modules/vasprintf (Depends-on): Likewise.
48123         * modules/vfprintf-posix (Depends-on): Likewise.
48124         * modules/vsnprintf (Depends-on): Likewise.
48125         * modules/vsprintf-posix (Depends-on): Likewise.
48126         * modules/xvasprintf (Depends-on): Likewise.
48127         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48128         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
48129         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
48130         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
48131         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48132         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
48133         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
48134         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
48135         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48136         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
48137         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
48138         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
48139         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48140         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
48141         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
48142         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
48143         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48144         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
48145         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
48146         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
48147         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48148         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
48149         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
48150         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
48151         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
48152         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48153         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
48154         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
48155         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
48156         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
48157         * MODULES.html.sh: Remove EOVERFLOW.
48158         * NEWS: Mention the change.
48159
48160 2008-09-13  Bruno Haible  <bruno@clisp.org>
48161
48162         * modules/errno-tests: New file.
48163         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
48164
48165         * lib/errno.in.h: New file.
48166         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
48167         * modules/errno: New file.
48168         * doc/posix-headers/errno.texi: Update documentation.
48169         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
48170
48171 2008-09-13  Bruno Haible  <bruno@clisp.org>
48172
48173         * tests/test-poll.c: Use #if for native Windows, rather than testing
48174         __MSVCRT__.
48175
48176 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48177             Bruno Haible  <bruno@clisp.org>
48178
48179         * lib/glob.c: Don't include <pwd.h> on native Windows.
48180         (WINDOWS32): New macro.
48181         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
48182
48183 2008-09-13  Bruno Haible  <bruno@clisp.org>
48184
48185         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
48186         (ETIMEDOUT): Remove macro.
48187         (glthread_cond_timedwait_multithreaded): New declaration.
48188         (glthread_cond_timedwait): Use it.
48189         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
48190         (glthread_cond_timedwait_multithreaded): New function.
48191
48192 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48193
48194         * modules/poll-tests: Do not check for io.h.
48195         * tests/test-poll.c: Check for __MSVCRT__ instead.
48196
48197 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48198
48199         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
48200         * modules/poll-tests: Add inet_pton, stdbool, sockets.
48201         * tests/test-poll.c: Use them.  Use _pipe on Windows.
48202
48203 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48204
48205         * modules/poll-tests: New.
48206         * tests/test-poll.c: New.
48207
48208 2008-09-12  Eric Blake  <ebb9@byu.net>
48209
48210         frexp: test for NetBSD failure on -0.0
48211         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
48212         not all, bugs from NetBSD 3.0 have been fixed.
48213         * doc/posix-functions/frexp.texi (frexp): Document bug.
48214         Reported by Thomas Klausner.
48215
48216         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
48217         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
48218         literal -0.0.
48219         Reported by Jonathan C. Patschke <jp@centtech.com>.
48220
48221 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48222
48223         * lib/glthread/cond.h: Use dummy implementation also if
48224         USE_WIN32_THREADS.
48225
48226 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48227
48228         * modules/fnmatch-posix (License): Change to LGPLv2+.
48229         * modules/fnmatch-gnu (License): Likewise.
48230
48231 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48232
48233         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
48234
48235 2008-09-11  Jim Meyering  <meyering@redhat.com>
48236
48237         * users.txt: Add gtk-vnc.
48238
48239 2008-09-08  Simon Josefsson  <simon@josefsson.org>
48240
48241         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
48242         rotate amounts.
48243
48244         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
48245         required for 16-bit and 8-bit rotates.
48246         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
48247         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
48248         UINT8_MAX instead of hard-coded constants.
48249         Suggested by Paul Eggert.
48250
48251 2008-09-07  Bruno Haible  <bruno@clisp.org>
48252
48253         * tests/test-striconveh.c (main): Check behaviour when converting from
48254         UTF-7.
48255
48256         Make striconveh work better with stateful encodings.
48257         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
48258         that iconv does not increment the inptr when returning -1/EINVAL.
48259
48260 2008-09-07  Bruno Haible  <bruno@clisp.org>
48261
48262         * build-aux/config.rpath: Update according to libtool-2.2.6.
48263         * build-aux/config.libpath: Likewise.
48264
48265 2008-09-06  Bruno Haible  <bruno@clisp.org>
48266
48267         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
48268         * lib/freadptr.c (freadptr): Likewise.
48269         * lib/freadseek.c (freadptrinc): Likewise.
48270         Reported by Simon Josefsson.
48271
48272 2008-09-06  Bruno Haible  <bruno@clisp.org>
48273
48274         * modules/freadptr (License): Change to LGPLv2+.
48275         * modules/freadseek (License): Likewise.
48276         Suggested by Eric Blake.
48277
48278         * modules/memchr2 (License): Change to LGPLv2+.
48279         Approved by Eric Blake.
48280
48281 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48282             Bruno Haible  <bruno@clisp.org>
48283
48284         Make gnulib-tool work with native 'sed' on AIX.
48285         * gnulib-tool (sed_noop): New variable.
48286         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
48287         func_add_or_update, func_create_testdir): Use it to initialize sed
48288         script variables.
48289         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48290
48291 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
48292             Bruno Haible  <bruno@clisp.org>
48293
48294         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
48295         also works after #include directives.
48296
48297 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
48298
48299         getdate.y: reject an out-of-range timezone value
48300         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
48301         the range [-24...+24].  When specified with only one or two digits,
48302         * tests/test-getdate.c: Tests for the fix.
48303         * doc/getdate.texi: Document this change.
48304
48305 2008-09-03  Bruno Haible  <bruno@clisp.org>
48306
48307         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
48308
48309 2008-09-02  Simon Josefsson  <simon@josefsson.org>
48310
48311         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
48312         <bruce.korb@gmail.com> with ideas from Ben Pfaff
48313         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
48314         Blake <ebb9@byu.net>.
48315
48316         * tests/test-bitrotate.c: Add more test vectors.
48317
48318 2008-09-02  Eric Blake  <ebb9@byu.net>
48319
48320         vasnprintf-posix: handle large precision via %.*d
48321         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
48322         when handling it ourselves.
48323         * tests/test-vasnprintf-posix.c (test_function): Add test.
48324         * tests/test-snprintf-posix.h (test_function): Likewise.
48325         * tests/test-sprintf-posix.h (test_function): Likewise.
48326         * tests/test-vasprintf-posix.c (test_function): Likewise.
48327         Reported by Alain Guibert.
48328
48329 2008-09-01  Eric Blake  <ebb9@byu.net>
48330
48331         c-stack: make configure-time check more robust
48332         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
48333         successful sigaction call.
48334         Reported by Tom G. Christensen.
48335
48336 2008-09-01  Bruno Haible  <bruno@clisp.org>
48337
48338         New module 'findprog-lgpl'.
48339         * modules/findprog-lgpl: New file.
48340         * lib/findprog-lgpl.c: New file.
48341         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
48342         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
48343         to decide whether to use strdup or xstrdup, concatenated_filename or
48344         xconcatenated_filename.
48345
48346 2008-09-01  Bruno Haible  <bruno@clisp.org>
48347
48348         Split module 'concat-filename' into 'concat-filename' (LGPL) and
48349         'xconcat-filename' (GPL).
48350         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
48351         (License): Change to LGPLv2+.
48352         * modules/xconcat-filename: New file.
48353         * lib/concat-filename.h (concatenated_filename): Change specification.
48354         (xconcatenated_filename): New declaration.
48355         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
48356         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
48357         memory situations.
48358         * lib/xconcat-filename.c: New file.
48359         * NEWS: Mention the change.
48360         * lib/findprog.c: Include concat-filename.h, not filename.h.
48361         (find_in_path): Use xconcatenated_filename instead of
48362         concatenated_filename.
48363         * lib/javacomp.c: Include concat-filename.h, not filename.h.
48364         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48365         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48366         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48367         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
48368         instead of concatenated_filename.
48369         * lib/javaexec.c: Include concat-filename.h, not filename.h.
48370         (execute_java_class): Use xconcatenated_filename instead of
48371         concatenated_filename.
48372         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
48373         * modules/javacomp (Depends-on): Likewise.
48374         * modules/javaexec (Depends-on): Likewise.
48375
48376 2008-09-01  Bruno Haible  <bruno@clisp.org>
48377
48378         Split module 'filename' into 'filename' and 'concat-filename'.
48379         * modules/filename: Keep only lib/filename.h.
48380         (License): Change to LGPLv2+.
48381         * modules/concat-filename: New file, extracted from modules/filename.
48382         * lib/filename.h (concatenated_filename): Remove declaration.
48383         * lib/concat-filename.h: New file, extracted from lib/filename.h.
48384         * lib/concat-filename.c: Include concat-filename.h.
48385         * NEWS: Mention the change.
48386
48387 2008-09-01  Simon Josefsson  <simon@josefsson.org>
48388
48389         * lib/bitrotate.h (rotl8, rotr8): Add.
48390
48391         * modules/bitrotate (configure.ac): Need
48392         AC_REQUIRE([AC_C_INLINE]).
48393         (Description): Mention stdint.h.  Reported by Bruno Haible
48394         <bruno@clisp.org>.
48395
48396         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
48397         Paolo Bonzini <bonzini@gnu.org>.
48398
48399 2008-08-31  Bruno Haible  <bruno@clisp.org>
48400
48401         Assume Solaris specific bi-arch conventions on Solaris systems.
48402         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
48403         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
48404         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
48405         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
48406         like acl_libdirstem.
48407         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
48408         acl_libdirstem.
48409         * NEWS: Mention the change.
48410         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
48411
48412 2008-08-31  Jim Meyering  <meyering@redhat.com>
48413
48414         * lib/strftime.h: Add comments describing the two added arguments.
48415
48416         remove duplicate #include directives
48417         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
48418         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
48419
48420 2008-08-31  Bruno Haible  <bruno@clisp.org>
48421
48422         New module 'sigpipe-die'.
48423         * modules/sigpipe-die: New file.
48424         * lib/sigpipe-die.h: New file.
48425         * lib/sigpipe-die.c: New file.
48426         * MODULES.html.sh (Signal handling): Add sigpipe-die.
48427
48428 2008-08-31  Bruno Haible  <bruno@clisp.org>
48429
48430         Don't override previously installed signal handlers.
48431         * lib/fatal-signal.c (saved_sigactions): New variable.
48432         (uninstall_handlers): Reset the signal to the saved handler, not
48433         to SIG_DFL (except when ignored).
48434         (install_handlers): Save the previous handlers.
48435
48436 2008-08-30  Bruno Haible  <bruno@clisp.org>
48437
48438         * gnulib-tool (func_reset_sigpipe): New function.
48439         (func_get_automake_snippet, func_modules_transitive_closure,
48440         func_import): Invoke it before a join command that reads from stdin,
48441         to avoid "echo: write error: Broken pipe" error messages on stderr.
48442         Reported by Sam Steingold <sds@gnu.org>.
48443
48444 2008-08-30  Bruno Haible  <bruno@clisp.org>
48445
48446         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
48447         Code copied from m4/open.m4.
48448         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
48449         access and the filename ends in a slash. Code copied from lib/open.c.
48450         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
48451         * tests/test-fopen.c (main): Check against bug with trailing slash.
48452
48453 2008-08-29  Bruno Haible  <bruno@clisp.org>
48454
48455         Avoid some "gcc -pedantic" warnings.
48456         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
48457         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
48458         * lib/dirent.in.h: Likewise.
48459         * lib/fcntl.in.h: Likewise.
48460         * lib/float.in.h: Likewise.
48461         * lib/iconv.in.h: Likewise.
48462         * lib/inttypes.in.h: Likewise.
48463         * lib/locale.in.h: Likewise.
48464         * lib/math.in.h: Likewise.
48465         * lib/netinet_in.in.h: Likewise.
48466         * lib/search.in.h: Likewise.
48467         * lib/signal.in.h: Likewise.
48468         * lib/stdarg.in.h: Likewise.
48469         * lib/stdint.in.h: Likewise.
48470         * lib/stdio.in.h: Likewise.
48471         * lib/stdlib.in.h: Likewise.
48472         * lib/string.in.h: Likewise.
48473         * lib/strings.in.h: Likewise.
48474         * lib/sys_select.in.h: Likewise.
48475         * lib/sys_socket.in.h: Likewise.
48476         * lib/sys_stat.in.h: Likewise.
48477         * lib/sys_time.in.h: Likewise.
48478         * lib/sysexits.in.h: Likewise.
48479         * lib/time.in.h: Likewise.
48480         * lib/unistd.in.h: Likewise.
48481         * lib/wchar.in.h: Likewise.
48482         * lib/wctype.in.h: Likewise.
48483         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
48484         * modules/fchdir (Makefile.am): Likewise.
48485         * modules/fcntl (Makefile.am): Likewise.
48486         * modules/float (Makefile.am): Likewise.
48487         * modules/iconv_open (Makefile.am): Likewise.
48488         * modules/inttypes (Makefile.am): Likewise.
48489         * modules/locale (Makefile.am): Likewise.
48490         * modules/math (Makefile.am): Likewise.
48491         * modules/netinet_in (Makefile.am): Likewise.
48492         * modules/search (Makefile.am): Likewise.
48493         * modules/signal (Makefile.am): Likewise.
48494         * modules/stdarg (Makefile.am): Likewise.
48495         * modules/stdint (Makefile.am): Likewise.
48496         * modules/stdio (Makefile.am): Likewise.
48497         * modules/stdlib (Makefile.am): Likewise.
48498         * modules/string (Makefile.am): Likewise.
48499         * modules/strings (Makefile.am): Likewise.
48500         * modules/sys_select (Makefile.am): Likewise.
48501         * modules/sys_socket (Makefile.am): Likewise.
48502         * modules/sys_stat (Makefile.am): Likewise.
48503         * modules/sys_time (Makefile.am): Likewise.
48504         * modules/sysexits (Makefile.am): Likewise.
48505         * modules/time (Makefile.am): Likewise.
48506         * modules/unistd (Makefile.am): Likewise.
48507         * modules/wchar (Makefile.am): Likewise.
48508         * modules/wctype (Makefile.am): Likewise.
48509         Reported by Reuben Thomas <rrt@sc3d.org>.
48510
48511 2008-08-29  Bruno Haible  <bruno@clisp.org>
48512
48513         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
48514         any more.
48515
48516 2008-08-29  Simon Josefsson  <simon@josefsson.org>
48517
48518         * MODULES.html.sh (Misc): Add bitrotate.
48519
48520         * modules/bitrotate: New file.
48521
48522         * lib/bitrotate.h: New file.
48523
48524         * modules/bitrotate-tests: New file.
48525
48526         * tests/test-bitrotate.c: New file.
48527
48528         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
48529         on the bitrotate module.
48530
48531         * lib/arctwo.c: Use new bitrotate module.
48532
48533 2008-08-29  Jim Meyering  <meyering@redhat.com>
48534
48535         bootstrap: merge changes from coreutils
48536         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
48537         of copied files.  Remove a kludge, now that this is fixed.
48538         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
48539         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
48540         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
48541
48542 2008-08-29  Bruno Haible  <bruno@clisp.org>
48543
48544         * MODULES.html.sh: Remove --cvs-urls option.
48545
48546 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
48547
48548         maint.mk: adjust to file name change
48549         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
48550
48551 2008-08-28  Jim Meyering  <meyering@redhat.com>
48552
48553         * modules/getndelim2 (License): Relicense to LGPLv2+.
48554         Approved by Richard Stallman for the version of 1995, and by
48555         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
48556
48557 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
48558
48559         * lib/getdelim.c (flockfile, funlockfile): Make all of them
48560         dummy if one is not available.  Do not touch them if
48561         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
48562         (getc_maybe_unlocked): New.
48563         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
48564
48565 2008-08-26  Eric Blake  <ebb9@byu.net>
48566
48567         doc/INSTALL: resync from autoconf
48568         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
48569         (INSTALL_PRELUDE): Delete; this is done more efficiently by
48570         moving...
48571         * install.texi [!autoconf]: ...here.  Resync from autoconf.
48572         * INSTALL: Regenerate.
48573         * INSTALL.ISO: New file.
48574         * INSTALL.UTF-8: Likewise.
48575
48576 2008-08-26  Jim Meyering  <meyering@redhat.com>
48577
48578         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
48579         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
48580         these definitions conditional, so that they may be overridden, too.
48581
48582 2008-08-26  Bruno Haible  <bruno@clisp.org>
48583
48584         Generate INSTALL file variants with prettier quotes.
48585         * doc/Makefile (INSTALL_PRELUDE): New macro.
48586         (INSTALL): Use it.
48587         (INSTALL.ISO, INSTALL.UTF-8): New rules.
48588
48589 2008-08-26  Bruno Haible  <bruno@clisp.org>
48590
48591         Run makeinfo in an English locale.
48592         * doc/Makefile (MAKEINFO): New variable.
48593
48594 2008-08-26  Bruno Haible  <bruno@clisp.org>
48595
48596         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
48597         Suggested by Eric Blake.
48598
48599 2008-08-25  Bruno Haible  <bruno@clisp.org>
48600
48601         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
48602
48603 2008-08-25  Eric Blake  <ebb9@byu.net>
48604
48605         c-stack: test that stack overflow can be caught
48606         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
48607         that platform allows handling stack overflow; at least OS/2 EMX
48608         has sigaltstack, but crashes before transferring control to
48609         handler on stack overflow.
48610         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
48611         check for HAVE_STACK_OVERFLOW_HANDLING.
48612         Reported by Elbert Pol.
48613
48614 2008-08-25  Bruno Haible  <bruno@clisp.org>
48615
48616         * doc/posix-functions/strftime.texi: Fix description of strftime
48617         module.
48618
48619 2008-08-24  Bruno Haible  <bruno@clisp.org>
48620
48621         * tests/uniwidth/test-uc_width2.c: New file.
48622         * tests/uniwidth/test-uc_width2.sh: New file.
48623         * modules/uniwidth/width-tests (Files): Add the new files.
48624         (TESTS): Add uniwidth/test-uc_width2.sh.
48625         (TESTS_ENVIRONMENT): New variable.
48626         (check_PROGRAMS): Add test-uc_width2.
48627         (test_uc_width2_SOURCES): New variable.
48628
48629         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
48630         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
48631         not 0x00AB.
48632         Reported by Alexander V. Lukyanov <lav@netis.ru>.
48633
48634 2008-08-22  Eric Blake  <ebb9@byu.net>
48635
48636         test-lock, test-tls: mention why a test is skipped
48637         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
48638         skipped.
48639         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
48640
48641         count-one-bits: relax license
48642         * modules/count-one-bits (License): Relicense to LGPLv2+.
48643         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48644
48645 2008-08-22  Andreas Schwab  <schwab@suse.de>
48646
48647         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48648         Remove spurious space in assignment.
48649
48650 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48651
48652         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48653         Paul Eggert <eggert@CS.UCLA.EDU>.
48654
48655 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48656
48657         * modules/gettext: Add m4/threadlib.m4.
48658
48659 2008-08-19  Eric Blake  <ebb9@byu.net>
48660
48661         test-c-stack: fix compilation failure on FreeBSD 5.0
48662         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48663         headers before <sys/resource.h>.
48664         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48665         the bug.
48666         Reported by Nelson H. F. Beebe.
48667
48668         strverscmp: migrate from "strverscmp.h" to <string.h>
48669         * modules/string (Makefile.am): Add new hooks.
48670         * modules/strverscmp (Files): Remove strverscmp.h.
48671         (Depends-on): Add string.
48672         (configure.ac): Add indicator.
48673         (Include): Mention new header.
48674         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48675         defaults.
48676         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48677         results.
48678         * lib/strverscmp.h: Delete.
48679         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48680         * tests/test-strverscmp.c (includes): Adjust client.
48681         * lib/check-version.c (includes): Likewise.
48682         * NEWS: Document the change.
48683
48684         strverscmp: add unit test
48685         * modules/strverscmp-tests: New file.
48686         * tests/test-strverscmp.c: Likewise.
48687
48688 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48689
48690         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
48691         regarding Windows crypto stuff, from Mono.
48692
48693 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
48694
48695         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
48696         if present, for intel RND.  Return error on failures.
48697
48698 2008-08-18  Ben Pfaff  <blp@gnu.org>
48699
48700         gitlog-to-changelog: give better diagnostic for failed pipe-open
48701         * build-aux/gitlog-to-changelog: Improve error message: suggest
48702         that the version of Git may be too old.
48703
48704 2008-08-18  Simon Josefsson  <simon@josefsson.org>
48705
48706         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48707         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48708
48709 2008-08-18  Bruno Haible  <bruno@clisp.org>
48710
48711         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48712         pthread_in_use().
48713
48714 2008-08-18  Bruno Haible  <bruno@clisp.org>
48715
48716         * lib/glthread/threadlib.c: Include <pthread.h>.
48717
48718 2008-08-18  Bruno Haible  <bruno@clisp.org>
48719
48720         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48721         glthread_recursive_lock_* macros.
48722         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48723         Fix syntax error.
48724
48725 2008-08-18  Bruno Haible  <bruno@clisp.org>
48726
48727         * lib/glthread/thread.c: Avoid forcing a context switch right after
48728         thread creation.
48729
48730 2008-08-17  Bruno Haible  <bruno@clisp.org>
48731
48732         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48733         * lib/glthread/thread.h: Provide Win32 specific implementation.
48734         * modules/thread (Files): Add lib/glthread/thread.c.
48735         (Depends-on): Add lock.
48736         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
48737
48738 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48739
48740         New module 'yield'.
48741         * modules/yield: New file.
48742         * lib/glthread/yield.h: New file.
48743         * m4/yield.m4: New file.
48744         * MODULES.html.sh (Multithreading): Add yield.
48745
48746 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48747
48748         New module 'thread'.
48749         * modules/thread: New file.
48750         * lib/glthread/thread.h: New file.
48751         * m4/thread.m4: New file.
48752         * MODULES.html.sh (Multithreading): Add thread.
48753
48754 2008-08-17  Bruno Haible  <bruno@clisp.org>
48755
48756         * lib/glthread/lock.h: Include <stdlib.h> always.
48757         * lib/glthread/tls.h: Likewise.
48758         * lib/glthread/cond.h: Likewise.
48759
48760 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48761
48762         New module 'cond'.
48763         * modules/cond: New file.
48764         * lib/glthread/cond.h: New file.
48765         * lib/glthread/cond.c: New file.
48766         * m4/cond.m4: New file.
48767         * MODULES.html.sh (Multithreading): Add cond.
48768
48769 2008-08-16  Eric Blake  <ebb9@byu.net>
48770
48771         c-stack: fix regression on Irix 5.3 from 2008-06-21
48772         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48773         sa_sigaction...
48774         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48775         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48776         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48777         * modules/signal (Makefile.am): Use the value.
48778         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48779         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48780         * doc/posix-headers/signal.texi (signal.h): Document this
48781         portability issue.
48782         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48783         Reported by Tom G. Christensen.
48784
48785 2008-08-17  Bruno Haible  <bruno@clisp.org>
48786
48787         New module 'threadlib'.
48788         * modules/threadlib: New file.
48789         * lib/glthread/threadlib.c: New file, extracted from
48790         lib/glthread/lock.c.
48791         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48792         functions.
48793         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
48794         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
48795         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
48796         macros.
48797         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
48798         (gl_DISABLE_THREADS): Remove macro.
48799         * modules/lock (Files): Remove build-aux/config.rpath.
48800         (Depends-on): Remove havelib. Add threadlib.
48801         (configure.ac-early): Remove section.
48802         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
48803         * modules/tls (Depends-on): Remove lock. Add threadlib.
48804         (Link): New section, copied from threadlib.
48805         * MODULES.html.sh (Multithreading): Add threadlib.
48806
48807 2008-08-14  Bruno Haible  <bruno@clisp.org>
48808
48809         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48810         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48811         glthread_rwlock_unlock, glthread_rwlock_destroy,
48812         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48813         glthread_recursive_lock_destroy): Define as macros always.
48814         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48815         glthread_lock_lock.
48816         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48817         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48818         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48819         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48820         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48821         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48822         (glthread_recursive_lock_lock_func): Renamed from
48823         glthread_recursive_lock_lock.
48824         (glthread_recursive_lock_unlock_func): Renamed from
48825         glthread_recursive_lock_unlock.
48826         (glthread_recursive_lock_destroy_func): Renamed from
48827         glthread_recursive_lock_destroy.
48828
48829 2008-08-14  Bruno Haible  <bruno@clisp.org>
48830
48831         * lib/glthread/lock.h: Renamed from lib/lock.h.
48832         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48833         * lib/glthread/tls.h: Renamed from lib/tls.h.
48834         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48835         * lib/fstrcmp.c: Update includes.
48836         * lib/strsignal.c: Update includes.
48837         * modules/lock (Files, Makefile.am): Update.
48838         (Include): Change to "glthread/lock.h".
48839         * modules/tls (Files, Makefile.am): Update.
48840         (Include): Change to "glthread/tls.h".
48841         * tests/test-lock.c: Update includes.
48842         * tests/test-tls.c: Update includes.
48843         * NEWS: Mention the renamed header files.
48844
48845 2008-08-11  Jim Meyering  <meyering@redhat.com>
48846
48847         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48848
48849 2008-08-11  Eric Blake  <ebb9@byu.net>
48850
48851         test-c-stack: avoid C99-ism
48852         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48853         before statement.
48854         Reported by Alain Guibert.
48855
48856 2008-08-10  Jim Meyering  <meyering@redhat.com>
48857
48858         ensure that return value of uinttostr et al are not ignored
48859         * lib/inttostr.h (__GNUC_PREREQ): Define.
48860         (__attribute_warn_unused_result__): Define.
48861         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48862
48863 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48864
48865         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48866         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48867
48868 2008-08-07  Jim Meyering  <meyering@redhat.com>
48869
48870         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48871
48872         * modules/mkstemp (License): Relicense under LGPLv2+.
48873         * modules/tempname (License): Likewise.
48874
48875 2008-08-06  Bruno Haible  <bruno@clisp.org>
48876
48877         * lib/poll.c (poll): Further micro-optimization.
48878
48879 2008-08-06  Jim Meyering  <meyering@redhat.com>
48880
48881         inet_pton.c: use locale-independent tolower
48882         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48883         (inet_pton6): Use c_tolower rather than tolower.
48884         * modules/inet_pton (Depends-on): Add c-ctype.
48885
48886 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48887
48888         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48889         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48890
48891 2008-08-06  Jim Meyering  <meyering@redhat.com>
48892
48893         * modules/inet_pton (License): Relicense under LGPLv2+.
48894
48895 2008-08-03  Bruno Haible  <bruno@clisp.org>
48896
48897         Additional non-aborting API for lock and tls.
48898         * lib/lock.h: Include <errno.h>.
48899         (glthread_lock_init): New macro/function.
48900         (gl_lock_init): Define as wrapper around glthread_lock_init.
48901         (glthread_lock_lock): New macro/function.
48902         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48903         (glthread_lock_unlock): New macro/function.
48904         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48905         (glthread_lock_destroy): New macro/function.
48906         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48907         (glthread_rwlock_init): New macro/function.
48908         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48909         (glthread_rwlock_rdlock): New macro/function.
48910         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48911         (glthread_rwlock_wrlock): New macro/function.
48912         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48913         (glthread_rwlock_unlock): New macro/function.
48914         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48915         (glthread_rwlock_destroy): New macro/function.
48916         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48917         (glthread_recursive_lock_init): New macro/function.
48918         (gl_recursive_lock_init): Define as wrapper around
48919         glthread_recursive_lock_init.
48920         (glthread_recursive_lock_lock): New macro/function.
48921         (gl_recursive_lock_lock): Define as wrapper around
48922         glthread_recursive_lock_lock.
48923         (glthread_recursive_lock_unlock): New macro/function.
48924         (gl_recursive_lock_unlock): Define as wrapper around
48925         glthread_recursive_lock_unlock.
48926         (glthread_recursive_lock_destroy): New macro/function.
48927         (gl_recursive_lock_destroy): Define as wrapper around
48928         glthread_recursive_lock_destroy.
48929         (glthread_once): New macro/function.
48930         (gl_once): Define as wrapper around glthread_once.
48931         Update function declarations.
48932         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48933         glthread_rwlock_init. Return error code.
48934         (glthread_rwlock_rdlock_multithreaded): Renamed from
48935         glthread_rwlock_rdlock. Return error code.
48936         (glthread_rwlock_wrlock_multithreaded): Renamed from
48937         glthread_rwlock_wrlock. Return error code.
48938         (glthread_rwlock_unlock_multithreaded): Renamed from
48939         glthread_rwlock_unlock. Return error code.
48940         (glthread_rwlock_destroy_multithreaded): Renamed from
48941         glthread_rwlock_destroy. Return error code.
48942         (glthread_recursive_lock_init_multithreaded): Renamed from
48943         glthread_recursive_lock_init. Return error code.
48944         (glthread_recursive_lock_lock_multithreaded): Renamed from
48945         glthread_recursive_lock_lock. Return error code.
48946         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48947         glthread_recursive_lock_unlock. Return error code.
48948         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48949         glthread_recursive_lock_destroy. Return error code.
48950         (glthread_once_call): Make static.
48951         (glthread_once_multithreaded): Renamed from glthread_once.
48952         * lib/tls.h: Include <errno.h>.
48953         (glthread_tls_key_init): New macro/function.
48954         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48955         (glthread_tls_set): New macro/function.
48956         (gl_tls_set): Define as wrapper around glthread_tls_set.
48957         (glthread_tls_key_destroy): New macro/function.
48958         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48959         Update function declarations.
48960         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48961         glthread_tls_get.
48962         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48963
48964 2008-08-04  Eric Blake  <ebb9@byu.net>
48965
48966         gnumakefile: use space, not TAB, outside of targets
48967         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48968
48969 2008-08-02  Jim Meyering  <meyering@redhat.com>
48970
48971         getdate.y: avoid locale-dependent date parsing failure
48972         In Turkish locales, getdate would fail to recognize keywords
48973         containing a lowercase "i".  The solution is not to rely on
48974         locale-sensitive case-conversion.
48975         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48976         (lookup_word): Use c_toupper in place of toupper.
48977         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48978         Reported by Vefa Bicakci <bicave@superonline.com> in
48979         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48980         * modules/getdate (Depends-on): Add c-ctype.
48981
48982 2008-08-02  Bruno Haible  <bruno@clisp.org>
48983
48984         * gnulib-tool (func_import): When updating or creating a .gitignore
48985         file, prepend each added line with a slash, and ignore leading slashes
48986         from the existing lines.
48987         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48988
48989 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48990
48991         Portability fix for GNU make 3.79.1.
48992         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48993         versions do not understand.
48994
48995 2008-08-01  Bruno Haible  <bruno@clisp.org>
48996
48997         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48998         * tests/test-isnanf.h (zero): New variable.
48999         (main): Avoid literal -0.0f.
49000         * tests/test-isnand.h (zero): New variable.
49001         (main): Avoid literal -0.0.
49002         * tests/test-isnanl.h (zero): New variable.
49003         (main): Avoid literal -0.0L.
49004         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
49005         (test_float, test_double, test_long_double): Avoid literals -0.0f,
49006         -0.0, -0.0L.
49007         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
49008         (test_signbitd): Avoid literal -0.0.
49009         (test_signbitl): Avoid literal -0.0L.
49010         * tests/test-ceilf1.c (zero): New variable.
49011         (main): Avoid literal -0.0f.
49012         * tests/test-ceill.c (zero): New variable.
49013         (main): Avoid literal -0.0L.
49014         * tests/test-floorf1.c (zero): New variable.
49015         (main): Avoid literal -0.0f.
49016         * tests/test-floorl.c (zero): New variable.
49017         (main): Avoid literal -0.0L.
49018         * tests/test-roundf1.c (zero): New variable.
49019         (main): Avoid literal -0.0f.
49020         * tests/test-round1.c (zero): New variable.
49021         (main): Avoid literal -0.0.
49022         * tests/test-roundl.c (zero): New variable.
49023         (main): Avoid literal -0.0L.
49024         * tests/test-truncf1.c (zero): New variable.
49025         (main): Avoid literal -0.0f.
49026         * tests/test-trunc1.c (zero): New variable.
49027         (main): Avoid literal -0.0.
49028         * tests/test-truncl.c (zero): New variable.
49029         (main): Avoid literal -0.0L.
49030         * tests/test-frexp.c (zero): New variable.
49031         (main): Avoid literal -0.0.
49032         * tests/test-frexpl.c (zero): New variable.
49033         (main): Avoid literal -0.0L.
49034         * tests/test-ldexpl.c (zero): New variable.
49035         (main): Avoid literal -0.0L.
49036         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49037         (zerod, zerol): New variables.
49038         (test_function): Avoid literals -0.0, -0.0L.
49039         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49040         (zerod, zerol): New variables.
49041         (test_function): Avoid literals -0.0, -0.0L.
49042         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49043         (zerod, zerol): New variables.
49044         (test_function): Avoid literals -0.0, -0.0L.
49045         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49046         (zerod, zerol): New variables.
49047         (test_function): Avoid literals -0.0, -0.0L.
49048         * tests/test-strtod.c (zero): New variable.
49049         (main): Avoid literal -0.0.
49050         Reported by Jonathan C. Patschke <jp@centtech.com>.
49051
49052 2008-07-31  Jim Meyering  <meyering@redhat.com>
49053
49054         sha256.h: correct definition of SHA224_DIGEST_SIZE
49055         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
49056         Reported by Paulie Pena IV <paulie4@gmail.com>.
49057         Define as 224 / 8, rather than as a literal.
49058         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
49059         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
49060         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
49061
49062 2008-07-31  Bruno Haible  <bruno@clisp.org>
49063
49064         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
49065         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
49066         Reported by Jonathan Patschke <jp@centtech.com>.
49067
49068 2008-07-31  Bruno Haible  <bruno@clisp.org>
49069
49070         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
49071         Reported by Paolo Bonzini <bonzini@gnu.org>.
49072
49073 2008-07-30  Eric Blake  <ebb9@byu.net>
49074
49075         test-strtod: allow compilation without -lm
49076         * tests/test-strtod.c (main): Avoid link dependence on fabs.
49077         Reported by Dennis Clarke <blastwave@gmail.com>.
49078
49079 2008-07-28  Jim Meyering  <meyering@redhat.com>
49080
49081         bootstrap: work also when there are no .po files in po/
49082         * build-aux/bootstrap (update_po_files): Complete the change
49083         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
49084
49085 2008-07-27  Jim Meyering  <meyering@redhat.com>
49086
49087         * users.txt: Add zile.
49088
49089 2008-07-26  Ben Pfaff  <blp@gnu.org>
49090
49091         Add missing dependencies on new m4/exponent[fdl].m4 files.
49092         * modules/isnanf-nolibm: Add m4/exponentf.m4.
49093         * modules/isnand-nolibm: Add m4/exponentd.m4.
49094         * modules/isnanl-nolibm: Add m4/exponentl.m4.
49095         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
49096         m4/isnan[fdl].m4, because the macros actually used moved.
49097         Reported by Jim Meyering.
49098
49099 2008-07-14  Ben Pfaff  <blp@gnu.org>
49100
49101         Add isinf module.
49102         * lib/isinf.c: New file.
49103         * lib/math.in.h: Define isinf macro if we have decided to replace
49104         it.
49105         * m4/isinf.m4: New file.
49106         * m4/math_h.m4: Initialize and substitute variables for isinf
49107         module.
49108         * modules/isinf: New file.
49109         * modules/isinf-tests: New file.
49110         * modules/math: Add substitutions for new module.
49111         * tests/test-isinf.c: New file.
49112         * doc/posix-functions/isinf.texi: Mention new module.
49113         * MODULES.html.sh: Mention new module.
49114
49115 2008-07-14  Ben Pfaff  <blp@gnu.org>
49116
49117         Factor out some macros for use by additional modules.
49118         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
49119         exponentf.m4.
49120         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
49121         exponentd.m4.
49122         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
49123         file exponentl.m4.
49124         * m4/exponentf.m4: New file.
49125         * m4/exponentd.m4: New file.
49126         * m4/exponentl.m4: New file.
49127         * modules/isnanf: Use new file m4/exponentf.m4.
49128         * modules/isnand: Use new file m4/exponentd.m4.
49129         * modules/isnanl: Use new file m4/exponentl.m4.
49130
49131 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
49132
49133         mktime.c: normalize tp->tm_isdst value to -1/0/1.
49134         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
49135         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
49136         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
49137
49138         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
49139         readlink on platforms without PATH_MAX.
49140
49141 2008-07-21  Eric Blake  <ebb9@byu.net>
49142
49143         Warn, not fail, on stale version.
49144         * top/GNUmakefile (_curr-ver): Tone down previous patch.
49145
49146         Don't allow installation with stale devel version number.
49147         * top/GNUmakefile (_is-install-target): New macro.
49148         (_curr-ver): Forbid installation with stale version number.
49149
49150 2008-07-20  Bruno Haible  <bruno@clisp.org>
49151
49152         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
49153         TESTS_ENVIRONMENT.
49154         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
49155
49156 2008-07-20  Bruno Haible  <bruno@clisp.org>
49157
49158         * lib/c-stack.h (c_stack_action): Add documentation.
49159         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
49160
49161 2008-07-20  Bruno Haible  <bruno@clisp.org>
49162
49163         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
49164         * modules/readlink (License): Likewise.
49165
49166 2008-07-17  Eric Blake  <ebb9@byu.net>
49167
49168         * modules/c-stack (Link): Fix typo.
49169
49170         Make c-stack use libsigsegv, when available.
49171         * modules/c-stack (Depends-on): Add libsigsegv.
49172         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
49173         needed.
49174         * lib/c-stack.c (SIGSTKSZ): Define fallback.
49175         (segv_handler, overflow_handler, c_stack_action)
49176         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
49177         implementation when libsigsegv is available, but only when using
49178         the library is necessary.
49179         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
49180         comment, explaining why XSI check fails on Linux.
49181         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
49182         * tests/test-c-stack2.sh: Tweak skip message.
49183         * NEWS: Document new link-time requirements.
49184
49185 2008-07-16  Eric Blake  <ebb9@byu.net>
49186
49187         c-stack: Expose false positives when not using libsigsegv.
49188         * modules/c-stack-tests (Files): Expand test.
49189         * tests/test-c-stack.c (main): Add means to conditionally trigger
49190         non-overflow SIGSEGV.
49191         * tests/test-c-stack2.sh: New file.
49192
49193 2008-07-14  Bruno Haible  <bruno@clisp.org>
49194
49195         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
49196         Reported by Eric Blake.
49197
49198 2008-07-14  Sam Steingold  <sds@gnu.org>
49199             Bruno Haible  <bruno@clisp.org>
49200
49201         New module libsigsegv.
49202         * modules/libsigsegv: New file.
49203         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
49204         modifications.
49205         * MODULES.html.sh (Signal handling): New section.
49206
49207 2008-07-14  Bruno Haible  <bruno@clisp.org>
49208
49209         * modules/unictype/ctype-* (Description): Add the word "function".
49210         Improves the resulting doc in MODULES.html.
49211
49212 2008-07-12  Ben Pfaff  <blp@gnu.org>
49213
49214         Add longlong module.
49215         * modules/longlong: New file.
49216
49217 2008-07-12  Bruno Haible  <bruno@clisp.org>
49218
49219         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
49220         to empty.
49221
49222 2008-07-10  Ben Pfaff  <blp@gnu.org>
49223
49224         Add isnan module.
49225         * doc/posix-functions/isnan.texi: Mention new module.
49226         * lib/math.in.h: Define isnan macro if we have decided to replace
49227         it.
49228         * m4/isnan.m4: New file.
49229         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
49230         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
49231         also.
49232         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
49233         redundancy.
49234         * m4/math_h.m4: Initialize and substitute variables for isnan
49235         module.
49236         * modules/isnan: New file.
49237         * modules/isnan-tests: New file.
49238         * modules/math: Add substitutions for new module.
49239         * tests/test-isnan.c: New file.
49240         * MODULES.html.sh: Mention new module.
49241
49242 2008-07-10  Ben Pfaff  <blp@gnu.org>
49243
49244         Add isnanf module.
49245         * lib/isnanf.m4: New file.
49246         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
49247         (gl_HAVE_ISNANF_IN_LIBM): New macro.
49248         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
49249         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
49250         * modules/isnanf: New file.
49251         * modules/isnanf-tests: New file.
49252         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
49253         files.
49254         * tests/test-isnanf-nolibm.c: factored most of its contents into
49255         new file tests/test-isnanf.h.
49256         * tests/test-isnanf.h: New file.
49257         * tests/test-isnanf.c: New file.
49258         * MODULES.html.sh: Mention new module.
49259         * doc/glibc-functions/isnanf.texi: Mention new module.
49260
49261 2008-07-10  Ben Pfaff  <blp@gnu.org>
49262
49263         Add isnand module.
49264         * lib/isnand.h: New file.
49265         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
49266         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
49267         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
49268         functionality also.
49269         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
49270         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
49271         (gl_HAVE_ISNAND_IN_LIBM): New macro.
49272         * modules/isnand: New file.
49273         * modules/isnand-tests: New file.
49274         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
49275         files.
49276         * tests/test-isnand-nolibm.c: factored most of its contents into
49277         new file tests/test-isnand.h.
49278         * tests/test-isnand.h: New file.
49279         * tests/test-isnand.c: New file.
49280         * MODULES.html.sh: Mention new module.
49281
49282 2008-07-10  Ben Pfaff  <blp@gnu.org>
49283
49284         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
49285         * lib/isnand.h: Rename lib/isnand-nolibm.h.
49286         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
49287         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
49288         * modules/isnanf-nolibm: Update references to renamed files.
49289         * modules/isnand-nolibm: Likewise.
49290         * modules/isnanf-nolibm-tests: Likewise.
49291         * modules/isnand-nolibm-tests: Likewise.
49292         * lib/frexp.c: Likewise.
49293         * lib/isfinite.c: Likewise.
49294         * lib/signbitd.c: Likewise.
49295         * lib/signbitf.c: Likewise.
49296         * lib/vasnprintf.c: Likewise.
49297         * tests/test-ceilf1.c: Likewise.
49298         * tests/test-ceilf2.c: Likewise.
49299         * tests/test-floorf1.c: Likewise.
49300         * tests/test-floorf2.c: Likewise.
49301         * tests/test-frexp.c: Likewise.
49302         * tests/test-round1.c: Likewise.
49303         * tests/test-round2.c: Likewise.
49304         * tests/test-roundf1.c: Likewise.
49305         * tests/test-strtod.c: Likewise.
49306         * tests/test-trunc1.c: Likewise.
49307         * tests/test-trunc2.c: Likewise.
49308         * tests/test-truncf1.c: Likewise.
49309         * tests/test-truncf2.c: Likewise.
49310         * NEWS: Mention the renamed header files.
49311
49312 2008-07-11  Jim Meyering  <meyering@redhat.com>
49313
49314         vc-list-files: make the last-resort awk code more portable
49315         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
49316         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
49317         does not support it.
49318
49319 2008-07-10  Eric Blake  <ebb9@byu.net>
49320
49321         Work with tar's bootstrap.
49322         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
49323         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
49324         an m4 comment.
49325
49326 2008-07-09  Jim Meyering  <meyering@redhat.com>
49327
49328         posix-shell.m4: fix typo that made this test malfunction
49329         * m4/posix-shell.m4: Remove capitalization in variable name.
49330
49331 2008-07-08  Bruno Haible  <bruno@clisp.org>
49332
49333         * m4/onceonly.m4: Update comments.
49334         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49335
49336 2008-07-04  Jim Meyering  <meyering@redhat.com>
49337
49338         * users.txt: Add vc-dwim.
49339         (bison, coreutils): Use the gitweb URL.
49340
49341 2008-07-03  Jim Meyering  <meyering@redhat.com>
49342
49343         * users.txt: Add libffcall.  From Sam Steingold.
49344
49345 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
49346
49347         getdate.y: do not ignore TZ with relative day, month or year offset
49348         * lib/getdate.y (get_date): Move the tz-handling block to follow the
49349         relative-date-handling, since otherwise, the latter would clobber the
49350         sole output (an updated Start value) of the tz-handling block.
49351         * tests/test-getdate.c: Tests for the fix
49352
49353 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49354
49355         Recognize 'foo_LIBRARIES += libgnu.a'.
49356         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
49357         makefile snippet has already specified an installation location,
49358         also using '+='.
49359
49360 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
49361
49362         getdate.y: factor out common actions
49363         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
49364         Use them in place of open-coded actions.
49365
49366 2008-07-01  Simon Josefsson  <simon@josefsson.org>
49367
49368         Add self-test for getdate module.
49369         * modules/getdate-tests: New file.
49370         * tests/test-getdate.c: New file.
49371
49372 2008-06-29  Bruno Haible  <bruno@clisp.org>
49373
49374         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
49375         .gitignore.
49376         Reported by Sylvain Beucler <beuc@beuc.net>.
49377
49378 2008-06-29  Bruno Haible  <bruno@clisp.org>
49379
49380         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
49381         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
49382
49383 2008-06-29  Bruno Haible  <bruno@clisp.org>
49384
49385         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
49386         EXTRA_DIST.
49387         Reported by Sylvain Beucler <beuc@beuc.net>.
49388
49389 2008-06-26  Jim Meyering  <meyering@redhat.com>
49390
49391         make several modules depend on the "open" module
49392         This provides slightly increased consistency when opening-for-write
49393         the name of a non-directory spelled with a trailing slash.
49394         * modules/chdir-safer: Likewise.
49395         * modules/chown: Likewise.
49396         * modules/clean-temp: Likewise.
49397         * modules/copy-file: Likewise.
49398         * modules/fchdir: Likewise.
49399         * modules/fcntl-safer: Likewise.
49400         * modules/pipe: Likewise.
49401         * modules/utime: Likewise.
49402         Prompted by Eric Blake and Bruno Haible.
49403
49404 2008-06-24  Andreas Schwab  <schwab@suse.de>
49405
49406         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
49407         literals can be used as initializers for global variables.
49408
49409 2008-06-23  Eric Blake  <ebb9@byu.net>
49410
49411         Make gnulib-cache.m4 easier to diff.
49412         * gnulib-tool (func_import): Allow newlines when reading cached
49413         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
49414
49415 2008-06-23  Bruno Haible  <bruno@clisp.org>
49416
49417         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
49418         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
49419         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
49420         m4/signalblocking.m4.
49421         (gl_PREREQ_SIGACTION): Don't invoke it.
49422         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
49423         gl_PREREQ_SIG_HANDLER_H.
49424         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49425         Don't check for sigaction here.
49426
49427 2008-06-23  Bruno Haible  <bruno@clisp.org>
49428
49429         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
49430         (install_handlers): Don't set the SA_RESETHAND flag.
49431
49432 2008-06-23  Bruno Haible  <bruno@clisp.org>
49433
49434         * m4/sigaction.m4: Comment fixes.
49435         * lib/signal.in.h: Likewise.
49436
49437 2008-06-23  Eric Blake  <ebb9@byu.net>
49438
49439         Fix typo.
49440         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
49441
49442         Avoid SA_ namespace.
49443         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
49444         Reported by Ralf Wildenhues.
49445
49446         Avoid test failure due to SA_RESTORER.
49447         * tests/test-sigaction.c (SA_MASK): New macro.
49448         (main): Avoid failing due to extension flags being set.
49449         Reported by Jim Meyering.
49450
49451         Revert use of sig-handler.h in sigprocmask.c.
49452         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
49453         it requires the existence of struct sigaction.
49454         * lib/sigprocmask.c (handler_t): Restore typedef.
49455         (rpl_signal, old_handlers): Use local type.
49456
49457 2008-06-22  Bruno Haible  <bruno@clisp.org>
49458
49459         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
49460         conditionally.
49461         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49462
49463 2008-06-22  Bruno Haible  <bruno@clisp.org>
49464
49465         * doc/posix-functions/siginterrupt.texi: Move note.
49466
49467         * lib/signal.in.h (SA_RESTART): New macro.
49468         * lib/sigaction.c: Update comment.
49469
49470         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
49471
49472         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
49473         (gl_PREREQ_SIGPROCMASK): Invoke it.
49474         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
49475
49476         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
49477
49478         * lib/sigprocmask.c: Update a comment.
49479
49480 2008-06-21  Eric Blake  <ebb9@byu.net>
49481
49482         Use sigaction module rather than signal().
49483         * modules/c-stack (Depends-on): Add sigaction.
49484         * modules/fatal-signal (Depends-on): Likewise.
49485         * modules/nanosleep (Depends-on): Likewise.
49486         * modules/sigprocmask (Files): Add sig-handler.h.
49487         * modules/sigaction (Files): Likewise.
49488         * lib/sig-handler.h (get_handler): New file, suggested by Paul
49489         Eggert.
49490         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
49491         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
49492         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
49493         (init_fatal_signals): Likewise.
49494         * lib/nanosleep.c (rpl_nanosleep): Likewise.
49495         (siginterrupt): Delete fallback.
49496         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
49497         instead.
49498         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
49499         siginterrupt.
49500
49501         New module sigaction, for mingw.
49502         * modules/sigaction: New module...
49503         * modules/sigaction-tests: ...and its test.
49504         * m4/sigaction.m4: New file.
49505         * lib/sigaction.c: Likewise.
49506         * tests/test-sigaction.c: Likewise.
49507         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
49508         * modules/signal (Makefile.am): Likewise.
49509         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
49510         needed.
49511         * doc/posix-headers/signal.texi (signal.h): Mention provided
49512         types.
49513         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
49514         that sigaction is preferable.
49515         * doc/posix-functions/sigaction.texi (sigaction): Mention new
49516         module.
49517         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49518         sigaction.
49519
49520         Improve robustness of sigprocmask by overriding signal.
49521         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
49522         is in use.
49523         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
49524         (SIGKILL, SIGSTOP): Provide fallbacks.
49525         (rpl_signal): Implement.
49526         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
49527         signal can be called inside handlers.
49528
49529         Fix nanosleep module on mingw.
49530         * modules/nanosleep (Depends-on): Add sys_select.
49531         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
49532
49533         Fix licensing of sigprocmask.
49534         * modules/raise (License): Relicense as LGPL.
49535
49536 2008-06-21  Bruno Haible  <bruno@clisp.org>
49537
49538         * lib/propername.c (proper_name_utf8): Don't use the transliterated
49539         result if it contains question marks.
49540         Reported by Michael Geng <linux@michaelgeng.de>.
49541
49542 2008-06-19  Bruno Haible  <bruno@clisp.org>
49543
49544         Fix CVS-ism.
49545         * doc/gnulib.texi: Include updated-stamp.texi.
49546         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
49547         (updated-stamp.texi): New rule.
49548         (gnulib.info): Depend on it.
49549         * doc/.gitignore: Add updated-stamp.texi.
49550         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
49551
49552 2008-06-19  Bruno Haible  <bruno@clisp.org>
49553
49554         * doc/Makefile (gnulib.info): Update and simplify dependencies.
49555         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49556
49557 2008-06-19  Eric Blake  <ebb9@byu.net>
49558
49559         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
49560         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
49561         Reported by Stepan Kasal.
49562
49563 2008-06-18  Bruno Haible  <bruno@clisp.org>
49564
49565         * lib/fatal-signal.c (init_fatal_signals): Add comment.
49566         Reported by Eric Blake.
49567
49568 2008-06-18  Eric Blake  <ebb9@byu.net>
49569
49570         Work around cygwin 1.5.25 strsignal bug.
49571         * tests/test-strsignal.c: Allow for const char *.
49572         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
49573
49574 2008-06-18  Simon Josefsson  <simon@josefsson.org>
49575
49576         * users.txt: Update URL to article and add author/date
49577         information.
49578
49579 2008-06-17  Bruno Haible  <bruno@clisp.org>
49580
49581         New macro gl_DISABLE_THREADS.
49582         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
49583         if the user did not pass --enable-threads or --disable-threads option.
49584         (gl_DISABLE_THREADS): New macro.
49585         Reported by Eric Blake <ebb9@byu.net>.
49586
49587 2008-06-17  Bruno Haible  <bruno@clisp.org>
49588
49589         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
49590         when the macro ignores it.
49591         Based on a patch by Eric Blake <ebb9@byu.net>.
49592
49593 2008-06-17  Bruno Haible  <bruno@clisp.org>
49594
49595         * modules/tls (License): Change to LGPLv2+.
49596         Reported by Eric Blake.
49597
49598 2008-06-17  Eric Blake  <ebb9@byu.net>
49599
49600         Simplify c-stack prerequisites.
49601         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
49602         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
49603         no longer requires <ucontext.h> to exist.  Optimize setrlimit
49604         check.
49605         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
49606         <sys/resource.h>.
49607
49608         Move c-stack test into testsuite.
49609         * modules/c-stack-tests: New file.
49610         * lib/c-stack.c [DEBUG]: Move test program...
49611         * tests/test-c-stack.c: ...into this new file.  Skip rather than
49612         fail test if sigaltstack is lacking.
49613         * tests/test-c-stack.sh: New driver file.
49614
49615 2008-06-16  Eric Blake  <ebb9@byu.net>
49616
49617         Use raise module consistently.
49618         * modules/fatal-signal (Depends-on): Add raise.
49619         * modules/sigprocmask (Depends-on): Likewise.
49620         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
49621         * lib/sigprocmask.c (sigprocmask): Likewise.
49622         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49623         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
49624
49625         Fix compliance bug in sigpending.
49626         * lib/sigprocmask.c (sigpending): Return pending array via
49627         parameter, not return value.
49628
49629 2008-06-14  Eric Blake  <ebb9@byu.net>
49630
49631         Improve obstack-printf test code.
49632         * tests/test-obstack-printf.c (test_function): Fix comment, and
49633         simplify usage of obstack_* in macros.  Add a test for coverage.
49634         Reported by Bruno Haible.
49635
49636 2008-06-14  Bruno Haible  <bruno@clisp.org>
49637
49638         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
49639         array size as a constant, not as a const variable.
49640         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
49641         AC_USE_SYSTEM_EXTENSIONS.
49642         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49643         Test whether the obstack_printf function actually exists.
49644         * modules/obstack-printf (Depends-on): Add extensions.
49645         (Include): Remove obstack.h.
49646         * modules/obstack-printf-posix (Depends-on): Add extensions.
49647         (Include): Remove obstack.h.
49648
49649 2008-06-13  Eric Blake  <ebb9@byu.net>
49650
49651         Add obstack-printf and obstack-printf-posix modules.
49652         * modules/obstack-printf: New file.
49653         * modules/obstack-printf-posix: Likewise.
49654         * MODULES.html.sh (Misc): Mention them.
49655         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49656         Likewise.
49657         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49658         Likewise.
49659         * modules/stdio (Makefile.am): Accomodate new modules.
49660         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49661         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49662         Declare.
49663         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49664         functions.
49665         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49666         (gl_REPLACE_OBSTACK_PRINTF): New macros
49667         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49668         * tests/test-obstack-printf.c: New file.
49669         * modules/obstack-printf-tests: Likewise.
49670         * modules/obstack-printf-posix-tests: Likewise.
49671
49672 2008-06-11  Bruno Haible  <bruno@clisp.org>
49673
49674         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49675         * lib/open.c: Include errno.h.
49676         (open): Fail when attempting to write to a file that has a trailing
49677         slash.
49678         * tests/test-open.c (main): Test against trailing slash bug.
49679         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49680
49681 2008-06-10  Bruno Haible  <bruno@clisp.org>
49682
49683         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49684         for $? to work inside the trap command, with various /bin/sh-s.
49685         * tests/test-vc-list-files-cvs.sh: Likewise.
49686
49687 2008-06-10  Bruno Haible  <bruno@clisp.org>
49688
49689         * lib/acl-internal.h: Don't include gettext.h here.
49690         * lib/set-mode-acl.c: Include gettext.h here.
49691         * lib/copy-acl.c: Likewise.
49692
49693 2008-06-10  Bruno Haible  <bruno@clisp.org>
49694
49695         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
49696         * lib/wait-process.c (wait_subprocess): Likewise.
49697         * lib/execute.h (execute): Add termsigp argument.
49698         * lib/execute.c (execute): Likewise.
49699         * lib/csharpcomp.c (compile_csharp_using_pnet,
49700         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
49701         * lib/csharpexec.c (execute_csharp_using_pnet,
49702         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
49703         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
49704         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
49705         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
49706         is_jikes_present): Update.
49707         * lib/javaexec.c (execute_java_class): Update.
49708         * lib/javaversion.c (execute_and_read_line): Update.
49709         * NEWS: Document the changes.
49710         Reported by Eric Blake.
49711
49712 2008-06-10  Eric Blake  <ebb9@byu.net>
49713
49714         Add missing include.
49715         * tests/test-strstr.c (includes): Add <signal.h>.
49716         * tests/test-strcasestr.c (includes): Likewise.
49717         * tests/test-memmem.c (includes): Likewise.
49718
49719 2008-06-10  Bruno Haible  <bruno@clisp.org>
49720
49721         * lib/wait-process.c (wait_subprocess): Add an assertion.
49722
49723 2008-06-10  Bruno Haible  <bruno@clisp.org>
49724
49725         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49726
49727 2008-06-10  Bruno Haible  <bruno@clisp.org>
49728
49729         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49730         using alarm().
49731         * tests/test-strcasestr.c (main): Likewise.
49732         * tests/test-strstr.c (main): Likewise.
49733
49734 2008-06-09  Bruno Haible  <bruno@clisp.org>
49735
49736         Work around the Solaris 10 ACE ACLs ABI change.
49737         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
49738         declare if ACL_NO_TRIVIAL is present.
49739         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
49740         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
49741         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
49742         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
49743         define if ACL_NO_TRIVIAL is present.
49744         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
49745         and use the current ABI.
49746         (file_has_acl): Use same #if condition as elsewhere.
49747         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
49748         in use, and use the current ABI.
49749         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
49750         Reported by Jim Meyering.
49751
49752 2008-06-09  Eric Blake  <ebb9@byu.net>
49753
49754         Work around environments that (stupidly) ignore SIGALRM.
49755         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
49756         before using alarm().
49757         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49758         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49759         Reported by Ian Beckwith <ianb@erislabs.net>.
49760
49761         Produce autobuild blurb earlier in log.
49762         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49763
49764 2008-06-09  Jim Meyering  <meyering@redhat.com>
49765         and Ondřej Vašík  <ovasik@redhat.com>
49766
49767         utimens.c: correct kernel bug work-around
49768         Ondřej Vašík found that the invalid return value of 280 indicates
49769         failure, not success, and the kernel bug we're trying to work
49770         around affects not just the utimensat call, but also the fallback
49771         futimens call.
49772         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49773         not success.
49774         [HAVE_FUTIMENS]: Use the same work-around, here.
49775
49776 2008-06-09  Jim Meyering  <meyering@redhat.com>
49777
49778         add more guards around definition of ACE_-related code
49779         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49780         ALLOW and ACE_OWNER are also defined.
49781
49782 2008-06-08  Bruno Haible  <bruno@clisp.org>
49783
49784         * lib/acl-internal.h: Add me as co-author.
49785         * lib/file-has-acl.c: Likewise.
49786         * lib/set-mode-acl.c: Likewise.
49787         * lib/copy-acl.c: Likewise.
49788
49789 2008-06-08  Bruno Haible  <bruno@clisp.org>
49790
49791         Add support for AIX ACLs.
49792         * lib/acl-internal.h (acl_nontrivial): New declaration.
49793         * lib/file-has-acl.c (acl_nontrivial): New function.
49794         (file_has_acl): Add implementation using AIX 4 ACL API.
49795         * lib/set-mode-acl.c (qset_acl): Likewise.
49796         * lib/copy-acl.c (qcopy_acl): Likewise.
49797
49798 2008-06-08  Bruno Haible  <bruno@clisp.org>
49799
49800         Add support for HP-UX ACLs.
49801         * lib/acl-internal.h (acl_nontrivial): New declaration.
49802         * lib/file-has-acl.c (acl_nontrivial): New function.
49803         (file_has_acl): Add implementation using HP-UX 11 ACL API.
49804         * lib/set-mode-acl.c (qset_acl): Likewise.
49805         * lib/copy-acl.c (qcopy_acl): Likewise.
49806
49807 2008-06-08  Bruno Haible  <bruno@clisp.org>
49808
49809         Add support for Cygwin ACLs.
49810         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49811         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49812         the chmod_or_fchmod call.
49813         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49814
49815 2008-06-08  Bruno Haible  <bruno@clisp.org>
49816
49817         Fix bug with setuid modes in Solaris 10+ code.
49818         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49819         succeeded, when the mode contains some special bits.
49820
49821 2008-06-08  Bruno Haible  <bruno@clisp.org>
49822
49823         Add support for Solaris 7..10 ACLs.
49824         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49825         declarations.
49826         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49827         functions.
49828         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49829         * lib/set-mode-acl.c (qset_acl): Likewise.
49830         * lib/copy-acl.c (qcopy_acl): Likewise.
49831
49832 2008-06-08  Bruno Haible  <bruno@clisp.org>
49833
49834         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49835         declaration.
49836         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49837         (acl_access_nontrivial): Remove MacOS X case.
49838         (file_has_acl): Use acl_extended_nontrivial.
49839         * lib/copy-acl.c (qcopy_acl): Likewise.
49840
49841 2008-06-08  Bruno Haible  <bruno@clisp.org>
49842
49843         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49844
49845 2008-06-08  Jim Meyering  <meyering@redhat.com>
49846
49847         * modules/acl (Maintainer): Add Bruno Haible.
49848
49849 2008-06-07  Bruno Haible  <bruno@clisp.org>
49850
49851         Improve support for Tru64 ACLs.
49852         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49853         ACL on OSF/1.
49854
49855 2008-06-07  Bruno Haible  <bruno@clisp.org>
49856
49857         Add support for MacOS X ACLs.
49858         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49859         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49860         * lib/set-mode-acl.c (qset_acl): Likewise.
49861         * lib/copy-acl.c (qcopy_acl): Likewise.
49862
49863 2008-06-07  Bruno Haible  <bruno@clisp.org>
49864
49865         Fix memory leak introduced on 2008-05-22.
49866         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49867         use.
49868
49869 2008-06-07  Bruno Haible  <bruno@clisp.org>
49870
49871         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49872         to construct an empty ACL.
49873
49874 2008-06-07  Bruno Haible  <bruno@clisp.org>
49875
49876         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49877         precisely.
49878         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49879
49880 2008-06-07  Bruno Haible  <bruno@clisp.org>
49881
49882         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49883         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49884
49885 2008-06-07  Bruno Haible  <bruno@clisp.org>
49886
49887         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49888         regardless of POSIX.
49889         * doc/posix-functions/_longjmp.texi: Likewise.
49890         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49891         SystemV platform in this case.
49892
49893 2008-06-06  Eric Blake  <ebb9@byu.net>
49894
49895         Document abort() bugs.
49896         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49897
49898         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49899         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49900         sigsetjmp.
49901         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49902         siglongjmp, but only as a macro.
49903         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49904         is obsolete.
49905         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49906
49907         Tweak documentation to cover cygwin argz bugs.
49908         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49909         argz bug fix; no code change needed since no cygwin releases
49910         occurred between the last fix and the bug being tested.
49911         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49912         module and recently fixed cygwin bugs.
49913         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49914         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49915         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49916         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49917         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49918         Likewise.
49919         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49920         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49921         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49922         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49923         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49924         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49925         Likewise.
49926
49927         Avoid gcc warning on cygwin.
49928         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49929         !ACL_NO_TRIVIAL]: Avoid unused variable.
49930
49931 2008-06-05  Eric Blake  <ebb9@byu.net>
49932
49933         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49934         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49935         git-version-gen fails to come up with a version.
49936         Reported by Simon Josefsson.
49937
49938 2008-06-05  Jim Meyering  <meyering@redhat.com>
49939             Paul Eggert  <eggert@cs.ucla.edu>
49940
49941         utimens.c: work around a probable Linux kernel bug
49942         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49943         appears to be a kernel bug that causes utimensat to return 280
49944         instead of 0, indicating success.
49945
49946 2008-06-04  Bruno Haible  <bruno@clisp.org>
49947
49948         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49949         2008-06-01 commit.
49950
49951 2008-06-04  Bruno Haible  <bruno@clisp.org>
49952
49953         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49954         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49955         (file_has_acl): Use it. Save errno afterwards.
49956         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49957
49958 2008-06-03  Bruno Haible  <bruno@clisp.org>
49959
49960         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49961         draft code. Simplify #ifs.
49962         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49963         Put Solaris code after POSIX-draft code. Fix comments regarding
49964         Solaris 10, HP-UX. Mention Cygwin.
49965         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49966
49967 2008-06-03  Eric Blake  <ebb9@byu.net>
49968
49969         Provide fallback for older kernels.
49970         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49971         Provide runtime fallback if kernel lacks support.
49972         Reported by Mike Frysinger.
49973
49974 2008-06-02  Bruno Haible  <bruno@clisp.org>
49975
49976         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49977         it exists.
49978
49979 2008-06-02  Bruno Haible  <bruno@clisp.org>
49980
49981         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49982         * lib/copy-acl.c (qcopy_acl): Update comment.
49983
49984 2008-06-02  Bruno Haible  <bruno@clisp.org>
49985
49986         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49987         like ACL APIs.
49988
49989 2008-06-02  Bruno Haible  <bruno@clisp.org>
49990
49991         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49992         * tests/test-set-mode-acl.sh: Likewise.
49993         * tests/test-copy-acl.sh: Likewise.
49994         * tests/test-copy-file.sh: Likewise.
49995
49996 2008-06-02  Bruno Haible  <bruno@clisp.org>
49997
49998         * tests/test-file-has-acl.sh: Remove unused code.
49999
50000 2008-06-01  Bruno Haible  <bruno@clisp.org>
50001
50002         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
50003         (copy_acl): Just a wrapper around qcopy_acl that emits the error
50004         messages.
50005         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
50006
50007 2008-06-01  Bruno Haible  <bruno@clisp.org>
50008
50009         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
50010         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
50011         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
50012         APIs.
50013         * modules/acl-tests (configure.ac): Remove tests now contained in
50014         m4/acl.m4.
50015
50016 2008-06-02  Jim Meyering  <meyering@redhat.com>
50017
50018         announce-gen: use a better key-server host name
50019         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
50020         it may be more consistently reliable.  Suggested by Werner Koch
50021         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
50022
50023 2008-06-01  Bruno Haible  <bruno@clisp.org>
50024
50025         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
50026         Reported by Voroskoi Andras <voroskoi@gmail.com>.
50027
50028 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
50029
50030         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
50031
50032 2008-06-01  Bruno Haible  <bruno@clisp.org>
50033
50034         New ACL tests.
50035         * tests/test-file-has-acl.sh: New file.
50036         * tests/test-file-has-acl.c: New file.
50037         * tests/test-set-mode-acl.sh: New file.
50038         * tests/test-set-mode-acl.c: New file.
50039         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
50040         * tests/test-copy-acl.c: New file.
50041         * modules/acl-tests: New file, based on modules/copy-file-tests.
50042         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
50043         (Depends-on): Add acl-tests.
50044         (configure.ac): Remove checks.
50045         (Makefile.am): Don't create test-sameacls program here any more.
50046
50047 2008-06-01  Bruno Haible  <bruno@clisp.org>
50048
50049         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
50050         * tests/test-sameacls.c: Include progname.h.
50051         (main): Invoke set_program_name. Portability fixes for MacOS X,
50052         Solaris, HP-UX.
50053
50054 2008-06-01  Bruno Haible  <bruno@clisp.org>
50055
50056         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
50057         function.
50058         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
50059
50060 2008-06-01  Bruno Haible  <bruno@clisp.org>
50061
50062         * modules/rpmatch (Depends-on): Add strdup.
50063
50064 2008-06-01  Bruno Haible  <bruno@clisp.org>
50065
50066         * lib/pipe.c: Include unistd-safer.h.
50067         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
50068         * modules/pipe (Depends-on): Add unistd-safer.
50069
50070 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50071
50072         * modules/autobuild (configure.ac): Call AB_INIT.
50073
50074 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50075
50076         * tests/test-getaddrinfo.c: Don't print debug messages by default.
50077         Suggested by Bruno Haible <bruno@clisp.org>.
50078
50079 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50080
50081         * tests/test-base64.c: Cast size_t to unsigned long when invoking
50082         printf.  Use %lu instead of %d.  Reported by Bruno Haible
50083         <bruno@clisp.org>.
50084
50085 2008-05-29  Eric Blake  <ebb9@byu.net>
50086
50087         Prefer new POSIX 200x interfaces over futimesat.
50088         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
50089         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
50090         when available.
50091         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
50092
50093 2008-05-28  Bruno Haible  <bruno@clisp.org>
50094
50095         * modules/stpcpy (License): Change to LGPLv2+.
50096         Requested by David Lutterkort <dlutter@redhat.com>.
50097
50098 2008-05-27  Bruno Haible  <bruno@clisp.org>
50099
50100         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
50101         current mingw.
50102         Reported by Jose E. Marchesi <jemarch@gnu.org>.
50103
50104 2008-05-27  Bruno Haible  <bruno@clisp.org>
50105
50106         * modules/iconv_open (Link): New section, from module 'iconv'.
50107         * modules/striconv (Link): Likewise.
50108         * modules/striconveh (Link): Likewise.
50109         * modules/xstriconv (Link): Likewise.
50110         * modules/unicodeio (Link): Likewise.
50111         * modules/propername (Link): Likewise.
50112         Reported by Jim Meyering.
50113
50114 2008-05-26  Jim Meyering  <meyering@redhat.com>
50115
50116         sha256: do not artificially restrict buffer length to be < 2^32
50117         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
50118         uint32_t to size_t.
50119         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
50120         to match.
50121
50122         avoid unaligned access errors, e.g., on sparc
50123         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
50124         direct access through a possibly-unaligned uint64* pointer.
50125         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
50126         direct access through a possibly-unaligned uint32* pointer.
50127         Prompted by this patch from Tom "spot" Callaway:
50128         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
50129
50130         sha512.c: fix typo in comment
50131         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
50132
50133 2008-05-25  Bruno Haible  <bruno@clisp.org>
50134
50135         * lib/set-mode-acl.c: Renamed from lib/acl.c.
50136         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
50137         (Makefile.am): Update lib_SOURCES.
50138
50139 2008-05-25  Bruno Haible  <bruno@clisp.org>
50140
50141         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
50142
50143 2008-05-25  Jim Meyering  <meyering@redhat.com>
50144
50145         useless-if-before-free: freed expr may have white-space differences
50146         * build-aux/useless-if-before-free: Recognize cases in which the
50147         freed expression differs from the tested one in embedded white
50148         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
50149         $1 was used, so we can't make any regexp shy.  Improved tests now
50150         detect this.
50151
50152         useless-if-before-free: accept white space in the expression.
50153         * build-aux/useless-if-before-free: For now, any white space
50154         in the expression must be identical in the free argument.
50155
50156         useless-if-before-free: efficiency tweak
50157         * build-aux/useless-if-before-free: Make the expression-matching
50158         regexp "shy".
50159         Make the *outer* regexp shy, not the expr-matching one.
50160
50161         update code-in-comment to accept cast of free arg
50162         * build-aux/useless-if-before-free: Update regexp.
50163
50164 2008-05-25  Bruno Haible  <bruno@clisp.org>
50165
50166         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
50167         * modules/copy-file-tests (Files, Makefile.am): Update.
50168         * tests/test-copy-file.c (func_test_copy): Update.
50169
50170 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
50171
50172         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
50173
50174 2008-05-23  Bruno Haible  <bruno@clisp.org>
50175
50176         Improve support for ACLs on OSF/1.
50177         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
50178         Remove fallback for unknown flavors of ACLs.
50179
50180 2008-05-22  Bruno Haible  <bruno@clisp.org>
50181
50182         Add support for ACLs on OSF/1.
50183         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
50184         replacements.
50185         (acl_free_text): New macro fallback.
50186         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
50187         acl_free.
50188         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
50189         acl_free_text function. Require AC_C_INLINE.
50190
50191 2008-05-22  Bruno Haible  <bruno@clisp.org>
50192
50193         Make copy_acl work on MacOS X 10.5.
50194         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
50195         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
50196         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
50197         If MODE_INSIDE_ACL, don't assume that every system has the same text
50198         representation for ACLs as FreeBSD.
50199         * lib/copy-acl.c (copy_acl): Add support for platforms with
50200         !MODE_INSIDE_ACL.
50201         * lib/file-has-acl.c (file_has_acl): Likewise.
50202         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
50203         FreeBSD, MacOS X, or IRIX, respectively.
50204
50205 2008-05-22  Bruno Haible  <bruno@clisp.org>
50206
50207         * lib/acl.h: Don't include <sys/acl.h>.
50208         (GETACLCNT): Move fallback to lib/acl-internal.h.
50209         * lib/acl-internal.h: Include <sys/acl.h> here.
50210         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
50211
50212 2008-05-22  Bruno Haible  <bruno@clisp.org>
50213
50214         Split off copy_acl function to separate file.
50215         * lib/copy-acl.c: New file, extracted from lib/acl.c.
50216         * lib/acl.c (copy_acl): Moved function to separate file.
50217         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
50218         * modules/acl (Files): Add lib/copy-acl.c.
50219         (Makefiles.am): Augment lib_SOURCES.
50220
50221 2008-05-22  Bruno Haible  <bruno@clisp.org>
50222
50223         * modules/copy-file-tests: New file.
50224         * tests/test-copy-file.sh: New file.
50225         * tests/test-copy-file.c: New file.
50226         * tests/test-copy-file-sameacls.c: New file.
50227
50228 2008-05-22  Eric Blake  <ebb9@byu.net>
50229
50230         Avoid gcc warning.
50231         * tests/test-memcmp.c (main): Pass NULL indirectly.
50232
50233 2008-05-21  Bruno Haible  <bruno@clisp.org>
50234
50235         Add reference doc about ACLs.
50236         * doc/acl-resources.txt: New file.
50237         * doc/acl-cygwin.txt: New file.
50238
50239 2008-05-21  Bruno Haible  <bruno@clisp.org>
50240
50241         Avoid one more warning from gcc.
50242         * lib/vasnprintf.c (IF_LINT): Update comments.
50243         (VASNPRINTF): Use it also for the 'prefix' array initializer.
50244
50245 2008-05-21  Jim Meyering  <meyering@redhat.com>
50246
50247         avoid a warning from gcc
50248         * lib/vasnprintf.c (IF_LINT): Define.
50249         (scale10_round_decimal_long_double):
50250         Use it to avoid a "may be used uninitialized" warning.
50251         (scale10_round_decimal_double): Likewise.
50252
50253 2008-05-21  Simon Josefsson  <simon@josefsson.org>
50254
50255         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
50256         declared.
50257
50258 2008-05-20  Bruno Haible  <bruno@clisp.org>
50259
50260         * tests/test-memcmp.c (main): Test also the sign of the result. Test
50261         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
50262
50263 2008-05-20  Simon Josefsson  <simon@josefsson.org>
50264
50265         * modules/memcmp-tests: New file.
50266         * tests/test-memcmp.c: New file.
50267
50268 2008-05-19  Bruno Haible  <bruno@clisp.org>
50269
50270         * modules/propername (Notice, configure.ac): Put quoted "..." into
50271         --keyword option.
50272         * lib/propername.h: Update comments accordingly.
50273         Reported by Eric Blake.
50274
50275 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
50276
50277         * modules/getpass-gnu (Depends-on): Add fseeko.
50278
50279 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50280
50281         * modules/base64-tests: New file.
50282
50283 2008-05-19  Bo Borgerson <gigabo@gmail.com>
50284
50285         * lib/base64.c (base64_decode_ctx): If a decode context structure
50286         was passed in use it to ignore newlines.  If a context structure
50287         was _not_ passed in, continue to treat newlines as garbage (this
50288         is the historical behavior).  Formerly base64_decode.
50289         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50290         takes a decode context structure.
50291         * lib/base64.h (base64_decode): Macro for four-argument calls.
50292         (base64_decode_alloc): Likewise.
50293         * lib/base64.c (base64_decode_ctx): If a decode context structure
50294         was passed in use it to ignore newlines.  If a context structure
50295         was _not_ passed in, continue to treat newlines as garbage (this
50296         is the historical behavior).  Formerly base64_decode.
50297         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50298         takes a decode context structure.
50299         * lib/base64.h (base64_decode): Macro for four-argument calls.
50300         (base64_decode_alloc): Likewise.
50301
50302 2008-05-19  Jim Meyering  <meyering@redhat.com>
50303
50304         avoid a warning from gcc
50305         * lib/trim.c (IF_LINT): Define.
50306         (trim2): Use it to avoid a "may be used uninitialized" warning.
50307
50308         Fix doc typo.
50309         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
50310
50311 2008-05-19  Bruno Haible  <bruno@clisp.org>
50312
50313         * doc/glibc-functions/getpass.texi: Document limits of other
50314         implementations.
50315
50316 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50317             Bruno Haible <bruno@clisp.org>
50318
50319         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
50320
50321 2008-05-18  Bruno Haible  <bruno@clisp.org>
50322
50323         * modules/propername: New file, from GNU gettext.
50324         * lib/propername.h: New file, from GNU gettext.
50325         * lib/propername.c: New file, from GNU gettext.
50326         * MODULES.html.sh (Internationalization functions): Add propername.
50327
50328 2008-05-16  Jim Meyering  <meyering@redhat.com>
50329             Bruno Haible  <bruno@clisp.org>
50330
50331         Avoid some warnings from "gcc -Wshadow".
50332         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
50333
50334 2008-05-15  Eric Blake  <ebb9@byu.net>
50335
50336         Extend previous patch to cygwin 1.7.0.
50337         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
50338         fast implementation in cygwin >= 1.7.0.
50339         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50340         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50341
50342 2008-05-15  Bruno Haible  <bruno@clisp.org>
50343
50344         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
50345         implementation in glibc >= 2.9.
50346         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50347         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50348
50349 2008-05-15  Bruno Haible  <bruno@clisp.org>
50350
50351         * MODULES.html.sh (Internationalization functions): Remove linebreak.
50352         (Unicode string functions): Add unilbrk/*.
50353         Reported by Karl Berry.
50354
50355 2008-05-15  Eric Blake  <ebb9@byu.net>
50356
50357         Fix violation of <stdbool.h> replacement in regex.
50358         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
50359         * lib/regexec.c (re_search_internal): Likewise.
50360         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
50361
50362 2008-05-15  Jim Meyering  <meyering@redhat.com>
50363
50364         avoid distracting test output when git or cvs is not found
50365         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
50366         * tests/test-vc-list-files-git.sh: Likewise.
50367
50368 2008-05-15  Eric Blake  <ebb9@byu.net>
50369
50370         Glibc finally accepted the memmem speedup code, bugzilla #5514.
50371         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
50372         glibc version.
50373         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
50374         * doc/posix-functions/strstr.texi (strstr): Likewise.
50375         * lib/str-two-way.h (MAX): Sychronize with glibc.
50376
50377 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
50378
50379         * lib/regcomp.c (optimize_utf8): Add a note on why we test
50380         opr.ctx_type.
50381         (calc_first): Initialize constraint field.
50382         (duplicate_node_closure): Use it instead of special casing ANCHORS.
50383         Fix grammar.
50384         (duplicate_node): Merge constraint field for all node types.
50385         (calc_eclosure_iter): Look at constraint field for all node types.
50386         * lib/regex_internal.c (create_cd_newstate): Don't look at
50387         opr.ctx_type.
50388
50389 2008-05-14  Bruno Haible  <bruno@clisp.org>
50390
50391         Help GCC to do better code generation.
50392         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
50393         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
50394         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
50395         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
50396         Declare with attribute 'malloc' if supported.
50397
50398 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
50399
50400         use "echo STR|wc -c" rather than unportable "expr length STR"
50401         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
50402         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
50403
50404 2008-05-14  Jim Meyering  <meyering@redhat.com>
50405
50406         use dd ibs=$n count=1 ... rather than less-portable head -c$n
50407         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
50408         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
50409         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
50410         via Collin Lasse.
50411
50412 2008-05-14  Eric Blake  <ebb9@byu.net>
50413
50414         Avoid quadratic growth in gl_LIBSOURCES.
50415         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
50416         Suggested by Bruno Haible.
50417
50418         Test xmemdup0.
50419         * modules/xmemdup0-tests: New file.
50420         * tests/test-xmemdup0.c: Likewise.
50421
50422 2008-05-13  Eric Blake  <ebb9@byu.net>
50423
50424         Split xmemdup0 into its own module.
50425         * modules/xmemdup0: New file.
50426         * lib/xmemdup0.h: Likewise.
50427         * lib/xmemdup0.c: Likewise.
50428         * MODULES.html.sh (Memory management functions): Add xmemdup0.
50429         * lib/xalloc.h (xmemdup0): Remove.
50430         * lib/xmalloc.c (xmemdup0): Likewise.
50431
50432 2008-05-13  Eric Blake  <ebb9@byu.net>
50433             Bruno Haible  <bruno@clisp.org>
50434
50435         Reduce number of forks required during autoconf.
50436         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
50437         and gl_LIBSOURCES_DIR.
50438         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
50439         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
50440         m4_syscmd per file.
50441         <m4_foreach_w>: Move...
50442         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
50443
50444 2008-05-13  Eric Blake  <ebb9@byu.net>
50445
50446         * gnulib-tool: Fix various comment typos.
50447
50448 2008-05-12  Bruno Haible  <bruno@clisp.org>
50449
50450         Tailor the linebreaking algorithm.
50451         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
50452
50453 2008-05-12  Bruno Haible  <bruno@clisp.org>
50454
50455         Update to Unicode 5.0.0.
50456         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50457         LBP_JV, LBP_JT. Redistribute values.
50458         (unilbrk_table): Change size.
50459         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
50460         Unicode TR#14 rev. 22.
50461         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50462         LBP_JV, LBP_JT. Redistribute values.
50463         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
50464         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
50465         Update.
50466         * lib/unilbrk/lbrkprop1.h: Regenerated.
50467         * lib/unilbrk/lbrkprop2.h: Regenerated.
50468         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
50469         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
50470         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
50471         Likewise.
50472         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
50473         Likewise.
50474         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
50475         result.
50476         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50477         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50478         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50479         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
50480         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
50481         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
50482
50483 2008-05-11  Bruno Haible  <bruno@clisp.org>
50484
50485         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
50486
50487 2008-05-11  Bruno Haible  <bruno@clisp.org>
50488
50489         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
50490         * modules/unilbrk/gen-lbrk: New file.
50491
50492 2008-05-11  Bruno Haible  <bruno@clisp.org>
50493
50494         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
50495         * m4/sha512.m4 (gl_SHA512): Likewise.
50496
50497 2008-05-11  Jim Meyering  <meyering@redhat.com>
50498
50499         New modules: crypto/sha256, crypto/sha512 (from coreutils)
50500         * modules/crypto/sha256: New file.
50501         * modules/crypto/sha512: Likewise.
50502         * lib/sha256.c: Likewise.
50503         * lib/sha256.h: Likewise.
50504         * lib/sha512.c: Likewise.
50505         * lib/sha512.h: Likewise.
50506         * lib/u64.h: Likewise.
50507         * m4/sha256.m4: Likewise.
50508         * m4/sha512.m4: Likewise.
50509         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
50510
50511 2008-05-10  Bruno Haible  <bruno@clisp.org>
50512
50513         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
50514         (Input/Output <stdio.h>): Add xprintf.
50515         (Signal handling <signal.h>): Add strsignal.
50516         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
50517         (Core language properties): Add func.
50518         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
50519         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
50520         strings.
50521         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
50522         (Input/output): New section.
50523         (File system functions): Add openat-die, stat-macros.
50524         (Networking functions): Add sockets.
50525         (Unicode string functions): Add unictype/*.
50526         (Support for building libraries and executables): Add gperf.
50527         (Support for building documentation): Add agpl-3.0.
50528         (Misc): Add nocrash.
50529
50530 2008-05-10  Bruno Haible  <bruno@clisp.org>
50531
50532         * modules/unictype/gen-ctype: New file.
50533
50534 2008-05-10  Jim Meyering  <meyering@redhat.com>
50535
50536         Make chdir-safer.c more efficient on a system with no symlinks.
50537         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
50538         also if ELOOP is zero.  Suggested by Bruno Haible.
50539
50540         Make chdir-safer.c slightly safer.
50541         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
50542         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
50543
50544         Avoid compile failure on systems without ELOOP (like mingw).
50545         * lib/chdir-safer.c (ELOOP): Define if not already defined.
50546         Reported by Bruno Haible.
50547
50548 2008-05-10  Bruno Haible  <bruno@clisp.org>
50549
50550         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
50551         (is_utf8_encoding): Use a case-insensitive comparison.
50552         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
50553         streq.
50554
50555 2008-05-10  Bruno Haible  <bruno@clisp.org>
50556
50557         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
50558         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
50559         * lib/unilbrk/ulc-common.h (iconv_string_length,
50560         iconv_string_keeping_offsets): Remove declarations.
50561         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
50562         Don't include <iconv.h>, streq.h, xsize.h.
50563         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
50564         conversion.
50565         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
50566         <iconv.h>, streq.h, xsize.h.
50567         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
50568         conversion.
50569         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
50570         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
50571         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
50572         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
50573
50574 2008-05-10  Bruno Haible  <bruno@clisp.org>
50575
50576         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
50577         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
50578
50579         * modules/unilbrk/u32-width-linebreaks-tests: New file.
50580         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
50581
50582         * modules/unilbrk/u16-width-linebreaks-tests: New file.
50583         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
50584
50585         * modules/unilbrk/u8-width-linebreaks-tests: New file.
50586         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
50587
50588         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
50589         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
50590
50591         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
50592         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
50593
50594         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
50595         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
50596
50597         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
50598         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
50599
50600 2008-05-10  Bruno Haible  <bruno@clisp.org>
50601
50602         Split up 'linebreak' module.
50603         * lib/unilbrk.h: New file, based on lib/linebreak.h.
50604         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
50605         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
50606         modifications.
50607         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
50608         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
50609         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
50610         lib/linebreak.c.
50611         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
50612         lib/linebreak.c.
50613         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
50614         lib/linebreak.c.
50615         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
50616         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
50617         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
50618         lib/linebreak.c.
50619         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
50620         lib/linebreak.c.
50621         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
50622         lib/linebreak.c.
50623         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
50624         lib/linebreak.c.
50625         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
50626         lib/linebreak.c.
50627         * modules/unilbrk/base: New file.
50628         * modules/unilbrk/tables: New file.
50629         * modules/unilbrk/u8-possible-linebreaks: New file.
50630         * modules/unilbrk/u16-possible-linebreaks: New file.
50631         * modules/unilbrk/u32-possible-linebreaks: New file.
50632         * modules/unilbrk/ulc-common: New file.
50633         * modules/unilbrk/ulc-possible-linebreaks: New file.
50634         * modules/unilbrk/u8-width-linebreaks: New file.
50635         * modules/unilbrk/u16-width-linebreaks: New file.
50636         * modules/unilbrk/u32-width-linebreaks: New file.
50637         * modules/unilbrk/ulc-width-linebreaks: New file.
50638         * lib/linebreak.h: Remove file.
50639         * lib/linebreak.c: Remove file.
50640         * m4/linebreak.m4: Remove file.
50641         * modules/linebreak: Remove file.
50642         * NEWS: Mention the changes.
50643
50644 2008-05-09  Eric Blake  <ebb9@byu.net>
50645
50646         Add xmemdup0.
50647         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50648         implementation.
50649         * lib/xmalloc.c (xmemdup0): New C implementation.
50650
50651 2008-05-08  Bruno Haible  <bruno@clisp.org>
50652
50653         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50654
50655 2008-05-07  Eric Blake  <ebb9@byu.net>
50656
50657         Support cross-compilation of <wctype.h>.
50658         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50659         AC_CACHE_CHECK.
50660
50661 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50662
50663         * build-aux/vc-list-files: Add support for bzr.
50664
50665 2008-05-03  Jim Meyering  <meyering@redhat.com>
50666
50667         avoid failed assertion with tight malloc
50668         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50669
50670 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50671
50672         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50673         are needed from arpa/inet.h.
50674         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50675         Reported by Bruno Haible.
50676
50677 2008-05-02  Jim Meyering  <meyering@redhat.com>
50678
50679         avoid compilation error on FreeBSD 6
50680         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50681
50682 2008-05-01  Jim Meyering  <meyering@redhat.com>
50683
50684         useless-if-before-free: correct --help's exit status description
50685         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50686         for one or more matches, etc.  Reported by Bruno Haible.
50687
50688         vc-list-files: make the stand-alone gnulib test work
50689         * modules/vc-list-files-tests (configure.ac):
50690         Define and AC_SUBST abs_aux_dir.
50691         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
50692         $(abs_top_srcdir) to each script and having each of them
50693         duplicate the work of setting PATH, set PATH here, using
50694         the new variable, abs_aux_dir instead.
50695         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
50696         * tests/test-vc-list-files-git.sh: Likewise.
50697         Reported by Bruno Haible.
50698
50699 2008-05-01  Bruno Haible  <bruno@clisp.org>
50700
50701         * lib/getndelim2.c (getndelim2): Fix newsize computation during
50702         reallocation. Rename 'done' to 'found_delimiter'.
50703
50704 2008-05-01  Jim Meyering  <meyering@redhat.com>
50705
50706         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50707         * build-aux/vc-list-files: Use `...`, not $(...).
50708
50709 2008-04-30  Jim Meyering  <meyering@redhat.com>
50710
50711         add tests for vc-list-files
50712         * modules/vc-list-files-tests: New module.
50713         * tests/test-vc-list-files-cvs.sh: New file.
50714         * tests/test-vc-list-files-git.sh: New file.
50715
50716         avoid a warning from gcc
50717         * lib/getndelim2.c (IF_LINT): Define.
50718         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50719
50720         vc-list-files: work properly with build-aux/cvsu, too
50721         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50722         to all cvs-based clauses.
50723
50724         vc-list-files: work properly in the CVS+awk case, too
50725         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50726
50727         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50728         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50729         take more than one file argument, so .  Add quotes, just in case $dir
50730         ever contains a shell meta-character.  Prompted by Soren Hansen in
50731         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50732
50733 2008-04-29  Eric Blake  <ebb9@byu.net>
50734
50735         Optimize getndelim2 to use block operations when possible.
50736         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
50737         freadseek, and memchr2.
50738         * lib/getndelim2.c (getndelim2): Use them for block reads.
50739
50740 2008-04-29  Bruno Haible  <bruno@clisp.org>
50741
50742         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
50743         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50744         * modules/inet_ntop (Depends-on): Add extensions.
50745         * modules/inet_pton (Depends-on): Likewise.
50746         Reported by Simon Josefsson.
50747
50748 2008-04-29  Jim Meyering  <meyering@redhat.com>
50749
50750         When the is more than one match in a block, match all of them.
50751         * build-aux/useless-if-before-free: Iterate through each block
50752         until there are no more matches.
50753
50754         Fix broken useless-if-before-free script.
50755         * build-aux/useless-if-before-free: Fix typo: missing "?" after
50756         the expression to match cast of argument to free-like function.
50757
50758 2008-04-29  Eric Blake  <ebb9@byu.net>
50759
50760         Use new header.
50761         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50762
50763 2008-04-29  Jim Meyering  <meyering@redhat.com>
50764
50765         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50766         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50767         by gnulib to exist and to declare e.g., inet_ntop.
50768         Don't include "inet_ntop.h", now removed.
50769
50770         * m4/arpa_inet_h.m4: Remove trailing blanks.
50771
50772 2008-04-29  Eric Blake  <ebb9@byu.net>
50773
50774         Silence valgrind on safe reads beyond potential array bounds.
50775         * lib/rawmemchr.valgrind: New file.
50776         * lib/strchrnul.valgrind: Likewise.
50777         * modules/rawmemchr (Files): Distribute new file.
50778         * modules/strchrnul (Files): Likewise.
50779         Suggested by Bruno Haible.
50780
50781 2008-04-29  Bruno Haible  <bruno@clisp.org>
50782
50783         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50784         (inet_ntop, inet_pton): Change portability warning's wording.
50785         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50786         Invoke gl_CHECK_NEXT_HEADERS.
50787         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50788         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50789         set ARPA_INET_H.
50790         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50791         * modules/arpa_inet (Description): No longer only for systems that
50792         lack it.
50793         (Depends-on): Add include_next.
50794         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
50795         HAVE_ARPA_INET_H.
50796
50797 2008-04-29  Jim Meyering  <meyering@redhat.com>
50798
50799         * modules/mkdir (License): Re-license as LGPLv2+.
50800
50801 2008-04-29  Bruno Haible  <bruno@clisp.org>
50802
50803         * modules/rawmemchr (Maintainer): Set to Eric.
50804         * modules/strchrnul (Maintainer): Likewise.
50805
50806 2008-04-29  Simon Josefsson  <simon@josefsson.org>
50807
50808         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50809         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50810
50811         * modules/arpa_inet (arpa/inet.h): Use them.
50812
50813 2008-04-28  Eric Blake  <ebb9@byu.net>
50814
50815         Test getndelim2.
50816         * modules/getndelim2-tests: New file.
50817         * tests/test-getndelim2.c: Likewise.
50818         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50819         stream.
50820         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50821
50822         * MODULES.html.sh: Document new module.
50823
50824 2008-04-20  Bruno Haible  <bruno@clisp.org>
50825
50826         * lib/c-stack.c (die): Use raise.
50827         * modules/c-stack (Depends-on): Add raise.
50828
50829 2008-04-28  Bruno Haible  <bruno@clisp.org>
50830
50831         Expect rpmatch to be declared.
50832         * lib/yesno.c (rpmatch): Remove declaration.
50833
50834         Declare rpmatch.
50835         * lib/stdlib.in.h (rpmatch): New declaration.
50836         * lib/rpmatch.c: Include <stdlib.h> first.
50837         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50838         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50840         HAVE_RPMATCH.
50841         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50842         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50843         (Include): Set to <stdlib.h>.
50844         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50845         HAVE_RPMATCH.
50846         * NEWS: Document the change.
50847
50848 2008-04-28  Bruno Haible  <bruno@clisp.org>
50849
50850         Change rpmatch to use nl_langinfo when appropriate.
50851         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50852         (N_): New macro.
50853         (localized_pattern): New function/macro.
50854         (try): Remove match, nomatch arguments. Copy the pattern into safe
50855         memory before caching it.
50856         (rpmatch): Use localized_pattern. Add translator comments.
50857         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50858         Suggested by Eric Blake.
50859         * modules/rpmatch (Depends-on): Add stdbool.
50860
50861 2008-04-28  Eric Blake  <ebb9@byu.net>
50862
50863         Add rawmemchr module, matching glibc.
50864         * modules/string (Makefile.am): New indicator.
50865         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50866         * lib/string.in.h (rawmemchr): Declare when appropriate.
50867         * modules/rawmemchr: New file.
50868         * m4/rawmemchr.m4: Likewise.
50869         * lib/rawmemchr.c: Likewise.
50870         * modules/rawmemchr-tests: Likewise.
50871         * tests/test-rawmemchr.c: Likewise.
50872         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50873         module.
50874         * modules/strchrnul (Depends-on): Add rawmemchr.
50875         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50876
50877         Whitespace cleanup.
50878         * tests/test-strchrnul.c: Reindent.
50879         * lib/strchrnul.c: Likewise.
50880
50881         Optimize and test strchrnul.
50882         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50883         * modules/strchrnul-tests: New file.
50884         * tests/test-strchrnul.c: Likewise.
50885
50886         Remove intprops dependency.
50887         * modules/memchr (Depends-on): Remove intprops.
50888         * modules/memrchr (Depends-on): Likewise.
50889         * modules/memchr2 (Depends-on): Likewise.
50890         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50891         * lib/memrchr.c (__memrchr): Likewise.
50892         * lib/memrchr2.c (memchr2): Likewise.
50893         Reported by Simon Josefsson.
50894
50895 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50896
50897         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50898         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50899
50900 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50901
50902         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50903
50904         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50905
50906         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50907
50908         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50909         declarations.
50910         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50911
50912         * m4/inet_pton.m4: Don't check for header files.
50913
50914         * m4/inet_ntop.m4: Don't check for header files.
50915
50916 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50917
50918         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50919         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50920         trigger for cygwin).
50921         Reported by Bruno Haible  <bruno@clisp.org>.
50922
50923 2008-04-28  Bruno Haible  <bruno@clisp.org>
50924
50925         * doc/posix-functions/strdup.texi: Mention mingw problem.
50926
50927 2008-04-27  Bruno Haible  <bruno@clisp.org>
50928
50929         * modules/stat-time-tests (Depends-on): Add sleep.
50930         * tests/test-stat-time.c (force_unlink): New function.
50931         (cleanup): Use it.
50932         (test_mtime): Remove the ctime related tests.
50933         (test_ctime): New function, containing the ctime related tests.
50934         (main): Call test_ctime, except on native Windows platforms.
50935
50936 2008-04-27  Bruno Haible  <bruno@clisp.org>
50937
50938         * lib/rpmatch.c (rpmatch): Add some comments.
50939         Reported by James Youngman <jay@gnu.org>.
50940
50941 2008-04-27  Bruno Haible  <bruno@clisp.org>
50942
50943         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50944         quiet NaNs.
50945
50946 2008-04-27  Bruno Haible  <bruno@clisp.org>
50947
50948         Make test-yesno.sh work on mingw.
50949         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50950         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50951         (main): Set stdin to binary mode.
50952         * modules/yesno-tests (Depends-on): Add binary-io.
50953
50954 2008-04-27  Bruno Haible  <bruno@clisp.org>
50955
50956         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50957         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50958         argument that lie outside the IEEE 854 domain.
50959         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50960         (gl_ISFINITE): Use it.
50961         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50962
50963 2008-04-27  Bruno Haible  <bruno@clisp.org>
50964
50965         Allow local renaming in config.h.
50966         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50967
50968 2008-04-27  Bruno Haible  <bruno@clisp.org>
50969
50970         * lib/memchr.c (__memchr): Change type of 'i'.
50971         * lib/memchr2.c (memchr2): Likewise.
50972
50973 2008-04-26  Eric Blake  <ebb9@byu.net>
50974         and Bruno Haible  <bruno@clisp.org>
50975
50976         Optimize and test memrchr.
50977         * modules/memrchr (Depends-on): Add intprops.
50978         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50979         * modules/memrchr-tests: New file.
50980         * tests/test-memrchr.c: New file.
50981
50982 2008-04-26  Bruno Haible  <bruno@clisp.org>
50983
50984         Add tentative support for DragonFly BSD.
50985         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50986         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50987         fp.
50988         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50989         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50990         * lib/fpurge.c (fpurge): Likewise.
50991         * lib/freadable.c (freaadable): Likewise.
50992         * lib/freadahead.c (freadahead): Likewise.
50993         * lib/freading.c (freading): Likewise.
50994         * lib/freadptr.c (freadptr): Likewise.
50995         * lib/freadseek.c (freadptrinc): Likewise.
50996         * lib/fseeko.c (fseeko): Likewise.
50997         * lib/fseterr.c (fseterr): Likewise.
50998         * lib/fwritable.c (fwritable): Likewise.
50999         * lib/fwriting.c (fwriting): Likewise.
51000
51001 2008-04-26  Bruno Haible  <bruno@clisp.org>
51002
51003         * lib/stdio-impl.h: New file.
51004         * lib/fbufmode.c: Include stdio-impl.h.
51005         (fbufmode): Use fp_, remove redundant #defines.
51006         * lib/fflush.c: Include stdio-impl.h.
51007         (clear_ungetc_buffer): Remove redundant #defines.
51008         * lib/fpurge.c: Include stdio-impl.h.
51009         (fpurge): Remove redundant #defines.
51010         * lib/freadable.c: Include stdio-impl.h.
51011         (freadable): Remove redundant #defines.
51012         * lib/freadahead.c: Include stdio-impl.h.
51013         (freadahead): Remove redundant #defines.
51014         * lib/freading.c: Include stdio-impl.h.
51015         (freading): Remove redundant #defines.
51016         * lib/freadptr.c: Include stdio-impl.h.
51017         (freadptr): Remove redundant #defines.
51018         * lib/freadseek.c: Include stdio-impl.h.
51019         (freadptrinc): Remove redundant #defines.
51020         * lib/fseeko.c: Include stdio-impl.h.
51021         (rpl_fseeko): Remove redundant #defines.
51022         * lib/fseterr.c: Include stdio-impl.h.
51023         (fseterr): Remove redundant #defines.
51024         * lib/fwritable.c: Include stdio-impl.h.
51025         (fwritable: Remove redundant #defines.
51026         * lib/fwriting.c: Include stdio-impl.h.
51027         (fwriting): Remove redundant #defines.
51028         * modules/fbufmode (Files): Add lib/stdio-impl.h.
51029         * modules/fflush (Files): Likewise.
51030         * modules/fpurge (Files): Likewise.
51031         * modules/freadable (Files): Likewise.
51032         * modules/freadahead (Files): Likewise.
51033         * modules/freading (Files): Likewise.
51034         * modules/freadptr (Files): Likewise.
51035         * modules/freadseek (Files): Likewise.
51036         * modules/fseeko (Files): Likewise.
51037         * modules/fseterr (Files): Likewise.
51038         * modules/fwritable (Files): Likewise.
51039         * modules/fwriting (Files): Likewise.
51040
51041 2008-04-26  Bruno Haible  <bruno@clisp.org>
51042
51043         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51044         restore_seek_optimization, update_fpos_cache): New functions, extracted
51045         from rpl_fflush.
51046         (rpl_fflush): Use them.
51047         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
51048         (gl_REPLACE_FFLUSH): Use it.
51049
51050 2008-04-26  Bruno Haible  <bruno@clisp.org>
51051
51052         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
51053         on Solaris.
51054         * tests/test-xstrtoimax.sh: Likewise.
51055         * tests/test-xstrtoumax.sh: Likewise.
51056         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51057
51058 2008-04-26  Bruno Haible  <bruno@clisp.org>
51059
51060         * modules/memchr-tests: New file.
51061         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
51062
51063 2008-04-26  Eric Blake  <ebb9@byu.net>
51064             Bruno Haible  <bruno@clisp.org>
51065
51066         * lib/memchr.c: Include intprops.h.
51067         (__memchr): Optimize parallel detection of matching bytes. Rename local
51068         variables. Add explanatory comments.
51069
51070 2008-04-26  Bruno Haible  <bruno@clisp.org>
51071
51072         Fix module 'memchr', broken since 2000-10-28.
51073         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
51074
51075 2008-04-26  Bruno Haible  <bruno@clisp.org>
51076
51077         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
51078         comments.
51079
51080 2008-04-25  Eric Blake  <ebb9@byu.net>
51081
51082         Use native fstatat on cygwin 1.7.0.
51083         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
51084         first.
51085
51086 2008-04-23  Eric Blake  <ebb9@byu.net>
51087
51088         Improve memchr2 performance.
51089         * lib/memchr2.c (memchr2): Further optimize parallel detection of
51090         NUL bytes.
51091         * modules/memchr2 (Depends-on): Use intprops.h.
51092
51093 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51094
51095         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
51096         an inline function instead of a CPP macro.  Patch by Ben Pfaff
51097         <blp@cs.stanford.edu>.
51098
51099 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51100
51101         * lib/arpa_inet.in.h: New file.
51102
51103         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
51104         (Makefile.am): Sed in substitute header file.
51105
51106         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
51107         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
51108
51109         * modules/inet_ntop (configure.ac): Use
51110         gl_ARPA_INET_MODULE_INDICATOR.
51111
51112         * modules/inet_pton (configure.ac): Use
51113         gl_ARPA_INET_MODULE_INDICATOR.
51114
51115 2008-04-22  Jim Meyering  <meyering@redhat.com>
51116
51117         * modules/verify (License): Re-license as LGPLv2+.
51118
51119 2008-04-22  Simon Josefsson  <simon@josefsson.org>
51120
51121         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
51122         parameter to void* as per POSIX standard (MinGW uses char*).
51123
51124 2008-04-21  Bruno Haible  <bruno@clisp.org>
51125
51126         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51127         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51128         Define to replacements if REPLACE_ISWCNTRL is 1.
51129         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
51130         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
51131         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
51132         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
51133         what it fixes.
51134         * doc/posix-functions/iswalpha.texi: Likewise.
51135         * doc/posix-functions/iswblank.texi: Likewise.
51136         * doc/posix-functions/iswcntrl.texi: Likewise.
51137         * doc/posix-functions/iswdigit.texi: Likewise.
51138         * doc/posix-functions/iswgraph.texi: Likewise.
51139         * doc/posix-functions/iswlower.texi: Likewise.
51140         * doc/posix-functions/iswprint.texi: Likewise.
51141         * doc/posix-functions/iswpunct.texi: Likewise.
51142         * doc/posix-functions/iswspace.texi: Likewise.
51143         * doc/posix-functions/iswupper.texi: Likewise.
51144         * doc/posix-functions/iswxdigit.texi: Likewise.
51145         Reported by Alain Guibert.
51146
51147 2008-04-21  Bruno Haible  <bruno@clisp.org>
51148
51149         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
51150         Patch by Alain Guibert.
51151
51152 2008-04-21  Bruno Haible  <bruno@clisp.org>
51153
51154         Fix test failures on mingw.
51155         * tests/test-xstrtol.c (print_no_progname): New function.
51156         (main): Install it in error_print_progname hook.
51157         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
51158         * tests/test-xstrtoimax.sh: Likewise.
51159         * tests/test-xstrtoumax.sh: Likewise.
51160
51161 2008-04-21  Bruno Haible  <bruno@clisp.org>
51162
51163         Fix test failure on mingw.
51164         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
51165
51166 2008-04-21  Bruno Haible  <bruno@clisp.org>
51167
51168         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51169         Actually assign a value.
51170
51171 2008-04-20  Bruno Haible  <bruno@clisp.org>
51172
51173         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
51174         take 2.
51175         * lib/canonicalize.c (canonicalize_file_name): Elide if the
51176         'canonicalize-lgpl' module is also used.
51177         * lib/canonicalize-lgpl.c: Undo last change.
51178         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
51179
51180 2008-04-20  Bruno Haible  <bruno@clisp.org>
51181
51182         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
51183         config.h. Provide _mkdir based fallback for mingw.
51184         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
51185         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
51186         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
51187         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
51188         rather than defining mkdir in config.h.
51189         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
51190         (gl_SYS_STAT_H_DEFAULTS): New macro.
51191         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
51192         HAVE_IO_H any more.
51193         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
51194         HAVE_DECL_MKDIR and HAVE_IO_H.
51195
51196 2008-04-20  Bruno Haible  <bruno@clisp.org>
51197
51198         * lib/isapipe.c: Port to native Windows platforms.
51199
51200 2008-04-20  Bruno Haible  <bruno@clisp.org>
51201
51202         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
51203
51204 2008-04-21  Eric Blake  <ebb9@byu.net>
51205
51206         Work around preprocessors that don't handle UINTMAX_MAX.
51207         * lib/memchr2.c (memchr2): Avoid embedded #if.
51208         Reported by Alain Guibert, fix suggested by Bruno Haible.
51209
51210 2008-04-21  Simon Josefsson  <simon@josefsson.org>
51211
51212         * doc/posix-functions/strftime.texi (strftime): Explain better
51213         Windows incompatibility.  Suggested by Micah Cowan
51214         <micah@cowan.name>.
51215
51216 2008-04-20  Bruno Haible  <bruno@clisp.org>
51217
51218         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
51219         unistr/u8-mblen.
51220
51221 2008-04-20  Bruno Haible  <bruno@clisp.org>
51222
51223         Fix test failure on platforms with non-GNU iconv.
51224         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
51225         (U_TO_U8): Use it, rather than u16_to_u8.
51226         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
51227         units at the end of the input string.
51228         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
51229
51230 2008-04-20  Bruno Haible  <bruno@clisp.org>
51231
51232         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
51233         when the resulting length is 0.
51234         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
51235
51236 2008-04-20  Bruno Haible  <bruno@clisp.org>
51237
51238         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
51239         works.
51240         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
51241
51242 2008-04-20  Bruno Haible  <bruno@clisp.org>
51243
51244         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
51245         * modules/tsearch-tests (configure.ac): Test for initstate function.
51246
51247 2008-04-20  Bruno Haible  <bruno@clisp.org>
51248
51249         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
51250         for nlink_t if missing.
51251         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
51252
51253 2008-04-19  Bruno Haible  <bruno@clisp.org>
51254
51255         Work around snprintf bug on Linux libc5.
51256         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
51257         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51258         gl_SNPRINTF_SIZE1.
51259         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51260         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
51261         that test failed.
51262         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51263         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
51264         * modules/snprintf (Files): Add m4/printf.m4.
51265         * modules/vsnprintf (Files): Likewise.
51266         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
51267         * doc/posix-functions/vsnprintf.texi: Likewise.
51268
51269 2008-04-19  Bruno Haible  <bruno@clisp.org>
51270
51271         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
51272         from 0.0058 to less than 10^-7.
51273
51274 2008-04-19  Bruno Haible  <bruno@clisp.org>
51275
51276         Fix rounding when a precision is given.
51277         * lib/vasnprintf.c (is_borderline): New function.
51278         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
51279         9...9x.
51280         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
51281         %e, %g.
51282         * tests/test-vasprintf-posix.c (test_function): Likewise.
51283         * tests/test-snprintf-posix.h (test_function): Likewise.
51284         * tests/test-sprintf-posix.h (test_function): Likewise.
51285         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
51286         * tests/test-printf-posix.h (test_function): Likewise.
51287         * tests/test-printf-posix.output: Update.
51288         Reported by John Darrington <john@darrington.wattle.id.au> via
51289         Ben Pfaff <blp@cs.stanford.edu>.
51290
51291 2008-04-18  Simon Josefsson  <simon@josefsson.org>
51292
51293         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
51294         Suggested by Bruno Haible <bruno@clisp.org>.
51295
51296 2008-04-17  Bruno Haible  <bruno@clisp.org>
51297
51298         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
51299         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
51300         implementation.
51301         Patch by Bruce Merry <bmerry@gmail.com>.
51302
51303 2008-04-17  Simon Josefsson  <simon@josefsson.org>
51304
51305         * doc/posix-functions/strftime.texi (strftime): Mention that %e
51306         doesn't work under Windows.
51307
51308 2008-04-16  Bruno Haible  <bruno@clisp.org>
51309
51310         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
51311         New macros.
51312         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
51313         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
51314         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
51315         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
51316         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
51317         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
51318         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
51319         macros.
51320         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
51321         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
51322         Northern Sotho, Uighur.
51323
51324 2008-04-16  Bruno Haible  <bruno@clisp.org>
51325
51326         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
51327         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
51328         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
51329         Reported by Daniel Bergström <daniel@octocode.com>.
51330
51331 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
51332             Bruno Haible  <bruno@clisp.org>
51333
51334         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
51335         function.
51336         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
51337         New functions, mostly extracted from gl_locale_name_default.
51338         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
51339
51340 2008-04-16  Eric Blake  <ebb9@byu.net>
51341
51342         Adjust strtod detection to catch glibc 2.7 bug.
51343         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
51344         Reported by John Gatewood Ham.
51345
51346 2008-04-16  Bruno Haible  <bruno@clisp.org>
51347
51348         Add tentative support for Linux libc5.
51349         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
51350         * lib/fpurge.c (fpurge): Likewise.
51351         * lib/freadable.c (freadable): Likewise.
51352         * lib/freadahead.c (freadahead): Likewise.
51353         * lib/freading.c (freading): Likewise.
51354         * lib/freadptr.c (freadptr): Likewise.
51355         * lib/freadseek.c (freadptrinc): Likewise.
51356         * lib/fseeko.c (rpl_fseeko): Likewise.
51357         * lib/fseterr.c (fseterr): Likewise.
51358         * lib/fwritable.c (fwritable): Likewise.
51359         * lib/fwriting.c (fwriting): Likewise.
51360         Reported by Alain Guibert <alguibert+bts@free.fr>.
51361
51362 2008-04-15  Bruno Haible  <bruno@clisp.org>
51363
51364         * modules/mathl (configure.ac): Define module indicator.
51365
51366 2008-04-15  Bruno Haible  <bruno@clisp.org>
51367
51368         * lib/logl.c (logl): Remove unused variables.
51369
51370 2008-04-15  Bruno Haible  <bruno@clisp.org>
51371
51372         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
51373         fails.
51374
51375 2008-04-15  Bruno Haible  <bruno@clisp.org>
51376
51377         * lib/trim.c (trim2): Fix argument of isspace() macro.
51378
51379 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
51380
51381         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
51382         to 0.
51383         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
51384
51385 2008-04-14  Bruno Haible  <bruno@clisp.org>
51386
51387         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
51388         AC_LANG_PROGRAM argument.
51389         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
51390         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
51391         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51392         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51393         * m4/math_h.m4 (gl_MATH_H): Likewise.
51394         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51395         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51396         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51397         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
51398         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51399         * m4/regex.m4 (gl_REGEX): Likewise.
51400         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
51401         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
51402         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51403         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
51404         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51405         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51406         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51407         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51408
51409 2008-04-14  Jim Meyering  <meyering@redhat.com>
51410
51411         test-strtod: fix typos: s/abs/fabs/
51412         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
51413
51414 2008-04-13  Bruno Haible  <bruno@clisp.org>
51415
51416         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
51417         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
51418         module is also used and while not building the reloc-wrapper.
51419
51420 2008-04-13  Bruno Haible  <bruno@clisp.org>
51421
51422         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
51423
51424 2008-04-13  Bruno Haible  <bruno@clisp.org>
51425
51426         Fix AIX compilation failure introduced on 2008-04-02.
51427         * tests/test-frexp.c (exp): Undefine before redefining.
51428         * tests/test-frexpl.c (exp): Likewise.
51429
51430 2008-04-13  Bruno Haible  <bruno@clisp.org>
51431
51432         Work around a HP-UX stdio bug.
51433         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
51434         * tests/test-ftello.c (main): Likewise.
51435         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
51436         * doc/posix-functions/ftello.texi: Likewise.
51437
51438 2008-04-13  Bruno Haible  <bruno@clisp.org>
51439
51440         Make test-signbit pass on HP-UX/hppa.
51441         * tests/test-signbit.c (minus_zerol): New variable.
51442         (test_signbitl): Use it.
51443
51444 2008-04-13  Bruno Haible  <bruno@clisp.org>
51445
51446         Make truncl work on OSF/1 4.0.
51447         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
51448         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51449         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
51451         HAVE_DECL_TRUNCL.
51452         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
51453         HAVE_DECL_TRUNCL.
51454         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
51455
51456 2008-04-13  Bruno Haible  <bruno@clisp.org>
51457
51458         * lib/unictype.h: Remove trailing comma from enumeration definitions.
51459
51460 2008-04-13  Bruno Haible  <bruno@clisp.org>
51461
51462         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
51463         expression, so as to avoid HP-UX 11 cc compiler bug.
51464
51465 2008-04-13  Bruno Haible  <bruno@clisp.org>
51466
51467         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
51468
51469 2008-04-13  Bruno Haible  <bruno@clisp.org>
51470
51471         * lib/git-merge-changelog.c: Remove empty declaration outside of
51472         functions.
51473
51474 2008-04-13  Bruno Haible  <bruno@clisp.org>
51475
51476         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
51477
51478 2008-04-13  Bruno Haible  <bruno@clisp.org>
51479
51480         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
51481         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
51482         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
51483         also if it exists but lacks definitions of the SHUT_* macros.
51484         * modules/sys_socket (Description): Update.
51485         Reported by Elbert Pol <e.pol@chello.nl>.
51486
51487 2008-04-13  Bruno Haible  <bruno@clisp.org>
51488
51489         * lib/localcharset.c (OS2): Don't redefine if already defined.
51490         Reported by Elbert Pol <e.pol@chello.nl>.
51491
51492 2008-04-13  Bruno Haible  <bruno@clisp.org>
51493
51494         * lib/binary-io.h [__EMX__]: Include <io.h>.
51495         Reported by Elbert Pol <e.pol@chello.nl>.
51496
51497 2008-04-12  Bruno Haible  <bruno@clisp.org>
51498
51499         * lib/fpucw.h: Enable the definitions also for x86_64.
51500         Needed for NetBSD/x86_64.
51501         Reported by Thomas Klausner <tk@giga.or.at>.
51502
51503 2008-04-12  Bruno Haible  <bruno@clisp.org>
51504
51505         * tests/test-strtod.c: Include isnand.h.
51506         (main): Use isnand instead of isnan.
51507         Reported by Jim Meyering.
51508
51509 2008-04-12  Bruno Haible  <bruno@clisp.org>
51510
51511         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
51512         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51513
51514 2008-04-12  Jim Meyering  <meyering@redhat.com>
51515
51516         * m4/math_h.m4 (gl_MATH_H): Fix typos.
51517
51518 2008-04-12  Bruno Haible  <bruno@clisp.org>
51519
51520         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
51521         Reported by Elbert Pol <e.pol@chello.nl>.
51522
51523 2008-04-12  Eric Blake  <ebb9@byu.net>
51524
51525         Work around Solaris 10 math.h bug.
51526         * m4/math_h.m4 (gl_MATH_H): Check for bug.
51527         (gl_MATH_H_DEFAULTS): Set up default.
51528         * modules/math (Makefile.am): Replace new indicators.
51529         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
51530         * tests/test-math.c (main): Test this.
51531         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
51532         * doc/posix-headers/math.texi (math.h): Mention bug.
51533         Reported by Nelson H. F. Beebe and Jim Meyering.
51534
51535 2008-04-11  Bruno Haible  <bruno@clisp.org>
51536
51537         Adapt to future versions of Apple GCC.
51538         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
51539         Reported by Peter O'Gorman <peter@pogma.com>.
51540
51541 2008-04-11  Bruno Haible  <bruno@clisp.org>
51542
51543         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
51544
51545 2008-04-11  Bruno Haible  <bruno@clisp.org>
51546
51547         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
51548
51549         * modules/getaddrinfo-tests (Makefile.am): Define
51550         test_getaddrinfo_LDADD.
51551
51552 2008-04-11  Bruno Haible  <bruno@clisp.org>
51553
51554         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
51555         (init): Fix syntax error.
51556         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
51557         is declared.
51558
51559 2008-04-11  Bruno Haible  <bruno@clisp.org>
51560
51561         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
51562         * modules/glob (Depends-on): Add stdbool.
51563
51564 2008-04-11  Bruno Haible  <bruno@clisp.org>
51565
51566         * lib/trim.c: Include <string.h>.
51567
51568 2008-04-11  Eric Blake  <ebb9@byu.net>
51569
51570         Avoid compile failure on OS/2.
51571         * lib/regex_internal.h (internal_function): Disable optimization
51572         on OS/2 (__EMX__), where it caused compiler error.
51573         Reported by Elbert Pol.
51574
51575 2008-04-11  Bruno Haible  <bruno@clisp.org>
51576
51577         Flush the standard error stream before aborting. Needed on mingw.
51578         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
51579         * tests/test-array_list.c (ASSERT): Likewise.
51580         * tests/test-array_oset.c (ASSERT): Likewise.
51581         * tests/test-avltree_list.c (ASSERT): Likewise.
51582         * tests/test-avltree_oset.c (ASSERT): Likewise.
51583         * tests/test-avltreehash_list.c (ASSERT): Likewise.
51584         * tests/test-binary-io.c (ASSERT): Likewise.
51585         * tests/test-byteswap.c (ASSERT): Likewise.
51586         * tests/test-c-ctype.c (ASSERT): Likewise.
51587         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
51588         * tests/test-c-strcasestr.c (ASSERT): Likewise.
51589         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
51590         * tests/test-c-strstr.c (ASSERT): Likewise.
51591         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
51592         * tests/test-canonicalize.c (ASSERT): Likewise.
51593         * tests/test-carray_list.c (ASSERT): Likewise.
51594         * tests/test-ceilf1.c (ASSERT): Likewise.
51595         * tests/test-ceilf2.c (ASSERT): Likewise.
51596         * tests/test-ceill.c (ASSERT): Likewise.
51597         * tests/test-count-one-bits.c (ASSERT): Likewise.
51598         * tests/test-fbufmode.c (ASSERT): Likewise.
51599         * tests/test-fflush2.c (ASSERT): Likewise.
51600         * tests/test-floorf1.c (ASSERT): Likewise.
51601         * tests/test-floorf2.c (ASSERT): Likewise.
51602         * tests/test-floorl.c (ASSERT): Likewise.
51603         * tests/test-fopen.c (ASSERT): Likewise.
51604         * tests/test-fpending.c (ASSERT): Likewise.
51605         * tests/test-fprintf-posix.c (ASSERT): Likewise.
51606         * tests/test-fpurge.c (ASSERT): Likewise.
51607         * tests/test-freadable.c (ASSERT): Likewise.
51608         * tests/test-freadahead.c (ASSERT): Likewise.
51609         * tests/test-freading.c (ASSERT): Likewise.
51610         * tests/test-freadptr.c (ASSERT): Likewise.
51611         * tests/test-freadptr2.c (ASSERT): Likewise.
51612         * tests/test-freadseek.c (ASSERT): Likewise.
51613         * tests/test-freopen.c (ASSERT): Likewise.
51614         * tests/test-frexp.c (ASSERT): Likewise.
51615         * tests/test-frexpl.c (ASSERT): Likewise.
51616         * tests/test-fseek.c (ASSERT): Likewise.
51617         * tests/test-fseeko.c (ASSERT): Likewise.
51618         * tests/test-fstrcmp.c (ASSERT): Likewise.
51619         * tests/test-ftell.c (ASSERT): Likewise.
51620         * tests/test-ftello.c (ASSERT): Likewise.
51621         * tests/test-func.c (ASSERT): Likewise.
51622         * tests/test-fwritable.c (ASSERT): Likewise.
51623         * tests/test-fwriting.c (ASSERT): Likewise.
51624         * tests/test-getdelim.c (ASSERT): Likewise.
51625         * tests/test-getline.c (ASSERT): Likewise.
51626         * tests/test-i-ring.c (ASSERT): Likewise.
51627         * tests/test-iconv-utf.c (ASSERT): Likewise.
51628         * tests/test-iconv.c (ASSERT): Likewise.
51629         * tests/test-isfinite.c (ASSERT): Likewise.
51630         * tests/test-isnand.c (ASSERT): Likewise.
51631         * tests/test-isnanf.c (ASSERT): Likewise.
51632         * tests/test-isnanl.h (ASSERT): Likewise.
51633         * tests/test-ldexpl.c (ASSERT): Likewise.
51634         * tests/test-linked_list.c (ASSERT): Likewise.
51635         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51636         * tests/test-localename.c (ASSERT): Likewise.
51637         * tests/test-lseek.c (ASSERT): Likewise.
51638         * tests/test-mbscasecmp.c (ASSERT): Likewise.
51639         * tests/test-mbscasestr1.c (ASSERT): Likewise.
51640         * tests/test-mbscasestr2.c (ASSERT): Likewise.
51641         * tests/test-mbscasestr3.c (ASSERT): Likewise.
51642         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51643         * tests/test-mbschr.c (ASSERT): Likewise.
51644         * tests/test-mbscspn.c (ASSERT): Likewise.
51645         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51646         * tests/test-mbspbrk.c (ASSERT): Likewise.
51647         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51648         * tests/test-mbsrchr.c (ASSERT): Likewise.
51649         * tests/test-mbsspn.c (ASSERT): Likewise.
51650         * tests/test-mbsstr1.c (ASSERT): Likewise.
51651         * tests/test-mbsstr2.c (ASSERT): Likewise.
51652         * tests/test-mbsstr3.c (ASSERT): Likewise.
51653         * tests/test-memchr2.c (ASSERT): Likewise.
51654         * tests/test-memmem.c (ASSERT): Likewise.
51655         * tests/test-open.c (ASSERT): Likewise.
51656         * tests/test-printf-frexp.c (ASSERT): Likewise.
51657         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51658         * tests/test-printf-posix.c (ASSERT): Likewise.
51659         * tests/test-quotearg.c (ASSERT): Likewise.
51660         * tests/test-rbtree_list.c (ASSERT): Likewise.
51661         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51662         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51663         * tests/test-round1.c (ASSERT): Likewise.
51664         * tests/test-roundf1.c (ASSERT): Likewise.
51665         * tests/test-roundl.c (ASSERT): Likewise.
51666         * tests/test-signbit.c (ASSERT): Likewise.
51667         * tests/test-sleep.c (ASSERT): Likewise.
51668         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51669         * tests/test-snprintf.c (ASSERT): Likewise.
51670         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51671         * tests/test-stat-time.c (ASSERT): Likewise.
51672         * tests/test-strcasestr.c (ASSERT): Likewise.
51673         * tests/test-strerror.c (ASSERT): Likewise.
51674         * tests/test-striconv.c (ASSERT): Likewise.
51675         * tests/test-striconveh.c (ASSERT): Likewise.
51676         * tests/test-striconveha.c (ASSERT): Likewise.
51677         * tests/test-strsignal.c (ASSERT): Likewise.
51678         * tests/test-strstr.c (ASSERT): Likewise.
51679         * tests/test-strtod.c (ASSERT): Likewise.
51680         * tests/test-trunc1.c (ASSERT): Likewise.
51681         * tests/test-trunc2.c (ASSERT): Likewise.
51682         * tests/test-truncf1.c (ASSERT): Likewise.
51683         * tests/test-truncf2.c (ASSERT): Likewise.
51684         * tests/test-truncl.c (ASSERT): Likewise.
51685         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51686         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51687         * tests/test-vasnprintf.c (ASSERT): Likewise.
51688         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51689         * tests/test-vasprintf.c (ASSERT): Likewise.
51690         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
51691         * tests/test-vprintf-posix.c (ASSERT): Likewise.
51692         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
51693         * tests/test-vsnprintf.c (ASSERT): Likewise.
51694         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
51695         * tests/test-wcwidth.c (ASSERT): Likewise.
51696         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
51697         * tests/test-xprintf-posix.c (ASSERT): Likewise.
51698         * tests/test-xvasprintf.c (ASSERT): Likewise.
51699         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
51700         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
51701         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
51702         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
51703         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
51704         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
51705         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
51706         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51707         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51708         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51709         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51710         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51711         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51712         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51713         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51714         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51715         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51716         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51717         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51718         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51719         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51720         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51721         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51722         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51723         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51724         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51725         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51726         * tests/unictype/test-combining.c (ASSERT): Likewise.
51727         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51728         * tests/unictype/test-digit.c (ASSERT): Likewise.
51729         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51730         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51731         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51732         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51733         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51734         * tests/unictype/test-scripts.c (ASSERT): Likewise.
51735         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
51736         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
51737         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
51738         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
51739         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
51740         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
51741         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
51742         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
51743         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
51744         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
51745         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
51746         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
51747         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
51748         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
51749         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
51750         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
51751         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
51752         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
51753         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
51754         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
51755         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
51756         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
51757         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51758         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51759         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51760         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51761         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51762         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51763         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51764         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51765         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51766         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51767         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51768         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51769         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51770         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51771         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51772         Reported by Eric Blake.
51773
51774 2008-04-11  Bruno Haible  <bruno@clisp.org>
51775
51776         * lib/wchar.in.h: Tweak comment.
51777
51778 2008-04-11  Bruno Haible  <bruno@clisp.org>
51779
51780         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51781         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51782         gl_COMMON.
51783         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51784
51785 2008-04-11  Bruno Haible  <bruno@clisp.org>
51786
51787         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51788
51789 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51790
51791         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51792         of attempting to use non-existing /dev/*random.  Based on patch
51793         from Adam Strzelecki <ono@java.pl> in
51794         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
51795
51796 2008-04-08  Bruno Haible  <bruno@clisp.org>
51797
51798         Add tentative support for emx+gcc.
51799         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
51800         * lib/fpurge.c (fpurge): Likewise.
51801         * lib/freadable.c (freadable): Likewise.
51802         * lib/freadahead.c (freadahead): Likewise.
51803         * lib/freading.c (freading): Likewise.
51804         * lib/freadptr.c (freadptr): Likewise.
51805         * lib/freadseek.c (freadptrinc): Likewise.
51806         * lib/fseeko.c (rpl_fseeko): Likewise.
51807         * lib/fseterr.c (fseterr): Likewise.
51808         * lib/fwritable.c (fwritable): Likewise.
51809         * lib/fwriting.c (fwriting): Likewise.
51810         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51811
51812 2008-04-09  Eric Blake  <ebb9@byu.net>
51813
51814         Avoid some autoconf warnings.
51815         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51816         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51817         * m4/afs.m4 (gl_AFS): Likewise.
51818         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51819         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51820         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51821         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51822         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51823         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51824         (AC_CHECK_DECLS_ONCE): Likewise.
51825         Rename file...
51826         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51827         gnulib-tool requires autoconf 2.59 or better.
51828         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51829
51830 2008-04-08  Eric Blake  <ebb9@byu.net>
51831
51832         Use 'git describe --match' if present (added in git 1.5.5).
51833         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51834         if possible.
51835
51836 2008-04-08  Bruno Haible  <bruno@clisp.org>
51837
51838         Add tentative support for OpenServer.
51839         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51840         _ptr, _cnt.
51841         * lib/fpurge.c (fpurge): Likewise.
51842         * lib/freadable.c (freadable): Likewise.
51843         * lib/freadahead.c (freadahead): Likewise.
51844         * lib/freading.c (freading): Likewise.
51845         * lib/freadptr.c (freadptr): Likewise.
51846         * lib/freadseek.c (freadptrinc): Likewise.
51847         * lib/fseeko.c (rpl_fseeko): Likewise.
51848         * lib/fseterr.c (fseterr): Likewise.
51849         * lib/fwritable.c (fwritable): Likewise.
51850         * lib/fwriting.c (fwriting): Likewise.
51851         Reported by Roger Cornelius <rac@tenzing.org> and
51852         Brian K. White <brian@aljex.com>.
51853
51854 2008-04-06  Jim Meyering  <meyering@redhat.com>
51855
51856         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51857
51858 2008-04-06  Bruno Haible  <bruno@clisp.org>
51859
51860         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51861         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51862         * tests/test-printf-posix.sh: Likewise.
51863         * tests/test-vfprintf-posix.sh: Likewise.
51864         * tests/test-vprintf-posix.sh: Likewise.
51865         * tests/test-xprintf-posix.sh: Likewise.
51866
51867 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51868
51869         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51870         hide error from 'ls', needed on OS/2.
51871         Report by Elbert Pol <elbert.pol@gmail.com>.
51872
51873 2008-04-04  Eric Blake  <ebb9@byu.net>
51874
51875         Make test-fseeko.c failures meaningful.
51876         * tests/test-fseeko.c: Print line number on failure.
51877         * tests/test-fseek.c: Likewise.
51878         Reported by Nelson H. F. Beebe.
51879
51880         Improve strtod bug detection check.
51881         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51882         required for Solaris 10.
51883         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51884
51885 2008-04-04  Bruno Haible  <bruno@clisp.org>
51886
51887         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51888         by m4/setenv.m4.
51889
51890 2008-04-03  Eric Blake  <ebb9@byu.net>
51891
51892         Ensure sane .version contents.
51893         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51894         version string.
51895         * build-aux/git-version-gen: Improve documentation.
51896
51897         Make GNU make output nicer.
51898         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51899         MAKECMDGOALS to enforce message for all command line targets.  Set
51900         srcdir for use in maint.mk.
51901
51902         Another maintainer tweak.
51903         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51904         a target that regenerates version.
51905
51906 2008-04-03  Jim Meyering  <meyering@redhat.com>
51907
51908         vc-list-files: don't cause coreutils "make po-check" failure
51909         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51910
51911 2008-04-03  Eric Blake  <ebb9@byu.net>
51912
51913         Allow VPATH usage of vc-list-files.
51914         * build-aux/vc-list-files (scriptversion): Add timestamp.
51915         (options): Add --help, --version, -C.
51916         (CVS): Support installed cvsu.
51917
51918 2008-04-02  Bruno Haible  <bruno@clisp.org>
51919
51920         Avoid some "statement with no effect" warnings from gcc.
51921         * tests/test-wctype.c (main): Explicitly ignore unused values.
51922         Reported by Jim Meyering.
51923
51924 2008-04-02  Jim Meyering  <meyering@redhat.com>
51925
51926         Avoid some warnings from "gcc -Wshadow".
51927         * tests/test-frexp.c (exp): Define to a different identifier.
51928         * tests/test-frexpl.c (exp): Likewise.
51929
51930 2008-04-03  Jim Meyering  <meyering@redhat.com>
51931
51932         bootstrap: remove dangling *.[ch] symlinks from lib
51933         * build-aux/bootstrap [dangling symlink removal]: Move find's
51934         -depth option to precede all others, to avoid a warning.
51935         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51936
51937 2008-04-02  Bruno Haible  <bruno@clisp.org>
51938
51939         Avoid some warnings from "gcc -Wshadow".
51940         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51941         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51942         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51943         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51944         Reported by Jim Meyering.
51945
51946 2008-04-01  Bruno Haible  <bruno@clisp.org>
51947
51948         Fix test to work on IRIX 6.5 with cc.
51949         * tests/test-math.c (numeric_equal): New function.
51950         (main): Use it.
51951
51952 2008-04-01  Bruno Haible  <bruno@clisp.org>
51953
51954         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51955
51956 2008-04-01  Bruno Haible  <bruno@clisp.org>
51957
51958         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51959         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51960         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51961         (Depends-on): Remove math.
51962
51963         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51964         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51965         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51966         (Depends-on): Remove math.
51967
51968         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51969         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51970         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51971         (Depends-on): Remove math.
51972         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51973         (Depends-on): Remove math.
51974
51975         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51976         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51977         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51978         (Depends-on): Remove math.
51979         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51980         (Depends-on): Remove math.
51981
51982         * tests/test-round1.c: Include nan.h.
51983         (main): Use NaNd instead of NAN.
51984         * modules/round-tests (Files): Add tests/nan.h.
51985
51986         * tests/test-trunc1.c: Include nan.h.
51987         (main): Use NaNd instead of NAN.
51988         * modules/trunc-tests (Files): Add tests/nan.h.
51989
51990         * tests/test-roundf1.c: Include nan.h.
51991         (main): Use NaNf instead of NAN.
51992         * modules/roundf-tests (Files): Add tests/nan.h.
51993
51994         * tests/test-truncf1.c: Include nan.h.
51995         (main): Use NaNf instead of NAN.
51996         * modules/truncf-tests (Files): Add tests/nan.h.
51997
51998         * tests/test-ceilf1.c: Include nan.h.
51999         (main): Use NaNf instead of NAN.
52000         * modules/ceilf-tests (Files): Add tests/nan.h.
52001
52002         * tests/test-floorf1.c: Include nan.h.
52003         (main): Use NaNf instead of NAN.
52004         * modules/floorf-tests (Files): Add tests/nan.h.
52005
52006         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
52007         (main): Use NaNf instead of NAN.
52008         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
52009
52010         * tests/test-isnand.c: Include nan.h instead of <math.h>.
52011         (main): Use NaNd instead of NAN.
52012         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
52013
52014         * tests/test-frexp.c: Include nan.h.
52015         (main): Use NaNd instead of NAN.
52016         * modules/frexp-tests (Files): Add tests/nan.h.
52017
52018         * lib/isnan.c: Don't include <math.h>.
52019         (FUNC): Don't use NAN macro.
52020         * modules/isnand-nolibm (Depends-on): Remove math.
52021         * modules/isnanf-nolibm (Depends-on): Remove math.
52022         * modules/isnanl (Depends-on): Remove math.
52023         * modules/isnanl-nolibm (Depends-on): Remove math.
52024
52025         * tests/nan.h: New file.
52026
52027 2008-04-01  Eric Blake  <ebb9@byu.net>
52028
52029         Fix typos.
52030         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
52031         values to be the right type.
52032
52033         For now, cater to gnulib strtod inaccuracies.
52034         * tests/test-strtod.c (main): Allow 1-ulp error on expected
52035         fractional results.  While not as nice from a QoI perspective, it
52036         is a quicker patch than correctly implementing decimal to binary
52037         rounding.
52038
52039 2008-03-31  Eric Blake  <ebb9@byu.net>
52040
52041         Guarantee a definition of NAN.
52042         * lib/math.in.h (NAN): Define if missing.
52043         * tests/test-math.c (main): Test it.
52044         * doc/posix-headers/math.texi (math.h): Document this.
52045         * lib/isnan.c (rpl_isnand): Use it.
52046         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
52047         * tests/test-floorf1.c (NaN): Likewise.
52048         * tests/test-frexp.c (NaN): Likewise.
52049         * tests/test-isnand.c (NaN): Likewise.
52050         * tests/test-isnanf.c (NaN): Likewise.
52051         * tests/test-round1.c (NaN): Likewise.
52052         * tests/test-roundf1.c (NaN): Likewise.
52053         * tests/test-snprintf-posix.h (NaN): Likewise.
52054         * tests/test-sprintf-posix.h (NaN): Likewise.
52055         * tests/test-trunc1.c (NaN): Likewise.
52056         * tests/test-truncf1.c (NaN): Likewise.
52057         * tests/test-vasnprintf-posix.c (NaN): Likewise.
52058         * tests/test-vasprintf-posix.c (NaN): Likewise.
52059         * modules/isnand-nolibm (Depends-on): Add math.
52060         * modules/isnanf-nolibm (Depends-on): Likewise.
52061         * modules/isnanl (Depends-on): Likewise.
52062         * modules/isnanl-nolibm (Depends-on): Likewise.
52063         * modules/snprintf-posix-tests (Depends-on): Likewise.
52064         * modules/sprintf-posix-tests (Depends-on): Likewise.
52065         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
52066         * modules/vsprintf-posix-tests (Depends-on): Likewise.
52067         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
52068         * modules/vasprintf-posix-tests (Depends-on): Likewise.
52069
52070 2008-03-31  Bruno Haible  <bruno@clisp.org>
52071
52072         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
52073         * doc/posix-functions/strtod.texi: Likewise.
52074
52075 2008-03-31  Bruno Haible  <bruno@clisp.org>
52076
52077         * tests/test-strtod.c (main): Don't use C99 syntax.
52078
52079 2008-03-31  Bruno Haible  <bruno@clisp.org>
52080
52081         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
52082         Reported by Eric Blake.
52083
52084 2008-03-31  Jim Meyering  <meyering@redhat.com>
52085
52086         Don't compare actual signbit return values.
52087         * tests/test-strtod.c (main): Rather, compare only their
52088         zero/non-zero nature.
52089
52090 2008-03-31  Eric Blake  <ebb9@byu.net>
52091
52092         More strtod documentation.
52093         * doc/posix-functions/strtod.texi (strtod): Interpret more test
52094         failures as distinct bugs.
52095
52096 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52097
52098         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
52099         Problem reported by Erik Benada in
52100         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
52101
52102 2008-03-30  Bruno Haible  <bruno@clisp.org>
52103
52104         * tests/test-strtod.c: Add comments about which assertion fails on which
52105         platform.
52106         * doc/posix-functions/strtod.texi: Add info about many more platforms.
52107
52108 2008-03-30  Eric Blake  <ebb9@byu.net>
52109
52110         Test signbit behavior on zeros.
52111         * tests/test-signbit.c (test_signbitf): Add tests for zero.
52112         (test_signbitd, test_signbitl): Likewise.
52113
52114         More strtod touchups.
52115         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
52116         sign of negative underflow, for now.  Use .5, not .1.
52117         * doc/posix-functions/strtod.texi (strtod): Mention these
52118         limitations.
52119         Reported by Jim Meyering.
52120
52121 2008-03-30  Bruno Haible  <bruno@clisp.org>
52122
52123         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
52124         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
52125
52126 2008-03-30  Bruno Haible  <bruno@clisp.org>
52127
52128         Avoid failure when attempting to return empty iconv results on some
52129         platforms.
52130         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
52131         allocation, don't report ENOMEM when the resulting string is empty.
52132
52133 2008-03-30  Bruno Haible  <bruno@clisp.org>
52134
52135         Fix buffer overrun.
52136         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
52137         Don't consider the width for tmp_length. Check count against tmp_length
52138         before doing the padding. Ensure enough allocation during padding.
52139
52140 2008-03-30  Eric Blake  <ebb9@byu.net>
52141
52142         strtod touchups.
52143         * lib/strtod.c (strtod): Avoid compiler warnings.
52144         Reported by Jim Meyering.
52145
52146 2008-03-30  Bruno Haible  <bruno@clisp.org>
52147
52148         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
52149         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
52150         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
52151         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
52152         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
52153         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
52154         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
52155         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
52156
52157         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
52158         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
52159         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
52160         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
52161         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
52162         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
52163         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
52164         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
52165
52166         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
52167         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
52168         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
52169         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
52170         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
52171         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52172         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
52173         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
52174
52175         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
52176         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
52177
52178         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
52179         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
52180
52181         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
52182         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
52183
52184         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
52185         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
52186         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
52187
52188         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
52189         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
52190         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
52191
52192         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
52193         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
52194         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
52195
52196         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
52197         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
52198         * modules/vasprintf (Depends-on): Add EOVERFLOW.
52199
52200         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
52201         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
52202         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
52203         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
52204         (Depends-on): Add EOVERFLOW.
52205         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
52206         (Depends-on): Add EOVERFLOW.
52207         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52208         (Depends-on): Add EOVERFLOW.
52209         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52210         (Depends-on): Add EOVERFLOW.
52211         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52212         (Depends-on): Add EOVERFLOW.
52213         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52214         (Depends-on): Add EOVERFLOW.
52215         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52216         (Depends-on): Add EOVERFLOW.
52217         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52218         (Depends-on): Add EOVERFLOW.
52219
52220         * lib/sprintf.c (EOVERFLOW): Remove fallback.
52221         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
52222         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
52223
52224         * lib/snprintf.c (EOVERFLOW): Remove fallback.
52225         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
52226         * modules/snprintf (Depends-on): Add EOVERFLOW.
52227
52228         * lib/poll.c (EOVERFLOW): Remove fallback.
52229         * modules/poll (Depends-on): Add EOVERFLOW.
52230
52231         * lib/getugroups.c (EOVERFLOW): Remove fallback.
52232         * modules/getugroups (Depends-on): Add EOVERFLOW.
52233
52234         * lib/getdelim.c (EOVERFLOW): Remove fallback.
52235         * modules/getdelim (Depends-on): Add EOVERFLOW.
52236
52237         * lib/ftell.c (EOVERFLOW): Remove fallback.
52238         * modules/ftell (Depends-on): Add EOVERFLOW.
52239
52240         * lib/fprintf.c (EOVERFLOW): Remove fallback.
52241         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
52242         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
52243
52244         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
52245
52246         * modules/EOVERFLOW-tests: New file.
52247         * tests/test-EOVERFLOW.c: New file.
52248
52249         * modules/EOVERFLOW: New file.
52250         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
52251
52252 2008-03-30  Bruno Haible  <bruno@clisp.org>
52253
52254         Fix bug introduced on 2007-06-10.
52255         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
52256         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
52257
52258 2008-03-30  Bruno Haible  <bruno@clisp.org>
52259
52260         Improve freadseek's efficiency after ungetc.
52261         * lib/freadseek.c: Include freadahead.h.
52262         (freadptrinc): New function, extracted from freadseek.
52263         (freadseek): Use it in a loop. Use freadahead to determine the number
52264         of loop iterations.
52265         * modules/freadseek (Depends-on): Add freadahead.
52266         (configure.ac): Require AC_C_INLINE.
52267
52268 2008-03-30  Bruno Haible  <bruno@clisp.org>
52269
52270         * lib/freadseek.c (freadseek): Don't ignore the return value of
52271         freadptr.
52272
52273 2008-03-29  Eric Blake  <ebb9@byu.net>
52274
52275         Add hex float support.
52276         * modules/strtod (Depends-on): Add c-ctype.
52277         (Link): Mention POW_LIB.
52278         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
52279         whitespace between 'e' and exponent.
52280         * tests/test-strtod.c (main): Enable hex float tests.
52281         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
52282         now provides.
52283
52284         Document various strtod bugs, with some fixes.
52285         * doc/posix-functions/strtod.texi (strtod): Document bugs with
52286         "-0x", "inf", "nan", and hex constants.
52287         * doc/posix-functions/atof.texi (atof): Likewise.
52288         * modules/stdlib (Makefile.am): Support strtod.
52289         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
52290         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
52291         detect additional strtod bugs.
52292         * lib/stdlib.in.h (rpl_strtod): Add declarations.
52293         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
52294         bool where appropriate.  Parse 'inf' and 'nan'.
52295         * tests/test-strtod.c: New file.
52296         * modules/strtod (Depends-on): Add stdbool, stdlib.
52297         (configure.ac): Turn on module indicator.
52298         * modules/strtod-tests: New module.
52299
52300 2008-03-29  Eric Blake  <ebb9@byu.net>
52301
52302         Fix ftell on mingw.
52303         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
52304         * modules/ftell-tests (Depends-on): Add binary-io.
52305         * modules/ftello-tests (Depends-on): Likewise.
52306         * tests/test-ftell.c (main): Enhance test to cover behavior after
52307         ungetc.  Enforce binary mode.
52308         * tests/test-ftello.c (main): Likewise.
52309
52310         Pass test-freadseek on cygwin.
52311         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
52312         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
52313         ungetc buffer.
52314
52315         * tests/test-fflush2.c (main): Fix typo.
52316
52317 2008-03-29  Bruno Haible  <bruno@clisp.org>
52318
52319         * tests/test-fflush2.c (main): Temporarily disable the contents of
52320         this test.
52321         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
52322         Reported by Eric Blake.
52323
52324 2008-03-28  Simon Josefsson  <simon@josefsson.org>
52325
52326         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
52327         (GC_SHA224_DIGEST_SIZE): Add.
52328
52329         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
52330         (gc_hash_digest_length): Likewise.
52331         (gc_hash_buffer): Likewise.
52332
52333 2008-03-25  Bruno Haible  <bruno@clisp.org>
52334
52335         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
52336         detail which gettext release to use.
52337         Reported by Simon Josefsson.
52338
52339 2008-03-26  Jim Meyering  <meyering@redhat.com>
52340
52341         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
52342         * modules/gnumakefile (clean-GNUmakefile): Also, use
52343         test ... && ... || : syntax rather than if-then ... fi.
52344
52345         gnumakefile: Don't double-quote-expand $(VPATH) value.
52346         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
52347
52348 2008-03-24  Eric Blake  <ebb9@byu.net>
52349
52350         Alter GNUmakefile to install into top directory.
52351         * modules/maintainer-makefile: Split, and add dependency...
52352         * modules/gnumakefile: to this new module.
52353         * build-aux/GNUmakefile: Move...
52354         * top/GNUmakefile: ...here.
52355         * build-aux/maint.mk: Move...
52356         * top/maint.mk: ...here.
52357         * MODULES.html.sh (Support for maintaining...): Document new
52358         module.
52359
52360 2008-03-23  Bruno Haible  <bruno@clisp.org>
52361
52362         * gnulib-tool: New options --vc-files, --no-vc-files.
52363         (func_usage): Document them.
52364         (vc_files): New variable.
52365         (func_import): Consider vc_files.
52366         (func_create_testdir): Set vc_files to empty.
52367         Suggested by Jim Meyering and Karl Berry.
52368
52369 2008-03-23  Bruno Haible  <bruno@clisp.org>
52370
52371         Fix regex compilation error on HP-UX 11.
52372         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
52373         * modules/regex (Files): Add m4/mbstate_t.m4.
52374         Reported by Ton Voon <ton.voon@altinity.com>.
52375
52376 2008-03-23  Bruno Haible  <bruno@clisp.org>
52377
52378         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
52379
52380 2008-03-23  Eric Blake  <ebb9@byu.net>
52381             Bruno Haible  <bruno@clisp.org>
52382
52383         Install files from top/ in the destination directory.
52384         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52385         augmentation also for the files from top/.
52386         (func_import, func_create_testdir): Rewrite file names:
52387         top/filename -> filename.
52388
52389 2008-03-23  Bruno Haible  <bruno@clisp.org>
52390
52391         Tweak "gnulib --version" output.
52392         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
52393
52394 2008-03-23  Bruno Haible  <bruno@clisp.org>
52395
52396         Tweak "gnulib --version" output.
52397         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
52398         rather than contents of ChangeLog, when possible.
52399
52400 2008-03-21  Eric Blake  <ebb9@byu.net>
52401
52402         More --version tweaks.
52403         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
52404         date of last ChangeLog entry.
52405
52406 2008-03-21  Jim Meyering  <meyering@redhat.com>
52407
52408         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
52409
52410 2008-03-20  Eric Blake  <ebb9@byu.net>
52411
52412         VPATH fix.
52413         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
52414
52415 2008-03-20  Simon Josefsson  <simon@josefsson.org>
52416
52417         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
52418         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
52419
52420 2008-03-20  Eric Blake  <ebb9@byu.net>
52421
52422         Sync GNUmakefile with coreutils.
52423         * build-aux/GNUmakefile (have-Makefile): Rename...
52424         (_have-Makefile): ...to this, for namespace consideration.
52425         (GNUmakefile.cfg): Include, if present.
52426         (_autoreconf): Define a default.
52427         (_is-dist-target): New rule for rebuilds to pick up intra-release
52428         version.
52429         (maint-cfg.mk): Rename...
52430         (cfg.mk): ...to this.
52431
52432 2008-03-18  Jim Meyering  <meyering@redhat.com>
52433
52434         New script and module: mktempd
52435         * MODULES.html.sh (maint+release support): Add mktempd.
52436         * build-aux/mktempd: New file.
52437         * modules/mktempd: New file.
52438
52439 2008-03-15  Jim Meyering  <meyering@redhat.com>
52440
52441         Undo last change.
52442         * lib/sha1.c, lib/md5.c: 63 != ~63.
52443         Reported by Andreas Schwab.
52444
52445         sha1.c, md5.c: Hoist a redundant expression.
52446         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
52447         "ctx->buflen" only once, before calling *_process_block.
52448         * lib/md5.c (md5_process_bytes): Likewise.
52449
52450 2008-03-14  Eric Blake  <ebb9@byu.net>
52451
52452         Bump copyright year in files generated by gnulib-tool.
52453         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
52454         gnulib-tool, rather than hard-coding it.
52455
52456         Fix 'gnulib-tool --version' output to work with git.
52457         * gnulib-tool (func_gnulib_dir): New function, extracted from...
52458         (startup): ...here.
52459         (func_version): Use it to invoke git-version-gen, rather than
52460         relying on CVS keyword expansion.  Modernize wording.
52461         (cvsdatestamp, last_checkin_date, version): Kill unused
52462         variables.
52463
52464 2008-03-12  Jim Meyering  <meyering@redhat.com>
52465
52466         Recognize optional cast of the argument to free.
52467         * build-aux/useless-if-before-free: Update regexps.
52468
52469         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
52470
52471 2008-03-11  Bruno Haible  <bruno@clisp.org>
52472
52473         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
52474         by a single package.
52475         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
52476         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
52477         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
52478         Reported by Sam Steingold <sds@gnu.org>.
52479
52480 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52481
52482         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
52483         repositories.
52484
52485 2008-03-11  Bruno Haible  <bruno@clisp.org>
52486
52487         Avoid conflicts between local macro definitions.
52488         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52489         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
52490
52491 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
52492             Bruno Haible  <bruno@clisp.org>
52493
52494         Make va_copy work with some version of xlc on AIX 5.1.
52495         * lib/stdarg.in.h: New file.
52496         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
52497         On AIX, use a <stdarg.h> file substitute.
52498         * modules/stdarg (Files): Add lib/stdarg.in.h.
52499         (Depends-on): Add include_next.
52500         (Makefile.am): Build a stdarg.h substitute if requested.
52501         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
52502
52503 2008-03-10  Bruno Haible  <bruno@clisp.org>
52504
52505         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
52506         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52507         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52508
52509 2008-03-10  Bruno Haible  <bruno@clisp.org>
52510
52511         * modules/stdlib (Depends-on): Add include_next, remove
52512         absolute-header.
52513
52514 2008-03-09  Bruno Haible  <bruno@clisp.org>
52515
52516         * lib/freadahead.h (freadahead): Document more precisely.
52517         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
52518         the sum of both buffer sizes.
52519         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
52520         * NEWS: Document the change.
52521
52522 2008-03-09  Bruno Haible  <bruno@clisp.org>
52523
52524         Extend freadptr to return also the buffer size.
52525         * lib/freadptr.h (freadptr): Add sizep argument.
52526         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
52527         (freadptr): Add sizep argument. Determine buffer size like freadahead
52528         does.
52529         * tests/test-freadptr.c: Don't include freadahead.h.
52530         (main): Adapt for new calling convention of freadptr.
52531         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
52532         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
52533         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
52534         tests/test-freadptr2.sh.
52535         (Depends): Remove freadahead.
52536         (TESTS): Add test-freadptr2.sh.
52537         (check_PROGRAMS): Add test-freadptr2.
52538
52539 2008-03-09  Bruno Haible  <bruno@clisp.org>
52540
52541         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
52542         Report and solution by Simon Josefsson.
52543
52544 2008-03-06  Bruno Haible  <bruno@clisp.org>
52545
52546         Make fflush after ungetc work on BSD platforms.
52547         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
52548         * tests/test-fflush2.c: New file.
52549         * tests/test-fflush2.sh: New file.
52550         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
52551         tests/test-fflush2.c.
52552         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
52553         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
52554
52555 2008-03-06  Eric Blake  <ebb9@byu.net>
52556
52557         Likewise for ftello.
52558         * modules/ftello (Dependencies): Add extensions.
52559         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
52560
52561 2008-03-06  Bruno Haible  <bruno@clisp.org>
52562
52563         * modules/fseeko (Dependencies): Add extensions.
52564         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
52565         Needed on glibc systems.
52566
52567 2008-03-06  Bruno Haible  <bruno@clisp.org>
52568
52569         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
52570         email address.
52571         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52572
52573 2008-03-06  Bruno Haible  <bruno@clisp.org>
52574
52575         * users.txt: Add libgnupdf.
52576
52577 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52578
52579         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
52580         (Header File Substitutes, Function Substitutes,
52581         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
52582         (Build robot for gnulib): Fix typo.
52583
52584 2008-03-06  Bruno Haible  <bruno@clisp.org>
52585
52586         * doc/gnulib-tool.texi (VCS Issues): Small updates.
52587         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52588
52589 2008-03-06  Bruno Haible  <bruno@clisp.org>
52590
52591         * doc/func.texi: New file, extracted from doc/gnulib.texi.
52592         * doc/gnulib.texi: Include it.
52593
52594 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52595
52596         * modules/func (License): Change license to unlimited; there was
52597         no LGPL parts in the module anyway.
52598
52599 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52600
52601         * modules/__func__: Renamed to modules/func.
52602         * modules/__func__-tests: Renamed to modules/func-tests.
52603         * tests/test-__func__.c: Renamed to tests/test-func.c.
52604         * m4/__func__.m4: Renamed to m4/func.m4.
52605         * doc/gnulib.texi (__func__): Section renamed to func.
52606         Suggested by Eric Blake <ebb9@byu.net>.
52607
52608 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52609
52610         * doc/gnulib.texi (__func__): Use C99 terminology when talking
52611         about __func__.  Make example self-contained.  Suggested by Eric
52612         Blake <ebb9@byu.net>.
52613
52614         * tests/test-__func__.c (main): Avoid extraneous () around __func.
52615         Suggested by Eric Blake <ebb9@byu.net>.
52616
52617 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52618
52619         * modules/__func__: New file.
52620         * modules/__func__-tests: New file.
52621         * tests/test-__func__.c: New file.
52622         * m4/__func__.m4: New file.
52623         * doc/gnulib.texi (__func__): Document __func__ module.
52624
52625 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52626
52627         * modules/byteswap (License): Re-license as LGPLv2+.
52628
52629 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52630
52631         * doc/Makefile: Add pdf target.
52632
52633 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52634
52635         * modules/inline (License): Use 'unlimited', since there are only
52636         *.m4 files in this module.
52637
52638 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52639             Bruno Haible  <bruno@clisp.org>
52640
52641         Add support for HP C 7.1 on OpenVMS 8.3.
52642         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52643
52644 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52645
52646         Update VMS specifics.
52647         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52648
52649 2008-03-02  Jim Meyering  <meyering@redhat.com>
52650
52651         Remove the last dependency on the "free" module.
52652         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52653         Reported by Bob Proulx.
52654
52655         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52656
52657         Remove useless "if" tests before free.  Deprecate "free" module.
52658         * doc/posix-functions/free.texi: Mention that this
52659         module is no longer useful.
52660         * modules/free (Notice): Say this module is obsolete.
52661         * modules/readutmp (Depends-on): Remove free.
52662         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52663         * lib/putenv.c (putenv): Likewise.
52664         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52665         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52666         * tests/test-c-strcasestr.c (main): Likewise.
52667         * tests/test-c-strstr.c (main): Likewise.
52668         * tests/test-mbscasestr1.c (main): Likewise.
52669         * tests/test-mbscasestr2.c (main): Likewise.
52670         * tests/test-mbsstr1.c (main): Likewise.
52671         * tests/test-mbsstr2.c (main): Likewise.
52672         * tests/test-memmem.c (main): Likewise.
52673         * tests/test-strcasestr.c (main): Likewise.
52674         * tests/test-striconv.c (main): Likewise.
52675         * tests/test-striconveh.c (main): Likewise.
52676         * tests/test-striconveha.c (main): Likewise.
52677         * tests/test-strstr.c (main): Likewise.
52678
52679         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52680
52681         bootstrap: sync from coreutils again
52682         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52683
52684 2008-03-01  Jim Meyering  <meyering@redhat.com>
52685
52686         bootstrap: sync from coreutils
52687         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52688         also when the target doesn't exist.
52689
52690 2008-03-01  Eric Blake  <ebb9@byu.net>
52691
52692         Fix bugs in last patch.
52693         * lib/memchr2.c (memchr2): Fix typo.
52694         * tests/test-memchr2.c: Test previous bug, and don't use GNU
52695         extension.
52696         Reported by Bruce Korb.
52697
52698         New module 'memchr2'.
52699         * modules/memchr2: New file.
52700         * modules/memchr2-tests: Likewise.
52701         * lib/memchr2.h: Likewise.
52702         * lib/memchr2.c: Likewise, based on memchr.c.
52703         * tests/test-memchr2.c: New test.
52704         * MODULES.html.sh (String handling): Add memchr2.
52705
52706 2008-02-29  Bruno Haible  <bruno@clisp.org>
52707
52708         * modules/freadseek-tests: New file.
52709         * tests/test-freadseek.sh: New file.
52710         * tests/test-freadseek.c: New file.
52711
52712         New module 'freadseek'.
52713         * modules/freadseek: New file.
52714         * lib/freadseek.h: New file.
52715         * lib/freadseek.c: New file.
52716         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52717
52718 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52719
52720         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52721         wydawca.
52722
52723         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52724         program_invocation_name and program_invocation_short_name are
52725         present.
52726
52727 2008-02-28  Bruno Haible  <bruno@clisp.org>
52728
52729         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52730         * tests/test-freadptr.sh: Also test non-seekable stdin.
52731
52732 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52733
52734         * build-aux/bootstrap (source_base, m4_base)
52735         (doc_base, tests_base): New variables.
52736         (gnulib_tool_options): Do not hardcode base directories, use
52737         the above variables instead.
52738
52739 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
52740
52741         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
52742
52743 2008-02-28  Bruno Haible  <bruno@clisp.org>
52744
52745         * modules/freadptr-tests: New file.
52746         * tests/test-freadptr.sh: New file.
52747         * tests/test-freadptr.c: New file.
52748
52749         New module 'freadptr'.
52750         * modules/freadptr: New file.
52751         * lib/freadptr.h: New file.
52752         * lib/freadptr.c: New file.
52753         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
52754
52755 2008-02-26  Karl Berry  <karl@freefriends.org>
52756
52757         Sync from Libtool:
52758         * libltdl/argz.c (argz_add, argz_count): New functions.
52759         * libltdl/argz.in.h: Declare them.
52760         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52761
52762 2008-02-22  Bruno Haible  <bruno@clisp.org>
52763
52764         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52765         is a pointer type.  Needed for HP-UX 10.
52766         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52767         * doc/posix-functions/gmtime_r.texi: Likewise.
52768         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52769
52770 2008-02-24  Bruno Haible  <bruno@clisp.org>
52771
52772         * modules/environ-tests: New file.
52773         * tests/test-environ.c: New file.
52774
52775         New module 'environ'.
52776         * modules/environ: New file.
52777         * lib/unistd.in.h (environ): New declaration.
52778         * m4/environ.m4: New file.
52779         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52780         after use.
52781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52782         HAVE_DECL_ENVIRON.
52783         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52784         HAVE_DECL_ENVIRON.
52785         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52786         wrong claim that 'environ' is missing on some systems.
52787         * modules/execute (Depends-on): Add environ.
52788         * lib/execute.c (environ): Remove fallback declaration.
52789         * modules/pipe (Depends-on): Add environ.
52790         * lib/pipe.c (environ): Remove fallback declaration.
52791         * modules/setenv (Depends-on): Add environ.
52792         * lib/setenv.c (environ): Remove fallback declaration.
52793         * modules/unsetenv (Depends-on): Add environ.
52794         * lib/unsetenv.c (environ): Remove fallback declaration.
52795         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
52796         m4/environ.m4.
52797         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
52798         (gl_PREREQ_UNSETENV): Likewise.
52799
52800 2008-02-24  Bruno Haible  <bruno@clisp.org>
52801
52802         * doc/posix-functions/environ.texi: Document the MacOS X problem.
52803
52804 2008-02-20  Bob Proulx  <bob@proulx.com>
52805
52806         Enable use of older two part flavor 'git describe'.
52807         * build-aux/git-version-gen: If using the older two part flavor of
52808         git version then recreate the third part now present in the
52809         newer three part flavor of git describe.
52810
52811 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52812
52813         * lib/fts.c (fts_build): Typo correction to comment.
52814
52815 2008-02-17  Bruno Haible  <bruno@clisp.org>
52816
52817         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52818         generating no-op conflicts.
52819
52820 2008-02-17  Bruno Haible  <bruno@clisp.org>
52821
52822         Speed up by 10%.
52823         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52824         result_entries, rather than an index-based loop.
52825
52826 2008-02-17  Bruno Haible  <bruno@clisp.org>
52827
52828         Speed up by 25%.
52829         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52830         'hashcode_cached'.
52831         (entry_create): New function.
52832         (entry_hashcode): Use the cached hashcode if possible.
52833         (read_changelog_file, try_split_merged_entry): Use entry_create.
52834
52835 2008-02-17  Bruno Haible  <bruno@clisp.org>
52836
52837         Speed up from O(n^2) to O(n) for long ChangeLog files.
52838         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52839         (read_changelog_file): Change implementation of entries_reversed list
52840         to rbtreehash.
52841         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52842
52843 2008-02-17  Bruno Haible  <bruno@clisp.org>
52844
52845         New option --split-merged-entry.
52846         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52847         (find_paragraph_end, try_split_merged_entry): New functions.
52848         (long_options): Add option --split-merged-entry.
52849         (usage): Document option --split-merged-entry.
52850         (main): Implement option --split-merged-entry.
52851         Reported by Eric Blake.
52852
52853 2008-02-17  Bruno Haible  <bruno@clisp.org>
52854
52855         * lib/git-merge-changelog.c: Include c-strstr.h.
52856         (main): Support the "git pull --rebase" situation.
52857         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52858         Reported by Eric Blake.
52859
52860 2008-02-16  Eric Blake  <ebb9@byu.net>
52861
52862         Avoid doubling \ in common case of "c-maybe" quoting style.
52863         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52864         eliding outer quotes.
52865         * lib/quotearg.h: Document this.
52866         * tests/test-quotearg.c (result_strings, inputs, results_g)
52867         (flag_results, locale_results): Test it by adding a new string to
52868         each test group.
52869         (compare_strings): Test new string.
52870
52871 2008-02-13  Eric Blake  <ebb9@byu.net>
52872
52873         Avoid trigraph quoting in default output.
52874         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52875         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52876         unless explicitly requested.
52877         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52878
52879 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52880
52881         Don't rely on signed integer overflowing to negative value.
52882         * lib/getugroups.c (getugroups): Include <limits.h>.
52883         Instead, compare against INT_MAX, and increment only if the test passes.
52884
52885 2008-02-13  Jim Meyering  <meyering@redhat.com>
52886         and Eric Blake  <ebb9@byu.net>
52887
52888         Avoid shadowing warning and compile errors on Linux.
52889         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52890         forwarding macros on Linux.
52891         (dcgettext): Define a stub, for Linux.
52892         (results_g, main): Avoid warnings.
52893
52894 2008-02-12  Eric Blake  <ebb9@byu.net>
52895
52896         Silence warning in last patch.
52897         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52898
52899         Quotearg part 4: add tests, fix c-maybe colon quoting.
52900         * lib/quotearg.h: Improve documentation.
52901         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52902         escapes when adding outer quotes.  When quoting trigraphs, use
52903         valid C notation.  When quoting NUL, omit extra characters if next
52904         character is not digit.  Alter prototype.
52905         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52906         callers.
52907         * modules/quotearg-tests: New module.
52908         * tests/test-quotearg.c: New test.
52909
52910 2008-02-07  Eric Blake  <ebb9@byu.net>
52911
52912         Quotearg part 3: add flag to control outer quote elision.
52913         * lib/quotearg.h (c_maybe_quoting_style): New style.
52914         (enum quoting_flags): Better documentation of flags.
52915         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52916         c-maybe style.
52917         (quotearg_buffer_restyled): Handle new flag to elide outer
52918         quotes.
52919
52920         Quotearg part 2: add flag that can control NUL elision.
52921         * lib/quotearg.h (set_quoting_flags): New prototype.
52922         * lib/quotearg.c (struct quoting_options): Add flag field.
52923         (set_quoting_flags): New function.
52924         (quotearg_buffer_restyled): Add flags parameter.
52925         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52926         (quotearg_n_options): Set the flag, since length cannot be
52927         returned.
52928         (quoting_options_from_style): Default flags correctly.
52929
52930         Quotearg part 1: more wrappers, restore quotearg_char state.
52931         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52932         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52933         (quotearg_colon_mem): New wrappers.
52934         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52935         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52936         functions.
52937         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52938         (quotearg_colon_mem): New functions.
52939
52940 2008-02-11  Bruno Haible  <bruno@clisp.org>
52941
52942         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52943         library in the current directory: it does not work with parallel make.
52944         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52945
52946 2008-02-11  Bruno Haible  <bruno@clisp.org>
52947
52948         * .gitattributes: New file.
52949
52950 2008-02-11  Jim Meyering  <meyering@redhat.com>
52951
52952         useless-if-before-free: Fix reversed exit values.
52953         * build-aux/useless-if-before-free: Use correct values
52954         for EXIT_MATCH and EXIT_NO_MATCH.
52955
52956         * build-aux/useless-if-before-free: Close stdout carefully.
52957
52958 2008-02-10  Bruno Haible  <bruno@clisp.org>
52959
52960         New module 'git-merge-changelog'.
52961         * modules/git-merge-changelog: New file.
52962         * lib/git-merge-changelog.c: New file.
52963
52964 2008-02-10  Jim Meyering  <meyering@redhat.com>
52965
52966         useless-if-before-free: New option: --list (-l).
52967
52968         useless-if-before-free: Don't exit immediately upon open failure.
52969         * build-aux/useless-if-before-free: Exit 2 for errors.
52970         Upon failure to open a file, don't exit immediately.
52971         Rather, just warn and continue with any remaining files.
52972
52973 2008-02-10  Bruno Haible  <bruno@clisp.org>
52974
52975         New abstract list operation 'node_set_value'.
52976         * lib/gl_list.h (gl_list_node_set_value): New function.
52977         (struct gl_list_implementation): New field node_set_value.
52978         * lib/gl_list.c (gl_list_node_set_value): New function.
52979         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52980         (gl_array_list_implementation): Update.
52981         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52982         (gl_carray_list_implementation): Update.
52983         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52984         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52985         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52986         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52987         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52988         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52989         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52990         Update.
52991         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52992         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52993         (gl_sublist_list_implementation): Update.
52994
52995 2008-02-10  Bruno Haible  <bruno@clisp.org>
52996
52997         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52998         Needed when ELEMENT is #defined to 'some_type *'.
52999
53000 2008-02-10  Jim Meyering  <meyering@redhat.com>
53001
53002         New script and module: useless-if-before-free
53003         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
53004         * build-aux/useless-if-before-free: New file.
53005         * modules/useless-if-before-free: New file.
53006
53007         * build-aux/gitlog-to-changelog: Use committer date, not author date.
53008
53009         xstrtol_error: Fix typo.
53010         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
53011         s/exit_failure/exit_status/.
53012
53013 2008-02-09  Jim Meyering  <meyering@redhat.com>
53014
53015         New script and module: gitlog-to-changelog
53016         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
53017         * modules/gitlog-to-changelog: New file.
53018         * build-aux/gitlog-to-changelog: New file.
53019
53020 2008-02-08  Jim Meyering  <meyering@redhat.com>
53021
53022         Avoid two "parameter unused" warnings.
53023         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
53024         Mark "st" as used.
53025
53026         Use "git COMMAND", not "git-COMMAND".
53027         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
53028         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
53029         * build-aux/git-version-gen: Use "git status", not "git-status".
53030
53031 2008-02-07  Bruno Haible  <bruno@clisp.org>
53032
53033         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
53034         Avoids a crash on Windows Vista.
53035         Reported by Adam Strzelecki <ono@java.pl> via
53036         Simon Josefsson <simon@josefsson.org>.
53037
53038 2008-02-06  Bruno Haible  <bruno@clisp.org>
53039
53040         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
53041         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
53042         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
53043         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
53044         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53045         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53046         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
53047         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53048         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53049         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53050         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53051         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53052         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53053         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53054         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53055         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
53056         left-adjust flag.
53057         * tests/test-snprintf-posix.h (test_function): Likewise.
53058         * tests/test-sprintf-posix.h (test_function): Likewise.
53059         * tests/test-vasprintf-posix.c (test_function): Likewise.
53060         * doc/posix-functions/fprintf.texi: Update.
53061         * doc/posix-functions/printf.texi: Update.
53062         * doc/posix-functions/snprintf.texi: Update.
53063         * doc/posix-functions/sprintf.texi: Update.
53064         * doc/posix-functions/vfprintf.texi: Update.
53065         * doc/posix-functions/vprintf.texi: Update.
53066         * doc/posix-functions/vsnprintf.texi: Update.
53067         * doc/posix-functions/vsprintf.texi: Update.
53068         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53069
53070 2008-02-06  Bruno Haible  <bruno@clisp.org>
53071
53072         Fix bug introduced on 2008-01-26.
53073         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
53074
53075 2008-02-06  Bruno Haible  <bruno@clisp.org>
53076
53077         Fix bug introduced on 2007-06-10.
53078         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
53079         !NEED_PRINTF_FLAG_ZERO.
53080
53081 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
53082
53083         getloadavg: use libperfstat on AIX5
53084         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
53085
53086 2008-02-03  Bruno Haible  <bruno@clisp.org>
53087
53088         * lib/diffseq.h: Add comments about required #includes.
53089         Reported by Michael Biggs <gnulib@doubleplum.net>.
53090
53091 2008-02-01  Bruno Haible  <bruno@clisp.org>
53092
53093         * users.txt: Add gnuit.
53094
53095 2008-01-31  Bruno Haible  <bruno@clisp.org>
53096
53097         * lib/md4.c (set_uint32): Mark as inline.
53098         * lib/md5.c (set_uint32): Likewise.
53099         * lib/sha1.c (set_uint32): Likewise.
53100         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
53101         * m4/md5.m4 (gl_MD5): Likewise.
53102         * m4/sha1.m4 (gl_SHA1): Likewise.
53103
53104 2008-01-31  Jim Meyering  <meyering@redhat.com>
53105
53106         Use "sizeof VAR", rather than a literal "4".
53107         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
53108         * lib/md4.c (md4_read_ctx): Likewise.
53109         * lib/sha1.c (sha1_read_ctx): Likewise.
53110
53111 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53112
53113         * tests/test-sha1.c: New file, based on test-md5.c.
53114
53115         * modules/crypto/sha1-tests: New file.
53116
53117 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53118
53119         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
53120
53121 2008-01-31  Jim Meyering  <meyering@redhat.com>
53122
53123         Prefer "sizeof v" over the equivalent "4".
53124         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
53125         * lib/md5.c (set_uint32): Likewise.
53126         * lib/sha1.c (set_uint32): Likewise.
53127
53128 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53129
53130         * lib/sha1.c (set_uint32): Mark function as static.
53131
53132 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53133
53134         md2: clarify comments to say that alignment is not required.
53135         * lib/md2.h: Remove warning about alignment in comment.
53136         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
53137         never been required.
53138
53139 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53140
53141         md4: adapt alignment constraint fix from sha1.
53142         * lib/md4.c (set_uint32): New function, from sha1.c
53143         (md4_read_ctx): Use it.
53144         (md4_finish_ctx): Doc fix.
53145         * lib/md4.h: Doc fix.
53146
53147 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53148
53149         md5: adapt alignment constraint fix from sha1.
53150         * lib/md5.c (set_uint32): New function, from sha1.c
53151         (md5_read_ctx): Use it.
53152         (md5_finish_ctx): Doc fix.
53153         * lib/md5.h: Doc fix.
53154
53155 2008-01-30  Peter Palfrader  <weasel@debian.org>
53156
53157         sha1: remove the result buffer alignment constraint
53158         * lib/sha1.c (set_uint32): New function.
53159         (sha1_read_ctx): Rewrite to remove the result buffer alignment
53160         constraint.
53161         (sha1_finish_ctx): Remove comment warning about alignment constraint.
53162         * lib/sha1.h: Likewise.
53163
53164 2008-01-30  Andreas Schwab  <schwab@suse.de>
53165             Bruno Haible  <bruno@clisp.org>
53166
53167         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
53168         correct definition of LDBL_MIN_EXP.
53169
53170 2008-01-30  Karl Berry  <karl@gnu.org>
53171
53172         * config/srclist-update: try to preserve x bit on updates.
53173         * config/srclistvars.sh: update for karl.
53174
53175 2008-01-29  Jim Meyering  <meyering@redhat.com>
53176
53177         vasnprintf.c: Avoid warning about unused label
53178         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
53179         "overflow" label definition and associated code with the
53180         same cpp condition that guards the sole use of that label.
53181
53182 2008-01-26  Bruno Haible  <bruno@clisp.org>
53183
53184         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
53185         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
53186         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
53187         * lib/isnanl-nolibm.h (isnanl): Likewise.
53188         Reported by Paul Eggert <eggert@cs.ucla.edu>.
53189
53190 2008-01-26  Bruno Haible  <bruno@clisp.org>
53191
53192         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
53193         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
53194
53195 2008-01-26  Bruno Haible  <bruno@clisp.org>
53196
53197         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
53198         GCC >= 4.0 built-in.
53199         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
53200
53201 2008-01-26  Bruno Haible  <bruno@clisp.org>
53202
53203         Rename isnan, applicable to 'double' only, to isnand.
53204         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
53205         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
53206         (configure.ac): Update.
53207         (Include): Replace "isnan.h" with "isnand.h".
53208         * m4/isnand.m4: Renamed from m4/isnan.m4.
53209         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
53210         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
53211         instead of isnan.c.
53212         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
53213         instead of HAVE_ISNAN_IN_LIBC.
53214         (isnand): Renamed from isnan.
53215         * lib/isnand.c: New file.
53216         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
53217         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
53218         (Makefile.am): Update.
53219         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
53220         Include isnand.h instead of isnan.h.
53221         (main): Test isnand instead of isnan.
53222         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
53223         isnan-nolibm.
53224         * modules/frexp (Depends-on): Likewise.
53225         * modules/frexp-tests (Depends-on): Likewise.
53226         * modules/frexp-nolibm (Depends-on): Likewise.
53227         * modules/frexp-nolibm-tests (Depends-on): Likewise.
53228         * modules/isfinite (Depends-on): Likewise.
53229         * modules/round-tests (Depends-on): Likewise.
53230         * modules/signbit (Depends-on): Likewise.
53231         * modules/signbit-tests (Depends-on): Likewise.
53232         * modules/snprintf-posix (Depends-on): Likewise.
53233         * modules/sprintf-posix (Depends-on): Likewise.
53234         * modules/trunc-tests (Depends-on): Likewise.
53235         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53236         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53237         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53238         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53239         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53240         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53241         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53242         * modules/vasnprintf-posix (Depends-on): Likewise.
53243         * modules/vasprintf-posix (Depends-on): Likewise.
53244         * modules/vfprintf-posix (Depends-on): Likewise.
53245         * modules/vsnprintf-posix (Depends-on): Likewise.
53246         * modules/vsprintf-posix (Depends-on): Likewise.
53247         * lib/frexp.c: Include isnand.h instead of isnan.h.
53248         (ISNAN): Set to isnand instead of isnan.
53249         * lib/isfinite.c: Include isnand.h instead of isnan.h.
53250         (gl_isfinited): Use isnand instead of isnan.
53251         * lib/signbitd.c: Include isnand.h instead of isnan.h.
53252         (gl_signbitd): Use isnand instead of isnan.
53253         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
53254         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
53255         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
53256         (main): Use isnand instead of isnan.
53257         * tests/test-round1.c: Include isnand.h.
53258         (main): Use isnand instead of isnan.
53259         * tests/test-round2.c: Include isnand.h instead of isnan.h.
53260         (ISNAN): Set to isnand instead of isnan.
53261         * tests/test-trunc1.c: Include isnand.h.
53262         (main): Use isnand instead of isnan.
53263         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
53264         (equal): Use isnand instead of isnan.
53265         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
53266         isnand-nolibm.
53267         * NEWS: Mention the change.
53268
53269 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53270             Bruno Haible  <bruno@clisp.org>
53271
53272         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
53273         the GCC builtins for signbits are present and set
53274         REPLACE_SIGNBIT_USING_GCC if so.
53275         * lib/math.in.h (signbit): Define using GCC builtins if
53276         REPLACE_SIGNBIT_USING_GCC is set.
53277         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
53278         REPLACE_SIGNBIT_USING_GCC.
53279         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
53280
53281 2008-01-25  Jim Meyering  <meyering@redhat.com>
53282
53283         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
53284         * lib/poll.c: Include <config.h>, not "config.h".
53285         * tests/test-getaddrinfo.c: Likewise.
53286
53287 2008-01-25  Simon Josefsson  <simon@josefsson.org>
53288
53289         * modules/sockets-tests: New file.
53290
53291 2008-01-24  Simon Josefsson  <simon@josefsson.org>
53292
53293         * modules/sockets: New module, can be used to call WSA_Startup and
53294         WSA_Cleanup when needed.
53295
53296         * lib/sockets.h, lib/sockets.c: New files.
53297
53298         * m4/sockets.m4: New file.
53299
53300         * tests/test-sockets.c: New file.
53301
53302 2008-01-19  Bruno Haible  <bruno@clisp.org>
53303
53304         * doc/posix-headers: Renamed from doc/headers.
53305         * doc/posix-functions: Renamed from doc/functions.
53306         * doc/gnulib.texi: Update.
53307
53308 2008-01-19  Bruno Haible  <bruno@clisp.org>
53309
53310         * doc/glibc-functions/strcasestr.texi: Include contents of
53311         doc/functions/strcasestr.texi, fixing the list of platforms.
53312         * doc/functions/strcasestr.texi: Remove file.
53313
53314 2008-01-19  Bruno Haible  <bruno@clisp.org>
53315
53316         * doc/glibc-functions/memmem.texi: Include contents of
53317         doc/functions/memmem.texi.
53318         * doc/functions/memmem.texi: Remove file.
53319
53320 2008-01-18  Bruno Haible  <bruno@clisp.org>
53321
53322         * doc/glibc-functions/*.texi: New files.
53323         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
53324         to use the new files.
53325
53326 2008-01-17  Bruno Haible  <bruno@clisp.org>
53327
53328         * tests/test-gethostname.c (main): Fix printf statement.
53329
53330 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53331
53332         * modules/gethostname-tests: New file.
53333
53334         * tests/test-gethostname.c: New file.
53335
53336 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53337
53338         * lib/gethostname.c: Include string.h unconditionally, strncpy is
53339         used by the UNAME case.  Reported by Bruno Haible
53340         <bruno@clisp.org>.
53341
53342 2008-01-17  Eric Blake  <ebb9@byu.net>
53343
53344         Convert c-strcasestr to be more efficient.
53345         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
53346         (Depends-on): Add c-strcase, remove malloca, strnlen.
53347         * tests/test-c-strcasestr.c (main): Enhance test.
53348         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
53349
53350 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53351
53352         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
53353         Use it in creating po/Makevars.
53354
53355 2008-01-15  Simon Josefsson  <simon@josefsson.org>
53356
53357         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
53358         Applications that requires it should initialize libgcrypt
53359         manually.
53360
53361 2008-01-16  Simon Josefsson  <simon@josefsson.org>
53362
53363         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
53364
53365 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
53366
53367         Fix problem with getdate on mingw32 reported by Simon Josefsson
53368         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
53369         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
53370         tzname", when deciding whether to declare tzname.
53371         * lib/strftime.c (tzname): Likewise.
53372
53373 2008-01-15  Bruno Haible  <bruno@clisp.org>
53374
53375         Work around a MacOS X 10.5 bug in frexpl().
53376         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
53377         * doc/functions/frexpl.texi: Document the bug.
53378         Reported by Elias Pipping <pipping@gentoo.org>.
53379
53380 2008-01-14  Eric Blake  <ebb9@byu.net>
53381
53382         Touch up previous patch.
53383         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
53384         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
53385
53386         Convert strcasestr module to use Two-Way algorithm.
53387         * modules/strcasestr-simple: New module, based on the old
53388         strcasestr, but with Two-Way rather than KMP.
53389         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
53390         * lib/string.in.h (rpl_strcasestr): Declare.
53391         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
53392         performance.
53393         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
53394         * modules/string (Makefile.am): Support strcasestr.
53395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
53396         * modules/strcasestr-tests (Depends-on): Check for alarm.
53397         * tests/test-strcasestr.c: Augment test.
53398         * lib/str-two-way.h: Clean up stray macro.
53399         * NEWS: Document new module.
53400         * MODULES.html.sh (string handling): Likewise.
53401         * doc/functions/strcasestr.texi: New file.
53402         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
53403         here, since it is not a POSIX function.
53404
53405 2008-01-14  Colin Watson  <cjwatson@debian.org>
53406             Bruno Haible  <bruno@clisp.org>
53407
53408         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
53409         works fine; if not, set REPLACE_STRSIGNAL.
53410         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
53411         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53412         REPLACE_STRSIGNAL.
53413         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
53414         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
53415         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
53416
53417 2008-01-14  Bruno Haible  <bruno@clisp.org>
53418
53419         * modules/strsignal (Include): Change to <string.h>.
53420
53421 2008-01-14  Colin Watson  <cjwatson@debian.org>
53422
53423         * modules/argp (Notice): Add a notice recommending to change
53424         XGETTEXT_OPTIONS.
53425         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
53426
53427 2008-01-13  Colin Watson  <cjwatson@debian.org>
53428
53429         * modules/strsignal-tests: New file.
53430         * tests/test-strsignal.c: New file.
53431
53432         * lib/strsignal.c: New file, from glibc with modifications.
53433         * lib/siglist.h: New file, from glibc with modifications.
53434         * lib/string.in.h (strsignal): New declaration.
53435         * m4/strsignal.m4: New file.
53436         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53437         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
53438         * modules/strsignal: New file.
53439         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
53440         HAVE_DECL_STRSIGNAL.
53441
53442 2008-01-13  Bruno Haible  <bruno@clisp.org>
53443
53444         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
53445         locale encoding is not ASCII. Needed for OpenBSD 4.0.
53446         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53447         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53448
53449 2008-01-13  Bruno Haible  <bruno@clisp.org>
53450
53451         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
53452         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
53453         * lib/argp.h (__attribute__): Likewise.
53454         * lib/c-stack.c (__attribute__): Likewise.
53455         * lib/error.h (__attribute__): Likewise.
53456         * lib/fts.c (__attribute__): Likewise.
53457         * lib/openat.h (__attribute__): Likewise.
53458         * lib/stdio.in.h (__attribute__): Likewise.
53459         * lib/string.in.h (__attribute__): Likewise.
53460         * lib/utimens.c (__attribute__): Likewise.
53461         * lib/vasnprintf.h (__attribute__): Likewise.
53462         * lib/xalloc.h (__attribute__): Likewise.
53463         * lib/xprintf.h (__attribute__): Likewise.
53464         * lib/xstrtol.h (__attribute__): Likewise.
53465         * lib/xvasprintf.h (__attribute__): Likewise.
53466
53467 2008-01-12  Bruno Haible  <bruno@clisp.org>
53468
53469         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
53470         * doc/glibc-headers/a.out.texi: New file.
53471         * doc/glibc-headers/aliases.texi: New file.
53472         * doc/glibc-headers/alloca.texi: New file.
53473         * doc/glibc-headers/ar.texi: New file.
53474         * doc/glibc-headers/argp.texi: New file.
53475         * doc/glibc-headers/argz.texi: New file.
53476         * doc/glibc-headers/byteswap.texi: New file.
53477         * doc/glibc-headers/crypt.texi: New file.
53478         * doc/glibc-headers/endian.texi: New file.
53479         * doc/glibc-headers/envz.texi: New file.
53480         * doc/glibc-headers/err.texi: New file.
53481         * doc/glibc-headers/error.texi: New file.
53482         * doc/glibc-headers/execinfo.texi: New file.
53483         * doc/glibc-headers/fpu_control.texi: New file.
53484         * doc/glibc-headers/fstab.texi: New file.
53485         * doc/glibc-headers/fts.texi: New file.
53486         * doc/glibc-headers/getopt.texi: New file.
53487         * doc/glibc-headers/ieee754.texi: New file.
53488         * doc/glibc-headers/ifaddrs.texi: New file.
53489         * doc/glibc-headers/libintl.texi: New file.
53490         * doc/glibc-headers/mcheck.texi: New file.
53491         * doc/glibc-headers/mntent.texi: New file.
53492         * doc/glibc-headers/obstack.texi: New file.
53493         * doc/glibc-headers/paths.texi: New file.
53494         * doc/glibc-headers/printf.texi: New file.
53495         * doc/glibc-headers/pty.texi: New file.
53496         * doc/glibc-headers/resolv.texi: New file.
53497         * doc/glibc-headers/shadow.texi: New file.
53498         * doc/glibc-headers/sysexits.texi: New file.
53499         * doc/glibc-headers/ttyent.texi: New file.
53500
53501 2008-01-12  Jim Meyering  <meyering@redhat.com>
53502
53503         announce-gen: emit Gnulib's git-based version string.
53504         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
53505         New option --gnulib-version=V, where V is expected to be
53506         the output of running git describe in the gnulib directory.
53507         (get_tool_versions): Request feedback on xdelta.  I suspect it's
53508         not useful, and plan to stop publishing an xdelta file with each
53509         coreutils release.
53510
53511         * build-aux/announce-gen: Also check for lzma-compressed files.
53512
53513 2008-01-11  Bruno Haible  <bruno@clisp.org>
53514
53515         * tests/test-memmem.c (main): Increase maximum allowed time.
53516         * tests/test-strstr.c (main): Likewise.
53517
53518 2008-01-11  Bruno Haible  <bruno@clisp.org>
53519
53520         * doc/functions/memmem.texi: Add more precisions about platforms.
53521         * doc/functions/strstr.texi: Likewise.
53522
53523 2008-01-10  Eric Blake  <ebb9@byu.net>
53524
53525         * m4/strstr.m4: Delete cruft from copy-n-paste.
53526         Reported by Bruno Haible.
53527
53528 2008-01-10  Bruno Haible  <bruno@clisp.org>
53529
53530         Make c-strstr rely on strstr.
53531         * lib/c-strstr.c: Don't include str-kmp.h.
53532         (c_strstr): Define in terms of strstr.
53533         * modules/c-strstr (Files): Remove lib/str-kmp.h.
53534         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
53535
53536 2008-01-10  Bruno Haible  <bruno@clisp.org>
53537
53538         * doc/gnulib.texi (String Functions in C Locale): New section.
53539         * doc/c-ctype.texi: New file.
53540         * doc/c-strcase.texi: New file.
53541         * doc/c-strcaseeq.texi: New file.
53542         * doc/c-strcasestr.texi: New file.
53543         * doc/c-strstr.texi: New file.
53544         * doc/c-strtod.texi: New file.
53545         * doc/c-strtold.texi: New file.
53546
53547 2008-01-10  Eric Blake  <ebb9@byu.net>
53548
53549         * lib/relocatable.h: Fix a comment.
53550
53551 2008-01-10  Eric Blake  <ebb9@byu.net>
53552
53553         Share two-way algorithm.
53554         * lib/str-two-way.h: New file, merged from...
53555         * lib/memmem.c: ...here...
53556         * lib/strstr.c: ...and here.
53557         * modules/memmem (Files): Use it.
53558         * modules/strstr (Files): Likewise.
53559
53560         Avoid quadratic strstr implementations.
53561         * lib/strstr.c: New file.
53562         * m4/strstr.m4: Likewise.
53563         * modules/strstr: Likewise.
53564         * modules/strstr-tests: Likewise.
53565         * tests/test-strstr.c: Likewise.
53566         * lib/string.in.h (rpl_strstr): Declare.
53567         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
53568         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
53569         * modules/string (Makefile.am): Likewise.
53570         * MODULES.html.sh (string handling): Mention new module.
53571         * doc/functions/strstr.texi (strstr): Document the bug.
53572
53573 2008-01-10  Bruno Haible  <bruno@clisp.org>
53574
53575         * lib/relocatable.h (relocate): State whether result is freshly
53576         allocated or not.
53577         * lib/relocatable.c (relocate): Return a freshly allocated string
53578         instead of a pointer to a privately held string.
53579         Reported by Sylvain Beucler <beuc@gnu.org>.
53580
53581 2008-01-10  Colin Watson  <cjwatson@debian.org>
53582
53583         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
53584         s/S_ISNLK/S_ISLNK/.
53585
53586 2008-01-09  Bruno Haible  <bruno@clisp.org>
53587
53588         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
53589         and other files.
53590         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
53591         if it's only a guess.
53592         * modules/memmem: Simplify by depending on memmem-simple.
53593
53594 2008-01-09  Bruno Haible  <bruno@clisp.org>
53595
53596         Work around OpenBSD 4.0 tdelete() bug.
53597         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
53598         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
53599         macros and don't redefine the enum values.
53600         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
53601         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
53602         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
53603
53604 2008-01-09  Bruno Haible  <bruno@clisp.org>
53605
53606         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
53607         (main): Don't perform the tests if setlocale did not install a UTF-8
53608         locale. Needed on OpenBSD 4.0.
53609         * modules/wcwidth-tests (Depends-on): Add localcharset.
53610
53611 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53612
53613         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
53614         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
53615         * NEWS: announce this.
53616         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
53617
53618 2008-01-09  Simon Josefsson  <simon@josefsson.org>
53619         and Eric Blake  <ebb9@byu.net>
53620
53621         Add memmem-simple module.
53622         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
53623         (gl_FUNC_MEMMEM): Separate performance from presence checks.
53624         * modules/memmem-simple: New file.
53625         * modules/memmem (Description): Tweak.
53626         * MODULES.html.sh (string handling): Mention new module.
53627         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
53628         addressed by memmem-simple.
53629         * NEWS: Document the difference.
53630
53631 2008-01-09  Eric Blake  <ebb9@byu.net>
53632
53633         Give gcc some memmem optimization hints.
53634         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
53635         (strcasestr): Declare as pure.
53636         * modules/memmem (Maintainer): Claim my implementation.
53637
53638 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53639
53640         Support AIX 6.1 and higher.
53641         * build-aux/config.libpath: Likewise.
53642         * build-aux/config.rpath: Likewise.
53643
53644 2008-01-08  Jim Meyering  <meyering@redhat.com>
53645             Bruno Haible  <bruno@clisp.org>
53646
53647         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53648         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53649         Reported by Peter Fales in
53650         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53651
53652 2008-01-08  Bruno Haible  <bruno@clisp.org>
53653
53654         * modules/unictype/category-of (Depends-on): Add
53655         unictype/category-none.
53656         * modules/unictype/category-and-tests (Depends-on): Add
53657         unictype/category-{L,N,Lu,Nd}.
53658         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53659         * modules/unictype/category-or-tests (Depends-on): Add
53660         unictype/category-{L,N}.
53661         * modules/unictype/category-name-tests (Depends-on): Add
53662         unictype/category-{Z,Nl}.
53663         Reported by Simon Josefsson.
53664
53665 2008-01-08  Bruno Haible  <bruno@clisp.org>
53666
53667         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53668         convention better.
53669         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53670         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53671         Reported by Peter Miller <millerp@canb.auug.org.au>.
53672
53673 2008-01-08  Eric Blake  <ebb9@byu.net>
53674
53675         Rewrite memmem to guarantee linear complexity without malloc.
53676         * lib/memmem.c (memmem): Use Two-Way rather than
53677         Knuth-Morris-Pratt, to allow O(1) space usage.
53678         (critical_factorization, two_way_short_needle)
53679         (two_way_long_needle): New functions.
53680         (knuth_morris_pratt): Delete.
53681         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53682         Add stdint.
53683         * tests/test-memmem.c (main): Add tests for periodic needle and
53684         sublinear performance.
53685         * doc/functions/memmem.texi (memmem): Document other deficiencies
53686         in cygwin and older glibc.
53687
53688 2008-01-08  Bruno Haible  <bruno@clisp.org>
53689
53690         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
53691         augmentation.
53692
53693 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
53694
53695         Add a configure time option: --disable-acl.
53696         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
53697         AC_ARG_ENABLE(acl).
53698
53699 2008-01-06  Simon Josefsson  <simon@josefsson.org>
53700
53701         * tests/test-localename.c: Don't include obsolete "setenv.h".
53702
53703         * modules/localename-tests (Depends-on): Need unsetenv.
53704
53705 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53706
53707         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53708
53709 2008-01-06  Colin Watson  <cjwatson@debian.org>
53710
53711         * users.txt: Add man-db.
53712
53713 2008-01-07  Bruno Haible  <bruno@clisp.org>
53714
53715         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53716         previous section name.
53717
53718 2008-01-07  Bruno Haible  <bruno@clisp.org>
53719
53720         * lib/progname.c (set_program_name): Don't strip off a leading
53721         "lt-" prefix outside a .libs directory.
53722         Suggested by Paul Eggert.
53723
53724 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53725             Bruno Haible  <bruno@clisp.org>
53726
53727         Improve memory cleanup in 'relocatable' module.
53728         * lib/relocatable.h (compute_curr_prefix): Change return type to
53729         'char *'.
53730         * lib/relocatable.c (compute_curr_prefix): Change return type to
53731         'char *'. Free curr_installdir after use.
53732         (relocate): Free curr_prefix_better after use.
53733         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53734
53735 2008-01-01  Bruno Haible  <bruno@clisp.org>
53736
53737         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
53738         failure on older glibc systems.
53739         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53740
53741 2008-01-05  Eric Blake  <ebb9@byu.net>
53742
53743         Avoid quadratic system memmem.
53744         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
53745         Reported by Ralf Wildenhues.
53746
53747         Fix memmem test for mingw.
53748         * modules/memmem-tests (configure.ac): Check for alarm.
53749         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
53750         it.
53751         * doc/functions/memmem.texi: New file.
53752         * doc/gnulib.texi (Function Substitutes): Add memmem.
53753         Reported by Bruno Haible.
53754
53755 2008-01-04  Bruno Haible  <bruno@clisp.org>
53756
53757         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53758         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53759         gl_HEADER_STRING_H_DEFAULTS.
53760
53761 2008-01-04  Eric Blake  <ebb9@byu.net>
53762
53763         Shorten duration of memmem test.
53764         * tests/test-memmem.c (main): Use alarm to declare failure if test
53765         is taking too long.
53766         Reported by Ralf Wildenhues.
53767
53768 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53769
53770         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53771         string, needed by strerror.
53772
53773 2008-01-03  Colin Watson  <cjwatson@debian.org>
53774             Bruno Haible  <bruno@clisp.org>
53775
53776         * doc/gnulib-tool.texi (Localization): New section.
53777
53778 2008-01-02  Bruno Haible  <bruno@clisp.org>
53779
53780         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53781         variables to 'unsigned char *' type.
53782         Reported by Paul Eggert.
53783
53784 2008-01-02  Jim Meyering  <jim@meyering.net>
53785
53786         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53787
53788 2007-12-31  Jim Meyering  <jim@meyering.net>
53789
53790         Avoid use of private FTS type name.
53791         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53792
53793 2007-12-30  Karl Berry  <karl@gnu.org>
53794
53795         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
53796         work around defect in Texinfo and/or the standalone Info browser.
53797
53798 2007-12-30  Bruno Haible  <bruno@clisp.org>
53799
53800         Unify 5 copies of the KMP code.
53801         * lib/str-kmp.h: New file.
53802         * lib/c-strcasestr.c: Include str-kmp.h.
53803         (knuth_morris_pratt): Remove function.
53804         (c_strcasestr): Update.
53805         * lib/c-strstr.c: Include str-kmp.h.
53806         (knuth_morris_pratt): Remove function.
53807         (c_strcasestr): Update.
53808         * lib/mbscasestr.c: Include str-kmp.h.
53809         (knuth_morris_pratt_unibyte): Remove function.
53810         * lib/mbsstr.c: Include str-kmp.h.
53811         (knuth_morris_pratt_unibyte): Remove function.
53812         * lib/strcasestr.c: Include str-kmp.h.
53813         (knuth_morris_pratt): Remove function.
53814         (strcasestr): Update.
53815         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53816         * modules/c-strstr (Files): Likewise.
53817         * modules/mbscasestr (Files): Likewise.
53818         * modules/mbsstr (Files): Likewise.
53819         * modules/strcasestr (Files): Likewise.
53820         Suggested by Paul Eggert.
53821
53822 2007-12-30  Bruno Haible  <bruno@clisp.org>
53823
53824         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53825         defined.
53826
53827 2007-12-30  Bruno Haible  <bruno@clisp.org>
53828
53829         * lib/xmalloca.h: Include xalloc.h.
53830         (xnmalloca): New macro.
53831
53832 2007-12-30  Bruno Haible  <bruno@clisp.org>
53833
53834         * lib/malloca.h (nmalloca): New macro.
53835         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53836         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53837         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53838         knuth_morris_pratt_multibyte): Likewise.
53839         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53840         knuth_morris_pratt_multibyte): Likewise.
53841         * lib/memmem.c (knuth_morris_pratt): Likewise.
53842         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53843
53844 2007-12-25  Bruno Haible  <bruno@clisp.org>
53845
53846         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53847         * lib/glob.c: Don't include openat.h.
53848         (link_exists2_p): Add back the code that deals with the
53849         !GLOB_ALTDIRFUNC case.
53850         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53851         let it do the filename concatenation.
53852         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53853         * modules/glob (Depends-on): Remove openat.
53854
53855 2007-12-31  Bruno Haible  <bruno@clisp.org>
53856
53857         * modules/dirfd (License): Change to LGPLv2+.
53858         Approved by Jim Meyering.
53859
53860 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53861
53862         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53863         when multiplying M by sizeof (size_t).
53864
53865 2007-12-10  Martin Lambers  <marlam@marlam.de>
53866
53867         Override getpagesize on mingw.
53868         * lib/getpagesize.c: New file.
53869         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53870         * modules/getpagesize (Files): Add lib/getpagesize.c.
53871         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53873         REPLACE_GETPAGESIZE.
53874         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53875
53876 2007-12-25  Bruno Haible  <bruno@clisp.org>
53877
53878         * modules/localcharset (Notice): New field.
53879         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53880         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53881
53882 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53883             Bruno Haible  <bruno@clisp.org>
53884
53885         Avoid using the syntax symbol() in formatted documentation.
53886         * MODULES.html.sh (func_module): When replacing symbol() with a
53887         hyperlink, remove the parentheses. Show an error if some remain.
53888         Recognize and render the '...' syntax.
53889         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53890         Rework. Add paragraph about GCC's inlining.
53891         * doc/alloca.texi: Likewise.
53892         * doc/error.texi: Remove parentheses from symbol reference.
53893         * doc/gnulib-intro.texi: Likewise.
53894         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53895         * modules/fnmatch (Description): Reword to say "the ... function".
53896         * modules/full-read (Description): Likewise.
53897         * modules/full-write (Description): Likewise.
53898         * modules/safe-read (Description): Likewise.
53899         * modules/safe-write (Description): Likewise.
53900         * modules/strchrnul (Description): Likewise.
53901         * modules/trim (Description): Likewise.
53902         * modules/error (Description): Remove parentheses from symbol
53903         references.
53904         * modules/verror (Description): Likewise.
53905         Reported by Karl Berry.
53906
53907 2007-12-25  Bruno Haible  <bruno@clisp.org>
53908
53909         Fixup after 2007-10-16 commit.
53910         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53911
53912 2007-12-24  Bruno Haible  <bruno@clisp.org>
53913
53914         Make --enable-relocatable work with DESTDIR.
53915         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53916         to compute installdir from destprog.
53917         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53918         also set the RELOC_DESTDIR variable.
53919         Reported by Левашев Иван <octagram@bluebottle.com>.
53920
53921 2007-12-24  Bruno Haible  <bruno@clisp.org>
53922
53923         Fix link error due to xalloc_die().
53924         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53925         of xreadlink.
53926         * lib/relocwrapper.c: Update comments.
53927         * build-aux/install-reloc: Remove xreadlink.c from file list.
53928         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53929         xreadlink.c.
53930         Reported by Левашев Иван <octagram@bluebottle.com>.
53931
53932 2007-12-24  Bruno Haible  <bruno@clisp.org>
53933
53934         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53935         * lib/setenv.h: Remove file.
53936         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53937         lib/setenv.h.
53938         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53939         (Depends-on): Add stdlib.
53940         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53941         gl_FUNC_UNSETENV.
53942         (Include): Replace setenv.h with <stdlib.h>.
53943         * modules/unsetenv: New file.
53944         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53945         * lib/unsetenv.c: Include <stdlib.h> first.
53946         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53947         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53948         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53949         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53950         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53951         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53952         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53953         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53954         * doc/functions/unsetenv.texi: Update.
53955         * modules/xsetenv (Depends-on): Add unsetenv.
53956         * modules/getdate (Depends-on): Likewise.
53957         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53958         * lib/xsetenv.c: Don't include setenv.h.
53959         * lib/getdate.y: Likewise.
53960         * lib/relocwrapper.c: Likewise.
53961         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53962         (Depends-on): Add stdlib.
53963         * NEWS: Mention the changes.
53964         Reported by Левашев Иван <octagram@bluebottle.com>.
53965
53966 2007-12-23  Bruno Haible  <bruno@clisp.org>
53967
53968         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53969         indentation.
53970
53971 2007-12-23  Bruno Haible  <bruno@clisp.org>
53972
53973         * lib/c-strcasestr.c: Add more comments.
53974         * lib/c-strstr.c: Likewise.
53975         * lib/mbscasestr.c: Likewise.
53976         * lib/mbsstr.c: Likewise.
53977         * lib/strcasestr.c: Likewise.
53978         * lib/memmem.c: Likewise.
53979
53980 2007-12-23  Bruno Haible  <bruno@clisp.org>
53981
53982         * tests/test-memmem.c: Include <string.h> first.
53983
53984 2007-12-22  Bruno Haible  <bruno@clisp.org>
53985
53986         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53987         the contents of $testsbase.
53988         Reported by Ralf Wildenhues.
53989
53990 2007-12-22  Bruno Haible  <bruno@clisp.org>
53991
53992         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53993         two variables local_ldadd_before, local_ldadd_last.
53994
53995 2007-12-20  Eric Blake  <ebb9@byu.net>
53996
53997         Work around circular library issue when cross-compiling.
53998         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53999         that progname.o does not need to pull in rpl_memcmp.
54000
54001 2007-12-19  Eric Blake  <ebb9@byu.net>
54002
54003         Fix memmem to avoid O(n^2) worst-case complexity.
54004         * lib/memmem.c (knuth_morris_pratt): New function.
54005         (memmem): Use it if first few naive iterations fail.
54006         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
54007         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
54008         * modules/memchr (License): Likewise.
54009         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
54010         malloca.
54011         * tests/test-memmem.c: Rewrite, borrowing ideas from
54012         test-mbsstr1.c; the old version wouldn't even compile!
54013         * modules/memmem-tests: New file.
54014         * lib/string.in.h (rpl_memmem): Add declaration.
54015         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
54016         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
54017         REPLACE_MEMMEM.
54018
54019 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54020
54021         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
54022         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
54023         before any system include files, and undef after them all.  This
54024         should fix a problem on VMS reported by John E. Malmberg in
54025         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
54026
54027 2007-12-17  Eric Blake  <ebb9@byu.net>
54028
54029         Revert addition of verify, for BSD/OS.
54030         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
54031         can't handle large files, for the sake of obsolete platforms.
54032         * modules/fseeko (Depends-on): Remove verify.
54033         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
54034         * doc/functions/ftello.texi (ftello): Likewise.
54035         * doc/functions/fgetpos.texi (fgetpos): Likewise.
54036         Reported by Larry Jones.
54037
54038 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
54039
54040         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
54041         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
54042
54043 2007-12-17  Jim Meyering  <meyering@redhat.com>
54044
54045         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
54046         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
54047         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
54048         * modules/getcwd (Depends-on): Add openat.
54049         Reported by Petr Salinger.
54050
54051 2007-12-17  Bruno Haible  <bruno@clisp.org>
54052
54053         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
54054         avoid a segmentation fault of the configure test on x86_64 systems.
54055
54056 2007-12-15  Jim Meyering  <meyering@redhat.com>
54057
54058         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
54059
54060 2007-12-13  Eric Blake  <ebb9@byu.net>
54061
54062         Another fseek test.
54063         * tests/test-fseek.c (main): Also test ungetc handling.
54064         * tests/test-fseeko.c (main): Likewise.
54065         * modules/fseeko (Depends-on): Add verify.
54066         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
54067         large.
54068         Reported by Larry Jones.
54069
54070         Fix fseeko on mingw.
54071         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
54072         seek.
54073
54074         Beef up fseek tests.
54075         * tests/test-fseek.c (main): Also test eof handling.
54076         * tests/test-fseeko.c (main): Likewise.
54077         Reported by Larry Jones.
54078
54079 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
54080
54081         Fix fseeko on BSD-based platforms.
54082         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
54083         successful seek.
54084
54085 2007-12-12  Eric Blake  <ebb9@byu.net>
54086
54087         Allow circular dependency of separate libtests.a
54088         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
54089         when use_libtests.
54090
54091 2007-12-11  Eric Blake  <ebb9@byu.net>
54092
54093         Fix bug with -0.0L in previous patch.
54094         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
54095         * tests/test-isnan.c (main): Also test on zeroes.
54096         * tests/test-isnanf.c (main): Likewise.
54097         * tests/test-isnanl.h (main): Likewise.
54098
54099         Detect pseudo-denormals on x86 even when cross-compiling.
54100         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
54101         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
54102         invalid bit patterns that happen to satisfy ==.
54103
54104         Avoid link failures with separate libtests.a.
54105         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
54106         last, to satisfy circular dependencies.
54107
54108 2007-12-11  Eric Blake  <ebb9@byu.net>
54109         and Bruno Haible  <bruno@clisp.org>
54110
54111         Fix OpenBSD 4.0 <float.h> handling of long double.
54112         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
54113         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
54114         * doc/headers/float.texi (float.h): Document OpenBSD bug.
54115
54116 2007-12-11  Jim Meyering  <meyering@redhat.com>
54117
54118         * users.txt: Add libvirt.
54119
54120         Support versions of autoconf prior to 2.59c.
54121         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
54122         if it is not already defined.
54123
54124 2007-12-09  Bruno Haible  <bruno@clisp.org>
54125
54126         Let 'gnulib-tool --import' collect sources needed for the tests in
54127         tests/ rather than in lib/.
54128         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
54129         argument. If true, add rules to generate libtests.a, and put libtests.a
54130         into $(LDADD). Consider source files in subdirectories and set
54131         uses_subdirs.
54132         (func_emit_initmacro_start, func_emit_initmacro_end,
54133         func_emit_initmacro_done): Pass all arguments explicitly.
54134         (func_import): Determine two module lists main_modules,
54135         testsrelated_modules. Determine use_libtests. Determine two variables
54136         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
54137         instead of just sed_transform_lib_file. Determine two variables
54138         main_files and testsrelated_files. Compute 'files' as the union of
54139         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
54140         func_add_or_update. In the generated gnulib-comp.m4, collect the
54141         object files for tests/ in different variables than those for lib/.
54142         Substitute LIBTESTS_LIBDEPS.
54143         (func_create_testdir): Combine the uses_subdirs results from
54144         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
54145
54146 2007-12-09  Bruno Haible  <bruno@clisp.org>
54147
54148         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
54149         the build-aux directory.
54150
54151 2007-12-09  Bruno Haible  <bruno@clisp.org>
54152
54153         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
54154         introduced on 2006-09-09.
54155
54156 2007-12-07  Jim Meyering  <meyering@redhat.com>
54157
54158         Let these macros work also with autoconf-2.59.
54159         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
54160         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
54161         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54162
54163 2007-12-06  Jim Meyering  <meyering@redhat.com>
54164
54165         Avoid a configure-time syntax error in gl_FUNC_ACL.
54166         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
54167         function in each branch, before testing the cache variable.
54168
54169 2007-12-04  Eric Blake  <ebb9@byu.net>
54170
54171         Make scripts executable.
54172         * build-aux/config.guess: Add execute permissions.
54173         * build-aux/config.sub: Likewise.
54174         * build-aux/gendocs.sh: Likewise.
54175
54176         Fix frexp on mingw.
54177         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
54178         cross-compiling.
54179         * doc/functions/frexp.texi (frexp): Document the bug.
54180
54181         Make cygwin fseeko check more reliable.
54182         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
54183         version numbers, rather than unrelated feature check.
54184         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
54185         * doc/functions/ftello.texi (ftello): Likewise.
54186         Reported by Bruno Haible.
54187
54188         * m4/strerror.m4: Bump version number.
54189
54190 2007-12-03  Bruno Haible  <bruno@clisp.org>
54191
54192         * doc/functions/mprotect.texi: Mention the mingw problem.
54193
54194 2007-12-03  Eric Blake  <ebb9@byu.net>
54195
54196         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
54197         REPLACE_STRERROR is initialized before this macro.
54198
54199 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54200
54201         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
54202         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
54203         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
54204         put -lsec in even for programs other than 'ls'.  This fixes a problem
54205         for gettext reported by Bruno Haible in
54206         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
54207         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
54208         Add support for Solaris 10.  This isn't efficient, but should get the
54209         job done for now.
54210
54211 2007-12-03  James Youngman  <jay@gnu.org>
54212
54213         * doc/regexprops-generic.texi: change "an close-group" to "a
54214         close-group" and "illegal" to "not allowed".
54215
54216 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54217
54218         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
54219         pr_byname.h. Needed for the rare case when the maintainer has done
54220         "make maintainer-clean" in the source directory and then attempts a
54221         build outside the source directory.
54222         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
54223         scripts_byname.h.
54224
54225 2007-12-02  Martin Lambers <marlam@marlam.de>
54226             Bruno Haible  <bruno@clisp.org>
54227
54228         * lib/getpagesize.h: Remove file.
54229         * lib/unistd.in.h: Include declaration of getpagesize here.
54230         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
54231         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
54232         HAVE_SYS_PARAM_H.
54233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
54234         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54235         * modules/getpagesize (Files): Remove lib/getpagesize.h.
54236         (Depends-on): Add unistd.
54237         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54238         (Include): Use <unistd.h> instead of getpagesize.h.
54239         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
54240         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54241         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
54242         gl_GETPAGESIZE invocation, already handled by module dependency.
54243         * lib/pagealign_alloc.c: Don't include getpagesize.h.
54244
54245 2007-12-02  Bruno Haible  <bruno@clisp.org>
54246
54247         * modules/strings-tests: New file.
54248         * tests/test-strings.c: New file.
54249
54250         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
54251         * lib/strings.in.h: New file.
54252         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
54253         * m4/strings_h.m4: New file.
54254         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
54255         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
54256         * modules/strings: New file.
54257         * modules/string (Makefile.am): Update.
54258         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
54259         Reported by Karl Berry.
54260
54261 2007-12-01  Eric Blake  <ebb9@byu.net>
54262
54263         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
54264         accomodate fix in cygwin 1.5.25.
54265
54266 2007-12-01  Jim Meyering  <meyering@redhat.com>
54267
54268         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
54269         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
54270         that would inhibit utf8-optimization of a regexp containing line-
54271         or buffer-anchors, e.g., `^', `$'.
54272
54273 2007-11-30  Bruno Haible  <bruno@clisp.org>
54274
54275         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
54276         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
54277         glthread_recursive_lock_init.
54278         * lib/lock.c (glthread_recursive_lock_init)
54279         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
54280         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54281
54282 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
54283
54284         New function qset_acl, like set_acl but with syscall semantics.
54285         * lib/acl.h (qset_acl): New decl.
54286         * lib/acl.c (qset_acl): New function.
54287         (set_acl): Use new function.  Use more-consistent diagnostics.
54288
54289 2007-11-28  Jim Meyering  <meyering@redhat.com>
54290
54291         * modules/physmem (License): Change from GPL to LGPLv2+.
54292
54293 2007-11-26  Bruno Haible  <bruno@clisp.org>
54294
54295         * lib/vasnprintf.c (decode_long_double): Don't abort if the
54296         'long double' type has excess precision.
54297         Reported by Jim Meyering in
54298         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
54299
54300 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54301
54302         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
54303         Sync from <http://gnu.org/licenses>.
54304         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
54305         with license text from same location.
54306         * doc/maintain.texi, doc/standards.texi:  Sync from
54307         <http://savannah.gnu.org/projects/gnustandards>.
54308
54309 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
54310         and Jim Meyering  <meyering@redhat.com>
54311
54312         Adjust getdate' grammar to accept a slightly more regular language.
54313         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
54314         Before, the former was rejected.
54315         * lib/getdate.y (digits_to_date_time): New function, factored
54316         out of ...
54317         (number): ...here.  Just call digits_to_date_time.
54318         (hybrid): New non-terminal to handle an <unsigned number,
54319         signed relative offset> sequence consistently.
54320
54321 2007-11-18  Jim Meyering  <meyering@redhat.com>
54322
54323         Pull my changes from coreutils:
54324         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
54325         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
54326         use of $gnulib_tool_option_extras, so that it's separated from the
54327         preceding argument.
54328
54329         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
54330         * build-aux/bootstrap (cp_mark_as_generated): Create any required
54331         parent destination directories before copying a file into place.
54332
54333 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54334
54335         bootstrap: work also with 4-argument variant of AC_INIT
54336         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
54337
54338 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54339
54340         Port test-getaddrinfo to Solaris.
54341         Problem reported by Bruno Haible in
54342         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
54343         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
54344         explanation of setting 'hints'.
54345         Don't reject an implementation merely because it returns EAI_SERVICE.
54346         (EAI_SERVICE): Define to 0 if not defined.
54347
54348 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54349
54350         The license of gnu-make and posix-shell is now "GPLed build tool".
54351         * modules/gnu-make (License): Likewise.
54352         * modules/posix-shell (License): Likewise.
54353
54354         New module posix-shell, for determining a POSIX shell
54355         or perhaps something that is close enough to a POSIX shell.
54356         * m4/posix-shell.m4: New file.
54357         * modules/posix-shell: New file.
54358
54359         * MODULES.html.sh: Mention new module.
54360
54361         New module gnu-make, for determining whether we're using GNU Make.
54362         * m4/gnu-make.m4: New file.
54363         * modules/gnu-make: New file.
54364         * MODULES.html.sh: Mention new module.
54365
54366 2007-11-14  Jim Meyering  <meyering@redhat.com>
54367
54368         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
54369         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
54370         use this macro to create a function _definition_.
54371         Remove useless "#undef ARGMATCH_DIE".
54372
54373 2007-11-14  Bruno Haible  <bruno@clisp.org>
54374
54375         * lib/config.charset: Update for OpenBSD 4.1.
54376         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
54377
54378 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
54379
54380         Document 64-bit #if problems in stdint.texi.
54381         * doc/headers/stdint.texi (stdint.h): Mention problems with
54382         64-bit-#if, and how to work around them.
54383
54384         Don't insist on 'long long int' support in the preprocessor.  It
54385         breaks too many things.  For example, PRIdMAX still uses a 'long
54386         long int' format with the latest Sun compiler, even though
54387         HAVE_LONG_LONG_INT isn't defined due to that compiler's
54388         preprocessor problem.  This causes the latest coreutils to dump
54389         core on Solaris 10 sparc with the Sun C compiler.
54390         Instead, fix the 2007-10-16 problem in a different way, by evaluating
54391         the troublesome expressions at configure-time, not at #if-time.
54392         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
54393         preprocessor.
54394         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
54395         compile-time C checks, done at 'configure'-time.
54396         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
54397         * modules/inttypes (Makefile): Substitute the new symbols that
54398         gl_INTTYPES_H now generates.
54399         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
54400
54401 2007-11-12  Bruno Haible  <bruno@clisp.org>
54402
54403         Tests for Unicode character classification functions.
54404
54405         * modules/unictype/bidicategory-byname-tests: New file.
54406         * modules/unictype/bidicategory-name-tests: New file.
54407         * modules/unictype/bidicategory-of-tests: New file.
54408         * modules/unictype/bidicategory-test-tests: New file.
54409         * modules/unictype/block-list-tests: New file.
54410         * modules/unictype/block-of-tests: New file.
54411         * modules/unictype/block-test-tests: New file.
54412         * modules/unictype/category-C-tests: New file.
54413         * modules/unictype/category-Cc-tests: New file.
54414         * modules/unictype/category-Cf-tests: New file.
54415         * modules/unictype/category-Cn-tests: New file.
54416         * modules/unictype/category-Co-tests: New file.
54417         * modules/unictype/category-Cs-tests: New file.
54418         * modules/unictype/category-L-tests: New file.
54419         * modules/unictype/category-Ll-tests: New file.
54420         * modules/unictype/category-Lm-tests: New file.
54421         * modules/unictype/category-Lo-tests: New file.
54422         * modules/unictype/category-Lt-tests: New file.
54423         * modules/unictype/category-Lu-tests: New file.
54424         * modules/unictype/category-M-tests: New file.
54425         * modules/unictype/category-Mc-tests: New file.
54426         * modules/unictype/category-Me-tests: New file.
54427         * modules/unictype/category-Mn-tests: New file.
54428         * modules/unictype/category-N-tests: New file.
54429         * modules/unictype/category-Nd-tests: New file.
54430         * modules/unictype/category-Nl-tests: New file.
54431         * modules/unictype/category-No-tests: New file.
54432         * modules/unictype/category-P-tests: New file.
54433         * modules/unictype/category-Pc-tests: New file.
54434         * modules/unictype/category-Pd-tests: New file.
54435         * modules/unictype/category-Pe-tests: New file.
54436         * modules/unictype/category-Pf-tests: New file.
54437         * modules/unictype/category-Pi-tests: New file.
54438         * modules/unictype/category-Po-tests: New file.
54439         * modules/unictype/category-Ps-tests: New file.
54440         * modules/unictype/category-S-tests: New file.
54441         * modules/unictype/category-Sc-tests: New file.
54442         * modules/unictype/category-Sk-tests: New file.
54443         * modules/unictype/category-Sm-tests: New file.
54444         * modules/unictype/category-So-tests: New file.
54445         * modules/unictype/category-Z-tests: New file.
54446         * modules/unictype/category-Zl-tests: New file.
54447         * modules/unictype/category-Zp-tests: New file.
54448         * modules/unictype/category-Zs-tests: New file.
54449         * modules/unictype/category-and-not-tests: New file.
54450         * modules/unictype/category-and-tests: New file.
54451         * modules/unictype/category-byname-tests: New file.
54452         * modules/unictype/category-name-tests: New file.
54453         * modules/unictype/category-none-tests: New file.
54454         * modules/unictype/category-of-tests: New file.
54455         * modules/unictype/category-or-tests: New file.
54456         * modules/unictype/category-test-withtable-tests: New file.
54457         * modules/unictype/combining-class-tests: New file.
54458         * modules/unictype/ctype-alnum-tests: New file.
54459         * modules/unictype/ctype-alpha-tests: New file.
54460         * modules/unictype/ctype-blank-tests: New file.
54461         * modules/unictype/ctype-cntrl-tests: New file.
54462         * modules/unictype/ctype-digit-tests: New file.
54463         * modules/unictype/ctype-graph-tests: New file.
54464         * modules/unictype/ctype-lower-tests: New file.
54465         * modules/unictype/ctype-print-tests: New file.
54466         * modules/unictype/ctype-punct-tests: New file.
54467         * modules/unictype/ctype-space-tests: New file.
54468         * modules/unictype/ctype-upper-tests: New file.
54469         * modules/unictype/ctype-xdigit-tests: New file.
54470         * modules/unictype/decimal-digit-tests: New file.
54471         * modules/unictype/digit-tests: New file.
54472         * modules/unictype/mirror-tests: New file.
54473         * modules/unictype/numeric-tests: New file.
54474         * modules/unictype/property-alphabetic-tests: New file.
54475         * modules/unictype/property-ascii-hex-digit-tests: New file.
54476         * modules/unictype/property-bidi-arabic-digit-tests: New file.
54477         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
54478         * modules/unictype/property-bidi-block-separator-tests: New file.
54479         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
54480         * modules/unictype/property-bidi-common-separator-tests: New file.
54481         * modules/unictype/property-bidi-control-tests: New file.
54482         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
54483         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
54484         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
54485         * modules/unictype/property-bidi-european-digit-tests: New file.
54486         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
54487         * modules/unictype/property-bidi-left-to-right-tests: New file.
54488         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
54489         * modules/unictype/property-bidi-other-neutral-tests: New file.
54490         * modules/unictype/property-bidi-pdf-tests: New file.
54491         * modules/unictype/property-bidi-segment-separator-tests: New file.
54492         * modules/unictype/property-bidi-whitespace-tests: New file.
54493         * modules/unictype/property-byname-tests: New file.
54494         * modules/unictype/property-combining-tests: New file.
54495         * modules/unictype/property-composite-tests: New file.
54496         * modules/unictype/property-currency-symbol-tests: New file.
54497         * modules/unictype/property-dash-tests: New file.
54498         * modules/unictype/property-decimal-digit-tests: New file.
54499         * modules/unictype/property-default-ignorable-code-point-tests: New file.
54500         * modules/unictype/property-deprecated-tests: New file.
54501         * modules/unictype/property-diacritic-tests: New file.
54502         * modules/unictype/property-extender-tests: New file.
54503         * modules/unictype/property-format-control-tests: New file.
54504         * modules/unictype/property-grapheme-base-tests: New file.
54505         * modules/unictype/property-grapheme-extend-tests: New file.
54506         * modules/unictype/property-grapheme-link-tests: New file.
54507         * modules/unictype/property-hex-digit-tests: New file.
54508         * modules/unictype/property-hyphen-tests: New file.
54509         * modules/unictype/property-id-continue-tests: New file.
54510         * modules/unictype/property-id-start-tests: New file.
54511         * modules/unictype/property-ideographic-tests: New file.
54512         * modules/unictype/property-ids-binary-operator-tests: New file.
54513         * modules/unictype/property-ids-trinary-operator-tests: New file.
54514         * modules/unictype/property-ignorable-control-tests: New file.
54515         * modules/unictype/property-iso-control-tests: New file.
54516         * modules/unictype/property-join-control-tests: New file.
54517         * modules/unictype/property-left-of-pair-tests: New file.
54518         * modules/unictype/property-line-separator-tests: New file.
54519         * modules/unictype/property-logical-order-exception-tests: New file.
54520         * modules/unictype/property-lowercase-tests: New file.
54521         * modules/unictype/property-math-tests: New file.
54522         * modules/unictype/property-non-break-tests: New file.
54523         * modules/unictype/property-not-a-character-tests: New file.
54524         * modules/unictype/property-numeric-tests: New file.
54525         * modules/unictype/property-other-alphabetic-tests: New file.
54526         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
54527         * modules/unictype/property-other-grapheme-extend-tests: New file.
54528         * modules/unictype/property-other-id-continue-tests: New file.
54529         * modules/unictype/property-other-id-start-tests: New file.
54530         * modules/unictype/property-other-lowercase-tests: New file.
54531         * modules/unictype/property-other-math-tests: New file.
54532         * modules/unictype/property-other-uppercase-tests: New file.
54533         * modules/unictype/property-paired-punctuation-tests: New file.
54534         * modules/unictype/property-paragraph-separator-tests: New file.
54535         * modules/unictype/property-pattern-syntax-tests: New file.
54536         * modules/unictype/property-pattern-white-space-tests: New file.
54537         * modules/unictype/property-private-use-tests: New file.
54538         * modules/unictype/property-punctuation-tests: New file.
54539         * modules/unictype/property-quotation-mark-tests: New file.
54540         * modules/unictype/property-radical-tests: New file.
54541         * modules/unictype/property-sentence-terminal-tests: New file.
54542         * modules/unictype/property-soft-dotted-tests: New file.
54543         * modules/unictype/property-space-tests: New file.
54544         * modules/unictype/property-terminal-punctuation-tests: New file.
54545         * modules/unictype/property-test-tests: New file.
54546         * modules/unictype/property-titlecase-tests: New file.
54547         * modules/unictype/property-unassigned-code-value-tests: New file.
54548         * modules/unictype/property-unified-ideograph-tests: New file.
54549         * modules/unictype/property-uppercase-tests: New file.
54550         * modules/unictype/property-variation-selector-tests: New file.
54551         * modules/unictype/property-white-space-tests: New file.
54552         * modules/unictype/property-xid-continue-tests: New file.
54553         * modules/unictype/property-xid-start-tests: New file.
54554         * modules/unictype/property-zero-width-tests: New file.
54555         * modules/unictype/scripts-tests: New file.
54556         * modules/unictype/syntax-c-ident-tests: New file.
54557         * modules/unictype/syntax-c-whitespace-tests: New file.
54558         * modules/unictype/syntax-java-ident-tests: New file.
54559         * modules/unictype/syntax-java-whitespace-tests: New file.
54560         * tests/unictype/test-bidi_byname.c: New file.
54561         * tests/unictype/test-bidi_name.c: New file.
54562         * tests/unictype/test-bidi_of.c: New file.
54563         * tests/unictype/test-bidi_test.c: New file.
54564         * tests/unictype/test-block_list.c: New file.
54565         * tests/unictype/test-block_of.c: New file.
54566         * tests/unictype/test-block_test.c: New file.
54567         * tests/unictype/test-categ_and.c: New file.
54568         * tests/unictype/test-categ_and_not.c: New file.
54569         * tests/unictype/test-categ_byname.c: New file.
54570         * tests/unictype/test-categ_name.c: New file.
54571         * tests/unictype/test-categ_none.c: New file.
54572         * tests/unictype/test-categ_of.c: New file.
54573         * tests/unictype/test-categ_or.c: New file.
54574         * tests/unictype/test-categ_test_withtable.c: New file.
54575         * tests/unictype/test-combining.c: New file.
54576         * tests/unictype/test-decdigit.c: New file.
54577         * tests/unictype/test-digit.c: New file.
54578         * tests/unictype/test-mirror.c: New file.
54579         * tests/unictype/test-numeric.c: New file.
54580         * tests/unictype/test-pr_byname.c: New file.
54581         * tests/unictype/test-pr_test.c: New file.
54582         * tests/unictype/test-predicate-part1.h: New file.
54583         * tests/unictype/test-predicate-part2.h: New file.
54584         * tests/unictype/test-scripts.c: New file.
54585         * tests/unictype/test-sy_c_ident.c: New file.
54586         * tests/unictype/test-sy_java_ident.c: New file.
54587
54588         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
54589         for Unicode 5.0.0.
54590         * tests/unictype/test-categ_Cc.c: Likewise.
54591         * tests/unictype/test-categ_Cf.c: Likewise.
54592         * tests/unictype/test-categ_Cn.c: Likewise.
54593         * tests/unictype/test-categ_Co.c: Likewise.
54594         * tests/unictype/test-categ_Cs.c: Likewise.
54595         * tests/unictype/test-categ_L.c: Likewise.
54596         * tests/unictype/test-categ_Ll.c: Likewise.
54597         * tests/unictype/test-categ_Lm.c: Likewise.
54598         * tests/unictype/test-categ_Lo.c: Likewise.
54599         * tests/unictype/test-categ_Lt.c: Likewise.
54600         * tests/unictype/test-categ_Lu.c: Likewise.
54601         * tests/unictype/test-categ_M.c: Likewise.
54602         * tests/unictype/test-categ_Mc.c: Likewise.
54603         * tests/unictype/test-categ_Me.c: Likewise.
54604         * tests/unictype/test-categ_Mn.c: Likewise.
54605         * tests/unictype/test-categ_N.c: Likewise.
54606         * tests/unictype/test-categ_Nd.c: Likewise.
54607         * tests/unictype/test-categ_Nl.c: Likewise.
54608         * tests/unictype/test-categ_No.c: Likewise.
54609         * tests/unictype/test-categ_P.c: Likewise.
54610         * tests/unictype/test-categ_Pc.c: Likewise.
54611         * tests/unictype/test-categ_Pd.c: Likewise.
54612         * tests/unictype/test-categ_Pe.c: Likewise.
54613         * tests/unictype/test-categ_Pf.c: Likewise.
54614         * tests/unictype/test-categ_Pi.c: Likewise.
54615         * tests/unictype/test-categ_Po.c: Likewise.
54616         * tests/unictype/test-categ_Ps.c: Likewise.
54617         * tests/unictype/test-categ_S.c: Likewise.
54618         * tests/unictype/test-categ_Sc.c: Likewise.
54619         * tests/unictype/test-categ_Sk.c: Likewise.
54620         * tests/unictype/test-categ_Sm.c: Likewise.
54621         * tests/unictype/test-categ_So.c: Likewise.
54622         * tests/unictype/test-categ_Z.c: Likewise.
54623         * tests/unictype/test-categ_Zl.c: Likewise.
54624         * tests/unictype/test-categ_Zp.c: Likewise.
54625         * tests/unictype/test-categ_Zs.c: Likewise.
54626         * tests/unictype/test-ctype_alnum.c: Likewise.
54627         * tests/unictype/test-ctype_alpha.c: Likewise.
54628         * tests/unictype/test-ctype_blank.c: Likewise.
54629         * tests/unictype/test-ctype_cntrl.c: Likewise.
54630         * tests/unictype/test-ctype_digit.c: Likewise.
54631         * tests/unictype/test-ctype_graph.c: Likewise.
54632         * tests/unictype/test-ctype_lower.c: Likewise.
54633         * tests/unictype/test-ctype_print.c: Likewise.
54634         * tests/unictype/test-ctype_punct.c: Likewise.
54635         * tests/unictype/test-ctype_space.c: Likewise.
54636         * tests/unictype/test-ctype_upper.c: Likewise.
54637         * tests/unictype/test-ctype_xdigit.c: Likewise.
54638         * tests/unictype/test-decdigit.h: Likewise.
54639         * tests/unictype/test-digit.h: Likewise.
54640         * tests/unictype/test-numeric.h: Likewise.
54641         * tests/unictype/test-pr_alphabetic.c: Likewise.
54642         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54643         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54644         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54645         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54646         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54647         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54648         * tests/unictype/test-pr_bidi_control.c: Likewise.
54649         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54650         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54651         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54652         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54653         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54654         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54655         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54656         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54657         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54658         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54659         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54660         * tests/unictype/test-pr_combining.c: Likewise.
54661         * tests/unictype/test-pr_composite.c: Likewise.
54662         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54663         * tests/unictype/test-pr_dash.c: Likewise.
54664         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54665         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54666         * tests/unictype/test-pr_deprecated.c: Likewise.
54667         * tests/unictype/test-pr_diacritic.c: Likewise.
54668         * tests/unictype/test-pr_extender.c: Likewise.
54669         * tests/unictype/test-pr_format_control.c: Likewise.
54670         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54671         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54672         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54673         * tests/unictype/test-pr_hex_digit.c: Likewise.
54674         * tests/unictype/test-pr_hyphen.c: Likewise.
54675         * tests/unictype/test-pr_id_continue.c: Likewise.
54676         * tests/unictype/test-pr_id_start.c: Likewise.
54677         * tests/unictype/test-pr_ideographic.c: Likewise.
54678         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54679         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54680         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54681         * tests/unictype/test-pr_iso_control.c: Likewise.
54682         * tests/unictype/test-pr_join_control.c: Likewise.
54683         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54684         * tests/unictype/test-pr_line_separator.c: Likewise.
54685         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54686         * tests/unictype/test-pr_lowercase.c: Likewise.
54687         * tests/unictype/test-pr_math.c: Likewise.
54688         * tests/unictype/test-pr_non_break.c: Likewise.
54689         * tests/unictype/test-pr_not_a_character.c: Likewise.
54690         * tests/unictype/test-pr_numeric.c: Likewise.
54691         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54692         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
54693         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
54694         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54695         * tests/unictype/test-pr_other_id_start.c: Likewise.
54696         * tests/unictype/test-pr_other_lowercase.c: Likewise.
54697         * tests/unictype/test-pr_other_math.c: Likewise.
54698         * tests/unictype/test-pr_other_uppercase.c: Likewise.
54699         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
54700         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
54701         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
54702         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
54703         * tests/unictype/test-pr_private_use.c: Likewise.
54704         * tests/unictype/test-pr_punctuation.c: Likewise.
54705         * tests/unictype/test-pr_quotation_mark.c: Likewise.
54706         * tests/unictype/test-pr_radical.c: Likewise.
54707         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54708         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54709         * tests/unictype/test-pr_space.c: Likewise.
54710         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54711         * tests/unictype/test-pr_titlecase.c: Likewise.
54712         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54713         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54714         * tests/unictype/test-pr_uppercase.c: Likewise.
54715         * tests/unictype/test-pr_variation_selector.c: Likewise.
54716         * tests/unictype/test-pr_white_space.c: Likewise.
54717         * tests/unictype/test-pr_xid_continue.c: Likewise.
54718         * tests/unictype/test-pr_xid_start.c: Likewise.
54719         * tests/unictype/test-pr_zero_width.c: Likewise.
54720         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54721         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54722
54723 2007-11-12  Bruno Haible  <bruno@clisp.org>
54724
54725         Unicode character classification functions.
54726         * lib/unictype.h: New file.
54727         * modules/unictype/base: New file.
54728         * modules/unictype/category-L: New file.
54729         * modules/unictype/category-Lu: New file.
54730         * modules/unictype/category-Ll: New file.
54731         * modules/unictype/category-Lt: New file.
54732         * modules/unictype/category-Lm: New file.
54733         * modules/unictype/category-Lo: New file.
54734         * modules/unictype/category-M: New file.
54735         * modules/unictype/category-Mn: New file.
54736         * modules/unictype/category-Mc: New file.
54737         * modules/unictype/category-Me: New file.
54738         * modules/unictype/category-N: New file.
54739         * modules/unictype/category-Nd: New file.
54740         * modules/unictype/category-Nl: New file.
54741         * modules/unictype/category-No: New file.
54742         * modules/unictype/category-P: New file.
54743         * modules/unictype/category-Pc: New file.
54744         * modules/unictype/category-Pd: New file.
54745         * modules/unictype/category-Ps: New file.
54746         * modules/unictype/category-Pe: New file.
54747         * modules/unictype/category-Pi: New file.
54748         * modules/unictype/category-Pf: New file.
54749         * modules/unictype/category-Po: New file.
54750         * modules/unictype/category-S: New file.
54751         * modules/unictype/category-Sm: New file.
54752         * modules/unictype/category-Sc: New file.
54753         * modules/unictype/category-Sk: New file.
54754         * modules/unictype/category-So: New file.
54755         * modules/unictype/category-Z: New file.
54756         * modules/unictype/category-Zs: New file.
54757         * modules/unictype/category-Zl: New file.
54758         * modules/unictype/category-Zp: New file.
54759         * modules/unictype/category-C: New file.
54760         * modules/unictype/category-Cc: New file.
54761         * modules/unictype/category-Cf: New file.
54762         * modules/unictype/category-Cs: New file.
54763         * modules/unictype/category-Co: New file.
54764         * modules/unictype/category-Cn: New file.
54765         * modules/unictype/category-or: New file.
54766         * modules/unictype/category-of: New file.
54767         * modules/unictype/category-test: New file.
54768         * modules/unictype/category-test-withtable: New file.
54769         * modules/unictype/category-byname: New file.
54770         * modules/unictype/category-none: New file.
54771         * modules/unictype/category-and: New file.
54772         * modules/unictype/category-and-not: New file.
54773         * modules/unictype/category-name: New file.
54774         * modules/unictype/combining-class: New file.
54775         * modules/unictype/category-all: New file.
54776         * modules/unictype/bidicategory-all: New file.
54777         * modules/unictype/bidicategory-byname: New file.
54778         * modules/unictype/bidicategory-name: New file.
54779         * modules/unictype/bidicategory-of: New file.
54780         * modules/unictype/bidicategory-test: New file.
54781         * modules/unictype/decimal-digit: New file.
54782         * modules/unictype/digit: New file.
54783         * modules/unictype/numeric: New file.
54784         * modules/unictype/mirror: New file.
54785         * modules/unictype/property-white-space: New file.
54786         * modules/unictype/property-alphabetic: New file.
54787         * modules/unictype/property-other-alphabetic: New file.
54788         * modules/unictype/property-not-a-character: New file.
54789         * modules/unictype/property-default-ignorable-code-point: New file.
54790         * modules/unictype/property-other-default-ignorable-code-point: New
54791         file.
54792         * modules/unictype/property-deprecated: New file.
54793         * modules/unictype/property-logical-order-exception: New file.
54794         * modules/unictype/property-variation-selector: New file.
54795         * modules/unictype/property-private-use: New file.
54796         * modules/unictype/property-unassigned-code-value: New file.
54797         * modules/unictype/property-uppercase: New file.
54798         * modules/unictype/property-other-uppercase: New file.
54799         * modules/unictype/property-lowercase: New file.
54800         * modules/unictype/property-other-lowercase: New file.
54801         * modules/unictype/property-titlecase: New file.
54802         * modules/unictype/property-soft-dotted: New file.
54803         * modules/unictype/property-id-start: New file.
54804         * modules/unictype/property-other-id-start: New file.
54805         * modules/unictype/property-id-continue: New file.
54806         * modules/unictype/property-other-id-continue: New file.
54807         * modules/unictype/property-xid-start: New file.
54808         * modules/unictype/property-xid-continue: New file.
54809         * modules/unictype/property-pattern-white-space: New file.
54810         * modules/unictype/property-pattern-syntax: New file.
54811         * modules/unictype/property-join-control: New file.
54812         * modules/unictype/property-grapheme-base: New file.
54813         * modules/unictype/property-grapheme-extend: New file.
54814         * modules/unictype/property-other-grapheme-extend: New file.
54815         * modules/unictype/property-grapheme-link: New file.
54816         * modules/unictype/property-bidi-control: New file.
54817         * modules/unictype/property-bidi-left-to-right: New file.
54818         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54819         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54820         * modules/unictype/property-bidi-european-digit: New file.
54821         * modules/unictype/property-bidi-eur-num-separator: New file.
54822         * modules/unictype/property-bidi-eur-num-terminator: New file.
54823         * modules/unictype/property-bidi-arabic-digit: New file.
54824         * modules/unictype/property-bidi-common-separator: New file.
54825         * modules/unictype/property-bidi-block-separator: New file.
54826         * modules/unictype/property-bidi-segment-separator: New file.
54827         * modules/unictype/property-bidi-whitespace: New file.
54828         * modules/unictype/property-bidi-non-spacing-mark: New file.
54829         * modules/unictype/property-bidi-boundary-neutral: New file.
54830         * modules/unictype/property-bidi-pdf: New file.
54831         * modules/unictype/property-bidi-embedding-or-override: New file.
54832         * modules/unictype/property-bidi-other-neutral: New file.
54833         * modules/unictype/property-hex-digit: New file.
54834         * modules/unictype/property-ascii-hex-digit: New file.
54835         * modules/unictype/property-ideographic: New file.
54836         * modules/unictype/property-unified-ideograph: New file.
54837         * modules/unictype/property-radical: New file.
54838         * modules/unictype/property-ids-binary-operator: New file.
54839         * modules/unictype/property-ids-trinary-operator: New file.
54840         * modules/unictype/property-zero-width: New file.
54841         * modules/unictype/property-space: New file.
54842         * modules/unictype/property-non-break: New file.
54843         * modules/unictype/property-iso-control: New file.
54844         * modules/unictype/property-format-control: New file.
54845         * modules/unictype/property-dash: New file.
54846         * modules/unictype/property-hyphen: New file.
54847         * modules/unictype/property-punctuation: New file.
54848         * modules/unictype/property-line-separator: New file.
54849         * modules/unictype/property-paragraph-separator: New file.
54850         * modules/unictype/property-quotation-mark: New file.
54851         * modules/unictype/property-sentence-terminal: New file.
54852         * modules/unictype/property-terminal-punctuation: New file.
54853         * modules/unictype/property-currency-symbol: New file.
54854         * modules/unictype/property-math: New file.
54855         * modules/unictype/property-other-math: New file.
54856         * modules/unictype/property-paired-punctuation: New file.
54857         * modules/unictype/property-left-of-pair: New file.
54858         * modules/unictype/property-combining: New file.
54859         * modules/unictype/property-composite: New file.
54860         * modules/unictype/property-decimal-digit: New file.
54861         * modules/unictype/property-numeric: New file.
54862         * modules/unictype/property-diacritic: New file.
54863         * modules/unictype/property-extender: New file.
54864         * modules/unictype/property-ignorable-control: New file.
54865         * modules/unictype/property-test: New file.
54866         * modules/unictype/property-byname: New file.
54867         * modules/unictype/property-all: New file.
54868         * modules/unictype/scripts: New file.
54869         * modules/unictype/scripts-all: New file.
54870         * modules/unictype/block-of: New file.
54871         * modules/unictype/block-test: New file.
54872         * modules/unictype/block-list: New file.
54873         * modules/unictype/block-all: New file.
54874         * modules/unictype/syntax-c-whitespace: New file.
54875         * modules/unictype/syntax-java-whitespace: New file.
54876         * modules/unictype/syntax-c-ident: New file.
54877         * modules/unictype/syntax-java-ident: New file.
54878         * modules/unictype/ctype-alnum: New file.
54879         * modules/unictype/ctype-alpha: New file.
54880         * modules/unictype/ctype-cntrl: New file.
54881         * modules/unictype/ctype-digit: New file.
54882         * modules/unictype/ctype-graph: New file.
54883         * modules/unictype/ctype-lower: New file.
54884         * modules/unictype/ctype-print: New file.
54885         * modules/unictype/ctype-punct: New file.
54886         * modules/unictype/ctype-space: New file.
54887         * modules/unictype/ctype-upper: New file.
54888         * modules/unictype/ctype-xdigit: New file.
54889         * modules/unictype/ctype-blank: New file.
54890         * lib/unictype/bidi_byname.c: New file.
54891         * lib/unictype/bidi_name.c: New file.
54892         * lib/unictype/bidi_of.c: New file.
54893         * lib/unictype/bidi_test.c: New file.
54894         * lib/unictype/bitmap.h: New file.
54895         * lib/unictype/block_test.c: New file.
54896         * lib/unictype/blocks.c: New file.
54897         * lib/unictype/categ_C.c: New file.
54898         * lib/unictype/categ_Cc.c: New file.
54899         * lib/unictype/categ_Cf.c: New file.
54900         * lib/unictype/categ_Cn.c: New file.
54901         * lib/unictype/categ_Co.c: New file.
54902         * lib/unictype/categ_Cs.c: New file.
54903         * lib/unictype/categ_L.c: New file.
54904         * lib/unictype/categ_Ll.c: New file.
54905         * lib/unictype/categ_Lm.c: New file.
54906         * lib/unictype/categ_Lo.c: New file.
54907         * lib/unictype/categ_Lt.c: New file.
54908         * lib/unictype/categ_Lu.c: New file.
54909         * lib/unictype/categ_M.c: New file.
54910         * lib/unictype/categ_Mc.c: New file.
54911         * lib/unictype/categ_Me.c: New file.
54912         * lib/unictype/categ_Mn.c: New file.
54913         * lib/unictype/categ_N.c: New file.
54914         * lib/unictype/categ_Nd.c: New file.
54915         * lib/unictype/categ_Nl.c: New file.
54916         * lib/unictype/categ_No.c: New file.
54917         * lib/unictype/categ_P.c: New file.
54918         * lib/unictype/categ_Pc.c: New file.
54919         * lib/unictype/categ_Pd.c: New file.
54920         * lib/unictype/categ_Pe.c: New file.
54921         * lib/unictype/categ_Pf.c: New file.
54922         * lib/unictype/categ_Pi.c: New file.
54923         * lib/unictype/categ_Po.c: New file.
54924         * lib/unictype/categ_Ps.c: New file.
54925         * lib/unictype/categ_S.c: New file.
54926         * lib/unictype/categ_Sc.c: New file.
54927         * lib/unictype/categ_Sk.c: New file.
54928         * lib/unictype/categ_Sm.c: New file.
54929         * lib/unictype/categ_So.c: New file.
54930         * lib/unictype/categ_Z.c: New file.
54931         * lib/unictype/categ_Zl.c: New file.
54932         * lib/unictype/categ_Zp.c: New file.
54933         * lib/unictype/categ_Zs.c: New file.
54934         * lib/unictype/categ_and.c: New file.
54935         * lib/unictype/categ_and_not.c: New file.
54936         * lib/unictype/categ_byname.c: New file.
54937         * lib/unictype/categ_name.c: New file.
54938         * lib/unictype/categ_none.c: New file.
54939         * lib/unictype/categ_of.c: New file.
54940         * lib/unictype/categ_or.c: New file.
54941         * lib/unictype/categ_test.c: New file.
54942         * lib/unictype/combining.c: New file.
54943         * lib/unictype/ctype_alnum.c: New file.
54944         * lib/unictype/ctype_alpha.c: New file.
54945         * lib/unictype/ctype_blank.c: New file.
54946         * lib/unictype/ctype_cntrl.c: New file.
54947         * lib/unictype/ctype_digit.c: New file.
54948         * lib/unictype/ctype_graph.c: New file.
54949         * lib/unictype/ctype_lower.c: New file.
54950         * lib/unictype/ctype_print.c: New file.
54951         * lib/unictype/ctype_punct.c: New file.
54952         * lib/unictype/ctype_space.c: New file.
54953         * lib/unictype/ctype_upper.c: New file.
54954         * lib/unictype/ctype_xdigit.c: New file.
54955         * lib/unictype/decdigit.c: New file.
54956         * lib/unictype/digit.c: New file.
54957         * lib/unictype/identsyntaxmap.h: New file.
54958         * lib/unictype/mirror.c: New file.
54959         * lib/unictype/numeric.c: New file.
54960         * lib/unictype/pr_alphabetic.c: New file.
54961         * lib/unictype/pr_ascii_hex_digit.c: New file.
54962         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54963         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54964         * lib/unictype/pr_bidi_block_separator.c: New file.
54965         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54966         * lib/unictype/pr_bidi_common_separator.c: New file.
54967         * lib/unictype/pr_bidi_control.c: New file.
54968         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54969         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54970         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54971         * lib/unictype/pr_bidi_european_digit.c: New file.
54972         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54973         * lib/unictype/pr_bidi_left_to_right.c: New file.
54974         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54975         * lib/unictype/pr_bidi_other_neutral.c: New file.
54976         * lib/unictype/pr_bidi_pdf.c: New file.
54977         * lib/unictype/pr_bidi_segment_separator.c: New file.
54978         * lib/unictype/pr_bidi_whitespace.c: New file.
54979         * lib/unictype/pr_byname.c: New file.
54980         * lib/unictype/pr_byname.gperf: New file.
54981         * lib/unictype/pr_combining.c: New file.
54982         * lib/unictype/pr_composite.c: New file.
54983         * lib/unictype/pr_currency_symbol.c: New file.
54984         * lib/unictype/pr_dash.c: New file.
54985         * lib/unictype/pr_decimal_digit.c: New file.
54986         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54987         * lib/unictype/pr_deprecated.c: New file.
54988         * lib/unictype/pr_diacritic.c: New file.
54989         * lib/unictype/pr_extender.c: New file.
54990         * lib/unictype/pr_format_control.c: New file.
54991         * lib/unictype/pr_grapheme_base.c: New file.
54992         * lib/unictype/pr_grapheme_extend.c: New file.
54993         * lib/unictype/pr_grapheme_link.c: New file.
54994         * lib/unictype/pr_hex_digit.c: New file.
54995         * lib/unictype/pr_hyphen.c: New file.
54996         * lib/unictype/pr_id_continue.c: New file.
54997         * lib/unictype/pr_id_start.c: New file.
54998         * lib/unictype/pr_ideographic.c: New file.
54999         * lib/unictype/pr_ids_binary_operator.c: New file.
55000         * lib/unictype/pr_ids_trinary_operator.c: New file.
55001         * lib/unictype/pr_ignorable_control.c: New file.
55002         * lib/unictype/pr_iso_control.c: New file.
55003         * lib/unictype/pr_join_control.c: New file.
55004         * lib/unictype/pr_left_of_pair.c: New file.
55005         * lib/unictype/pr_line_separator.c: New file.
55006         * lib/unictype/pr_logical_order_exception.c: New file.
55007         * lib/unictype/pr_lowercase.c: New file.
55008         * lib/unictype/pr_math.c: New file.
55009         * lib/unictype/pr_non_break.c: New file.
55010         * lib/unictype/pr_not_a_character.c: New file.
55011         * lib/unictype/pr_numeric.c: New file.
55012         * lib/unictype/pr_other_alphabetic.c: New file.
55013         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
55014         * lib/unictype/pr_other_grapheme_extend.c: New file.
55015         * lib/unictype/pr_other_id_continue.c: New file.
55016         * lib/unictype/pr_other_id_start.c: New file.
55017         * lib/unictype/pr_other_lowercase.c: New file.
55018         * lib/unictype/pr_other_math.c: New file.
55019         * lib/unictype/pr_other_uppercase.c: New file.
55020         * lib/unictype/pr_paired_punctuation.c: New file.
55021         * lib/unictype/pr_paragraph_separator.c: New file.
55022         * lib/unictype/pr_pattern_syntax.c: New file.
55023         * lib/unictype/pr_pattern_white_space.c: New file.
55024         * lib/unictype/pr_private_use.c: New file.
55025         * lib/unictype/pr_punctuation.c: New file.
55026         * lib/unictype/pr_quotation_mark.c: New file.
55027         * lib/unictype/pr_radical.c: New file.
55028         * lib/unictype/pr_sentence_terminal.c: New file.
55029         * lib/unictype/pr_soft_dotted.c: New file.
55030         * lib/unictype/pr_space.c: New file.
55031         * lib/unictype/pr_terminal_punctuation.c: New file.
55032         * lib/unictype/pr_test.c: New file.
55033         * lib/unictype/pr_titlecase.c: New file.
55034         * lib/unictype/pr_unassigned_code_value.c: New file.
55035         * lib/unictype/pr_unified_ideograph.c: New file.
55036         * lib/unictype/pr_uppercase.c: New file.
55037         * lib/unictype/pr_variation_selector.c: New file.
55038         * lib/unictype/pr_white_space.c: New file.
55039         * lib/unictype/pr_xid_continue.c: New file.
55040         * lib/unictype/pr_xid_start.c: New file.
55041         * lib/unictype/pr_zero_width.c: New file.
55042         * lib/unictype/scripts.c: New file.
55043         * lib/unictype/sy_c_ident.c: New file.
55044         * lib/unictype/sy_c_whitespace.c: New file.
55045         * lib/unictype/sy_java_ident.c: New file.
55046         * lib/unictype/sy_java_whitespace.c: New file.
55047
55048         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
55049         Unicode 5.0.0.
55050         * lib/unictype/blocks.h: Likewise.
55051         * lib/unictype/categ_C.h: Likewise.
55052         * lib/unictype/categ_Cc.h: Likewise.
55053         * lib/unictype/categ_Cf.h: Likewise.
55054         * lib/unictype/categ_Cn.h: Likewise.
55055         * lib/unictype/categ_Co.h: Likewise.
55056         * lib/unictype/categ_Cs.h: Likewise.
55057         * lib/unictype/categ_L.h: Likewise.
55058         * lib/unictype/categ_Ll.h: Likewise.
55059         * lib/unictype/categ_Lm.h: Likewise.
55060         * lib/unictype/categ_Lo.h: Likewise.
55061         * lib/unictype/categ_Lt.h: Likewise.
55062         * lib/unictype/categ_Lu.h: Likewise.
55063         * lib/unictype/categ_M.h: Likewise.
55064         * lib/unictype/categ_Mc.h: Likewise.
55065         * lib/unictype/categ_Me.h: Likewise.
55066         * lib/unictype/categ_Mn.h: Likewise.
55067         * lib/unictype/categ_N.h: Likewise.
55068         * lib/unictype/categ_Nd.h: Likewise.
55069         * lib/unictype/categ_Nl.h: Likewise.
55070         * lib/unictype/categ_No.h: Likewise.
55071         * lib/unictype/categ_P.h: Likewise.
55072         * lib/unictype/categ_Pc.h: Likewise.
55073         * lib/unictype/categ_Pd.h: Likewise.
55074         * lib/unictype/categ_Pe.h: Likewise.
55075         * lib/unictype/categ_Pf.h: Likewise.
55076         * lib/unictype/categ_Pi.h: Likewise.
55077         * lib/unictype/categ_Po.h: Likewise.
55078         * lib/unictype/categ_Ps.h: Likewise.
55079         * lib/unictype/categ_S.h: Likewise.
55080         * lib/unictype/categ_Sc.h: Likewise.
55081         * lib/unictype/categ_Sk.h: Likewise.
55082         * lib/unictype/categ_Sm.h: Likewise.
55083         * lib/unictype/categ_So.h: Likewise.
55084         * lib/unictype/categ_Z.h: Likewise.
55085         * lib/unictype/categ_Zl.h: Likewise.
55086         * lib/unictype/categ_Zp.h: Likewise.
55087         * lib/unictype/categ_Zs.h: Likewise.
55088         * lib/unictype/categ_of.h: Likewise.
55089         * lib/unictype/combining.h: Likewise.
55090         * lib/unictype/ctype_alnum.h: Likewise.
55091         * lib/unictype/ctype_alpha.h: Likewise.
55092         * lib/unictype/ctype_blank.h: Likewise.
55093         * lib/unictype/ctype_cntrl.h: Likewise.
55094         * lib/unictype/ctype_digit.h: Likewise.
55095         * lib/unictype/ctype_graph.h: Likewise.
55096         * lib/unictype/ctype_lower.h: Likewise.
55097         * lib/unictype/ctype_print.h: Likewise.
55098         * lib/unictype/ctype_punct.h: Likewise.
55099         * lib/unictype/ctype_space.h: Likewise.
55100         * lib/unictype/ctype_upper.h: Likewise.
55101         * lib/unictype/ctype_xdigit.h: Likewise.
55102         * lib/unictype/decdigit.h: Likewise.
55103         * lib/unictype/digit.h: Likewise.
55104         * lib/unictype/mirror.h: Likewise.
55105         * lib/unictype/numeric.h: Likewise.
55106         * lib/unictype/pr_alphabetic.h: Likewise.
55107         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55108         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55109         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55110         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55111         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55112         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55113         * lib/unictype/pr_bidi_control.h: Likewise.
55114         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55115         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55116         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55117         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55118         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55119         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55120         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55121         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55122         * lib/unictype/pr_bidi_pdf.h: Likewise.
55123         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55124         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55125         * lib/unictype/pr_combining.h: Likewise.
55126         * lib/unictype/pr_composite.h: Likewise.
55127         * lib/unictype/pr_currency_symbol.h: Likewise.
55128         * lib/unictype/pr_dash.h: Likewise.
55129         * lib/unictype/pr_decimal_digit.h: Likewise.
55130         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55131         * lib/unictype/pr_deprecated.h: Likewise.
55132         * lib/unictype/pr_diacritic.h: Likewise.
55133         * lib/unictype/pr_extender.h: Likewise.
55134         * lib/unictype/pr_format_control.h: Likewise.
55135         * lib/unictype/pr_grapheme_base.h: Likewise.
55136         * lib/unictype/pr_grapheme_extend.h: Likewise.
55137         * lib/unictype/pr_grapheme_link.h: Likewise.
55138         * lib/unictype/pr_hex_digit.h: Likewise.
55139         * lib/unictype/pr_hyphen.h: Likewise.
55140         * lib/unictype/pr_id_continue.h: Likewise.
55141         * lib/unictype/pr_id_start.h: Likewise.
55142         * lib/unictype/pr_ideographic.h: Likewise.
55143         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55144         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55145         * lib/unictype/pr_ignorable_control.h: Likewise.
55146         * lib/unictype/pr_iso_control.h: Likewise.
55147         * lib/unictype/pr_join_control.h: Likewise.
55148         * lib/unictype/pr_left_of_pair.h: Likewise.
55149         * lib/unictype/pr_line_separator.h: Likewise.
55150         * lib/unictype/pr_logical_order_exception.h: Likewise.
55151         * lib/unictype/pr_lowercase.h: Likewise.
55152         * lib/unictype/pr_math.h: Likewise.
55153         * lib/unictype/pr_non_break.h: Likewise.
55154         * lib/unictype/pr_not_a_character.h: Likewise.
55155         * lib/unictype/pr_numeric.h: Likewise.
55156         * lib/unictype/pr_other_alphabetic.h: Likewise.
55157         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55158         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55159         * lib/unictype/pr_other_id_continue.h: Likewise.
55160         * lib/unictype/pr_other_id_start.h: Likewise.
55161         * lib/unictype/pr_other_lowercase.h: Likewise.
55162         * lib/unictype/pr_other_math.h: Likewise.
55163         * lib/unictype/pr_other_uppercase.h: Likewise.
55164         * lib/unictype/pr_paired_punctuation.h: Likewise.
55165         * lib/unictype/pr_paragraph_separator.h: Likewise.
55166         * lib/unictype/pr_pattern_syntax.h: Likewise.
55167         * lib/unictype/pr_pattern_white_space.h: Likewise.
55168         * lib/unictype/pr_private_use.h: Likewise.
55169         * lib/unictype/pr_punctuation.h: Likewise.
55170         * lib/unictype/pr_quotation_mark.h: Likewise.
55171         * lib/unictype/pr_radical.h: Likewise.
55172         * lib/unictype/pr_sentence_terminal.h: Likewise.
55173         * lib/unictype/pr_soft_dotted.h: Likewise.
55174         * lib/unictype/pr_space.h: Likewise.
55175         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55176         * lib/unictype/pr_titlecase.h: Likewise.
55177         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55178         * lib/unictype/pr_unified_ideograph.h: Likewise.
55179         * lib/unictype/pr_uppercase.h: Likewise.
55180         * lib/unictype/pr_variation_selector.h: Likewise.
55181         * lib/unictype/pr_white_space.h: Likewise.
55182         * lib/unictype/pr_xid_continue.h: Likewise.
55183         * lib/unictype/pr_xid_start.h: Likewise.
55184         * lib/unictype/pr_zero_width.h: Likewise.
55185         * lib/unictype/scripts.h: Likewise.
55186         * lib/unictype/scripts_byname.gperf: Likewise.
55187         * lib/unictype/sy_c_ident.h: Likewise.
55188         * lib/unictype/sy_c_whitespace.h: Likewise.
55189         * lib/unictype/sy_java_ident.h: Likewise.
55190         * lib/unictype/sy_java_whitespace.h: Likewise.
55191
55192         * lib/unictype/Makefile: New file.
55193         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
55194         glibc.
55195         * lib/unictype/3level.h: New file, copied from glibc.
55196         * lib/unictype/3levelbit.h: New file.
55197
55198 2007-11-11  Bruno Haible  <bruno@clisp.org>
55199
55200         * modules/gperf: New file.
55201         * modules/iconv_open (Depends-on): Add it.
55202         (Makefile.am): Remove the GPERF definition.
55203
55204 2007-11-11  Bruno Haible  <bruno@clisp.org>
55205
55206         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
55207         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
55208
55209 2007-11-11  Bruno Haible  <bruno@clisp.org>
55210
55211         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
55212         (usage): Remove function.
55213
55214 2007-11-11  Bruno Haible  <bruno@clisp.org>
55215
55216         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
55217         gl_FUNC_CEILF_LIBS.
55218         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
55219         gl_FUNC_CEIL_LIBS.
55220         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
55221         gl_FUNC_CEILL_LIBS.
55222         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
55223         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
55224         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
55225
55226 2007-11-11  Bruno Haible  <bruno@clisp.org>
55227
55228         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
55229         roundf were declared but do not exist on functions.
55230         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
55231         roundl were declared but do not exist on functions.
55232         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
55233         HAVE_FLOORL_AND_CEILL, respectively.
55234         Needed for Sun C on Solaris 10.
55235
55236 2007-11-11  Bruno Haible  <bruno@clisp.org>
55237
55238         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
55239         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
55240         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
55241         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
55242         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
55243         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
55244         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
55245         HAVE_DECL_ROUNDF.
55246         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
55247         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
55248         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
55249         of HAVE_DECL_ROUND*.
55250         * modules/math (Makefile.am): Update.
55251
55252 2007-11-10  Bruno Haible  <bruno@clisp.org>
55253
55254         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
55255         ptrdiff_t as m4/intl.m4.
55256
55257 2007-11-10  Jim Meyering  <meyering@redhat.com>
55258
55259         Avoid link failure for the argmatch test.
55260         * tests/test-argmatch.c (usage): Define function to avoid a link
55261         failure: argmatch_die requires a usage function.
55262
55263 2007-11-09  Bruno Haible  <bruno@clisp.org>
55264
55265         * doc/functions/snprintf.texi: Mention BeOS deficiency.
55266         * doc/functions/vsnprintf.texi: Likewise.
55267         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
55268         with a size argument < 2.
55269
55270 2007-11-09  Bruno Haible  <bruno@clisp.org>
55271
55272         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
55273         buffer. Fixes an inefficiency introduced on 2007-11-03.
55274
55275 2007-11-09  Bruno Haible  <bruno@clisp.org>
55276
55277         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
55278         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
55279
55280 2007-11-08  Jim Meyering  <meyering@redhat.com>
55281
55282         Change cache variable name prefix "jm_" to "gl_" everywhere.
55283         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
55284         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
55285         * m4/uptime.m4: s/gl_/jm_/
55286
55287 2007-11-07  Bruno Haible  <bruno@clisp.org>
55288
55289         Update to GNU gettext 0.17.
55290         * m4/intl.m4: Update to GNU gettext 0.17.
55291         * m4/po.m4: Likewise.
55292         * modules/gettext (Files): Remove m4/ulonglong.m4.
55293         (configure.ac): Require gettext infrastructure from version 0.17.
55294
55295 2007-11-06  Bruno Haible  <bruno@clisp.org>
55296
55297         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
55298         symbolic values are not defined in a public header.
55299         * lib/freadable.c (freadable) [QNX]: Likewise.
55300         * lib/freadahead.c (freadahead) [QNX]: Likewise.
55301         * lib/freading.c (freading) [QNX]: Likewise.
55302         * lib/fseterr.c (fseterr) [QNX]: Likewise.
55303         * lib/fwritable.c (fwritable) [QNX]: Likewise.
55304         * lib/fwriting.c (fwriting) [QNX]: Likewise.
55305         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
55306         Reported by Alain Magloire.
55307
55308         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
55309
55310 2007-11-05  Bruno Haible  <bruno@clisp.org>
55311
55312         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
55313         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
55314         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
55315         Reported by Eric Blake.
55316
55317 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55318             Bruno Haible  <bruno@clisp.org>
55319
55320         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
55321         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
55322         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
55323         (malloc): Undefine also before including <stdlib.h>.
55324         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
55325         Needed on OSF/1 4.0.
55326
55327 2007-11-05  Jim Meyering  <meyering@redhat.com>
55328
55329         git-version-gen: sync from coreutils.
55330         * build-aux/git-version-gen: Add comments.
55331         Change the first '-' to '.' in the snapshot version string,
55332         e.g., 6.9-377-08144 -> 6.9.377-08144
55333         Remove first parameter.
55334         Don't declare a version "-dirty" merely because a time
55335         stamp has changed.
55336
55337 2007-11-04  Bruno Haible  <bruno@clisp.org>
55338
55339         * lib/lock.h: Protect all macro definitions containing an 'if'
55340         statement through a "do { ... } while (0)".
55341         * lib/tls.h: Likewise.
55342
55343 2007-11-04  Bruno Haible  <bruno@clisp.org>
55344
55345         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
55346
55347 2007-11-04  Bruno Haible  <bruno@clisp.org>
55348
55349         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
55350         * modules/fprintf-posix (Depends-on): Add nocrash.
55351         * modules/snprintf-posix (Depends-on): Likewise.
55352         * modules/sprintf-posix (Depends-on): Likewise.
55353         * modules/vasnprintf-posix (Depends-on): Likewise.
55354         * modules/vasprintf-posix (Depends-on): Likewise.
55355         * modules/vfprintf-posix (Depends-on): Likewise.
55356         * modules/vsnprintf-posix (Depends-on): Likewise.
55357         * modules/vsprintf-posix (Depends-on): Likewise.
55358         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55359         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55360         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55361         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55362         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55363         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55364         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55365
55366 2007-11-04  Bruno Haible  <bruno@clisp.org>
55367
55368         * modules/nocrash: New file.
55369         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
55370         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
55371
55372 2007-11-04  Bruno Haible  <bruno@clisp.org>
55373
55374         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
55375         precision handling.
55376         * tests/test-vasprintf-posix.c (test_function): Likewise.
55377         * tests/test-snprintf-posix.h (test_function): Likewise.
55378         * tests/test-sprintf-posix.h (test_function): Likewise.
55379
55380         Fix *printf behaviour for large precisions on mingw and BeOS.
55381         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
55382         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
55383         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
55384         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55385         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55386         gl_PRINTF_PRECISION and test its result. Invoke
55387         gl_PREREQ_VASNPRINTF_PRECISION.
55388         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55389         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55390         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55391         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55392         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55393         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55394         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55395         * doc/functions/fprintf.texi: Update.
55396         * doc/functions/printf.texi: Update.
55397         * doc/functions/snprintf.texi: Update.
55398         * doc/functions/sprintf.texi: Update.
55399         * doc/functions/vfprintf.texi: Update.
55400         * doc/functions/vprintf.texi: Update.
55401         * doc/functions/vsnprintf.texi: Update.
55402         * doc/functions/vsprintf.texi: Update.
55403
55404 2007-11-04  Bruno Haible  <bruno@clisp.org>
55405
55406         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
55407
55408 2007-11-04  Bruno Haible  <bruno@clisp.org>
55409
55410         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
55411         Reported by Sylvain Beucler <beuc@gnu.org>.
55412
55413 2007-11-03  Bruno Haible  <bruno@clisp.org>
55414
55415         * tests/test-fprintf-posix2.sh: New file.
55416         * tests/test-fprintf-posix2.c: New file.
55417         * modules/fprintf-posix-tests (Files): Add them.
55418         (TESTS): Add test-fprintf-posix2.sh.
55419         (configure.ac): Check for getrlimit and setrlimit.
55420         (check_PROGRAMS): Add test-fprintf-posix2.
55421
55422         * tests/test-printf-posix2.sh: New file.
55423         * tests/test-printf-posix2.c: New file.
55424         * modules/printf-posix-tests (Files): Add them.
55425         (TESTS): Add test-printf-posix2.sh.
55426         (configure.ac): Check for getrlimit and setrlimit.
55427         (check_PROGRAMS): Add test-printf-posix2.
55428
55429         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
55430         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
55431         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
55432         (decode_double): New function, copied from decode_long_double.
55433         (scale10_round_decimal_decoded): New function, extracted from
55434         scale10_round_decimal_long_double.
55435         (scale10_round_decimal_long_double): Use it.
55436         (scale10_round_decimal_double): New function.
55437         (floorlog10): New function.
55438         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
55439         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
55440         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55441         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55442         gl_PRINTF_ENOMEM and test its result. Invoke
55443         gl_PREREQ_VASNPRINTF_ENOMEM.
55444         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55445         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55446         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55447         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55448         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55449         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55450         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55451         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
55452         * modules/snprintf-posix (Depends-on): Likewise.
55453         * modules/sprintf-posix (Depends-on): Likewise.
55454         * modules/vasnprintf-posix (Depends-on): Likewise.
55455         * modules/vasprintf-posix (Depends-on): Likewise.
55456         * modules/vfprintf-posix (Depends-on): Likewise.
55457         * modules/vsnprintf-posix (Depends-on): Likewise.
55458         * modules/vsprintf-posix (Depends-on): Likewise.
55459         * doc/functions/fprintf.texi: Update.
55460         * doc/functions/printf.texi: Update.
55461         * doc/functions/snprintf.texi: Update.
55462         * doc/functions/sprintf.texi: Update.
55463         * doc/functions/vfprintf.texi: Update.
55464         * doc/functions/vprintf.texi: Update.
55465         * doc/functions/vsnprintf.texi: Update.
55466         * doc/functions/vsprintf.texi: Update.
55467
55468 2007-11-03  Bruno Haible  <bruno@clisp.org>
55469
55470         * modules/frexp-nolibm-tests: New file.
55471
55472         * modules/frexp-nolibm: New file.
55473         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
55474
55475 2007-11-03  Bruno Haible  <bruno@clisp.org>
55476
55477         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
55478         value is C99 compliant.
55479         Needed for OSF/1 5.1.
55480
55481 2007-11-03  Bruno Haible  <bruno@clisp.org>
55482
55483         Fix out-of-memory handling of vasnprintf.
55484         * lib/printf-parse.c: Include <errno.h>.
55485         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
55486         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
55487         is already set.
55488
55489 2007-11-02  Eric Blake  <ebb9@byu.net>
55490
55491         Fix tests on cygwin.
55492         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
55493
55494 2007-11-01  Bruno Haible  <bruno@clisp.org>
55495
55496         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
55497         warning.
55498         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
55499         needed for POSIX compatibility.
55500
55501 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55502
55503         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
55504         for compatibility with GNU.
55505
55506 2007-11-01  Bruno Haible  <bruno@clisp.org>
55507
55508         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
55509         (putenv): Renamed from rpl_putenv. Change argument type from
55510         'const char *' to 'char *'.
55511         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
55512         of defining putenv in config.h, just set REPLACE_PUTENV.
55513         * modules/putenv (Depends-on): Add stdlib.
55514         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55515         (Include): Use <stdlib.h>.
55516         * lib/stdlib.in.h (putenv): New declaration.
55517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
55518         REPLACE_PUTENV.
55519         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
55520         REPLACE_PUTENV.
55521         Needed for MacOS X 10.5.0.
55522         Reported by Peter O'Gorman <peter@pogma.com>.
55523
55524 2007-11-01  Jim Meyering  <meyering@redhat.com>
55525
55526         Treat an empty date string exactly like "0".
55527         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
55528         if the remaining date string (to be parsed) is empty, use "0".
55529         Reported by Mischa Molhoek and discussed in this thread:
55530         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
55531
55532 2007-10-31  Bruno Haible  <bruno@clisp.org>
55533
55534         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
55535         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
55536         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
55537         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
55538         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
55539         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
55540
55541 2007-10-31  Bruno Haible  <bruno@clisp.org>
55542
55543         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
55544         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
55545         (AC_TYPE_LONG_LONG_INT): Use it.
55546         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
55547         it as well.
55548         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
55549         to m4/longlong.m4.
55550         * modules/stdint (Files): Remove m4/ulonglong.m4.
55551         * modules/strtoull (Files): Use m4/longlong.m4 instead of
55552         m4/ulonglong.m4.
55553         * modules/strtoumax (Files): Likewise.
55554
55555 2007-10-30  Bruno Haible  <bruno@clisp.org>
55556
55557         * modules/xvasprintf-posix: New file.
55558         Suggested by Eric Blake.
55559
55560 2007-10-30  Bruno Haible  <bruno@clisp.org>
55561
55562         * modules/xprintf-posix-tests: New file.
55563         * tests/test-xprintf-posix.sh: New file.
55564         * tests/test-xprintf-posix.c: New file.
55565         * tests/test-xfprintf-posix.c: New file.
55566
55567         * modules/xprintf-posix: New file.
55568
55569 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55570
55571         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
55572         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
55573         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
55574
55575 2007-10-29  Bruno Haible  <bruno@clisp.org>
55576
55577         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
55578         contain the special marker '_cv_'.
55579         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55580         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55581         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55582         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55583         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55584         Reported by Ralf Wildenhues.
55585
55586 2007-10-29  Bruno Haible  <bruno@clisp.org>
55587
55588         * gnulib-tool (func_import): When --lgpl is not specified, set
55589         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
55590         GPLv3.
55591         Reported by Simon Josefsson.
55592
55593 2007-10-28  Bruno Haible  <bruno@clisp.org>
55594
55595         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
55596         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
55597         HAVE_DECL_ISFINITE.
55598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55599         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
55600         HAVE_DECL_ISFINITE.
55601
55602 2007-10-28  Bruno Haible  <bruno@clisp.org>
55603
55604         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
55605         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
55606
55607 2007-10-28  Bruno Haible  <bruno@clisp.org>
55608
55609         Fix link errors with Sun C 5.0 on Solaris 10.
55610         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
55611         function is declared but not present in the compiler's libm.
55612         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
55613         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
55614         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
55615         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
55616         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
55617         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
55618         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
55619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55620         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
55621         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
55622         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
55623         HAVE_DECL_FLOORL.
55624
55625 2007-10-28  Bruno Haible  <bruno@clisp.org>
55626
55627         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
55628         gl_FUNC_FLOORL. Cache the result.
55629         (gl_FUNC_FLOORL): Use it.
55630         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
55631         gl_FUNC_CEILL. Cache the result.
55632         (gl_FUNC_CEILL): Use it.
55633
55634         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
55635         gl_FUNC_FLOOR. Cache the result.
55636         (gl_FUNC_FLOOR): Use it.
55637         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
55638         gl_FUNC_CEIL. Cache the result.
55639         (gl_FUNC_CEIL): Use it.
55640
55641         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
55642         gl_FUNC_FLOORF. Cache the result.
55643         (gl_FUNC_FLOORF): Use it.
55644         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55645         gl_FUNC_CEILF. Cache the result.
55646         (gl_FUNC_CEILF): Use it.
55647
55648 2007-10-28  Bruno Haible  <bruno@clisp.org>
55649
55650         * gnulib-tool: Allow specifying the LGPL version number through
55651         --lgpl=2 or --lgpl=3.
55652         (func_usage): Document --lgpl with argument.
55653         Handle --lgpl=... arguments.
55654         (func_import): Recognize also gl_LGPL calls with an argument. When
55655         --lgpl=2 is used and the module's license is just LGPL, report an
55656         error. Set sed_transform_lib_file according to the lgpl variable. In
55657         the generated files, use --lgpl or gl_LGPL invocations with argument,
55658         if necessary.
55659         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55660         an LGPv2+ license.
55661         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55662         gl_LGPL macro.
55663
55664 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55665             Bruno Haible  <bruno@clisp.org>
55666
55667         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55668         (u16_uctomb_aux): Likewise.
55669         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55670         !HAVE_INLINE.
55671         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55672
55673 2007-10-28  Bruno Haible  <bruno@clisp.org>
55674
55675         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55676         Invoke AM_GETTEXT_OPTION if it exists.
55677         * modules/vasprintf: Likewise.
55678         * modules/verror: Likewise.
55679         * modules/xprintf: Likewise.
55680         * modules/xvasprintf: Likewise.
55681
55682 2007-10-27  Ben Pfaff  <blp@gnu.org>
55683
55684         * lib/math.in.h: Define isfinite macro and prototypes for
55685         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55686         implementations.
55687         * m4/math_h.m4: New substitutions for isfinite module.
55688         * lib/isfinite.c: New file.
55689         * m4/isfinite.m4: New file.
55690         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
55691         * modules/isfinite: New file.
55692         * modules/isfinite-tests: New file.
55693         * tests/tests-isfinite.c: New file.
55694         * doc/functions/isfinite.texi: Mention isfinite module.
55695         * MODULES.html.sh: Mention new module.
55696
55697 2007-10-27  Ben Pfaff  <blp@gnu.org>
55698
55699         Ralf Wildenhues reported that Tru64 4.0D declares the round
55700         functions but does not have definitions.
55701         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
55702         cannot be found in any library, set the output variable to
55703         "missing" instead of "".
55704         * m4/round.m4: Also use our substitute if we cannot find round in
55705         any library, even if it is declared.
55706         * m4/roundf.m4: Likewise for roundf.
55707         * m4/roundl.m4: Likewise for roundl.
55708         * lib/math.in.h: Undefine roundf, round, roundl before defining
55709         their replacements, to allow for hypothetical systems where these
55710         may be defined as macros but not available in libraries.
55711
55712 2007-10-27  Bruno Haible  <bruno@clisp.org>
55713
55714         * doc/gnulib.texi: Invoke @firstparagraphindent.
55715         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55716         changes in gnulib.
55717         (Source changes): New section.
55718
55719 2007-10-26  Bruno Haible  <bruno@clisp.org>
55720
55721         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55722         borrowed from autoconf.
55723
55724 2007-10-26  Bruno Haible  <bruno@clisp.org>
55725
55726         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55727         strerror returned the empty string. Needed on HP-UX 11.00.
55728
55729 2007-10-24  Micah Cowan  <micah@cowan.name>
55730
55731         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55732         * build-aux/bootstrap: Remove support for now-unnecessary option,
55733         --cvs-user, and envvars CVS_USER, CVS_RSH.
55734
55735 2007-10-24  Jim Meyering  <meyering@redhat.com>
55736
55737         Avoid diagnostics from sha1sum when there is no cached checksum.
55738         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
55739         if the po.s1 file hasn't been created yet.
55740
55741         * build-aux/bootstrap: Sync from coreutils:
55742         2007-10-24  Jim Meyering  <meyering@redhat.com>
55743         Get gnulib from the git repository, not from an obsolete cvs one.
55744         * build-aux/bootstrap: Suggestion from Micah Cowan.
55745         2007-10-04  Jim Meyering  <jim@meyering.net>
55746         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
55747         (update_po_files): Work also when there are no .po files in po/.
55748
55749 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55750
55751         * README: Append ".git" to git and cg examples.
55752         Problem reported by Benoit Sigoure.
55753
55754 2007-10-23  Micah Cowan  <micah@cowan.name>
55755
55756         * users.txt: Add wget.
55757
55758 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55759
55760         Fix linking of some unistdio tests on FreeBSD.
55761         * modules/unistdio/u16-vsnprintf-tests
55762         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55763         * modules/unistdio/u16-vsprintf-tests
55764         (test_u16_vsnprintf1_LDADD): Likewise.
55765         * modules/unistdio/u32-vsnprintf-tests
55766         (test_u32_vsnprintf1_LDADD): Likewise.
55767         * modules/unistdio/u32-vsprintf-tests
55768         (test_u32_vsprintf1_LDADD): Likewise.
55769         * modules/unistdio/u8-vsnprintf-tests
55770         (test_u8_vsnprintf1_LDADD): Likewise.
55771         * modules/unistdio/u8-vsprintf-tests
55772         (test_u8_vsprintf1_LDADD): Likewise.
55773         * modules/unistdio/ulc-vsnprintf-tests
55774         (test_ulc_vsnprintf1_LDADD): Likewise.
55775         * modules/unistdio/ulc-vsprintf-tests
55776         (test_ulc_vsprintf1_LDADD): Likewise.
55777
55778         Fix linking of some uniconv tests on FreeBSD.
55779         * modules/uniconv/u16-conv-from-enc-tests
55780         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55781         * modules/uniconv/u16-conv-to-enc-tests
55782         (test_u16_conv_to_enc_LDADD): Likewise.
55783         * modules/uniconv/u16-strconv-from-enc-tests
55784         (test_u16_strconv_from_enc_LDADD): Likewise.
55785         * modules/uniconv/u16-strconv-to-enc-tests
55786         (test_u16_strconv_to_enc_LDADD): Likewise.
55787         * modules/uniconv/u32-conv-from-enc-tests
55788         (test_u32_conv_from_enc_LDADD): Likewise.
55789         * modules/uniconv/u32-conv-to-enc-tests
55790         (test_u32_conv_to_enc_LDADD): Likewise.
55791         * modules/uniconv/u32-strconv-from-enc-tests
55792         (test_u32_strconv_from_enc_LDADD): Likewise.
55793         * modules/uniconv/u32-strconv-to-enc-tests
55794         (test_u32_strconv_to_enc_LDADD): Likewise.
55795         * modules/uniconv/u8-conv-from-enc-tests
55796         (test_u8_conv_from_enc_LDADD): Likewise.
55797         * modules/uniconv/u8-conv-to-enc-tests
55798         (test_u8_conv_to_enc_LDADD): Likewise.
55799         * modules/uniconv/u8-strconv-from-enc-tests
55800         (test_u8_strconv_from_enc_LDADD): Likewise.
55801         * modules/uniconv/u8-strconv-to-enc-tests
55802         (test_u8_strconv_to_enc_LDADD): Likewise.
55803
55804 2007-10-22  Bruno Haible  <bruno@clisp.org>
55805
55806         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
55807         size.
55808
55809 2007-10-22  Eric Blake  <ebb9@byu.net>
55810
55811         Tweak x*printf documentation.
55812         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55813         variable name and comments.
55814         Suggested by Bruno Haible.
55815
55816 2007-10-22  Bruno Haible  <bruno@clisp.org>
55817
55818         * lib/acl.c (copy_acl): Fix file name in comment.
55819
55820 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55821
55822         Fix Tru64 problem with stdbool.h.
55823         * lib/stdbool.in.h (false, true):
55824         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55825         Don't declare as an enum in this situation; it runs afoul of Tru64.
55826         Problem reported by Steven M. Schweda in
55827         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55828
55829 2007-10-22  Eric Blake  <ebb9@byu.net>
55830
55831         Also wrap vf?printf.
55832         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55833         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55834         (xvprintf, xvfprintf): New functions.
55835
55836 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55837
55838         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55839         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55840
55841         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55842         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55843
55844 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55845
55846         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55847         by Bruno Haible.
55848
55849 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55850
55851         * lib/getloadavg.c
55852         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55853         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55854
55855         * tests/test-i-ring.c: Work for C89.
55856
55857 2007-10-22  Bruno Haible  <bruno@clisp.org>
55858
55859         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55860         -1u, in preprocessor expression, so that we don't test for the bug
55861         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55862         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55863
55864 2007-10-22  Eric Blake  <ebb9@byu.net>
55865
55866         * tests/test-yesno.sh: Silence stderr during test.
55867
55868 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55869
55870         * modules/crypto/gc-camellia: New file.
55871
55872         * m4/gc-camellia.m4: New file.
55873
55874         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55875
55876         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55877
55878 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55879
55880         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55881         --help to stdout.  Reported by sms@antinode.org (Steven
55882         M. Schweda).
55883
55884 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55885
55886         * users.txt: Fix link to libksba.
55887
55888 2007-10-21  Ben Pfaff  <blp@gnu.org>
55889
55890         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55891         round.c roundf implementation that depends on floorf and ceilf to
55892         be tested unconditionally.
55893
55894 2007-10-21  Ben Pfaff  <blp@gnu.org>
55895
55896         * m4/check-libm-func.m4: Removed.
55897         * m4/check-math-lib.m4: New file.
55898         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55899         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55900         definition and lack of AC_LIBOBJ([roundf]).
55901         * m4/roundl.m4: Ditto, and similarly for roundl.
55902         * modules/round: Reference new m4 file.
55903         * modules/roundf: Ditto.
55904         * modules/roundl: Ditto.
55905         * tests/test-round2.c (main): Use ROUND instead of round.
55906         Bug report from Bruno Haible.
55907
55908 2007-10-21  Bruno Haible  <bruno@clisp.org>
55909
55910         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55911         context.
55912
55913 2007-10-21  Bruno Haible  <bruno@clisp.org>
55914
55915         * tests/test-wcwidth.c (main): Allow negative result for some control
55916         characters.
55917
55918         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55919         Needed on OSF/1 5.1.
55920
55921 2007-10-21  Bruno Haible  <bruno@clisp.org>
55922
55923         * tests/test-floorf1.c: Include isnanf.h.
55924         (main): Use isnanf() instead of isnan().
55925         * tests/test-ceilf1.c: Include isnanf.h.
55926         (main): Use isnanf() instead of isnan().
55927         * tests/test-truncf1.c: Include isnanf.h.
55928         (main): Use isnanf() instead of isnan().
55929         * tests/test-roundf1.c: Include isnanf.h.
55930         (main): Use isnanf() instead of isnan().
55931
55932 2007-10-21  Eric Blake  <ebb9@byu.net>
55933
55934         * users.txt: Update URL for m4.
55935
55936 2007-10-21  Bruno Haible  <bruno@clisp.org>
55937
55938         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55939
55940 2007-10-21  Bruno Haible  <bruno@clisp.org>
55941
55942         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55943         Git's management files if the CVS files are not present.
55944
55945 2007-10-20  Bruno Haible  <bruno@clisp.org>
55946
55947         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55948         gcc-3.4.x.
55949
55950 2007-10-20  Ben Pfaff  <blp@gnu.org>
55951
55952         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55953         implementations.
55954         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55955         * lib/round.c: New file.
55956         * lib/roundf.c: New file.
55957         * lib/roundl.c: New file.
55958         * m4/round.m4: New file.
55959         * m4/roundf.m4: New file.
55960         * m4/roundl.m4: New file.
55961         * m4/check-libm-func-m4: New file.
55962         * modules/math: Replace round, roundf, roundl related @VARS@ in
55963         math.in.h.
55964         * modules/round: New file.
55965         * modules/round-tests: New file.
55966         * modules/roundf: New file.
55967         * modules/roundf-tests: New file.
55968         * modules/roundl: New file.
55969         * modules/roundl-tests: New file.
55970         * tests/test-round1.c: New file.
55971         * tests/test-round2.c: New file.
55972         * tests/test-roundf1.c: New file.
55973         * tests/test-roundf2.c: New file.
55974         * tests/test-roundl.c: New file.
55975         * doc/functions/round.texi: Mention round module.
55976         * doc/functions/roundf.texi: Mention roundf module.
55977         * doc/functions/roundl.texi: Mention roundl module.
55978         * MODULES.html.sh: Mention new modules.
55979         Thanks to Bruno Haible for suggestions.
55980
55981 2007-10-20  Jim Meyering  <meyering@redhat.com>
55982
55983         * lib/xprintf.c: Include <config.h> unconditionally.
55984
55985         Change xprintf's license to GPL.
55986         * modules/xprintf (License): s/LGPL/GPL/, since this module
55987         depends on modules (exit and exitfail) which are GPL.
55988         Suggestion from Bruno Haible.
55989
55990         xprintf fixes.
55991         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55992         Use a clearer diagnostic.
55993         Patch from Bruno Haible.
55994
55995 2007-10-20  Bruno Haible  <bruno@clisp.org>
55996
55997         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55998         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55999         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56000
56001 2007-10-20  Bruno Haible  <bruno@clisp.org>
56002
56003         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
56004         precision in the comparison result > x - 1 or similar.
56005         * tests/test-ceilf2.c (correct_result_p): Likewise.
56006         * tests/test-truncf2.c (correct_result_p): Likewise.
56007         * tests/test-trunc2.c (correct_result_p): Likewise.
56008         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56009
56010 2007-10-20  Bruno Haible  <bruno@clisp.org>
56011
56012         * modules/ceil: New file.
56013         * m4/ceil.m4: New file.
56014         * doc/functions/ceil.texi: Mention the 'ceil' module.
56015
56016 2007-10-20  Bruno Haible  <bruno@clisp.org>
56017
56018         * modules/floor: New file.
56019         * m4/floor.m4: New file.
56020         * doc/functions/floor.texi: Mention the 'floor' module.
56021
56022 2007-10-20  Bruno Haible  <bruno@clisp.org>
56023
56024         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
56025         of %a.
56026         * modules/floorf-tests (Depends-on): Likewise.
56027         * modules/truncf-tests (Depends-on): Likewise.
56028         * modules/trunc-tests (Depends-on): Likewise.
56029         Reported by Ben Pfaff.
56030
56031 2007-10-19  Jim Meyering  <meyering@redhat.com>
56032
56033         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
56034         Don't bother testing specific errno values.  Just test ferror.
56035
56036         New module: xprintf
56037         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
56038
56039 2007-10-19  Bruno Haible  <bruno@clisp.org>
56040
56041         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
56042         syntax.
56043         * modules/javaexec (Makefile.am): Likewise.
56044         * modules/relocatable-prog (Makefile.am): Likewise.
56045         Suggested by Jim Meyering.
56046
56047 2007-10-18  Bruno Haible  <bruno@clisp.org>
56048
56049         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
56050         Reported by Jim Meyering.
56051
56052 2007-10-18  Eric Blake  <ebb9@byu.net>
56053
56054         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
56055
56056 2007-10-18  Bruno Haible  <bruno@clisp.org>
56057
56058         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
56059         the format string into writable memory. Needed in Fortify conditions.
56060
56061 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
56062             Bruno Haible  <bruno@clisp.org>
56063
56064         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
56065         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
56066         * modules/trim (Depends-on): Add mbchar.
56067         (configure.ac): Add gl_FUNC_MBRTOWC.
56068         (Makefile.am): Augment lib_SOURCES.
56069
56070 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56071
56072         Modify glob.c to use fstatat and dirfd, to simplify it.
56073         Suggested by Eric Blake.
56074         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
56075         Don't include <stdbool.h>; not used.
56076         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
56077         (link_exists_p): Simplify implementation, since we can now assume
56078         dirfd and fstatat.
56079         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
56080
56081 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56082
56083         * gnulib-tool (func_get_dependencies): Fix sed script to
56084         match only tests.
56085
56086 2007-10-17  Bruno Haible  <bruno@clisp.org>
56087
56088         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
56089         allow locale names without encoding suffix.
56090         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56091         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56092
56093 2007-10-16  Bruno Haible  <bruno@clisp.org>
56094
56095         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
56096         * lib/getgroups.c (getgroups): Likewise.
56097         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
56098
56099 2007-10-16  Bruno Haible  <bruno@clisp.org>
56100
56101         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
56102         * modules/malloc-posix (License): Likewise.
56103         * modules/realloc-posix (License): Likewise.
56104         * modules/calloc-posix (License): Likewise.
56105         * modules/intprops (License): Change from GPL to LGPL, with
56106         Paul Eggert's approval.
56107
56108 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56109
56110         Merge glibc changes into lib/glob.c.
56111
56112         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
56113         2007-10-15 04:59:03 UTC.  Here are the changes:
56114
56115         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
56116
56117         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
56118
56119         * lib/glob.c: Add some branch prediction throughout.
56120
56121         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
56122
56123         [BZ #5103]
56124         * lib/glob.c (glob): Recognize patterns starting \/.
56125
56126         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
56127
56128         [BZ #3996]
56129         * lib/glob.c (attribute_hidden): Define if not defined.
56130         (glob): Unescape dirname, filename or username when needed and not
56131         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
56132         is NULL.  Handle unescaped [ in pattern without closing ].
56133         Don't pass GLOB_CHECK down to recursive glob for directories.
56134         (__glob_pattern_type): New function.
56135         (__glob_pattern_p): Implement using __glob_pattern_type.
56136         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
56137         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
56138         Remove unreachable code.
56139
56140         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
56141
56142         * lib/glob.c (glob_in_dir): Add some comments and asserts to
56143         explain why there are no leaks.
56144
56145         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
56146
56147         [BZ #3253]
56148         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
56149         time, rather allocate increasingly bigger arrays of pointers, if
56150         possible with alloca, if too large with malloc.
56151
56152 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56153
56154         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
56155         Problem reported by H.Merijn Brand in
56156         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
56157         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
56158         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56159
56160 2007-10-15  Bruno Haible  <bruno@clisp.org>
56161
56162         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
56163         with explicit rpl_ prefix.
56164         * lib/fopen.c (fopen): Likewise.
56165         * lib/freopen.c (freopen): Likewise.
56166         * lib/iconv.c (iconv): Likewise.
56167         * lib/iconv_close.c (iconv_close): Likewise.
56168
56169 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56170
56171         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
56172
56173 2007-10-15  Bruno Haible  <bruno@clisp.org>
56174
56175         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
56176         <stddef.h> instead of <stdlib.h> since we only need NULL.
56177         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56178
56179 2007-10-15  Bruno Haible  <bruno@clisp.org>
56180
56181         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
56182         Replace paragraph talking about LIBOBJS.
56183         Reported by Colin Watson <cjwatson@debian.org>.
56184
56185 2007-10-15  Bruno Haible  <bruno@clisp.org>
56186
56187         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
56188         <stdlib.h> before using NULL.
56189
56190 2007-10-15  Simon Josefsson  <simon@josefsson.org>
56191
56192         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
56193         Reported by Albert Chin <china@thewrittenword.com>.
56194
56195 2007-10-14  Bruno Haible  <bruno@clisp.org>
56196
56197         * modules/iconv_open-utf-tests: New file.
56198         * tests/test-iconv-utf.c: New file.
56199
56200         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
56201         * modules/iconv_open-utf: New file.
56202         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
56203         (iconv, iconv_close): New declarations.
56204         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
56205         be defined.
56206         (iconv_open): Add special handling of conversion between UTF-8 and
56207         UTF-{16,32}{BE,LE}.
56208         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
56209         * lib/iconv_close.c: New file.
56210         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
56211         gl_FUNC_ICONV_OPEN.
56212         (gl_FUNC_ICONV_OPEN): Use it.
56213         (gl_FUNC_ICONV_OPEN_UTF): New macro.
56214         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
56215         and REPLACE_ICONV_UTF.
56216         * modules/iconv_open (Depends-on): Add c-strcase.
56217         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
56218         ICONV_CONST.
56219         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
56220
56221 2007-10-13  Albert Chin  <china@thewrittenword.com>
56222             Bruno Haible  <bruno@clisp.org>
56223
56224         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
56225         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
56226
56227 2007-10-13  Bruno Haible  <bruno@clisp.org>
56228
56229         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
56230         defined, use the ISO C99 inline semantics.
56231         * lib/argp.h (ARGP_EI): Likewise.
56232
56233 2007-10-13  Bruno Haible  <bruno@clisp.org>
56234
56235         Handle 'inline' change in gcc 4.3.0.
56236         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
56237         argp_fmtstream_write, argp_fmtstream_set_lmargin,
56238         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
56239         argp_fmtstream_point): Disable 'extern' declaration if the function
56240         definition is going to be provided inline.
56241         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
56242         semantics, not the ISO C99 inline semantics.
56243         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
56244         'extern' declaration if the function definition is going to be provided
56245         inline.
56246         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
56247         the GNU C inline semantics, not the ISO C99 inline semantics. With
56248         GCC 4.2, avoid a warning.
56249
56250 2007-10-13  Bruno Haible  <bruno@clisp.org>
56251
56252         * lib/freading.h (freading): Enable the use of __freading for
56253         glibc >= 2.7.
56254         * lib/freading.c (freading): Likewise.
56255
56256 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56257
56258         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
56259         "warning: C99 inline functions are not supported; using GNU89".
56260
56261 2007-10-12  Bruno Haible  <bruno@clisp.org>
56262
56263         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
56264         of 2.
56265         * tests/test-ceilf2.c: New file.
56266         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
56267
56268         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
56269         * modules/ceilf-tests: Update.
56270
56271 2007-10-12  Bruno Haible  <bruno@clisp.org>
56272
56273         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
56274         of 2.
56275         * tests/test-floorf2.c: New file.
56276         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
56277
56278         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
56279         * modules/floorf-tests: Update.
56280
56281 2007-10-12  Bruno Haible  <bruno@clisp.org>
56282
56283         * tests/test-trunc2.c: New file.
56284         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
56285
56286         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
56287         * modules/trunc-tests: Update.
56288
56289 2007-10-12  Bruno Haible  <bruno@clisp.org>
56290
56291         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
56292         of 2.
56293         * tests/test-truncf2.c: New file.
56294         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
56295
56296         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
56297         * modules/truncf-tests: Update.
56298
56299 2007-10-11  Eric Blake  <ebb9@byu.net>
56300
56301         Don't claim strerror is broken on Interix.
56302         * doc/functions/strerror.texi (strerror): Known broken systems are
56303         now Solaris 8, and not Interix.
56304         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
56305         Interix on cross-compile.
56306         Reported by Martin Koeppe in
56307         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
56308
56309 2007-10-11  Bruno Haible  <bruno@clisp.org>
56310
56311         * modules/i-ring-tests: New file.
56312         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
56313         instead of assert.
56314
56315 2007-10-11  Bruno Haible  <bruno@clisp.org>
56316
56317         * modules/filenamecat-tests: New file.
56318         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
56319         * lib/filenamecat.c: Remove test code.
56320
56321 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56322
56323         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
56324
56325         * lib/strerror.c: Include <string.h> always, to test interface,
56326         and to remove the need for the dummy.
56327         Include intprops.h to compute width instead of doing it ourselves
56328         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
56329         (strerror): Define it to return NULL if there's no system strerror.
56330         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
56331         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
56332         ancient pre-strerror Unix systems well any more.  Saying "unknown
56333         system error" is enough.
56334         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
56335         simpler strerror.c implementation.
56336         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
56337         Simplify the tests to reflect the simpler strerror implementation.
56338         * modules/strerror (Depends-on): Add intprops.
56339
56340 2007-10-09  Eric Blake  <ebb9@byu.net>
56341
56342         Silence test-fpending.
56343         * modules/fpending-tests (Files): Add wrapper script.
56344         * tests/test-fpending.sh: New file.
56345
56346 2007-10-09  Bruno Haible  <bruno@clisp.org>
56347
56348         * MODULES.html.sh (func_module): Don't create a hyperlink for
56349         function names like 'printf_frexp'.
56350         (Misc): Add crc, memxor.
56351         (Characteristics of floating types): New section.
56352         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
56353         isnanf-nolibm, signbit, trunc, truncf, truncl.
56354         (Enhancements for ISO C 99 functions): New subsection Input/output.
56355         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
56356         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
56357         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
56358         (Compatibility checks for POSIX:2001 functions): Add clock-time.
56359         (Enhancements for POSIX:2001 functions): Add chdir-long.
56360         (File system functions): Add areadlink, chdir-safer, read-file.
56361         Remove cycle-check.
56362         (File system as inode set): New section.
56363         (Date and time): Add gethrxtime.
56364         (Multithreading): Add openmp.
56365         (Internationalization functions): Add localename.
56366         (Unicode string functions): Add unistr/u*-mbsnlen.
56367         (Support for maintaining and releasing projects): Add git-version-gen.
56368         (Lone files): Remove directories.
56369
56370 2007-10-08  Ben Pfaff  <blp@gnu.org>
56371
56372         * lib/xmalloca.h: Fix typo in comment.
56373
56374 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56375
56376         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
56377         when avoiding problems with integer overflow.  Use a portable test
56378         instead.
56379
56380 2007-10-08  Simon Josefsson  <simon@josefsson.org>
56381
56382         * modules/dummy (License): Change to LGPLv2+.
56383         * modules/float (License): Likewise
56384         * modules/realloc (License): Likewise
56385         * modules/stdlib (License): Likewise
56386
56387 2007-10-07  Bruno Haible  <bruno@clisp.org>
56388
56389         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
56390         * floor.c (TWO_MANT_DIG): Likewise.
56391         * ceil.c (TWO_MANT_DIG): Likewise.
56392         Reported by Ben Pfaff.
56393
56394 2007-10-07  Bruno Haible  <bruno@clisp.org>
56395
56396         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
56397         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
56398         * lib/frexp.c (FUNC): Likewise.
56399         * lib/printf-frexp.h (printf_frexp): Likewise.
56400         * lib/printf-frexpl.h (printf_frexpl): Likewise.
56401         * lib/printf-frexp.c (FUNC): Likewise.
56402         Suggested by Jim Meyering.
56403
56404 2007-10-07  Jim Meyering  <meyering@redhat.com>
56405
56406         Make xnanosleep's integer overflow test more robust.
56407         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
56408         so that gcc-4.3.0 doesn't optimize away this test for overflow.
56409
56410 2007-10-07  Bruno Haible  <bruno@clisp.org>
56411
56412         * NEWS: Mention the license change.
56413
56414         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
56415         abbreviations in the modules files.
56416
56417         Change copyright notice from GPLv2+ to GPLv3+.
56418         * README: Change copyright notice.
56419         * MODULES.html.sh: Likewise.
56420         * build-aux/bootstrap.conf: Likewise.
56421         * build-aux/config.libpath: Likewise.
56422         * build-aux/csharpcomp.sh.in: Likewise.
56423         * build-aux/csharpexec.sh.in: Likewise.
56424         * build-aux/install-reloc: Likewise.
56425         * build-aux/javacomp.sh.in: Likewise.
56426         * build-aux/javaexec.sh.in: Likewise.
56427         * build-aux/ldd.sh.in: Likewise.
56428         * build-aux/reloc-ldflags: Likewise.
56429         * build-aux/relocatable.sh.in: Likewise.
56430         * build-aux/x-to-1.in: Likewise.
56431         * check-module: Likewise.
56432         * config/srclistvars.sh: Likewise.
56433         * gnulib-tool: Likewise.
56434         * lib/acl-internal.h: Likewise.
56435         * lib/acl.c: Likewise.
56436         * lib/acl.h: Likewise.
56437         * lib/acl_entries.c: Likewise.
56438         * lib/areadlink-with-size.c: Likewise.
56439         * lib/areadlink.c: Likewise.
56440         * lib/areadlink.h: Likewise.
56441         * lib/argmatch.c: Likewise.
56442         * lib/argmatch.h: Likewise.
56443         * lib/argp-ba.c: Likewise.
56444         * lib/argp-eexst.c: Likewise.
56445         * lib/argp-fmtstream.c: Likewise.
56446         * lib/argp-fmtstream.h: Likewise.
56447         * lib/argp-fs-xinl.c: Likewise.
56448         * lib/argp-help.c: Likewise.
56449         * lib/argp-namefrob.h: Likewise.
56450         * lib/argp-parse.c: Likewise.
56451         * lib/argp-pin.c: Likewise.
56452         * lib/argp-pv.c: Likewise.
56453         * lib/argp-pvh.c: Likewise.
56454         * lib/argp-xinl.c: Likewise.
56455         * lib/argp.h: Likewise.
56456         * lib/at-func.c: Likewise.
56457         * lib/atanl.c: Likewise.
56458         * lib/backupfile.c: Likewise.
56459         * lib/backupfile.h: Likewise.
56460         * lib/basename.c: Likewise.
56461         * lib/binary-io.h: Likewise.
56462         * lib/byteswap.in.h: Likewise.
56463         * lib/c-stack.c: Likewise.
56464         * lib/c-stack.h: Likewise.
56465         * lib/c-strcasestr.c: Likewise.
56466         * lib/c-strcasestr.h: Likewise.
56467         * lib/c-strstr.c: Likewise.
56468         * lib/c-strstr.h: Likewise.
56469         * lib/c-strtod.c: Likewise.
56470         * lib/calloc.c: Likewise.
56471         * lib/canon-host.c: Likewise.
56472         * lib/canon-host.h: Likewise.
56473         * lib/canonicalize-lgpl.c: Likewise.
56474         * lib/canonicalize.c: Likewise.
56475         * lib/canonicalize.h: Likewise.
56476         * lib/ceil.c: Likewise.
56477         * lib/ceilf.c: Likewise.
56478         * lib/ceill.c: Likewise.
56479         * lib/chdir-long.c: Likewise.
56480         * lib/chdir-long.h: Likewise.
56481         * lib/chdir-safer.c: Likewise.
56482         * lib/chdir-safer.h: Likewise.
56483         * lib/chown.c: Likewise.
56484         * lib/classpath.c: Likewise.
56485         * lib/classpath.h: Likewise.
56486         * lib/clean-temp.c: Likewise.
56487         * lib/clean-temp.h: Likewise.
56488         * lib/cloexec.c: Likewise.
56489         * lib/close-stream.c: Likewise.
56490         * lib/closein.c: Likewise.
56491         * lib/closein.h: Likewise.
56492         * lib/closeout.c: Likewise.
56493         * lib/closeout.h: Likewise.
56494         * lib/concat-filename.c: Likewise.
56495         * lib/copy-file.c: Likewise.
56496         * lib/copy-file.h: Likewise.
56497         * lib/count-one-bits.h: Likewise.
56498         * lib/crc.c: Likewise.
56499         * lib/crc.h: Likewise.
56500         * lib/creat-safer.c: Likewise.
56501         * lib/csharpcomp.c: Likewise.
56502         * lib/csharpcomp.h: Likewise.
56503         * lib/csharpexec.c: Likewise.
56504         * lib/csharpexec.h: Likewise.
56505         * lib/cycle-check.c: Likewise.
56506         * lib/cycle-check.h: Likewise.
56507         * lib/diacrit.c: Likewise.
56508         * lib/diacrit.h: Likewise.
56509         * lib/diffseq.h: Likewise.
56510         * lib/dirchownmod.c: Likewise.
56511         * lib/dirent.in.h: Likewise.
56512         * lib/dirfd.c: Likewise.
56513         * lib/dirfd.h: Likewise.
56514         * lib/dirname.c: Likewise.
56515         * lib/dirname.h: Likewise.
56516         * lib/dummy.c: Likewise.
56517         * lib/dup-safer.c: Likewise.
56518         * lib/dup2.c: Likewise.
56519         * lib/eealloc.h: Likewise.
56520         * lib/error.c: Likewise.
56521         * lib/error.h: Likewise.
56522         * lib/euidaccess.c: Likewise.
56523         * lib/exclude.c: Likewise.
56524         * lib/exclude.h: Likewise.
56525         * lib/execute.c: Likewise.
56526         * lib/execute.h: Likewise.
56527         * lib/exitfail.c: Likewise.
56528         * lib/exitfail.h: Likewise.
56529         * lib/expl.c: Likewise.
56530         * lib/fatal-signal.c: Likewise.
56531         * lib/fatal-signal.h: Likewise.
56532         * lib/fbufmode.c: Likewise.
56533         * lib/fbufmode.h: Likewise.
56534         * lib/fchdir.c: Likewise.
56535         * lib/fchmodat.c: Likewise.
56536         * lib/fchownat.c: Likewise.
56537         * lib/fcntl--.h: Likewise.
56538         * lib/fcntl-safer.h: Likewise.
56539         * lib/fcntl.in.h: Likewise.
56540         * lib/fd-safer.c: Likewise.
56541         * lib/fflush.c: Likewise.
56542         * lib/file-has-acl.c: Likewise.
56543         * lib/file-set.c: Likewise.
56544         * lib/file-type.c: Likewise.
56545         * lib/file-type.h: Likewise.
56546         * lib/fileblocks.c: Likewise.
56547         * lib/filemode.c: Likewise.
56548         * lib/filemode.h: Likewise.
56549         * lib/filename.h: Likewise.
56550         * lib/filenamecat.c: Likewise.
56551         * lib/filenamecat.h: Likewise.
56552         * lib/findprog.c: Likewise.
56553         * lib/findprog.h: Likewise.
56554         * lib/float.in.h: Likewise.
56555         * lib/floor.c: Likewise.
56556         * lib/floorf.c: Likewise.
56557         * lib/floorl.c: Likewise.
56558         * lib/fopen-safer.c: Likewise.
56559         * lib/fopen.c: Likewise.
56560         * lib/fpending.c: Likewise.
56561         * lib/fpending.h: Likewise.
56562         * lib/fprintf.c: Likewise.
56563         * lib/fprintftime.h: Likewise.
56564         * lib/fpucw.h: Likewise.
56565         * lib/fpurge.c: Likewise.
56566         * lib/fpurge.h: Likewise.
56567         * lib/freadable.c: Likewise.
56568         * lib/freadable.h: Likewise.
56569         * lib/freadahead.c: Likewise.
56570         * lib/freadahead.h: Likewise.
56571         * lib/freading.c: Likewise.
56572         * lib/freading.h: Likewise.
56573         * lib/free.c: Likewise.
56574         * lib/freopen.c: Likewise.
56575         * lib/frexp.c: Likewise.
56576         * lib/frexpl.c: Likewise.
56577         * lib/fseek.c: Likewise.
56578         * lib/fseterr.c: Likewise.
56579         * lib/fseterr.h: Likewise.
56580         * lib/fstatat.c: Likewise.
56581         * lib/fstrcmp.c: Likewise.
56582         * lib/fstrcmp.h: Likewise.
56583         * lib/fsusage.c: Likewise.
56584         * lib/fsusage.h: Likewise.
56585         * lib/ftell.c: Likewise.
56586         * lib/ftello.c: Likewise.
56587         * lib/fts-cycle.c: Likewise.
56588         * lib/fts.c: Likewise.
56589         * lib/fts_.h: Likewise.
56590         * lib/full-read.c: Likewise.
56591         * lib/full-read.h: Likewise.
56592         * lib/full-write.c: Likewise.
56593         * lib/full-write.h: Likewise.
56594         * lib/fwritable.c: Likewise.
56595         * lib/fwritable.h: Likewise.
56596         * lib/fwriteerror.c: Likewise.
56597         * lib/fwriteerror.h: Likewise.
56598         * lib/fwriting.c: Likewise.
56599         * lib/fwriting.h: Likewise.
56600         * lib/gcd.c: Likewise.
56601         * lib/gcd.h: Likewise.
56602         * lib/getcwd.c: Likewise.
56603         * lib/getdate.h: Likewise.
56604         * lib/getdate.y: Likewise.
56605         * lib/getdomainname.c: Likewise.
56606         * lib/getdomainname.h: Likewise.
56607         * lib/getgroups.c: Likewise.
56608         * lib/gethostname.c: Likewise.
56609         * lib/gethrxtime.c: Likewise.
56610         * lib/gethrxtime.h: Likewise.
56611         * lib/getloadavg.c: Likewise.
56612         * lib/getndelim2.c: Likewise.
56613         * lib/getndelim2.h: Likewise.
56614         * lib/getnline.c: Likewise.
56615         * lib/getnline.h: Likewise.
56616         * lib/getopt.c: Likewise.
56617         * lib/getopt.in.h: Likewise.
56618         * lib/getopt1.c: Likewise.
56619         * lib/getopt_int.h: Likewise.
56620         * lib/getpagesize.h: Likewise.
56621         * lib/getsubopt.c: Likewise.
56622         * lib/gettime.c: Likewise.
56623         * lib/getugroups.c: Likewise.
56624         * lib/getugroups.h: Likewise.
56625         * lib/getusershell.c: Likewise.
56626         * lib/gl_anyavltree_list1.h: Likewise.
56627         * lib/gl_anyavltree_list2.h: Likewise.
56628         * lib/gl_anyhash_list1.h: Likewise.
56629         * lib/gl_anyhash_list2.h: Likewise.
56630         * lib/gl_anylinked_list1.h: Likewise.
56631         * lib/gl_anylinked_list2.h: Likewise.
56632         * lib/gl_anyrbtree_list1.h: Likewise.
56633         * lib/gl_anyrbtree_list2.h: Likewise.
56634         * lib/gl_anytree_list1.h: Likewise.
56635         * lib/gl_anytree_list2.h: Likewise.
56636         * lib/gl_anytree_oset.h: Likewise.
56637         * lib/gl_anytreehash_list1.h: Likewise.
56638         * lib/gl_anytreehash_list2.h: Likewise.
56639         * lib/gl_array_list.c: Likewise.
56640         * lib/gl_array_list.h: Likewise.
56641         * lib/gl_array_oset.c: Likewise.
56642         * lib/gl_array_oset.h: Likewise.
56643         * lib/gl_avltree_list.c: Likewise.
56644         * lib/gl_avltree_list.h: Likewise.
56645         * lib/gl_avltree_oset.c: Likewise.
56646         * lib/gl_avltree_oset.h: Likewise.
56647         * lib/gl_avltreehash_list.c: Likewise.
56648         * lib/gl_avltreehash_list.h: Likewise.
56649         * lib/gl_carray_list.c: Likewise.
56650         * lib/gl_carray_list.h: Likewise.
56651         * lib/gl_linked_list.c: Likewise.
56652         * lib/gl_linked_list.h: Likewise.
56653         * lib/gl_linkedhash_list.c: Likewise.
56654         * lib/gl_linkedhash_list.h: Likewise.
56655         * lib/gl_list.c: Likewise.
56656         * lib/gl_list.h: Likewise.
56657         * lib/gl_oset.c: Likewise.
56658         * lib/gl_oset.h: Likewise.
56659         * lib/gl_rbtree_list.c: Likewise.
56660         * lib/gl_rbtree_list.h: Likewise.
56661         * lib/gl_rbtree_oset.c: Likewise.
56662         * lib/gl_rbtree_oset.h: Likewise.
56663         * lib/gl_rbtreehash_list.c: Likewise.
56664         * lib/gl_rbtreehash_list.h: Likewise.
56665         * lib/gl_sublist.c: Likewise.
56666         * lib/gl_sublist.h: Likewise.
56667         * lib/group-member.c: Likewise.
56668         * lib/group-member.h: Likewise.
56669         * lib/hard-locale.c: Likewise.
56670         * lib/hard-locale.h: Likewise.
56671         * lib/hash-pjw.c: Likewise.
56672         * lib/hash-pjw.h: Likewise.
56673         * lib/hash-triple.c: Likewise.
56674         * lib/hash.c: Likewise.
56675         * lib/hash.h: Likewise.
56676         * lib/human.c: Likewise.
56677         * lib/human.h: Likewise.
56678         * lib/i-ring.c: Likewise.
56679         * lib/i-ring.h: Likewise.
56680         * lib/idcache.c: Likewise.
56681         * lib/imaxabs.c: Likewise.
56682         * lib/imaxdiv.c: Likewise.
56683         * lib/inet_pton.c: Likewise.
56684         * lib/inet_pton.h: Likewise.
56685         * lib/intprops.h: Likewise.
56686         * lib/inttostr.c: Likewise.
56687         * lib/inttostr.h: Likewise.
56688         * lib/inttypes.in.h: Likewise.
56689         * lib/isapipe.c: Likewise.
56690         * lib/isdir.c: Likewise.
56691         * lib/isnan.c: Likewise.
56692         * lib/isnan.h: Likewise.
56693         * lib/isnanf.c: Likewise.
56694         * lib/isnanf.h: Likewise.
56695         * lib/isnanl-nolibm.h: Likewise.
56696         * lib/isnanl.c: Likewise.
56697         * lib/isnanl.h: Likewise.
56698         * lib/javacomp.c: Likewise.
56699         * lib/javacomp.h: Likewise.
56700         * lib/javaexec.c: Likewise.
56701         * lib/javaexec.h: Likewise.
56702         * lib/javaversion.c: Likewise.
56703         * lib/javaversion.h: Likewise.
56704         * lib/javaversion.java: Likewise.
56705         * lib/lbrkprop.h: Likewise.
56706         * lib/lchmod.h: Likewise.
56707         * lib/lchown.c: Likewise.
56708         * lib/ldexpl.c: Likewise.
56709         * lib/linebreak.c: Likewise.
56710         * lib/linebreak.h: Likewise.
56711         * lib/linebuffer.c: Likewise.
56712         * lib/linebuffer.h: Likewise.
56713         * lib/locale.in.h: Likewise.
56714         * lib/logl.c: Likewise.
56715         * lib/long-options.c: Likewise.
56716         * lib/long-options.h: Likewise.
56717         * lib/lstat.c: Likewise.
56718         * lib/lstat.h: Likewise.
56719         * lib/math.in.h: Likewise.
56720         * lib/mbchar.c: Likewise.
56721         * lib/mbchar.h: Likewise.
56722         * lib/mbfile.h: Likewise.
56723         * lib/mbiter.h: Likewise.
56724         * lib/mbscasecmp.c: Likewise.
56725         * lib/mbscasestr.c: Likewise.
56726         * lib/mbschr.c: Likewise.
56727         * lib/mbscspn.c: Likewise.
56728         * lib/mbslen.c: Likewise.
56729         * lib/mbsncasecmp.c: Likewise.
56730         * lib/mbsnlen.c: Likewise.
56731         * lib/mbspbrk.c: Likewise.
56732         * lib/mbspcasecmp.c: Likewise.
56733         * lib/mbsrchr.c: Likewise.
56734         * lib/mbssep.c: Likewise.
56735         * lib/mbsspn.c: Likewise.
56736         * lib/mbsstr.c: Likewise.
56737         * lib/mbstok_r.c: Likewise.
56738         * lib/mbswidth.c: Likewise.
56739         * lib/mbswidth.h: Likewise.
56740         * lib/mbuiter.h: Likewise.
56741         * lib/memcasecmp.c: Likewise.
56742         * lib/memcasecmp.h: Likewise.
56743         * lib/memchr.c: Likewise.
56744         * lib/memcmp.c: Likewise.
56745         * lib/memcoll.c: Likewise.
56746         * lib/memcoll.h: Likewise.
56747         * lib/memcpy.c: Likewise.
56748         * lib/memrchr.c: Likewise.
56749         * lib/mkancesdirs.c: Likewise.
56750         * lib/mkdir-p.c: Likewise.
56751         * lib/mkdir-p.h: Likewise.
56752         * lib/mkdir.c: Likewise.
56753         * lib/mkdirat.c: Likewise.
56754         * lib/mkdtemp.c: Likewise.
56755         * lib/mkstemp-safer.c: Likewise.
56756         * lib/mkstemp.c: Likewise.
56757         * lib/modechange.c: Likewise.
56758         * lib/modechange.h: Likewise.
56759         * lib/mountlist.c: Likewise.
56760         * lib/mountlist.h: Likewise.
56761         * lib/mpsort.c: Likewise.
56762         * lib/nanosleep.c: Likewise.
56763         * lib/obstack.c: Likewise.
56764         * lib/obstack.h: Likewise.
56765         * lib/open-safer.c: Likewise.
56766         * lib/open.c: Likewise.
56767         * lib/openat-die.c: Likewise.
56768         * lib/openat-priv.h: Likewise.
56769         * lib/openat-proc.c: Likewise.
56770         * lib/openat.c: Likewise.
56771         * lib/openat.h: Likewise.
56772         * lib/pagealign_alloc.c: Likewise.
56773         * lib/pagealign_alloc.h: Likewise.
56774         * lib/physmem.c: Likewise.
56775         * lib/physmem.h: Likewise.
56776         * lib/pipe-safer.c: Likewise.
56777         * lib/pipe.c: Likewise.
56778         * lib/pipe.h: Likewise.
56779         * lib/posixtm.c: Likewise.
56780         * lib/posixtm.h: Likewise.
56781         * lib/posixver.c: Likewise.
56782         * lib/printf-frexp.c: Likewise.
56783         * lib/printf-frexp.h: Likewise.
56784         * lib/printf-frexpl.c: Likewise.
56785         * lib/printf-frexpl.h: Likewise.
56786         * lib/printf.c: Likewise.
56787         * lib/progname.c: Likewise.
56788         * lib/progname.h: Likewise.
56789         * lib/progreloc.c: Likewise.
56790         * lib/putenv.c: Likewise.
56791         * lib/quote.c: Likewise.
56792         * lib/quote.h: Likewise.
56793         * lib/quotearg.c: Likewise.
56794         * lib/quotearg.h: Likewise.
56795         * lib/raise.c: Likewise.
56796         * lib/readline.c: Likewise.
56797         * lib/readline.h: Likewise.
56798         * lib/readlink.c: Likewise.
56799         * lib/readtokens.c: Likewise.
56800         * lib/readtokens.h: Likewise.
56801         * lib/readtokens0.c: Likewise.
56802         * lib/readtokens0.h: Likewise.
56803         * lib/readutmp.c: Likewise.
56804         * lib/readutmp.h: Likewise.
56805         * lib/realloc.c: Likewise.
56806         * lib/relocwrapper.c: Likewise.
56807         * lib/rename-dest-slash.c: Likewise.
56808         * lib/rename.c: Likewise.
56809         * lib/rmdir.c: Likewise.
56810         * lib/rpmatch.c: Likewise.
56811         * lib/safe-read.c: Likewise.
56812         * lib/safe-read.h: Likewise.
56813         * lib/safe-write.c: Likewise.
56814         * lib/safe-write.h: Likewise.
56815         * lib/same-inode.h: Likewise.
56816         * lib/same.c: Likewise.
56817         * lib/same.h: Likewise.
56818         * lib/save-cwd.c: Likewise.
56819         * lib/save-cwd.h: Likewise.
56820         * lib/savedir.c: Likewise.
56821         * lib/savedir.h: Likewise.
56822         * lib/savewd.c: Likewise.
56823         * lib/savewd.h: Likewise.
56824         * lib/search.in.h: Likewise.
56825         * lib/setenv.c: Likewise.
56826         * lib/setenv.h: Likewise.
56827         * lib/settime.c: Likewise.
56828         * lib/sh-quote.c: Likewise.
56829         * lib/sh-quote.h: Likewise.
56830         * lib/sig2str.c: Likewise.
56831         * lib/sig2str.h: Likewise.
56832         * lib/signal.in.h: Likewise.
56833         * lib/signbitd.c: Likewise.
56834         * lib/signbitf.c: Likewise.
56835         * lib/signbitl.c: Likewise.
56836         * lib/sigprocmask.c: Likewise.
56837         * lib/sincosl.c: Likewise.
56838         * lib/sleep.c: Likewise.
56839         * lib/sprintf.c: Likewise.
56840         * lib/sqrtl.c: Likewise.
56841         * lib/stat-time.h: Likewise.
56842         * lib/stdio--.h: Likewise.
56843         * lib/stdio-safer.h: Likewise.
56844         * lib/stdlib--.h: Likewise.
56845         * lib/stdlib-safer.h: Likewise.
56846         * lib/stdlib.in.h: Likewise.
56847         * lib/stpcpy.c: Likewise.
56848         * lib/stpncpy.c: Likewise.
56849         * lib/strchrnul.c: Likewise.
56850         * lib/strcspn.c: Likewise.
56851         * lib/strerror.c: Likewise.
56852         * lib/strftime.c: Likewise.
56853         * lib/strftime.h: Likewise.
56854         * lib/striconveh.c: Likewise.
56855         * lib/striconveh.h: Likewise.
56856         * lib/striconveha.c: Likewise.
56857         * lib/striconveha.h: Likewise.
56858         * lib/stripslash.c: Likewise.
56859         * lib/strnlen1.c: Likewise.
56860         * lib/strnlen1.h: Likewise.
56861         * lib/strtod.c: Likewise.
56862         * lib/strtoimax.c: Likewise.
56863         * lib/strtok_r.c: Likewise.
56864         * lib/strtol.c: Likewise.
56865         * lib/strtoll.c: Likewise.
56866         * lib/strtoul.c: Likewise.
56867         * lib/strtoull.c: Likewise.
56868         * lib/sysexits.in.h: Likewise.
56869         * lib/tempname.c: Likewise.
56870         * lib/tempname.h: Likewise.
56871         * lib/timespec.h: Likewise.
56872         * lib/tls.c: Likewise.
56873         * lib/tls.h: Likewise.
56874         * lib/tmpdir.c: Likewise.
56875         * lib/tmpdir.h: Likewise.
56876         * lib/tmpfile-safer.c: Likewise.
56877         * lib/tmpfile.c: Likewise.
56878         * lib/trigl.c: Likewise.
56879         * lib/trigl.h: Likewise.
56880         * lib/trim.c: Likewise.
56881         * lib/trim.h: Likewise.
56882         * lib/trunc.c: Likewise.
56883         * lib/truncf.c: Likewise.
56884         * lib/truncl.c: Likewise.
56885         * lib/tsearch.c: Likewise.
56886         * lib/unicodeio.c: Likewise.
56887         * lib/unicodeio.h: Likewise.
56888         * lib/unistd--.h: Likewise.
56889         * lib/unistd-safer.h: Likewise.
56890         * lib/unistdio/ulc-fprintf.c: Likewise.
56891         * lib/unistdio/ulc-vfprintf.c: Likewise.
56892         * lib/unlinkdir.c: Likewise.
56893         * lib/unlinkdir.h: Likewise.
56894         * lib/unlocked-io.h: Likewise.
56895         * lib/unsetenv.c: Likewise.
56896         * lib/userspec.c: Likewise.
56897         * lib/utime.c: Likewise.
56898         * lib/utimecmp.c: Likewise.
56899         * lib/utimecmp.h: Likewise.
56900         * lib/utimens.c: Likewise.
56901         * lib/verify.h: Likewise.
56902         * lib/verror.c: Likewise.
56903         * lib/verror.h: Likewise.
56904         * lib/version-etc-fsf.c: Likewise.
56905         * lib/version-etc.c: Likewise.
56906         * lib/version-etc.h: Likewise.
56907         * lib/vfprintf.c: Likewise.
56908         * lib/vprintf.c: Likewise.
56909         * lib/vsprintf.c: Likewise.
56910         * lib/w32spawn.h: Likewise.
56911         * lib/wait-process.c: Likewise.
56912         * lib/wait-process.h: Likewise.
56913         * lib/wcwidth.c: Likewise.
56914         * lib/write-any-file.c: Likewise.
56915         * lib/xalloc-die.c: Likewise.
56916         * lib/xalloc.h: Likewise.
56917         * lib/xasprintf.c: Likewise.
56918         * lib/xgetcwd.c: Likewise.
56919         * lib/xgetcwd.h: Likewise.
56920         * lib/xgetdomainname.c: Likewise.
56921         * lib/xgetdomainname.h: Likewise.
56922         * lib/xgethostname.c: Likewise.
56923         * lib/xmalloc.c: Likewise.
56924         * lib/xmalloca.c: Likewise.
56925         * lib/xmalloca.h: Likewise.
56926         * lib/xmemcoll.c: Likewise.
56927         * lib/xnanosleep.c: Likewise.
56928         * lib/xreadlink.c: Likewise.
56929         * lib/xreadlink.h: Likewise.
56930         * lib/xsetenv.c: Likewise.
56931         * lib/xsetenv.h: Likewise.
56932         * lib/xstriconv.c: Likewise.
56933         * lib/xstriconv.h: Likewise.
56934         * lib/xstrndup.c: Likewise.
56935         * lib/xstrndup.h: Likewise.
56936         * lib/xstrtod.c: Likewise.
56937         * lib/xstrtod.h: Likewise.
56938         * lib/xstrtol-error.c: Likewise.
56939         * lib/xstrtol.c: Likewise.
56940         * lib/xstrtol.h: Likewise.
56941         * lib/xtime.h: Likewise.
56942         * lib/xvasprintf.c: Likewise.
56943         * lib/xvasprintf.h: Likewise.
56944         * lib/yesno.c: Likewise.
56945         * lib/yesno.h: Likewise.
56946         * posix-modules: Likewise.
56947         * tests/test-alloca-opt.c: Likewise.
56948         * tests/test-arcfour.c: Likewise.
56949         * tests/test-arctwo.c: Likewise.
56950         * tests/test-argmatch.c: Likewise.
56951         * tests/test-argp-2.sh: Likewise.
56952         * tests/test-argp.c: Likewise.
56953         * tests/test-arpa_inet.c: Likewise.
56954         * tests/test-array_list.c: Likewise.
56955         * tests/test-array_oset.c: Likewise.
56956         * tests/test-atexit.c: Likewise.
56957         * tests/test-avltree_list.c: Likewise.
56958         * tests/test-avltree_oset.c: Likewise.
56959         * tests/test-avltreehash_list.c: Likewise.
56960         * tests/test-base64.c: Likewise.
56961         * tests/test-binary-io.c: Likewise.
56962         * tests/test-byteswap.c: Likewise.
56963         * tests/test-c-ctype.c: Likewise.
56964         * tests/test-c-strcasecmp.c: Likewise.
56965         * tests/test-c-strcasestr.c: Likewise.
56966         * tests/test-c-strncasecmp.c: Likewise.
56967         * tests/test-c-strstr.c: Likewise.
56968         * tests/test-canonicalize-lgpl.c: Likewise.
56969         * tests/test-canonicalize.c: Likewise.
56970         * tests/test-carray_list.c: Likewise.
56971         * tests/test-ceilf.c: Likewise.
56972         * tests/test-ceill.c: Likewise.
56973         * tests/test-count-one-bits.c: Likewise.
56974         * tests/test-crc.c: Likewise.
56975         * tests/test-dirname.c: Likewise.
56976         * tests/test-fbufmode.c: Likewise.
56977         * tests/test-fcntl.c: Likewise.
56978         * tests/test-fflush.c: Likewise.
56979         * tests/test-floorf.c: Likewise.
56980         * tests/test-floorl.c: Likewise.
56981         * tests/test-fopen.c: Likewise.
56982         * tests/test-fprintf-posix.c: Likewise.
56983         * tests/test-fprintf-posix.h: Likewise.
56984         * tests/test-fpurge.c: Likewise.
56985         * tests/test-freadable.c: Likewise.
56986         * tests/test-freadahead.c: Likewise.
56987         * tests/test-freading.c: Likewise.
56988         * tests/test-freopen.c: Likewise.
56989         * tests/test-frexp.c: Likewise.
56990         * tests/test-frexpl.c: Likewise.
56991         * tests/test-fseek.c: Likewise.
56992         * tests/test-fseeko.c: Likewise.
56993         * tests/test-fseterr.c: Likewise.
56994         * tests/test-fstrcmp.c: Likewise.
56995         * tests/test-ftell.c: Likewise.
56996         * tests/test-ftello.c: Likewise.
56997         * tests/test-fwritable.c: Likewise.
56998         * tests/test-fwriting.c: Likewise.
56999         * tests/test-getaddrinfo.c: Likewise.
57000         * tests/test-getpass.c: Likewise.
57001         * tests/test-gettimeofday.c: Likewise.
57002         * tests/test-hmac-md5.c: Likewise.
57003         * tests/test-hmac-sha1.c: Likewise.
57004         * tests/test-iconv.c: Likewise.
57005         * tests/test-iconvme.c: Likewise.
57006         * tests/test-inttypes.c: Likewise.
57007         * tests/test-isnan.c: Likewise.
57008         * tests/test-isnanf.c: Likewise.
57009         * tests/test-isnanl-nolibm.c: Likewise.
57010         * tests/test-isnanl.c: Likewise.
57011         * tests/test-isnanl.h: Likewise.
57012         * tests/test-ldexpl.c: Likewise.
57013         * tests/test-linked_list.c: Likewise.
57014         * tests/test-linkedhash_list.c: Likewise.
57015         * tests/test-locale.c: Likewise.
57016         * tests/test-localename.c: Likewise.
57017         * tests/test-lock.c: Likewise.
57018         * tests/test-lseek.c: Likewise.
57019         * tests/test-malloca.c: Likewise.
57020         * tests/test-math.c: Likewise.
57021         * tests/test-mbscasecmp.c: Likewise.
57022         * tests/test-mbscasestr1.c: Likewise.
57023         * tests/test-mbscasestr2.c: Likewise.
57024         * tests/test-mbscasestr3.c: Likewise.
57025         * tests/test-mbscasestr4.c: Likewise.
57026         * tests/test-mbschr.c: Likewise.
57027         * tests/test-mbscspn.c: Likewise.
57028         * tests/test-mbsncasecmp.c: Likewise.
57029         * tests/test-mbspbrk.c: Likewise.
57030         * tests/test-mbspcasecmp.c: Likewise.
57031         * tests/test-mbsrchr.c: Likewise.
57032         * tests/test-mbsspn.c: Likewise.
57033         * tests/test-mbsstr1.c: Likewise.
57034         * tests/test-mbsstr2.c: Likewise.
57035         * tests/test-mbsstr3.c: Likewise.
57036         * tests/test-md5.c: Likewise.
57037         * tests/test-memmem.c: Likewise.
57038         * tests/test-netinet_in.c: Likewise.
57039         * tests/test-open.c: Likewise.
57040         * tests/test-printf-frexp.c: Likewise.
57041         * tests/test-printf-frexpl.c: Likewise.
57042         * tests/test-printf-posix.c: Likewise.
57043         * tests/test-printf-posix.h: Likewise.
57044         * tests/test-rbtree_list.c: Likewise.
57045         * tests/test-rbtree_oset.c: Likewise.
57046         * tests/test-rbtreehash_list.c: Likewise.
57047         * tests/test-read-file.c: Likewise.
57048         * tests/test-rijndael.c: Likewise.
57049         * tests/test-search.c: Likewise.
57050         * tests/test-signbit.c: Likewise.
57051         * tests/test-sleep.c: Likewise.
57052         * tests/test-snprintf-posix.c: Likewise.
57053         * tests/test-snprintf-posix.h: Likewise.
57054         * tests/test-snprintf.c: Likewise.
57055         * tests/test-sprintf-posix.c: Likewise.
57056         * tests/test-sprintf-posix.h: Likewise.
57057         * tests/test-stat-time.c: Likewise.
57058         * tests/test-stdbool.c: Likewise.
57059         * tests/test-stdint.c: Likewise.
57060         * tests/test-stdio.c: Likewise.
57061         * tests/test-stdlib.c: Likewise.
57062         * tests/test-stpncpy.c: Likewise.
57063         * tests/test-strcasestr.c: Likewise.
57064         * tests/test-striconv.c: Likewise.
57065         * tests/test-striconveh.c: Likewise.
57066         * tests/test-striconveha.c: Likewise.
57067         * tests/test-string.c: Likewise.
57068         * tests/test-sys_select.c: Likewise.
57069         * tests/test-sys_socket.c: Likewise.
57070         * tests/test-sys_stat.c: Likewise.
57071         * tests/test-sys_time.c: Likewise.
57072         * tests/test-sysexits.c: Likewise.
57073         * tests/test-time.c: Likewise.
57074         * tests/test-tls.c: Likewise.
57075         * tests/test-trunc.c: Likewise.
57076         * tests/test-truncf.c: Likewise.
57077         * tests/test-truncl.c: Likewise.
57078         * tests/test-unistd.c: Likewise.
57079         * tests/test-vasnprintf-posix.c: Likewise.
57080         * tests/test-vasnprintf-posix2.c: Likewise.
57081         * tests/test-vasnprintf.c: Likewise.
57082         * tests/test-vasprintf-posix.c: Likewise.
57083         * tests/test-vasprintf.c: Likewise.
57084         * tests/test-verify.c: Likewise.
57085         * tests/test-vfprintf-posix.c: Likewise.
57086         * tests/test-vprintf-posix.c: Likewise.
57087         * tests/test-vsnprintf-posix.c: Likewise.
57088         * tests/test-vsnprintf.c: Likewise.
57089         * tests/test-vsprintf-posix.c: Likewise.
57090         * tests/test-wchar.c: Likewise.
57091         * tests/test-wctype.c: Likewise.
57092         * tests/test-wcwidth.c: Likewise.
57093         * tests/test-xstrtol.c: Likewise.
57094         * tests/test-xvasprintf.c: Likewise.
57095         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57096         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57097         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57098         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57099         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57100         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57101         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57102         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57103         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57104         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57105         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57106         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57107         * tests/uniname/test-uninames.c: Likewise.
57108         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57109         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
57110         * tests/unistdio/test-u16-printf1.h: Likewise.
57111         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57112         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57113         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57114         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57115         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57116         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57117         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57118         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
57119         * tests/unistdio/test-u32-printf1.h: Likewise.
57120         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57121         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57122         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57123         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57124         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57125         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57126         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57127         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
57128         * tests/unistdio/test-u8-printf1.h: Likewise.
57129         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57130         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57131         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57132         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57133         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57134         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57135         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57136         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
57137         * tests/unistdio/test-ulc-printf1.h: Likewise.
57138         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57139         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57140         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57141         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57142         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57143         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57144         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57145         * tests/uniwidth/test-u16-width.c: Likewise.
57146         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57147         * tests/uniwidth/test-u32-width.c: Likewise.
57148         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57149         * tests/uniwidth/test-u8-width.c: Likewise.
57150         * tests/uniwidth/test-uc_width.c: Likewise.
57151         * config/srclist-update: Likewise.
57152         (fixlicense): Update to GPLv3+.
57153
57154         Change copyright notice from LGPLv2.1+ to LGPLv3+.
57155         * tests/test-tsearch.c: Change copyright notice.
57156
57157         Change copyright notice from LGPLv2.0+ to LGPLv3+.
57158         * lib/c-strcaseeq.h: Change copyright notice.
57159         * lib/streq.h: Likewise.
57160         * lib/uniconv.h: Likewise.
57161         * lib/uniconv/u-conv-from-enc.h: Likewise.
57162         * lib/uniconv/u-conv-to-enc.h: Likewise.
57163         * lib/uniconv/u-strconv-from-enc.h: Likewise.
57164         * lib/uniconv/u-strconv-to-enc.h: Likewise.
57165         * lib/uniconv/u16-conv-from-enc.c: Likewise.
57166         * lib/uniconv/u16-conv-to-enc.c: Likewise.
57167         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
57168         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
57169         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
57170         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
57171         * lib/uniconv/u32-conv-from-enc.c: Likewise.
57172         * lib/uniconv/u32-conv-to-enc.c: Likewise.
57173         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
57174         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
57175         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
57176         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
57177         * lib/uniconv/u8-conv-from-enc.c: Likewise.
57178         * lib/uniconv/u8-conv-to-enc.c: Likewise.
57179         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
57180         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
57181         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
57182         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
57183         * lib/uniname.h: Likewise.
57184         * lib/uniname/uniname.c: Likewise.
57185         * lib/unistdio.h: Likewise.
57186         * lib/unistdio/u-asnprintf.h: Likewise.
57187         * lib/unistdio/u-asprintf.h: Likewise.
57188         * lib/unistdio/u-printf-args.c: Likewise.
57189         * lib/unistdio/u-printf-args.h: Likewise.
57190         * lib/unistdio/u-printf-parse.h: Likewise.
57191         * lib/unistdio/u-snprintf.h: Likewise.
57192         * lib/unistdio/u-sprintf.h: Likewise.
57193         * lib/unistdio/u-vasprintf.h: Likewise.
57194         * lib/unistdio/u-vsnprintf.h: Likewise.
57195         * lib/unistdio/u-vsprintf.h: Likewise.
57196         * lib/unistdio/u16-asnprintf.c: Likewise.
57197         * lib/unistdio/u16-asprintf.c: Likewise.
57198         * lib/unistdio/u16-printf-parse.c: Likewise.
57199         * lib/unistdio/u16-snprintf.c: Likewise.
57200         * lib/unistdio/u16-sprintf.c: Likewise.
57201         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
57202         * lib/unistdio/u16-u16-asprintf.c: Likewise.
57203         * lib/unistdio/u16-u16-snprintf.c: Likewise.
57204         * lib/unistdio/u16-u16-sprintf.c: Likewise.
57205         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
57206         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
57207         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
57208         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
57209         * lib/unistdio/u16-vasnprintf.c: Likewise.
57210         * lib/unistdio/u16-vasprintf.c: Likewise.
57211         * lib/unistdio/u16-vsnprintf.c: Likewise.
57212         * lib/unistdio/u16-vsprintf.c: Likewise.
57213         * lib/unistdio/u32-asnprintf.c: Likewise.
57214         * lib/unistdio/u32-asprintf.c: Likewise.
57215         * lib/unistdio/u32-printf-parse.c: Likewise.
57216         * lib/unistdio/u32-snprintf.c: Likewise.
57217         * lib/unistdio/u32-sprintf.c: Likewise.
57218         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
57219         * lib/unistdio/u32-u32-asprintf.c: Likewise.
57220         * lib/unistdio/u32-u32-snprintf.c: Likewise.
57221         * lib/unistdio/u32-u32-sprintf.c: Likewise.
57222         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
57223         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
57224         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
57225         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
57226         * lib/unistdio/u32-vasnprintf.c: Likewise.
57227         * lib/unistdio/u32-vasprintf.c: Likewise.
57228         * lib/unistdio/u32-vsnprintf.c: Likewise.
57229         * lib/unistdio/u32-vsprintf.c: Likewise.
57230         * lib/unistdio/u8-asnprintf.c: Likewise.
57231         * lib/unistdio/u8-asprintf.c: Likewise.
57232         * lib/unistdio/u8-printf-parse.c: Likewise.
57233         * lib/unistdio/u8-snprintf.c: Likewise.
57234         * lib/unistdio/u8-sprintf.c: Likewise.
57235         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
57236         * lib/unistdio/u8-u8-asprintf.c: Likewise.
57237         * lib/unistdio/u8-u8-snprintf.c: Likewise.
57238         * lib/unistdio/u8-u8-sprintf.c: Likewise.
57239         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
57240         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
57241         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
57242         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
57243         * lib/unistdio/u8-vasnprintf.c: Likewise.
57244         * lib/unistdio/u8-vasprintf.c: Likewise.
57245         * lib/unistdio/u8-vsnprintf.c: Likewise.
57246         * lib/unistdio/u8-vsprintf.c: Likewise.
57247         * lib/unistdio/ulc-asnprintf.c: Likewise.
57248         * lib/unistdio/ulc-asprintf.c: Likewise.
57249         * lib/unistdio/ulc-printf-parse.c: Likewise.
57250         * lib/unistdio/ulc-snprintf.c: Likewise.
57251         * lib/unistdio/ulc-sprintf.c: Likewise.
57252         * lib/unistdio/ulc-vasnprintf.c: Likewise.
57253         * lib/unistdio/ulc-vasprintf.c: Likewise.
57254         * lib/unistdio/ulc-vsnprintf.c: Likewise.
57255         * lib/unistdio/ulc-vsprintf.c: Likewise.
57256         * lib/unistr.h: Likewise.
57257         * lib/unistr/u-cpy-alloc.h: Likewise.
57258         * lib/unistr/u-cpy.h: Likewise.
57259         * lib/unistr/u-endswith.h: Likewise.
57260         * lib/unistr/u-move.h: Likewise.
57261         * lib/unistr/u-set.h: Likewise.
57262         * lib/unistr/u-startswith.h: Likewise.
57263         * lib/unistr/u-stpcpy.h: Likewise.
57264         * lib/unistr/u-stpncpy.h: Likewise.
57265         * lib/unistr/u-strcat.h: Likewise.
57266         * lib/unistr/u-strcpy.h: Likewise.
57267         * lib/unistr/u-strcspn.h: Likewise.
57268         * lib/unistr/u-strdup.h: Likewise.
57269         * lib/unistr/u-strlen.h: Likewise.
57270         * lib/unistr/u-strncat.h: Likewise.
57271         * lib/unistr/u-strncpy.h: Likewise.
57272         * lib/unistr/u-strnlen.h: Likewise.
57273         * lib/unistr/u-strpbrk.h: Likewise.
57274         * lib/unistr/u-strspn.h: Likewise.
57275         * lib/unistr/u-strstr.h: Likewise.
57276         * lib/unistr/u-strtok.h: Likewise.
57277         * lib/unistr/u16-check.c: Likewise.
57278         * lib/unistr/u16-chr.c: Likewise.
57279         * lib/unistr/u16-cmp.c: Likewise.
57280         * lib/unistr/u16-cpy-alloc.c: Likewise.
57281         * lib/unistr/u16-cpy.c: Likewise.
57282         * lib/unistr/u16-endswith.c: Likewise.
57283         * lib/unistr/u16-mblen.c: Likewise.
57284         * lib/unistr/u16-mbsnlen.c: Likewise.
57285         * lib/unistr/u16-mbtouc-aux.c: Likewise.
57286         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
57287         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
57288         * lib/unistr/u16-mbtouc.c: Likewise.
57289         * lib/unistr/u16-mbtoucr.c: Likewise.
57290         * lib/unistr/u16-move.c: Likewise.
57291         * lib/unistr/u16-next.c: Likewise.
57292         * lib/unistr/u16-prev.c: Likewise.
57293         * lib/unistr/u16-set.c: Likewise.
57294         * lib/unistr/u16-startswith.c: Likewise.
57295         * lib/unistr/u16-stpcpy.c: Likewise.
57296         * lib/unistr/u16-stpncpy.c: Likewise.
57297         * lib/unistr/u16-strcat.c: Likewise.
57298         * lib/unistr/u16-strchr.c: Likewise.
57299         * lib/unistr/u16-strcmp.c: Likewise.
57300         * lib/unistr/u16-strcpy.c: Likewise.
57301         * lib/unistr/u16-strcspn.c: Likewise.
57302         * lib/unistr/u16-strdup.c: Likewise.
57303         * lib/unistr/u16-strlen.c: Likewise.
57304         * lib/unistr/u16-strmblen.c: Likewise.
57305         * lib/unistr/u16-strmbtouc.c: Likewise.
57306         * lib/unistr/u16-strncat.c: Likewise.
57307         * lib/unistr/u16-strncmp.c: Likewise.
57308         * lib/unistr/u16-strncpy.c: Likewise.
57309         * lib/unistr/u16-strnlen.c: Likewise.
57310         * lib/unistr/u16-strpbrk.c: Likewise.
57311         * lib/unistr/u16-strrchr.c: Likewise.
57312         * lib/unistr/u16-strspn.c: Likewise.
57313         * lib/unistr/u16-strstr.c: Likewise.
57314         * lib/unistr/u16-strtok.c: Likewise.
57315         * lib/unistr/u16-to-u32.c: Likewise.
57316         * lib/unistr/u16-to-u8.c: Likewise.
57317         * lib/unistr/u16-uctomb-aux.c: Likewise.
57318         * lib/unistr/u16-uctomb.c: Likewise.
57319         * lib/unistr/u32-check.c: Likewise.
57320         * lib/unistr/u32-chr.c: Likewise.
57321         * lib/unistr/u32-cmp.c: Likewise.
57322         * lib/unistr/u32-cpy-alloc.c: Likewise.
57323         * lib/unistr/u32-cpy.c: Likewise.
57324         * lib/unistr/u32-endswith.c: Likewise.
57325         * lib/unistr/u32-mblen.c: Likewise.
57326         * lib/unistr/u32-mbsnlen.c: Likewise.
57327         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
57328         * lib/unistr/u32-mbtouc.c: Likewise.
57329         * lib/unistr/u32-mbtoucr.c: Likewise.
57330         * lib/unistr/u32-move.c: Likewise.
57331         * lib/unistr/u32-next.c: Likewise.
57332         * lib/unistr/u32-prev.c: Likewise.
57333         * lib/unistr/u32-set.c: Likewise.
57334         * lib/unistr/u32-startswith.c: Likewise.
57335         * lib/unistr/u32-stpcpy.c: Likewise.
57336         * lib/unistr/u32-stpncpy.c: Likewise.
57337         * lib/unistr/u32-strcat.c: Likewise.
57338         * lib/unistr/u32-strchr.c: Likewise.
57339         * lib/unistr/u32-strcmp.c: Likewise.
57340         * lib/unistr/u32-strcpy.c: Likewise.
57341         * lib/unistr/u32-strcspn.c: Likewise.
57342         * lib/unistr/u32-strdup.c: Likewise.
57343         * lib/unistr/u32-strlen.c: Likewise.
57344         * lib/unistr/u32-strmblen.c: Likewise.
57345         * lib/unistr/u32-strmbtouc.c: Likewise.
57346         * lib/unistr/u32-strncat.c: Likewise.
57347         * lib/unistr/u32-strncmp.c: Likewise.
57348         * lib/unistr/u32-strncpy.c: Likewise.
57349         * lib/unistr/u32-strnlen.c: Likewise.
57350         * lib/unistr/u32-strpbrk.c: Likewise.
57351         * lib/unistr/u32-strrchr.c: Likewise.
57352         * lib/unistr/u32-strspn.c: Likewise.
57353         * lib/unistr/u32-strstr.c: Likewise.
57354         * lib/unistr/u32-strtok.c: Likewise.
57355         * lib/unistr/u32-to-u16.c: Likewise.
57356         * lib/unistr/u32-to-u8.c: Likewise.
57357         * lib/unistr/u32-uctomb.c: Likewise.
57358         * lib/unistr/u8-check.c: Likewise.
57359         * lib/unistr/u8-chr.c: Likewise.
57360         * lib/unistr/u8-cmp.c: Likewise.
57361         * lib/unistr/u8-cpy-alloc.c: Likewise.
57362         * lib/unistr/u8-cpy.c: Likewise.
57363         * lib/unistr/u8-endswith.c: Likewise.
57364         * lib/unistr/u8-mblen.c: Likewise.
57365         * lib/unistr/u8-mbsnlen.c: Likewise.
57366         * lib/unistr/u8-mbtouc-aux.c: Likewise.
57367         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
57368         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
57369         * lib/unistr/u8-mbtouc.c: Likewise.
57370         * lib/unistr/u8-mbtoucr.c: Likewise.
57371         * lib/unistr/u8-move.c: Likewise.
57372         * lib/unistr/u8-next.c: Likewise.
57373         * lib/unistr/u8-prev.c: Likewise.
57374         * lib/unistr/u8-set.c: Likewise.
57375         * lib/unistr/u8-startswith.c: Likewise.
57376         * lib/unistr/u8-stpcpy.c: Likewise.
57377         * lib/unistr/u8-stpncpy.c: Likewise.
57378         * lib/unistr/u8-strcat.c: Likewise.
57379         * lib/unistr/u8-strchr.c: Likewise.
57380         * lib/unistr/u8-strcmp.c: Likewise.
57381         * lib/unistr/u8-strcpy.c: Likewise.
57382         * lib/unistr/u8-strcspn.c: Likewise.
57383         * lib/unistr/u8-strdup.c: Likewise.
57384         * lib/unistr/u8-strlen.c: Likewise.
57385         * lib/unistr/u8-strmblen.c: Likewise.
57386         * lib/unistr/u8-strmbtouc.c: Likewise.
57387         * lib/unistr/u8-strncat.c: Likewise.
57388         * lib/unistr/u8-strncmp.c: Likewise.
57389         * lib/unistr/u8-strncpy.c: Likewise.
57390         * lib/unistr/u8-strnlen.c: Likewise.
57391         * lib/unistr/u8-strpbrk.c: Likewise.
57392         * lib/unistr/u8-strrchr.c: Likewise.
57393         * lib/unistr/u8-strspn.c: Likewise.
57394         * lib/unistr/u8-strstr.c: Likewise.
57395         * lib/unistr/u8-strtok.c: Likewise.
57396         * lib/unistr/u8-to-u16.c: Likewise.
57397         * lib/unistr/u8-to-u32.c: Likewise.
57398         * lib/unistr/u8-uctomb-aux.c: Likewise.
57399         * lib/unistr/u8-uctomb.c: Likewise.
57400         * lib/unitypes.h: Likewise.
57401         * lib/uniwidth.h: Likewise.
57402         * lib/uniwidth/cjk.h: Likewise.
57403         * lib/uniwidth/u16-strwidth.c: Likewise.
57404         * lib/uniwidth/u16-width.c: Likewise.
57405         * lib/uniwidth/u32-strwidth.c: Likewise.
57406         * lib/uniwidth/u32-width.c: Likewise.
57407         * lib/uniwidth/u8-strwidth.c: Likewise.
57408         * lib/uniwidth/u8-width.c: Likewise.
57409         * lib/uniwidth/width.c: Likewise.
57410
57411 2007-10-07  Bruno Haible  <bruno@clisp.org>
57412
57413         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
57414         The file is still under LGPL (see modules/inttypes).
57415
57416 2007-10-06  Bruno Haible  <bruno@clisp.org>
57417
57418         * modules/trunc (Dependencies): Add 'extensions'.
57419         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
57420         Reported by Ben Pfaff <blp@gnu.org>.
57421
57422 2007-10-06  Bruno Haible  <bruno@clisp.org>
57423
57424         * modules/freopen-tests: New file.
57425         * tests/test-freopen.c: New file.
57426
57427         * modules/fopen-tests: New file.
57428         * tests/test-fopen.c: New file.
57429
57430         * modules/fopen: New file.
57431         * lib/fopen.c: New file.
57432         * m4/fopen.m4: New file.
57433         * modules/freopen: New file.
57434         * lib/freopen.c: New file.
57435         * m4/freopen.m4: New file.
57436         * lib/stdio.in.h (fopen, freopen): New declarations.
57437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
57438         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57439         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
57440         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57441         * doc/functions/fopen.texi: Mention the 'fopen' module.
57442         * doc/functions/freopen.texi: Mention the 'freopen' module.
57443
57444 2007-10-06  Bruno Haible  <bruno@clisp.org>
57445
57446         * modules/open-tests: New file.
57447         * tests/test-open.c: New file.
57448
57449         * modules/open: New file.
57450         * lib/open.c: New file.
57451         * m4/open.m4: New file.
57452         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
57453         lib/open.c does.
57454         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
57455         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
57456         macros.
57457         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
57458         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
57459         REPLACE_OPEN.
57460         * doc/functions/open.texi: Mention the 'open' module.
57461
57462 2007-10-04  Bruno Haible  <bruno@clisp.org>
57463
57464         * modules/ceill-tests: New file.
57465         * tests/test-ceill.c: New file.
57466
57467         * modules/ceill: New file.
57468         * lib/ceill.c: Replace entire file.
57469         * m4/ceill.m4: New file.
57470         * lib/math.in.h (ceill): Replace declaration.
57471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
57472         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
57473         * doc/functions/ceill.texi: Mention the 'ceill' module.
57474         * modules/mathl (Files): Remove lib/ceill.c.
57475         (Depends-on): Add ceill.
57476
57477 2007-10-04  Bruno Haible  <bruno@clisp.org>
57478
57479         * modules/ceilf-tests: New file.
57480         * tests/test-ceilf.c: New file.
57481
57482         * modules/ceilf: New file.
57483         * lib/ceil.c: New file.
57484         * lib/ceilf.c: New file.
57485         * m4/ceilf.m4: New file.
57486         * lib/math.in.h (ceilf): New declaration.
57487         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
57488         HAVE_DECL_CEILF.
57489         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
57490         HAVE_DECL_CEILF.
57491         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
57492
57493 2007-10-04  Bruno Haible  <bruno@clisp.org>
57494
57495         * modules/floorl-tests: New file.
57496         * tests/test-floorl.c: New file.
57497
57498         * modules/floorl: New file.
57499         * lib/floorl.c: Replace entire file.
57500         * m4/floorl.m4: New file.
57501         * lib/math.in.h (floorl): Replace declaration.
57502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
57503         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
57504         * doc/functions/floorl.texi: Mention the 'floorl' module.
57505         * modules/mathl (Files): Remove lib/floorl.c.
57506         (Depends-on): Add floorl.
57507
57508 2007-10-04  Bruno Haible  <bruno@clisp.org>
57509
57510         * modules/floorf-tests: New file.
57511         * tests/test-floorf.c: New file.
57512
57513         * modules/floorf: New file.
57514         * lib/floor.c: New file.
57515         * lib/floorf.c: New file.
57516         * m4/floorf.m4: New file.
57517         * lib/math.in.h (floorf): New declaration.
57518         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
57519         HAVE_DECL_FLOORF.
57520         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
57521         HAVE_DECL_FLOORF.
57522         * doc/functions/floorf.texi: Mention the 'floorf' module.
57523
57524 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
57525             Bruno Haible  <bruno@clisp.org>
57526
57527         Advertise for the Git server instead of the CVS server.
57528         * doc/gnulib-intro.texi (Steady Development): Mention the Git
57529         repository instead of the CVS one.
57530         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
57531         about all VCS systems generically.
57532         * doc/gnulib.texi (Introduction): Capitalize `Git'.
57533
57534 2007-10-04  Bruno Haible  <bruno@clisp.org>
57535
57536         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
57537         means.
57538         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
57539
57540 2007-10-04  Bruno Haible  <bruno@clisp.org>
57541
57542         * modules/truncl-tests: New file.
57543         * tests/test-truncl.c: New file.
57544
57545         * modules/truncl: New file.
57546         * lib/truncl.c: New file.
57547         * m4/truncl.m4: New file.
57548         * lib/math.in.h (truncl): New declaration.
57549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
57550         HAVE_DECL_TRUNCL.
57551         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
57552         HAVE_DECL_TRUNCL.
57553         * doc/functions/truncl.texi: Mention the 'truncl' module.
57554
57555 2007-10-04  Bruno Haible  <bruno@clisp.org>
57556
57557         * modules/truncf-tests: New file.
57558         * tests/test-truncf.c: New file.
57559
57560         * modules/truncf: New file.
57561         * lib/trunc.c: Make paramerizable through USE_* macros.
57562         * lib/truncf.c: New file.
57563         * m4/truncf.m4: New file.
57564         * lib/math.in.h (truncf): New declaration.
57565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
57566         HAVE_DECL_TRUNCF.
57567         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
57568         HAVE_DECL_TRUNCF.
57569         * doc/functions/truncf.texi: Mention the 'truncf' module.
57570
57571 2007-10-03  Bruno Haible  <bruno@clisp.org>
57572
57573         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57574         augmentation also for tests modules.
57575         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
57576         * modules/atexit-tests (Makefile.am): Likewise.
57577         * modules/binary-io-tests (Makefile.am): Likewise.
57578         * modules/c-strcase-tests (Makefile.am): Likewise.
57579         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
57580         * modules/canonicalize-tests (Makefile.am): Likewise.
57581         * modules/closein-tests (Makefile.am): Likewise.
57582         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57583         * modules/freadahead-tests (Makefile.am): Likewise.
57584         * modules/fseek-tests (Makefile.am): Likewise.
57585         * modules/fseeko-tests (Makefile.am): Likewise.
57586         * modules/ftell-tests (Makefile.am): Likewise.
57587         * modules/ftello-tests (Makefile.am): Likewise.
57588         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
57589         * modules/isnanl-tests (Makefile.am): Likewise.
57590         * modules/lseek-tests (Makefile.am): Likewise.
57591         * modules/mbscasecmp-tests (Makefile.am): Likewise.
57592         * modules/mbscasestr-tests (Makefile.am): Likewise.
57593         * modules/mbschr-tests (Makefile.am): Likewise.
57594         * modules/mbscspn-tests (Makefile.am): Likewise.
57595         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
57596         * modules/mbspbrk-tests (Makefile.am): Likewise.
57597         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
57598         * modules/mbsrchr-tests (Makefile.am): Likewise.
57599         * modules/mbsspn-tests (Makefile.am): Likewise.
57600         * modules/mbsstr-tests (Makefile.am): Likewise.
57601         * modules/printf-posix-tests (Makefile.am): Likewise.
57602         * modules/snprintf-posix-tests (Makefile.am): Likewise.
57603         * modules/sprintf-posix-tests (Makefile.am): Likewise.
57604         * modules/tsearch-tests (Makefile.am): Likewise.
57605         * modules/uniname/uniname-tests (Makefile.am): Likewise.
57606         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
57607         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
57608         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
57609         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
57610         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57611         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57612         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57613         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
57614         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
57615         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57616         * modules/xstrtol-tests (Makefile.am): Likewise.
57617         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57618         * modules/yesno-tests (Makefile.am): Likewise.
57619
57620 2007-10-03  Bruno Haible  <bruno@clisp.org>
57621
57622         * modules/trunc-tests: New file.
57623         * tests/test-trunc.c: New file.
57624
57625         * modules/trunc: New file.
57626         * lib/trunc.c: New file.
57627         * m4/trunc.m4: New file.
57628         * lib/math.in.h (trunc): New declaration.
57629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
57630         HAVE_DECL_TRUNC.
57631         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
57632         HAVE_DECL_TRUNC.
57633         * doc/functions/trunc.texi: Mention the 'trunc' module.
57634
57635 2007-10-03  Bruno Haible  <bruno@clisp.org>
57636
57637         * tests/test-fpending.c: New file, mostly copied
57638         from coreutils/lib/t-fpending.c.
57639         * modules/fpending-tests: New file.
57640
57641 2007-10-03  Bruno Haible  <bruno@clisp.org>
57642
57643         Port the stdio extensions to QNX (untested).
57644         * lib/fseterr.c (fseterr): Add support for QNX.
57645         * lib/fbufmode.c (fbufmode): Likewise.
57646         * lib/freadable.c (freadable): Likewise.
57647         * lib/fwritable.c (fwritable): Likewise.
57648         * lib/freading.c (freading): Likewise.
57649         * lib/fwriting.c (fwriting): Likewise.
57650         * lib/freadahead.c (freadahed): Likewise.
57651         * lib/fpurge.c (fpurge): Likewise.
57652         * lib/fseeko.c (rpl_fseeko): Likewise.
57653
57654 2007-10-03  Bruno Haible  <bruno@clisp.org>
57655             Jim Meyering  <jim@meyering.net>
57656             Eric Blake  <ebb9@byu.net>
57657
57658         * doc/relocatable.texi: Use @command instead of @program.
57659
57660 2007-10-02  Jim Meyering  <jim@meyering.net>
57661
57662         Perform one more "_.h" -> ".in.h" substitution.
57663         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57664         instead of unistd_.h here, too.
57665
57666 2007-10-01  Bruno Haible  <bruno@clisp.org>
57667
57668         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57669         Needed for the alloca-opt module.
57670
57671 2007-09-30  Bruno Haible  <bruno@clisp.org>
57672
57673         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57674         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57675         alloca_.h.
57676         * lib/argz.in.h: Renamed from lib/argz_.h.
57677         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57678         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57679         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57680         byteswap_.h.
57681         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57682         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57683         dirent_.h.
57684         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57685         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57686         fcntl_.h.
57687         * lib/float.in.h: Renamed from lib/float_.h.
57688         * modules/float (Files, Makefile.am): Use float.in.h instead of
57689         float_.h.
57690         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
57691         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
57692         fnmatch_.h.
57693         * lib/getopt.in.h: Renamed from lib/getopt_.h.
57694         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
57695         getopt_.h.
57696         * lib/glob.in.h: Renamed from lib/glob_.h.
57697         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
57698         * lib/iconv.in.h: Renamed from lib/iconv_.h.
57699         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
57700         iconv_.h.
57701         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
57702         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
57703         inttypes_.h.
57704         * lib/locale.in.h: Renamed from lib/locale_.h.
57705         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
57706         locale_.h.
57707         * lib/math.in.h: Renamed from lib/math_.h.
57708         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57709         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57710         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57711         of netinet_in_.h. Add dependency.
57712         * lib/poll.in.h: Renamed from lib/poll_.h.
57713         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57714         * lib/search.in.h: Renamed from lib/search_.h.
57715         * modules/search (Files, Makefile.am): Use search.in.h instead of
57716         search_.h.
57717         * lib/signal.in.h: Renamed from lib/signal_.h.
57718         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57719         _signal.h.
57720         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57721         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57722         stdbool_.h.
57723         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57724         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57725         stdint_.h.
57726         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57727         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57728         stdio_.h.
57729         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57730         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57731         stdlib_.h.
57732         * lib/string.in.h: Renamed from lib/string_.h.
57733         * modules/string (Files, Makefile.am): Use string.in.h instead of
57734         string_.h.
57735         * doc/gnulib-tool.texi (Initial import): Update.
57736         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
57737         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
57738         of sys_select_.h. Add dependency.
57739         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
57740         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
57741         of sys_socket_.h.
57742         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
57743         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
57744         sys_stat_.h.
57745         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
57746         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
57747         sys_time_.h.
57748         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
57749         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
57750         sysexits_.h.
57751         * lib/time.in.h: Renamed from lib/time_.h.
57752         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
57753         * lib/unistd.in.h: Renamed from lib/unistd_.h.
57754         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
57755         unistd_.h.
57756         * lib/wchar.in.h: Renamed from lib/wchar_.h.
57757         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57758         wchar_.h.
57759         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57760         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57761         wctype_.h.
57762         * build-aux/bootstrap (slurp): Update.
57763         * lib/.cppi-disable: Update.
57764
57765 2007-09-30  Bruno Haible  <bruno@clisp.org>
57766
57767         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57768         Needed on BeOS.
57769
57770 2007-09-30  Bruno Haible  <bruno@clisp.org>
57771
57772         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57773
57774 2007-09-29  Bruno Haible  <bruno@clisp.org>
57775
57776         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57777
57778 2007-09-29  Bruno Haible  <bruno@clisp.org>
57779
57780         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57781         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57782         * build-aux/install-reloc: Compile also areadlink.c.
57783         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57784
57785 2007-09-29  Bruno Haible  <bruno@clisp.org>
57786
57787         * gnulib-tool (func_emit_initmacro_done): Indentation.
57788
57789 2007-09-29  Bruno Haible  <bruno@clisp.org>
57790
57791         * README: Add CVS checkout update instructions.
57792         Info from Bob Proulx <bob@proulx.com>.
57793
57794 2007-09-28  Eric Blake  <ebb9@byu.net>
57795
57796         Provide move-if-change.
57797         * build-aux/move-if-change: New file, based on best practice
57798         rather than any canonical upstream location.
57799
57800 2007-09-28  Jim Meyering  <jim@meyering.net>
57801
57802         Fix canonicalize loop-detection corner case.
57803         Do not attempt to stat the symlink values stored via seen_triple.
57804         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
57805         on linux-2.6.18, (but not 2.6.22).
57806         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
57807         triple_compare.  The former compares dev,ino,filename, while the latter
57808         would actually stat dirname(filename) when dev and ino were equal.
57809         * lib/hash-triple.c: Install <string.h>.
57810         (STREQ): Define.
57811         (triple_compare_ino_str): New function.
57812         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57813
57814 2007-09-28  Eric Blake  <ebb9@byu.net>
57815
57816         Enforce that AC_REPLACE_FUNCS files exist.
57817         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57818         override check for typos.
57819
57820         Fix test-closein on Solaris 10.
57821         * tests/test-closein.c (main): Don't assume stdin can be inherited
57822         closed on all systems.
57823         * tests/test-closein.sh: Likewise.
57824         Reported by Piotr Tarnowski.
57825
57826 2007-09-28  Jim Meyering  <jim@meyering.net>
57827
57828         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57829
57830 2007-09-27  Jim Meyering  <jim@meyering.net>
57831
57832         canonicalize: Avoid a false-positive cycle failure.
57833         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57834         Sort.  Remove cycle-check.
57835         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57836         not cycle-check.h.
57837         (seen_triple): New function.
57838         (canonicalize_filename_mode): Use it instead of cycle-check.
57839         * tests/test-canonicalize.c: Add a test for this bug.
57840         * tests/test-canonicalize.sh: Set up and run the test.
57841
57842         New module, file-set, from coreutils.
57843         * modules/file-set: Define it.
57844         * lib/file-set.c, lib/file-set.h: Implement.
57845
57846         New module, hash-triple, from coreutils.
57847         * modules/hash-triple: Define it.
57848         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57849
57850 2007-09-25  Eric Blake  <ebb9@byu.net>
57851
57852         Fix strerror on Interix.
57853         * lib/string_.h (strerror): Declare replacement.
57854         * doc/functions/strerror.texi (strerror): Document the Interix
57855         shortcoming.
57856         * modules/string (Makefile.am): Support new hooks.
57857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57858         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57859         gl_FUNC_STRERROR_SEPARATE.
57860         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57861         * lib/strerror.c (rpl_strerror): Provide replacement.
57862         * modules/strerror (Depends-on): Add string.
57863         (configure.ac): Detect use of module.
57864         * tests/test-strerror.c: New file.
57865         * modules/strerror-tests: New test module.
57866         * modules/argp (Depends-on): Add strerror.
57867         * modules/error (Depends-on): Likewise.
57868         Reported by Martin Koeppe.
57869
57870 2007-09-24  Bruno Haible  <bruno@clisp.org>
57871
57872         * README: Update git instructions.
57873
57874 2007-09-24  Eric Blake  <ebb9@byu.net>
57875
57876         Revert fpending breakage from 2007-09-08.
57877         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57878         __fpending.c.
57879
57880 2007-09-24  Jim Meyering  <jim@meyering.net>
57881
57882         filenamecat.c: Add a test.
57883         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57884         showing how the function works when DIR is the empty string.
57885
57886 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57887
57888         * tests/test-canonicalize.sh: Turn on executable bit.
57889
57890 2007-09-19  Eric Blake  <ebb9@byu.net>
57891
57892         * README: Update CVS instructions.
57893
57894 2007-09-18  Bruno Haible  <bruno@clisp.org>
57895
57896         * modules/areadlink: New file.
57897         * lib/areadlink.h (areadlink): New declaration.
57898         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57899
57900 2007-09-17  Jim Meyering  <jim@meyering.net>
57901
57902         * lib/savewd.c (ESTALE) [!defined]: Define.
57903         Reported to be required on Interix by Martin Koeppe.
57904
57905 2007-09-17  Bruno Haible  <bruno@clisp.org>
57906
57907         * gnulib-tool (func_version): Use $version.
57908
57909 2007-09-16  Bruno Haible  <bruno@clisp.org>
57910
57911         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57912         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57913         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57914         Reported by Greg Schafer <gschafer@zip.com.au>.
57915
57916 2007-09-15  Bruno Haible  <bruno@clisp.org>
57917
57918         * gnulib-tool (sed): Try a little harder to make bash understand the
57919         alias.
57920         Reported by Bruce Korb <bruce.korb@gmail.com>.
57921
57922 2007-09-13  Eric Blake  <ebb9@byu.net>
57923
57924         * ChangeLog: Remove conflict markers.
57925
57926 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57927
57928         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57929         Reported by Bruno Haible <bruno@clisp.org>.
57930
57931 2007-09-12  Bruno Haible  <bruno@clisp.org>
57932
57933         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57934         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57935         is not defined.
57936
57937 2007-09-12  Eric Blake  <ebb9@byu.net>
57938
57939         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57940         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57941         Autoconf definition.
57942         * modules/euidaccess (Depends-on): Add extensions, for
57943         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57944         * modules/fnmatch (Depends-on): Likewise.
57945         * modules/getaddrinfo (Depends-on): Likewise.
57946         * modules/getdelim (Depends-on): Likewise.
57947         * modules/getline (Depends-on): Likewise.
57948         * modules/getsubopt (Depends-on): Likewise.
57949         * modules/gettext (Depends-on): Likewise.
57950         * modules/group-member (Depends-on): Likewise.
57951         * modules/mbchar (Depends-on): Likewise.
57952         * modules/memmem (Depends-on): Likewise.
57953         * modules/mempcpy (Depends-on): Likewise.
57954         * modules/memrchr (Depends-on): Likewise.
57955         * modules/pagealign_alloc (Depends-on): Likewise.
57956         * modules/readutmp (Depends-on): Likewise.
57957         * modules/stpcpy (Depends-on): Likewise.
57958         * modules/stpncpy (Depends-on): Likewise.
57959         * modules/strchrnul (Depends-on): Likewise.
57960         * modules/strndup (Depends-on): Likewise.
57961         * modules/strsep (Depends-on): Likewise.
57962         * modules/strverscmp (Depends-on): Likewise.
57963         * modules/vasprintf (Depends-on): Likewise.
57964         * modules/wcwidth (Depends-on): Likewise.
57965         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57966         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57967         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57968         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57969         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57970         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57971         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57972         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57973         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57974         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57975         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57976         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57977         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57978         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57979         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57980         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57981         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57982         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57983         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57984         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57985         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57986         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57987         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57988         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57989         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57990         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57991         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57992         so that lock.m4 can be used in gettext without extensions module.
57993
57994 2007-09-11  Bruno Haible  <bruno@clisp.org>
57995
57996         * m4/isc-posix.m4: Remove file.
57997         Suggested by Eric Blake.
57998
57999 2007-09-11  Eric Blake  <ebb9@byu.net>
58000
58001         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
58002
58003 2007-09-10  Bruno Haible  <bruno@clisp.org>
58004
58005         * posix-modules: Fix typo in error message.
58006         Reported by Matt <mkraai@beckman.com>.
58007
58008 2007-09-09  Bruno Haible  <bruno@clisp.org>
58009
58010         * doc/functions/getdelim.texi: Update list of platforms lacking the
58011         function.
58012         * doc/functions/getline.texi: Likewise.
58013
58014 2007-09-09  Jim Meyering  <jim@meyering.net>
58015
58016         * lib/hash.c (hash_initialize): Detect calloc failure.
58017         Reported by Bruno Haible.
58018
58019 2007-09-09  Bruno Haible  <bruno@clisp.org>
58020
58021         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
58022         malloc or realloc fails.
58023
58024 2007-09-09  Bruno Haible  <bruno@clisp.org>
58025
58026         * modules/getcwd (Depends-on): Add malloc-posix.
58027         * modules/glob (Depends-on): Likewise.
58028         * modules/putenv (Depends-on): Likewise.
58029         * modules/strdup (Depends-on): Likewise.
58030         * modules/getdelim (Depends-on): Add realloc-posix.
58031         * modules/read-file (Depends-on): Likewise.
58032
58033 2007-09-09  Bruno Haible  <bruno@clisp.org>
58034
58035         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
58036         (gl_FUNC_MALLOC_POSIX): Require it.
58037         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
58038         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
58039         * modules/realloc (Files): Add m4/malloc.m4.
58040         * modules/calloc (Files): Likewise.
58041
58042 2007-09-09  Bruno Haible  <bruno@clisp.org>
58043
58044         * modules/malloc-posix: New file.
58045         * modules/malloc (Depends-on): Add malloc-posix.
58046         * lib/malloc.c: Include errno.h.
58047         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
58048         and a POSIX-compatible malloc into a single function. Set ENOMEM
58049         when returning NULL.
58050         * m4/malloc.m4: New file.
58051         * doc/functions/malloc.texi: Mention the malloc-posix module.
58052         * lib/stdlib_.h (malloc): New declaration.
58053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58054         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
58055         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
58056         and HAVE_MALLOC_POSIX.
58057
58058 2007-09-09  Bruno Haible  <bruno@clisp.org>
58059
58060         * modules/realloc-posix: New file.
58061         * modules/realloc (Depends-on): Add realloc-posix.
58062         * lib/realloc.c: Include errno.h.
58063         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
58064         and a POSIX-compatible realloc into a single function. Set ENOMEM
58065         when returning NULL.
58066         * m4/realloc.m4: New file.
58067         * doc/functions/realloc.texi: Mention the realloc-posix module.
58068         * lib/stdlib_.h (realloc): New declaration.
58069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58070         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
58071         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
58072         and HAVE_REALLOC_POSIX.
58073
58074 2007-09-09  Bruno Haible  <bruno@clisp.org>
58075
58076         * modules/calloc-posix: New file.
58077         * modules/calloc (Depends-on): Add calloc-posix.
58078         * lib/calloc.c: Include errno.h.
58079         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
58080         and a POSIX-compatible calloc into a single function. Set ENOMEM
58081         when returning NULL.
58082         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
58083         * doc/functions/calloc.texi: Mention the calloc-posix module.
58084         * lib/stdlib_.h (calloc): New declaration.
58085         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58086         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
58087         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
58088         and HAVE_CALLOC_POSIX.
58089
58090 2007-09-09  Bruno Haible  <bruno@clisp.org>
58091
58092         Allow for modules to show an arbitrary notice.
58093         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
58094         * gnulib-tool: New option --extract-notice.
58095         (func_usage): Document it.
58096         (sed_extract_prog): Update.
58097         (func_get_notice): New function.
58098         (func_modules_notice): New function.
58099         (func_import, func_create_testdir): Invoke it.
58100         Suggested by Jim Meyering.
58101
58102 2007-09-09  Bruno Haible  <bruno@clisp.org>
58103
58104         * gnulib-tool: New options --verbose, --quiet.
58105         (func_usage): Document them.
58106         (verbose): New variable.
58107         (func_execute_command): New function.
58108         (func_import): Don't show the module list and the file list if
58109         $verbose < 0.
58110         (func_create_testdir): Likewise. Use func_execute_command.
58111         (func_create_megatestdir): Use func_execute_command.
58112
58113 2007-09-08  Bruno Haible  <bruno@clisp.org>
58114
58115         * gnulib-tool (func_import): Prefer rsync over wget when available,
58116         for fetching the PO files.
58117
58118 2007-09-08  Bruno Haible  <bruno@clisp.org>
58119
58120         * posix-modules: New file. Portions copied from gnulib-tool.
58121         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
58122
58123 2007-09-08  Jim Meyering  <jim@meyering.net>
58124
58125         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
58126         * lib/fpending.h: Rename from __fpending.h.
58127         * lib/fpending.c: Rename from __fpending.c.
58128         Include "fpending.h", not "__fpending.h".
58129         * lib/__fpending.h, lib/__fpending.c: Remove files.
58130         * modules/fpending (Files): Reflect new file names.
58131         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
58132
58133 2007-09-08  Bruno Haible  <bruno@clisp.org>
58134
58135         * m4/inttypes-h.m4: Remove stub file.
58136
58137 2007-09-07  Simon Josefsson  <simon@josefsson.org>
58138
58139         * doc/headers/stdint.texi: Discuss #include_next issue.
58140
58141 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58142
58143         * build-aux/bootstrap: Remove obsolete comment about wget --help.
58144
58145 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58146
58147         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
58148         in variable name.
58149
58150 2007-09-03  Jim Meyering  <jim@meyering.net>
58151
58152         New module: git-version-gen.
58153         * modules/git-version-gen: New file.
58154
58155         Import changes from coreutils for bootstrap script.
58156
58157         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
58158
58159         bootstrap: uses rsync to download the .po files
58160         * build-aux/bootstrap (po_download_command_format): New global.
58161         (download_po_files): Use rsync.
58162         (update_po_files): Don't remove .po files after download,
58163         so future rsync runs can take advantage of the copies.
58164
58165         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
58166
58167         Solve the unnecessary-.po-file-regeneration problem once and for all.
58168         * build-aux/bootstrap (download_po_files): New function, renamed from
58169         get_translations.  Now, downloads, but doesn't update LINGUAS.
58170         (update_po_files): New function.
58171
58172         bootstrap: Ignore more.
58173         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
58174         uniwidth to e.g., lib/.gitignore.
58175         (slurp): Handle the sys_stat_.h -> sys mapping, too.
58176
58177         * build-aux/bootstrap: New setting: vc_ignore.
58178         (insert_sorted_if_absent): Create $file if absent.
58179         Adapt to new, possibly empty, list: $vc_ignore.
58180
58181         bootstrap: generate more ignorable names
58182         * build-aux/bootstrap (slurp): When generating ignorable names,
58183         also map .sin to .sed, .gperf to .c, and .y to .c.
58184
58185 2007-09-03  Jim Meyering  <jim@meyering.net>
58186
58187         * build-aux/git-version-gen: New file, from coreutils.  For details, see
58188         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
58189
58190 2007-09-02  Bruno Haible  <bruno@clisp.org>
58191
58192         Fix mis-recognition of 'mcs' on QNX 6.
58193         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
58194         output contains the string "Mono".
58195         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
58196         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
58197
58198 2007-09-01  Bruno Haible  <bruno@clisp.org>
58199
58200         Fix collision between uniwidth/* and linebreak modules.
58201         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
58202         u32_width): Remove declarations.
58203         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
58204         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
58205         streq3, streq2, streq1, streq0): Remove functions.
58206         (STREQ): Remove macro.
58207         (is_cjk_encoding): Remove function.
58208         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
58209         (uc_width, u8_width, u16_width, u32_width): Remove functions.
58210         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
58211         * NEWS: Document the change.
58212
58213 2007-09-01  Bruno Haible  <bruno@clisp.org>
58214
58215         * lib/streq.h: Add double-inclusion guard.
58216
58217 2007-09-01  Karl Berry  <karl@gnu.org>
58218
58219         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
58220
58221 2007-08-28  Jim Meyering  <jim@meyering.net>
58222
58223         Rename mreadlink_with_size to areadlink_with_size.
58224         * NEWS: Document the change.
58225         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
58226         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
58227         * lib/mreadlink.h: Rename this to...
58228         * lib/areadlink.h: ...this.
58229         * modules/mreadlink-with-size: Rename this to...
58230         * modules/areadlink-with-size: ...this.
58231         * lib/canonicalize.c: Reflect the renaming.
58232         * modules/canonicalize: Likewise.
58233
58234 2007-08-26  Bruno Haible  <bruno@clisp.org>
58235
58236         * gnulib-tool (func_import): When deciding which files to remove,
58237         consider also dangling symbolic links.
58238         Reported by Eric Blake.
58239
58240 2007-08-26  Bruno Haible  <bruno@clisp.org>
58241
58242         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
58243
58244 2007-08-23  Simon Josefsson  <simon@josefsson.org>
58245
58246         * lib/readline.c: Don't include getline.h, the prototype is now
58247         found in stdio.h.
58248
58249 2007-08-23  Jim Meyering  <jim@meyering.net>
58250
58251         Getdelim touchup.
58252         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
58253         around the funlockfile call, since funlockfile never sets errno.
58254         Don't set errno upon failed realloc.
58255
58256 2007-08-22  Eric Blake  <ebb9@byu.net>
58257
58258         Getline touchups.
58259         * lib/getdelim.c (getdelim): Revert regression that required *n to
58260         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
58261         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
58262         getdelim, rather than whether implementation is missing.
58263         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
58264         * lib/stdio_.h (getline): Also declare if replacement is
58265         required.
58266         * doc/functions/getdelim.texi: New file.
58267         * doc/functions/getline.texi: Likewise.
58268         * doc/gnulib.texi (Function Substitutes): Add new files.
58269         Reported by Bruno Haible.
58270
58271 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
58272
58273         * users.txt: Add Guile.
58274
58275 2007-08-22  Eric Blake  <ebb9@byu.net>
58276
58277         * tests/test-getdelim.c (main): Use remove, not unlink.
58278         * tests/test-getline.c (main): Likewise.
58279
58280         Move getline and getdelim into stdio.h, per POSIX 200x.
58281         * modules/getline (Files): Remove getline.h.
58282         (Depends-on): Add stdio.
58283         (configure.ac): Add module indicator.
58284         * modules/getdelim (Files): Remove getdelim.h.
58285         (Depends-on): Add stdio.
58286         (configure.ac): Add module indicator.
58287         * modules/stdio (Makefile.am): Work with new indicators.
58288         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58289         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
58290         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58291         * lib/getdelim.h: Delete.
58292         * lib/getline.h: Delete.
58293         * lib/stdio_.h (getdelim, getline): Declare.
58294         * modules/getdelim-tests: New module.
58295         * modules/getline-tests: Likewise.
58296         * tests/test-getdelim.c: New file.
58297         * tests/test-getline.c: Likewise.
58298         * NEWS: Document the change.
58299         * lib/getline.c: Update choice of header.
58300         * lib/csharpcomp.c: Likewise.
58301         * lib/getpass.c: Likewise.
58302         * lib/javacomp.c: Likewise.
58303         * lib/javaversion.c: Likewise.
58304         * lib/yesno.c: Likewise.
58305         * lib/getdelim.c: Likewise.
58306         (getdelim): Set errno on failure, and avoid memory leak.
58307
58308 2007-08-19  Bruno Haible  <bruno@clisp.org>
58309
58310         * modules/closein (Depends-on): Add freadahead.
58311         * lib/closein.c: Include freadahead.h.
58312         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
58313         is zero.
58314
58315 2007-08-19  Bruno Haible  <bruno@clisp.org>
58316
58317         * modules/freadahead-tests: New file.
58318         * tests/test-freadahead.sh: New file.
58319         * tests/test-freadahead.c: New file.
58320
58321         * modules/freadahead: New file.
58322         * lib/freadahead.h: New file.
58323         * lib/freadahead.c: New file.
58324         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
58325         fbufmode, fpurge, freadable, fwritable.
58326
58327 2007-08-19  Eric Blake  <ebb9@byu.net>
58328
58329         Test yesno in combination with closein.
58330         * lib/yesno.c (yesno): Document use of stdin.
58331         * modules/yesno-tests (Files): New module.
58332         * tests/test-yesno.c (main): New file.
58333         * tests/test-yesno.sh: Likewise.
58334
58335 2007-08-19  Bruno Haible  <bruno@clisp.org>
58336
58337         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
58338         * lib/fseeko.c (rpl_fseeko): Likewise.
58339         * lib/fseterr.c (fseterr): Likewise.
58340
58341 2007-08-19  Bruno Haible  <bruno@clisp.org>
58342
58343         * tests/test-lseek.c (main): Disable a test for BeOS.
58344         * doc/functions/lseek.texi: Document the BeOS bug.
58345
58346 2007-08-19  Bruno Haible  <bruno@clisp.org>
58347             Eric Blake  <ebb9@byu.net>
58348
58349         * lib/lseek.c: Include <sys/stat.h>.
58350         (rpl_lseek): Add workaround code also for Unix platforms.
58351         Needed for BeOS.
58352         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
58353         * doc/functions/lseek.texi: Document BeOS definiency.
58354
58355 2007-08-18  Bruno Haible  <bruno@clisp.org>
58356
58357         * modules/fstrcmp-tests: New file.
58358         * tests/test-fstrcmp.c: New file.
58359
58360 2007-08-18  Bruno Haible  <bruno@clisp.org>
58361
58362         * modules/fstrcmp: New file, from GNU gettext with modifications.
58363         * lib/fstrcmp.h: New file, from GNU gettext.
58364         * lib/fstrcmp.c: New file, from GNU gettext.
58365         * MODULES.html.sh (String handling): Add fstrcmp.
58366
58367 2007-08-18  Bruno Haible  <bruno@clisp.org>
58368
58369         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
58370         'bool'.
58371         (diag, compareseq): Remove const from the ctxt argument.
58372         (USE_HEURISTIC): Undefine at the end.
58373
58374 2007-08-18  Jim Meyering  <jim@meyering.net>
58375
58376         New file: lib/idcache.h
58377         * NEWS: Mention the addition.
58378         * modules/idcache (Files): Add lib/idcache.h
58379         * lib/idcache.c: Include "idcache.h".
58380         Don't include <sys/types.h>.
58381         Add a FIXME comment.
58382         Move file-scoped "static" declarations to the top.
58383         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
58384
58385 2007-08-17  Bruno Haible  <bruno@clisp.org>
58386         and Paul Eggert  <eggert@cs.ucla.edu>
58387
58388         * MODULES.html.sh: Add diffseq.
58389         * modules/diffseq: New file.
58390         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
58391         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
58392
58393 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58394
58395         Import changes from coreutils for bootstrap script.
58396
58397         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
58398
58399         * build-aux/bootstrap (slurp): Work even in environments where
58400         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
58401         current code does not slurp files whose names start with ".", and
58402         this looks like it might be a troublesome area.
58403
58404         2007-07-11  Jim Meyering  <jim@meyering.net>
58405
58406         If there's a GPL vN copyright comment, require that N == 3.
58407
58408         2007-07-08  Jim Meyering  <jim@meyering.net>
58409
58410         Run the coreutils-specific code only if tests/Makefile.am.in exists.
58411         * build-aux/bootstrap (mam_template): Move definition out of loop.
58412
58413         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
58414
58415         * build-aux/bootstrap (symlink_to_dir): Rename function from
58416         symlink_to_gnulib.  Add a directory parameter.  Update all
58417         callers.
58418         (cp_mark_as_generated): Also check for -- and link to -- files in
58419         gl/.
58420
58421         2007-07-08  Jim Meyering  <jim@meyering.net>
58422
58423         Adapt to deeper hierarchy in gnulib.
58424         * build-aux/bootstrap (symlink_to_dir): If the destination
58425         directory doesn't exist, create it. This is required at least for
58426         "lib/uniwidth/cjk.h".
58427
58428         2007-05-15  Jim Meyering  <jim@meyering.net>
58429
58430         * build-aux/bootstrap: Now that generated Makefile.am files
58431         are no longer under version control, they must be created at
58432         bootstrap time.
58433
58434 2007-08-14  Ben Pfaff  <blp@gnu.org>
58435
58436         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
58437
58438 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58439
58440         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
58441         given the changes below.
58442         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
58443         even on hosts that have padding bits beyond the supported 64.
58444
58445 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58446
58447         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
58448         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
58449         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
58450         depends on it.
58451         (xstrtol_error): Remove.
58452         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
58453         but with a different signature.
58454         (ATTRIBUTE_NORETURN, __attribute__): New macros.
58455         * lib/xstrtol-error.c: Include exitfail.h.
58456         (xstrtol_fatal): New function, with a different signature from the
58457         old xstrtol_error, so that the caller need not worry about passing
58458         in an exit status, or about storage management of the option argument.
58459         (xstrtol_error): Now a static function.  Redo signature to
58460         implement xstrtol_fatal.  Output the correct number of hyphens in
58461         front of the option so that the caller need not worry about
58462         storage management.
58463         (N_): New macro.
58464         (_): Remove; not used now.
58465         * modules/xstrtol: Depend on getopt.
58466         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
58467         of old STRTOL_FATAL_ERROR macro.
58468         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
58469         of test program.
58470         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
58471         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
58472
58473 2007-08-08  Eric Blake  <ebb9@byu.net>
58474
58475         * lib/xstrtol-error.c: Add missing include.
58476
58477         Move xstrtol messages into gnulib domain, when --pobase is used.
58478         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
58479         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
58480         * modules/xstrtol (Files): Distribute new file.
58481         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
58482         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
58483         * tests/test-xstrtol.c: ...into new file.
58484         * tests/test-xstrtoul.c: Also test xstrtoul.
58485         * tests/test-xstrtoimax.c: Also test xstrtoimax.
58486         * tests/test-xstrtoumax.c: Also test xstrtoumax.
58487         * tests/test-xstrtol.sh: Drive the tests.
58488         * tests/test-xstrtoimax.sh: Likewise.
58489         * tests/test-xstrtoumax.sh: Likewise.
58490         * modules/xstrtol-tests: New module.
58491         * modules/xstrtoimax-tests: Likewise.
58492         * modules/xstrtoumax-tests: Likewise.
58493
58494 2007-08-08  Jim Meyering  <jim@meyering.net>
58495
58496         New function: mfile_name_concat.
58497         * lib/filenamecat.c (mfile_name_concat): New function, just like
58498         file_name_concat, but return NULL upon failure rather than exiting
58499         with a diagnostic.
58500         * lib/filenamecat.h: Declare it.
58501
58502 2007-08-07  Bruno Haible  <bruno@clisp.org>
58503
58504         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
58505         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
58506         warning from gcc.
58507         Reported by Eric Blake.
58508
58509 2007-08-07  Simon Josefsson  <simon@josefsson.org>
58510
58511         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
58512         * modules/crypto/arcfour (License): Likewise.
58513         * modules/crypto/des-tests (License): Likewise.
58514         * modules/crypto/gc-arctwo-tests (License): Likewise.
58515         * modules/crypto/gc-des-tests (License): Likewise.
58516         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
58517         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
58518         * modules/crypto/gc-md2-tests (License): Likewise.
58519         * modules/crypto/gc-md4-tests (License): Likewise.
58520         * modules/crypto/gc-md5-tests (License): Likewise.
58521         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
58522         * modules/crypto/gc-rijndael-tests (License): Likewise.
58523         * modules/crypto/gc-sha1-tests (License): Likewise.
58524         * modules/crypto/gc-tests (License): Likewise.
58525         * modules/crypto/hmac-md5 (License): Likewise.
58526         * modules/crypto/hmac-sha1 (License): Likewise.
58527         * modules/crypto/md2-tests (License): Likewise.
58528         * modules/crypto/md4-tests (License): Likewise.
58529         * modules/crypto/md5 (License): Likewise.
58530         * modules/crypto/rijndael (License): Likewise.
58531         * modules/crypto/sha1 (License): Likewise.
58532         * modules/memxor (License): Likewise.
58533
58534 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58535         and Bruno Haible  <bruno@clisp.org>
58536
58537         * NEWS: Describe interface changes to human, xstrtol.
58538         * lib/human.h: Include <xstrtol.h>.
58539         (human_options): Return enum strtol_error, not int.  Remove
58540         bool arg; take int * instead.
58541         * lib/human.c: Don't include "gettext.h".
58542         (_): Remove; no longer used.
58543         Don't include <xstrtol.h>, since human.h does it.
58544         (human_options): Adjust to abovementioned interface changes.
58545         Do not report error to stderr; that's now the caller's
58546         responsibility.
58547         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
58548         interface change.
58549         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
58550         Str, Argument_type_string.  All uses changed.  Put " argument"
58551         in diagnostics to make them clearer.  Change wording of suffix
58552         message for clarity.
58553         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
58554         Argument_type_string.
58555         (STRTOL_FATAL_WARN): Remove; no longer used.
58556         * modules/human (Depends-on): Remove gettext-h.
58557
58558 2007-08-06  Simon Josefsson  <simon@josefsson.org>
58559
58560         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
58561
58562 2007-07-31  Bruno Haible  <bruno@clisp.org>
58563
58564         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
58565         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
58566         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
58567
58568 2007-07-31  Bruno Haible  <bruno@clisp.org>
58569
58570         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
58571         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
58572
58573 2007-07-30  Bruno Haible  <bruno@clisp.org>
58574
58575         * modules/base64 (License): Use the synonymous term "LGPLv2+".
58576         * modules/c-ctype (License): Likewise.
58577         * modules/c-strcase (License): Likewise.
58578         * modules/check-version (License): Likewise.
58579         * modules/iconv (License): Likewise.
58580         * modules/iconv_open (License): Likewise.
58581         * modules/read-file (License): Likewise.
58582         * modules/striconv (License): Likewise.
58583         * modules/strverscmp (License): Likewise.
58584         * modules/vasprintf (License): Likewise.
58585         * modules/crypto/des (License): Likewise.
58586         * modules/crypto/gc (License): Likewise.
58587         * modules/crypto/gc-arcfour (License): Likewise.
58588         * modules/crypto/gc-arctwo (License): Likewise.
58589         * modules/crypto/gc-des (License): Likewise.
58590         * modules/crypto/gc-hmac-md5 (License): Likewise.
58591         * modules/crypto/gc-hmac-sha1 (License): Likewise.
58592         * modules/crypto/gc-md2 (License): Likewise.
58593         * modules/crypto/gc-md4 (License): Likewise.
58594         * modules/crypto/gc-md5 (License): Likewise.
58595         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
58596         * modules/crypto/gc-random (License): Likewise.
58597         * modules/crypto/gc-rijndael (License): Likewise.
58598         * modules/crypto/gc-sha1 (License): Likewise.
58599         * modules/crypto/md2 (License): Likewise.
58600         * modules/crypto/md4 (License): Likewise.
58601
58602 2007-07-30  Jim Meyering  <jim@meyering.net>
58603
58604         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
58605         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
58606         it has valid stat data.  This bug would cause du not to count the
58607         sizes of inaccessible directories.
58608         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
58609         in <http://bugzilla.redhat.com/250077>.
58610
58611 2007-07-25  Peter O'Gorman  <peter@pogma.com>
58612             Bruno Haible  <bruno@clisp.org>
58613
58614         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
58615         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
58616         #include_next, gives a diagnostic about it, but reports no error in
58617         the exit code.
58618         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
58619
58620 2007-07-24  Ben Pfaff  <blp@gnu.org>
58621
58622         Improve name: "count-one-bits" is better than "popcount".
58623         * MODULES.html.sh: Update name.
58624         * lib/popcount.h: Renamed lib/count-one-bits.h.
58625         (popcount): Renamed count_one_bits.
58626         (popcountl): Renamed count_one_bits_l.
58627         (popcountll): Renamed count_one_bits_ll.
58628         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
58629         * modules/popcount: Renamed module/count-one-bits.
58630         * modules/popcount-tests: Renamed module/count-one-bits-tests.
58631         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
58632
58633 2007-07-23  Ben Pfaff  <blp@gnu.org>
58634
58635         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58636         better code generation, and add U to large constants to avoid
58637         warnings, in non-GCC case.
58638         Suggested by Bruno Haible.
58639
58640 2007-07-23  Ben Pfaff  <blp@gnu.org>
58641
58642         * lib/popcount.h: Use verify_true instead of if...abort.
58643         * modules/popcount: Depend on verify module.
58644         Suggested by Jim Meyering.
58645
58646 2007-07-23  Bruno Haible  <bruno@clisp.org>
58647
58648         * gnulib-tool (func_import): Create a .cvsignore file also when the
58649         directory is not yet in CVS but the toplevel directory is. When
58650         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58651         Reported by Karl Berry.
58652
58653 2007-07-22  Ben Pfaff  <blp@gnu.org>
58654
58655         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58656         case.
58657         Suggested by Eric Blake.
58658
58659 2007-07-22  Ben Pfaff  <blp@gnu.org>
58660
58661         New module: popcount.
58662         * MODULES.html.sh: Add popcount.
58663         * modules/popcount: New file.
58664         * modules/popcount-tests: New file.
58665         * tests/test-popcount.c: New file.
58666         * lib/popcount.h: New file.
58667         * m4/popcount.m4: New file.
58668
58669 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58670
58671         * build-aux/announce-gen: Update to GPLv3.
58672
58673         * build-aux/config.guess: Update from config.
58674
58675 2007-07-21  Bruno Haible  <bruno@clisp.org>
58676
58677         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58678         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58679
58680 2007-07-20  Jim Meyering  <jim@meyering.net>
58681
58682         * check-module: Diagnose a self-dependency.
58683
58684 2007-07-19  Bruno Haible  <bruno@clisp.org>
58685
58686         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58687         empty.
58688         Reported by Eric Blake.
58689
58690 2007-07-18  Bruno Haible  <bruno@clisp.org>
58691
58692         * gnulib-tool: New options --po-base, --po-domain.
58693         (func_usage): Document them.
58694         (pobase, po_domain): New variables.
58695         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
58696         DEFAULT_TEXT_DOMAIN.
58697         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
58698         (func_import): Consider pobase and po_domain. Create a po/ directory.
58699         (func_create_testdir): Set pobase and po_domain to empty.
58700         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
58701         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
58702
58703 2007-07-18  Bruno Haible  <bruno@clisp.org>
58704
58705         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58706         EXTRA_DIST augmentation for files in build-aux/.
58707
58708 2007-07-16  Bruno Haible  <bruno@clisp.org>
58709
58710         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58711         * modules/getdelim (License): Likewise.
58712
58713 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58714
58715         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58716         * modules/d-type (License): Likewise.
58717         * modules/extensions (License): Likewise.
58718         * modules/fnmatch (License): Likewise.
58719         * modules/fseeko (License): Likewise.
58720         * modules/getaddrinfo (License): Likewise.
58721         * modules/getline (License): Likewise.
58722         * modules/getlogin_r (License): Likewise.
58723         * modules/getpass (License): Likewise.
58724         * modules/gettimeofday (License): Likewise.
58725         * modules/glob (License): Likewise.
58726         * modules/inet_ntop (License): Likewise.
58727         * modules/malloc (License): Likewise.
58728         * modules/malloca (License): Likewise.
58729         * modules/memmem (License): Likewise.
58730         * modules/mempcpy (License): Likewise.
58731         * modules/memset (License): Likewise.
58732         * modules/minmax (License): Likewise.
58733         * modules/mktime (License): Likewise.
58734         * modules/netinet_in (License): Likewise.
58735         * modules/pathmax (License): Likewise.
58736         * modules/poll (License): Likewise.
58737         * modules/regex (License): Likewise.
58738         * modules/snprintf (License): Likewise.
58739         * modules/stdbool (License): Likewise.
58740         * modules/stdint (License): Likewise.
58741         * modules/stdio (License): Likewise.
58742         * modules/strcase (License): Likewise.
58743         * modules/strcasestr (License): Likewise.
58744         * modules/strdup (License): Likewise.
58745         * modules/string (License): Likewise.
58746         * modules/strndup (License): Likewise.
58747         * modules/strnlen (License): Likewise.
58748         * modules/strpbrk (License): Likewise.
58749         * modules/strptime (License): Likewise.
58750         * modules/strsep (License): Likewise.
58751         * modules/sys_select (License): Likewise.
58752         * modules/sys_socket (License): Likewise.
58753         * modules/sys_stat (License): Likewise.
58754         * modules/sys_time (License): Likewise.
58755         * modules/time (License): Likewise.
58756         * modules/time_r (License): Likewise.
58757         * modules/timegm (License): Likewise.
58758         * modules/unistd (License): Likewise.
58759         * modules/vsnprintf (License): Likewise.
58760         * modules/wctype (License): Likewise.
58761
58762 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58763
58764         * modules/argz (License): LGPLv2+.
58765
58766 2007-07-15  Karl Berry  <karl@gnu.org>
58767
58768         * doc/gnulib.texi: revise node structure per new fdl.texi.
58769
58770 2007-07-14  Bruno Haible  <bruno@clisp.org>
58771
58772         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58773         the output file.
58774         * lib/uniname/uninames.h: Regenerated.
58775
58776 2007-07-14  Karl Berry  <karl@gnu.org>
58777
58778         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58779         omitting sectioning and index commands.
58780
58781 2007-07-13  Bruno Haible  <bruno@clisp.org>
58782
58783         New gnulib-tool option --more-symlinks.
58784         * gnulib-tool (func_usage): Document --more-symlinks.
58785         (do_copyrights): New variable.
58786         Recognize option --more-symlinks.
58787         (func_import): Don't add a copyright notice transform to
58788         sed_transform_lib_file if do_copyrights is empty.
58789
58790 2007-07-13  Bruno Haible  <bruno@clisp.org>
58791
58792         * lib/vasnprintf.c (decimal_point_char): Define also if
58793         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
58794         && !NEED_PRINTF_DIRECTIVE_A.
58795         Reported by Clemens Koller <clemens.koller@anagramm.de> via
58796         Gary V. Vaughan <gary@gnu.org>.
58797
58798 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
58799
58800         * lib/inttypes_.h: Undo previous change, since it was fixed
58801         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
58802
58803 2007-07-13  Bruno Haible  <bruno@clisp.org>
58804
58805         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
58806         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
58807
58808 2007-07-13  Jim Meyering  <jim@meyering.net>
58809
58810         df: Don't fail for Tru64's "file-on-file mount".
58811         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58812         so we fall through and use statfs instead.  Details here:
58813         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58814         Reported by Albert Chin.
58815
58816 2007-07-13  Bruno Haible  <bruno@clisp.org>
58817
58818         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58819         * modules/configmake (License): Likewise.
58820         * modules/gettext (License): Likewise.
58821         * modules/gettext-h (License): Likewise.
58822         * modules/include_next (License): Likewise.
58823         * modules/link-warning (License): Likewise.
58824         * modules/localcharset (License): Likewise.
58825         * modules/localename (License): Likewise.
58826         * modules/lock (License): Likewise.
58827         * modules/relocatable-lib-lgpl (License): Likewise.
58828         * modules/size_max (License): Likewise.
58829         * modules/vasnprintf (License): Likewise.
58830         * modules/wchar (License): Likewise.
58831         * modules/xsize (License): Likewise.
58832
58833 2007-07-13  Bruno Haible  <bruno@clisp.org>
58834
58835         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58836         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58837
58838 2007-07-12  Bruno Haible  <bruno@clisp.org>
58839
58840         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58841         in the modules files.
58842
58843 2007-07-11  Karl Berry  <karl@gnu.org>
58844
58845         * MODULES.html.sh (func_module): use
58846          sed -e '\|^'"${includefile}"'$|d'
58847          instead of /.../d, to avoid errors on $includefile's containing /.
58848
58849 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58850
58851         * gnulib-tool (func_import): Avoid duplication of --avoid
58852         statements
58853         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58854         names to `_' in variable names.
58855
58856 2007-07-10  Eric Blake  <ebb9@byu.net>
58857
58858         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58859         * NEWS: Document this change.
58860
58861 2007-07-08  Bruno Haible  <bruno@clisp.org>
58862
58863         Update to Unicode 5.0.
58864         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58865         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58866         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58867         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58868         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58869         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58870         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58871         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58872         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58873         U+10A3F, U+1D242..U+1D244.
58874         (nonspacing_table_ind): Update.
58875         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58876         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58877
58878 2007-07-08  Bruno Haible  <bruno@clisp.org>
58879
58880         Update to Unicode 5.0.
58881         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58882         code transform. Extend the name index field of unicode_name_to_code and
58883         unicode_code_to_name from 16 to 24 bits.
58884         * lib/uniname/uniname.c (unicode_character_name,
58885         unicode_name_character): Add the range 0x12xxx to the code transform.
58886         * lib/uniname/uninames.h: Regenerated.
58887         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58888
58889 2007-07-07  Bruno Haible  <bruno@clisp.org>
58890
58891         * modules/wcwidth-tests: New file.
58892         * tests/test-wcwidth.c: New file.
58893
58894         Work around MacOS X wcwidth() bug.
58895         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58896         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58897         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58898         original wcwidth in non-UTF-8 locales.
58899         * modules/wcwidth (Depends-on): Add localcharset, streq,
58900         uniwidth/width.
58901         * doc/functions/wcwidth.texi: Update.
58902
58903 2007-07-07  Bruno Haible  <bruno@clisp.org>
58904
58905         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58906         (wcwidth): New declaration.
58907         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58908         macros.
58909         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58910         here. Prepare for creating <wchar.h> unconditionally.
58911         * modules/wchar (Depends-on): Add link-warning.
58912         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58913         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58914         * lib/wcwidth.h: Remove file.
58915         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58916         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58917         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58918         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58919         (Include): Replace wcwidth.h with <wchar.h>.
58920         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58921         * lib/mbchar.h: Don't include wcwidth.h.
58922         * lib/mbswidth.c: Likewise.
58923         * NEWS: Mention the change.
58924
58925 2007-07-07  Bruno Haible  <bruno@clisp.org>
58926
58927         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58928         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58929         definition with an external declaration.
58930         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58931         defined as a function. Remove AC_C_INLINE requirement.
58932         * modules/wcwidth (Files): Add lib/wcwidth.c.
58933         (Makefile.am): Remove redundant statement.
58934
58935 2007-07-07  Bruno Haible  <bruno@clisp.org>
58936
58937         * MODULES.html.sh (Unicode string functions): Add the new modules.
58938
58939         * tests/uniwidth/test-u32-strwidth.c: New file.
58940         * modules/uniwidth/u32-strwidth-tests: New file.
58941
58942         * lib/uniwidth/u32-strwidth.c: New file.
58943         * modules/uniwidth/u32-strwidth: New file.
58944
58945         * tests/uniwidth/test-u16-strwidth.c: New file.
58946         * modules/uniwidth/u16-strwidth-tests: New file.
58947
58948         * lib/uniwidth/u16-strwidth.c: New file.
58949         * modules/uniwidth/u16-strwidth: New file.
58950
58951         * tests/uniwidth/test-u8-strwidth.c: New file.
58952         * modules/uniwidth/u8-strwidth-tests: New file.
58953
58954         * lib/uniwidth/u8-strwidth.c: New file.
58955         * modules/uniwidth/u8-strwidth: New file.
58956
58957         * tests/uniwidth/test-u32-width.c: New file.
58958         * modules/uniwidth/u32-width-tests: New file.
58959
58960         * lib/uniwidth/u32-width.c: New file.
58961         * modules/uniwidth/u32-width: New file.
58962
58963         * tests/uniwidth/test-u16-width.c: New file.
58964         * modules/uniwidth/u16-width-tests: New file.
58965
58966         * lib/uniwidth/u16-width.c: New file.
58967         * modules/uniwidth/u16-width: New file.
58968
58969         * tests/uniwidth/test-u8-width.c: New file.
58970         * modules/uniwidth/u8-width-tests: New file.
58971
58972         * lib/uniwidth/u8-width.c: New file.
58973         * modules/uniwidth/u8-width: New file.
58974
58975         * tests/uniwidth/test-uc_width.c: New file.
58976         * modules/uniwidth/width-tests: New file.
58977
58978         * lib/uniwidth/width.c: New file, from GNU libiconv.
58979         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58980         * modules/uniwidth/width: New file.
58981
58982         * lib/uniwidth.h: New file, from GNU libiconv.
58983         * modules/uniwidth/base: New file.
58984
58985 2007-07-07  Bruno Haible  <bruno@clisp.org>
58986
58987         * lib/uniname.h: New file, from GNU gettext.
58988         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58989         * lib/uniname/uninames.h: New file, from GNU gettext.
58990         * lib/uniname/uniname.c: New file, from GNU gettext.
58991         * tests/uniname/test-uninames.sh: New file.
58992         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58993         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58994         * modules/uniname/base: New file.
58995         * modules/uniname/uniname: New file.
58996         * modules/uniname/uniname-tests: New file.
58997         * MODULES.html.sh (Unicode string functions): Add the new modules.
58998
58999 2007-07-06  Bruno Haible  <bruno@clisp.org>
59000
59001         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
59002
59003 2007-07-06  Bruno Haible  <bruno@clisp.org>
59004
59005         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
59006         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
59007         includes <cygwin/sys_time.h> which includes <sys/select.h> which
59008         include <sys/time.h>.
59009         Reported by Eric Blake.
59010
59011 2007-07-06  Eric Blake  <ebb9@byu.net>
59012
59013         Fix testing canonicalize on cygwin.
59014         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59015         Revert patch from 2007-06-19.
59016         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
59017         canonicalize module is also in use.
59018         * tests/test-canonicalize.c: New file.
59019         * tests/test-canonicalize.sh: Likewise.
59020         * modules/canonicalize-tests: Likewise.
59021
59022 2007-07-06  Jim Meyering  <jim@meyering.net>
59023
59024         * lib/getugroups.c (getugroups): Detect getgrent failure.
59025         Adjust comment to reflect reality: this function may return -1.
59026
59027 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
59028
59029         * build-aux/bootstrap (TP_URL,get_translations): Update to use
59030         the new TP address.
59031         (usage): Fix typo
59032         (gnulib_mk): New variable.
59033
59034 2007-07-05  Jim Meyering  <jim@meyering.net>
59035
59036         Don't let endgrent clobber errno, no matter how improbable.
59037         * lib/getugroups.c (getugroups): Save and restore errno around
59038         endgrent call.
59039
59040         Close the group DB even when failing with 2^31 or more members.
59041         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
59042
59043 2007-07-04  Jim Meyering  <jim@meyering.net>
59044
59045         * lib/getugroups.h: New file.
59046         * lib/getugroups.c: Include "getugroups.h".
59047         Remove uses of "register" keyword.
59048         Move local variable, "cp", down into scope where used.
59049         Give "username" parameter the "const" attribute.
59050         * modules/getugroups (Files): Add lib/getugroups.h
59051
59052 2007-07-04  Karl Berry  <karl@gnu.org>
59053
59054         * MODULES.html.sh (func_all_modules): Complete rename of
59055         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
59056
59057 2007-07-02  Bruno Haible  <bruno@clisp.org>
59058
59059         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
59060         mode, when inttypes.h comes from gnulib.
59061         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59062
59063 2007-07-02  Simon Josefsson  <simon@josefsson.org>
59064
59065         * NEWS: Mention lgpl module name change.
59066
59067         * modules/lgpl-2.1: Renamed from lgpl.
59068
59069         * NEWS: Mention gpl module name change.
59070
59071         * modules/gpl-3.0: New file, based on gpl-2.0.
59072
59073         * modules/gpl-2.0: Renamed from gpl.
59074
59075         * modules/gpl: Fix filename, doc/gpl.texi is now found at
59076         doc/gpl-2.0.texi.
59077
59078 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59079
59080         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
59081         #define __STDC_LIMIT_MACROS temporarily while including
59082         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
59083         Problem reported by Joel E. Denny in
59084         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
59085
59086 2007-07-01  Bruno Haible  <bruno@clisp.org>
59087
59088         * lib/unistdio.h: New file.
59089         * lib/unistdio/u-asnprintf.h: New file.
59090         * lib/unistdio/u-asprintf.h: New file.
59091         * lib/unistdio/u-printf-args.c: New file.
59092         * lib/unistdio/u-printf-args.h: New file.
59093         * lib/unistdio/u-printf-parse.h: New file.
59094         * lib/unistdio/u-snprintf.h: New file.
59095         * lib/unistdio/u-sprintf.h: New file.
59096         * lib/unistdio/u-vasprintf.h: New file.
59097         * lib/unistdio/u-vsnprintf.h: New file.
59098         * lib/unistdio/u-vsprintf.h: New file.
59099         * lib/unistdio/ulc-asnprintf.c: New file.
59100         * lib/unistdio/ulc-asprintf.c: New file.
59101         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
59102         * lib/unistdio/ulc-printf-parse.c: New file.
59103         * lib/unistdio/ulc-snprintf.c: New file.
59104         * lib/unistdio/ulc-sprintf.c: New file.
59105         * lib/unistdio/ulc-vasnprintf.c: New file.
59106         * lib/unistdio/ulc-vasprintf.c: New file.
59107         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
59108         * lib/unistdio/ulc-vsnprintf.c: New file.
59109         * lib/unistdio/ulc-vsprintf.c: New file.
59110         * lib/unistdio/u8-asnprintf.c: New file.
59111         * lib/unistdio/u8-asprintf.c: New file.
59112         * lib/unistdio/u8-printf-parse.c: New file.
59113         * lib/unistdio/u8-snprintf.c: New file.
59114         * lib/unistdio/u8-sprintf.c: New file.
59115         * lib/unistdio/u8-vasnprintf.c: New file.
59116         * lib/unistdio/u8-vasprintf.c: New file.
59117         * lib/unistdio/u8-vsnprintf.c: New file.
59118         * lib/unistdio/u8-vsprintf.c: New file.
59119         * lib/unistdio/u8-u8-asnprintf.c: New file.
59120         * lib/unistdio/u8-u8-asprintf.c: New file.
59121         * lib/unistdio/u8-u8-snprintf.c: New file.
59122         * lib/unistdio/u8-u8-sprintf.c: New file.
59123         * lib/unistdio/u8-u8-vasnprintf.c: New file.
59124         * lib/unistdio/u8-u8-vasprintf.c: New file.
59125         * lib/unistdio/u8-u8-vsnprintf.c: New file.
59126         * lib/unistdio/u8-u8-vsprintf.c: New file.
59127         * lib/unistdio/u16-asnprintf.c: New file.
59128         * lib/unistdio/u16-asprintf.c: New file.
59129         * lib/unistdio/u16-printf-parse.c: New file.
59130         * lib/unistdio/u16-snprintf.c: New file.
59131         * lib/unistdio/u16-sprintf.c: New file.
59132         * lib/unistdio/u16-vasnprintf.c: New file.
59133         * lib/unistdio/u16-vasprintf.c: New file.
59134         * lib/unistdio/u16-vsnprintf.c: New file.
59135         * lib/unistdio/u16-vsprintf.c: New file.
59136         * lib/unistdio/u16-u16-asnprintf.c: New file.
59137         * lib/unistdio/u16-u16-asprintf.c: New file.
59138         * lib/unistdio/u16-u16-snprintf.c: New file.
59139         * lib/unistdio/u16-u16-sprintf.c: New file.
59140         * lib/unistdio/u16-u16-vasnprintf.c: New file.
59141         * lib/unistdio/u16-u16-vasprintf.c: New file.
59142         * lib/unistdio/u16-u16-vsnprintf.c: New file.
59143         * lib/unistdio/u16-u16-vsprintf.c: New file.
59144         * lib/unistdio/u32-asnprintf.c: New file.
59145         * lib/unistdio/u32-asprintf.c: New file.
59146         * lib/unistdio/u32-printf-parse.c: New file.
59147         * lib/unistdio/u32-snprintf.c: New file.
59148         * lib/unistdio/u32-sprintf.c: New file.
59149         * lib/unistdio/u32-vasnprintf.c: New file.
59150         * lib/unistdio/u32-vasprintf.c: New file.
59151         * lib/unistdio/u32-vsnprintf.c: New file.
59152         * lib/unistdio/u32-vsprintf.c: New file.
59153         * lib/unistdio/u32-u32-asnprintf.c: New file.
59154         * lib/unistdio/u32-u32-asprintf.c: New file.
59155         * lib/unistdio/u32-u32-snprintf.c: New file.
59156         * lib/unistdio/u32-u32-sprintf.c: New file.
59157         * lib/unistdio/u32-u32-vasnprintf.c: New file.
59158         * lib/unistdio/u32-u32-vasprintf.c: New file.
59159         * lib/unistdio/u32-u32-vsnprintf.c: New file.
59160         * lib/unistdio/u32-u32-vsprintf.c: New file.
59161         * tests/unistdio/test-ulc-asnprintf1.c: New file.
59162         * tests/unistdio/test-ulc-asnprintf1.h: New file.
59163         * tests/unistdio/test-ulc-printf1.h: New file.
59164         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
59165         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
59166         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
59167         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
59168         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
59169         * tests/unistdio/test-ulc-vasprintf1.c: New file.
59170         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
59171         * tests/unistdio/test-ulc-vsprintf1.c: New file.
59172         * tests/unistdio/test-u8-asnprintf1.c: New file.
59173         * tests/unistdio/test-u8-asnprintf1.h: New file.
59174         * tests/unistdio/test-u8-printf1.h: New file.
59175         * tests/unistdio/test-u8-vasnprintf1.c: New file.
59176         * tests/unistdio/test-u8-vasnprintf2.c: New file.
59177         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
59178         * tests/unistdio/test-u8-vasnprintf3.c: New file.
59179         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
59180         * tests/unistdio/test-u8-vasprintf1.c: New file.
59181         * tests/unistdio/test-u8-vsnprintf1.c: New file.
59182         * tests/unistdio/test-u8-vsprintf1.c: New file.
59183         * tests/unistdio/test-u16-asnprintf1.c: New file.
59184         * tests/unistdio/test-u16-asnprintf1.h: New file.
59185         * tests/unistdio/test-u16-printf1.h: New file.
59186         * tests/unistdio/test-u16-vasnprintf1.c: New file.
59187         * tests/unistdio/test-u16-vasnprintf2.c: New file.
59188         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
59189         * tests/unistdio/test-u16-vasnprintf3.c: New file.
59190         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
59191         * tests/unistdio/test-u16-vasprintf1.c: New file.
59192         * tests/unistdio/test-u16-vsnprintf1.c: New file.
59193         * tests/unistdio/test-u16-vsprintf1.c: New file.
59194         * tests/unistdio/test-u32-asnprintf1.c: New file.
59195         * tests/unistdio/test-u32-asnprintf1.h: New file.
59196         * tests/unistdio/test-u32-printf1.h: New file.
59197         * tests/unistdio/test-u32-vasnprintf1.c: New file.
59198         * tests/unistdio/test-u32-vasnprintf2.c: New file.
59199         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
59200         * tests/unistdio/test-u32-vasnprintf3.c: New file.
59201         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
59202         * tests/unistdio/test-u32-vasprintf1.c: New file.
59203         * tests/unistdio/test-u32-vsnprintf1.c: New file.
59204         * tests/unistdio/test-u32-vsprintf1.c: New file.
59205         * modules/unistdio/base: New file.
59206         * modules/unistdio/u-printf-args: New file.
59207         * modules/unistdio/ulc-asnprintf: New file.
59208         * modules/unistdio/ulc-asprintf: New file.
59209         * modules/unistdio/ulc-fprintf: New file.
59210         * modules/unistdio/ulc-printf-parse: New file.
59211         * modules/unistdio/ulc-snprintf: New file.
59212         * modules/unistdio/ulc-sprintf: New file.
59213         * modules/unistdio/ulc-vasnprintf: New file.
59214         * modules/unistdio/ulc-vasprintf: New file.
59215         * modules/unistdio/ulc-vfprintf: New file.
59216         * modules/unistdio/ulc-vsnprintf: New file.
59217         * modules/unistdio/ulc-vsprintf: New file.
59218         * modules/unistdio/u8-asnprintf: New file.
59219         * modules/unistdio/u8-asprintf: New file.
59220         * modules/unistdio/u8-printf-parse: New file.
59221         * modules/unistdio/u8-snprintf: New file.
59222         * modules/unistdio/u8-sprintf: New file.
59223         * modules/unistdio/u8-vasnprintf: New file.
59224         * modules/unistdio/u8-vasprintf: New file.
59225         * modules/unistdio/u8-vsnprintf: New file.
59226         * modules/unistdio/u8-vsprintf: New file.
59227         * modules/unistdio/u8-u8-asnprintf: New file.
59228         * modules/unistdio/u8-u8-asprintf: New file.
59229         * modules/unistdio/u8-u8-snprintf: New file.
59230         * modules/unistdio/u8-u8-sprintf: New file.
59231         * modules/unistdio/u8-u8-vasnprintf: New file.
59232         * modules/unistdio/u8-u8-vasprintf: New file.
59233         * modules/unistdio/u8-u8-vsnprintf: New file.
59234         * modules/unistdio/u8-u8-vsprintf: New file.
59235         * modules/unistdio/u16-asnprintf: New file.
59236         * modules/unistdio/u16-asprintf: New file.
59237         * modules/unistdio/u16-printf-parse: New file.
59238         * modules/unistdio/u16-snprintf: New file.
59239         * modules/unistdio/u16-sprintf: New file.
59240         * modules/unistdio/u16-vasnprintf: New file.
59241         * modules/unistdio/u16-vasprintf: New file.
59242         * modules/unistdio/u16-vsnprintf: New file.
59243         * modules/unistdio/u16-vsprintf: New file.
59244         * modules/unistdio/u16-u16-asnprintf: New file.
59245         * modules/unistdio/u16-u16-asprintf: New file.
59246         * modules/unistdio/u16-u16-snprintf: New file.
59247         * modules/unistdio/u16-u16-sprintf: New file.
59248         * modules/unistdio/u16-u16-vasnprintf: New file.
59249         * modules/unistdio/u16-u16-vasprintf: New file.
59250         * modules/unistdio/u16-u16-vsnprintf: New file.
59251         * modules/unistdio/u16-u16-vsprintf: New file.
59252         * modules/unistdio/u32-asnprintf: New file.
59253         * modules/unistdio/u32-asprintf: New file.
59254         * modules/unistdio/u32-printf-parse: New file.
59255         * modules/unistdio/u32-snprintf: New file.
59256         * modules/unistdio/u32-sprintf: New file.
59257         * modules/unistdio/u32-vasnprintf: New file.
59258         * modules/unistdio/u32-vasprintf: New file.
59259         * modules/unistdio/u32-vsnprintf: New file.
59260         * modules/unistdio/u32-vsprintf: New file.
59261         * modules/unistdio/u32-u32-asnprintf: New file.
59262         * modules/unistdio/u32-u32-asprintf: New file.
59263         * modules/unistdio/u32-u32-snprintf: New file.
59264         * modules/unistdio/u32-u32-sprintf: New file.
59265         * modules/unistdio/u32-u32-vasnprintf: New file.
59266         * modules/unistdio/u32-u32-vasprintf: New file.
59267         * modules/unistdio/u32-u32-vsnprintf: New file.
59268         * modules/unistdio/u32-u32-vsprintf: New file.
59269         * modules/unistdio/ulc-asnprintf-tests: New file.
59270         * modules/unistdio/ulc-vasnprintf-tests: New file.
59271         * modules/unistdio/ulc-vasprintf-tests: New file.
59272         * modules/unistdio/ulc-vsnprintf-tests: New file.
59273         * modules/unistdio/ulc-vsprintf-tests: New file.
59274         * modules/unistdio/u8-asnprintf-tests: New file.
59275         * modules/unistdio/u8-vasnprintf-tests: New file.
59276         * modules/unistdio/u8-vasprintf-tests: New file.
59277         * modules/unistdio/u8-vsnprintf-tests: New file.
59278         * modules/unistdio/u8-vsprintf-tests: New file.
59279         * modules/unistdio/u16-asnprintf-tests: New file.
59280         * modules/unistdio/u16-vasnprintf-tests: New file.
59281         * modules/unistdio/u16-vasprintf-tests: New file.
59282         * modules/unistdio/u16-vsnprintf-tests: New file.
59283         * modules/unistdio/u16-vsprintf-tests: New file.
59284         * modules/unistdio/u32-asnprintf-tests: New file.
59285         * modules/unistdio/u32-vasnprintf-tests: New file.
59286         * modules/unistdio/u32-vasprintf-tests: New file.
59287         * modules/unistdio/u32-vsnprintf-tests: New file.
59288         * modules/unistdio/u32-vsprintf-tests: New file.
59289         * MODULES.html.sh (Unicode string functions): Add the new modules.
59290
59291 2007-07-01  Bruno Haible  <bruno@clisp.org>
59292
59293         * lib/sprintf.c (sprintf): Limit the available length estimation,
59294         to avoid address wraparound.
59295         * lib/vsprintf.c (vsprintf): Likewise.
59296         * modules/sprintf-posix (Dependencies): Add stdint.
59297         * modules/vsprintf-posix (Dependencies): Likewise.
59298
59299 2007-07-01  Bruno Haible  <bruno@clisp.org>
59300
59301         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
59302         Windows PATH as well. Conservative double-quoting. Comments.
59303
59304 2007-07-01  Bruno Haible  <bruno@clisp.org>
59305             Eric Blake  <ebb9@byu.net>
59306             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59307
59308         * gnulib-tool (self_abspathname): Fix algorithm to cope with
59309         empty components in $PATH, denoting '.'.
59310
59311 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59312
59313         * gnulib-tool: Fix indentation.
59314         (func_create_megatestdir): Likewise.
59315         Report by Bruno Haible.
59316
59317 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59318
59319         Sync from Automake.
59320         * build-aux/gnupload: Fix shell portability issues with for loops.
59321         Report by Karl Berry.
59322
59323 2007-06-29  Simon Josefsson  <simon@josefsson.org>
59324
59325         * build-aux/maint.mk (POURL): Use translationproject.org.
59326
59327 2007-06-27  Simon Josefsson  <simon@josefsson.org>
59328             Bruno Haible  <bruno@clisp.org>
59329
59330         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
59331         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
59332         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
59333         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
59334         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
59335
59336 2007-06-27  Bruno Haible  <bruno@clisp.org>
59337
59338         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
59339         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
59340
59341 2007-06-26  Karl Berry  <karl@gnu.org>
59342
59343         * MODULES.html.sh: remove xreadlink-with-size.
59344
59345 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59346
59347         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
59348         method that I hope also handles the double-include problem noted
59349         by Bruno Haible in
59350         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
59351
59352 2007-06-23  Bruno Haible  <bruno@clisp.org>
59353
59354         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59355         Don't let the 'mostlyclean' target fail if the last subdirectory could
59356         not be removed.
59357         Reported by Karl Berry.
59358
59359 2007-06-23  Bruno Haible  <bruno@clisp.org>
59360
59361         * gnulib-tool (echo): Add a speedier workaround for ksh.
59362         * tests/test-echo.sh: Likewise.
59363
59364 2007-06-23  Bruno Haible  <bruno@clisp.org>
59365
59366         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
59367         * tests/test-echo.sh: Likewise.
59368
59369 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59370
59371         * gnulib-tool (IFS): Initialize early, so we don't set it to
59372         empty later.
59373         (self_abspathname): Rewrite algorithm to set it, reindent.
59374         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
59375         (func_create_megatestdir): Merge some sed scripts.
59376
59377 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59378
59379         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
59380         exposed by Sun Studio 11 cc on Solaris 8.
59381
59382 2007-06-22  Bruno Haible  <bruno@clisp.org>
59383
59384         * gnulib-tool (echo): Ensure the echo primitive does not interpret
59385         backslashes.
59386         * tests/test-echo.sh: New file.
59387
59388 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59389
59390         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
59391         simplify `sed_replace_build_aux' scripts, they are portable but
59392         echoing them with `echo' is not.
59393         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
59394
59395 2007-06-21  Karl Berry  <karl@gnu.org>
59396
59397         * config/srclist.txt: guess we can't handle the licenses via
59398         srclist at the moment.
59399
59400 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59401
59402         * MODULES.html.sh: Add include_next.
59403         * modules/include_next: New file.
59404
59405 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59406
59407         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
59408         INCLUDE_NEXT.
59409         (gl_CHECK_NEXT_HEADERS): New macro.
59410         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
59411         the obsolescent gl_ABSOLUTE_HEADER.
59412         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
59413         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
59414         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59415         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59416         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
59417         * m4/math_h.m4 (gl_MATH_H): Likewise.
59418         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59419         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59420         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
59421         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59422         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
59423         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
59424         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
59425         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59426         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59427         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
59428         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
59429         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
59430         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
59431         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59432         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59433         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59434         * m4/inttypes.m4 (gl_INTTYPES_H): Define
59435         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
59436         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
59437         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
59438         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
59439         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
59440         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
59441         * lib/float_.h: Likewise.
59442         * lib/inttypes_.h: Likewise.
59443         * lib/math_.h: Likewise.
59444         * lib/search_.h: Likewise.
59445         * lib/signal_.h: Likewise.
59446         * lib/stdint_.h: Likewise.
59447         * lib/stdio_.h: Likewise.
59448         * lib/stdlib_.h: Likewise.
59449         * lib/string_.h: Likewise.
59450         * lib/sys_stat_.h: Likewise.
59451         * lib/sys_time_.h: Likewise.
59452         * lib/time_.h: Likewise.
59453         * lib/unistd_.h: Likewise.
59454         * lib/wchar_.h: Likewise.
59455         * lib/wctype_.h: Likewise.
59456         * lib/dirent_.h: Likewise.
59457         * lib/iconv_.h: Likewise.
59458         * lib/locale_.h: Likewise.
59459         * lib/netinet_in_.h: Likewise.
59460         * lib/sys_select_.h: Likewise.
59461         * lib/sys_socket_.h: Likewise.
59462         * lib/sysexits_.h: Likewise.
59463         * modules/fcntl (Depends-on): Depend on include_next, not
59464         absolute_header.
59465         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
59466         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
59467         * modules/fchdir: Likewise.
59468         * modules/float: Likewise.
59469         * modules/iconv_open: Likewise.
59470         * modules/inttypes: Likewise.
59471         * modules/locale: Likewise.
59472         * modules/math: Likewise.
59473         * modules/netinet_in: Likewise.
59474         * modules/search: Likewise.
59475         * modules/signal: Likewise.
59476         * modules/stdint: Likewise.
59477         * modules/stdio: Likewise.
59478         * modules/stdlib: Likewise.
59479         * modules/string: Likewise.
59480         * modules/sys_select: Likewise.
59481         * modules/sys_socket: Likewise.
59482         * modules/sys_stat: Likewise.
59483         * modules/sys_time: Likewise.
59484         * modules/sysexits: Likewise.
59485         * modules/time: Likewise.
59486         * modules/unistd: Likewise.
59487         * modules/wchar: Likewise.
59488         * modules/wctype: Likewise.
59489         * modules/sys_stat: Change maintainer to "all".
59490         * modules/unistd: Likewise.
59491
59492 2007-06-20  Karl Berry  <karl@gnu.org>
59493
59494         * config/srclist.txt: track www changes in license files.
59495
59496 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
59497
59498         * build-aux/bootstrap: Remove stray dot.
59499         Make sure build_aux settings are honored when linking
59500         gnulib_extra_files.
59501
59502 2007-06-19  Eric Blake  <ebb9@byu.net>
59503
59504         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59505         Allow compilation on cygwin.
59506
59507 2007-06-19  Jim Meyering  <jim@meyering.net>
59508
59509         xreadlink-with-size: Remove module.  No longer used.
59510         Ex-callers now use xreadlink or mreadlink-with-size.
59511         * modules/xreadlink-with-size: Remove module.
59512         * lib/xreadlink-with-size.c: Remove file.
59513         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
59514         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
59515         just before the function definition *is* accurate.
59516
59517         Eliminate one way canonicalize_filename_mode could exit.
59518         * lib/canonicalize.c (canonicalize_filename_mode):
59519         Use mreadlink_with_size, not xreadlink_with_size.
59520
59521 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
59522
59523         Detect porting problems to FreeBSD/arm, which has time_t wider than
59524         long int.  Original problem reported for GNU diff by Xin Li in
59525         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
59526         * modules/getdate (Depends-on): Add intprops, verify.
59527         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
59528         is an integer type no wider than long int.
59529
59530 2007-06-18  Jim Meyering  <jim@meyering.net>
59531
59532         New module: mreadlink-with-size.
59533         * MODULES.html.sh: Add mreadlink-with-size.
59534         * modules/mreadlink-with-size: New module
59535         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
59536         not xreadlink-with-size.
59537         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
59538
59539 2007-06-16  Bruno Haible  <bruno@clisp.org>
59540
59541         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
59542         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
59543         Reported by Gary V. Vaughan <gary@gnu.org>.
59544
59545 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
59546
59547         Revamp lchown so that it lives in unistd.h where it belongs.
59548         * lib/lchown.h: Remove.
59549         * lib/dirchownmod.c: Don't include lib/lchown.h.
59550         * lib/fchownat.c: Likewise.
59551         * lib/openat.c: Likewise.
59552         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
59553         does not follow symlinks.
59554         (EOPNOTSUPP): Define if not defined.
59555         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
59556         is defined to 0.
59557         (lchown): New decl.
59558         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
59559         Do not check for lchown decl.
59560         Set REPLACE_LCHOWN.
59561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
59562         REPLACE_LCHOWN.
59563         * modules/chown: Make it clear it follows symlinks.
59564         * modules/lchown: Make it clear it doesn't follow symlinks.
59565         (Files): Remove lib/lchown.h
59566         (Depends-on): Add unistd.
59567         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
59568         (Include): Include <unistd.h>, not "lchown.h".
59569         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
59570         REPLACE_LCHOWN.
59571
59572 2007-06-15  Jim Meyering  <jim@meyering.net>
59573
59574         Change license (GPL to LGPL) of fsusage and dependents.
59575         * modules/fsusage (License): Change to LGPL.
59576         * modules/full-read (License): Likewise.
59577         * modules/full-write (License): Likewise.
59578         * modules/safe-read (License): Likewise.
59579         * modules/safe-write (License): Likewise.
59580
59581 2007-06-14  Ben Pfaff  <blp@gnu.org>
59582
59583         Missing part of allocsa -> malloca transition.
59584         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
59585         gl_MALLOCA.
59586
59587 2007-06-12  Bruno Haible  <bruno@clisp.org>
59588
59589         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
59590         to ia64, x86_64, i386.
59591         Reported by Eric Blake.
59592
59593 2007-06-12  Bruno Haible  <bruno@clisp.org>
59594
59595         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
59596         cross-compiling to x86_64.
59597
59598 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
59599
59600         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
59601         glitch reported by Ralf Wildenhues in
59602         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
59603
59604         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
59605         Vin Shelton.
59606
59607 2007-06-11  Bruno Haible  <bruno@clisp.org>
59608
59609         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
59610         replacement string.
59611         Reported by Eric Blake.
59612
59613 2007-06-10  Bruno Haible  <bruno@clisp.org>
59614
59615         Prepare vasnprintf code for use with Unicode strings.
59616         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
59617         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
59618         TYPE_U32_STRING.
59619         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
59620         a_u32_string variants.
59621         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59622         * lib/printf-args.c: Don't include config.h and the specification
59623         header if PRINTF_FETCHARGS is already defined.
59624         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59625         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
59626         TYPE_U16_STRING, TYPE_U32_STRING.
59627         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
59628         u16_directive, u16_directives, u32_directive, u32_directives): New
59629         types.
59630         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
59631         New declarations.
59632         * lib/printf-parse.c: Don't include config.h and the specification
59633         header if PRINTF_PARSE is already defined. Eliminate the set of
59634         parameters for WIDE_CHAR_VERSION; the user of this file must provide
59635         them now. Include c-ctype.h.
59636         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
59637         directive and CHAR_T_ONLY_ASCII.
59638         * lib/vasnprintf.c: Don't include config.h and the specification header
59639         if VASNPRINTF is already defined.
59640         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
59641         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
59642         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59643         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59644         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59645         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59646         code accordingly.
59647         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59648         pad_ourselves also in this case, with the 'c' and 's' directives, and
59649         with a different notion of "width".
59650         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59651
59652 2007-06-10  Bruno Haible  <bruno@clisp.org>
59653
59654         * modules/unistr/u32-mbsnlen: New file.
59655         * lib/unistr/u32-mbsnlen.c: New file.
59656
59657         * modules/unistr/u16-mbsnlen: New file.
59658         * lib/unistr/u16-mbsnlen.c: New file.
59659
59660         * modules/unistr/u8-mbsnlen: New file.
59661         * lib/unistr/u8-mbsnlen.c: New file.
59662
59663         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59664         declarations.
59665
59666 2007-06-10  Bruno Haible  <bruno@clisp.org>
59667
59668         * lib/string_.h (mbsnlen): New declaration.
59669         * lib/mbsnlen.c: New file.
59670         * m4/mbsnlen.m4: New file.
59671         * modules/mbsnlen: New file.
59672         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59673         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59674         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59675
59676 2007-06-10  Bruno Haible  <bruno@clisp.org>
59677
59678         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59679
59680 2007-06-10  Bruno Haible  <bruno@clisp.org>
59681
59682         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59683         * lib/mbuiter.h: Likewise.
59684
59685 2007-06-10  Bruno Haible  <bruno@clisp.org>
59686
59687         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59688         declaration.
59689
59690 2007-06-10  Karl Berry  <karl@gnu.org>
59691
59692         * config/srclist.txt: remove gettext entries, Bruno prefers
59693         to update individually.
59694
59695 2007-06-10  Bruno Haible  <bruno@clisp.org>
59696
59697         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
59698         'maxlen'. Ensure only length + width bytes are allocated, not
59699         length + 1 + width.
59700
59701 2007-06-09  Bruno Haible  <bruno@clisp.org>
59702
59703         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
59704         (CHAR_T): Remove macro.
59705         (VASNPRINTF): Update.
59706
59707 2007-06-09  Bruno Haible  <bruno@clisp.org>
59708
59709         * MODULES.html.sh (Unicode string functions): Add the new modules.
59710
59711         * modules/uniconv/u32-conv-to-enc: New file.
59712         * lib/uniconv/u32-conv-to-enc.c: New file.
59713         * modules/uniconv/u32-conv-to-enc-tests: New file.
59714         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59715
59716         * modules/uniconv/u16-conv-to-enc: New file.
59717         * lib/uniconv/u16-conv-to-enc.c: New file.
59718         * lib/uniconv/u-conv-to-enc.h: New file.
59719         * modules/uniconv/u16-conv-to-enc-tests: New file.
59720         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59721
59722         * modules/uniconv/u8-conv-to-enc: New file.
59723         * lib/uniconv/u8-conv-to-enc.c: New file.
59724         * modules/uniconv/u8-conv-to-enc-tests: New file.
59725         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59726
59727         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59728         u32_conv_to_encoding): New declarations.
59729
59730 2007-06-09  Bruno Haible  <bruno@clisp.org>
59731
59732         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59733
59734 2007-06-09  Bruno Haible  <bruno@clisp.org>
59735
59736         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
59737         * modules/malloca: Renamed from modules/allocsa, updated.
59738         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
59739         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
59740         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
59741         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
59742         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
59743         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
59744         * modules/xmalloca: Renamed from modules/xallocsa, updated.
59745         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
59746         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
59747         * modules/c-strcasestr (Depends-on): Update.
59748         * lib/c-strcasestr.c: Update.
59749         * modules/c-strstr (Depends-on): Update.
59750         * lib/c-strstr.c: Update.
59751         * modules/canonicalize-lgpl (Depends-on): Update.
59752         * lib/canonicalize-lgpl.c: Update.
59753         * modules/clean-temp (Depends-on): Update.
59754         * lib/clean-temp.c: Update.
59755         * modules/csharpcomp (Depends-on): Update.
59756         * lib/csharpcomp.c: Update.
59757         * modules/csharpexec (Depends-on): Update.
59758         * lib/csharpexec.c: Update.
59759         * modules/javacomp (Depends-on): Update.
59760         * lib/javacomp.c: Update.
59761         * modules/javaexec (Depends-on): Update.
59762         * lib/javaexec.c: Update.
59763         * modules/mbscasestr (Depends-on): Update.
59764         * lib/mbscasestr.c: Update.
59765         * modules/mbsstr (Depends-on): Update.
59766         * lib/mbsstr.c: Update.
59767         * modules/setenv (Depends-on): Update.
59768         * lib/setenv.c: Update.
59769         * modules/strcasestr (Depends-on): Update.
59770         * lib/strcasestr.c: Update.
59771         * modules/striconveha (Depends-on): Update.
59772         * lib/striconveha.c: Update.
59773         * modules/relocatable-prog-wrapper (Files): Update.
59774         * lib/relocwrapper.c: Update.
59775         * build-aux/install-reloc: Update.
59776         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59777
59778 2007-06-08  Bruno Haible  <bruno@clisp.org>
59779
59780         Port to uClibc.
59781         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59782         * lib/fpurge.c (fpurge): Likewise.
59783         * lib/freading.c (freading): Likewise.
59784         * lib/fseeko.c (rpl_fseeko): Likewise.
59785         * lib/fseterr.c (fseterr): Likewise.
59786         * lib/fwriting.c (fwriting): Likewise.
59787         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59788
59789 2007-06-08  Bruno Haible  <bruno@clisp.org>
59790
59791         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59792         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59793         * modules/gettext (Files): Add m4/intlmacosx.m4.
59794
59795 2007-06-07  Bruno Haible  <bruno@clisp.org>
59796
59797         * modules/localename-tests: New file.
59798         * tests/test-localename.c: New file.
59799
59800         New module 'localename'.
59801         * lib/localename.h: New file.
59802         * lib/localename.c: New file, from GNU gettext.
59803         * m4/localename.m4: New file.
59804         * modules/localename: New file.
59805
59806 2007-06-07  Bruno Haible  <bruno@clisp.org>
59807
59808         Work around the lack of <wchar.h> on some builds of uClibc.
59809         * doc/headers/wchar.texi: Update.
59810         * lib/wchar_.h: Include <wchar.h> only if it exists.
59811         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59812         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59813         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59814         doesn't exist.
59815         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59816         * modules/mbfile (Depends-on): Add wchar.
59817         * modules/mbiter (Depends-on): Likewise.
59818         * modules/mbuiter (Depends-on): Likewise.
59819         Reported by Simon Josefsson.
59820
59821 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59822
59823         Work around problem reported by Steven M. Schweda in
59824         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59825         Tru64 5.1B with the Compaq compiler environment installed declares
59826         an 'isblank' function but does not define it in the C library.
59827         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59828         * lib/regex_internal.h (isblank): Likewise.
59829         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59830         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59831
59832 2007-06-05  Bruno Haible  <bruno@clisp.org>
59833
59834         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59835         ia64.
59836         * modules/printf-safe: New file.
59837         * modules/fprintf-posix (Depends-on): Add printf-safe.
59838         * modules/printf-posix (Depends-on): Likewise.
59839         * modules/snprintf-posix (Depends-on): Likewise.
59840         * modules/sprintf-posix (Depends-on): Likewise.
59841         * modules/vasnprintf-posix (Depends-on): Likewise.
59842         * modules/vasprintf-posix (Depends-on): Likewise.
59843         * modules/vfprintf-posix (Depends-on): Likewise.
59844         * modules/vprintf-posix (Depends-on): Likewise.
59845         * modules/vsnprintf-posix (Depends-on): Likewise.
59846         * modules/vsprintf-posix (Depends-on): Likewise.
59847         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59848         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59849         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59850         "no" on i386, x86_64, ia64.
59851         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59852         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59853         on i386, x86_64, ia64.
59854         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59855         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59856         on i386, x86_64, ia64.
59857         * tests/test-vasnprintf-posix.c: Include float.h.
59858         (LDBL80_WORDS): New macro.
59859         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59860         on i386, x86_64, ia64.
59861         * tests/test-vasprintf-posix.c: Include float.h.
59862         (LDBL80_WORDS): New macro.
59863         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59864         on i386, x86_64, ia64.
59865         * tests/test-snprintf-posix.c: Include float.h.
59866         * tests/test-sprintf-posix.c: Likewise.
59867         * tests/test-vsnprintf-posix.c: Likewise.
59868         * tests/test-vsprintf-posix.c: Likewise.
59869
59870 2007-06-05  Bruno Haible  <bruno@clisp.org>
59871
59872         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59873         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59874         non-IEEE numbers on i386, x86_64, ia64.
59875         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59876         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59877         * tests/test-isnanl.h: Include float.h.
59878         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59879
59880 2007-06-05  Bruno Haible  <bruno@clisp.org>
59881
59882         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59883         also the %a / %A. Handle the %a / %A code before this extra handling.
59884
59885 2007-06-05  Bruno Haible  <bruno@clisp.org>
59886
59887         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59888         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59889
59890 2007-06-05  Bruno Haible  <bruno@clisp.org>
59891
59892         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59893         typo in variable name.
59894
59895 2007-06-05  Eric Blake  <ebb9@byu.net>
59896
59897         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59898         Reported by Simon Josefsson.
59899
59900 2007-06-04  Bruno Haible  <bruno@clisp.org>
59901
59902         Avoid test failures on some PowerPC platforms.
59903         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59904         Define differently for PowerPC.
59905         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59906         Reported by Gary V. Vaughan <gary@gnu.org>.
59907
59908 2007-06-02  Bruno Haible  <bruno@clisp.org>
59909
59910         Fix test-stdint failure on FreeBSD/ia64.
59911         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59912         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59913         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59914         * doc/headers/stdint.texi: Update.
59915
59916 2007-06-01  Bruno Haible  <bruno@clisp.org>
59917
59918         * tests/test-binary-io.c (main): Pass a third argument to open().
59919         Reported by Gary V. Vaughan <gary@gnu.org>.
59920
59921 2007-06-01  Bruno Haible  <bruno@clisp.org>
59922
59923         * doc/functions/frexpl.texi: Update for mingw.
59924
59925 2007-06-01  Bruno Haible  <bruno@clisp.org>
59926
59927         * tests/test-lseek.c (main): Disable test of errno for invalid third
59928         argument.
59929         * doc/functions/lseek.texi: Update.
59930         Reported by Gary V. Vaughan <gary@gnu.org>.
59931
59932 2007-05-28  Bruno Haible  <bruno@clisp.org>
59933
59934         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59935
59936 2007-05-31  Eric Blake  <ebb9@byu.net>
59937
59938         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59939         cross compiling.
59940
59941 2007-05-30  Eric Blake  <ebb9@byu.net>
59942         and Bruno Haible  <bruno@clisp.org>
59943
59944         Work around mingw test failures exposed by m4-1.4.9b.
59945         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59946         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59947         moment.
59948
59949 2007-05-30  Bruno Haible  <bruno@clisp.org>
59950
59951         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59952         assuming that they are closed. Needed on HP-UX 11.
59953
59954 2007-05-29  Bruno Haible  <bruno@clisp.org>
59955
59956         Fix a problem with #include_next.
59957         * lib/dirent_.h: Split the double-inclusion guard.
59958         * lib/fcntl_.h: Likewise.
59959         * lib/float_.h: Likewise.
59960         * lib/iconv_.h: Likewise.
59961         * lib/inttypes_.h: Likewise.
59962         * lib/locale_.h: Likewise.
59963         * lib/math_.h: Likewise.
59964         * lib/netinet_in_.h: Likewise.
59965         * lib/search_.h: Likewise.
59966         * lib/signal_.h: Likewise.
59967         * lib/stdint_.h: Likewise.
59968         * lib/stdio_.h: Likewise.
59969         * lib/stdlib_.h: Likewise.
59970         * lib/string_.h: Likewise.
59971         * lib/sys_select_.h: Likewise.
59972         * lib/sys_socket_.h: Likewise.
59973         * lib/sys_stat_.h: Likewise.
59974         * lib/sys_time_.h: Likewise.
59975         * lib/sysexits_.h: Likewise.
59976         * lib/time_.h: Likewise.
59977         * lib/unistd_.h: Likewise.
59978         * lib/wchar_.h: Likewise.
59979         * lib/wctype_.h: Likewise.
59980
59981 2007-05-29  Bruno Haible  <bruno@clisp.org>
59982
59983         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59984         for the moment.
59985
59986 2007-05-29  Bruno Haible  <bruno@clisp.org>
59987
59988         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59989         invocation.
59990         Reported by Eric Blake.
59991
59992 2007-05-29  Bruno Haible  <bruno@clisp.org>
59993
59994         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59995         compiling case.
59996
59997 2007-05-29  Eric Blake  <ebb9@byu.net>
59998             Bruno Haible  <bruno@clisp.org>
59999
60000         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
60001         cross compiles.
60002
60003 2007-05-28  Eric Blake  <ebb9@byu.net>
60004
60005         * modules/closein-tests (test_closein_LDADD): Support test on
60006         cygwin with libtool.
60007
60008 2007-05-28  Bruno Haible  <bruno@clisp.org>
60009
60010         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
60011         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60012         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60013         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60014         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60015         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60016         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60017         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60018         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60019
60020 2007-05-28  Eric Blake  <ebb9@byu.net>
60021
60022         Unconditionally include <config.h> in unit tests.
60023         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
60024         * tests/test-allocsa.c, tests/test-arcfour.c,
60025         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
60026         tests/test-array_list.c, tests/test-array_oset.c,
60027         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
60028         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
60029         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
60030         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
60031         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
60032         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
60033         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
60034         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
60035         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
60036         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
60037         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
60038         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
60039         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
60040         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
60041         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
60042         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
60043         test-md5.c, test-memmem.c, test-printf-posix.c,
60044         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
60045         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
60046         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
60047         test-strcasestr.c, test-striconv.c, test-striconveh.c,
60048         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
60049         test-vasnprintf-posix2.c, test-vasnprintf.c,
60050         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
60051         test-vfprintf-posix.c, test-vprintf-posix.c,
60052         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
60053         test-xvasprintf.c: Likewise.
60054
60055 2007-05-28  Bruno Haible  <bruno@clisp.org>
60056
60057         * gnulib-tool (func_import): Remember the --with-tests command-line
60058         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
60059         Reported by Eric Blake.
60060
60061 2007-05-28  Bruno Haible  <bruno@clisp.org>
60062
60063         * modules/ftell-tests: New file.
60064         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
60065         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
60066
60067         * lib/ftell.c: New file.
60068         * modules/ftell: New file.
60069         * m4/ftell.m4: New file.
60070         * doc/functions/ftell.texi: Update.
60071         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
60072         REPLACE_FTELL.
60073         * lib/stdio_.h (rpl_ftell): New declaration.
60074         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
60075         REPLACE_FTELL.
60076
60077 2007-05-28  Eric Blake  <ebb9@byu.net>
60078
60079         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
60080
60081 2007-05-28  Bruno Haible  <bruno@clisp.org>
60082
60083         * modules/fseek-tests: New file.
60084         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
60085         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
60086
60087         * lib/fseek.c: New file.
60088         * modules/fseek: New file.
60089         * m4/fseek.m4: New file.
60090         * doc/functions/fseek.texi: Update.
60091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
60092         REPLACE_FSEEK.
60093         * lib/stdio_.h (rpl_fseek): New declaration.
60094         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
60095         REPLACE_FSEEK.
60096
60097 2007-05-28  Bruno Haible  <bruno@clisp.org>
60098
60099         * lib/stdio_.h (fflush): More comments.
60100
60101 2007-05-28  Bruno Haible  <bruno@clisp.org>
60102
60103         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
60104         runtime test.
60105
60106 2007-05-28  Eric Blake  <ebb9@byu.net>
60107
60108         Improve lseek module.
60109         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
60110         * lib/unistd_.h (lseek): Scale back link warning message.
60111         * tests/test-lseek.c: Beef up test.
60112         * tests/test-lseek.sh: Exercise more facets of lseek.
60113         Reported by Bruno Haible.
60114
60115 2007-05-28  Bruno Haible  <bruno@clisp.org>
60116
60117         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
60118         to define.
60119
60120 2007-05-27  Bruno Haible  <bruno@clisp.org>
60121
60122         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
60123
60124 2007-05-27  Bruno Haible  <bruno@clisp.org>
60125
60126         * modules/openmp: New file.
60127         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
60128         Noah Misch.
60129
60130 2007-05-26  Bruno Haible  <bruno@clisp.org>
60131
60132         * modules/chdir-long (Depends-on): Add fchdir.
60133         * modules/chdir-safer (Depends-on): Likewise.
60134         * modules/fts (Depends-on): Likewise.
60135         * modules/fts-lgpl (Depends-on): Likewise.
60136         * modules/openat (Depends-on): Likewise.
60137         * modules/savewd (Depends-on): Likewise.
60138
60139 2007-05-24  Eric Blake  <ebb9@byu.net>
60140
60141         Fix lseek on mingw.
60142         * modules/lseek: New module.
60143         * m4/lseek.m4: New file.
60144         * lib/lseek.c: New file.
60145         * modules/lseek-tests: New file.
60146         * tests/test-lseek.c: New file.
60147         * tests/test-lseek.sh: New file.
60148         * MODULES.html.sh: Document lseek module.
60149         * modules/fflush (Depends-on): Add lseek, fseeko.
60150         * modules/fseeko (Depends-on): Likewise.
60151         * modules/ftello (Depends-on): Likewise.
60152         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
60153         broken.
60154         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
60155         broken.
60156         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
60157         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
60158         * lib/ftello.c (rpl_ftello): Likewise.
60159         * tests/test-fseeko.c (main): Test this.
60160         * tests/test-fseeko.sh: Likewise.
60161         * tests/test-ftello.c (main): Likewise.
60162         * tests/test-ftello.sh: Likewise.
60163         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
60164         implies replacing fseek.
60165         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
60166         HAVE_FTELLO.
60167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
60168         * modules/unistd (Makefile.am): Likewise.
60169         * lib/unistd_.h (lseek): Declare a replacement.
60170         * doc/functions/lseek.texi (lseek): Document this fix.
60171         * doc/functions/fseek.texi (fseek): Likewise.
60172         * doc/functions/ftell.texi (ftell): Likewise.
60173
60174 2007-05-24  Bruno Haible  <bruno@clisp.org>
60175
60176         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
60177         in the printed representation of a NaN.
60178         * tests/test-vasprintf-posix.c (test_function): Likewise.
60179         * tests/test-snprintf-posix.h (test_function): Likewise.
60180         * tests/test-sprintf-posix.h (test_function): Likewise.
60181         Reported by Eric Blake.
60182
60183 2007-05-23  Eric Blake  <ebb9@byu.net>
60184
60185         Fix fseeko/ftello on cygwin 1.5.24.
60186         * doc/functions/fseeko.texi (fseeko): Document the fix.
60187         * doc/functions/ftello.texi (ftello): Document the fix.
60188         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
60189         * doc/functions/stdout.text (stdout): New file.
60190         * doc/functions/stderr.text (stderr): New file.
60191         * doc/gnulib.texi (Function Substitutes): Use new files.
60192         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
60193         prior to 1.7.0.
60194         * tests/test-ftello.c (main): Likewise for ftello.
60195         * tests/test-fseeko.sh: New file.
60196         * tests/test-ftello.sh: New file.
60197         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
60198         with seekable stdin.
60199         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
60200         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
60201         (gl_REPLACE_FSEEKO): New macro.
60202         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
60203         * modules/fseeko (Files): Distribute fseeko.c.
60204         * modules/ftello (Files): Distribute ftello.c.
60205         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
60206         mode.
60207         * lib/ftello.c (rpl_ftello): New file.
60208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
60209         fseeko, ftello.
60210         (gl_STDIN_LARGE_OFFSET): New macro.
60211         * modules/stdio (Makefile.am): Perform the replacement.
60212         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
60213
60214 2007-05-23  Bruno Haible  <bruno@clisp.org>
60215
60216         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
60217         GNULIB_POSIXCHECK is defined.
60218
60219 2007-05-21  Bruno Haible  <bruno@clisp.org>
60220
60221         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
60222         Check also the output for NaN arguments. When cross-compiling, guess
60223         no on IRIX.
60224         * lib/vasnprintf.c: Update comments.
60225         * tests/test-vasnprintf-posix.c (strisnan): New function.
60226         (test_function): Use it.
60227         * tests/test-vasprintf-posix.c (strisnan): New function.
60228         (test_function): Use it.
60229         * tests/test-snprintf-posix.h (strisnan): New function.
60230         (test_function): Use it.
60231         * tests/test-sprintf-posix.h (strisnan): New function.
60232         (test_function): Use it.
60233         Reported by Eric Blake.
60234
60235 2007-05-20  Bruno Haible  <bruno@clisp.org>
60236
60237         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
60238         numbers that fails on BeOS.
60239         * doc/functions/frexpl.texi: Update.
60240
60241 2007-05-20  Jim Meyering  <jim@meyering.net>
60242
60243         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
60244         forced upon us by glibc-2.6.
60245
60246 2007-05-20  Bruno Haible  <bruno@clisp.org>
60247
60248         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
60249         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
60250         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
60251         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
60252         NEED_PRINTF_INFINITE.
60253         (is_infinitel): New function.
60254         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
60255         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
60256         gl_PREREQ_VASNPRINTF_INFINITE.
60257         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
60258         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60259         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
60260         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
60261         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
60262         gl_PREREQ_VASNPRINTF_INFINITE.
60263         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60264         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60265         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60266         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60267         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60268         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60269         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60270         * doc/functions/fprintf.texi: Update.
60271         * doc/functions/printf.texi: Update.
60272         * doc/functions/snprintf.texi: Update.
60273         * doc/functions/sprintf.texi: Update.
60274         * doc/functions/vfprintf.texi: Update.
60275         * doc/functions/vprintf.texi: Update.
60276         * doc/functions/vsnprintf.texi: Update.
60277         * doc/functions/vsprintf.texi: Update.
60278
60279 2007-05-20  Bruno Haible  <bruno@clisp.org>
60280
60281         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
60282         was not found in libc.
60283         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60284
60285 2007-05-20  Bruno Haible  <bruno@clisp.org>
60286
60287         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60288         printed as "-nan" instead of "nan".
60289         * tests/test-vasprintf-posix.c (test_function): Likewise.
60290         * tests/test-snprintf-posix.h (test_function): Likewise.
60291         * tests/test-sprintf-posix.h (test_function): Likewise.
60292         Needed for HP-UX 11.
60293
60294 2007-05-20  Jim Meyering  <jim@meyering.net>
60295
60296         Fix buggy test for the fchownat-deref bug.
60297         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
60298         symlink required for the run-test.  Without it, this test would
60299         always declare that fchownat doesn't work, and client code would
60300         unnecessarily use the replacement function with fixed libc.
60301         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
60302         Reported by Greg Schafer.
60303
60304 2007-05-19  Bruno Haible  <bruno@clisp.org>
60305
60306         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
60307         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
60308         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
60309         Needed for IRIX 6.5 and Solaris 2.5.1.
60310
60311 2007-05-19  Bruno Haible  <bruno@clisp.org>
60312
60313         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
60314         (test_function): Skip tests involving -0.0 on platforms where
60315         -0.0 = 0.0.
60316         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
60317         (test_function): Skip tests involving -0.0 on platforms where
60318         -0.0 = 0.0.
60319         * tests/test-snprintf-posix.h (have_minus_zero): New function.
60320         (test_function): Skip tests involving -0.0 on platforms where
60321         -0.0 = 0.0.
60322         * tests/test-sprintf-posix.h (have_minus_zero): New function.
60323         (test_function): Skip tests involving -0.0 on platforms where
60324         -0.0 = 0.0.
60325         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
60326         tests.
60327         * tests/test-printf-posix.h (test_function): Likewise.
60328         * tests/test-printf-posix.output: Remove all -0.0 related results.
60329         Needed for IRIX 6.5.
60330
60331 2007-05-19  Bruno Haible  <bruno@clisp.org>
60332
60333         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60334         printed as "nan0x7fffffff" instead of "nan".
60335         * tests/test-vasprintf-posix.c (test_function): Likewise.
60336         * tests/test-snprintf-posix.h (test_function): Likewise.
60337         * tests/test-sprintf-posix.h (test_function): Likewise.
60338         * tests/test-fprintf-posix.h (NaN): Remove macro.
60339         (test_function): Remove all NaN related tests.
60340         * tests/test-printf-posix.h (NaN): Remove macro.
60341         (test_function): Remove all NaN related tests.
60342         * tests/test-printf-posix.output: Remove all NaN related results.
60343         Needed for IRIX 6.5.
60344
60345 2007-05-19  Bruno Haible  <bruno@clisp.org>
60346
60347         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
60348         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60349
60350 2007-05-19  Bruno Haible  <bruno@clisp.org>
60351
60352         * lib/float_.h: New file.
60353         * m4/float_h.m4: New file.
60354         * modules/float: New file.
60355         * modules/isnanl (Dependencies): Add float.
60356         * modules/isnanl-nolibm (Dependencies): Likewise.
60357         * modules/mathl (Dependencies): Likewise.
60358         * modules/printf-frexpl (Dependencies): Likewise.
60359         * modules/signbit (Dependencies): Likewise.
60360         * modules/vasnprintf (Dependencies): Likewise.
60361         * doc/headers/float.texi: Update.
60362
60363 2007-05-19  Jim Meyering  <jim@meyering.net>
60364
60365         * lib/utimens.c (gl_futimens): Rename from futimens,
60366         now that glibc-2.6 declares futimens.
60367         * lib/utimens.h: Likewise.
60368
60369 2007-05-19  Bruno Haible  <bruno@clisp.org>
60370
60371         Avoid test failures on mingw.
60372         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
60373         * tests/test-printf-posix.sh: Likewise.
60374         * tests/test-vfprintf-posix.sh: Likewise.
60375         * tests/test-vprintf-posix.sh: Likewise.
60376
60377 2007-05-19  Bruno Haible  <bruno@clisp.org>
60378
60379         Fix *printf result for NaN, Inf, -0.0 on mingw.
60380         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
60381         * lib/vasnprintf.c: Include math.h and isnan.h.
60382         (is_infinite_or_zero): New function.
60383         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
60384         values in the %f, %F, %e, %E, %g, %G directives.
60385         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
60386         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60387         gl_PRINTF_INFINITE and test its result. Invoke
60388         gl_PREREQ_VASNPRINTF_INFINITE.
60389         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60390         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60391         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60392         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60393         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60394         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60395         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60396         * doc/functions/fprintf.texi: Update.
60397         * doc/functions/printf.texi: Update.
60398         * doc/functions/snprintf.texi: Update.
60399         * doc/functions/sprintf.texi: Update.
60400         * doc/functions/vfprintf.texi: Update.
60401         * doc/functions/vprintf.texi: Update.
60402         * doc/functions/vsnprintf.texi: Update.
60403         * doc/functions/vsprintf.texi: Update.
60404
60405 2007-05-19  Bruno Haible  <bruno@clisp.org>
60406
60407         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
60408         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
60409         Instead of multiplying with 10^k, set extra_zeroes to k.
60410         (scale10_round_long_double): Remove function.
60411
60412 2007-05-18  Bruno Haible  <bruno@clisp.org>
60413
60414         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
60415         introduced on 2007-05-06.
60416
60417 2007-05-18  Bruno Haible  <bruno@clisp.org>
60418
60419         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
60420         %g directives.
60421         * tests/test-vasprintf-posix.c (test_function): Likewise.
60422         * tests/test-snprintf-posix.h (test_function): Likewise.
60423         * tests/test-sprintf-posix.h (test_function): Likewise.
60424
60425 2007-05-18  Bruno Haible  <bruno@clisp.org>
60426
60427         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
60428         (strmatch): New function.
60429         (test_function): Test the %f directive on numbers of various exponents.
60430         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
60431         (strmatch): New function.
60432         (test_function): Test the %f directive on numbers of various exponents.
60433         * tests/test-snprintf-posix.h (strmatch): New function.
60434         (test_function): Test the %f directive on numbers of various exponents.
60435         * tests/test-sprintf-posix.h (strmatch): New function.
60436         (test_function): Test the %f directive on numbers of various exponents.
60437         * tests/test-snprintf-posix.c (SIZEOF): New macro.
60438         * tests/test-sprintf-posix.c (SIZEOF): New macro.
60439         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
60440         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
60441
60442 2007-05-18  Bruno Haible  <bruno@clisp.org>
60443
60444         Add support for 'long double' number output.
60445         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
60446         * lib/vasnprintf.c: Include math.h and float+.h.
60447         (mp_limb_t): New type.
60448         (GMP_LIMB_BITS): New macro.
60449         (mp_twolimb_t): New type.
60450         (GMP_TWOLIMB_BITS): New macro.
60451         (mpn_t): New type.
60452         (multiply, divide, convert_to_decimal, decode_long_double,
60453         scale10_round_long_double, scale10_round_decimal_long_double,
60454         floorlog10l): New functions.
60455         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
60456         for the %f, %F, %e, %E, %g, %G directives.
60457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
60458         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60459         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
60460         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
60461         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60462         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60463         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60464         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60465         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60466         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60467         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60468         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
60469         * modules/snprintf-posix (Depends-on): Likewise.
60470         * modules/sprintf-posix (Depends-on): Likewise.
60471         * modules/vasnprintf-posix (Depends-on): Likewise.
60472         * modules/vasprintf-posix (Depends-on): Likewise.
60473         * modules/vfprintf-posix (Depends-on): Likewise.
60474         * modules/vsnprintf-posix (Depends-on): Likewise.
60475         * modules/vsprintf-posix (Depends-on): Likewise.
60476         * modules/vasnprintf (Files): Add lib/float+.h.
60477         * doc/functions/fprintf.texi: Update.
60478         * doc/functions/printf.texi: Update.
60479         * doc/functions/snprintf.texi: Update.
60480         * doc/functions/sprintf.texi: Update.
60481         * doc/functions/vfprintf.texi: Update.
60482         * doc/functions/vprintf.texi: Update.
60483         * doc/functions/vsnprintf.texi: Update.
60484         * doc/functions/vsprintf.texi: Update.
60485
60486 2007-05-18  Bruno Haible  <bruno@clisp.org>
60487
60488         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
60489
60490 2007-05-18  Bruno Haible  <bruno@clisp.org>
60491
60492         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
60493         for printing 64-bit integers. Needed for mingw.
60494
60495 2007-05-18  Bruno Haible  <bruno@clisp.org>
60496
60497         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60498         gl_FUNC_FREXPL_WORKS.
60499         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
60500
60501 2007-05-18  Bruno Haible  <bruno@clisp.org>
60502
60503         * modules/frexpl-nolibm-tests: New file.
60504
60505         * modules/frexpl-nolibm: New file.
60506         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
60507
60508 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60509
60510         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
60511         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60512         GCC 4.2, which otherwise issues a lot of warnings.
60513         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
60514         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
60515         Likewise.
60516         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
60517         * modules/iconv_open (iconv.h): Likewise.
60518         * modules/locale (locale.h): Likewise.
60519         * modules/netinet_in (netinet/in.h): Likewise.
60520         * modules/sys_select (sys_select.h): Likewise.
60521         * modules/sys_socket (sys/socket.h): Likewise.
60522         * modules/sys_stat (sys/stat.h): Likewise.
60523         * modules/sysexits (sysexits.h): Likewise.
60524         * modules/unistd (unistd.h): Likewise.
60525
60526 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60527
60528         * modules/closein-tests (Makefile.am): Distribute
60529         `test-closein.sh'.
60530
60531 2007-05-17  Bruno Haible  <bruno@clisp.org>
60532
60533         * tests/test-printf-posix.output: Renamed from
60534         tests/test-fprintf-posix.out.
60535         * modules/fprintf-posix-tests: Update.
60536         * modules/printf-posix-tests: Update.
60537         * modules/vfprintf-posix-tests: Update.
60538         * modules/vprintf-posix-tests: Update.
60539         * tests/test-fprintf-posix.sh: Update.
60540         * tests/test-printf-posix.sh: Update.
60541         * tests/test-vfprintf-posix.sh: Update.
60542         * tests/test-vprintf-posix.sh: Update.
60543         Reported by Ralf Wildenhues.
60544
60545 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60546
60547         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
60548         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60549         GCC 4.2, which otherwise issues a lot of warnings.
60550         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
60551         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
60552         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
60553         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
60554         it should no longer be needed.
60555         * lib/string_.h: Likewise.
60556         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
60557         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
60558         * modules/inttypes (inttypes.h): Likewise.
60559         * modules/math (math.h): Likewise.
60560         * modules/search (search.h): Likewise.
60561         * modules/signal (signal.h): Likewise.
60562         * modules/stdint (stdint.h): Likewise.
60563         * modules/stdio (stdio.h): Likewise.
60564         * modules/stdlib (stdlib.h): Likewise.
60565         * modules/string (string.h): Likewise.
60566         * modules/sys_time (sys/time.h): Likewise.
60567         * modules/time (time.h): Likewise.
60568         * modules/wchar (wchar.h): Likewise.
60569         * modules/wctype (wtype.h): Likewise.
60570
60571 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60572
60573         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
60574
60575 2007-05-13  Bruno Haible  <bruno@clisp.org>
60576
60577         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
60578         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60579         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
60580         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60581         (gl_PREREQ_STRTOK_R): Don't require it here.
60582
60583 2007-05-13  Bruno Haible  <bruno@clisp.org>
60584
60585         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
60586         when used in C++ mode.
60587
60588 2007-05-12  Bruno Haible  <bruno@clisp.org>
60589
60590         * lib/linebuffer.h: Tweak doc.
60591         * lib/linebuffer.c: Likewise.
60592
60593 2007-05-12  James Youngman  <jay@gnu.org>
60594
60595         * lib/linebuffer.c (readlinebuffer_delim): New function,
60596         like readlinebuffer, but use a caller-specified delimiter.
60597         (readlinebuffer): Just call readlinebuffer_delim with '\n'
60598         as the delimiter.
60599         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
60600
60601 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60602
60603         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
60604         * modules/openat (Files): Remove openat-die.c.
60605         (Depends-on): Add openat-die.
60606         * modules/openat-die: New module.
60607
60608 2007-05-06  Bruno Haible  <bruno@clisp.org>
60609
60610         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
60611         Update with info about Cygwin.
60612         * doc/functions/fprintf.texi: Update.
60613         * doc/functions/printf.texi: Update.
60614         * doc/functions/snprintf.texi: Update.
60615         * doc/functions/sprintf.texi: Update.
60616         * doc/functions/vfprintf.texi: Update.
60617         * doc/functions/vprintf.texi: Update.
60618         * doc/functions/vsnprintf.texi: Update.
60619         * doc/functions/vsprintf.texi: Update.
60620         Reported by Eric Blake.
60621
60622 2007-05-06  Bruno Haible  <bruno@clisp.org>
60623
60624         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
60625         padding ourselves for the floating-point directives.
60626         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
60627         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
60628         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60629         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60630         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
60631         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60632         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60633         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60634         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60635         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60636         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60637         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60638         * tests/test-snprintf-posix.h (test_function): Also check the width
60639         and some flags in the %f directive.
60640         * tests/test-sprintf-posix.h (test_function): Likewise.
60641         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60642         * tests/test-vasprintf-posix.c (test_function): Likewise.
60643         * doc/functions/fprintf.texi: Update.
60644         * doc/functions/printf.texi: Update.
60645         * doc/functions/snprintf.texi: Update.
60646         * doc/functions/sprintf.texi: Update.
60647         * doc/functions/vfprintf.texi: Update.
60648         * doc/functions/vprintf.texi: Update.
60649         * doc/functions/vsnprintf.texi: Update.
60650         * doc/functions/vsprintf.texi: Update.
60651
60652 2007-05-06  Bruno Haible  <bruno@clisp.org>
60653
60654         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60655         pass the ' flag character to sprintf or snprintf.
60656         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60657         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60658         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60659         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60660         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60661         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60662         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60663         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60664         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60665         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60666         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60667         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60668         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60669         flag.
60670         * tests/test-sprintf-posix.h (test_function): Likewise.
60671         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60672         * tests/test-vasprintf-posix.c (test_function): Likewise.
60673         * doc/functions/fprintf.texi: Update.
60674         * doc/functions/printf.texi: Update.
60675         * doc/functions/snprintf.texi: Update.
60676         * doc/functions/sprintf.texi: Update.
60677         * doc/functions/vfprintf.texi: Update.
60678         * doc/functions/vprintf.texi: Update.
60679         * doc/functions/vsnprintf.texi: Update.
60680         * doc/functions/vsprintf.texi: Update.
60681
60682 2007-05-01  Bruno Haible  <bruno@clisp.org>
60683
60684         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60685
60686 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60687
60688         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60689         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60690
60691 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60692
60693         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
60694         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
60695         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
60696
60697 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
60698
60699         * lib/argp-help.c (struct hol_entry): New member `ord'.
60700         (HOL_ENTRY_PTRCMP): Use ord for comparison
60701         (hol_sort): Initialize ord.
60702
60703 2007-05-01  Bruno Haible  <bruno@clisp.org>
60704
60705         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
60706         Reported by Eric Blake.
60707         * doc/gnulib.texi (Function Substitutes): Update.
60708
60709 2007-05-01  Bruno Haible  <bruno@clisp.org>
60710
60711         * doc/functions.texi: Remove file, now redundant through
60712         doc/functions/*.texi.
60713
60714 2007-05-01  Bruno Haible  <bruno@clisp.org>
60715
60716         * modules/argp (Depends-on): Add sleep.
60717
60718 2007-05-01  Bruno Haible  <bruno@clisp.org>
60719
60720         * modules/sleep-tests: New file.
60721         * tests/test-sleep.c: New file.
60722
60723         * modules/sleep: New file.
60724         * lib/sleep.c: New file.
60725         * m4/sleep.m4: New file.
60726         * lib/unistd_.h (sleep): New declaration.
60727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60728         HAVE_SLEEP.
60729         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60730         * doc/functions/sleep.texi: Document the sleep module.
60731
60732 2007-05-01  Bruno Haible  <bruno@clisp.org>
60733
60734         * lib/sigprocmask.h: Remove file.
60735         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
60736         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
60737         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
60738         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
60739         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
60740         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
60741         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
60742         HAVE_SIGSET_T as a shell variable.
60743         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
60744         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
60745         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
60746         (Depends-on): Add signal. Remove verify.
60747         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
60748         (Include): Mention <signal.h> instead of sigprocmask.h.
60749         * NEWS: Mention the change.
60750         * lib/fatal-signal.c: Don't include sigprocmask.h.
60751
60752 2007-05-01  Bruno Haible  <bruno@clisp.org>
60753
60754         * modules/signal: New file.
60755         * lib/signal_.h: New file.
60756         * m4/signal_h.m4: New file.
60757
60758 2007-05-01  Bruno Haible  <bruno@clisp.org>
60759
60760         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60761         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60762         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60763         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60764
60765 2007-05-01  Bruno Haible  <bruno@clisp.org>
60766
60767         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60768         configure time.
60769         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60770         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60771         * modules/sys_stat (Makefile.am): Substitute their values into
60772         sys/stat.h.
60773
60774 2007-05-01  Bruno Haible  <bruno@clisp.org>
60775
60776         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60777         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60778         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60779
60780 2007-05-01  Bruno Haible  <bruno@clisp.org>
60781
60782         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60783         'assert' module here.
60784
60785 2007-05-01  Bruno Haible  <bruno@clisp.org>
60786
60787         * doc/functions/*.texi: New files.
60788         * doc/functions/google-ranking.txt: New file.
60789         * doc/gnulib.texi (Function Substitutes): New chapter.
60790         (ctime, inet_ntoa): Remove sections.
60791         * doc/ctime.texi: Remove file.
60792         * doc/inet_ntoa.texi: Remove file.
60793         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
60794         dependencies.
60795         (%.info): New rule, specifying a --reference-limit.
60796
60797 2007-05-01  Bruno Haible  <bruno@clisp.org>
60798
60799         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
60800
60801 2007-05-01  Bruno Haible  <bruno@clisp.org>
60802
60803         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
60804         the portability of 'mkdir' to mingw systems.
60805
60806 2007-05-01  Bruno Haible  <bruno@clisp.org>
60807
60808         * doc/headers/google-ranking.txt: New file.
60809
60810 2007-04-30  Eric Blake  <ebb9@byu.net>
60811
60812         Prefer fseeko to fseek.
60813         * modules/getpass (Depends-on): Add fseeko.
60814         * lib/getpass.c (getpass): Use fseeko, not fseek.
60815
60816 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60817
60818         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60819         assumes the sorting is stable, while most qsort implementations
60820         are not.  Use argument addresses to ensure they never compare as
60821         equal.
60822
60823         * tests/test-argp-2.sh (usage-indent test): Fix output
60824         (func_compare): Restore diff options
60825         * tests/test-argp.c: Restore #include "progname.h"
60826
60827 2007-04-29  Bruno Haible  <bruno@clisp.org>
60828
60829         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60830         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60831         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60832         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60833         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60834         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60835         (TESTS, check_PROGRAMS): Add test-snprintf.
60836         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60837         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60838         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60839         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60840         assertions that fail on HP-UX, OSF/1, or IRIX.
60841         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60842
60843 2007-04-29  Bruno Haible  <bruno@clisp.org>
60844
60845         * MODULES.html.sh (posix_functions): Remove 'contents'.
60846
60847 2007-04-29  Karl Berry  <karl@gnu.org>
60848
60849         * config/srclist.txt (gendocs_template_min): new entry.
60850
60851 2007-04-29  Bruno Haible  <bruno@clisp.org>
60852
60853         Work around fpurge bug on BSD systems.
60854         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60855         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60856         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60857         fpurge to rpl_fpurge if the system already has this function.
60858         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60859         the case where the system already has this function. Correct invariants
60860         on BSD systems.
60861         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60862         BSD systems.
60863
60864 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60865
60866         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60867         proposed by Sven Verdoolaege.
60868
60869         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60870         options.
60871         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60872         (usage and help tests): Update
60873
60874 2007-04-29  Bruno Haible  <bruno@clisp.org>
60875
60876         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60877         Print more information in case of failure. Disable a test on BeOS.
60878
60879 2007-04-29  Bruno Haible  <bruno@clisp.org>
60880
60881         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60882         This helps debugging on systems on which no gdb is available.
60883
60884 2007-04-29  Bruno Haible  <bruno@clisp.org>
60885
60886         * lib/freading.h: Improve comments.
60887         * lib/fwriting.h: Likewise.
60888         * tests/test-freading.c (main): Don't check freading immediately after
60889         repositioning. Needed for glibc.
60890
60891 2007-04-29  Bruno Haible  <bruno@clisp.org>
60892
60893         * lib/freading.c (freading): Trivial simplification.
60894
60895 2007-04-28  Bruno Haible  <bruno@clisp.org>
60896
60897         * tests/test-fwriting.c (main): Also test the interaction between
60898         fflush and fwriting.
60899         * modules/fwriting-tests (Depends-on): Add fflush.
60900
60901         * tests/test-freading.c (main): Also test the interaction between
60902         fflush and freading.
60903         * modules/freading-tests (Depends-on): Add fflush.
60904
60905 2007-04-28  Bruno Haible  <bruno@clisp.org>
60906
60907         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60908         fseeko and ftello.
60909         Suggested by Eric Blake.
60910
60911 2007-04-28  Jim Meyering  <jim@meyering.net>
60912
60913         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60914         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60915         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60916
60917 2007-04-27  Eric Blake  <ebb9@byu.net>
60918
60919         * doc/headers/assert.texi (assert.h): Document assert module use.
60920
60921 2007-04-27  Bruno Haible  <bruno@clisp.org>
60922
60923         * doc/headers/*.texi: New files.
60924         * doc/gnulib.texi (Header File Substitutes): New chapter.
60925         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60926         dependencies.
60927         (standards.info ,standards.html, standards.dvi): Update dependencies.
60928         (mostlyclean, clean): New targets.
60929
60930 2007-04-27  Bruno Haible  <bruno@clisp.org>
60931
60932         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60933         * modules/sysexits (Files, Makefile.am): Update.
60934
60935         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60936         * modules/sys_socket (Files, Makefile.am): Update.
60937
60938         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60939         * modules/sys_stat (Files, Makefile.am): Update.
60940
60941 2007-04-27  Eric Blake  <ebb9@byu.net>
60942
60943         * lib/freading.h: Improve comments.
60944         * lib/fwriting.h: Likewise.
60945         * lib/fflush.c: Likewise.
60946
60947         Fix closein for mingw.
60948         * modules/closein-tests: Add tests for closein.
60949         * tests/test-closein.c: New file.
60950         * tests/test-closein.sh: Likewise.
60951         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60952         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60953
60954 2007-04-27  Bruno Haible  <bruno@clisp.org>
60955
60956         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60957         version is < 6.
60958         * lib/math_.h [__DECC]: Likewise.
60959         * lib/stdio_.h [__DECC]: Likewise.
60960         * lib/stdlib_.h [__DECC]: Likewise.
60961         * lib/string_.h [__DECC]: Likewise.
60962         * lib/time_.h [__DECC]: Likewise.
60963         * lib/wchar_.h [__DECC]: Likewise.
60964         * lib/wctype_.h [__DECC]: Likewise.
60965
60966 2007-04-27  Bruno Haible  <bruno@clisp.org>
60967
60968         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60969
60970 2007-04-27  Bruno Haible  <bruno@clisp.org>
60971
60972         * lib/fflush.c: Add comments.
60973         * modules/fpurge-tests (Depends-on): Add fflush.
60974         * modules/freadable-tests (Depends-on): Likewise.
60975         * modules/fwritable-tests (Depends-on): Likewise.
60976
60977 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60978
60979         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60980         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60981         Report by Bruno Haible <bruno@clisp.org>.
60982
60983 2007-04-26  Eric Blake  <ebb9@byu.net>
60984
60985         Fix fflush on mingw.
60986         * modules/fflush (Depends-on): Add freading.
60987         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60988         but unread data.
60989
60990 2007-04-26  Eric Blake  <ebb9@byu.net>
60991         and Bruno Haible  <bruno@clisp.org>
60992
60993         Implement freading and fwriting.
60994         * lib/freading.c: New file.
60995         * lib/freading.h: Likewise.
60996         * m4/freading.m4: Likewise.
60997         * modules/freading: Likewise.
60998         * modules/freading-tests: Likewise.
60999         * tests/test-freading.c: Likewise.
61000         * lib/fwriting.c: New file.
61001         * lib/fwriting.h: Likewise.
61002         * m4/fwriting.m4: Likewise.
61003         * modules/fwriting: Likewise.
61004         * modules/fwriting-tests: Likewise.
61005         * tests/test-fwriting.c: Likewise.
61006         * MODULES.html.sh (File stream based Input/Output): Mention them.
61007
61008 2007-04-26  Bruno Haible  <bruno@clisp.org>
61009
61010         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
61011         'long' when we assume it.
61012         Suggested by Eric Blake.
61013
61014 2007-04-26  Bruno Haible  <bruno@clisp.org>
61015
61016         Ensure fseeko, ftello are declared on glibc systems.
61017         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
61018         * modules/fseeko (configure.ac-early): Likewise.
61019         * modules/ftello (configure.ac-early): Likewise.
61020         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
61021         AC_FUNC_FSEEKO for this.
61022         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
61023         (gl_CHECK_FSEEKO): Remove macro.
61024
61025 2007-04-26  Bruno Haible  <bruno@clisp.org>
61026
61027         * tests/test-fflush.c (main): Also check the ftell result after
61028         fflush and fseek/fseeko.
61029         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
61030         file descriptor position cache in the stream.
61031         * lib/fseeko.c (rpl_fseeko): Likewise.
61032
61033 2007-04-26  Bruno Haible  <bruno@clisp.org>
61034
61035         * modules/fflush-tests (Depends-on): Add fseeko.
61036
61037 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
61038             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61039
61040         * lib/argz_.h: ensure error_t definition is obtained in same
61041         mechanism system argz.h would have.
61042         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
61043         argz facilities are known bad.  Err on the side of caution if
61044         cross-compiling.
61045
61046 2007-04-25  Eric Blake  <ebb9@byu.net>
61047
61048         * lib/fpurge.c (includes): Use stdlib.h for free.
61049         * tests/test-fflush.c (main): Also test fflush-fseeko.
61050
61051 2007-04-25  Bruno Haible  <bruno@clisp.org>
61052
61053         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
61054         * lib/fseeko.c: New file.
61055         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
61056         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
61057         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
61058         gl_FUNC_FSEEKO.
61059         (gl_FUNC_FSEEKO): Invoke it.
61060         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
61061         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
61062         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
61063
61064 2007-04-25  Bruno Haible  <bruno@clisp.org>
61065
61066         * modules/fflush (Depends-on): Add ftello.
61067
61068 2007-04-25  Bruno Haible  <bruno@clisp.org>
61069
61070         * modules/ftello-tests: New file.
61071         * tests/test-ftello.c: New file.
61072
61073         * modules/ftello: New file.
61074         * m4/ftello.m4: New file.
61075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
61076         HAVE_FTELLO.
61077         * lib/stdio_.h (ftello): New declaration.
61078         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
61079         HAVE_FTELLO.
61080
61081 2007-04-25  Bruno Haible  <bruno@clisp.org>
61082
61083         * modules/fseeko-tests: New file.
61084         * tests/test-fseeko.c: New file.
61085
61086         * modules/fseeko: New file.
61087         * m4/fseeko.m4: New file.
61088         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
61089         HAVE_FSEEKO.
61090         * lib/stdio_.h (fseeko): New declaration.
61091         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
61092         HAVE_FSEEKO.
61093
61094 2007-04-25  Bruno Haible  <bruno@clisp.org>
61095
61096         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
61097
61098 2007-04-25  Bruno Haible  <bruno@clisp.org>
61099
61100         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
61101         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
61102         * tests/test-unistd.c: Likewise.
61103         * tests/test-fcntl.c: Likewise.
61104
61105 2007-04-23  Eric Blake  <ebb9@byu.net>
61106
61107         * lib/fflush.c: Fix missing include.
61108         Reported by Bruno Haible.
61109
61110 2007-04-23  Bruno Haible  <bruno@clisp.org>
61111
61112         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
61113         Reported by Eric Blake.
61114
61115 2007-04-23  Bruno Haible  <bruno@clisp.org>
61116
61117         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
61118
61119 2007-04-23  Bruno Haible  <bruno@clisp.org>
61120
61121         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
61122
61123 2007-04-23  Bruno Haible  <bruno@clisp.org>
61124
61125         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
61126         Needed on HP-UX 11.
61127
61128 2007-04-16  Eric Blake  <ebb9@byu.net>
61129
61130         Make fflush rely on fpurge.
61131         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
61132         open coding all variants.
61133         * modules/fflush (Depends-on): Add fpurge and unistd.
61134         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
61135         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
61136
61137         Fix --with-tests compilation on cygwin.
61138         * modules/argmatch-tests (Makefile.am): List gnulib library first
61139         in LDADD.
61140         * modules/argp-tests (Makefile.am): Likewise.
61141         * modules/array-list-tests (Makefile.am): Likewise.
61142         * modules/array-oset-tests (Makefile.am): Likewise.
61143         * modules/avltree-list-tests (Makefile.am): Likewise.
61144         * modules/avltree-oset-tests (Makefile.am): Likewise.
61145         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61146         * modules/carray-list-tests (Makefile.am): Likewise.
61147         * modules/dirname-tests (Makefile.am): Likewise.
61148         * modules/frexp-tests (Makefile.am): Likewise.
61149         * modules/isnanl-tests (Makefile.am): Likewise.
61150         * modules/linked-list-tests (Makefile.am): Likewise.
61151         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61152         * modules/lock-tests (Makefile.am): Likewise.
61153         * modules/rbtree-list-tests (Makefile.am): Likewise.
61154         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61155         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61156         * modules/tls-tests (Makefile.am): Likewise.
61157         * modules/tsearch-tests (Makefile.am): Likewise.
61158         * modules/xvasprintf-tests (Makefile.am): Likewise.
61159
61160         Fix fpurge for cygwin.
61161         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
61162         value.
61163         * modules/fpurge-tests (Depends-on): Clean up trash.
61164
61165 2007-04-16  Simon Josefsson  <simon@josefsson.org>
61166
61167         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
61168
61169         * m4/autobuild.m4: Re-indent.
61170
61171 2007-04-13  Bruno Haible  <bruno@clisp.org>
61172
61173         * modules/fpurge-tests: New file.
61174         * tests/test-fpurge.c: New file.
61175
61176         * modules/fpurge: New file.
61177         * lib/fpurge.h: New file.
61178         * lib/fpurge.c: New file.
61179         * m4/fpurge.m4: New file.
61180
61181 2007-04-13  Bruno Haible  <bruno@clisp.org>
61182
61183         * modules/fbufmode-tests: New file.
61184         * tests/test-fbufmode.c: New file.
61185
61186         * modules/fbufmode: New file.
61187         * lib/fbufmode.h: New file.
61188         * lib/fbufmode.c: New file.
61189         * m4/fbufmode.m4: New file.
61190
61191 2007-04-13  Bruno Haible  <bruno@clisp.org>
61192
61193         * modules/fwritable-tests: New file.
61194         * tests/test-fwritable.c: New file.
61195
61196         * modules/fwritable: New file.
61197         * lib/fwritable.h: New file.
61198         * lib/fwritable.c: New file.
61199         * m4/fwritable.m4: New file.
61200
61201 2007-04-13  Bruno Haible  <bruno@clisp.org>
61202
61203         * modules/freadable-tests: New file.
61204         * tests/test-freadable.c: New file.
61205
61206         * modules/freadable: New file.
61207         * lib/freadable.h: New file.
61208         * lib/freadable.c: New file.
61209         * m4/freadable.m4: New file.
61210
61211 2007-04-13  Bruno Haible  <bruno@clisp.org>
61212
61213         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
61214         MOSTLYCLEANFILES.
61215
61216 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61217
61218         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
61219         gzip bootstrap.conf to avoid dragging in i18n machinery.
61220         (gnulib_tool_option): Use it.
61221
61222 2007-04-13  Bruno Haible  <bruno@clisp.org>
61223
61224         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
61225         %F directives.
61226         * tests/test-vasprintf-posix.c (test_function): Likewise.
61227         * tests/test-snprintf-posix.h (test_function): Likewise.
61228         * tests/test-sprintf-posix.h (test_function): Likewise.
61229         * tests/test-fprintf-posix.h (test_function): Likewise.
61230         * tests/test-printf-posix.h (test_function): Likewise.
61231         * tests/test-fprintf-posix.out: Likewise.
61232
61233 2007-04-13  Bruno Haible  <bruno@clisp.org>
61234
61235         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
61236         * modules/tls-tests (configure.ac): Likewise.
61237         Reported by Arto C. Nirkko <anirkko@insel.ch>.
61238
61239 2007-04-13  Bruno Haible  <bruno@clisp.org>
61240
61241         * lib/tls.c (glthread_tls_get): Fix return type.
61242         Patch by Arto C. Nirkko <anirkko@insel.ch>.
61243
61244 2007-04-12  Eric Blake  <ebb9@byu.net>
61245
61246         * modules/gettime (Depends-on): Remove gettime.
61247         Reported by Dmitry V. Levin.
61248
61249 2007-04-12  Bruno Haible  <bruno@clisp.org>
61250
61251         * modules/fflush (Include): Mention <stdio.h>.
61252         * modules/strtoimax (Include): Mention <inttypes.h>.
61253         * modules/strtoumax (Include): Likewise.
61254
61255 2007-04-12  Eric Blake  <ebb9@byu.net>
61256
61257         * .cvsignore: New file.
61258         * .gitignore: Likewise.
61259
61260 2007-04-12  Bruno Haible  <bruno@clisp.org>
61261
61262         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
61263         not before, since $(LDADD) often contains libgnu.a.
61264         * modules/striconv-tests (test_striconv_LDADD): Likewise.
61265         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
61266         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
61267         Needed on Cygwin.
61268
61269 2007-04-12  Eric Blake  <ebb9@byu.net>
61270
61271         Work around glibc's failure to flush stdin on fclose.
61272         * lib/closein.c (close_stdin): Flush stdin before closing.
61273
61274         Work around glibc's failure to reset seekable stdin on exit.
61275         * modules/closein: New module.
61276         * lib/closein.c: New file.
61277         * lib/closein.h: Likewise.
61278         * m4/closein.m4: Likewise.
61279         * MODULES.html.sh (File stream based Input/Output): Document it.
61280
61281 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61282
61283         * gnulib-tool: Rename generated 'autobuild' script to
61284         'do-autobuild' in --create-megatestdir output.
61285
61286         * doc/gnulib.texi (Build robot for gnulib): Fix.
61287
61288 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61289
61290         * modules/sysexits (Depends-on): Add absolute-header.
61291
61292 2007-04-12  Eric Blake  <ebb9@byu.net>
61293
61294         No need to preserve errno on success.
61295         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
61296         Reported by Bruno Haible.
61297
61298 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61299
61300         * MODULES.html.sh (Support for maintaining and releasing
61301         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
61302
61303 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61304
61305         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
61306
61307 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61308
61309         * modules/autobuild: New module.
61310
61311         * m4/autobuild.m4: New file.
61312
61313 2007-04-11  Bruno Haible  <bruno@clisp.org>
61314
61315         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
61316         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
61317         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
61318         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
61319         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_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/snprintf-posix.m4 (gl_FUNC_SNPRINTF_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/sprintf-posix.m4 (gl_FUNC_SPRINTF_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/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_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         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
61332         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61333         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61334         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
61335         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61336         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61337         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
61338         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61339         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61340         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
61341         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61342         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61343         Reported by Eric Blake.
61344
61345 2007-04-11  Bruno Haible  <bruno@clisp.org>
61346
61347         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
61348
61349 2007-04-10  Bruno Haible  <bruno@clisp.org>
61350
61351         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
61352         for NaN and Infinity. Needed on FreeBSD 6.1.
61353         * tests/test-vasnprintf-posix.c (test_function): Undo last change
61354         regarding results for "%010a" of Infinity and NaN.
61355         * tests/test-vasprintf-posix.c (test_function): Likewise.
61356         * tests/test-snprintf-posix.h (test_function): Likewise.
61357         * tests/test-sprintf-posix.h (test_function): Likewise.
61358         * tests/test-fprintf-posix.h (test_function): Likewise.
61359         * tests/test-printf-posix.h (test_function): Likewise.
61360         * tests/test-fprintf-posix.out: Likewise.
61361
61362 2007-04-10  Bruno Haible  <bruno@clisp.org>
61363
61364         * modules/locale-tests: New file.
61365         * tests/test-locale.c: New file.
61366
61367         * modules/locale: New file.
61368         * lib/locale_.h: New file.
61369         * m4/locale_h.m4: New file.
61370
61371 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
61372             Bruno Haible  <bruno@clisp.org>
61373
61374         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
61375         be determined, test for availability of the copysignf, copysign,
61376         copysignl functions.
61377         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
61378         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
61379         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
61380
61381 2007-04-09  Eric Blake  <ebb9@byu.net>
61382
61383         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
61384         * modules/stdio (Makefile.am): Support fflush.
61385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61386         * modules/fflush: New file.
61387         * lib/fflush.c: Likewise.
61388         * m4/fflush.m4: Likewise.
61389         * modules/fflush-tests: New test.
61390         * tests/test-fflush.c: Likewise.
61391         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
61392
61393 2007-04-06  Bruno Haible  <bruno@clisp.org>
61394
61395         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
61396         (VASNPRINTF): Use signbit for faster determination whether to print a
61397         minus sign.
61398         * modules/vasnprintf (Files): Remove lib/float+.h.
61399         * modules/fprintf-posix (Depends-on): Add signbit.
61400         * modules/snprintf-posix (Depends-on): Likewise.
61401         * modules/sprintf-posix (Depends-on): Likewise.
61402         * modules/vasnprintf-posix (Depends-on): Likewise.
61403         * modules/vasprintf-posix (Depends-on): Likewise.
61404         * modules/vfprintf-posix (Depends-on): Likewise.
61405         * modules/vsnprintf-posix (Depends-on): Likewise.
61406         * modules/vsprintf-posix (Depends-on): Likewise.
61407
61408 2007-04-06  Bruno Haible  <bruno@clisp.org>
61409
61410         * tests/test-frexp.c (main): Test also the sign bit of zero results.
61411         * tests/test-frexpl.c (main): Likewise.
61412         * tests/test-ldexpl.c (main): Likewise.
61413         * modules/frexp-tests (Depends-on): Add signbit.
61414         * modules/frexpl-tests (Depdends-on): Likewise.
61415         * modules/ldexpl-tests (Depdends-on): Likewise.
61416
61417 2007-04-06  Bruno Haible  <bruno@clisp.org>
61418
61419         * modules/signbit-tests: New file.
61420         * tests/test-signbit.c: New file.
61421
61422         * modules/signbit: New file.
61423         * lib/signbitf.c: New file.
61424         * lib/signbitd.c: New file.
61425         * lib/signbitl.c: New file.
61426         * m4/signbit.m4: New file.
61427         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
61428         (signbit): New macro.
61429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
61430         REPLACE_SIGNBIT.
61431         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
61432         REPLACE_FREXPL into math.h.
61433
61434 2007-04-06  Bruno Haible  <bruno@clisp.org>
61435
61436         * modules/isnanf-nolibm-tests: New file.
61437         * tests/test-isnanf.c: New file.
61438
61439         * modules/isnanf-nolibm: New file.
61440         * lib/isnanf.h: New file.
61441         * lib/isnanf.c: New file.
61442         * lib/isnan.c: Consider the USE_FLOAT macro.
61443         * m4/isnanf.m4: New file.
61444
61445 2007-04-06  Bruno Haible  <bruno@clisp.org>
61446
61447         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
61448         (Link): New section.
61449
61450         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
61451
61452 2007-04-06  Bruno Haible  <bruno@clisp.org>
61453
61454         Assume the 'long double' type.
61455         * m4/longdouble.m4: Remove file.
61456         * config/srclist.txt: Don't mention longdouble.m4.
61457         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
61458         * lib/float+.h: Likewise.
61459         * lib/frexp.c: Likewise.
61460         * lib/printf-args.h: Likewise.
61461         * lib/printf-args.c: Likewise.
61462         * lib/printf-frexp.c: Likewise.
61463         * lib/printf-parse.c: Likewise.
61464         * lib/vasnprintf.c: Likewise.
61465         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
61466         * m4/intl.m4: Likewise.
61467         * m4/isnanl.m4: Likewise.
61468         * m4/printf.m4: Likewise.
61469         * m4/printf-frexpl.m4: Likewise.
61470         * m4/vasnprintf.m4: Likewise.
61471         * modules/allocsa (Files): Remove m4/longdouble.m4.
61472         * modules/gettext (Files): Likewise.
61473         * modules/relocatable-prog-wrapper (Files): Likewise.
61474         * modules/vasnprintf (Files): Likewise.
61475         * modules/isnanl (Files): Likewise.
61476         (Include): Simplify.
61477         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
61478         (Include): Simplify.
61479         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
61480         (Include): Simplify.
61481         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
61482         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61483         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
61484         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61485         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61486         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61487         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
61488         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61489         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61490         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61491         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
61492         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61493         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
61494         * tests/test-isnanl.c: Likewise.
61495         * tests/test-snprintf-posix.h: Likewise.
61496         * tests/test-sprintf-posix.h: Likewise.
61497         * tests/test-vasnprintf-posix.c: Likewise.
61498         * tests/test-vasnprintf-posix2.c: Likewise.
61499         * tests/test-vasprintf-posix.c: Likewise.
61500
61501 2007-04-06  Bruno Haible  <bruno@clisp.org>
61502
61503         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
61504         * lib/math_.h [__DECC]: Include the overridden include file through
61505         #include_next, outside the double-inclusion guard.
61506         * lib/stdio_.h [__DECC]: Likewise.
61507         * lib/stdlib_.h [__DECC]: Likewise.
61508         * lib/string_.h [__DECC]: Likewise.
61509         * lib/time_.h [__DECC]: Likewise.
61510         * lib/wchar_.h [__DECC]: Likewise.
61511         * lib/wctype_.h [__DECC]: Likewise.
61512         * lib/inttypes_.h [__DECC]: Likewise.
61513         Reported by Albert Chin <china@thewrittenword.com> in
61514         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
61515
61516 2007-04-04  Eric Blake  <ebb9@byu.net>
61517
61518         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
61519         1.5.x.
61520
61521 2007-04-04  Bruno Haible  <bruno@clisp.org>
61522
61523         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
61524         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
61525
61526 2007-04-04  Bruno Haible  <bruno@clisp.org>
61527
61528         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
61529         results for "%010a" of Infinity and NaN.
61530         * tests/test-vasprintf-posix.c (test_function): Likewise.
61531         * tests/test-snprintf-posix.h (test_function): Likewise.
61532         * tests/test-sprintf-posix.h (test_function): Likewise.
61533         * tests/test-fprintf-posix.h (test_function): Remove these tests.
61534         * tests/test-printf-posix.h (test_function): Likewise.
61535         * tests/test-fprintf-posix.out: Update.
61536         Needed for FreeBSD 6.1.
61537
61538 2007-04-04  Bruno Haible  <bruno@clisp.org>
61539
61540         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
61541         directly used by the gnulib modules nor by gnulib-tool.
61542
61543 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61544
61545         * DEPENDENCIES: Give overall description of version dependency
61546         desirability.  Use more-typical names for apps.
61547         Add shell, coreutils, diffutils, grep, tar, gzip.
61548
61549 2007-04-04  Simon Josefsson  <simon@josefsson.org>
61550
61551         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
61552
61553 2007-04-04  Karl Berry  <karl@gnu.org>
61554
61555         * MODULES.html.sh (func_module): missing '.
61556
61557 2007-04-03  Bruno Haible  <bruno@clisp.org>
61558
61559         * modules/argmatch-tests (Makefile.am): New variable
61560         test_argmatch_LDADD.
61561         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
61562         * modules/array-list-tests (Makefile.am): New variable
61563         test_array_list_LDADD.
61564         * modules/array-oset-tests (Makefile.am): New variable
61565         test_array_oset_LDADD.
61566         * modules/avltree-list-tests (Makefile.am): New variable
61567         test_avltree_list_LDADD.
61568         * modules/avltree-oset-tests (Makefile.am): New variable
61569         test_avltree_oset_LDADD.
61570         * modules/avltreehash-list-tests (Makefile.am): New variable
61571         test_avltreehash_list_LDADD.
61572         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
61573         test_canonicalize_lgpl_LDADD.
61574         * modules/carray-list-tests (Makefile.am): New variable
61575         test_carray_list_LDADD.
61576         * modules/dirname-tests (Makefile.am): New variable
61577         test_dirname_LDADD.
61578         * modules/linked-list-tests (Makefile.am): New variable
61579         test_linked_list_LDADD.
61580         * modules/linkedhash-list-tests (Makefile.am): New variable
61581         test_linkedhash_list_LDADD.
61582         * modules/rbtree-list-tests (Makefile.am): New variable
61583         test_rbtree_list_LDADD.
61584         * modules/rbtree-oset-tests (Makefile.am): New variable
61585         test_rbtree_oset_LDADD.
61586         * modules/rbtreehash-list-tests (Makefile.am): New variable
61587         test_rbtreehash_list_LDADD.
61588         * modules/xvasprintf-tests (Makefile.am): New variable
61589         test_xvasprintf_LDADD.
61590         Reported by Eric Blake.
61591
61592 2007-04-03  Eric Blake  <ebb9@byu.net>
61593
61594         * DEPENDENCIES: Weaken m4 requirements.
61595
61596 2007-04-03  Bruno Haible  <bruno@clisp.org>
61597
61598         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
61599         * modules/isnanl-tests (configure.ac): Likewise.
61600
61601 2007-04-03  Ben Pfaff  <blp@gnu.org>
61602
61603         * modules/iconv_open: Add $(srcdir)/ to source directory
61604         references in Makefile fragments that call gperf, to fix VPATH
61605         builds.
61606
61607 2007-04-03  Bruno Haible  <bruno@clisp.org>
61608
61609         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
61610         * lib/ldexpl.c: Undo last change.
61611
61612 2007-04-03  Bruno Haible  <bruno@clisp.org>
61613
61614         * modules/printf-frexpl (Depends-on): Undo last change.
61615         (Files): Add m4/ldexpl.m4.
61616
61617 2007-04-03  Bruno Haible  <bruno@clisp.org>
61618
61619         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
61620         * modules/isnanl (Link): New section.
61621
61622         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
61623         * modules/frexp (Link): New section.
61624
61625         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
61626         * modules/frexpl (Link): New section.
61627
61628         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
61629         * modules/ldexpl (Link): New section.
61630
61631 2007-04-03  Bruno Haible  <bruno@clisp.org>
61632
61633         * modules/TEMPLATE-EXTENDED: New file.
61634         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
61635
61636 2007-04-03  Bruno Haible  <bruno@clisp.org>
61637
61638         * DEPENDENCIES: New file.
61639         Suggested by Simon Josefsson.
61640
61641 2007-04-03  Bruno Haible  <bruno@clisp.org>
61642
61643         * doc/gnulib.texi: Escape @.
61644
61645 2007-04-03  James Youngman  <jay@gnu.org>
61646         and Paul Eggert  <eggert@cs.ucla.edu>
61647
61648         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61649         birthtime on all systems that have birthtime, not just those which
61650         use st_birthtimensec rather than st_birthtim.  Putting zero in
61651         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61652         that the birth time is not available for files on an NFS mount.
61653
61654 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61655
61656         * modules/memxor: Move back from crypto/, suggested by Bruno.
61657         * modules/crypto/hmac-sha1: Fix memxor dependency.
61658
61659         * modules/crypto/gc: Moved from ../.
61660
61661 2007-04-02  Eric Blake  <ebb9@byu.net>
61662
61663         * lib/ldexpl.c (includes): Avoid libm.
61664
61665         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61666
61667 2007-04-02  Bruno Haible  <bruno@clisp.org>
61668
61669         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61670         on IRIX.
61671
61672 2007-04-02  Bruno Haible  <bruno@clisp.org>
61673
61674         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61675         x86 or x86_64 platforms running MacOS X.
61676         Reported by Ryan Schmidt <@ryandesign.com>.
61677
61678 2007-04-02  Bruno Haible  <bruno@clisp.org>
61679
61680         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61681         i386.
61682
61683 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61684
61685         * modules/crypto/arcfour: Moved from ../.
61686         * modules/crypto/arcfour-tests: Moved from ../.
61687         * modules/crypto/arctwo: Moved from ../.
61688         * modules/crypto/arctwo-tests: Moved from ../.
61689         * modules/crypto/des: Moved from ../.
61690         * modules/crypto/des-tests: Moved from ../.
61691         * modules/crypto/gc-arcfour: Moved from ../.
61692         * modules/crypto/gc-arcfour-tests: Moved from ../.
61693         * modules/crypto/gc-arctwo: Moved from ../.
61694         * modules/crypto/gc-arctwo-tests: Moved from ../.
61695         * modules/crypto/gc-des: Moved from ../.
61696         * modules/crypto/gc-des-tests: Moved from ../.
61697         * modules/crypto/gc-hmac-md5: Moved from ../.
61698         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
61699         * modules/crypto/gc-hmac-sha1: Moved from ../.
61700         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
61701         * modules/crypto/gc-md2: Moved from ../.
61702         * modules/crypto/gc-md2-tests: Moved from ../.
61703         * modules/crypto/gc-md4: Moved from ../.
61704         * modules/crypto/gc-md4-tests: Moved from ../.
61705         * modules/crypto/gc-md5: Moved from ../.
61706         * modules/crypto/gc-md5-tests: Moved from ../.
61707         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61708         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61709         * modules/crypto/gc-random: Moved from ../.
61710         * modules/crypto/gc-rijndael: Moved from ../.
61711         * modules/crypto/gc-rijndael-tests: Moved from ../.
61712         * modules/crypto/gc-sha1: Moved from ../.
61713         * modules/crypto/gc-sha1-tests: Moved from ../.
61714         * modules/crypto/gc-tests: Moved from ../.
61715         * modules/crypto/hmac-md5: Moved from ../.
61716         * modules/crypto/hmac-md5-tests: Moved from ../.
61717         * modules/crypto/hmac-sha1: Moved from ../.
61718         * modules/crypto/hmac-sha1-tests: Moved from ../.
61719         * modules/crypto/md2: Moved from ../.
61720         * modules/crypto/md2-tests: Moved from ../.
61721         * modules/crypto/md4: Moved from ../.
61722         * modules/crypto/md4-tests: Moved from ../.
61723         * modules/crypto/md5: Moved from ../.
61724         * modules/crypto/md5-tests: Moved from ../.
61725         * modules/crypto/memxor: Moved from ../.
61726         * modules/crypto/rijndael: Moved from ../.
61727         * modules/crypto/rijndael-tests: Moved from ../.
61728         * modules/crypto/sha1: Moved from ../.
61729
61730 2007-03-30  James Youngman  <jay@gnu.org>
61731
61732         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61733         rename() to change the ctime of a file (because ctime is unaffected
61734         by rename on jfs2 on AIX 5.1).
61735         (main): Start by doing cleanup, in case a previous run failed leaving
61736         test files behind.
61737
61738 2007-03-31  Bruno Haible  <bruno@clisp.org>
61739
61740         Support old proprietary implementations of iconv.
61741         * modules/iconv_open: New file.
61742         * lib/iconv_.h: New file.
61743         * m4/iconv_h.m4: New file.
61744         * lib/iconv_open.c: New file.
61745         * lib/iconv_open-aix.gperf: New file.
61746         * lib/iconv_open-hpux.gperf: New file.
61747         * lib/iconv_open-irix.gperf: New file.
61748         * lib/iconv_open-osf.gperf: New file.
61749         * m4/iconv_open.m4: New file.
61750         * modules/linebreak (Depends-on): Add iconv_open.
61751         * modules/striconv (Depends-on): Likewise.
61752         * modules/striconveh (Depends-on): Likewise.
61753         * modules/unicodeio (Depends-on): Likewise.
61754         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
61755         (iconv_t)(-1).
61756         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
61757         conversion if cd is (iconv_t)(-1).
61758         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61759         is not possible.
61760
61761 2007-03-31  Bruno Haible  <bruno@clisp.org>
61762
61763         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61764         work on Solaris either. Protect also second use of "autodetect_jp".
61765
61766 2007-03-31  Bruno Haible  <bruno@clisp.org>
61767
61768         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61769         the function is not present.
61770
61771 2007-03-31  Bruno Haible  <bruno@clisp.org>
61772
61773         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61774         the function is not present.
61775
61776 2007-03-31  Bruno Haible  <bruno@clisp.org>
61777
61778         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61779         a bug in HP-UX iconv_open().
61780
61781 2007-03-31  Bruno Haible  <bruno@clisp.org>
61782
61783         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61784         (Mathematics <math.h>): New section, add fpieee.
61785         (Input/output <stdio.h>): Add fseterr.
61786         (Mathematics <math.h>): New section, add printf-frexp.
61787         (Container data structures): Add sublist.
61788         (Core language properties): Add fpucw, inline.
61789         (Functions for greatest-width integer types <inttypes.h>): Add
61790         imaxabs, imaxdiv, inttypes.
61791         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61792         isnanl-nolibm, ldexp.
61793         (Mathematics <math.h>): New section, add printf-frexpl.
61794         (Support for systems lacking POSIX:2001): Add fprintf-posix,
61795         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
61796         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
61797         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
61798         (Unicode string functions): Add unistr/u*-mbtoucr.
61799         (Java): Add javacomp-script, javaexec-script.
61800         (C#): Add csharpcomp-script, csharpexec-script.
61801         (Support for building libraries and executables): Add havelib,
61802         relocatable-*.
61803         (Support for maintaining and releasing projects): Renamed from
61804         'Support for maintaining and release projects'. Add announce-gen.
61805
61806 2007-03-31  Bruno Haible  <bruno@clisp.org>
61807
61808         * README: Talk primarily about git.
61809         (git and CVS): Renamed from CVS.
61810         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61811         gnulib is available through git.
61812         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61813
61814 2007-03-30  Bruno Haible  <bruno@clisp.org>
61815
61816         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61817         * lib/poll_.h: Likewise.
61818         * lib/stat_.h: Likewise.
61819         * lib/sys_time_.h: Likewise.
61820         * lib/sysexit_.h: Likewise.
61821         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61822         * lib/stdbool_.h: Likewise.
61823         * lib/byteswap_.h: Add double-inclusion guard.
61824
61825 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61826
61827         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61828
61829 2007-03-30  Karl Berry  <karl@gnu.org>
61830
61831         * config/srclist-update: double space after USA in the license
61832         substitution, since that's how it's usually (?) written.
61833
61834 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61835
61836         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61837         reported by Bruno Haible.
61838
61839 2007-03-29  Bruno Haible  <bruno@clisp.org>
61840
61841         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61842         a bug in AIX iconv().
61843
61844 2007-03-29  Bruno Haible  <bruno@clisp.org>
61845
61846         * modules/ldexpl-tests: New file.
61847         * tests/test-ldexpl.c: New file.
61848
61849 2007-03-29  Bruno Haible  <bruno@clisp.org>
61850
61851         * lib/ldexpl.c: Include fpucw.h.
61852         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61853         multiplication.
61854         * modules/ldexpl (Depends-on): Add fpucw.
61855
61856 2007-03-29  Bruno Haible  <bruno@clisp.org>
61857
61858         * modules/ldexpl: New file.
61859         * m4/ldexpl.m4: New file.
61860         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61861         set.
61862         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61863         REPLACE_LDEXPL.
61864         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61865         REPLACE_LDEXPL.
61866         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61867         gl_FUNC_LDEXPL_WORKS.
61868         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61869         * modules/mathl (Files): Remove lib/ldexpl.c.
61870         (Depends-on): Add ldexpl.
61871
61872 2007-03-29  Bruno Haible  <bruno@clisp.org>
61873
61874         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61875
61876 2007-03-29  Bruno Haible  <bruno@clisp.org>
61877
61878         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61879         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61880         and possibly also HP-UX.
61881         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61882         work on AIX, IRIX, HP-UX, OSF/1.
61883         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61884         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61885         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61886         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61887         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61888         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61889
61890 2007-03-29  Bruno Haible  <bruno@clisp.org>
61891
61892         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61893
61894 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61895
61896         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61897         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61898
61899 2007-03-29  Eric Blake  <ebb9@byu.net>
61900
61901         * lib/acl-internal.h: Remove redundant include.
61902         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61903         Cygwin when a file is locked.
61904
61905 2007-03-29  Bruno Haible  <bruno@clisp.org>
61906
61907         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61908         file.
61909         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61910
61911 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61912
61913         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61914         try to remove a parent directory if the child couldn't be removed
61915         (except for the first rmdir, which could fail because the child
61916         doesn't exist).  Problem reported by Jeff Blaine in
61917         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61918
61919 2007-03-28  Bruno Haible  <bruno@clisp.org>
61920
61921         * lib/striconveh.c (utf8conv_carefully): New function.
61922         (mem_cd_iconveh_internal): Invoke it.
61923
61924 2007-03-28  Bruno Haible  <bruno@clisp.org>
61925
61926         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61927         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61928         input.
61929         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61930         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61931         unistr/u8-uctomb.
61932
61933 2007-03-28  Bruno Haible  <bruno@clisp.org>
61934
61935         * modules/unistr/u8-mbtoucr: New file.
61936         * lib/unistr/u8-mbtoucr.c: New file.
61937         * modules/unistr/u16-mbtoucr: New file.
61938         * lib/unistr/u16-mbtoucr.c: New file.
61939         * modules/unistr/u16-mbtoucr: New file.
61940         * lib/unistr/u16-mbtoucr.c: New file.
61941         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61942
61943 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61944             Bruno Haible  <bruno@clisp.org>
61945
61946         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61947         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61948         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61949
61950         * m4/stdio_h.m4: Add stubs for vasprintf too.
61951
61952         * modules/stdio: Support vasprintf in sed command.
61953
61954         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61955         vasprintf.h.  Add stdio module indicator.
61956
61957         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61958         vasprintf.h.
61959
61960         * lib/vasprintf.h: File removed.
61961
61962         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61963         * lib/vasprintf.c: Ditto.
61964         * lib/xvasprintf.c: Ditto.
61965         * tests/test-vasprintf-posix.c: Ditto.
61966         * tests/test-vasprintf.c: Ditto.
61967
61968 2007-03-27  Bruno Haible  <bruno@clisp.org>
61969
61970         Make vasnprintf multithread-safe.
61971         * lib/vasnprintf.c (decimal_point_char): New function.
61972         (VASNPRINTF): Use it.
61973         Suggested by Simon Josefsson.
61974
61975 2007-03-27  Eric Blake  <ebb9@byu.net>
61976
61977         Support sub-second birthtime on cygwin.
61978         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61979         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61980         (get_stat_birthtime): Also work with st_birthtim.
61981
61982 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61983
61984         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61985         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61986         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61987         (get_stat_birthtime_ns): Simplify compile-time tests.
61988         (get_stat_birthtime): Change the API to look like
61989         get_stat_mtime etc., except return a negative tv_nsec on error.
61990         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61991         Don't check for "spare" fields.
61992         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61993         or for struct stat.st_birthtime, as these tests aren't used.
61994         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61995
61996 2007-03-27  Bruno Haible  <bruno@clisp.org>
61997
61998         * lib/stat-time.h: Include <sys/stat.h>.
61999
62000 2007-03-27  James Youngman  <jay@gnu.org>
62001
62002         * lib/stat-time.h (get_stat_birthtime): New function for
62003           retrieving st_birthtime as provided by UFS2 (hence *BSD).
62004         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
62005           and its variants.
62006         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
62007         * modules/stat-time-test: New file.
62008         * tests/test-stat-time.c: New test, devised by Bruno Haible.
62009
62010 2007-03-26  Bruno Haible  <bruno@clisp.org>
62011
62012         Better support of signalling NaNs.
62013         * lib/atanl.c: Include isnanl.h.
62014         (atanl): Perform test for NaN at the beginning of the function and
62015         through a call to isnanl.
62016         * lib/cosl.c: Include isnanl.h.
62017         (cosl): Perform test for NaN at the beginning of the function and
62018         through a call to isnanl.
62019         * lib/ldexpl.c: Include isnanl.h.
62020         (ldexpl): Perform test for NaN through a call to isnanl.
62021         * lib/logl.c: Include isnanl.h.
62022         (logl): Perform test for NaN at the beginning of the function and
62023         through a call to isnanl.
62024         * lib/sinl.c: Include isnanl.h.
62025         (sinl): Perform test for NaN at the beginning of the function and
62026         through a call to isnanl.
62027         * lib/sqrtl.c: Include isnanl.h.
62028         (sqrtl): Perform test for NaN at the beginning of the function and
62029         through a call to isnanl.
62030         * lib/tanl.c: Include isnanl.h.
62031         (tanl): Perform test for NaN at the beginning of the function and
62032         through a call to isnanl.
62033         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
62034         * modules/mathl (Depends-on): Add isnanl.
62035
62036 2007-03-26  Eric Blake  <ebb9@byu.net>
62037
62038         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
62039         regression in logic sense of previous patch.
62040
62041 2007-03-26  Bruno Haible  <bruno@clisp.org>
62042
62043         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
62044         unportable shell command "if ! ...".
62045         Reported by Ralf Wildenhues.
62046
62047 2007-03-25  Bruno Haible  <bruno@clisp.org>
62048
62049         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
62050         <sysexits.h> file, and only add EX_CONFIG.
62051         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
62052         absolute file name and whether it is sufficient. Substitute also
62053         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
62054         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
62055         ABSOLUTE_SYSEXITS_H into sysexits.h.
62056
62057 2007-03-25  Bruno Haible  <bruno@clisp.org>
62058
62059         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
62060         hints is NULL.
62061
62062 2007-03-25  Bruno Haible  <bruno@clisp.org>
62063
62064         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
62065         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
62066
62067 2007-03-25  Bruno Haible  <bruno@clisp.org>
62068
62069         * lib/vasnprintf.c: Include langinfo.h.
62070         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
62071         multithread-safe.
62072         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
62073         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
62074         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62075         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62076         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62077         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62078         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62079         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
62080         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62081         Reported by Simon Josefsson.
62082
62083 2007-03-25  Bruno Haible  <bruno@clisp.org>
62084
62085         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
62086         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
62087         * modules/vasnprintf (Depends-on): Add stdint.
62088
62089 2007-03-25  Bruno Haible  <bruno@clisp.org>
62090
62091         * modules/fpieee: New file.
62092         * m4/fpieee.m4: New file.
62093         * modules/isnan-nolibm (Depends-on): Add fpieee.
62094         * modules/isnanl-nolibm (Depends-on): Add fpieee.
62095         * modules/isnanl (Depends-on): Add fpieee.
62096
62097 2007-03-25  Bruno Haible  <bruno@clisp.org>
62098
62099         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
62100
62101 2007-03-25  Bruno Haible  <bruno@clisp.org>
62102
62103         Avoid test failures on IRIX 6.5.
62104         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
62105         (main): Use it.
62106         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
62107         macros.
62108         (main): Use them.
62109
62110 2007-03-25  Bruno Haible  <bruno@clisp.org>
62111
62112         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
62113         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
62114         exists but doesn't work.
62115         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
62116         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
62117         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
62118         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
62119         math.h.
62120
62121 2007-03-25  Bruno Haible  <bruno@clisp.org>
62122
62123         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
62124         returns inf. Needed on IRIX 6.5.
62125
62126 2007-03-25  Bruno Haible  <bruno@clisp.org>
62127
62128         * tests/test-frexpl.c: Include isnanl-nolibm.h.
62129         (main): Use isnanl instead of x != x idiom.
62130         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
62131
62132         * tests/test-frexp.c: Include isnan.h.
62133         (main): Use isnan instead of x != x idiom.
62134         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
62135
62136 2007-03-25  Bruno Haible  <bruno@clisp.org>
62137
62138         * tests/test-frexp.c (NaN): New function/macro.
62139         (main): Use it instead of 0.0 / 0.0.
62140         * tests/test-isnan.c (NaN): New function/macro.
62141         (main): Use it instead of 0.0 / 0.0.
62142         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
62143         (test_function): Use it instead of 0.0 / 0.0.
62144         * tests/test-vasprintf-posix.c (NaN): New function/macro.
62145         (test_function): Use it instead of 0.0 / 0.0.
62146         * tests/test-snprintf-posix.h (NaN): New function/macro.
62147         (test_function): Use it instead of 0.0 / 0.0.
62148         * tests/test-sprintf-posix.h (NaN): New function/macro.
62149         (test_function): Use it instead of 0.0 / 0.0.
62150         * tests/test-fprintf-posix.h (NaN): New function/macro.
62151         (test_function): Use it instead of 0.0 / 0.0.
62152         * tests/test-printf-posix.h (NaN): New function/macro.
62153         (test_function): Use it instead of 0.0 / 0.0.
62154
62155         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
62156
62157 2007-03-25  Bruno Haible  <bruno@clisp.org>
62158
62159         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
62160
62161 2007-03-25  Bruno Haible  <bruno@clisp.org>
62162
62163         * lib/regexec.c (merge_state_with_log): Make static.
62164
62165 2007-03-25  Bruno Haible  <bruno@clisp.org>
62166
62167         * lib/trigl.c (kernel_rem_pio2): Make static.
62168
62169 2007-03-25  Bruno Haible  <bruno@clisp.org>
62170
62171         * lib/sincosl.c (sincosl_table): Make static.
62172
62173 2007-03-25  Bruno Haible  <bruno@clisp.org>
62174
62175         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
62176         if the compiler does not support C99.
62177
62178 2007-03-25  Bruno Haible  <bruno@clisp.org>
62179
62180         * modules/time (Makefile.am): Ensure all rule action lines start with a
62181         tab.
62182
62183 2007-03-24  Bruno Haible  <bruno@clisp.org>
62184
62185         * modules/tsearch-tests: New file.
62186         * tests/test-tsearch.sh: New file.
62187         * tests/test-tsearch.c: New file, mostly copied from glibc.
62188
62189         * modules/search-tests: New file.
62190         * tests/test-search.c: New file.
62191
62192         * modules/search: New file.
62193         * lib/search_.h: New file, incorporating lib/tsearch.h.
62194         * m4/search_h.m4: New file.
62195         * lib/tsearch.h: Remove file.
62196         * lib/tsearch.c: Include search.h instead of tsearch.h.
62197         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
62198         HAVE_TSEARCH.
62199         * modules/tsearch (Files): Remove lib/tsearch.h.
62200         (Depends-on): Add search.
62201         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
62202         (Include): Change tsearch.h into search.h.
62203
62204 2007-03-24  Bruno Haible  <bruno@clisp.org>
62205
62206         * modules/fpucw: New file.
62207         * lib/fpucw.h: New file.
62208         * lib/frexp.c: Include fpucw.h.
62209         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62210         (FUNC): Use them.
62211         * lib/printf-frexp.c: Include fpucw.h.
62212         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62213         (FUNC): Use them.
62214         * lib/vasnprintf.c: Include fpucw.h.
62215         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
62216         'long double' calculations.
62217         * tests/test-frexpl.c: Include fpucw.h.
62218         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62219         * tests/test-printf-frexpl.c: Include fpucw.h.
62220         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62221         * modules/frexpl (Depends-on): Add fpucw.
62222         * modules/printf-frexpl (Depends-on): Likewise.
62223         * modules/fprintf-posix (Depends-on): Likewise.
62224         * modules/snprintf-posix (Depends-on): Likewise.
62225         * modules/sprintf-posix (Depends-on): Likewise.
62226         * modules/vasnprintf-posix (Depends-on): Likewise.
62227         * modules/vasprintf-posix (Depends-on): Likewise.
62228         * modules/vfprintf-posix (Depends-on): Likewise.
62229         * modules/vsnprintf-posix (Depends-on): Likewise.
62230         * modules/vsprintf-posix (Depends-on): Likewise.
62231         * modules/frexpl-tests (Depends-on): Likewise.
62232         * modules/printf-frexpl-tests (Depends-on): Likewise.
62233
62234 2007-03-24  Bruno Haible  <bruno@clisp.org>
62235
62236         * lib/float+.h: New file.
62237         * lib/isnan.c: Include float+.h.
62238         (SIZE): New macro.
62239         (FUNC): Compare only SIZE bytes of the value.
62240         * lib/vasnprintf.c: Include float+.h.
62241         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
62242         SIZEOF_LDBL or SIZEOF_DBL bytes.
62243         * modules/isnan-nolibm (Files): Add lib/float+.h.
62244         * modules/isnanl-nolibm (Files): Add lib/float+.h.
62245         * modules/isnanl (Files): Add lib/float+.h.
62246         * modules/vasnprintf (Files): Add lib/float+.h.
62247
62248 2007-03-24  Bruno Haible  <bruno@clisp.org>
62249
62250         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
62251         include isnanl-nolibm.h.
62252
62253 2007-03-24  Bruno Haible  <bruno@clisp.org>
62254
62255         * tests/test-read-file.c (main): Don't produce spurious output for
62256         expected situations. Make the test fail if it encountered unexpected
62257         results.
62258
62259 2007-03-24  Bruno Haible  <bruno@clisp.org>
62260
62261         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
62262         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
62263
62264 2007-03-24  Bruno Haible  <bruno@clisp.org>
62265
62266         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
62267
62268 2007-03-24  Bruno Haible  <bruno@clisp.org>
62269
62270         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
62271         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
62272
62273         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
62274         * modules/utf8-ucs4: Turn into a symbolic link to module
62275         unistr/u8-mbtouc.
62276
62277         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
62278         utf8-ucs4-unsafe.
62279         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
62280         unistr/u8-mbtouc-unsafe.
62281
62282         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
62283         * modules/utf16-ucs4: Turn into a symbolic link to module
62284         unistr/u16-mbtouc.
62285
62286         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
62287         utf16-ucs4-unsafe.
62288         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
62289         unistr/u16-mbtouc-unsafe.
62290
62291         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
62292         * modules/ucs4-utf8: Turn into a symbolic link to module
62293         unistr/u8-ubtomb.
62294
62295         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
62296         * modules/ucs4-utf16: Turn into a symbolic link to module
62297         unistr/u16-ubtomb.
62298
62299 2007-03-24  Bruno Haible  <bruno@clisp.org>
62300
62301         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
62302         Enable the function only if HAVE_INLINE.
62303         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
62304         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62305         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
62306         Enable the function only if HAVE_INLINE.
62307         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
62308         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62309         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
62310         Enable the function only if HAVE_INLINE.
62311         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
62312         Enable the function only if HAVE_INLINE.
62313         * modules/utf8-ucs4: Update.
62314         * modules/utf8-ucs4-unsafe: Update.
62315         * modules/utf16-ucs4: Update.
62316         * modules/utf16-ucs4-unsafe: Update.
62317         * modules/ucs4-utf8: Update.
62318         * modules/ucs4-utf16: Update.
62319
62320 2007-03-24  Bruno Haible  <bruno@clisp.org>
62321
62322         * lib/utf8-ucs4.h: Remove file.
62323         * lib/utf8-ucs4-unsafe.h: Remove file.
62324         * lib/utf16-ucs4.h: Remove file.
62325         * lib/utf16-ucs4-unsafe.h: Remove file.
62326         * lib/ucs4-utf8.h: Remove file.
62327         * lib/ucs4-utf16.h: Remove file.
62328         * lib/unistr.h: Include their previous contents.
62329         * m4/utf-ucs4.m4: Remove file.
62330         * m4/ucs4-utf.m4: Remove file.
62331         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
62332         (Depends-on): Add unistr/base.
62333         (configure.ac): Remove gl_UTF_UCS4.
62334         (Makefile.am): Update.
62335         (Include): Change to unistr.h.
62336         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
62337         (Depends-on): Add unistr/base.
62338         (configure.ac): Remove gl_UTF_UCS4.
62339         (Makefile.am): Update.
62340         (Include): Change to unistr.h.
62341         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
62342         (Depends-on): Add unistr/base.
62343         (configure.ac): Remove gl_UTF_UCS4.
62344         (Makefile.am): Update.
62345         (Include): Change to unistr.h.
62346         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
62347         (Depends-on): Add unistr/base.
62348         (configure.ac): Remove gl_UTF_UCS4.
62349         (Makefile.am): Update.
62350         (Include): Change to unistr.h.
62351         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
62352         (Depends-on): Add unistr/base.
62353         (configure.ac): Remove gl_UCS4_UTF.
62354         (Makefile.am): Update.
62355         (Include): Change to unistr.h.
62356         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
62357         (Depends-on): Add unistr/base.
62358         (configure.ac): Remove gl_UCS4_UTF.
62359         (Makefile.am): Update.
62360         (Include): Change to unistr.h.
62361         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
62362         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
62363         utf8-ucs4-unsafe.h.
62364         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
62365         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
62366         utf16-ucs4-unsafe.h.
62367         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
62368         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
62369         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
62370         * lib/unistr/u8-strchr.c: Likewise.
62371         * lib/unistr/u8-strrchr.c: Likewise.
62372         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
62373         * lib/unistr/u16-strchr.c: Likewise.
62374         * lib/unistr/u16-strrchr.c: Likewise.
62375         * lib/striconveh.c: Update.
62376         * lib/linebreak.c: Update.
62377
62378 2007-03-24  Bruno Haible  <bruno@clisp.org>
62379
62380         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
62381         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
62382
62383 2007-03-22  Bruno Haible  <bruno@clisp.org>
62384
62385         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
62386
62387 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62388
62389         * MODULES.html.sh (File system functions): New module write-any-file.
62390         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
62391         * m4/write-any-file.m4: New files.
62392
62393 2007-03-23  Eric Blake  <ebb9@byu.net>
62394
62395         * gnulib-tool: Rearrange space-tab sequences, since some editors
62396         like to eat them.
62397
62398 2007-03-23  Eric Blake  <ebb9@byu.net>
62399
62400         * lib/version-etc.c (version_etc_va): Update license wording to
62401         be more concise.  Recommended by Richard Stallman.
62402
62403 2007-03-22  Bruno Haible  <bruno@clisp.org>
62404
62405         * lib/poll.c (MSG_PEEK): New fallback definition.
62406
62407 2007-03-22  Bruno Haible  <bruno@clisp.org>
62408
62409         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
62410         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
62411         (main): Update.
62412         Fixes a compilation error on BeOS.
62413
62414 2007-03-22  Bruno Haible  <bruno@clisp.org>
62415
62416         * modules/frexpl-tests: New file.
62417         * tests/test-frexpl.c: New file.
62418
62419         * modules/frexpl: New file.
62420         * m4/frexpl.m4: New file.
62421         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
62422         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
62423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
62424         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
62425         (Depends-on): Add frexpl. Remove isnanl-nolibm.
62426         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
62427
62428 2007-03-22  Bruno Haible  <bruno@clisp.org>
62429
62430         * lib/frexpl.c: Share code with lib/frexp.c.
62431         * modules/mathl (Files): Add lib/frexp.c.
62432         (Depends-on): Add isnanl-nolibm.
62433
62434 2007-03-22  Bruno Haible  <bruno@clisp.org>
62435
62436         * modules/printf-frexp (Files): Add m4/frexp.m4.
62437         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
62438         only if the found frexp function actually works.
62439
62440 2007-03-22  Bruno Haible  <bruno@clisp.org>
62441
62442         * lib/frexp.c: Remove older implementation that uses divisions.
62443
62444 2007-03-21  Bruno Haible  <bruno@clisp.org>
62445
62446         * modules/frexp-tests: New file.
62447         * tests/test-frexp.c: New file.
62448
62449         * modules/frexp: New file.
62450         * lib/frexp.c: New file.
62451         * m4/frexp.m4: New file.
62452         * lib/math_.h (frexp): New declaration.
62453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
62454         REPLACE_FREXP.
62455         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
62456
62457 2007-03-21  Bruno Haible  <bruno@clisp.org>
62458
62459         * modules/isnanl-tests: New file.
62460         * tests/test-isnanl.c: New file.
62461
62462         * modules/isnanl: New file.
62463         * lib/isnanl.h: New file.
62464         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
62465         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
62466         gl_FUNC_ISNANL_WORKS.
62467         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
62468         New macros.
62469
62470 2007-03-21  Bruno Haible  <bruno@clisp.org>
62471
62472         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
62473         lib/isnanl.h.
62474         (Include): Update.
62475         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
62476         * lib/vasnprintf.c: Update.
62477         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
62478         tests/test-isnanl.h, remove tests/test-isnanl.c.
62479         (Makefile.am): Update.
62480         * tests/test-isnanl-nolibm.c: New file.
62481         * tests/test-isnanl.h: New file.
62482         * tests/test-isnanl.c: Remove file.
62483
62484 2007-03-21  Jim Meyering  <jim@meyering.net>
62485
62486         When trying to open ".", treat ESTALE like EACCES.
62487         * lib/savewd.c (savewd_save): Resort to forking not just upon
62488         failure with EACCES, but also when errno is ESTALE.
62489
62490 2007-03-20  Bruno Haible  <bruno@clisp.org>
62491
62492         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
62493         Needed on AIX 5.1. Reported by Matthew Woehlke.
62494
62495 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62496
62497         Suggestions by Bruno Haible:
62498         * lib/acl-internal.h: Include "gettext.h" rather than rolling
62499         our own.
62500         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
62501         * modules/acl (Depends-on): Add gettext.
62502
62503 2007-03-19  Bruno Haible  <bruno@clisp.org>
62504
62505         * modules/iconvme: Remove file.
62506         * lib/iconvme.h: Remove file.
62507         * lib/iconvme.c: Remove file.
62508         * m4/iconvme.m4: Remove file.
62509
62510 2007-03-19  Bruno Haible  <bruno@clisp.org>
62511
62512         * doc/relocatable-maint.texi: Break long shell script line.
62513         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62514
62515 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62516
62517         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
62518         handle file_has_acl.
62519         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
62520         * lib/acl.c: Move header inclusions and related macro defns into
62521         lib/acl-internal.h.
62522         (S_ISLNK): Remove defn, since that's now done for us.
62523         (file_has_acl): Move to lib/file-has-acl.c.
62524         Call acl_trivial if available.  This is the crucial part of the fix.
62525         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
62526         shared within the library.  Rewrite a bit, partly to make it compatible
62527         with the GNU coding style.
62528         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
62529         Remove unnecessary double-quotes.
62530         Don't test for acl_to_text; the build will catch that.
62531         Replace acl_entries if it doesn't exist and it is needed.
62532         Check for -lsec and acl_trivial (as used on Solaris 10).
62533         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
62534         lib/file-has-acl.c.
62535         (Depends-on): Add sys_stat, for S_ISLNK.
62536
62537 2007-03-19  Ben Pfaff  <blp@gnu.org>
62538
62539         * doc/gnulib.texi: Fix typos.
62540         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62541
62542 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62543
62544         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
62545         If size is zero here, buf must be zero.
62546
62547 2007-03-19  Simon Josefsson  <simon@josefsson.org>
62548
62549         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
62550         <bruno@clisp.org>.
62551
62552 2007-03-18  Bruno Haible  <bruno@clisp.org>
62553
62554         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
62555         Suggested by Eric Blake.
62556
62557 2007-03-18  Ben Pfaff  <blp@gnu.org>
62558
62559         * doc/relocatable.texi: Recommend using as prefix a directory
62560         that does not exist and will never be created.  Based on
62561         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
62562         and others.
62563
62564 2007-03-17  Bruno Haible  <bruno@clisp.org>
62565
62566         * lib/fchownat.c: Include lchown.h.
62567
62568 2007-03-17  Bruno Haible  <bruno@clisp.org>
62569
62570         Fix endless loop when the given allocated size was > INT_MAX.
62571         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
62572         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
62573         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
62574         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
62575         * lib/sprintf.c (sprintf): Likewise.
62576
62577 2007-03-17  Bruno Haible  <bruno@clisp.org>
62578
62579         * tests/test-argp-2.sh (func_compare): Output a context diff.
62580
62581 2007-03-17  Bruno Haible  <bruno@clisp.org>
62582
62583         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
62584         locale's decimal-point character.
62585
62586 2007-03-17  Bruno Haible  <bruno@clisp.org>
62587
62588         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
62589         before comparing it. Needed because on some platforms (e.g. x86) a
62590         'long double' occupies less bytes than sizeof (long double).
62591
62592 2007-03-17  Bruno Haible  <bruno@clisp.org>
62593
62594         * tests/test-crc.c (main): Make printf statements 64-bit clean.
62595         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
62596         * tests/test-getaddrinfo.c (simple): Likewise.
62597         * tests/test-read-file.c (main): Likewise.
62598
62599 2007-03-17  Bruno Haible  <bruno@clisp.org>
62600
62601         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
62602
62603 2007-03-17  Bruno Haible  <bruno@clisp.org>
62604
62605         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
62606         unused variable.
62607
62608 2007-03-17  Bruno Haible  <bruno@clisp.org>
62609
62610         * tests/test-c-strcasecmp.c: Include c-strcase.h.
62611         * tests/test-c-strncasecmp.c: Likewise.
62612
62613 2007-03-17  Bruno Haible  <bruno@clisp.org>
62614
62615         * modules/stdlib (Depends-on): Add unistd.
62616         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
62617         Needed for MacOS X 10.3.
62618
62619 2007-03-17  Bruno Haible  <bruno@clisp.org>
62620
62621         * lib/unistr/u-strdup.h: Include <stdlib.h>.
62622
62623 2007-03-17  Bruno Haible  <bruno@clisp.org>
62624
62625         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
62626
62627 2007-03-17  Bruno Haible  <bruno@clisp.org>
62628
62629         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
62630         to reflect files copied from gnulib (with or without modifications).
62631         Suggested by Jim Meyering.
62632
62633 2007-03-17  Eric Blake  <ebb9@byu.net>
62634
62635         * NEWS: Document stdlib change from 2007-02-18.
62636
62637 2007-03-17  Jim Meyering  <jim@meyering.net>
62638
62639         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
62640         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
62641         someone uses a name containing shell meta-characters.
62642         Reported by Alfred M. Szmidt.
62643
62644         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62645
62646 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62647
62648         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62649         and copy gettext configuration files only if configure.ac contains
62650         a use of AM_GNU_GETTEXT_VERSION.
62651
62652 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62653
62654         * build-aux/bootstrap (gnulib_name): New variable.
62655         (gnulib_tool_options): Use it.
62656
62657 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62658
62659         * tests/test-des.c: Use new namespace.
62660
62661 2007-03-15  Bruno Haible  <bruno@clisp.org>
62662
62663         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62664         Reported by James Youngman <jay@gnu.org>.
62665
62666 2007-03-15  Bruno Haible  <bruno@clisp.org>
62667
62668         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62669         declared prototype. Needed with cc on OSF/1 5.1.
62670
62671 2007-03-15  Bruno Haible  <bruno@clisp.org>
62672
62673         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62674         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62675         (struct gl_list_implementation): Add dispose_fn argument to the
62676         'create_empty', 'create' methods.
62677         (struct gl_list_impl_base): Add field 'dispose_fn'.
62678         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62679         argument.
62680         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62681         dispose_fn argument.
62682         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62683         dispose_fn on the dropped values.
62684         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62685         dispose_fn argument.
62686         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62687         dropped values.
62688         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62689         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62690         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
62691         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62692         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
62693         argument.
62694         (gl_tree_list_free): Call dispose_fn on the dropped values.
62695         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
62696         the dropped values.
62697         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62698         Add dispose_fn argument.
62699         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
62700         Call dispose_fn on the dropped values.
62701         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
62702         Add dispose_fn argument.
62703         (gl_sublist_create): Initialize the 'dispose_fn' field.
62704         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
62705         * tests/test-array_list.c (main): Update.
62706         * tests/test-carray_list.c (main): Update.
62707         * tests/test-avltree_list.c (main): Update.
62708         * tests/test-rbtree_list.c (main): Update.
62709         * tests/test-avltreehash_list.c (main): Update.
62710         * tests/test-rbtreehash_list.c (main): Update.
62711         * tests/test-linked_list.c (main): Update.
62712         * tests/test-linkedhash_list.c (main): Update.
62713         * tests/test-array_oset.c (main): Update.
62714
62715 2007-03-15  Bruno Haible  <bruno@clisp.org>
62716
62717         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62718         (gl_oset_create_empty): Add dispose_fn argument.
62719         (struct gl_oset_implementation): Add dispose_fn argument to
62720         'create_empty' method.
62721         (struct gl_oset_impl_base): Add dispose_fn field.
62722         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62723         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62724         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62725         values.
62726         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62727         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62728         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62729         dropped value.
62730         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62731         dropped value.
62732         * tests/test-array_oset.c (main): Update.
62733         * tests/test-avltree_oset.c (main): Update.
62734         * tests/test-rbtree_oset.c (main): Update.
62735         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
62736
62737 2007-03-13  Bruno Haible  <bruno@clisp.org>
62738
62739         * tests/test-stdbool.c (i): Update after last patch.
62740
62741 2007-03-12  Bruno Haible  <bruno@clisp.org>
62742
62743         * lib/quotearg.c: Include <wctype.h> early, before the definition of
62744         the iswprint macro. Needed on Solaris 2.5.1.
62745
62746 2007-03-12  Bruno Haible  <bruno@clisp.org>
62747
62748         * tests/test-printf-frexp.c (main): Declare x as volatile.
62749
62750 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62751
62752         * doc/gnulib.texi (Build robot for gnulib): New section.
62753
62754 2007-03-12  Jim Meyering  <jim@meyering.net>
62755
62756         * build-aux/bootstrap: New file.
62757         * build-aux/bootstrap.conf: New file, from coreutils.
62758
62759 2007-03-11  Bruno Haible  <bruno@clisp.org>
62760
62761         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62762
62763 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62764
62765         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62766         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62767         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62768
62769 2007-03-11  Bruno Haible  <bruno@clisp.org>
62770
62771         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62772         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62773
62774 2007-03-11  Bruno Haible  <bruno@clisp.org>
62775
62776         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62777         formula. Needed for SunPRO C 5.0.
62778
62779 2007-03-11  Bruno Haible  <bruno@clisp.org>
62780
62781         * modules/long-options (Depends-on): Add getopt.
62782
62783 2007-03-11  Bruno Haible  <bruno@clisp.org>
62784
62785         * modules/modechange (Depends-on): Add stdbool.
62786
62787 2007-03-11  Bruno Haible  <bruno@clisp.org>
62788
62789         * modules/i-ring (Depends-on): Add stdbool.
62790
62791 2007-03-11  Bruno Haible  <bruno@clisp.org>
62792
62793         * modules/gc-des (Depends-on): Add stdbool.
62794
62795 2007-03-11  Bruno Haible  <bruno@clisp.org>
62796
62797         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
62798
62799 2007-03-11  Bruno Haible  <bruno@clisp.org>
62800
62801         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
62802
62803 2007-03-11  Bruno Haible  <bruno@clisp.org>
62804
62805         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
62806
62807 2007-03-11  Bruno Haible  <bruno@clisp.org>
62808
62809         * lib/vasnprintf.c (sprintf): Undefine.
62810
62811 2007-03-11  Bruno Haible  <bruno@clisp.org>
62812
62813         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62814         initializers in SunPRO C and Compaq C compilers.
62815
62816 2007-03-11  Bruno Haible  <bruno@clisp.org>
62817
62818         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62819         decrementing code ANSI C compliant.
62820
62821 2007-03-11  Bruno Haible  <bruno@clisp.org>
62822
62823         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62824         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62825
62826 2007-03-11  Bruno Haible  <bruno@clisp.org>
62827
62828         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62829         <stdbool.h> substitute doesn't pass.
62830
62831 2007-03-11  Bruno Haible  <bruno@clisp.org>
62832
62833         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62834
62835 2007-03-11  Bruno Haible  <bruno@clisp.org>
62836
62837         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62838         script, for submission to autobuild.josefsson.org.
62839
62840 2007-03-10  Bruno Haible  <bruno@clisp.org>
62841
62842         * modules/canonicalize-lgpl-tests: New file.
62843         * tests/test-canonicalize-lgpl.sh: New file.
62844         * tests/test-canonicalize-lgpl.c: New file.
62845
62846         * modules/c-strcase-tests: New file.
62847         * tests/test-c-strcase.sh: New file.
62848         * tests/test-c-strcasecmp.c: New file.
62849         * tests/test-c-strncasecmp.c: New file.
62850
62851         * modules/atexit-tests: New file.
62852         * tests/test-atexit.sh: New file.
62853         * tests/test-atexit.c: New file.
62854
62855 2007-03-10  Bruno Haible  <bruno@clisp.org>
62856
62857         * tests/test-binary-io.sh: Use temporary filenames that are not so
62858         likely to clash with those of other tests (in a parallel make).
62859         * tests/test-binary-io.c: Likewise.
62860
62861 2007-03-10  Bruno Haible  <bruno@clisp.org>
62862
62863         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62864         fallback; use #error instead.
62865         Suggested by Simon Josefsson.
62866
62867 2007-03-10  Bruno Haible  <bruno@clisp.org>
62868
62869         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62870         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62871         first and the last.
62872
62873 2007-03-10  Bruno Haible  <bruno@clisp.org>
62874
62875         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62876
62877 2007-03-10  Bruno Haible  <bruno@clisp.org>
62878
62879         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62880         "make distcheck".
62881         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62882         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62883         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62884
62885 2007-03-10  Bruno Haible  <bruno@clisp.org>
62886
62887         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62888         variable.
62889         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62890         variable.
62891
62892 2007-03-09  Eric Blake  <ebb9@byu.net>
62893         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62894
62895         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62896         types are not being provided by gnulib.
62897         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62898         types are supported.
62899
62900 2007-03-10  Bruno Haible  <bruno@clisp.org>
62901
62902         * lib/stdio_.h (__attribute__): New macro.
62903         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62904         vsprintf): Specify __attribute__ __format__ for GCC.
62905         Suggested by Eric Blake.
62906
62907 2007-03-09  Bruno Haible  <bruno@clisp.org>
62908
62909         * modules/printf-posix-tests: New file.
62910         * tests/test-printf-posix.sh: New file.
62911         * tests/test-printf-posix.c: New file.
62912
62913         * modules/printf-posix: New file.
62914         * lib/printf.c: New file.
62915         * m4/printf-posix-rpl.m4: New file.
62916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62917         REPLACE_PRINTF.
62918         * lib/stdio_.h (printf): New declaration.
62919         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62920         ____strfmon____): New macros.
62921         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62922         REPLACE_PRINTF.
62923
62924 2007-03-09  Bruno Haible  <bruno@clisp.org>
62925
62926         * tests/test-vasnprintf-posix2.sh: New file.
62927         * tests/test-vasnprintf-posix2.c: New file.
62928         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62929         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62930         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62931
62932         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62933         a locale dependent decimal point, rather than always '.'.
62934
62935 2007-03-09  Eric Blake  <ebb9@byu.net>
62936
62937         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62938         spite of platforms like Tandem/NSK that define it to -1.
62939
62940 2007-03-08  Bruno Haible  <bruno@clisp.org>
62941
62942         * modules/vprintf-posix-tests: New file.
62943         * tests/test-vprintf-posix.sh: New file.
62944         * tests/test-vprintf-posix.c: New file.
62945         * tests/test-printf-posix.h: New file.
62946
62947         * modules/vprintf-posix: New file.
62948         * lib/vprintf.c: New file.
62949         * m4/vprintf-posix.m4: New file.
62950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62951         REPLACE_VPRINTF.
62952         * lib/stdio_.h (vprintf): New declaration.
62953         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62954         REPLACE_VPRINTF.
62955
62956 2007-03-08  Bruno Haible  <bruno@clisp.org>
62957
62958         * modules/fprintf-posix-tests: New file.
62959         * tests/test-fprintf-posix.sh: New file.
62960         * tests/test-fprintf-posix.c: New file.
62961
62962         * modules/fprintf-posix: New file.
62963         * lib/fprintf.c: New file.
62964         * m4/fprintf-posix.m4: New file.
62965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62966         REPLACE_FPRINTF.
62967         * lib/stdio_.h (fprintf): New declaration.
62968         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62969         REPLACE_FPRINTF.
62970
62971 2007-03-08  Bruno Haible  <bruno@clisp.org>
62972
62973         * modules/vfprintf-posix-tests: New file.
62974         * tests/test-vfprintf-posix.sh: New file.
62975         * tests/test-vfprintf-posix.c: New file.
62976         * tests/test-fprintf-posix.h: New file.
62977         * tests/test-fprintf-posix.out: New file.
62978
62979         * modules/vfprintf-posix: New file.
62980         * lib/vfprintf.c: New file.
62981         * m4/vfprintf-posix.m4: New file.
62982         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62983         REPLACE_VFPRINTF.
62984         * lib/stdio_.h (vfprintf): New declaration.
62985         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62986         REPLACE_VFPRINTF.
62987
62988 2007-03-08  Bruno Haible  <bruno@clisp.org>
62989
62990         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62991
62992 2007-03-08  Bruno Haible  <bruno@clisp.org>
62993
62994         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62995         instead of 'expr' invocations.
62996         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62997         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62998         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62999         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63000         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63001         Suggested by Paul Eggert.
63002
63003 2007-03-08  Bruno Haible  <bruno@clisp.org>
63004
63005         * modules/fseterr-tests: New file.
63006         * tests/test-fseterr.c: New file.
63007
63008         * modules/fseterr: New file.
63009         * lib/fseterr.h: New file.
63010         * lib/fseterr.c: New file.
63011
63012 2007-03-08  Bruno Haible  <bruno@clisp.org>
63013
63014         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
63015         * lib/getopt_.h: Likewise.
63016         * lib/mbswidth.h: Likewise.
63017         * lib/setenv.h: Likewise.
63018         * lib/vasnprintf.h: Likewise.
63019         * lib/vasprintf.h: Likewise.
63020         * lib/verror.h: Likewise.
63021         * lib/xsetenv.h: Likewise.
63022         * lib/xvasprintf.h: Likewise.
63023
63024 2007-03-08  Jim Meyering  <jim@meyering.net>
63025
63026         * users.txt: Add parted.
63027
63028         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
63029
63030 2007-03-07  Bruno Haible  <bruno@clisp.org>
63031
63032         * m4/printf.m4: Make the shell script snippets copy&pastable.
63033
63034 2007-03-02  Bruno Haible  <bruno@clisp.org>
63035
63036         * lib/netinet_in_.h: New file.
63037         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
63038         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
63039         * modules/netinet_in (Files): Add lib/netinet_in_.h.
63040         (Depends-on): Add absolute-header.
63041         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
63042         into netinet/in.h.
63043
63044 2007-03-03  Bruno Haible  <bruno@clisp.org>
63045
63046         * lib/sys_select_.h: New file.
63047         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
63048         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
63049         * modules/sys_select (Files): Add lib/sys_select_.h.
63050         (Depends-on): Add absolute-header.
63051         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
63052         into sys/select.h.
63053
63054 2007-03-02  Bruno Haible  <bruno@clisp.org>
63055
63056         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
63057         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
63058         values.
63059         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
63060         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
63061         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
63062         * modules/sys_socket (Depends-on): Add absolute-header.
63063         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
63064         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
63065         (Include): Remove requirement of inclusion of <sys/types.h>.
63066
63067 2007-03-02  Bruno Haible  <bruno@clisp.org>
63068
63069         * lib/byteswap_.h (bswap_32): Fix formula.
63070
63071 2007-03-06  Bruno Haible  <bruno@clisp.org>
63072
63073         * modules/sprintf-posix-tests: New file.
63074         * tests/test-sprintf-posix.c: New file.
63075
63076         * modules/sprintf-posix: New file.
63077         * lib/sprintf.c: New file.
63078         * m4/sprintf-posix.m4: New file.
63079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
63080         REPLACE_SPRINTF.
63081         * lib/stdio_.h (sprintf): New declaration.
63082         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
63083         REPLACE_SPRINTF.
63084
63085 2007-03-06  Bruno Haible  <bruno@clisp.org>
63086
63087         * modules/vsprintf-posix-tests: New file.
63088         * tests/test-vsprintf-posix.c: New file.
63089         * tests/test-sprintf-posix.h: New file.
63090
63091         * modules/vsprintf-posix: New file.
63092         * lib/vsprintf.c: New file.
63093         * m4/vsprintf-posix.m4: New file.
63094         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
63095         REPLACE_VSPRINTF.
63096         * lib/stdio_.h (vsprintf): New declaration.
63097         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
63098         REPLACE_VSPRINTF.
63099
63100 2007-03-06  Bruno Haible  <bruno@clisp.org>
63101
63102         * modules/vsnprintf (Depend-on): Remove minmax.
63103
63104 2007-03-06  Bruno Haible  <bruno@clisp.org>
63105
63106         * modules/snprintf-posix-tests: New file.
63107         * tests/test-snprintf-posix.c: New file.
63108
63109         * modules/snprintf-posix: New file.
63110         * m4/snprintf-posix.m4: New file.
63111         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
63112         gl_FUNC_SNPRINTF.
63113         (gl_FUNC_SNPRINTF): Invoke it.
63114         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
63115         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
63116         is set.
63117         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
63118
63119 2007-03-06  Bruno Haible  <bruno@clisp.org>
63120
63121         * modules/vsnprintf-posix-tests: New file.
63122         * tests/test-vsnprintf-posix.c: New file.
63123         * tests/test-snprintf-posix.h: New file.
63124
63125         * modules/vsnprintf-posix: New file.
63126         * m4/vsnprintf-posix.m4: New file.
63127         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
63128         gl_FUNC_VSNPRINTF.
63129         (gl_FUNC_VSNPRINTF): Invoke it.
63130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
63131         * lib/stdio_.h (vsnprintf): Define as a replacement if
63132         REPLACE_VSNPRINTF is set.
63133         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
63134
63135 2007-03-06  Bruno Haible  <bruno@clisp.org>
63136
63137         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
63138         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
63139
63140 2007-03-06  Bruno Haible  <bruno@clisp.org>
63141
63142         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
63143         (asinl): Declare also if HAVE_DECL_ASINL is set.
63144         (atanl): Declare also if HAVE_DECL_ATANL is set.
63145         (ceill): Declare also if HAVE_DECL_CEILL is set.
63146         (cosl): Declare also if HAVE_DECL_COSL is set.
63147         (expl): Declare also if HAVE_DECL_EXPL is set.
63148         (floorl): Declare also if HAVE_DECL_FLOORL is set.
63149         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
63150         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
63151         (logl): Declare also if HAVE_DECL_LOGL is set.
63152         (sinl): Declare also if HAVE_DECL_SINL is set.
63153         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
63154         (tanl): Declare also if HAVE_DECL_TANL is set.
63155         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
63156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
63157         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
63158         declaration of frexpl, ldexpl.
63159         * modules/printf-frexpl (Depends-on): Add math.
63160         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
63161
63162 2007-03-05  Bruno Haible  <bruno@clisp.org>
63163
63164         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
63165         frexpl and ldexpl are declared.
63166         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
63167
63168 2007-03-05  Bruno Haible  <bruno@clisp.org>
63169
63170         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
63171         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
63172
63173 2007-03-05  Bruno Haible  <bruno@clisp.org>
63174
63175         * lib/stdio_.h: Include <stddef.h>.
63176
63177 2007-03-05  Bruno Haible  <bruno@clisp.org>
63178
63179         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
63180
63181 2007-03-05  Bruno Haible  <bruno@clisp.org>
63182
63183         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
63184         NetBSD 4, from Ralf Wildenhues.
63185
63186 2007-03-04  Bruno Haible  <bruno@clisp.org>
63187
63188         * lib/vasprintf.h: Update #if logic for the case when the functions
63189         exist but are overridden.
63190
63191 2007-03-04  Bruno Haible  <bruno@clisp.org>
63192
63193         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
63194         implementations: glibc-2.4 and MacOS X 10.3.
63195         * tests/test-vasnprintf-posix.c (test_function): Test also the case
63196         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
63197         * tests/test-vasprintf-posix.c (test_function): Likewise.
63198
63199 2007-03-04  Bruno Haible  <bruno@clisp.org>
63200
63201         * modules/vasprintf-posix-tests: New file.
63202         * tests/test-vasprintf-posix.c: New file.
63203
63204         * modules/vasprintf-posix: New file.
63205         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
63206         defined.
63207         * m4/vasprintf-posix.m4: New file.
63208         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
63209         gl_FUNC_VASPRINTF.
63210         (gl_FUNC_VASPRINTF): Invoke it.
63211         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
63212         here.
63213         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
63214
63215 2007-03-04  Bruno Haible  <bruno@clisp.org>
63216
63217         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
63218         REPLACE_GETTIMEOFDAY.
63219         * modules/sys_time (Makefile.am): Likewise.
63220         * m4/sys_time_h.m4: Likewise.
63221         * m4/gettimeofday.m4: Likewise.
63222
63223 2007-03-04  Bruno Haible  <bruno@clisp.org>
63224
63225         * modules/vasnprintf-posix-tests: New file.
63226         * tests/test-vasnprintf-posix.c: New file.
63227
63228         * modules/vasnprintf-posix: New file.
63229         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
63230         printf-frexpl.h.
63231         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
63232         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
63233         REPLACE_VASNPRINTF is defined.
63234         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
63235         gl_FUNC_VASNPRINTF.
63236         (gl_FUNC_VASNPRINTF): Invoke it.
63237         * m4/vasnprintf-posix.m4: New file.
63238         * m4/printf.m4: New file.
63239
63240 2007-03-04  Bruno Haible  <bruno@clisp.org>
63241
63242         Compile progreloc.c only if --enable-relocatable is specified.
63243         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
63244         if --enable-relocatable was specified.
63245         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
63246         lib_SOURCES.
63247
63248 2007-03-04  Jim Meyering  <jim@meyering.net>
63249
63250         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
63251         Use it consistently, rather than enumerating errno constants.
63252
63253 2007-03-04  Bruno Haible  <bruno@clisp.org>
63254
63255         * modules/xvasprintf-tests: New file.
63256         * tests/test-xvasprintf.c: New file.
63257
63258         * modules/vasprintf-tests: New file.
63259         * tests/test-vasprintf.c: New file.
63260
63261         * modules/vasnprintf-tests: New file.
63262         * tests/test-vasnprintf.c: New file.
63263
63264         * modules/vsnprintf-tests: New file.
63265         * tests/test-vsnprintf.c: New file.
63266
63267         * modules/snprintf-tests: New file.
63268         * tests/test-snprintf.c: New file.
63269
63270 2007-03-04  Bruno Haible  <bruno@clisp.org>
63271
63272         Compile relocatable.c only if --enable-relocatable is specified.
63273         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
63274         gl_RELOCATABLE_LIBRARY.
63275         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
63276         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
63277         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
63278         gl_RELOCATABLE_LIBRARY.
63279         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
63280         (Makefile.am): Remove lib_SOURCES.
63281         * modules/relocatable-lib-lgpl (configure.ac): Invoke
63282         gl_RELOCATABLE_LIBRARY.
63283         (Makefile.am): Remove lib_SOURCES.
63284         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
63285         always.
63286         * modules/relocatable-prog-wrapper (configure.ac): Invoke
63287         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
63288
63289 2007-03-04  Bruno Haible  <bruno@clisp.org>
63290
63291         * modules/argmatch-tests: New file.
63292         * tests/test-argmatch.c: New file.
63293
63294         * tests/test-allocsa.c (main): Halve the number of loop runs.
63295
63296         * modules/alloca-opt-tests: New file.
63297         * tests/test-alloca-opt.c: New file.
63298
63299 2007-03-04  Jim Meyering  <jim@meyering.net>
63300
63301         Work around difference between Linux ACLs and Solaris 10 ZFS.
63302         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
63303         for EINVAL.
63304
63305 2007-03-03  Bruno Haible  <bruno@clisp.org>
63306
63307         * modules/relocatable-prog (Depends-on): Add back progreloc's
63308         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
63309
63310 2007-03-03  Bruno Haible  <bruno@clisp.org>
63311
63312         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
63313         * modules/relocatable-lib: New file.
63314
63315 2007-03-03  Bruno Haible  <bruno@clisp.org>
63316
63317         * modules/relocatable-prog: Renamed from modules/relocatable.
63318         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
63319
63320 2007-03-03  Bruno Haible  <bruno@clisp.org>
63321
63322         * modules/relocatable-script (Files): Add doc/relocatable.texi,
63323         m4/relocatable-lib.m4.
63324         (Depends-on): Remove 'relocatable'.
63325         (configure.ac): Add gl_RELOCATABLE_NOP.
63326
63327 2007-03-03  Bruno Haible  <bruno@clisp.org>
63328
63329         * modules/relocatable-prog-wrapper: New file.
63330         * modules/relocatable (Depends-on): Add it. Remove all other
63331         dependencies except progname.
63332         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
63333
63334         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
63335         (gl_FUNC_STRERROR): Nop.
63336         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
63337
63338         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
63339         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
63340
63341         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
63342         (gl_FUNC_READLINK): Update.
63343
63344         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
63345
63346 2007-03-03  Bruno Haible  <bruno@clisp.org>
63347
63348         * lib/xreadlink.c: Include <unistd.h> unconditionally.
63349         * modules/xreadlink (Depends-on): Add unistd.
63350         * modules/xreadlink-with-size (Depends-on): Likewise.
63351
63352 2007-03-03  Bruno Haible  <bruno@clisp.org>
63353
63354         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
63355         extracted from gt_FUNC_SETENV.
63356         (gt_FUNC_SETENV): Remove macro.
63357         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
63358         remove gt_FUNC_SETENV.
63359
63360 2007-03-03  Bruno Haible  <bruno@clisp.org>
63361
63362         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
63363         ENABLE_RELOCATABLE here.
63364         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
63365
63366 2007-03-03  Bruno Haible  <bruno@clisp.org>
63367
63368         * modules/rbtreehash-list-tests (Depends-on): Add progname.
63369         * tests/test-rbtreehash_list.c: Include progname.h.
63370         (main): Call set_program_name.
63371
63372         * modules/rbtree-oset-tests (Depends-on): Add progname.
63373         * tests/test-rbtree_oset.c: Include progname.h.
63374         (main): Call set_program_name.
63375
63376         * modules/rbtree-list-tests (Depends-on): Add progname.
63377         * tests/test-rbtree_list.c: Include progname.h.
63378         (main): Call set_program_name.
63379
63380         * modules/linked-list-tests (Depends-on): Add progname.
63381         * tests/test-linked_list.c: Include progname.h.
63382         (main): Call set_program_name.
63383
63384 2007-03-03  Bruno Haible  <bruno@clisp.org>
63385
63386         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
63387         All uses of __restrict changed to _Restrict_.
63388         * lib/glob_.h (__restrict): Remove macro.
63389
63390 2007-03-02  Bruno Haible  <bruno@clisp.org>
63391
63392         * modules/gettext (configure.ac): Require gettext infrastructure
63393         from version 0.16.1.
63394
63395 2007-03-02  Bruno Haible  <bruno@clisp.org>
63396
63397         * modules/linkedhash-list-tests (Depends-on): Add progname.
63398         * tests/test-linkedhash_list.c: Include progname.h.
63399         (main): Call set_program_name.
63400
63401         * modules/carray-list-tests (Depends-on): Add progname.
63402         * tests/test-carray_list.c: Include progname.h.
63403         (main): Call set_program_name.
63404
63405         * modules/avltreehash-list-tests (Depends-on): Add progname.
63406         * tests/test-avltreehash_list.c: Include progname.h.
63407         (main): Call set_program_name.
63408
63409         * modules/avltree-oset-tests (Depends-on): Add progname.
63410         * tests/test-avltree_oset.c: Include progname.h.
63411         (main): Call set_program_name.
63412
63413         * modules/avltree-list-tests (Depends-on): Add progname.
63414         * tests/test-avltree_list.c: Include progname.h.
63415         (main): Call set_program_name.
63416
63417         * modules/array-oset-tests (Depends-on): Add progname.
63418         * tests/test-array_oset.c: Include progname.h.
63419         (main): Call set_program_name.
63420
63421         * modules/array-list-tests (Depends-on): Add progname.
63422         * tests/test-array_list.c: Include progname.h.
63423         (main): Call set_program_name.
63424
63425         * modules/argp-tests (Depends-on): Add progname.
63426         * tests/test-argp.c: Include argp.h first. Include progname.h.
63427         (main): Call set_program_name.
63428
63429 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
63430
63431         * doc/gnulib-tool.texi (Initial import): Reword description of
63432         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
63433         limited effect even if defined after the first system include.
63434
63435 2007-03-01  Bruno Haible  <bruno@clisp.org>
63436
63437         * build-aux/config.libpath: Update to libtool-1.5.22.
63438         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63439
63440 2007-03-01  Bruno Haible  <bruno@clisp.org>
63441
63442         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
63443         foo_CFLAGS.
63444         Reported by Ralf Wildenhues.
63445
63446 2007-03-01  Bruno Haible  <bruno@clisp.org>
63447
63448         * build-aux/install-reloc: Remove object files left over by some
63449         compilers.
63450         Reported by Ralf Wildenhues.
63451
63452 2007-03-01  Bruno Haible  <bruno@clisp.org>
63453
63454         * build-aux/install-reloc: Break long lines.
63455
63456 2007-03-01  Bruno Haible  <bruno@clisp.org>
63457
63458         * doc/relocatable.texi: Document that it may not work on OpenBSD.
63459         Reported by Ralf Wildenhues.
63460
63461 2007-03-01  Bruno Haible  <bruno@clisp.org>
63462
63463         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
63464         include ordering constraints.
63465
63466 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63467
63468         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
63469         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
63470         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
63471         as another example.
63472         * lib/time_.h: Fix misspelling.
63473         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63474         Require gl_HEADER_TIME_H_DEFAULTS.
63475         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
63476         * m4/time_r.m4 (gl_TIME_R): Likewise.
63477         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
63478
63479 2007-03-01  Bruno Haible  <bruno@clisp.org>
63480
63481         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
63482         * m4/utimens.m4 (gl_UTIMENS): Likewise.
63483
63484 2007-03-01  Jim Meyering  <jim@meyering.net>
63485
63486         * modules/xreadlink (Maintainer): Add my name.
63487         * modules/xreadlink-with-size (Depends-on): Alphabetize.
63488
63489 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
63490             Bruno Haible  <bruno@clisp.org>
63491
63492         * build-aux/install-reloc: Compile also c-ctype.c.
63493         * build-aux/relocatable.sh.in: New file.
63494         * doc/relocatable.texi: New file.
63495         * doc/relocatable-maint.texi: New file.
63496         * doc/gnulib.texi: Include relocatable-maint.texi.
63497         * lib/progreloc.c: Include unistd.h unconditionally.
63498         * lib/relocwrapper.c: Include unistd.h unconditionally.
63499         Include c-ctype.h.
63500         (add_dotbin): Use c_tolower.
63501         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
63502         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
63503         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
63504         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
63505         to m4/relocatable-lib.m4.
63506         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
63507         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
63508         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
63509         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
63510         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
63511         * modules/relocatable: New file.
63512         * modules/relocatable-lib: New file.
63513         * modules/relocatable-script: New file.
63514
63515 2007-02-28  Bruno Haible  <bruno@clisp.org>
63516
63517         Import --enable-relocatable infrastructure.
63518         * build-aux/config.libpath: New file, from GNU gettext.
63519         * build-aux/install-reloc: New file, from GNU gettext.
63520         * build-aux/reloc-ldflags: New file, from GNU gettext.
63521         * lib/relocatable.h: New file, from GNU gettext.
63522         * lib/relocatable.c: New file, from GNU gettext.
63523         * lib/relocwrapper.c: New file, from GNU gettext.
63524         * m4/relocatable.m4: New file, from GNU gettext.
63525
63526 2007-02-28  Bruno Haible  <bruno@clisp.org>
63527
63528         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
63529
63530         * modules/xreadlink: New file, from GNU gettext with modifications.
63531         * lib/xreadlink.c: New file, from GNU gettext.
63532         * lib/xreadlink.h: Add comments.
63533         (xreadlink): New declaration.
63534
63535         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
63536         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
63537         lib/xreadlink-with-size.c.
63538         (configure.ac): Remove gl_XREADLINK invocation.
63539         (Makefile.am): Augment lib_SOURCES.
63540         * m4/xreadlink.m4: Remove file.
63541         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
63542         (xreadlink_with_size): Renamed from xreadink.
63543         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
63544         * modules/canonicalize (Depends-on): Replace xreadlink with
63545         xreadlink-with-size.
63546         * lib/canonicalize.c (canonicalize_filename_mode): Update.
63547
63548 2007-02-25  Jim Meyering  <jim@meyering.net>
63549
63550         * build-aux/announce-gen: When complaining about excess arguments,
63551         list them.
63552
63553 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63554
63555         * README: Document signed integer overflow situation more
63556         accurately.
63557
63558 2007-02-25  Bruno Haible  <bruno@clisp.org>
63559
63560         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
63561         'a' or 'A' conversion.
63562
63563 2007-02-25  Bruno Haible  <bruno@clisp.org>
63564
63565         * modules/filename: Renamed from modules/pathname.
63566         (Files): Replace lib/pathname.h with lib/filename.h. Replace
63567         lib/concatpath.c with lib/concat-filename.c.
63568         (Makefile.am): Update.
63569         (Include): Replace pathname.h with filename.h.
63570         * lib/filename.h: Renamed from lib/pathname.h.
63571         (concatenated_filename): Renamed from concatenated_pathname.
63572         * lib/concat-filename.c: Renamed from lib/concatpath.c.
63573         (concatenated_filename): Renamed from concatenated_pathname.
63574         * lib/findprog.c: Include filename.h instead of pathname.h.
63575         (find_in_path): Update.
63576         * lib/javacomp.c: Include filename.h instead of pathname.h.
63577         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
63578         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
63579         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
63580         is_oldgcj_14_13_usable, is_javac_usable): Update.
63581         * lib/javaexec.c: Include filename.h instead of pathname.h.
63582         (execute_java_class): Update.
63583         * modules/findprog: Update.
63584         * modules/javacomp: Update.
63585         * modules/javaexec: Update.
63586         * MODULES.html.sh (File system functions): Add 'filename', remove
63587         'pathname'.
63588
63589 2007-02-25  Bruno Haible  <bruno@clisp.org>
63590
63591         * modules/printf-frexpl-tests: New file.
63592         * tests/test-printf-frexpl.c: New file.
63593
63594         * modules/printf-frexpl: New file.
63595         * lib/printf-frexpl.h: New file.
63596         * lib/printf-frexpl.c: New file.
63597         * m4/printf-frexpl.m4: New file.
63598
63599 2007-02-25  Bruno Haible  <bruno@clisp.org>
63600
63601         * modules/printf-frexp-tests: New file.
63602         * tests/test-printf-frexp.c: New file.
63603
63604         * modules/printf-frexp: New file.
63605         * lib/printf-frexp.h: New file.
63606         * lib/printf-frexp.c: New file.
63607         * m4/printf-frexp.m4: New file.
63608
63609 2007-02-25  Bruno Haible  <bruno@clisp.org>
63610
63611         Assume automake >= 1.10 for the tests.
63612         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
63613         * modules/arctwo-tests: Likewise.
63614         * modules/argp-tests: Likewise.
63615         * modules/avltree-list-tests: Likewise.
63616         * modules/avltree-oset-tests: Likewise.
63617         * modules/avltreehash-list-tests: Likewise.
63618         * modules/carray-list-tests: Likewise.
63619         * modules/crc-tests: Likewise.
63620         * modules/des-tests: Likewise.
63621         * modules/gc-arcfour-tests: Likewise.
63622         * modules/gc-arctwo-tests: Likewise.
63623         * modules/gc-des-tests: Likewise.
63624         * modules/gc-hmac-md5-tests: Likewise.
63625         * modules/gc-hmac-sha1-tests: Likewise.
63626         * modules/gc-md2-tests: Likewise.
63627         * modules/gc-md4-tests: Likewise.
63628         * modules/gc-md5-tests: Likewise.
63629         * modules/gc-pbkdf2-sha1-tests: Likewise.
63630         * modules/gc-rijndael-tests: Likewise.
63631         * modules/gc-sha1-tests: Likewise.
63632         * modules/gc-tests: Likewise.
63633         * modules/getaddrinfo-tests: Likewise.
63634         * modules/hmac-md5-tests: Likewise.
63635         * modules/hmac-sha1-tests: Likewise.
63636         * modules/linked-list-tests: Likewise.
63637         * modules/linkedhash-list-tests: Likewise.
63638         * modules/lock-tests: Likewise.
63639         * modules/md2-tests: Likewise.
63640         * modules/md4-tests: Likewise.
63641         * modules/md5-tests: Likewise.
63642         * modules/rbtree-list-tests: Likewise.
63643         * modules/rbtree-oset-tests: Likewise.
63644         * modules/rbtreehash-list-tests: Likewise.
63645         * modules/read-file-tests: Likewise.
63646         * modules/rijndael-tests: Likewise.
63647         * modules/stdint-tests: Likewise.
63648         * modules/tls-tests: Likewise.
63649
63650 2007-02-24  Bruno Haible  <bruno@clisp.org>
63651
63652         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63653         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63654         function; instead check whether isnan with a double argument links.
63655         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63656         function; instead check whether isnan with a 'long double' argument
63657         links.
63658         Reported by Eric Blake <ebb9@byu.net>.
63659
63660 2007-02-24  Bruno Haible  <bruno@clisp.org>
63661
63662         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63663         defined.
63664         * lib/isnanl.c: Remove all code. Just include isnan.c.
63665         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63666
63667 2007-02-25  Jim Meyering  <jim@meyering.net>
63668
63669         Avoid conflicting types for 'unsetenv' on FreeBSD.
63670         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63671         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63672         in stdlib.h.
63673
63674 2007-02-24  Bruno Haible  <bruno@clisp.org>
63675
63676         * modules/isnanl-nolibm-tests: New file.
63677         * tests/test-isnanl.c: New file.
63678
63679         * modules/isnanl-nolibm: New file.
63680         * lib/isnanl.h: New file.
63681         * lib/isnanl.c: New file.
63682         * m4/isnanl.m4: New file.
63683
63684 2007-02-24  Bruno Haible  <bruno@clisp.org>
63685
63686         * modules/isnan-nolibm-tests: New file.
63687         * tests/test-isnan.c: New file.
63688
63689         * modules/isnan-nolibm: New file.
63690         * lib/isnan.h: New file.
63691         * lib/isnan.c: New file.
63692         * m4/isnan.m4: New file.
63693
63694 2007-02-24  Bruno Haible  <bruno@clisp.org>
63695
63696         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
63697         assume that an exponent fits in 20 bits.
63698
63699 2007-02-24  Jim Meyering  <jim@meyering.net>
63700
63701         * m4/regex.m4: Update the description of the configure-time option,
63702         --without-included-regex, to state accurately what the defaults are,
63703         and perhaps to give people an idea why using this option is risky.
63704
63705 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63706
63707         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63708         loops on small arguments.  This attempts to avoid the problem
63709         Bruno Haible reported for AIX 4.3.2 in
63710         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63711
63712 2007-02-23  Bruno Haible  <bruno@clisp.org>
63713
63714         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63715         Needed for help2man.
63716
63717 2007-02-23  Karl Berry  <karl@gnu.org>
63718
63719         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63720         exists, foo.h should be cvs-ignored, not committed.
63721
63722 2007-02-23  Eric Blake  <ebb9@byu.net>
63723
63724         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63725         * lib/stat-time.h (includes): Likewise.
63726         * lib/utimecmp.c (includes): Likewise.
63727         * lib/utimens.h (includes): Likewise.
63728         * lib/getdate.y (includes): Also include "timespec.h" for use
63729         internal to the module.
63730         * modules/utimens (Depends-on): Revert yesterday's patch.
63731         * modules/nanosleep (Depends-on): Add missing dependency.
63732
63733 2007-02-22  Bruno Haible  <bruno@clisp.org>
63734
63735         * lib/glob.c: Don't include getlogin_r.h.
63736
63737 2007-02-22  Jim Meyering  <jim@meyering.net>
63738
63739         * modules/utimens (Depends-on): Add timespec, required for
63740         utimens.h's inclusion of timespec.h.
63741
63742 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
63743
63744         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
63745         long unreadable paths in GNU/Linux.  Problem reported by Andreas
63746         Schwab in
63747         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
63748         I'll try to think of a better way to fix the Solaris problem.
63749
63750         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
63751         like glibc; on Solaris 10, it fails with errno == EINVAL.
63752         POSIX says the behavior is unspecified if the first argument is NULL,
63753         so play it safe and never pass NULL to the system getcwd.
63754
63755 2007-02-21  Jim Meyering  <jim@meyering.net>
63756
63757         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63758         of gettimeofday.  It would conflict with the one now always
63759         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63760         an IRIX 6.5 build failure.
63761
63762 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63763
63764         Minor fixups to port to Solaris 10 with Sun C 5.8.
63765         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63766         * modules/getcwd (Depends-on): Add dirfd.
63767         * lib/putenv.c (putenv): #undef it.
63768         (rpl_putenv): New decl.
63769         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63770
63771 2007-02-20  Bruno Haible  <bruno@clisp.org>
63772
63773         * modules/stdio-tests: New file.
63774         * tests/test-stdio.c: New file.
63775
63776         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63777         (Depends-on): Add stdio.
63778         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63779         (Include): Use <stdio.h> instead of vsnprintf.h.
63780         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63781         HAVE_DECL_VSNPRINTF.
63782         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63783
63784         * modules/snprintf (Files): Remove lib/snprintf.h.
63785         (Depends-on): Add stdio.
63786         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63787         (Include): Use <stdio.h> instead of snprintf.h.
63788         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63789         HAVE_DECL_SNPRINTF.
63790         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63791         * lib/getaddrinfo.c: Likewise.
63792
63793         * modules/stdio: New file.
63794         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
63795         * lib/snprintf.h: Remove file.
63796         * lib/vsnprintf.h: Remove file.
63797         * lib/.cppi-disable: Remove snprintf.h.
63798         * m4/stdio_h.m4: New file.
63799         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
63800
63801 2007-02-20  Jim Meyering  <jim@meyering.net>
63802
63803         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
63804         used by e.g., mingw.  From Bruno Haible.
63805
63806 2007-02-19  Bruno Haible  <bruno@clisp.org>
63807
63808         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63809         warnings.
63810         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63811
63812 2007-02-19  Bruno Haible  <bruno@clisp.org>
63813
63814         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63815         from mingw users.
63816
63817 2007-02-19  Bruno Haible  <bruno@clisp.org>
63818
63819         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63820         warnings.
63821         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63822
63823 2007-02-19  Jim Meyering  <jim@meyering.net>
63824
63825         Don't use FD after a successful "fdopendir (fd)".
63826         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63827         Reset it by calling dirfd on the just-obtained DIR*.
63828
63829         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63830         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63831
63832 2007-02-18  Bruno Haible  <bruno@clisp.org>
63833
63834         * lib/readlink.c: Include <unistd.h>.
63835         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63836         HAVE_READLINK.
63837         * modules/readlink (Depends-on): Add unistd.
63838         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63839         (Include): Add <unistd.h>.
63840
63841         * lib/getlogin_r.h: Remove file.
63842         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63843         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63844         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63845         HAVE_DECL_GETLOGIN_R.
63846         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63847         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63848         (Include): Use <unistd.h> instead of getlogin_r.h.
63849
63850         * lib/getcwd.h: Remove file.
63851         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63852         * lib/xgetcwd.c: Likewise.
63853         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63854         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63855         * modules/getcwd (Files): Remove lib/getcwd.h.
63856         (Depends-on): Add unistd.
63857         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63858         (Include): Use <unistd.h> instad of getcwd.h.
63859
63860         * lib/ftruncate.c: Include <unistd.h> first.
63861         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63862         Set HAVE_FTRUNCATE.
63863         * modules/ftruncate (Depends-on): Add unistd.
63864         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63865
63866         * lib/fchdir.c: Include <unistd.h> first.
63867         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63868         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63869         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63870         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63871         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63872
63873         * lib/dup2.c: Include <unistd.h> first.
63874         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63875         HAVE_DUP2.
63876         * modules/dup2 (Depends-on): Add unistd.
63877         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63878
63879         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63880         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63881         REPLACE_CHOWN. Don't define chown as a macro here.
63882         * modules/chown (Depends-on): Add unistd.
63883         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63884
63885         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63886         Add definition for GL_LINK_WARNING.
63887         (chown, dup2): New declarations.
63888         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63889         link warning.
63890         (ftruncate): New declaration.
63891         (getcwd): New declaration, taken from old getcwd.h.
63892         (getlogin_r): New declaration, taken from old getlogin_r.h.
63893         (readlink): New declaration.
63894         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63895         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63896         (gl_PREREQ_UNISTD): Remove macro.
63897         (gl_UNISTD_MODULE_INDICATOR): New macro.
63898         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63899         many new variables. Don't set UNISTD_H.
63900         * modules/unistd (Description): Change.
63901         (Depends-on): Add link-warning.
63902         (configure.ac): Update.
63903         (Makefile.am): Create unistd.h always. Substitute many new variables
63904         into it.
63905
63906 2007-02-18  Bruno Haible  <bruno@clisp.org>
63907
63908         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63909         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63910         HAVE_GETSUBOPT.
63911         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63912         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63913         * lib/getsubopt.h: Remove file.
63914         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63915         (Depends-on): Add stdlib.
63916         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63917         (Includes): Use <stdlib.h> instead of getsubopt.h.
63918         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63919         Set HAVE_GETSUBOPT.
63920         * lib/getsubopt.c: Don't include getsubopt.h.
63921
63922 2007-02-18  Bruno Haible  <bruno@clisp.org>
63923
63924         * modules/fchdir (Depends-on): Add dup2.
63925
63926 2007-02-18  Bruno Haible  <bruno@clisp.org>
63927
63928         * lib/stdlib_.h: Handle glibc's special invocation convention
63929         specially.
63930
63931 2007-02-18  Bruno Haible  <bruno@clisp.org>
63932
63933         * modules/stdlib-tests: New file.
63934         * tests/test-stdlib.c: New file.
63935
63936         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63937         (Depends-on): Add stdlib.
63938         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63939         (Includes): Use <stdlib.h> instead of mkstemp.h.
63940         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63941         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63942         * lib/mkstemp.c: Don't include mkstemp.h.
63943         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63944         * lib/stdlib--.h: Don't include mkstemp.h.
63945
63946         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63947         (Depends-on): Add stdlib.
63948         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63949         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63950         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63951         HAVE_MKDTEMP.
63952         * lib/mkdtemp.c: Don't include mkdtemp.h.
63953         * lib/clean-temp.c: Don't include mkdtemp.h.
63954
63955         * modules/exit (Files): Remove lib/exit.h.
63956         (Depends-on): Add stdlib.
63957         (Makefile.am): Remove lib_SOURCES.
63958         (Include): Use <stdlib.h> instead of exit.h.
63959         * lib/argmatch.c: Don't include exit.h.
63960         * lib/execute.c: Likewise.
63961         * lib/pagealign_alloc.c: Likewise.
63962         * lib/pipe.c: Likewise.
63963         * lib/wait-process.c: Likewise.
63964         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63965         * lib/exitfail.c: Likewise.
63966         * lib/savewd.c: Likewise.
63967         * lib/xsetenv.c: Likewise.
63968
63969         * modules/stdlib: New file.
63970         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63971         and extra comments about mkstemp().
63972         * lib/exit.h: Remove file.
63973         * lib/mkdtemp.h: Remove file.
63974         * lib/mkstemp.h: Remove file.
63975         * m4/stdlib_h.m4: New file.
63976         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63977
63978 2007-02-18  Bruno Haible  <bruno@clisp.org>
63979
63980         * modules/math-tests: New file.
63981         * tests/test-math.c: New file.
63982
63983         * modules/math: New file.
63984         * modules/mathl (Files): Remove lib/mathl.h.
63985         (Depends-on): Add math.
63986         (Makefile.am): Don't mention mathl.h.
63987         (Include): Use <math.h> instead of mathl.h.
63988         * lib/math_.h: New file.
63989         * lib/mathl.h: Remove file.
63990         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63991         mathl.h.
63992         * lib/asinl.c: Likewise.
63993         * lib/atanl.c: Likewise.
63994         * lib/ceill.c: Likewise.
63995         * lib/cosl.c: Likewise.
63996         * lib/expl.c: Likewise.
63997         * lib/floorl.c: Likewise.
63998         * lib/frexpl.c: Likewise.
63999         * lib/ldexpl.c: Likewise.
64000         * lib/logl.c: Likewise.
64001         * lib/sincosl.c: Likewise.
64002         * lib/sinl.c: Likewise.
64003         * lib/sqrtl.c: Likewise.
64004         * lib/tanl.c: Likewise.
64005         * lib/trigl.c: Likewise.
64006         * m4/math_h.m4: New file.
64007         * MODULES.html.sh (Mathematics): Add math.
64008
64009 2007-02-17  Bruno Haible  <bruno@clisp.org>
64010
64011         * modules/wctype-tests: New file.
64012         * tests/test-wctype.c: New file.
64013
64014         * modules/wchar-tests: New file.
64015         * tests/test-wchar.c: New file.
64016
64017         * modules/unistd-tests: New file.
64018         * tests/test-unistd.c: New file.
64019
64020         * modules/time-tests: New file.
64021         * tests/test-time.c: New file.
64022
64023         * modules/sysexits-tests: New file.
64024         * tests/test-sysexits.c: New file.
64025
64026         * modules/sys_time-tests: New file.
64027         * tests/test-sys_time.c: New file.
64028
64029         * modules/sys_stat-tests: New file.
64030         * tests/test-sys_stat.c: New file.
64031
64032         * modules/sys_socket-tests: New file.
64033         * tests/test-sys_socket.c: New file.
64034
64035         * modules/sys_select-tests: New file.
64036         * tests/test-sys_select.c: New file.
64037
64038         * modules/string-tests: New file.
64039         * tests/test-string.c: New file.
64040
64041         * modules/stdbool-tests: New file.
64042         * tests/test-stdbool.c: New file.
64043
64044         * modules/netinet_in-tests: New file.
64045         * tests/test-netinet_in.c: New file.
64046
64047         * modules/inttypes-tests: New file.
64048         * tests/test-inttypes.c: New file.
64049
64050         * modules/fcntl-tests: New file.
64051         * tests/test-fcntl.c: New file.
64052
64053         * modules/byteswap-tests: New file.
64054         * tests/test-byteswap.c: New file.
64055
64056         * modules/arpa_inet-tests: New file.
64057         * tests/test-arpa_inet.c: New file.
64058
64059 2007-02-17  Bruno Haible  <bruno@clisp.org>
64060
64061         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
64062         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
64063         if the corresponding module is not enabled. Emit link warnings if
64064         the function is used nevertheless.
64065         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
64066         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
64067         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
64068         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
64069         * modules/inttypes (Depends-on): Add link-warning.
64070         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64071         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
64072         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
64073         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
64074         * modules/imaxdiv (configure.ac): Likewise.
64075         * modules/strtoimax (configure.ac): Likewise.
64076         * modules/strtoumax (configure.ac): Likewise.
64077
64078 2007-02-17  Bruno Haible  <bruno@clisp.org>
64079
64080         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
64081         gl_STRING_MODULE_INDICATOR_DEFAULTS.
64082         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
64083         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
64084
64085 2007-02-17  Bruno Haible  <bruno@clisp.org>
64086
64087         * modules/link-warning: New file.
64088         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
64089         * lib/string_.h (GL_LINK_WARNING): Remove definition.
64090         * modules/string (Depends-on): Add link-warning.
64091         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64092         string.h.
64093         * MODULES.html.sh (Support for building libraries and executables): Add
64094         link-warning.
64095
64096 2007-02-17  Bruno Haible  <bruno@clisp.org>
64097
64098         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
64099         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
64100         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
64101         long lines.
64102
64103 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
64104             Bruno Haible  <bruno@clisp.org>
64105
64106         * modules/tmpfile: New file.
64107         * lib/tmpfile.c: New file.
64108         * m4/tmpfile.m4: New file.
64109         * MODULES.html.sh (func_all_modules): New section "Input/output".
64110
64111 2007-02-15  Bruno Haible  <bruno@clisp.org>
64112
64113         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
64114         (supports_delete_on_close): New function.
64115         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
64116
64117 2007-02-14  Bruno Haible  <bruno@clisp.org>
64118
64119         * modules/mbspcasecmp-tests: New file.
64120         * tests/test-mbspcasecmp.sh: New file.
64121         * tests/test-mbspcasecmp.c: New file.
64122
64123         New module mbspcasecmp.
64124         * modules/mbspcasecmp: New file.
64125         * lib/mbspcasecmp.c: New file.
64126         * lib/string_.h (strncasecmp): Change warning message.
64127         (mbspcasecmp): New declaration.
64128         * m4/mbspcasecmp.m4: New file.
64129         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64130         GNULIB_MBSPCASECMP.
64131         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
64132         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
64133
64134 2007-02-14  Bruno Haible  <bruno@clisp.org>
64135
64136         * modules/mbsncasecmp-tests: New file.
64137         * tests/test-mbsncasecmp.sh: New file.
64138         * tests/test-mbsncasecmp.c: New file.
64139
64140         New module mbsncasecmp.
64141         * modules/mbsncasecmp: New file.
64142         * lib/mbsncasecmp.c: New file.
64143         * lib/string_.h (mbsncasecmp): New declaration.
64144         * m4/mbsncasecmp.m4: New file.
64145         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64146         GNULIB_MBSNCASECMP.
64147         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
64148         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
64149
64150 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64151
64152         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
64153         Verify that it doesn't overlap with our flags.
64154         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
64155         do not have the desired effect in multibyte locales; instead, use
64156         mbscasecmp.
64157         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
64158         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
64159         we don't require GNU fnmatch ourselves (if our users require it, they
64160         should do so explicitly).
64161
64162         Fix regex code so it doesn't rely on strcasecmp.
64163         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
64164         Otherwise, include gnulib's langinfo.h.
64165         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
64166         undesirable behavior in non-C locales.  Instead, rely on localecharset.
64167         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
64168         * modules/regex (FILES): Remove m4/codeset.m4.
64169         (Depends-on): Add localcharset.  Remove strcase.
64170
64171 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64172
64173         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
64174         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
64175
64176 2007-02-13  Bruno Haible  <bruno@clisp.org>
64177
64178         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
64179         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64180
64181 2007-02-12  Bruno Haible  <bruno@clisp.org>
64182
64183         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64184         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
64185         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
64186         time warning rather than a link error.
64187
64188 2007-02-12  Bruno Haible  <bruno@clisp.org>
64189
64190         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
64191         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64192         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64193
64194 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64195
64196         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
64197         args, not 2.
64198
64199 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64200
64201         New module 'time', so that apps can include <time.h> as per
64202         POSIX and GNU instead of separate include files like time_r.h
64203         and timegm.h.  This implementation tries out a simpler approach
64204         for replacing decls in standard include files (as compared to
64205         the string module), somewhat as an experiment.
64206
64207         * config/srclist.txt: Comment out mktime.c for now.
64208         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
64209         since it doesn't apply any more.  Use generic wording instead.
64210         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
64211         'time'.
64212         * lib/time_.h, m4/time_h.m4, modules/time: New files.
64213         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
64214         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
64215         Don't include <sys/types.h>; no longer needed since we assume C89.
64216         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
64217         * lib/strftime.c: Likewise.
64218         * lib/time_r.c: Likewise.
64219         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
64220         * lib/nanosleep.c: Include <time.h> first, to check interface.
64221         * lib/strptime.c: Likewise.
64222         * lib/time_r.c: Likewise.
64223         * lib/timegm.c: Likewise.
64224         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
64225         needed.
64226         * lib/timegm.c: Don't include timegm.h; no longer needed.
64227         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
64228         time.h now handles any problems in that area.
64229         (struct timespec, nanosleep): Remove; time.h now arranges for these.
64230         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
64231         that time.h defines struct timespec.
64232         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
64233         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
64234         handles that.
64235         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
64236         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
64237         needed.  Set REPLACE_LOCALTIME.
64238         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
64239         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
64240         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
64241         nanosleep; time_h.m4 now does that.  Don't require
64242         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
64243         module handles this now.
64244         * modules/getdate (Depends-on): Remove timespec.  Add time.
64245         * modules/nanosleep (Depends-on): Likewise.
64246         * modules/stat-time (Depends-on): Likewise.
64247         * modules/nanosleep (Include): Include time.h, not timespec.h.
64248         * modules/strptime (Files): Remove lib/strptime.h.
64249         (Depends-on): Add extensions, time.
64250         (Include): Include time.h, not strptime.h.
64251         * modules/time_r (Files): Remove lib/time_r.h.
64252         (Depends-on): Add time.
64253         (Include): Include time.h, not time_r.h.
64254         * modules/timegm: Likewise.
64255         * modules/timespec (Description): Now does timespec-related decls
64256         of our own, instead of struct timespec itself.
64257         (Depends-on): Add time; remove extensions.
64258         (Maintainer): Add self.
64259         * modules/utimecmp (Depends-on): Add time; remove timespec.
64260         * modules/utimens (Depends-on): Likewise.
64261         * modules/xnanosleep (Depends-on): Likewise.
64262
64263 2007-02-11  Bruno Haible  <bruno@clisp.org>
64264
64265         * lib/c-strstr.c: Include allocsa.h.
64266         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64267         * lib/c-strcasestr.c: Include allocsa.h.
64268         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64269         * lib/strcasestr.c: Include allocsa.h.
64270         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64271         * lib/mbsstr.c: Include allocsa.h.
64272         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64273         allocsa/freesa instead of malloc/free.
64274         * lib/mbscasestr.c: Include allocsa.h.
64275         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64276         allocsa/freesa instead of malloc/free.
64277         * modules/c-strstr (Depends-on): Add allocsa.
64278         * modules/c-strcasestr (Depends-on): Likewise.
64279         * modules/strcasestr (Depends-on): Likewise.
64280         * modules/mbsstr (Depends-on): Likewise.
64281         * modules/mbscasestr (Depends-on): Likewise.
64282
64283 2007-02-11  Bruno Haible  <bruno@clisp.org>
64284
64285         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
64286
64287         * modules/mbsspn-tests: New file.
64288         * tests/test-mbsspn.sh: New file.
64289         * tests/test-mbsspn.c: New file.
64290
64291 2007-02-11  Bruno Haible  <bruno@clisp.org>
64292
64293         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
64294
64295         * modules/mbspbrk-tests: New file.
64296         * tests/test-mbspbrk.sh: New file.
64297         * tests/test-mbspbrk.c: New file.
64298
64299 2007-02-11  Bruno Haible  <bruno@clisp.org>
64300
64301         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
64302         unneeded cast.
64303
64304         * modules/mbscspn-tests: New file.
64305         * tests/test-mbscspn.sh: New file.
64306         * tests/test-mbscspn.c: New file.
64307
64308 2007-02-11  Bruno Haible  <bruno@clisp.org>
64309
64310         * modules/mbscasecmp-tests: New file.
64311         * tests/test-mbscasecmp.sh: New file.
64312         * tests/test-mbscasecmp.c: New file.
64313
64314 2007-02-11  Bruno Haible  <bruno@clisp.org>
64315
64316         Ensure O(n) worst-case complexity of mbscasestr.
64317         * lib/mbscasestr.c: Include stdbool.h.
64318         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64319         functions.
64320         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
64321         the bookkeeping indicates that it's worth it.
64322         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
64323
64324         * modules/mbscasestr-tests: New file.
64325         * tests/test-mbscasestr1.c: New file.
64326         * tests/test-mbscasestr2.sh: New file.
64327         * tests/test-mbscasestr2.c: New file.
64328         * tests/test-mbscasestr3.sh: New file.
64329         * tests/test-mbscasestr3.c: New file.
64330         * tests/test-mbscasestr4.sh: New file.
64331         * tests/test-mbscasestr4.c: New file.
64332         * m4/locale-tr.m4: New file.
64333
64334 2007-02-11  Bruno Haible  <bruno@clisp.org>
64335
64336         Ensure O(n) worst-case complexity of mbsstr.
64337         * lib/mbsstr.c: Include stdbool.h.
64338         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64339         functions.
64340         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
64341         bookkeeping indicates that it's worth it.
64342         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
64343
64344         * modules/mbsstr-tests: New file.
64345         * tests/test-mbsstr1.c: New file.
64346         * tests/test-mbsstr2.sh: New file.
64347         * tests/test-mbsstr2.c: New file.
64348         * tests/test-mbsstr3.sh: New file.
64349         * tests/test-mbsstr3.c: New file.
64350         * m4/locale-fr.m4: New file.
64351
64352 2007-02-11  Bruno Haible  <bruno@clisp.org>
64353
64354         * lib/mbsrchr.c (mbsrchr): Fix bug.
64355
64356         * modules/mbsrchr-tests: New file.
64357         * tests/test-mbsrchr.sh: New file.
64358         * tests/test-mbsrchr.c: New file.
64359
64360 2007-02-11  Bruno Haible  <bruno@clisp.org>
64361
64362         * lib/mbschr.c (mbschr): Fix bug.
64363
64364         * modules/mbschr-tests: New file.
64365         * tests/test-mbschr.sh: New file.
64366         * tests/test-mbschr.c: New file.
64367         * m4/locale-zh.m4: New file.
64368
64369 2007-02-11  Bruno Haible  <bruno@clisp.org>
64370
64371         Support for copying multibyte string iterators.
64372         * lib/mbiter.h: Include <string.h>.
64373         (mbiter_multi_copy): New function.
64374         (mbi_copy): New macro.
64375         * lib/mbuiter.h: Include <string.h>.
64376         (mbuiter_multi_copy): New function.
64377         (mbui_copy): New macro.
64378
64379 2007-02-11  Bruno Haible  <bruno@clisp.org>
64380
64381         New module mbslen.
64382         * modules/mbslen: New file.
64383         * lib/mbslen.c: New file.
64384         * lib/string_.h (mbslen): New declaration.
64385         * m4/mbslen.m4: New file.
64386         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64387         GNULIB_MBSLEN.
64388         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
64389         * MODULES.html.sh (Internationalization functions): Add mbslen.
64390
64391 2007-02-11  Bruno Haible  <bruno@clisp.org>
64392
64393         Ensure O(n) worst-case complexity of strcasestr substitute.
64394         * lib/strcasestr.c: Include stdbool.h.
64395         (knuth_morris_pratt): New function.
64396         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64397         bookkeeping indicates that it's worth it.
64398         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
64399
64400         * modules/strcasestr-tests: New file.
64401         * tests/test-strcasestr.c: New file.
64402
64403 2007-02-11  Bruno Haible  <bruno@clisp.org>
64404
64405         Ensure O(n) worst-case complexity of c_strcasestr.
64406         * lib/c-strcasestr.c: Include stdbool.h, string.h.
64407         (knuth_morris_pratt): New function.
64408         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
64409         the bookkeeping indicates that it's worth it.
64410         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
64411
64412         * modules/c-strcasestr-tests: New file.
64413         * tests/test-c-strcasestr.c: New file.
64414
64415 2007-02-11  Bruno Haible  <bruno@clisp.org>
64416
64417         Ensure O(n) worst-case complexity of c_strstr.
64418         * lib/c-strstr.c: Include stdbool.h, string.h.
64419         (knuth_morris_pratt): New function.
64420         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64421         bookkeeping indicates that it's worth it.
64422         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
64423
64424         * lib/c-strstr.c: Complete rewrite for maintainability.
64425
64426         * modules/c-strstr-tests: New file.
64427         * tests/test-c-strstr.c: New file.
64428
64429 2007-02-11  Bruno Haible  <bruno@clisp.org>
64430
64431         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
64432         5.2.1 and earlier, whereby \055 was treated just like the range
64433         delimiter '-'.
64434         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64435
64436 2007-02-08  Bruno Haible  <bruno@clisp.org>
64437
64438         * modules/regex (Depends-on): Add stdbool.
64439         Reported by Dalibor Topic <robilad@kaffe.org>.
64440
64441 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64442
64443         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
64444         Prefer returning from main to exiting from it.
64445         Remove unnecessary parens after sizeof.
64446
64447 2007-02-05  Bruno Haible  <bruno@clisp.org>
64448
64449         New module mbssep.
64450         * modules/mbssep: New file.
64451         * lib/mbssep.c: New file.
64452         * lib/string_.h (strsep): Add a conditional link warning.
64453         (mbssep): New declaration.
64454         * m4/mbssep.m4: New file.
64455         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64456         GNULIB_MBSSEP.
64457         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
64458         * MODULES.html.sh (Internationalization functions): Add mbssep.
64459
64460 2007-02-05  Bruno Haible  <bruno@clisp.org>
64461
64462         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
64463         Optimize search in case of 1 delimiter.
64464
64465 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64466
64467         * lib/acl.h: Include sys/types.h before sys/acl.h.
64468
64469 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64470
64471         Merge upstream fix for glibc bugzilla #3957:
64472
64473         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
64474
64475         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
64476         bit for RE_HAT_LISTS_NOT_NEWLINE.
64477         (build_charclass_op): Remove bogus comment.
64478
64479 2007-02-05  Simon Josefsson  <simon@josefsson.org>
64480
64481         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
64482
64483 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64484
64485         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
64486         * lib/memmem.c [!defined _LIBC]: Include config.h.
64487
64488 2007-02-04  Bruno Haible  <bruno@clisp.org>
64489
64490         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
64491         warning message.
64492
64493 2007-02-04  Bruno Haible  <bruno@clisp.org>
64494
64495         New module mbstok_r.
64496         * modules/mbstok_r: New file.
64497         * lib/mbstok_r.c: New file.
64498         * lib/string_.h (strtok_r): Change argument names to match the
64499         comments. Add a conditional link warning.
64500         (mbstok_r): New declaration.
64501         * m4/mbstok_r.m4: New file.
64502         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64503         GNULIB_MBSTOK_R.
64504         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
64505         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
64506
64507 2007-02-04  Bruno Haible  <bruno@clisp.org>
64508
64509         New module mbsspn.
64510         * modules/mbsspn: New file.
64511         * lib/mbsspn.c: New file.
64512         * lib/string_.h (strspn): Add a conditional link warning.
64513         (mbsspn): New declaration.
64514         * m4/mbsspn.m4: New file.
64515         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64516         GNULIB_MBSSPN.
64517         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
64518         * MODULES.html.sh (Internationalization functions): Add mbsspn.
64519
64520 2007-02-04  Bruno Haible  <bruno@clisp.org>
64521
64522         New module mbspbrk.
64523         * modules/mbspbrk: New file.
64524         * lib/mbspbrk.c: New file.
64525         * lib/string_.h (strpbrk): Add a conditional link warning.
64526         (mbspbrk): New declaration.
64527         * m4/mbspbrk.m4: New file.
64528         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64529         GNULIB_MBSPBRK.
64530         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
64531         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
64532
64533 2007-02-04  Bruno Haible  <bruno@clisp.org>
64534
64535         New module mbscspn.
64536         * modules/mbscspn: New file.
64537         * lib/mbscspn.c: New file.
64538         * lib/string_.h (strcspn): Add a conditional link warning.
64539         (mbscspn): New declaration.
64540         * m4/mbscspn.m4: New file.
64541         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64542         GNULIB_MBSCSPN.
64543         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
64544         * MODULES.html.sh (Internationalization functions): Add mbscspn.
64545
64546 2007-02-04  Bruno Haible  <bruno@clisp.org>
64547
64548         New module mbscasestr, reduced goal of strcasestr.
64549         * modules/mbscasestr: New file.
64550         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
64551         (mbscasestr): Renamed from strcasestr.
64552         * lib/strcasestr.c: Don't include mbuiter.h.
64553         (strcasestr): Remove support for multibyte locales.
64554         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
64555         Change the conditional link warning.
64556         (mbscasestr): New declaration.
64557         * m4/mbscasestr.m4: New file.
64558         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
64559         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
64560         REPLACE_STRCASESTR.
64561         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
64562         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64563         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64564         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
64565         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
64566         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64567         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
64568         (Depends-on): Remove mbuiter.
64569         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
64570
64571 2007-02-04  Bruno Haible  <bruno@clisp.org>
64572
64573         Simplify handling of strncasecmp.
64574         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
64575         the conditional link warning.
64576         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64577         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
64578         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
64579         * modules/strcase (configure.ac): Don't invoke
64580         gl_STRING_MODULE_INDICATOR.
64581         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
64582
64583 2007-02-04  Bruno Haible  <bruno@clisp.org>
64584
64585         New module mbscasecmp, reduced goal of strcasecmp.
64586         * modules/mbscasecmp: New file.
64587         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
64588         (mbscasecmp): Renamed from strcasecmp.
64589         * lib/strcasecmp.c: Don't include mbuiter.h.
64590         (strcasecmp): Remove support for multibyte locales.
64591         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
64592         Change the conditional link warning.
64593         (mbscasecmp): New declaration.
64594         * m4/mbscasecmp.m4: New file.
64595         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
64596         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
64597         REPLACE_STRCASECMP.
64598         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
64599         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64600         GNULIB_MBSCASECMP.
64601         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
64602         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
64603         * modules/strcase (Files): Remove m4/mbrtowc.m4.
64604         (Depends-on): Remove mbuiter.
64605         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
64606
64607 2007-02-04  Bruno Haible  <bruno@clisp.org>
64608
64609         New module mbsstr. Remove module strstr.
64610         * modules/mbsstr: New file.
64611         * modules/strstr: Remove file.
64612         * lib/mbsstr.c: Renamed from lib/strstr.c.
64613         (mbsstr): Renamed from strstr.
64614         * lib/string_.h (strstr): Remove declaration. Change the conditional
64615         link warning.
64616         (mbsstr): New declaration.
64617         * m4/mbsstr.m4: New file.
64618         * m4/strstr.m4: Remove file.
64619         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
64620         REPLACE_STRSTR.
64621         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
64622         Don't initialize GNULIB_STRSTR.
64623         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
64624         substitute GNULIB_STRSTR and REPLACE_STRSTR.
64625         * MODULES.html.sh (Internationalization functions): Add mbsstr.
64626         (Support for systems lacking ANSI C 89): Remove strstr.
64627
64628 2007-02-04  Bruno Haible  <bruno@clisp.org>
64629
64630         New module mbsrchr.
64631         * modules/mbsrchr: New file.
64632         * lib/mbsrchr.c: New file.
64633         * lib/string_.h (strrchr): Add a conditional link warning.
64634         (mbsrchr): New declaration.
64635         * m4/mbsrchr.m4: New file.
64636         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64637         GNULIB_MBSRCHR.
64638         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
64639         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
64640
64641 2007-02-04  Bruno Haible  <bruno@clisp.org>
64642
64643         New module mbschr.
64644         * modules/mbschr: New file.
64645         * lib/mbschr.c: New file.
64646         * lib/string_.h (strchr): Add a conditional link warning.
64647         (mbschr): New declaration.
64648         * m4/mbschr.m4: New file.
64649         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64650         GNULIB_MBSCHR.
64651         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64652         * MODULES.html.sh (Internationalization functions): Add mbschr.
64653
64654 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64655
64656         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64657
64658         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64659
64660 2007-02-04  Bruno Haible  <bruno@clisp.org>
64661
64662         New module description section 'configure.ac-early'.
64663         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64664         (func_get_autoconf_early_snippet): New function.
64665         (func_import, func_create_testdir): Use it. Remove special cases for
64666         modules 'extensions' and 'lock'.
64667         * modules/extensions (configure.ac-early): Require
64668         gl_USE_SYSTEM_EXTENSIONS.
64669         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64670
64671 2007-02-04  Bruno Haible  <bruno@clisp.org>
64672
64673         Make use of gcj-4.3's -fsource and -ftarget option.
64674         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64675         and if so try the options -fsource and -ftarget.
64676         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64677         source_version, ftarget_option, target_version arguments.
64678         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64679         (is_envjavac_oldgcj_14_14_usable): Renamed from
64680         is_envjavac_gcj_14_14_usable.
64681         (is_envjavac_oldgcj_14_13_usable): Renamed from
64682         is_envjavac_gcj_14_13_usable.
64683         (is_gcj_present): Update.
64684         (is_gcj_43, is_gcj43_usable): New functions.
64685         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64686         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64687         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64688         try the options -fsource and -ftarget.
64689
64690 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64691
64692         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
64693         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
64694         larger value.
64695
64696 2007-02-03  Jim Meyering  <jim@meyering.net>
64697
64698         Give tools a better chance to allocate space for very large buffers.
64699         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
64700
64701         Make pwd and readlink work also when run with an unreadable parent dir
64702         on systems with openat support.
64703         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
64704         provided getcwd function, even when we have openat support.
64705         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
64706
64707 2007-02-02  Bruno Haible  <bruno@clisp.org>
64708
64709         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64710         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64711         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64712         portability problems if one of these functions is only used on specific
64713         platforms.
64714         Reported by Paul Eggert.
64715
64716 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64717
64718         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64719         is causing more trouble than it's curing.
64720         * lib/regex_internal.h (__mempcpy): Remove.
64721         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64722         (and make the code a tad smaller to boot).
64723         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64724
64725 2007-02-02  Jim Meyering  <jim@meyering.net>
64726
64727         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64728         section, not in the Makefile.am: one.
64729
64730 2007-02-02  Eric Blake  <ebb9@byu.net>
64731
64732         * lib/strchrnul.c: Always include config.h first.
64733
64734         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
64735         gnulib strstr is not necessary here.
64736
64737 2007-02-02  Simon Josefsson  <simon@josefsson.org>
64738
64739         * m4/socklen.m4: Fix typo.
64740
64741 2007-02-02  Eric Blake  <ebb9@byu.net>
64742
64743         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
64744         * modules/netinet_in (Makefile.am): Likewise.
64745
64746 2007-02-01  Bruno Haible  <bruno@clisp.org>
64747
64748         * lib/string_.h (GL_LINK_WARNING): New macro.
64749         (strcasecmp, strstr, strcasestr): If provided by the system,
64750         conditionally define as a macro that leads to a warning instead of to
64751         an error.
64752         (strncasecmp): Conditionally define as a macro that leads to a warning.
64753
64754 2007-02-01  Karl Berry  <karl@gnu.org>
64755
64756         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
64757
64758 2007-02-01  Bruno Haible  <bruno@clisp.org>
64759
64760         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64761         renamings.
64762
64763 2007-02-01  Eric Blake  <ebb9@byu.net>
64764
64765         * modules/regex (Depends-on): Revert dependence on mempcpy.
64766         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64767         module's definition of mempcpy.
64768         Reported by Paul Eggert.
64769
64770 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64771
64772         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64773         the symbol XYZ before redefining it.  This fixes a problem with
64774         programs that don't use XYZ, when compiled on systems that define
64775         XYZ to something else.
64776
64777 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64778
64779         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64780         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64781         writeable to group or other and (2) is intended to have a special
64782         mode bit that is set or cleared.  In such a case, the directory
64783         should be neither group- nor other-writeable until the special
64784         mode bits are right.
64785
64786 2007-01-31  Eric Blake  <ebb9@byu.net>
64787
64788         * modules/mountlist (Depends-on): Add strstr.
64789
64790         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64791         bug.
64792         * modules/string (Makefile.am): Remove redundant replacement.
64793         * modules/regex (Depends-on): Add mempcpy.
64794
64795 2007-01-31  Bruno Haible  <bruno@clisp.org>
64796
64797         New module description field 'Link'.
64798         * gnulib-tool (func_usage): Document --extract-link-directive.
64799         (sed_extract_prog): Recognize 'Link' directive.
64800         (func_get_link_directive): New function.
64801         (func_import): Show summary of link directives.
64802         Handle --extract-link-directive option.
64803         * modules/acl (Link): New section.
64804         * modules/clock-time (Link): New section.
64805         * modules/euidaccess (Link): New section.
64806         * modules/gettext (Link): New section.
64807         * modules/iconv (Link): New section.
64808         * modules/lock (Link): New section.
64809         * modules/nanosleep (Link): New section.
64810         * modules/readline (Link): New section.
64811
64812 2007-01-27  Bruno Haible  <bruno@clisp.org>
64813
64814         Enforce the use of gnulib modules for unportable <string.h> functions.
64815         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64816         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64817         (gl_HEADER_STRING_H_BODY): Require it.
64818         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64819         the symbol XYZ to one that gives a link error.
64820         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64821         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64822         * modules/mempcpy (configure.ac): Likewise.
64823         * modules/memrchr (configure.ac): Likewise.
64824         * modules/stpcpy (configure.ac): Likewise.
64825         * modules/stpncpy (configure.ac): Likewise.
64826         * modules/strcase (configure.ac): Likewise.
64827         * modules/strcasestr (configure.ac): Likewise.
64828         * modules/strchrnul (configure.ac): Likewise.
64829         * modules/strdup (configure.ac): Likewise.
64830         * modules/strndup (configure.ac): Likewise.
64831         * modules/strnlen (configure.ac): Likewise.
64832         * modules/strpbrk (configure.ac): Likewise.
64833         * modules/strsep (configure.ac): Likewise.
64834         * modules/strstr (configure.ac): Likewise.
64835         * modules/strtok_r (configure.ac): Likewise.
64836
64837 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64838
64839         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64840
64841 2007-01-30  Jim Meyering  <jim@meyering.net>
64842
64843         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64844
64845 2007-01-29  Bruno Haible  <bruno@clisp.org>
64846
64847         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64848         * lib/execute.c: Likewise.
64849         * lib/pipe.c: Likewise.
64850         * lib/printf-args.h: Likewise.
64851         * lib/printf-args.c: Likewise.
64852         * lib/printf-parse.c: Likewise.
64853         * lib/vasnprintf.c: Likewise.
64854
64855 2007-01-29  Eric Blake  <ebb9@byu.net>
64856
64857         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64858         declaration.
64859
64860 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64861
64862         * lib/strptime.h (strptime): Use 'restrict' for args where
64863         POSIX requires this.
64864         * lib/strptime.c (strptime): Likewise.
64865         Change license notice from LGPL to GPL, since gnulib-tool will
64866         change this as needed.
64867         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64868         defined.
64869         Include "strptime.h" first, to check interface.
64870         Do not #undef _LIBC and _NL_CURRENT.
64871         Do not include <stdlib.h>; no longer needed.
64872         Include "time_r.h" and declare ptime_locale_status
64873         only if _LIBC is not defined.
64874         (__P): Remove unused macro.
64875         (match_string): Bring back glibc version, but use it only if _LIBC
64876         is defined.
64877         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64878         Remove unnecessary assertion and abort() call.
64879         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64880         * m4/strptime.m4: Fix serial number comment.
64881         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64882         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64883         (Depends-on): Add time_r.
64884
64885 2007-01-29  Bruno Haible  <bruno@clisp.org>
64886
64887         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64888         strptime.
64889         * modules/strptime (Depends-on): Add stdbool.
64890         * lib/strptime.h: Include <time.h> always. Add comments.
64891
64892 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64893
64894         * modules/strptime: New file.
64895         * lib/strptime.h: New file.
64896         * lib/strptime.c: New file.
64897         * m4/strptime.m4: New file.
64898
64899 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64900
64901         * MODULES.html.sh: New module mpsort.
64902         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64903
64904         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64905         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64906         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64907         All uses changed.
64908         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64909         All uses changed.
64910         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64911         to _Restrict_.
64912         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64913         the parameter matches the prototype.
64914
64915 2007-01-28  Jim Meyering  <jim@meyering.net>
64916
64917         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64918         sys/time.h here, reverting that part of the previous patch:
64919         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64920
64921 2007-01-28  Bruno Haible  <bruno@clisp.org>
64922
64923         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64924         value of $(SYS_TIME_H).
64925         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64926         remove it conditionally, too. [added by Jim Meyering]
64927         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64928         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64929         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64930         GETTIMEOFDAY_REPLACEMENT to 1.
64931
64932 2007-01-28  Bruno Haible  <bruno@clisp.org>
64933
64934         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64935         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64936         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64937         Set UNISTD_H instead of UNISTD_H2.
64938         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64939
64940 2007-01-28  Bruno Haible  <bruno@clisp.org>
64941
64942         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64943         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64944
64945 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64946
64947         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64948         (func_create_testdir): Ensure C locale for `grep' and `tr'
64949         character ranges.
64950         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64951         ACLOCAL_AMFLAGS parsing state machine.
64952
64953 2007-01-27  Bruno Haible  <bruno@clisp.org>
64954
64955         * modules/unistr/base: Update.
64956
64957 2007-01-27  Bruno Haible  <bruno@clisp.org>
64958
64959         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64960         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64961         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64962         modules/unistr/u32-mbtouc.
64963         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64964         * lib/unistr.h: Update.
64965         * lib/linebreak.c: Update.
64966         * modules/unistr/u32-mbtouc: Renamed from
64967         modules/unistr/u32-mbtouc-safe.
64968         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64969         * lib/unistr.h: Update.
64970         * lib/unistr/u32-to-u8.c: Update.
64971         * lib/unistr/u32-to-u16.c: Update.
64972
64973 2007-01-27  Bruno Haible  <bruno@clisp.org>
64974
64975         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64976         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64977         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64978         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64979         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64980         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64981         modules/unistr/u16-mbtouc.
64982         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64983         * lib/unistr.h: Update.
64984         * lib/linebreak.c: Update.
64985         * modules/linebreak: Update.
64986         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64987         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64988         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64989         * modules/unistr/u16-mbtouc: Renamed from
64990         modules/unistr/u16-mbtouc-safe.
64991         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64992         * lib/unistr.h: Update.
64993         * lib/unistr/u16-to-u8.c: Update.
64994         * modules/unistr/u16-to-u8: Update.
64995         * lib/unistr/u16-to-u32.c: Update.
64996         * modules/unistr/u16-to-u32: Update.
64997
64998 2007-01-27  Bruno Haible  <bruno@clisp.org>
64999
65000         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
65001         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
65002         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
65003         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
65004         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
65005         * modules/unistr/u8-mbtouc-unsafe: Renamed from
65006         modules/unistr/u8-mbtouc.
65007         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
65008         * lib/unistr.h: Update.
65009         * lib/striconveh.c: Update.
65010         * modules/striconveh: Update.
65011         * lib/linebreak.c: Update.
65012         * modules/linebreak: Update.
65013         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
65014         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
65015         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
65016         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
65017         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
65018         * lib/unistr.h: Update.
65019         * lib/striconveh.c: Update.
65020         * modules/striconveh: Update.
65021         * lib/unistr/u8-to-u16.c: Update.
65022         * modules/unistr/u8-to-u16: Update.
65023         * lib/unistr/u8-to-u32.c: Update.
65024         * modules/unistr/u8-to-u32: Update.
65025
65026 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65027
65028         Sync from Libtool.
65029         * lib/argz.c: Do not include strings.h nor memory.h, include
65030         string.h unconditionally.  Patch by Simon Josefsson.
65031
65032 2007-01-27  Bruno Haible  <bruno@clisp.org>
65033
65034         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
65035         from gl_HEADER_STRING_H_BODY.
65036         (gl_HEADER_STRING_H_BODY): Require it.
65037         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
65038         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65039         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65040         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65041         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65042         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
65043         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65044         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65045         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
65046         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65047         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65048         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
65049         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65050         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
65051         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65052
65053 2007-01-27  Bruno Haible  <bruno@clisp.org>
65054
65055         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
65056         check_PROGRAMS into noinst_PROGRAMS.
65057         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
65058         check_PROGRAMS in this case.
65059         (func_import): Set for_test to false.
65060         (func_create_testdir): Set for_test to true.
65061
65062 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65063             Bruno Haible  <bruno@clisp.org>
65064
65065         * modules/strcasestr (Files): Remove lib/strcasestr.h.
65066         (Depends-on): Add string.
65067         (Includes): Use <string.h> instead of strcasestr.h.
65068         * modules/string (Makefile.am): Also substitute the value of
65069         REPLACE_STRCASESTR.
65070         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
65071         assume strcasestr is declared in <string.h> not <strings.h>. Also
65072         set REPLACE_STRCASESTR.
65073         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
65074         REPLACE_STRCASESTR.
65075         * lib/strcasestr.h: Remove file.
65076         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
65077         * lib/string_.h (strcasestr): New declaration.
65078
65079 2007-01-27  Bruno Haible  <bruno@clisp.org>
65080
65081         * lib/string_.h: Use 'extern'.
65082
65083 2007-01-27  Jim Meyering  <jim@meyering.net>
65084
65085         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
65086         of set-but-not-used local, "q".
65087
65088         * lib/mempcpy.c: Include <config.h> before <string.h>.
65089         This fixes a compilation error on HP-UX, due to the system's
65090         "restrict"-using mempcpy prototype.
65091
65092 2007-01-26  Bruno Haible  <bruno@clisp.org>
65093
65094         Small optimization.
65095         * lib/javacomp.c: Include c-strstr.h.
65096          (is_envjavac_gcj): Use c_strstr instead of strstr.
65097         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
65098
65099 2007-01-26  Bruno Haible  <bruno@clisp.org>
65100
65101         * MODULES.html.sh (Unicode string functions): Add the new modules.
65102
65103         * modules/uniconv/u32-strconv-to-locale: New file.
65104         * lib/uniconv/u32-strconv-to-locale.c: New file.
65105
65106         * modules/uniconv/u16-strconv-to-locale: New file.
65107         * lib/uniconv/u16-strconv-to-locale.c: New file.
65108
65109         * modules/uniconv/u8-strconv-to-locale: New file.
65110         * lib/uniconv/u8-strconv-to-locale.c: New file.
65111
65112         * modules/uniconv/u32-strconv-from-locale: New file.
65113         * lib/uniconv/u32-strconv-from-locale.c: New file.
65114
65115         * modules/uniconv/u16-strconv-from-locale: New file.
65116         * lib/uniconv/u16-strconv-from-locale.c: New file.
65117
65118         * modules/uniconv/u8-strconv-from-locale: New file.
65119         * lib/uniconv/u8-strconv-from-locale.c: New file.
65120
65121         * modules/uniconv/u32-strconv-to-enc: New file.
65122         * lib/uniconv/u32-strconv-to-enc.c: New file.
65123         * modules/uniconv/u32-strconv-to-enc-tests: New file.
65124         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
65125
65126         * modules/uniconv/u16-strconv-to-enc: New file.
65127         * lib/uniconv/u16-strconv-to-enc.c: New file.
65128         * lib/uniconv/u-strconv-to-enc.h: New file.
65129         * modules/uniconv/u16-strconv-to-enc-tests: New file.
65130         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
65131
65132         * modules/uniconv/u8-strconv-to-enc: New file.
65133         * lib/uniconv/u8-strconv-to-enc.c: New file.
65134         * modules/uniconv/u8-strconv-to-enc-tests: New file.
65135         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
65136
65137         * modules/uniconv/u32-strconv-from-enc: New file.
65138         * lib/uniconv/u32-strconv-from-enc.c: New file.
65139         * modules/uniconv/u32-strconv-from-enc-tests: New file.
65140         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
65141
65142         * modules/uniconv/u16-strconv-from-enc: New file.
65143         * lib/uniconv/u16-strconv-from-enc.c: New file.
65144         * modules/uniconv/u16-strconv-from-enc-tests: New file.
65145         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
65146
65147         * modules/uniconv/u8-strconv-from-enc: New file.
65148         * lib/uniconv/u8-strconv-from-enc.c: New file.
65149         * lib/uniconv/u-strconv-from-enc.h: New file.
65150         * modules/uniconv/u8-strconv-from-enc-tests: New file.
65151         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
65152
65153         * modules/uniconv/u32-conv-from-enc: New file.
65154         * lib/uniconv/u32-conv-from-enc.c: New file.
65155         * modules/uniconv/u32-conv-from-enc-tests: New file.
65156         * tests/uniconv/test-u32-conv-from-enc.c: New file.
65157
65158         * modules/uniconv/u16-conv-from-enc: New file.
65159         * lib/uniconv/u16-conv-from-enc.c: New file.
65160         * lib/uniconv/u-conv-from-enc.h: New file.
65161         * modules/uniconv/u16-conv-from-enc-tests: New file.
65162         * tests/uniconv/test-u16-conv-from-enc.c: New file.
65163
65164         * modules/uniconv/u8-conv-from-enc: New file.
65165         * lib/uniconv/u8-conv-from-enc.c: New file.
65166         * modules/uniconv/u8-conv-from-enc-tests: New file.
65167         * tests/uniconv/test-u8-conv-from-enc.c: New file.
65168
65169         * modules/uniconv/base: New file.
65170         * lib/uniconv.h: New file.
65171
65172 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65173
65174         * doc/gnulib-tool.texi (Initial import): Update to match current
65175         behavior with strdup module.
65176         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
65177         * lib/memmem.h: Remove; all uses removed.  This is now done
65178         by <string.h>.
65179         * lib/mempcpy.h: Likewise.
65180         * lib/memrchr.h: Likewise.
65181         * lib/stpcpy.h: Likewise.
65182         * lib/stpncpy.h: Likewise.
65183         * lib/strcase.h: Likewise.
65184         * lib/strchrnul.h: Likewise.
65185         * lib/strdup.h: Likewise.
65186         * lib/strndup.h: Likewise.
65187         * lib/strnlen.h: Likewise.
65188         * lib/strpbrk.h: Likewise.
65189         * lib/strsep.h: Likewise.
65190         * lib/strstr.h: Likewise.
65191         * lib/strtok_r.h: Likewise.
65192         * lib/string_.h: New file.
65193         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
65194         Rely on <string.h> instead.
65195         * lib/canon-host.c: Likewise.
65196         * lib/chdir-long.c: Likewise.
65197         * lib/concatpath.c: Likewise.
65198         * lib/exclude.c: Likewise.
65199         * lib/fchdir.c: Likewise.
65200         * lib/getaddrinfo.c: Likewise.
65201         * lib/getcwd.c: Likewise.
65202         * lib/getsubopt.c: Likewise.
65203         * lib/glob.c: Likewise.
65204         * lib/hard-locale.c: Likewise.
65205         * lib/iconvme.c: Likewise.
65206         * lib/javacomp.c: Likewise.
65207         * lib/mempcpy.c: Likewise.
65208         * lib/memrchr.c: Likewise.
65209         * lib/regex_internal.h: Likewise.
65210         * lib/stpncpy.c: Likewise.
65211         * lib/strcasecmp.c: Likewise.
65212         * lib/strchrnul.c: Likewise.
65213         * lib/strdup.c: Likewise.
65214         * lib/striconv.c: Likewise.
65215         * lib/striconveh.c: Likewise.
65216         * lib/striconveha.c: Likewise.
65217         * lib/strncasecmp.c: Likewise.
65218         * lib/strndup.c: Likewise.
65219         * lib/strnlen.c: Likewise.
65220         * lib/strsep.c: Likewise.
65221         * lib/strstr.c: Likewise.
65222         * lib/strtok_r.c: Likewise.
65223         * lib/userspec.c: Likewise.
65224         * lib/w32spawn.h: Likewise.
65225         * lib/xstrndup.c: Likewise.
65226         * lib/mountlist.c (strstr): Remove decl.
65227         * m4/string_h.m4: New file.
65228         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
65229         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
65230         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
65231         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
65232         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
65233         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
65234         Set REPLACE_STRCASECMP if necessary.
65235         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
65236         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
65237         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
65238         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
65239         HAVE_DECL_STRDUP if necessary.
65240         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
65241         since gl_FUNC_STRNDUP does that now.
65242         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
65243         Check for decl here...
65244         (gl_PREREQ_STRNLEN): ... not here.
65245         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
65246         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
65247         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
65248         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
65249         necessary.
65250         * modules/string: New file.
65251         * modules/memmem (Files): Remove special-purpose include file.
65252         (Depends-on): Add string.
65253         (Include): Include <string.h>, not the removed file.
65254         * modules/mempcpy: Likewise.
65255         * modules/memrchr: Likewise.
65256         * modules/stpcpy: Likewise.
65257         * modules/stpncpy: Likewise.
65258         * modules/strcase: Likewise.
65259         * modules/strchrnul: Likewise.
65260         * modules/strdup: Likewise.
65261         * modules/strndup: Likewise.
65262         * modules/strnlen: Likewise.
65263         * modules/strpbrk: Likewise.
65264         * modules/strsep: Likewise.
65265         * modules/strstr: Likewise.
65266         * modules/strtok_r: Likewise.
65267         * tests/test-dirname.c: Don't include "strdup.h", since
65268         <string.h> now suffices.
65269         * tests/test-memmem.c: Don't include "memmem.h", since
65270         <string.h> now suffices.
65271
65272 2007-01-25  Bruno Haible  <bruno@clisp.org>
65273
65274         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
65275         *resultp is 0.
65276
65277         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
65278         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
65279         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
65280         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
65281
65282         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
65283         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
65284         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
65285         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
65286         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
65287         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
65288
65289 2007-01-24  Bruno Haible  <bruno@clisp.org>
65290
65291         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
65292         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
65293         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
65294         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
65295         gl_FUNC_FTS_CORE.
65296         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
65297         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
65298         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65299         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
65300         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
65301         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
65302         gl_FUNC_FCHOWNAT.
65303         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
65304         gl_FUNC_STRFTIME.
65305         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
65306         Reported by Ralf Wildenhues.
65307
65308 2007-01-24  Bruno Haible  <bruno@clisp.org>
65309
65310         Drop AC_REQUIRE calls that are redundant with the module dependencies.
65311         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
65312         gl_GETADDRINFO.
65313         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
65314         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
65315         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
65316
65317 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
65318
65319         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
65320         Don't use 'exit'; just return from 'main'.
65321         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
65322
65323         * lib/fnmatch_.h: Readjust white space and comments to match
65324         glibc, to avoid spurious diffs.
65325
65326 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65327
65328         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
65329         2004-12-01 change by Jakub Jelinek, since this code won't compile
65330         if !LIBC.  Problem reported by Bob Proulx.
65331
65332 2007-01-23  Bruno Haible  <bruno@clisp.org>
65333
65334         * lib/striconveh.c: Include c-strcaseeq.h.
65335         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
65336         * modules/striconveh (Depends-on): Add c-strcaseeq.
65337
65338 2007-01-23  Bruno Haible  <bruno@clisp.org>
65339
65340         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
65341
65342         * modules/c-strcaseeq: New file.
65343         * lib/c-strcaseeq.h: New file.
65344
65345         * modules/streq: New file.
65346         * lib/streq.h: New file.
65347
65348 2007-01-23  Bruno Haible  <bruno@clisp.org>
65349
65350         * modules/striconveha-tests: New file.
65351         * tests/test-striconveha.c: New file.
65352
65353         * lib/striconveha.h: Include <stdbool.h>.
65354         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
65355         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
65356         (mem_iconveha_notranslit): Renamed from mem_iconveha.
65357         (mem_iconveha): New function.
65358         (str_iconveha_notranslit): Renamed from str_iconveha.
65359         (str_iconveha): New function.
65360         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
65361         c-strcase.
65362
65363 2007-01-23  Bruno Haible  <bruno@clisp.org>
65364
65365         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
65366         encodings without forgiving before trying any encoding with handler.
65367         (str_iconveha): Try all encodings without forgiving before trying any
65368         encoding with handler.
65369
65370 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65371
65372         Import the following changes from libc.
65373
65374         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65375
65376         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
65377
65378         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65379
65380         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
65381         normal_bracket label.
65382
65383         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
65384
65385         [BZ #361]
65386         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
65387         to normal_bracket after fetching the next character.
65388
65389 2007-01-22  Bruno Haible  <bruno@clisp.org>
65390
65391         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
65392         argument.
65393         * lib/striconveh.c (iconv_carefully_1): New function.
65394         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
65395         argument.
65396         (str_cd_iconveh): Update.
65397         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
65398         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
65399         * tests/test-striconveh.c (MAGIC): New macro.
65400         (new_offsets): New function.
65401         (main): Test call with and without offsets.
65402
65403 2007-01-22  Bruno Haible  <bruno@clisp.org>
65404
65405         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
65406         * modules/sys_select (Makefile.am): Likewise.
65407         * modules/sys_socket (Makefile.am): Likewise.
65408         * modules/sys_time (Makefile.am): Likewise.
65409
65410 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65411
65412         * modules/gettimeofday (License): Change from GPL to LGPL, since
65413         gettimeofday is a library function.
65414
65415 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65416
65417         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
65418
65419 2007-01-21  Bruno Haible  <bruno@clisp.org>
65420
65421         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
65422
65423 2007-01-21  Bruno Haible  <bruno@clisp.org>
65424
65425         * modules/striconveha: New file.
65426         * lib/striconveha.h: New file.
65427         * lib/striconveha.c: New file.
65428         * MODULES.html.sh (Internationalization functions): Add striconveha.
65429         * lib/striconv.c (str_iconv): Optimize the case of an empty input
65430         string.
65431         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
65432
65433 2007-01-21  Bruno Haible  <bruno@clisp.org>
65434
65435         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
65436         * lib/striconveh.c (str_iconveh): Likewise.
65437
65438 2007-01-21  Bruno Haible  <bruno@clisp.org>
65439
65440         * lib/striconveh.h (mem_iconveh): New declaration.
65441         * lib/striconveh.c (mem_iconveh): New function.
65442         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
65443
65444 2007-01-21  Bruno Haible  <bruno@clisp.org>
65445
65446         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
65447
65448         * lib/striconveh.h (mem_cd_iconveh): Change specification.
65449         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
65450         original result buffer.
65451         (str_cd_iconveh): Update.
65452         * tests/test-striconveh.c (main): Update.
65453
65454         * lib/striconv.h (mem_cd_iconv): Change specification.
65455         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
65456         result buffer.
65457         (str_cd_iconv): Update.
65458         * tests/test-striconv.c (main): Update.
65459
65460 2007-01-21  Bruno Haible  <bruno@clisp.org>
65461
65462         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
65463
65464 2007-01-20  Jim Meyering  <jim@meyering.net>
65465
65466         * lib/userspec.c (parse_with_separator): If a user or group string
65467         starts with "+", skip the corresponding name-to-ID look-up, since
65468         such a look-up must fail: user and group names may not include "+".
65469
65470 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65471
65472         * lib/poll.c: Include sys/time.h and time.h unconditionally,
65473         since we now assume the sys_time module.
65474         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
65475         check for sys/time.h; no longer needed.
65476         * modules/poll (Depends-on): Depend on sys_time.
65477
65478 2007-01-18  Bruno Haible  <bruno@clisp.org>
65479
65480         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
65481         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65482
65483         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
65484         gettimeofday.
65485
65486         * tests/test-gettimeofday.c: Include <time.h>.
65487         (dummy): Remove variable.
65488
65489         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
65490         gl_HEADER_SYS_TIME_H.
65491         (gl_HEADER_SYS_TIME_H): New macro.
65492
65493         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
65494         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65495         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
65496         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
65497         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65498         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
65499         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
65500         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65501         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
65502         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
65503         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65504
65505         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
65506         last change; it caused a compilation error when cross-compiling to
65507         Cygwin.
65508
65509 2007-01-18  Jim Meyering  <jim@meyering.net>
65510
65511         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
65512         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
65513         than the race-prone "test -d sys || mkdir sys".
65514         (configure.ac): Use AC_PROG_MKDIR_P.
65515         * modules/sys_select: Likewise.
65516         * modules/sys_socket: Likewise.
65517         * modules/sys_time: Likewise.
65518
65519 2007-01-18  Eric Blake  <ebb9@byu.net>
65520
65521         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
65522         replace gettimeofday.
65523         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
65524         name, to avoid infinite recursion.
65525
65526 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
65527
65528         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
65529         module sys_time.
65530         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
65531         assume timespec.h defines struct timeval.
65532         * lib/settime.c: Likewise.
65533         * lib/utimens.c: Likewise.
65534         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
65535         since we now assume the gettimeofday module.
65536         * lib/tempname.c (__gen_tempname): Likewise.
65537         * lib/gettimeofday.h: Remove.
65538         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
65539         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
65540         Include <time.h>, for 'time()'.
65541         (localtime_buffer_addr): Also use this workaround if
65542         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
65543         to simplify the uses.  All uses changed.
65544         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
65545         that #undef is inside {}, and 'const' follows type name consistently.
65546         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
65547         (gettimeofday): Do not use the maximum possible value for
65548         tv->tv_usec, since that might break usages other than ls.c.
65549         Instead, we'll leave ls.c alone.  This undoes today's patch
65550         by Bruno.  Add a compile-time warning for 1s-clock resolution;
65551         we've never observed the problem but might as well keep the
65552         canary.
65553         * lib/nanosleep.c: Include timespec.h first, for interface check.
65554         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
65555         now assume the sys_time module.
65556         * lib/tempname.c: Likewise.
65557         * lib/timespec.h: Likewise.
65558         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
65559         needed.
65560         * lib/strftime.c: Likewise.
65561         * lib/timespec.h: Likewise.
65562         * lib/posixtm.c: Include posixtm.h first, for interface check.
65563         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
65564         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
65565         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
65566         * lib/sys_time_.h: New file.
65567         * lib/timespec.h (struct timespec): Use long int, not long.
65568         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65569         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
65570         Remove obsolescent call to AC_HEADER_TIME.
65571         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
65572         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65573         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65574         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
65575         Likewise.
65576         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
65577         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
65578         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
65579         into the sys_time module.  Check for gettimeofday just once.
65580         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
65581         for gettimeofday signature to just check the signature.  Merely
65582         compile it, since linking doesn't test signature.  Improve test for
65583         whether gettimeofday.o is actually needed.
65584         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
65585         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
65586         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
65587         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65588         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
65589         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
65590         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
65591         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
65592         than worrying about sys/time.h.
65593         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65594         Don't bother worrying about TIME_WITH_SYS_TIME.
65595         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65596         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
65597         * m4/sys_time_h.m4: New file.
65598         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
65599         Don't include sys/time.h.  Return from main rather than exiting.
65600         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
65601         all uses changed.
65602         * modules/gethrxtime (Depends-on): Add sys_time.
65603         * modules/gettime (Depends-on): Likewise.
65604         * modules/gettimeofday (Depends-on): Likewise.
65605         * modules/nanosleep (Depends-on): Likewise.
65606         * modules/settime (Depends-on): Likewise.
65607         * modules/tempname (Depends-on): Likewise.
65608         * modules/utimens (Depends-on): Likewise.
65609         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
65610         (Include): Change back to <sys/time.h>.
65611         (Maintainer): Add self.
65612         * modules/sys_time: New file.
65613         * modules/tempname (Depends-on): Add gettimeofday.
65614         * tests/test-gettimeofday.c: Include <sys/time.h>
65615         rather than gettimeofday.h.
65616
65617 2007-01-17  Bruno Haible  <bruno@clisp.org>
65618
65619         * gnulib-tool (func_get_license): Revert last patch. Instead, let
65620         the license default to GPL.
65621         (func_create_testdir): Don't complain if a module is LGPL and its
65622         tests module depends on GPLed modules.
65623
65624 2007-01-17  Bruno Haible  <bruno@clisp.org>
65625
65626         * lib/gettimeofday.c (gettimeofday): Add code for the case
65627         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
65628         maximum possible value for tv->tv_usec, rather than the minimum one.
65629
65630 2005-10-08  Martin Lambers  <marlam@marlam.de>
65631 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65632 2007-01-16  Bruno Haible  <bruno@clisp.org>
65633
65634         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
65635         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65636         gl_FUNC_GETTIMEOFDAY.
65637         (Include): Add gettimeofday.h.
65638         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
65639         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
65640         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
65641         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
65642         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65643         * lib/gettimeofday.h: New file.
65644         * lib/gettimeofday.c: Include <sys/timeb.h>.
65645         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65646         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65647         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65648         fall back on time().
65649
65650         * tests/test-gettimeofday.c: New file.
65651         * modules/gettimeofday-tests: New file.
65652
65653 2007-01-16  Eric Blake  <ebb9@byu.net>
65654
65655         * modules/fnmatch (Depends-on): Depend on wchar.
65656         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65657         * m4/fnmatch.m4: Likewise.
65658         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65659         * m4/mbchar.m4: Likewise.
65660         * modules/mbswidth (Depends-on): Depend on wchar.
65661         * lib/mbswidth.c: Assume <wchar.h>.
65662         * m4/mbswidth.m4: Likewise.
65663         * modules/quotearg (Depends-on): Depend on wchar.
65664         * lib/quotearg.c: Assume <wchar.h>.
65665         * m4/quotearg.m4: Likewise.
65666         * modules/regex (Depends-on): Depend on wchar.
65667         * lib/regex_internal.h: Assume <wchar.h>.
65668         * m4/regex.m4: Likewise.
65669         * modules/stdint (Depends-on): Depend on wchar.
65670         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65671         * m4/stdint.m4: Likewise.
65672         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65673         * modules/strftime (Depends-on): Depend on wchar.
65674         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65675         * modules/strtol (Depends-on): Depend on wchar.
65676         * lib/strtol.c: Assume <wchar.h>.
65677         * modules/wcwidth (Depends-on): Depend on wchar.
65678         * lib/wcwidth.h: Assume <wchar.h>.
65679         * m4/wcwidth.m4: Likewise.
65680
65681 2007-01-16  Bruno Haible  <bruno@clisp.org>
65682
65683         * modules/csharpexec-script: New, created from...
65684         * modules/csharpexec: ... this.
65685
65686 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65687
65688         * modules/javaexec-script: New, created from...
65689         * modules/javaexec: ... this.
65690
65691 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65692
65693         * modules/poll (Dependencies): Add sys_select.
65694
65695 2007-01-15  Jim Meyering  <jim@meyering.net>
65696
65697         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
65698         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
65699         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
65700         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
65701
65702 2007-01-15  Bruno Haible  <bruno@clisp.org>
65703
65704         * modules/striconveh: New file.
65705         * lib/striconveh.h: New file.
65706         * lib/striconveh.c: New file.
65707         * MODULES.html.sh (Internationalization functions): Add striconveh.
65708
65709         * modules/striconveh-tests: New file.
65710         * tests/test-striconveh.c: New file.
65711
65712 2007-01-15  Bruno Haible  <bruno@clisp.org>
65713
65714         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65715         not from GNU libiconv or GNU libc.
65716
65717 2007-01-15  Bruno Haible  <bruno@clisp.org>
65718
65719         * doc/gnulib-intro.texi (Copyright): Explain the different license
65720         terms for module descriptions, autoconf macros, tests, documentation.
65721
65722 2007-01-14  Bruno Haible  <bruno@clisp.org>
65723
65724         * modules/striconv-tests: New file.
65725         * tests/test-striconv.c: New file.
65726
65727 2007-01-14  Bruno Haible  <bruno@clisp.org>
65728
65729         * modules/iconv-tests: New file.
65730         * tests/test-iconv.c: New file.
65731
65732 2007-01-14  Bruno Haible  <bruno@clisp.org>
65733
65734         * gnulib-tool (func_get_license): For test modules, use the license of
65735         the main module.
65736
65737 2007-01-14  Bruno Haible  <bruno@clisp.org>
65738
65739         * modules/iconv (Include): Clarify that <iconv.h> can only be included
65740         if iconv is found to exist.
65741
65742 2007-01-14  Bruno Haible  <bruno@clisp.org>
65743
65744         * modules/c-ctype-tests: New file.
65745         * tests/test-c-ctype.c: New file.
65746
65747 2007-01-14  Bruno Haible  <bruno@clisp.org>
65748
65749         * modules/binary-io-tests: New file.
65750         * tests/test-binary-io.sh: New file.
65751         * tests/test-binary-io.c: New file.
65752
65753 2007-01-14  Bruno Haible  <bruno@clisp.org>
65754
65755         * modules/array-oset-tests: New file.
65756         * tests/test-array_oset.c: New file.
65757
65758 2007-01-14  Bruno Haible  <bruno@clisp.org>
65759
65760         * modules/array-list-tests: New file.
65761         * tests/test-array_list.c: New file.
65762
65763 2007-01-14  Bruno Haible  <bruno@clisp.org>
65764
65765         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65766         and make.
65767         Reported by Simon Josefsson in
65768         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65769
65770 2007-01-14  Bruno Haible  <bruno@clisp.org>
65771
65772         * modules/allocsa-tests: New file.
65773         * tests/test-allocsa.c: New file.
65774
65775 2007-01-14  Bruno Haible  <bruno@clisp.org>
65776
65777         * modules/fchdir (Depends-on): Add absolute-header.
65778         * modules/unistd (Depends-on): Likewise.
65779
65780 2006-12-30  Bruno Haible  <bruno@clisp.org>
65781
65782         * modules/fchdir: New file.
65783         * modules/unistd (Files): Add lib/unistd_.h.
65784         (Makefile.am): Generate unistd.h from unistd_.h.
65785         * lib/fchdir.c: New file.
65786         * lib/dirent_.h: New file.
65787         * lib/unistd_.h: New file.
65788         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65789         * m4/fchdir.m4: New file.
65790         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65791         (gl_HEADER_UNISTD): Invoke it.
65792         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65793         function.
65794         * lib/backupfile.c (opendir, closedir): Undefine.
65795         * lib/chown.c (open, close): Undefine.
65796         * lib/clean-temp.c (open, close): Undefine.
65797         * lib/copy-file.c (open, close): Undefine.
65798         * lib/execute.c (open, close): Undefine.
65799         * lib/fsusage.c (open, close): Undefine.
65800         * lib/gc-gnulib.c (open, close): Undefine.
65801         * lib/getcwd.c (opendir, closedir): Undefine.
65802         * lib/glob.c (opendir, closedir): Undefine.
65803         * lib/javacomp.c (open, close): Undefine.
65804         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
65805         * lib/openat-proc.c (open, close): Undefine.
65806         * lib/pagealign_alloc.c (open, close): Undefine.
65807         * lib/pipe.c (open, close): Undefine.
65808         * lib/progreloc.c (open, close): Undefine.
65809         * lib/savedir.c (opendir, closedir): Undefine.
65810         * lib/utime.c (open, close): Undefine.
65811         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65812
65813 2007-01-10  Bruno Haible  <bruno@clisp.org>
65814
65815         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65816
65817 2007-01-12  Eric Blake  <ebb9@byu.net>
65818
65819         Provide a robust <wchar.h>.  Further simplifications are now
65820         possible in other modules, but not included here.
65821         * modules/wchar: New module.
65822         * m4/wchar.m4: New file.
65823         * lib/wchar_.h: Likewise.
65824         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65825         of the new module.
65826         * MODULES.html.sh (Extended multibyte and wide character utilities):
65827         New section.
65828
65829 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65830
65831         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65832         to a reasonable default for memory allocation.
65833         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65834         file system that reports garbage st_size values for symlinks.
65835         Problem reported by Liyang Hu.
65836
65837 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65838
65839         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65840         Emacs .#* auto-save files).
65841
65842 2007-01-11  Bruno Haible  <bruno@clisp.org>
65843
65844         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65845         directory.
65846
65847 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65848
65849         Use @...@ consistently in lib/wctype_.h.
65850         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65851         on it being set to 1 or 0.
65852         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65853         go back to AC_SUBSTing it.
65854         * modules/wctype (Makefile.am): Undo previous change.
65855
65856 2007-01-10  Eric Blake  <ebb9@byu.net>
65857
65858         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65859         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65860         * modules/wctype (Makefile.am): Likewise.
65861         Reported by Chris McGuire.
65862
65863 2007-01-10  Jim Meyering  <jim@meyering.net>
65864
65865         fts.c: a small readability/maintainability improvement
65866         * lib/fts.c (fts_read): Make this code slightly more readable and
65867         maintainable by hoisting the "sp->fts_cur = p" assignments to
65868         immediately follow the statements that set P.  Derived from
65869         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65870
65871 2007-01-10  Eric Blake  <ebb9@byu.net>
65872
65873         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65874         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65875         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65876         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65877         Reported by Chris McGuire.
65878
65879 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65880
65881         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65882         in sed script.
65883
65884 2007-01-09  Bruno Haible  <bruno@clisp.org>
65885
65886         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65887         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65888         variables.
65889         (func_module): Use them.
65890
65891 2007-01-09  Bruno Haible  <bruno@clisp.org>
65892
65893         * modules/unistr/base: New file.
65894         * lib/unistr.h: New file.
65895
65896         * modules/unistr/u8-to-u16: New file.
65897         * lib/unistr/u8-to-u16.c: New file.
65898
65899         * modules/unistr/u8-to-u32: New file.
65900         * lib/unistr/u8-to-u32.c: New file.
65901
65902         * modules/unistr/u16-to-u8: New file.
65903         * lib/unistr/u16-to-u8.c: New file.
65904
65905         * modules/unistr/u16-to-u32: New file.
65906         * lib/unistr/u16-to-u32.c: New file.
65907
65908         * modules/unistr/u32-to-u8: New file.
65909         * lib/unistr/u32-to-u8.c: New file.
65910
65911         * modules/unistr/u32-to-u16: New file.
65912         * lib/unistr/u32-to-u16.c: New file.
65913
65914         * modules/unistr/u8-check: New file.
65915         * modules/unistr/u16-check: New file.
65916         * modules/unistr/u32-check: New file.
65917         * lib/unistr/u8-check.c: New file.
65918         * lib/unistr/u16-check.c: New file.
65919         * lib/unistr/u32-check.c: New file.
65920
65921         * modules/unistr/u8-chr: New file.
65922         * modules/unistr/u16-chr: New file.
65923         * modules/unistr/u32-chr: New file.
65924         * lib/unistr/u8-chr.c: New file.
65925         * lib/unistr/u16-chr.c: New file.
65926         * lib/unistr/u32-chr.c: New file.
65927
65928         * modules/unistr/u8-cmp: New file.
65929         * modules/unistr/u16-cmp: New file.
65930         * modules/unistr/u32-cmp: New file.
65931         * lib/unistr/u8-cmp.c: New file.
65932         * lib/unistr/u16-cmp.c: New file.
65933         * lib/unistr/u32-cmp.c: New file.
65934
65935         * modules/unistr/u8-cpy: New file.
65936         * modules/unistr/u16-cpy: New file.
65937         * modules/unistr/u32-cpy: New file.
65938         * lib/unistr/u8-cpy.c: New file.
65939         * lib/unistr/u16-cpy.c: New file.
65940         * lib/unistr/u32-cpy.c: New file.
65941         * lib/unistr/u-cpy.h: New file.
65942
65943         * modules/unistr/u8-cpy-alloc: New file.
65944         * modules/unistr/u16-cpy-alloc: New file.
65945         * modules/unistr/u32-cpy-alloc: New file.
65946         * lib/unistr/u8-cpy-alloc.c: New file.
65947         * lib/unistr/u16-cpy-alloc.c: New file.
65948         * lib/unistr/u32-cpy-alloc.c: New file.
65949         * lib/unistr/u-cpy-alloc.h: New file.
65950
65951         * modules/unistr/u8-endswith: New file.
65952         * modules/unistr/u16-endswith: New file.
65953         * modules/unistr/u32-endswith: New file.
65954         * lib/unistr/u8-endswith.c: New file.
65955         * lib/unistr/u16-endswith.c: New file.
65956         * lib/unistr/u32-endswith.c: New file.
65957         * lib/unistr/u-endswith.h: New file.
65958
65959         * modules/unistr/u8-mblen: New file.
65960         * modules/unistr/u16-mblen: New file.
65961         * modules/unistr/u32-mblen: New file.
65962         * lib/unistr/u8-mblen.c: New file.
65963         * lib/unistr/u16-mblen.c: New file.
65964         * lib/unistr/u32-mblen.c: New file.
65965
65966         * modules/unistr/u8-mbtouc: New file.
65967         * modules/unistr/u16-mbtouc: New file.
65968         * modules/unistr/u32-mbtouc: New file.
65969         * lib/unistr/u8-mbtouc.c: New file.
65970         * lib/unistr/u16-mbtouc.c: New file.
65971         * lib/unistr/u32-mbtouc.c: New file.
65972
65973         * modules/unistr/u8-mbtouc-safe: New file.
65974         * modules/unistr/u16-mbtouc-safe: New file.
65975         * modules/unistr/u32-mbtouc-safe: New file.
65976         * lib/unistr/u8-mbtouc-safe.c: New file.
65977         * lib/unistr/u16-mbtouc-safe.c: New file.
65978         * lib/unistr/u32-mbtouc-safe.c: New file.
65979
65980         * modules/unistr/u8-move: New file.
65981         * modules/unistr/u16-move: New file.
65982         * modules/unistr/u32-move: New file.
65983         * lib/unistr/u8-move.c: New file.
65984         * lib/unistr/u16-move.c: New file.
65985         * lib/unistr/u32-move.c: New file.
65986         * lib/unistr/u-move.h: New file.
65987
65988         * modules/unistr/u8-next: New file.
65989         * modules/unistr/u16-next: New file.
65990         * modules/unistr/u32-next: New file.
65991         * lib/unistr/u8-next.c: New file.
65992         * lib/unistr/u16-next.c: New file.
65993         * lib/unistr/u32-next.c: New file.
65994
65995         * modules/unistr/u8-prev: New file.
65996         * modules/unistr/u16-prev: New file.
65997         * modules/unistr/u32-prev: New file.
65998         * lib/unistr/u8-prev.c: New file.
65999         * lib/unistr/u16-prev.c: New file.
66000         * lib/unistr/u32-prev.c: New file.
66001
66002         * modules/unistr/u8-set: New file.
66003         * modules/unistr/u16-set: New file.
66004         * modules/unistr/u32-set: New file.
66005         * lib/unistr/u8-set.c: New file.
66006         * lib/unistr/u16-set.c: New file.
66007         * lib/unistr/u32-set.c: New file.
66008         * lib/unistr/u-set.h: New file.
66009
66010         * modules/unistr/u8-startswith: New file.
66011         * modules/unistr/u16-startswith: New file.
66012         * modules/unistr/u32-startswith: New file.
66013         * lib/unistr/u8-startswith.c: New file.
66014         * lib/unistr/u16-startswith.c: New file.
66015         * lib/unistr/u32-startswith.c: New file.
66016         * lib/unistr/u-startswith.h: New file.
66017
66018         * modules/unistr/u8-stpcpy: New file.
66019         * modules/unistr/u16-stpcpy: New file.
66020         * modules/unistr/u32-stpcpy: New file.
66021         * lib/unistr/u8-stpcpy.c: New file.
66022         * lib/unistr/u16-stpcpy.c: New file.
66023         * lib/unistr/u32-stpcpy.c: New file.
66024         * lib/unistr/u-stpcpy.h: New file.
66025
66026         * modules/unistr/u8-stpncpy: New file.
66027         * modules/unistr/u16-stpncpy: New file.
66028         * modules/unistr/u32-stpncpy: New file.
66029         * lib/unistr/u8-stpncpy.c: New file.
66030         * lib/unistr/u16-stpncpy.c: New file.
66031         * lib/unistr/u32-stpncpy.c: New file.
66032         * lib/unistr/u-stpncpy.h: New file.
66033
66034         * modules/unistr/u8-strcat: New file.
66035         * modules/unistr/u16-strcat: New file.
66036         * modules/unistr/u32-strcat: New file.
66037         * lib/unistr/u8-strcat.c: New file.
66038         * lib/unistr/u16-strcat.c: New file.
66039         * lib/unistr/u32-strcat.c: New file.
66040         * lib/unistr/u-strcat.h: New file.
66041
66042         * modules/unistr/u8-strchr: New file.
66043         * modules/unistr/u16-strchr: New file.
66044         * modules/unistr/u32-strchr: New file.
66045         * lib/unistr/u8-strchr.c: New file.
66046         * lib/unistr/u16-strchr.c: New file.
66047         * lib/unistr/u32-strchr.c: New file.
66048
66049         * modules/unistr/u8-strcmp: New file.
66050         * modules/unistr/u16-strcmp: New file.
66051         * modules/unistr/u32-strcmp: New file.
66052         * lib/unistr/u8-strcmp.c: New file.
66053         * lib/unistr/u16-strcmp.c: New file.
66054         * lib/unistr/u32-strcmp.c: New file.
66055
66056         * modules/unistr/u8-strcpy: New file.
66057         * modules/unistr/u16-strcpy: New file.
66058         * modules/unistr/u32-strcpy: New file.
66059         * lib/unistr/u8-strcpy.c: New file.
66060         * lib/unistr/u16-strcpy.c: New file.
66061         * lib/unistr/u32-strcpy.c: New file.
66062         * lib/unistr/u-strcpy.h: New file.
66063
66064         * modules/unistr/u8-strcspn: New file.
66065         * modules/unistr/u16-strcspn: New file.
66066         * modules/unistr/u32-strcspn: New file.
66067         * lib/unistr/u8-strcspn.c: New file.
66068         * lib/unistr/u16-strcspn.c: New file.
66069         * lib/unistr/u32-strcspn.c: New file.
66070         * lib/unistr/u-strcspn.h: New file.
66071
66072         * modules/unistr/u8-strdup: New file.
66073         * modules/unistr/u16-strdup: New file.
66074         * modules/unistr/u32-strdup: New file.
66075         * lib/unistr/u8-strdup.c: New file.
66076         * lib/unistr/u16-strdup.c: New file.
66077         * lib/unistr/u32-strdup.c: New file.
66078         * lib/unistr/u-strdup.h: New file.
66079
66080         * modules/unistr/u8-strlen: New file.
66081         * modules/unistr/u16-strlen: New file.
66082         * modules/unistr/u32-strlen: New file.
66083         * lib/unistr/u8-strlen.c: New file.
66084         * lib/unistr/u16-strlen.c: New file.
66085         * lib/unistr/u32-strlen.c: New file.
66086         * lib/unistr/u-strlen.h: New file.
66087
66088         * modules/unistr/u8-strmblen: New file.
66089         * modules/unistr/u16-strmblen: New file.
66090         * modules/unistr/u32-strmblen: New file.
66091         * lib/unistr/u8-strmblen.c: New file.
66092         * lib/unistr/u16-strmblen.c: New file.
66093         * lib/unistr/u32-strmblen.c: New file.
66094
66095         * modules/unistr/u8-strmbtouc: New file.
66096         * modules/unistr/u16-strmbtouc: New file.
66097         * modules/unistr/u32-strmbtouc: New file.
66098         * lib/unistr/u8-strmbtouc.c: New file.
66099         * lib/unistr/u16-strmbtouc.c: New file.
66100         * lib/unistr/u32-strmbtouc.c: New file.
66101
66102         * modules/unistr/u8-strncat: New file.
66103         * modules/unistr/u16-strncat: New file.
66104         * modules/unistr/u32-strncat: New file.
66105         * lib/unistr/u8-strncat.c: New file.
66106         * lib/unistr/u16-strncat.c: New file.
66107         * lib/unistr/u32-strncat.c: New file.
66108         * lib/unistr/u-strncat.h: New file.
66109
66110         * modules/unistr/u8-strncmp: New file.
66111         * modules/unistr/u16-strncmp: New file.
66112         * modules/unistr/u32-strncmp: New file.
66113         * lib/unistr/u8-strncmp.c: New file.
66114         * lib/unistr/u16-strncmp.c: New file.
66115         * lib/unistr/u32-strncmp.c: New file.
66116
66117         * modules/unistr/u8-strncpy: New file.
66118         * modules/unistr/u16-strncpy: New file.
66119         * modules/unistr/u32-strncpy: New file.
66120         * lib/unistr/u8-strncpy.c: New file.
66121         * lib/unistr/u16-strncpy.c: New file.
66122         * lib/unistr/u32-strncpy.c: New file.
66123         * lib/unistr/u-strncpy.h: New file.
66124
66125         * modules/unistr/u8-strnlen: New file.
66126         * modules/unistr/u16-strnlen: New file.
66127         * modules/unistr/u32-strnlen: New file.
66128         * lib/unistr/u8-strnlen.c: New file.
66129         * lib/unistr/u16-strnlen.c: New file.
66130         * lib/unistr/u32-strnlen.c: New file.
66131         * lib/unistr/u-strnlen.h: New file.
66132
66133         * modules/unistr/u8-strpbrk: New file.
66134         * modules/unistr/u16-strpbrk: New file.
66135         * modules/unistr/u32-strpbrk: New file.
66136         * lib/unistr/u8-strpbrk.c: New file.
66137         * lib/unistr/u16-strpbrk.c: New file.
66138         * lib/unistr/u32-strpbrk.c: New file.
66139         * lib/unistr/u-strpbrk.h: New file.
66140
66141         * modules/unistr/u8-strrchr: New file.
66142         * modules/unistr/u16-strrchr: New file.
66143         * modules/unistr/u32-strrchr: New file.
66144         * lib/unistr/u8-strrchr.c: New file.
66145         * lib/unistr/u16-strrchr.c: New file.
66146         * lib/unistr/u32-strrchr.c: New file.
66147
66148         * modules/unistr/u8-strspn: New file.
66149         * modules/unistr/u16-strspn: New file.
66150         * modules/unistr/u32-strspn: New file.
66151         * lib/unistr/u8-strspn.c: New file.
66152         * lib/unistr/u16-strspn.c: New file.
66153         * lib/unistr/u32-strspn.c: New file.
66154         * lib/unistr/u-strspn.h: New file.
66155
66156         * modules/unistr/u8-strstr: New file.
66157         * modules/unistr/u16-strstr: New file.
66158         * modules/unistr/u32-strstr: New file.
66159         * lib/unistr/u8-strstr.c: New file.
66160         * lib/unistr/u16-strstr.c: New file.
66161         * lib/unistr/u32-strstr.c: New file.
66162         * lib/unistr/u-strstr.h: New file.
66163
66164         * modules/unistr/u8-strtok: New file.
66165         * modules/unistr/u16-strtok: New file.
66166         * modules/unistr/u32-strtok: New file.
66167         * lib/unistr/u8-strtok.c: New file.
66168         * lib/unistr/u16-strtok.c: New file.
66169         * lib/unistr/u32-strtok.c: New file.
66170         * lib/unistr/u-strtok.h: New file.
66171
66172         * modules/unistr/u8-uctomb: New file.
66173         * modules/unistr/u16-uctomb: New file.
66174         * modules/unistr/u32-uctomb: New file.
66175         * lib/unistr/u8-uctomb.c: New file.
66176         * lib/unistr/u16-uctomb.c: New file.
66177         * lib/unistr/u32-uctomb.c: New file.
66178
66179         * MODULES.html.sh (Unicode string functions): Add the new modules.
66180
66181 2007-01-08  Bruno Haible  <bruno@clisp.org>
66182
66183         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
66184         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
66185         subdirectories.
66186
66187 2007-01-08  Karl Berry  <karl@gnu.org>
66188
66189         * doc/error.texi: mention that main() fns must set program_name
66190         when progname is used.
66191
66192 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
66193
66194         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
66195         WCTYPE_H is empty, for the benefit of builds from non-distclean
66196         directories.  Problem reported by Eric Blake in
66197         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
66198
66199 2007-01-08  Bruno Haible  <bruno@clisp.org>
66200
66201         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
66202         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
66203         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
66204         PROVIDE_CANONICALIZE_FILENAME_MODE.
66205         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
66206
66207 2007-01-08  Bruno Haible  <bruno@clisp.org>
66208
66209         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
66210         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
66211         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
66212         * lib/fts.c: Likewise.
66213         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
66214
66215 2006-12-25  Bruno Haible  <bruno@clisp.org>
66216
66217         * modules/utf8-ucs4-safe: New file.
66218         * lib/utf8-ucs4-safe.h: New file.
66219         * lib/unistr/utf8-ucs4-safe.c: New file.
66220
66221         * modules/utf16-ucs4-safe: New file.
66222         * lib/utf16-ucs4-safe.h: New file.
66223         * lib/unistr/utf16-ucs4-safe.c: New file.
66224
66225         * MODULES.html.sh (Unicode string functions): Add the new modules.
66226
66227 2007-01-08  Bruno Haible  <bruno@clisp.org>
66228
66229         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
66230         (Depends-on): Add unitypes.
66231         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66232         (u8_mbtouc_aux): Move out to separate file.
66233         (u8_mbtouc): Use ucs4_t, uint8_t types.
66234         * lib/unistr/utf8-ucs4.c: New file.
66235
66236         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
66237         (Depends-on): Add unitypes.
66238         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66239         (u16_mbtouc_aux): Move out to separate file.
66240         (u16_mbtouc): Use ucs4_t, uint16_t types.
66241         * lib/unistr/utf16-ucs4.c: New file.
66242
66243         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
66244         (Depends-on): Add unitypes.
66245         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
66246         (u8_uctomb_aux): Move out to separate file.
66247         (u8_uctomb): Use ucs4_t, uint8_t types.
66248         * lib/unistr/ucs4-utf8.c: New file.
66249
66250         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
66251         (Depends-on): Add unitypes.
66252         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
66253         (u16_uctomb_aux): Move out to separate file.
66254         (u16_uctomb): Use ucs4_t, uint16_t types.
66255         * lib/unistr/ucs4-utf16.c: New file.
66256
66257 2006-12-25  Bruno Haible  <bruno@clisp.org>
66258
66259         * modules/unitypes: New file.
66260         * lib/unitypes.h: New file.
66261         * MODULES.html.sh (func_all_modules): New section "Unicode string
66262         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
66263         this section. Add unitypes.
66264
66265 2007-01-08  Bruno Haible  <bruno@clisp.org>
66266
66267         Avoid variable names that conflict with those from libtool.
66268         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
66269         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
66270         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
66271         library_names_spec to acl_library_names_spec, hardcode_* to
66272         acl_hardcode_*.
66273         Reported by Ralf Wildenhues.
66274
66275 2007-01-08  Bruno Haible  <bruno@clisp.org>
66276
66277         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
66278         definition.
66279         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
66280         definition.
66281         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
66282         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
66283         definition.
66284         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
66285         definition.
66286         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
66287         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
66288         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
66289         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
66290         definition.
66291         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
66292         definition.
66293         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
66294         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
66295         GC_USE_<algorithm>.
66296         * lib/gc-libgcrypt.c: Likewise.
66297         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
66298         * modules/gc-arctwo (configure.ac): Likewise.
66299         * modules/gc-des (configure.ac): Likewise.
66300         * modules/gc-hmac-md5 (configure.ac): Likewise.
66301         * modules/gc-hmac-sha1 (configure.ac): Likewise.
66302         * modules/gc-md2 (configure.ac): Likewise.
66303         * modules/gc-md4 (configure.ac): Likewise.
66304         * modules/gc-md5 (configure.ac): Likewise.
66305         * modules/gc-random (configure.ac): Likewise.
66306         * modules/gc-rijndael (configure.ac): Likewise.
66307         * modules/gc-sha1 (configure.ac): Likewise.
66308
66309 2007-01-08  Bruno Haible  <bruno@clisp.org>
66310
66311         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
66312         macro definition.
66313         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
66314         definition.
66315         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
66316         definition.
66317         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
66318         * modules/fcntl-safer (configure.ac): Likewise.
66319         * modules/fopen-safer (configure.ac): Likewise.
66320         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
66321         GNULIB_FWRITEERROR macro definition.
66322
66323 2007-01-08  Bruno Haible  <bruno@clisp.org>
66324
66325         * m4/gnulib-common.m4: New file.
66326         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
66327         (func_get_filelist): Add m4/gnulib-common.m4.
66328
66329 2007-01-08  Bruno Haible  <bruno@clisp.org>
66330
66331         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
66332         command.
66333
66334 2007-01-08  Jim Meyering  <jim@meyering.net>
66335
66336         Use a more robust test for a "can't happen" condition.
66337         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
66338         narrowed the st_size value.  Presuming the "can't happen" condition
66339         is true, that narrowing could conceivably convert an invalid st_size
66340         value into a valid one.  Instead, use a change based on Matthew
66341         Woehlke's original patch.
66342
66343         Slight readability improvement: use an assert-like macro
66344         in place of literal "abort ()" uses.
66345         * lib/fts.c (fts_assert): Define.
66346         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
66347         Use this macro instead of a bare 'abort'.
66348
66349 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
66350
66351         Don't worry about using IRIX 5.3's wctype.h broken definitions;
66352         simply work around them.
66353         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
66354         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
66355         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
66356         declaring.
66357         Don't bother to define as macros, since the standard doesn't require it.
66358         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
66359         longer worry about IRIX 5.3.
66360         (HAVE_WCTYPE_CTMP_BUG): Remove.
66361
66362 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66363
66364         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
66365         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
66366         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66367         Problems reported by Georg Schwarz for IRIX 5.3.
66368
66369         * gnulib-tool (autoconf_minversion): Take the maximum version number
66370         found, not the minimum.  Problem reported by James Youngman.
66371
66372 2007-01-03  Karl Berry  <karl@gnu.org>
66373
66374         * doc/error.texi: new file, explaining interaction with progname.
66375         * doc/gnulib.texi: include it.  Update copyright.
66376
66377 2007-01-03  Simon Josefsson  <simon@josefsson.org>
66378
66379         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
66380         AC_CANONICAL_HOST, to improve autobuild outputs.
66381
66382 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
66383             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66384
66385         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
66386         sockets, server sockets, and other file descriptors.  Count errors
66387         to compute the return value.  Reorder the code a bit to be easier
66388         to follow.  Don't set event bits that were not requested (except
66389         POLLERR and POLLHUP).
66390
66391 2007-01-01  Bruno Haible  <bruno@clisp.org>
66392
66393         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
66394
66395 2007-01-03  Jim Meyering  <jim@meyering.net>
66396
66397         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
66398
66399 2007-01-02  Bruno Haible  <bruno@clisp.org>
66400
66401         * modules/settime (Include): Require timespec.h.
66402         * modules/nanosleep (Include): Likewise.
66403
66404 2007-01-01  Bruno Haible  <bruno@clisp.org>
66405
66406         * gnulib-tool (func_emit_copyright_notice): Bump year.
66407         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
66408
66409 2007-01-01  Bruno Haible  <bruno@clisp.org>
66410
66411         Improve support for OpenBSD.
66412         * build-aux/config.rpath (libname_spec): Export.
66413         (library_names_spec): New variable. Export.
66414         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
66415         library_names_spec from the config.rpath output. Locate shared library
66416         through the name pattern in library_names_spec.
66417
66418 2007-01-01  Eric Blake  <ebb9@byu.net>
66419
66420         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
66421
66422 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
66423
66424         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
66425         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
66426         assume the C locale, and avoid an "eval" that could cause trouble.
66427         Problem with SORT reported by Bob Proulx.
66428
66429         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
66430         Define.  Trivial patch from Henning Nielsen Lund, originally
66431         sent to bug-grep@gnu.org today.
66432
66433 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
66434
66435         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
66436         struct stat.  Problem reported by Henning Nielsen Lund.
66437         * lib/acl.c: Include acl.h first, to check interface.  Don't
66438         bother to include sys/types.h and sys/stat.h again.
66439
66440 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66441
66442         Import the following change from libc; problem reported by
66443         Sven Verdoolaege.
66444
66445         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
66446
66447         [BZ #1373]
66448         * lib/argp.h: Remove __NTH for __argp_usage inline function.
66449
66450 2006-12-28  Jim Meyering  <jim@meyering.net>
66451
66452         * build-aux/announce-gen: Do not assume that the package
66453         builds any of tar.gz, tar.bz2, and .xdelta files.
66454         Suggestion from Simon Josefsson.
66455
66456 2006-12-28  Simon Josefsson  <simon@josefsson.org>
66457
66458         * modules/announce-gen: New file.
66459
66460 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
66461
66462         * lib/mbchar.h: Just include <wctype.h>; the wctype module
66463         handles its gotchas now.
66464         * lib/mbswidth.c: Likewise.
66465         * lib/wcwidth.h: Likewise.
66466         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
66467         and iswcntrl; the wctype module does this stuff now.
66468         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66469         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66470         * modules/mbchar (Depends-on): Add wctype.
66471         * modules/mbswidth (Depends-on): Likewise.
66472         * modules/wcwidth (Depends-on): Likewise.
66473
66474 2006-12-27  Eric Blake  <ebb9@byu.net>
66475
66476         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
66477         module uses more than what <wctype.h> is required to provide.
66478
66479 2006-12-26  Eric Blake  <ebb9@byu.net>
66480
66481         * gnulib-tool (sed_extract_prog): Avoid space-tab.
66482
66483 2006-12-26  Eric Blake  <ebb9@byu.net>
66484
66485         * modules/absolute-header: New module.
66486         * modules/fcntl (Depends-on): Depend on it.
66487         * modules/inttypes (Depends-on): Likewise.
66488         * modules/stdint (Depends-on): Likewise.
66489         * modules/sys_stat (Depends-on): Likewise.
66490         * modules/wctype (Depends-on): Likewise.
66491         * MODULES.html.sh (Support for building libraries and
66492         executables): Document it.
66493
66494 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
66495
66496         * gnulib-tool (SED): Remove, undoing previous change.
66497         The problem was that it broke coreutils on Solaris, because
66498         "sed --posix" leaked into a makefile.
66499         (sed): New alias, if 'alias' and GNU sed.
66500
66501 2006-12-24  Jim Meyering  <jim@meyering.net>
66502
66503         Work around an fchownat bug in glibc-2.4:
66504         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
66505         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
66506         in spite of the -P option.
66507         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
66508         New macros.
66509         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
66510         * modules/openat (Files): Add lib/fchownat.c.
66511         * lib/openat.c (fchownat): Don't define here.  Move to...
66512         * lib/fchownat.c: ...this new file.
66513
66514 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66515
66516         Fix bug reported by Bruno Haible in
66517         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
66518         where quotearg.c didn't compile on Mac OS X 10.2 because it
66519         lacks <wchar.h> and wint_t.
66520         * lib/wctype_.h (__wctype_wint_t): New type.
66521         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
66522         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
66523         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
66524         Arg is now of type __wctype_wint_t, not wint_t.
66525         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
66526         substitute HAVE_WINT_T.
66527         * modules/wctype (Files): Add m4/wint_t.m4.
66528         (wctype.h): Substitute HAVE_WINT_T.
66529
66530 2006-12-23  Bruno Haible  <bruno@clisp.org>
66531
66532         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
66533
66534 2006-12-23  Bruno Haible  <bruno@clisp.org>
66535
66536         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
66537         S_ISLNK.
66538         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
66539         mingw.
66540
66541 2006-12-22  Bruno Haible  <bruno@clisp.org>
66542
66543         * lib/copy-file.c: Include acl.h.
66544         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
66545         Close the file descriptors only after being done with copy_acl.
66546         * modules/copy-file (Depends-on): Add acl.
66547
66548 2006-12-22  Bruno Haible  <bruno@clisp.org>
66549
66550         * gnulib-tool (SED): New variable.
66551         Use $SED instead of sed everywhere.
66552
66553 2006-12-22  Bruno Haible  <bruno@clisp.org>
66554
66555         * modules/no-c++: New file.
66556         * m4/no-c++.m4: New file.
66557         * MODULES.html.sh (Support for building libraries and executables):
66558         Add no-c++.
66559
66560 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
66561
66562         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66563         Include <limits.h>, and use its INT_MAX to rewrite the
66564         j loop so that it does not overflow 'int'.  Problem reported by
66565         Ralf Wildenhues in
66566         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
66567         Play it safe by shifting left by 1 rather than multiplying by 2,
66568         as GCC is less likely to optimize this away when the value
66569         is signed (when it assumes overflow leads to undefined behavior).
66570         Also, don't assume time_t uses two's complement.
66571
66572 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
66573
66574         * MODULES.html.sh: New module wctype.
66575         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
66576         * lib/fnmatch.c: Don't bother to include <wchar.h> before
66577         <wctype.h>, since the new wctype module should fix this.
66578         * lib/quotearg.c: Include <wctype.h> unconditionally, since
66579         the wctype module should arrange for it.
66580         * lib/regex_internal.h: Likewise.
66581         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
66582         since the wctype module should handle this now.
66583         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
66584         * modules/fnmatch (Depends-on): Add wctype.
66585         * modules/quotearg (Depends-on): Likewise.
66586         * modules/regex (Depends-on): Likewise.
66587
66588 2006-12-19  Bruno Haible  <bruno@clisp.org>
66589
66590         * lib/strdup.h [C++]: Wrap definitions in extern "C".
66591         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
66592
66593 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66594
66595         * modules/savewd (Depends-on): Fix dependency on fcntl.
66596
66597 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66598
66599         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
66600         conforms to C99, rather than relying on the user's environment
66601         setting of STDINT_H.
66602
66603 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66604         and Eric Blake  <ebb9@byu.net>
66605
66606         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
66607         This is more consistent with the other defines here.
66608         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
66609         Port to z/OS.  Problem reported by Paul Gilmartin.
66610         Change local vars to use gl_ prefix rather than ac_.
66611         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
66612         with other defines.
66613         * modules/double-slash-root: New module.
66614         * modules/dirname (Files): Remove m4/double-slash-root.m4.
66615         (Depends-on): Add double-slash-root.
66616         * MODULES.html.sh (File system functions): Mention new module.
66617
66618 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
66619
66620         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
66621         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
66622         This is for the benefit of gzip, which doesn't do i18n.
66623
66624 2006-12-12  Jim Meyering  <jim@meyering.net>
66625
66626         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
66627         Reported by Andreas Schwab <schwab@suse.de>.
66628
66629 2006-12-12  Bruno Haible  <bruno@clisp.org>
66630
66631         Merge these changes.
66632         2006-09-05  Bruno Haible  <bruno@clisp.org>
66633         * lib/iconvme.c (iconv_string): No need to save and restore errno when
66634         iconv_alloc succeeded.
66635         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66636         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
66637         test for " && dest " at the end - dest is always != NULL there. Call
66638         iconv with 4xNULL arguments initially, to reset the state. Call iconv
66639         with 2xNULL arguments, also to flush the state storage. Handle the
66640         IRIX iconv behaviour. Realloc the final result, to throw away unused
66641         memory.
66642
66643 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66644
66645         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66646         and fchmodat unconditionally, since glibc 2.4 has them.
66647         Problem reported by Arkadiusz Miskiewicz.
66648
66649 2006-12-10  Bruno Haible  <bruno@clisp.org>
66650
66651         * gnulib-tool (func_import): Show the include files only for those
66652         modules that are copied and specified.
66653         Reported by Karl Berry.
66654
66655 2006-12-08  Jim Meyering  <jim@meyering.net>
66656
66657         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66658         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66659
66660         * build-aux/announce-gen: Add two new options, both optional:
66661         --bootstrap-tools=TOOL_LIST
66662               a comma-separated list of tools, e.g.,
66663               autoconf,automake,bison,gnulib
66664         --gnulib-snapshot-date=DATE
66665               if gnulib is in the bootstrap tool list,
66666               then report this as the snapshot date.
66667               If not specified, use the current date/time.
66668               If you specify a date here, be sure it's UTC.
66669
66670 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66671
66672         * tests/test-argp-2.sh: Fix test to match actual output.
66673         (func_compare): Fix sed script to be portable.
66674
66675 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66676
66677         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66678         workaround for this case.  It is not autoconfigured now; offhand
66679         it's hard to see how to autoconfigure it.
66680
66681 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66682
66683         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66684         a directory that is about to be chowned.  Such a directory's
66685         initial file permissions should permit the owner only and this
66686         should not be changed until after the chown, since the group and
66687         other bits would be incorrect if they granted permission before
66688         the chown.
66689
66690         Fix porting problem for iswctype reported by Georg Schwarz in:
66691         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
66692         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
66693         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
66694         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
66695         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66696
66697 2006-12-03  Jim Meyering  <jim@meyering.net>
66698
66699         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
66700         p->fts_statp may not yet be defined.
66701         (fts_read): Instead, set it in the caller, once p->fts_statp is
66702         sure to be defined, and corresponds to a top-level directory.
66703         This bug made du -x fail.  Here's the coreutils test case:
66704         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
66705         Reported by Mike Frysinger.
66706
66707 2006-12-01  Jim Meyering  <jim@meyering.net>
66708
66709         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66710         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66711         Reported by Simon Josefsson.
66712
66713 2006-11-30  Jim Meyering  <jim@meyering.net>
66714
66715         * m4/warning.m4: Use the all-permissive copyright notice
66716         recommended by RMS (rather than LGPL).
66717         * m4/vararrays.m4: Likewise.
66718         * m4/flexmember.m4: Likewise.
66719
66720 2006-11-29  Bruno Haible  <bruno@clisp.org>
66721
66722         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66723         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66724         using +=.
66725         Reported by Simon Josefsson <simon@josefsson.org>.
66726
66727 2006-11-28  James Youngman <jay@gnu.org>
66728
66729         * README: Advise users that they might find the bug-gnulib@gnu.org
66730         and autotools-announce@gnu.org mailing lists useful.
66731
66732 2006-11-28  Bruno Haible  <bruno@clisp.org>
66733
66734         * m4/ptrdiff_max.m4: Remove file.
66735
66736 2006-11-21  Bruno Haible  <bruno@clisp.org>
66737
66738         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
66739         _AC_COMPUTE_INT.
66740         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66741         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
66742         _AC_COMPUTE_INT.
66743         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66744         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
66745         _AC_COMPUTE_INT.
66746         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66747
66748 2006-11-28  Jim Meyering  <jim@meyering.net>
66749
66750         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
66751         warning from "gcc -Wshadow" about shadowing the builtin.
66752
66753 2006-11-27  Bruno Haible  <bruno@clisp.org>
66754
66755         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
66756         _AC_COMPUTE_INT.
66757         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66758
66759 2006-11-27  Bruno Haible  <bruno@clisp.org>
66760             Paul Eggert  <eggert@cs.ucla.edu>
66761
66762         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66763
66764 2006-11-26  Bruno Haible  <bruno@clisp.org>
66765
66766         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66767         noinst_LTLIBRARIES.
66768
66769 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66770             Bruno Haible  <bruno@clisp.org>
66771
66772         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66773         if compiling with "gcc -ansi".
66774
66775 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66776
66777         Fix some incompatibilities with gcc -ansi -pedantic.
66778         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66779         if compiling pedantically with GCC, unless it's C99 or later.
66780         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66781         it mishandles gcc -ansi -pedantic as well.
66782         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66783         if gcc -pedantic.
66784         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66785         initializers for struct if -pedantic, unless it's C99 or later.
66786
66787 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66788
66789         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66790         Don't close an fd more than once. Identical atimes indicate
66791         success, not failure.
66792
66793 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
66794
66795         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
66796
66797 2006-11-23  Jim Meyering  <jim@meyering.net>
66798
66799         * build-aux/announce-gen: New file.  From coreutils.
66800
66801 2006-11-22  Jim Meyering  <jim@meyering.net>
66802
66803         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
66804         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
66805         (fts_read): Use a temporary to narrow the overused st_size member
66806         before using it in a switch statement.  Reported by Matthew Woehlke.
66807
66808         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66809         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66810
66811 2006-11-20  Bruno Haible  <bruno@clisp.org>
66812
66813         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66814         changequote instead of pairs of brackets.
66815         Reported by Andreas Schwab <schwab@suse.de>.
66816
66817 2006-11-21  Jim Meyering  <jim@meyering.net>
66818
66819         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66820         so as to remain compatible with older compilers.
66821         Patch from Michael Deutschmann.
66822
66823 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66824
66825         * MODULES.html.sh (File system functions): Add openat.
66826
66827         * lib/openat.h (rpl_fstatat): New macro, if
66828         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66829         (fstatat): Define to rpl_fstatat under the same conditions,
66830         unless COMPILING_FSTATAT.
66831         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66832         seems to have the bug.
66833         * lib/fstatat.c: New file.
66834         * modules/openat (Files): Add it.
66835
66836 2006-11-20  Bruno Haible  <bruno@clisp.org>
66837
66838         * Makefile: New file.
66839
66840 2006-11-20  Jim Meyering  <jim@meyering.net>
66841
66842         The beginnings of syntax-related checks for gnulib.
66843         * lib/Makefile: New file.
66844         * lib/t-idcache: New script.  Ensure that the two halves of
66845         idcache.c stay in sync.
66846
66847         * lib/idcache.c: Adjust comments in user- and group- portions to
66848         be more accurate, and to be consistent with one another.
66849
66850 2006-11-20  Jim Meyering  <jim@meyering.net>
66851
66852         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66853         continue using the flexible array member (thus, this module performs
66854         half as many malloc calls), with the addition that...
66855         (getgroup, getuser): Consistently record a non-match via an empty
66856         "name" string, and map an empty string match to a NULL return value.
66857         * modules/idcache (Depends-on): Re-add flexmember.
66858
66859         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66860         (getuidbyname, getgroup, getgidbyname): Likewise.
66861
66862         Use cleaner syntax: NULL rather than 0.
66863         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66864
66865 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66866
66867         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66868         It mishandled the case where the group was missing.
66869         Problem reported by Greg Schafer.
66870         * modules/idcache: Likewise.
66871
66872 2006-11-18  Jim Meyering  <jim@meyering.net>
66873
66874         * check-module (%exempt_header): Add exception for some
66875         conditionally-included headers.
66876
66877         * modules/i-ring (Depends-on): Add verify.
66878         (License): Change to LGPL.
66879
66880 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66881
66882         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66883         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66884         and inttostr.h.  Use snprintf rather than uinttostr, so that
66885         LGPLed code doesn't depend on GPLed.
66886
66887 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66888
66889         * modules/inline (License): Change from GPL to LGPL.
66890
66891 2006-11-17  Jim Meyering  <jim@meyering.net>
66892
66893         * modules/d-type (License): Switch to LGPL.
66894
66895 2006-11-15  Bruno Haible  <bruno@clisp.org>
66896
66897         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66898
66899 2006-11-15  Eric Blake  <ebb9@byu.net>
66900
66901         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66902         the module dependency.
66903
66904 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66905             Bruno Haible  <bruno@clisp.org>
66906
66907         * gnulib-tool (func_create_testdir): Add license consistency check.
66908
66909 2006-11-15  Eric Blake  <ebb9@byu.net>
66910
66911         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66912         random "(cached)" in configure output.
66913
66914 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66915
66916         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66917         test for conforming inttypes.h is both announced and cached.
66918
66919         * MODULES.html.sh (seen_modules, seen_files): New variables.
66920         (func_module): Rewrite to use a few less gnulib-tool and sed
66921         invocations.  Avoid a couple of quadratic algorithms for ...
66922         (missed_modules, missed_files): ... these, with ...
66923         (func_append, func_tmpdir): ... these new functions, from
66924         gnulib-tool.  Analogously, install traps for cleanup.
66925
66926         * tests/test-gc.c (main): Remove unused variables.
66927         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66928
66929 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66930
66931         * modules/inttostr (License): Change to LGPL.
66932
66933 2006-11-14  Eric Blake  <ebb9@byu.net>
66934
66935         * modules/tempname (License): Change to LGPL.
66936
66937 2006-11-14  Eric Blake  <ebb9@byu.net>
66938
66939         * doc/functions.texi (Function Portability): *printf functions on
66940         Cygwin now understand all POSIX size specifiers.
66941
66942 2006-11-14  Bruno Haible  <bruno@clisp.org>
66943
66944         * modules/c-ctype (License): Change to LGPL.
66945
66946 2006-11-12  Bruno Haible  <bruno@clisp.org>
66947
66948         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66949         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66950         for GNOME libraries, for which the include files are installed in
66951         subdirectories of $prefix/include.
66952
66953 2006-11-12  Bruno Haible  <bruno@clisp.org>
66954
66955         * m4/lib-link.m4: Require at least autoconf-2.54.
66956         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66957         name to underscores for the --with option.
66958
66959 2006-11-13  Bruno Haible  <bruno@clisp.org>
66960
66961         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66962         the tests directory.
66963         Reported by Ralf Wildenhues.
66964
66965 2006-11-13  Bruno Haible  <bruno@clisp.org>
66966
66967         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66968         (func_emit_initmacro_end): Undo the override here.
66969         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66970         Works around the famous automake error in coreutils.
66971
66972 2006-11-13  Eric Blake  <ebb9@byu.net>
66973
66974         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66975         element, not its node.
66976
66977 2006-11-12  Bruno Haible  <bruno@clisp.org>
66978
66979         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66980         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66981
66982 2006-11-12  Bruno Haible  <bruno@clisp.org>
66983
66984         * gnulib-tool: New option --local-symlink.
66985         (func_usage): Document it.
66986         (lsymbolic): New variable.
66987         (func_import, func_create_testdir): If --symlink was not specified,
66988         test whether --local-symlink was specified and the file comes from
66989         the local_gnulib_dir.
66990
66991 2006-11-12  Bruno Haible  <bruno@clisp.org>
66992
66993         * gnulib-tool (func_ln): New function.
66994         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66995
66996 2006-11-12  Bruno Haible  <bruno@clisp.org>
66997
66998         Finish support for source files in subdirectories.
66999         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
67000         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
67001         AUTOMAKE_OPTIONS.
67002         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
67003
67004 2006-11-12  Bruno Haible  <bruno@clisp.org>
67005
67006         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67007         EXTRA_lib_SOURCES augmentation.
67008         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
67009
67010 2006-11-12  Jim Meyering  <jim@meyering.net>
67011
67012         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
67013         file descriptors.  This also averts a failure on systems with
67014         native openat support when a traversed directory lacks "x" access.
67015         * lib/fts_.h: Include "i-ring.h"
67016         (struct FTS) [fts_fd_ring]: New member.
67017         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
67018         (FCHDIR): Add parentheses.
67019         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
67020         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
67021         When descending, rather than simply closing the previous
67022         fts_cwd_fd value, push that file descriptor onto the ring.
67023         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
67024         (fts_open): Initialize the new fd_ring member.
67025         (fts_close): Clear the ring.
67026         (fts_safe_changedir): When possible, use our new fd_ring to skip
67027         the diropen and fstat and dev/ino comparison that would normally
67028         accompany a virtual `chdir ("..")'.
67029
67030         * modules/fts (Depends-on): Add i-ring.
67031         * modules/i-ring: New module.
67032         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
67033         * m4/i-ring.m4: New file.
67034
67035 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67036
67037         * gnulib-tool (func_create_testdir): Fix replacement of
67038         `build-aux' in configure.ac.  Run autotools in gltests
67039         subdirectory.
67040         (func_create_testdir, func_create_megatestdir, test): There is
67041         no need for '--force' in most autotool invocations in a new
67042         tree.  Actually fail the whole test if any of the tools, or the
67043         configure or make stages fail.
67044
67045         Sync from Automake.
67046         * build-aux/gnupload: Revert last change.  Add pointer to upload
67047         instructions of the GNU Maintenance Instructions.
67048         Suggestion by Karl Berry.
67049
67050 2006-11-10  Jim Meyering  <jim@meyering.net>
67051
67052         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
67053
67054 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67055
67056         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
67057         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
67058         (bind_textdomain_codeset) [! ENABLE_NLS]:
67059         Evaluate all the arguments.  That way, callers get compatible behavior
67060         if the arguments have side effects.  Also, it avoids some GCC
67061         diagnostics in some cases; Joel E. Denny reported problems when Bison
67062         was configured with --enable-gcc-warnigs.
67063
67064 2006-11-10  Jim Meyering  <jim@meyering.net>
67065
67066         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
67067         relevant options in CFLAGS (like -O, -fno-inline) are taken into
67068         account.
67069
67070 2006-11-10  Jim Meyering  <jim@meyering.net>
67071
67072         * modules/inline: New file/module.
67073         * modules/xalloc (Files): Remove m4/inline.m4.
67074         (Depends-on): Add inline, instead.
67075         * modules/oset: Likewise.
67076         * modules/list: Likewise.
67077
67078 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67079
67080         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
67081         Problem reported by Matthew Woehlke.
67082
67083 2006-11-09  Bruno Haible  <bruno@clisp.org>
67084
67085         * lib/tempname.c (gen_tempname): Remove variant that invokes
67086         __gen_tempname.
67087         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
67088         __gen_tempname.
67089
67090 2006-11-08  Bruno Haible  <bruno@clisp.org>
67091
67092         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
67093         to 'yes' instead of 'cross-compiling'.
67094
67095 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
67096
67097         * lib/quotearg.h (quotearg_free): New decl.
67098         * lib/quotearg.c (quotearg_free): New function.
67099         (slot0, nslots, slotvec0, slotvec):
67100         Now file-scope so that quotearg_free can get at them.
67101
67102 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67103
67104         Sync from Automake.
67105         * build-aux/gnupload: Add missing 'gnu' to example URL.
67106         Report by Karl Berry.
67107
67108 2006-11-08  Bruno Haible  <bruno@clisp.org>
67109
67110         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
67111         Suggested by Paul Eggert.
67112
67113 2006-11-08  Jim Meyering  <jim@meyering.net>
67114
67115         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
67116         It's already included if !_LIBC.
67117         (fts_safe_changedir): Add a comment.
67118
67119 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67120
67121         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
67122         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
67123         Matthew Woehlke.
67124
67125         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
67126         definitions up, to avoid colliding with change below.
67127         (static_inline) [HAVE_INLINE]: New macro.
67128         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
67129         Provide extern decls when !HAVE_INLINE.  Do not define unless
67130         static_inline is defined, either by us or by xmalloc.c.  Use
67131         static_inline rather than static inline.
67132         (XCALLOC): Optimize sizeof(T) = 1 case.
67133         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
67134
67135 2006-11-07  Bruno Haible  <bruno@clisp.org>
67136
67137         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
67138         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
67139         AC_C_INLINE.
67140         * modules/xalloc (Files): Add m4/inline.m4.
67141
67142 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67143
67144         * README: Fix typo.
67145         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
67146         (Miscellanous Notes): ...from this.
67147
67148 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67149
67150         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
67151         Mention that offsetof should be used instead of sizeof.
67152         From Bruno Haible.
67153
67154 2006-11-07  Bruno Haible  <bruno@clisp.org>
67155
67156         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
67157
67158 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67159
67160         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67161         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
67162         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67163         (gl_tree_add_before, gl_tree_add_after):
67164         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
67165         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
67166         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67167         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
67168         (gl_linked_add_after, gl_linked_add_at): Likewise.
67169         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
67170         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67171         (gl_tree_add_before, gl_tree_add_after): Likewise.
67172         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
67173         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
67174         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
67175
67176 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67177
67178         * lib/gl_oset.h: Use C comment style, not C++ comment style.
67179
67180 2006-11-06  Bruno Haible  <bruno@clisp.org>
67181
67182         * m4/inline.m4: New file.
67183         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
67184         * modules/list (Files): Add m4/inline.m4.
67185         * modules/oset (Files): Likewise.
67186
67187 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67188
67189         * lib/idcache.c: Include <stddef.h>, for offsetof.
67190         (struct userid.name): Change from char * to a flexible array member.
67191         All uses changed.
67192         * modules/idcache (Depends-on): Add flexmember.
67193
67194         * MODULES.html.sh (Core language properties): New module flexmember.
67195         * modules/flexmember, m4/flexmember.m4: New files.
67196
67197         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
67198         inline functions that are identical with the old xnmalloc_inline,
67199         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
67200         that we can avoid some unnecessary integer multiplications and
67201         divisions in the common case where the element size is known at
67202         compile time.
67203         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
67204         needed.
67205         (xnboundedmalloc): Remove.
67206         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
67207         arguments, for consistency with rest of this header.
67208         (xcharalloc): Rewrite using XNMALLOC.
67209         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
67210         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
67211         versions have been moved to lib/xalloc.h and renamed to be the
67212         non-*_inline versions.
67213         (xmalloc, xrealloc): Implement without reference to the xnmalloc
67214         and xnrealloc functions, since those functions are now inline and
67215         now call us.
67216         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
67217         renaming described above.
67218         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
67219         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
67220         captures the dependency in AC_C_INLINE.
67221
67222         New module canonicalize-lgpl, proposed by Charles Wilson in
67223         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
67224         with a few small changes afterwards.
67225         * MODULES.html.sh (File system functions): New module
67226         canonicalize-lgpl.
67227         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
67228         and canonicalize_file_name.
67229         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
67230         * modules/canonicalize-lgpl: New files.
67231
67232 2006-11-05  Bruno Haible  <bruno@clisp.org>
67233
67234         * gnulib-tool (func_import, func_create_testdir): Create directories
67235         also for files in subdirectories of lib/.
67236
67237 2006-11-05  Bruno Haible  <bruno@clisp.org>
67238
67239         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
67240         ANSI C compliant.
67241
67242 2006-11-03  Bruno Haible  <bruno@clisp.org>
67243
67244         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67245         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
67246         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
67247         (xnboundedmalloc): New inline function.
67248         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
67249         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
67250         xmalloc.
67251         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
67252         xmalloc.
67253         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
67254         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
67255         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
67256         xmalloc.
67257         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67258         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
67259         xmalloc.
67260         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
67261         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67262         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
67263         xmalloc.
67264         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67265         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
67266         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67267         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
67268         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
67269         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
67270         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
67271
67272 2006-11-03  Bruno Haible  <bruno@clisp.org>
67273
67274         * lib/c-ctype.h [C++]: Define functions without name mangling.
67275         * lib/fwriteerror.h [C++]: Likewise.
67276         * lib/gcd.h [C++]: Likewise.
67277         * lib/linebreak.h [C++]: Likewise.
67278
67279 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67280
67281         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
67282         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
67283         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
67284         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67285         Check for functions and headers just once.
67286         Check for declaration of canonicalize_file_name.
67287         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
67288
67289 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67290
67291         * gnulib-tool (func_import): Fix typo in actioncmd.
67292
67293 2006-11-02  Bruno Haible  <bruno@clisp.org>
67294
67295         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
67296         newline sequence in the Makefile.am snippet as a space, like "make"
67297         does.
67298         Reported by Roger Persson <perrog@gmail.com>.
67299
67300 2006-11-01  Bruno Haible  <bruno@clisp.org>
67301
67302         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
67303         already declared in <string.h>.
67304         * lib/strcase.h (strncasecmp): Don't declare it if yes.
67305
67306 2006-11-01  Bruno Haible  <bruno@clisp.org>
67307
67308         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
67309         * lib/strcase.h: Include <string.h>.
67310         (strcasecmp): Define to rpl_strcasecmp here.
67311
67312 2006-11-01  Bruno Haible  <bruno@clisp.org>
67313
67314         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
67315
67316 2006-11-01  Eric Blake  <ebb9@byu.net>
67317
67318         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
67319
67320         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
67321
67322 2006-10-29  Bruno Haible  <bruno@clisp.org>
67323
67324         Make it compile in C++ mode.
67325         * lib/full-write.c (full_rw): Add a cast.
67326
67327 2006-11-01  Bruno Haible  <bruno@clisp.org>
67328
67329         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
67330         be POSIX compliant.
67331         Reported by Roger Persson <perrog@gmail.com>.
67332
67333 2006-11-01  Eric Blake  <ebb9@byu.net>
67334
67335         * lib/getopt_.h: Fix comments.
67336
67337 2006-10-31  Eric Blake  <ebb9@byu.net>
67338
67339         * modules/tmpdir (Depends-on): Add sys_stat.
67340         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
67341         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
67342         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
67343         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
67344         tempname.
67345
67346 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
67347
67348         Avoid some C++ diagnostics reported by Bruno Haible.
67349         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
67350         xmalloc.
67351         (quotearg_alloc): Use xcharalloc rather than xmalloc.
67352         (struct slotvec): Move to top level.
67353         (quotearg_n_options): Rewrite to avoid xmalloc.
67354         * lib/xalloc.h (xcharalloc): New function.
67355         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
67356         [defined __cplusplus]: Add function template that provides result
67357         type propagation.  This part of the change is from Bruno Haible.
67358
67359 2006-10-29  Bruno Haible  <bruno@clisp.org>
67360
67361         Make it compile in C++ mode.
67362         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
67363         * lib/strnlen1.c (strnlen1): Cast memchr result.
67364         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
67365         * lib/clean-temp.c (string_equals, string_hash): Add casts.
67366         (create_temp_dir): Rename local variable 'template'.
67367         (compile_csharp_using_sscli): Add cast.
67368         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
67369         * lib/findprog.c (find_in_path): Likewise.
67370         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
67371         * lib/wait-process.c (register_slave_subprocess): Likewise.
67372
67373 2006-10-22  Bruno Haible  <bruno@clisp.org>
67374
67375         * modules/tsearch: New file.
67376         * lib/tsearch.h: New file.
67377         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
67378         * m4/tsearch.m4: New file.
67379         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
67380
67381 2006-10-29  Eric Blake  <ebb9@byu.net>
67382
67383         * lib/arcfour.c: Assume config.h.
67384         * lib/arctwo.c: Likewise.
67385         * lib/base64.c: Likewise.
67386         * lib/check-version.c: Likewise.
67387         * lib/crc.c: Likewise.
67388         * lib/des.c: Likewise.
67389         * lib/gc-gnulib.c: Likewise.
67390         * lib/gc-libgcrypt.c: Likewise.
67391         * lib/gc-pbkdf2-sha1.c: Likewise.
67392         * lib/getaddrinfo.c: Likewise.
67393         * lib/getdelim.c: Likewise.
67394         * lib/getline.c: Likewise.
67395         * lib/hmac-md5.c: Likewise.
67396         * lib/hmac-sha1.c: Likewise.
67397         * lib/iconvme.c: Likewise.
67398         * lib/md2.c: Likewise.
67399         * lib/md4.c: Likewise.
67400         * lib/memxor.c: Likewise.
67401         * lib/read-file.c: Likewise.
67402         * lib/readline.c: Likewise.
67403         * lib/rijndael-alg-fst.c: Likewise.
67404         * lib/rijndael-api-fst.c: Likewise.
67405         * lib/xgetdomainname.c: Likewise.
67406
67407 2006-10-28  Eric Blake  <ebb9@byu.net>
67408
67409         * lib/xstrndup.c: Assume config.h.
67410
67411 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67412
67413         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
67414         stat-macros.h is now for our own macros, whereas stat_h is for
67415         macros in the <sys/stat.h> name space.
67416         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
67417         (STAT_MACROS_H): Remove.
67418         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
67419         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
67420         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
67421         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
67422         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
67423         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
67424         Move these macros to ...
67425         * lib/stat_.h: here.  Don't include stat-macros.h.
67426         * lib/canonicalize.c: Don't include stat-macros.h.
67427         * lib/chown.c: Likewise.
67428         * lib/euidaccess.c: Likewise.
67429         * lib/file-type.c: Likewise.
67430         * lib/filemode.c: Likewise.
67431         * lib/glob.c: Likewise.
67432         * lib/isapipe.c: Likewise.
67433         * lib/lchown.c: Likewise.
67434         * lib/lstat.c: Likewise.
67435         * lib/mkdir-p.c: Likewise.
67436         * lib/rmdir.c: Likewise.
67437         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
67438         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
67439         unless mkdir isn't declared, to speed up 'configure'.
67440         Always create sys/stat.h, since it's unlikely any real sys/stat.h
67441         would define all the S_* symbols.
67442         * modules/canonicalize (Depends-on):
67443         Depend on sys_stat, not stat-macros.
67444         * modules/chown: Likewise.
67445         * modules/euidaccess: Likewise.
67446         * modules/filemode: Likewise.
67447         * modules/file-type: Likewise.
67448         * modules/glob: Likewise.
67449         * modules/isapipe: Likewise.
67450         * modules/lchown: Likewise.
67451         * modules/lstat: Likewise.
67452         * modules/mkancesdirs: Likewise.
67453         * modules/rmdir: Likewise.
67454         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
67455         * modules/modechange: Likewise.
67456         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
67457         (configure.ac): Remove gl_STAT_MACROS.
67458         * modules/sys_stat (Depends-on): Remove stat-macros.
67459
67460 2006-10-27  Bruno Haible  <bruno@clisp.org>
67461
67462         * m4/signed.m4: Remove file.
67463         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
67464         invocation.
67465         * modules/vasnprintf (Files): Remove m4/signed.m4.
67466
67467 2006-10-27  Bruno Haible  <bruno@clisp.org>
67468
67469         Update to GNU gettext 0.16.
67470         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
67471         m4/inttypes-h.m4, m4/signed.m4.
67472         * m4/gettext.m4: Update to GNU gettext 0.16.
67473         * m4/intl.m4: New file, from GNU gettext.
67474         * m4/intldir.m4: New file, from GNU gettext.
67475         * config/srclist.txt: Update
67476
67477 2006-10-27  Eric Blake  <ebb9@byu.net>
67478
67479         * MODULES.html.sh: Document tempname.
67480         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
67481         dependencies.
67482         (Files): Move lib/tempname.c...
67483         * modules/tempname: ...to this new module.
67484         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
67485         (gl_PREREQ_TEMPNAME): Move...
67486         * m4/tempname.m4: ...to this new file.
67487         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
67488         * modules/sys_stat (Depends-on): Add stat-macros.
67489         * lib/stat_.h (includes): Pick up stat macros.
67490         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
67491         if stat macros are broken.
67492         * lib/tempname.c (includes): No need to include "stat-macros.h".
67493         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
67494         (direxists, __path_search) [!_LIBC]: Don't compile these in
67495         gnulib; the tmpdir module covers that.
67496         * lib/tempname.h: New file.
67497
67498 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
67499
67500         * COPYING: Explain how gnulib-tool converts licence headers.
67501         Almost all wording by Eric Blake.
67502
67503 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
67504
67505         * lib/mbchar.h (is_basic_table): Make read-only.
67506         * lib/mbchar.c (is_basic_table): Likewise.
67507         Reported by John Darrington.
67508
67509 2006-10-25  Bruno Haible  <bruno@clisp.org>
67510
67511         * lib/progname.h (set_program_name): Undefine before defining.
67512
67513 2006-10-25  Bruno Haible  <bruno@clisp.org>
67514
67515         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
67516         false for non-gcc C++ compilers.
67517         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
67518
67519 2006-10-24  Bruno Haible  <bruno@clisp.org>
67520
67521         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
67522         iconv implementations like Irix iconv.
67523
67524 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67525
67526         * modules/vararrays: New file.
67527         * m4/vararrays.m4: New file, taken from diffutils.
67528         * MODULES.html.sh: New module vararrays.
67529
67530 2006-10-24  Karl Berry  <karl@gnu.org>
67531
67532         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
67533         Don't call GNU Unix.
67534
67535 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67536
67537         * users.txt: Add Libtool.
67538
67539         Sync from Libtool:
67540
67541         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67542
67543         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
67544         to gnulib's policy of including config.h unconditionally.
67545
67546 2006-10-24  Bruno Haible  <bruno@clisp.org>
67547
67548         * modules/wcwidth (Files): Add m4/wint_t.m4.
67549         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
67550         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
67551
67552 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67553
67554         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
67555         to pacify GCC with some -W flags enabled.  Problem reported by
67556         Bruno Haible.
67557
67558 2006-10-24  Jim Meyering  <jim@meyering.net>
67559
67560         * MODULES.html.sh: Remove uinttostr.  It's not a module.
67561         Reported by Karl Berry.
67562
67563 2006-10-23  Bruno Haible  <bruno@clisp.org>
67564
67565         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
67566
67567 2006-10-24  Bruno Haible  <bruno@clisp.org>
67568
67569         * lib/gl_list.h: Use C comment style, not C++ comment style.
67570
67571 2006-10-23  Eric Blake  <ebb9@byu.net>
67572
67573         * lib/getaddrinfo.c (includes): Add missing include.
67574
67575 2006-10-23  Bruno Haible  <bruno@clisp.org>
67576             Paul Eggert  <eggert@cs.ucla.edu>
67577
67578         Ability to rename obstack_free.
67579         * lib/obstack.h (__obstack_free): New macro. Declare instead of
67580         obstack_free.
67581         (obstack_free): Invoke the __obstack_free macro.
67582         * lib/obstack.c (obstack_free): Use __obstack_free macro.
67583
67584 2006-10-23  Bruno Haible  <bruno@clisp.org>
67585             Paul Eggert  <eggert@cs.ucla.edu>
67586
67587         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
67588         __argc, __argv from the declaration. (They are defined as macros on
67589         mingw.)
67590
67591 2006-10-22  Bruno Haible  <bruno@clisp.org>
67592
67593         * doc/gnulib-intro.texi: New file.
67594         * doc/gnulib.texi: Include it.
67595
67596 2006-10-21  Bruno Haible  <bruno@clisp.org>
67597
67598         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
67599         "Introduction", "Miscellanous Notes", "Particular Modules".
67600
67601 2006-10-21  Bruno Haible  <bruno@clisp.org>
67602
67603         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67604         Change mostlyclean-local rule to avoid sh syntax error from bash
67605         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
67606
67607 2006-10-23  Jim Meyering  <jim@meyering.net>
67608
67609         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
67610         in place of snprintf.
67611
67612         * modules/inttostr (Files): Add lib/uinttostr.c.
67613         * lib/uinttostr.c (inttostr): New file/function.
67614         * lib/inttostr.h (uinttostr): Declare.
67615         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
67616         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67617         Add uinttostr.
67618         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
67619
67620 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67621
67622         * lib/canonicalize.c (ELOOP): Define if not already defined.
67623         Problem reported by Bruno Haible in
67624         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
67625
67626 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67627
67628         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
67629         Problem reported by Perry Smith and Ville Laurikari.
67630
67631         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
67632         uses.
67633
67634 2006-10-19  Bruno Haible  <bruno@clisp.org>
67635
67636         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
67637         for mingw.
67638
67639 2006-10-19  Bruno Haible  <bruno@clisp.org>
67640
67641         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
67642         Needed for mingw.
67643
67644 2006-10-19  Bruno Haible  <bruno@clisp.org>
67645
67646         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67647
67648 2006-10-19  Bruno Haible  <bruno@clisp.org>
67649
67650         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67651         it.
67652
67653 2006-10-19  Bruno Haible  <bruno@clisp.org>
67654
67655         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67656         invocation.
67657
67658 2006-10-19  Bruno Haible  <bruno@clisp.org>
67659
67660         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67661         mountlist by default.
67662
67663 2006-10-16  Bruno Haible  <bruno@clisp.org>
67664
67665         * lib/c-strstr.c: Include c-strstr.h.
67666
67667 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67668
67669         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67670         in a slash.
67671
67672 2006-10-18  Bruno Haible  <bruno@clisp.org>
67673
67674         * lib/lock.h [C++]: Wrap definitions in extern "C".
67675
67676 2006-10-18  Bruno Haible  <bruno@clisp.org>
67677
67678         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67679         gl_LIBOBJS list.
67680
67681 2006-10-18  Bruno Haible  <bruno@clisp.org>
67682
67683         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67684
67685 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67686
67687         * lib/xstrtol.h: Include gettext.h.
67688         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67689         Problem reported by Eric Blake.
67690         * modules/xstrtol (Depends-on): Add gettext-h.
67691
67692 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
67693
67694         * lib/strftime.c (advance): New macro.
67695         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
67696         incomplete type, so you can't add 0 to it.  Problem and patch
67697         reported by Eelco Dolstra for dietlibc.
67698
67699 2006-10-18  Jim Meyering  <jim@meyering.net>
67700
67701         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
67702         type for a local, and rename it: s/up/user_proc/.
67703
67704 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
67705
67706         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67707         READ_UTMP_USER_PROCESS.
67708         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67709
67710 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67711
67712         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67713         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67714
67715 2006-10-17  Eric Blake  <ebb9@byu.net>
67716
67717         * lib/sigprocmask.c (sigprocmask): Fix typo.
67718
67719         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67720
67721         * modules/clean-temp (Makefile.am): Don't add to make output...
67722         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67723         config.h.
67724
67725 2006-10-17  Bruno Haible  <bruno@clisp.org>
67726
67727         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67728         differently if DEFAULT_TEXT_DOMAIN is set.
67729
67730 2006-10-16  Bruno Haible  <bruno@clisp.org>
67731
67732         * lib/clean-temp.c: Include fwriteerror.h.
67733
67734 2006-10-16  Bruno Haible  <bruno@clisp.org>
67735
67736         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
67737
67738 2006-10-16  Bruno Haible  <bruno@clisp.org>
67739
67740         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
67741         * lib/sigprocmask.h: Include <sys/types.h>.
67742         (sigset_t): Use the system's definition if present.
67743
67744 2006-10-17  Eric Blake  <ebb9@byu.net>
67745
67746         * lib/xvasprintf.c (includes): Assume config.h.
67747         * lib/xasprintf.c (includes): Likewise.
67748
67749 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67750
67751         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
67752         at least as wide as intmax_t.
67753
67754 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
67755
67756         (Imported from Automake.)
67757         * build-aux/gnupload: Update to version 1.1 of directive file.
67758
67759 2006-10-16  Eric Blake  <ebb9@byu.net>
67760
67761         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67762         match Automake 1.10a.
67763
67764 2006-10-14  Bruno Haible  <bruno@clisp.org>
67765
67766         * modules/sigprocmask: New file.
67767         * lib/sigprocmask.h: New file.
67768         * lib/sigprocmask.c: New file.
67769         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67770         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67771         request sigprocmask.o.
67772         (gl_PREREQ_SIGPROCMASK): New macro.
67773         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67774         (Depends-on): Add sigprocmask.
67775         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67776         gt_SIGNALBLOCKING. Test for 'raise' only once.
67777         * lib/fatal-signal.c: Include sigprocmask.h.
67778         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67779         unblock_fatal_signals): Define always.
67780         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67781         sigprocmask.
67782
67783 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67784
67785         Sync from Automake.
67786         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67787         which incorrectly sets the mode of an existing destination
67788         directory.  In some cases the unpatched install-sh could do the
67789         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67790         system.  We hope this is rare in practice, but it's clearly worth
67791         fixing.  Problem reported by Alex Unleashed in
67792         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67793         Also, don't bother to check for -m bugs unless we're using -m;
67794         suggested by Stepan Kasal.
67795
67796 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67797
67798         Sync from Automake.
67799         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
67800         `-c' flag, so they appear at the same position as in %FASTDEP%
67801         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
67802         which ignores unknown options only after the first non-option.
67803         Bug report against M4 by Nelson H. F. Beebe.
67804
67805 2006-10-13  Jim Meyering  <jim@meyering.net>
67806
67807         Fix a bug in yesterday's change.
67808         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67809         p->fts_statp->st_dev would be used uninitialized.
67810         Ensures that we always call fts_stat on the very first entry.
67811         Miklos Szeredi reported that find -xdev stopped working.
67812
67813 2006-10-12  Bruno Haible  <bruno@clisp.org>
67814
67815         * gnulib-tool (func_get_automake_snippet): Append an automatically
67816         computed EXTRA_DIST augmentation.
67817         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67818         * modules/alloca-opt (Makefile.am): Likewise.
67819         * modules/allocsa (Makefile.am): Likewise.
67820         * modules/arcfour (Makefile.am): Likewise.
67821         * modules/arctwo (Makefile.am): Likewise.
67822         * modules/argmatch (Makefile.am): Likewise.
67823         * modules/argz (Makefile.am): Likewise.
67824         * modules/atexit (Makefile.am): Likewise.
67825         * modules/backupfile (Makefile.am): Likewise.
67826         * modules/byteswap (Makefile.am): Likewise.
67827         * modules/c-strtod (Makefile.am): Likewise.
67828         * modules/c-strtold (Makefile.am): Likewise.
67829         * modules/calloc (Makefile.am): Likewise.
67830         * modules/canon-host (Makefile.am): Likewise.
67831         * modules/canonicalize (Makefile.am): Likewise.
67832         * modules/chdir-long (Makefile.am): Likewise.
67833         * modules/chdir-safer (Makefile.am): Likewise.
67834         * modules/check-version (Makefile.am): Likewise.
67835         * modules/chown (Makefile.am): Likewise.
67836         * modules/cloexec (Makefile.am): Likewise.
67837         * modules/close-stream (Makefile.am): Likewise.
67838         * modules/closeout (Makefile.am): Likewise.
67839         * modules/crc (Makefile.am): Likewise.
67840         * modules/csharpexec (Makefile.am): Likewise.
67841         * modules/cycle-check (Makefile.am): Likewise.
67842         * modules/des (Makefile.am): Likewise.
67843         * modules/dev-ino (Makefile.am): Likewise.
67844         * modules/dirfd (Makefile.am): Likewise.
67845         * modules/dirname (Makefile.am): Likewise.
67846         * modules/dup2 (Makefile.am): Likewise.
67847         * modules/eealloc (Makefile.am): Likewise.
67848         * modules/error (Makefile.am): Likewise.
67849         * modules/euidaccess (Makefile.am): Likewise.
67850         * modules/exclude (Makefile.am): Likewise.
67851         * modules/exitfail (Makefile.am): Likewise.
67852         * modules/fcntl-safer (Makefile.am): Likewise.
67853         * modules/fcntl (Makefile.am): Likewise.
67854         * modules/file-type (Makefile.am): Likewise.
67855         * modules/fileblocks (Makefile.am): Likewise.
67856         * modules/filemode (Makefile.am): Likewise.
67857         * modules/filenamecat (Makefile.am): Likewise.
67858         * modules/fnmatch (Makefile.am): Likewise.
67859         * modules/fopen-safer (Makefile.am): Likewise.
67860         * modules/fpending (Makefile.am): Likewise.
67861         * modules/fprintftime (Makefile.am): Likewise.
67862         * modules/free (Makefile.am): Likewise.
67863         * modules/fsusage (Makefile.am): Likewise.
67864         * modules/ftruncate (Makefile.am): Likewise.
67865         * modules/fts (Makefile.am): Likewise.
67866         * modules/gc-arcfour (Makefile.am): Likewise.
67867         * modules/gc-des (Makefile.am): Likewise.
67868         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67869         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67870         * modules/gc-md4 (Makefile.am): Likewise.
67871         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67872         * modules/gc-sha1 (Makefile.am): Likewise.
67873         * modules/gc (Makefile.am): Likewise.
67874         * modules/getaddrinfo (Makefile.am): Likewise.
67875         * modules/getcwd (Makefile.am): Likewise.
67876         * modules/getdelim (Makefile.am): Likewise.
67877         * modules/getdomainname (Makefile.am): Likewise.
67878         * modules/getgroups (Makefile.am): Likewise.
67879         * modules/gethostname (Makefile.am): Likewise.
67880         * modules/gethrxtime (Makefile.am): Likewise.
67881         * modules/getline (Makefile.am): Likewise.
67882         * modules/getloadavg (Makefile.am): Likewise.
67883         * modules/getlogin_r (Makefile.am): Likewise.
67884         * modules/getndelim2 (Makefile.am): Likewise.
67885         * modules/getopt (Makefile.am): Likewise.
67886         * modules/getpagesize (Makefile.am): Likewise.
67887         * modules/getpass-gnu (Makefile.am): Likewise.
67888         * modules/getpass (Makefile.am): Likewise.
67889         * modules/getsubopt (Makefile.am): Likewise.
67890         * modules/gettime (Makefile.am): Likewise.
67891         * modules/gettimeofday (Makefile.am): Likewise.
67892         * modules/getugroups (Makefile.am): Likewise.
67893         * modules/getusershell (Makefile.am): Likewise.
67894         * modules/glob (Makefile.am): Likewise.
67895         * modules/group-member (Makefile.am): Likewise.
67896         * modules/hard-locale (Makefile.am): Likewise.
67897         * modules/hash (Makefile.am): Likewise.
67898         * modules/hmac-md5 (Makefile.am): Likewise.
67899         * modules/hmac-sha1 (Makefile.am): Likewise.
67900         * modules/human (Makefile.am): Likewise.
67901         * modules/idcache (Makefile.am): Likewise.
67902         * modules/imaxabs (Makefile.am): Likewise.
67903         * modules/imaxdiv (Makefile.am): Likewise.
67904         * modules/inet_ntop (Makefile.am): Likewise.
67905         * modules/inet_pton (Makefile.am): Likewise.
67906         * modules/intprops (Makefile.am): Likewise.
67907         * modules/inttostr (Makefile.am): Likewise.
67908         * modules/inttypes (Makefile.am): Likewise.
67909         * modules/isapipe (Makefile.am): Likewise.
67910         * modules/javaversion (Makefile.am): Likewise.
67911         * modules/lchmod (Makefile.am): Likewise.
67912         * modules/lchown (Makefile.am): Likewise.
67913         * modules/localcharset (Makefile.am): Likewise.
67914         * modules/long-options (Makefile.am): Likewise.
67915         * modules/lstat (Makefile.am): Likewise.
67916         * modules/malloc (Makefile.am): Likewise.
67917         * modules/mathl (Makefile.am): Likewise.
67918         * modules/mbchar (Makefile.am): Likewise.
67919         * modules/md2 (Makefile.am): Likewise.
67920         * modules/md4 (Makefile.am): Likewise.
67921         * modules/md5 (Makefile.am): Likewise.
67922         * modules/memcasecmp (Makefile.am): Likewise.
67923         * modules/memchr (Makefile.am): Likewise.
67924         * modules/memcmp (Makefile.am): Likewise.
67925         * modules/memcoll (Makefile.am): Likewise.
67926         * modules/memcpy (Makefile.am): Likewise.
67927         * modules/memmem (Makefile.am): Likewise.
67928         * modules/memmove (Makefile.am): Likewise.
67929         * modules/mempcpy (Makefile.am): Likewise.
67930         * modules/memrchr (Makefile.am): Likewise.
67931         * modules/memset (Makefile.am): Likewise.
67932         * modules/memxor (Makefile.am): Likewise.
67933         * modules/mkancesdirs (Makefile.am): Likewise.
67934         * modules/mkdir-p (Makefile.am): Likewise.
67935         * modules/mkdir (Makefile.am): Likewise.
67936         * modules/mkdtemp (Makefile.am): Likewise.
67937         * modules/mkstemp (Makefile.am): Likewise.
67938         * modules/mktime (Makefile.am): Likewise.
67939         * modules/modechange (Makefile.am): Likewise.
67940         * modules/mountlist (Makefile.am): Likewise.
67941         * modules/nanosleep (Makefile.am): Likewise.
67942         * modules/obstack (Makefile.am): Likewise.
67943         * modules/openat (Makefile.am): Likewise.
67944         * modules/pagealign_alloc (Makefile.am): Likewise.
67945         * modules/pathmax (Makefile.am): Likewise.
67946         * modules/physmem (Makefile.am): Likewise.
67947         * modules/poll (Makefile.am): Likewise.
67948         * modules/posixtm (Makefile.am): Likewise.
67949         * modules/posixver (Makefile.am): Likewise.
67950         * modules/putenv (Makefile.am): Likewise.
67951         * modules/quote (Makefile.am): Likewise.
67952         * modules/quotearg (Makefile.am): Likewise.
67953         * modules/raise (Makefile.am): Likewise.
67954         * modules/read-file (Makefile.am): Likewise.
67955         * modules/readline (Makefile.am): Likewise.
67956         * modules/readlink (Makefile.am): Likewise.
67957         * modules/readtokens (Makefile.am): Likewise.
67958         * modules/readutmp (Makefile.am): Likewise.
67959         * modules/realloc (Makefile.am): Likewise.
67960         * modules/regex (Makefile.am): Likewise.
67961         * modules/rename-dest-slash (Makefile.am): Likewise.
67962         * modules/rename (Makefile.am): Likewise.
67963         * modules/rijndael (Makefile.am): Likewise.
67964         * modules/rmdir (Makefile.am): Likewise.
67965         * modules/rpmatch (Makefile.am): Likewise.
67966         * modules/safe-read (Makefile.am): Likewise.
67967         * modules/safe-write (Makefile.am): Likewise.
67968         * modules/same-inode (Makefile.am): Likewise.
67969         * modules/same (Makefile.am): Likewise.
67970         * modules/save-cwd (Makefile.am): Likewise.
67971         * modules/savedir (Makefile.am): Likewise.
67972         * modules/setenv (Makefile.am): Likewise.
67973         * modules/settime (Makefile.am): Likewise.
67974         * modules/sha1 (Makefile.am): Likewise.
67975         * modules/sig2str (Makefile.am): Likewise.
67976         * modules/snprintf (Makefile.am): Likewise.
67977         * modules/stat-macros (Makefile.am): Likewise.
67978         * modules/stat-time (Makefile.am): Likewise.
67979         * modules/stdbool (Makefile.am): Likewise.
67980         * modules/stdint (Makefile.am): Likewise.
67981         * modules/stdlib-safer (Makefile.am): Likewise.
67982         * modules/stpcpy (Makefile.am): Likewise.
67983         * modules/stpncpy (Makefile.am): Likewise.
67984         * modules/strcase (Makefile.am): Likewise.
67985         * modules/strcasestr (Makefile.am): Likewise.
67986         * modules/strchrnul (Makefile.am): Likewise.
67987         * modules/strcspn (Makefile.am): Likewise.
67988         * modules/strdup (Makefile.am): Likewise.
67989         * modules/strerror (Makefile.am): Likewise.
67990         * modules/strftime (Makefile.am): Likewise.
67991         * modules/strndup (Makefile.am): Likewise.
67992         * modules/strnlen (Makefile.am): Likewise.
67993         * modules/strpbrk (Makefile.am): Likewise.
67994         * modules/strsep (Makefile.am): Likewise.
67995         * modules/strstr (Makefile.am): Likewise.
67996         * modules/strtod (Makefile.am): Likewise.
67997         * modules/strtoimax (Makefile.am): Likewise.
67998         * modules/strtok_r (Makefile.am): Likewise.
67999         * modules/strtol (Makefile.am): Likewise.
68000         * modules/strtoll (Makefile.am): Likewise.
68001         * modules/strtoul (Makefile.am): Likewise.
68002         * modules/strtoull (Makefile.am): Likewise.
68003         * modules/strtoumax (Makefile.am): Likewise.
68004         * modules/strverscmp (Makefile.am): Likewise.
68005         * modules/sys_socket (Makefile.am): Likewise.
68006         * modules/sys_stat (Makefile.am): Likewise.
68007         * modules/sysexits (Makefile.am): Likewise.
68008         * modules/time_r (Makefile.am): Likewise.
68009         * modules/timegm (Makefile.am): Likewise.
68010         * modules/timespec (Makefile.am): Likewise.
68011         * modules/tmpfile-safer (Makefile.am): Likewise.
68012         * modules/trim (Makefile.am): Likewise.
68013         * modules/unistd-safer (Makefile.am): Likewise.
68014         * modules/unlinkdir (Makefile.am): Likewise.
68015         * modules/unlocked-io (Makefile.am): Likewise.
68016         * modules/userspec (Makefile.am): Likewise.
68017         * modules/utime (Makefile.am): Likewise.
68018         * modules/utimecmp (Makefile.am): Likewise.
68019         * modules/utimens (Makefile.am): Likewise.
68020         * modules/vasnprintf (Makefile.am): Likewise.
68021         * modules/vasprintf (Makefile.am): Likewise.
68022         * modules/vsnprintf (Makefile.am): Likewise.
68023         * modules/xalloc (Makefile.am): Likewise.
68024         * modules/xgetcwd (Makefile.am): Likewise.
68025         * modules/xnanosleep (Makefile.am): Likewise.
68026         * modules/xreadlink (Makefile.am): Likewise.
68027         * modules/xstrtod (Makefile.am): Likewise.
68028         * modules/xstrtol (Makefile.am): Likewise.
68029         * modules/xstrtold (Makefile.am): Likewise.
68030         * modules/yesno (Makefile.am): Likewise.
68031         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
68032
68033 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68034
68035         * modules/error (Makefile.am): Distribute files through
68036         EXTRA_DIST, not lib_SOURCES.
68037
68038 2006-10-12  Eric Blake  <ebb9@byu.net>
68039
68040         * modules/error (Makefile.am): Distribute files in /lib.
68041         * modules/obstack (Makefile.am): Likewise.
68042
68043 2006-10-12  Bruno Haible  <bruno@clisp.org>
68044
68045         * modules/acl (Makefile.am): Distribute all files in lib/ through
68046         EXTRA_DIST.
68047         * modules/arcfour (Makefile.am): Likewise.
68048         * modules/arctwo (Makefile.am): Likewise.
68049         * modules/argmatch (Makefile.am): Likewise.
68050         * modules/argz (Makefile.am): Likewise.
68051         * modules/atexit (Makefile.am): Likewise.
68052         * modules/backupfile (Makefile.am): Likewise.
68053         * modules/c-strtod (Makefile.am): Likewise.
68054         * modules/c-strtold (Makefile.am): Likewise.
68055         * modules/calloc (Makefile.am): Likewise.
68056         * modules/canon-host (Makefile.am): Likewise.
68057         * modules/canonicalize (Makefile.am): Likewise.
68058         * modules/chdir-long (Makefile.am): Likewise.
68059         * modules/chdir-safer (Makefile.am): Likewise.
68060         * modules/check-version (Makefile.am): Likewise.
68061         * modules/chown (Makefile.am): Likewise.
68062         * modules/cloexec (Makefile.am): Likewise.
68063         * modules/close-stream (Makefile.am): Likewise.
68064         * modules/closeout (Makefile.am): Likewise.
68065         * modules/crc (Makefile.am): Likewise.
68066         * modules/cycle-check (Makefile.am): Likewise.
68067         * modules/des (Makefile.am): Likewise.
68068         * modules/dirfd (Makefile.am): Likewise.
68069         * modules/dirname (Makefile.am): Likewise.
68070         * modules/dup2 (Makefile.am): Likewise.
68071         * modules/euidaccess (Makefile.am): Likewise.
68072         * modules/exclude (Makefile.am): Likewise.
68073         * modules/exitfail (Makefile.am): Likewise.
68074         * modules/fcntl-safer (Makefile.am): Likewise.
68075         * modules/file-type (Makefile.am): Likewise.
68076         * modules/fileblocks (Makefile.am): Likewise.
68077         * modules/filemode (Makefile.am): Likewise.
68078         * modules/filenamecat (Makefile.am): Likewise.
68079         * modules/fnmatch (Makefile.am): Likewise.
68080         * modules/fopen-safer (Makefile.am): Likewise.
68081         * modules/fpending (Makefile.am): Likewise.
68082         * modules/fprintftime (Makefile.am): Likewise.
68083         * modules/free (Makefile.am): Likewise.
68084         * modules/fsusage (Makefile.am): Likewise.
68085         * modules/ftruncate (Makefile.am): Likewise.
68086         * modules/fts (Makefile.am): Likewise.
68087         * modules/gc (Makefile.am): Likewise.
68088         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68089         * modules/getaddrinfo (Makefile.am): Likewise.
68090         * modules/getcwd (Makefile.am): Likewise.
68091         * modules/getdelim (Makefile.am): Likewise.
68092         * modules/getdomainname (Makefile.am): Likewise.
68093         * modules/getgroups (Makefile.am): Likewise.
68094         * modules/gethostname (Makefile.am): Likewise.
68095         * modules/gethrxtime (Makefile.am): Likewise.
68096         * modules/getline (Makefile.am): Likewise.
68097         * modules/getloadavg (Makefile.am): Likewise.
68098         * modules/getlogin_r (Makefile.am): Likewise.
68099         * modules/getopt (Makefile.am): Likewise.
68100         * modules/getpass (Makefile.am): Likewise.
68101         * modules/getpass-gnu (Makefile.am): Likewise.
68102         * modules/getsubopt (Makefile.am): Likewise.
68103         * modules/gettime (Makefile.am): Likewise.
68104         * modules/gettimeofday (Makefile.am): Likewise.
68105         * modules/getugroups (Makefile.am): Likewise.
68106         * modules/getusershell (Makefile.am): Likewise.
68107         * modules/glob (Makefile.am): Likewise.
68108         * modules/group-member (Makefile.am): Likewise.
68109         * modules/hard-locale (Makefile.am): Likewise.
68110         * modules/hash (Makefile.am): Likewise.
68111         * modules/hmac-md5 (Makefile.am): Likewise.
68112         * modules/hmac-sha1 (Makefile.am): Likewise.
68113         * modules/human (Makefile.am): Likewise.
68114         * modules/idcache (Makefile.am): Likewise.
68115         * modules/imaxabs (Makefile.am): Likewise.
68116         * modules/imaxdiv (Makefile.am): Likewise.
68117         * modules/inet_ntop (Makefile.am): Likewise.
68118         * modules/inet_pton (Makefile.am): Likewise.
68119         * modules/inttostr (Makefile.am): Likewise.
68120         * modules/isapipe (Makefile.am): Likewise.
68121         * modules/lchown (Makefile.am): Likewise.
68122         * modules/long-options (Makefile.am): Likewise.
68123         * modules/lstat (Makefile.am): Likewise.
68124         * modules/malloc (Makefile.am): Likewise.
68125         * modules/mathl (Makefile.am): Likewise.
68126         * modules/mbchar (Makefile.am): Likewise.
68127         * modules/md2 (Makefile.am): Likewise.
68128         * modules/md4 (Makefile.am): Likewise.
68129         * modules/md5 (Makefile.am): Likewise.
68130         * modules/memcasecmp (Makefile.am): Likewise.
68131         * modules/memchr (Makefile.am): Likewise.
68132         * modules/memcmp (Makefile.am): Likewise.
68133         * modules/memcoll (Makefile.am): Likewise.
68134         * modules/memcpy (Makefile.am): Likewise.
68135         * modules/memmem (Makefile.am): Likewise.
68136         * modules/memmove (Makefile.am): Likewise.
68137         * modules/mempcpy (Makefile.am): Likewise.
68138         * modules/memrchr (Makefile.am): Likewise.
68139         * modules/memset (Makefile.am): Likewise.
68140         * modules/memxor (Makefile.am): Likewise.
68141         * modules/mkancesdirs (Makefile.am): Likewise.
68142         * modules/mkdir (Makefile.am): Likewise.
68143         * modules/mkdir-p (Makefile.am): Likewise.
68144         * modules/mkdtemp (Makefile.am): Likewise.
68145         * modules/mkstemp (Makefile.am): Likewise.
68146         * modules/mktime (Makefile.am): Likewise.
68147         * modules/modechange (Makefile.am): Likewise.
68148         * modules/mountlist (Makefile.am): Likewise.
68149         * modules/nanosleep (Makefile.am): Likewise.
68150         * modules/openat (Makefile.am): Likewise.
68151         * modules/pagealign_alloc (Makefile.am): Likewise.
68152         * modules/physmem (Makefile.am): Likewise.
68153         * modules/poll (Makefile.am): Likewise.
68154         * modules/posixtm (Makefile.am): Likewise.
68155         * modules/posixver (Makefile.am): Likewise.
68156         * modules/putenv (Makefile.am): Likewise.
68157         * modules/quote (Makefile.am): Likewise.
68158         * modules/quotearg (Makefile.am): Likewise.
68159         * modules/raise (Makefile.am): Likewise.
68160         * modules/read-file (Makefile.am): Likewise.
68161         * modules/readline (Makefile.am): Likewise.
68162         * modules/readlink (Makefile.am): Likewise.
68163         * modules/readtokens (Makefile.am): Likewise.
68164         * modules/readutmp (Makefile.am): Likewise.
68165         * modules/realloc (Makefile.am): Likewise.
68166         * modules/regex (Makefile.am): Likewise.
68167         * modules/rename (Makefile.am): Likewise.
68168         * modules/rename-dest-slash (Makefile.am): Likewise.
68169         * modules/rijndael (Makefile.am): Likewise.
68170         * modules/rmdir (Makefile.am): Likewise.
68171         * modules/rpmatch (Makefile.am): Likewise.
68172         * modules/safe-read (Makefile.am): Likewise.
68173         * modules/safe-write (Makefile.am): Likewise.
68174         * modules/same (Makefile.am): Likewise.
68175         * modules/save-cwd (Makefile.am): Likewise.
68176         * modules/savedir (Makefile.am): Likewise.
68177         * modules/setenv (Makefile.am): Likewise.
68178         * modules/settime (Makefile.am): Likewise.
68179         * modules/sha1 (Makefile.am): Likewise.
68180         * modules/sig2str (Makefile.am): Likewise.
68181         * modules/snprintf (Makefile.am): Likewise.
68182         * modules/stdlib-safer (Makefile.am): Likewise.
68183         * modules/stpcpy (Makefile.am): Likewise.
68184         * modules/stpncpy (Makefile.am): Likewise.
68185         * modules/strcase (Makefile.am): Likewise.
68186         * modules/strcasestr (Makefile.am): Likewise.
68187         * modules/strchrnul (Makefile.am): Likewise.
68188         * modules/strcspn (Makefile.am): Likewise.
68189         * modules/strdup (Makefile.am): Likewise.
68190         * modules/strerror (Makefile.am): Likewise.
68191         * modules/strftime (Makefile.am): Likewise.
68192         * modules/strndup (Makefile.am): Likewise.
68193         * modules/strnlen (Makefile.am): Likewise.
68194         * modules/strpbrk (Makefile.am): Likewise.
68195         * modules/strsep (Makefile.am): Likewise.
68196         * modules/strstr (Makefile.am): Likewise.
68197         * modules/strtod (Makefile.am): Likewise.
68198         * modules/strtoimax (Makefile.am): Likewise.
68199         * modules/strtok_r (Makefile.am): Likewise.
68200         * modules/strtol (Makefile.am): Likewise.
68201         * modules/strtoll (Makefile.am): Likewise.
68202         * modules/strtoul (Makefile.am): Likewise.
68203         * modules/strtoull (Makefile.am): Likewise.
68204         * modules/strtoumax (Makefile.am): Likewise.
68205         * modules/strverscmp (Makefile.am): Likewise.
68206         * modules/time_r (Makefile.am): Likewise.
68207         * modules/timegm (Makefile.am): Likewise.
68208         * modules/tmpfile-safer (Makefile.am): Likewise.
68209         * modules/unistd-safer (Makefile.am): Likewise.
68210         * modules/unlinkdir (Makefile.am): Likewise.
68211         * modules/userspec (Makefile.am): Likewise.
68212         * modules/utime (Makefile.am): Likewise.
68213         * modules/utimecmp (Makefile.am): Likewise.
68214         * modules/utimens (Makefile.am): Likewise.
68215         * modules/vasnprintf (Makefile.am): Likewise.
68216         * modules/vasprintf (Makefile.am): Likewise.
68217         * modules/vsnprintf (Makefile.am): Likewise.
68218         * modules/xalloc (Makefile.am): Likewise.
68219         * modules/xgetcwd (Makefile.am): Likewise.
68220         * modules/xnanosleep (Makefile.am): Likewise.
68221         * modules/xreadlink (Makefile.am): Likewise.
68222         * modules/xstrtod (Makefile.am): Likewise.
68223         * modules/xstrtol (Makefile.am): Likewise.
68224         * modules/xstrtold (Makefile.am): Likewise.
68225         * modules/yesno (Makefile.am): Likewise.
68226
68227 2006-10-12  Jim Meyering  <jim@meyering.net>
68228
68229         * m4/getloadavg.m4: Revert the change below.
68230
68231         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
68232         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
68233         fail with a symlink, which is what coreutils' ./bootstrap now
68234         creates by default.
68235
68236 2006-10-12  Bruno Haible  <bruno@clisp.org>
68237
68238         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
68239         mingw.
68240         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
68241         MSVC and mingw explicitly.
68242
68243 2006-10-11  Simon Josefsson  <jas@extundo.com>
68244             Bruno Haible  <bruno@clisp.org>
68245
68246         Add support for multiple gnulib-tool invocations in the scope of a
68247         single configure.ac file.
68248         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
68249         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
68250         with the same contents as the _LIBADD variable.
68251         (func_emit_initmacro_start, func_emit_initmacro_end,
68252         func_emit_initmacro_done): New functions.
68253         (func_import, func_create_testdir): Invoke them. Allow the identifiers
68254         gl_LIBOBJS and gl_LTLIBOBJS.
68255
68256 2006-10-11  Bruno Haible  <bruno@clisp.org>
68257
68258         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
68259         (func_create_testdir): Don't create po/Makefile.am, don't invoke
68260         autoreconf. Instead, invoke autopoint explicitly but move back the
68261         *.m4 files from gnulib.
68262
68263 2006-10-11  Bruno Haible  <bruno@clisp.org>
68264
68265         * gnulib-tool (func_usage): Make module names after --create-testdir
68266         optional.
68267         (func_create_testdir): If no module was specified, use nearly all
68268         modules.
68269
68270 2006-10-12  Jim Meyering  <jim@meyering.net>
68271
68272         Big performance improvement for fts-based tools that use FTS_NOSTAT.
68273         Avoid spurious inode-mismatch problems on non-POSIX file systems.
68274         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
68275         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
68276         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
68277         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
68278         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
68279         (fts_set_stat_required): New function.
68280         (fts_open): Defer the calls to fts_stat, if possible or requested.
68281         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
68282         into fts_stat itself.
68283         (fts_read): Perform any required (deferred) fts_stat call.
68284         (fts_build): Likewise, for the directory we're about to open and read.
68285         In the readdir loop, carefully decide whether each entry will require
68286         an eventual call to fts_stat, using dirent.d_type info if available.
68287         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
68288         a command line argument into this function.  Update all callers.
68289         Map a return value of FTS_DOT to FTS_D for a command line argument.
68290         * modules/fts (Depends-on): Add d-type.  Alphabetize.
68291         Thanks to Miklos Szeredi for his tenacity and for the initial
68292         bug report about "find" failing on a FUSE-based file system.
68293
68294         * lib/fts.c (fts_open): Use consistent indentation.
68295
68296 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68297
68298         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
68299         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
68300         reported by Jim Meyering.  All uses of cache variables renamed
68301         to match Autoconf's.
68302         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
68303         the other one.
68304
68305         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
68306         Fix misspelling in diagnostic.
68307
68308 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68309
68310         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
68311         defined.  Problem reported by Matthew Woehlke.
68312
68313         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
68314         Add support for Tandem NonStop R series.
68315         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
68316         Use new macro.
68317
68318         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
68319         (has_trailing_slash): Omit size arg; all callers changed.
68320         Omit 'inline', since it doesn't help performance and we'd
68321         need to configure it.
68322         Don't count //, ///, etc. as having a trailing slash.
68323         As a side effect, this removes a C99ism reported by Matthew Woehlke.
68324         (rpl_rename_dest_slash): On failure, use rename's errno rather
68325         than (in some cases) an incorrect or junk errno.
68326         Simplify code by removing need to compute length; this does
68327         cause it to make two passes instead of one over the file name,
68328         but it's worth it.
68329
68330         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
68331         change, since Autoconf's version may no longer be appropriate now
68332         that we are using CVS Autoconf's version.  Add support for Tandem.
68333
68334 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68335             Bruno Haible  <bruno@clisp.org>
68336
68337         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
68338         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
68339         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
68340         gl_AC_TYPE_LONG_LONG.
68341
68342         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
68343         instead of HAVE_LONG_LONG.
68344         * lib/printf-args.c (printf_fetchargs): Likewise.
68345         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
68346         * lib/vasnprintf.c (VASNPRINTF): Likewise.
68347         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
68348         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
68349         gl_AC_TYPE_LONG_LONG.
68350
68351 2006-10-11  Bruno Haible  <bruno@clisp.org>
68352
68353         * m4/longlong.m4: Add comments.
68354         * m4/ulonglong.m4: Likewise.
68355
68356 2006-10-10  Bruno Haible  <bruno@clisp.org>
68357
68358         Make it possible to #define stpcpy, strdup to aliases.
68359         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
68360         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
68361
68362 2006-10-10  Bruno Haible  <bruno@clisp.org>
68363
68364         Make it possible to #define gcd to an alias.
68365         * lib/gcd.c: Include config.h.
68366
68367 2006-10-10  Bruno Haible  <bruno@clisp.org>
68368
68369         Make it possible to #define c_isascii to an alias.
68370         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
68371         defined. Undefine the macros before defining them, to avoid gcc
68372         warnings.
68373         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
68374         define NO_C_CTYPE_MACROS early.
68375
68376 2006-10-10  Bruno Haible  <bruno@clisp.org>
68377
68378         Make it possible to #define set_program_name to an alias.
68379         * lib/progname.c: Don't undefine set_program_name; instead, undefine
68380         ENABLE_RELOCATABLE early.
68381
68382 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68383
68384         Port to Tandem NSK OSS, which has 64-bit signed int but at most
68385         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
68386         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
68387         More generally, don't assume that 64-bit signed int is available
68388         if unsigned int is, and vice versa.
68389         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
68390         unsigned symbols, not on their signed counterparts.
68391         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
68392         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
68393         (UINT64_C, UINTMAX_C):
68394         Likewise.
68395         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
68396         unsigned counterparts.
68397         (Have_long_long, Unsigned): New macros.
68398         (Int): Renamed from INT.
68399         (strtoimax): Use the new macros.
68400         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
68401         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
68402         * modules/inttypes (inttypes.h): Substitute
68403         HAVE_UNSIGNED_LONG_LONG_INT.
68404         * modules/stdint (stdint.h): Likewise.
68405         (Files): Add m4/ulonglong.m4.
68406
68407 2006-10-10  Bruno Haible  <bruno@clisp.org>
68408
68409         Fix a gcc -Wshadow warning.
68410         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
68411         to 'bucket'.
68412         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
68413         gl_linked_indexof_from_to): Likewise.
68414         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
68415         Likewise.
68416         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
68417         Likewise.
68418         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
68419         Reported by Eric Blake.
68420
68421 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
68422
68423         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
68424         for NetBSD.  Problem reported by Bruno Haible.
68425
68426 2006-10-09  Jim Meyering  <jim@meyering.net>
68427
68428         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
68429         Patch from Bruno Haible.
68430
68431 2006-10-09  Jim Meyering  <jim@meyering.net>
68432
68433         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
68434         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
68435         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
68436
68437 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68438
68439         Don't include <config.h> twice; this doesn't work in some cases,
68440         e.g., when config.h has "#define intmax_t long long int" and
68441         we include <config.h>, <inttypes.h>, <config.h> in that order.
68442         Problem reported by Matthew Woehlke in:
68443         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
68444         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
68445         * lib/fts-cycle.c: Don't include config.h.
68446         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
68447         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
68448         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
68449         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
68450         inttypes.h.
68451         * lib/xstrtoumax.c: Likewise.
68452         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
68453         __strtol and the like, so that this module is more like its siblings.
68454         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
68455         Remove; no longer needed now that we assume gnulib inttypes.h.
68456
68457 2006-10-08  Bruno Haible  <bruno@clisp.org>
68458
68459         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
68460         option.
68461
68462 2006-10-07  Jim Meyering  <jim@meyering.net>
68463
68464         * modules/inttypes (inttypes.h): Revert what seems to have been
68465         an inadvertent part of today's change: use "|", not "/" in the
68466         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
68467
68468 2006-10-07  Bruno Haible  <bruno@clisp.org>
68469
68470         * modules/sublist: New file.
68471
68472 2006-10-07  Bruno Haible  <bruno@clisp.org>
68473
68474         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
68475         * modules/argz (argz.h): Likewise.
68476         * modules/arpa_inet (arpa/inet.h): Likewise.
68477         * modules/byteswap (byteswap.h): Likewise.
68478         * modules/configmake (configmake.h): Likewise.
68479         * modules/fcntl (fcntl.h): Likewise.
68480         * modules/fnmatch (fnmatch.h): Likewise.
68481         * modules/getopt (getopt.h): Likewise.
68482         * modules/glob (glob.h): Likewise.
68483         * modules/inttypes (inttypes.h): Likewise.
68484         * modules/netinet_in (netinet/in.h): Likewise.
68485         * modules/poll (poll.h): Likewise.
68486         * modules/stdbool (stdbool.h): Likewise.
68487         * modules/stdint (stdint.h): Likewise.
68488         * modules/sys_select (sys/select.h): Likewise.
68489         * modules/sys_socket (sys/socket.h): Likewise.
68490         * modules/sys_stat (sys/stat.h): Likewise.
68491         * modules/sysexits (sysexits.h): Likewise.
68492         * modules/unistd (unistd.h): Likewise.
68493         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68494         Add a "DO NOT EDIT" comment to the generated file.
68495         (func_import): Likewise for gnulib-comp.m4.
68496
68497 2006-10-07  Bruno Haible  <bruno@clisp.org>
68498
68499         * lib/gl_sublist.h: New file.
68500         * lib/gl_sublist.c: New file.
68501
68502 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68503
68504         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
68505         name (relative to the original working directory) and the file
68506         name component (relative to the temporary working directory).  All
68507         callers changed.
68508         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
68509         * lib/mkdir-p.c (make_dir_parents): Likewise.
68510         * lib/mkdir-p.h (make_dir_parents): Likewise.
68511
68512 2006-10-06  Eric Blake  <ebb9@byu.net>
68513
68514         Define several macros for use by the clean-temp module.
68515         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
68516         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
68517         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
68518
68519         * lib/clean-temp.h (close_stream_temp): New declaration.
68520         * lib/clean-temp.c (includes): Pull in headers according to what
68521         other modules are in use.
68522         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
68523
68524 2006-10-06  Bruno Haible  <bruno@clisp.org>
68525
68526         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
68527         instead of fopen, fwriteerror.
68528
68529 2006-10-06  Bruno Haible  <bruno@clisp.org>
68530
68531         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
68532         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
68533         int.
68534         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
68535         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
68536         Return an error indicator.
68537         Suggested by Eric Blake.
68538
68539 2006-10-06  Bruno Haible  <bruno@clisp.org>
68540
68541         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
68542         Reported by Eric Blake.
68543
68544 2006-10-06  Bruno Haible  <bruno@clisp.org>
68545
68546         * modules/closeout (Description): Mention stderr too.
68547
68548 2006-10-06  Bruno Haible  <bruno@clisp.org>
68549         and Paul Eggert  <eggert@cs.ucla.edu>
68550
68551         * lib/closeout.c (close_stdout): Also close stderr.
68552         * lib/closeout.h: Update comment.
68553
68554 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68555
68556         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
68557         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
68558         * lib/dirchownmod.c: Include lchown.h.
68559         * lib/lchown.c: Don't include files that lchown.h now includes.
68560         Don't declare chown, since lchown.h now does that.
68561         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
68562         (lchown): Define to rpl_chown if lchown is declared but
68563         does not exist.  Declare using a prototype if lchown is not
68564         declared.  Add a copyright notice.
68565         * lib/mkstemp.h: Include <unistd.h>.
68566         * lib/openat.c: Include lchown.h.
68567
68568         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
68569         we now test for that separately.
68570         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
68571         rather than O_NOFOLLOW, when testing whether it's possible to
68572         avoid a race condition reliably.
68573         * lib/savewd.c (savewd_chdir): Likewise.
68574
68575         Remove macros that are no longer needed now that stdint.h is
68576         reliable.
68577         * lib/fsusage.c (UINTMAX_MAX): Remove.
68578         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
68579         * lib/utimecmp.c (SIZE_MAX): Remove.
68580
68581         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
68582
68583         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
68584         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
68585         O_NOATIME works.
68586
68587 2006-10-05  Bruno Haible  <bruno@clisp.org>
68588
68589         * lib/gl_list.h (gl_sortedlist_search_from_to,
68590         gl_sortedlist_indexof_from_to): New declarations.
68591         (gl_list_implementation): New fields sortedlist_search_from_to,
68592         sortedlist_indexof_from_to.
68593         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
68594         inline functions.
68595         * lib/gl_list.c (gl_sortedlist_search_from_to,
68596         gl_sortedlist_indexof_from_to): New functions.
68597         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
68598         function.
68599         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
68600         (gl_array_sortedlist_search_from_to): New function.
68601         (gl_array_list_implementation): Update.
68602         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
68603         function.
68604         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
68605         (gl_carray_sortedlist_search_from_to): New function.
68606         (gl_carray_list_implementation): Update.
68607         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
68608         gl_linked_sortedlist_indexof_from_to): New functions.
68609         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68610         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68611         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
68612         gl_tree_sortedlist_indexof_from_to): New functions.
68613         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68614         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68615         Update.
68616         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68617         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
68618         Update.
68619
68620 2006-10-05  Bruno Haible  <bruno@clisp.org>
68621
68622         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
68623         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
68624         (struct gl_list_implementation): Add fields search_from_to,
68625         indexof_from_to. Remove fields search, indexof.
68626         (gl_list_search): Use the search_from_to method.
68627         (gl_list_search_from, gl_list_search_from_to): New functions.
68628         (gl_list_indexof): Use the indexof_from_to method.
68629         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68630         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
68631         (gl_list_search_from, gl_list_search_from_to): New functions.
68632         (gl_list_indexof): Use the indexof_from_to method.
68633         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68634         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
68635         gl_array_indexof. Add start_index, end_index arguments.
68636         (gl_array_search_from_to): Renamed from gl_array_search. Add
68637         start_index, end_index arguments.
68638         (gl_array_remove, gl_array_list_implementation): Update.
68639         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
68640         gl_carray_indexof. Add start_index, end_index arguments.
68641         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
68642         start_index, end_index arguments.
68643         (gl_carray_remove, gl_carray_list_implementation): Update.
68644         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68645         gl_linked_search. Add start_index, end_index arguments.
68646         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68647         start_index, end_index arguments.
68648         (gl_linked_remove): Update.
68649         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68650         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68651         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68652         field to 'size_t'.
68653         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
68654         gl_tree_search. Add start_index, end_index arguments.
68655         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68656         start_index, end_index arguments.
68657         (gl_tree_remove): Update.
68658         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68659         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68660         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68661         function.
68662         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68663         gl_tree_search. Add start_index, end_index arguments.
68664         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68665         start_index, end_index arguments.
68666         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68667         Update.
68668         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68669
68670 2006-10-05  Bruno Haible  <bruno@clisp.org>
68671
68672         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68673
68674         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68675         fwriteerror_temp): New declarations.
68676         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68677         (descriptors): New variable.
68678         (cleanup): First, close the descriptors.
68679         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68680         fclose_temp, fwriteerror_temp): New functions.
68681
68682 2006-10-04  Jim Meyering  <jim@meyering.net>
68683
68684         * lib/fts.c (fts_open): Tiny comment change.
68685
68686 2006-10-04  Bruno Haible  <bruno@clisp.org>
68687
68688         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68689         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68690         gl_LOCK_BODY.
68691         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
68692         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
68693         gl_LOCK_EARLY_BODY.
68694         (gl_LOCK): Require gl_LOCK_BODY.
68695
68696 2006-10-04  Bruno Haible  <bruno@clisp.org>
68697
68698         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
68699         (gl_oset_search_atleast): New declaration.
68700         (struct gl_oset_implementation): Add field 'search_atleast'.
68701         (gl_oset_search_atleast): New inline function.
68702         * lib/gl_oset.c (gl_oset_search_atleast): New function.
68703         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
68704         (gl_array_oset_implementation): Update.
68705         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
68706         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68707         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68708
68709 2006-10-04  Bruno Haible  <bruno@clisp.org>
68710
68711         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68712
68713 2006-10-03  Bruno Haible  <bruno@clisp.org>
68714
68715         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68716         from gl_avltreehash_list_implementation.
68717
68718 2006-10-03  Bruno Haible  <bruno@clisp.org>
68719
68720         * lib/gl_oset.c (gl_oset_add): Fix return type.
68721
68722 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68723
68724         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68725
68726 2006-10-02  Eric Blake  <ebb9@byu.net>
68727
68728         * modules/strnlen (Depends-on): Add extensions.
68729
68730 2006-10-02  Eric Blake  <ebb9@byu.net>
68731
68732         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68733         definition in 2.60+.
68734
68735 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
68736
68737         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
68738         checks.
68739
68740 2006-10-02  Bruno Haible  <bruno@clisp.org>
68741
68742         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
68743         to the AUTOMAKE_OPTIONS.
68744         Reported by Jim Meyering.
68745
68746 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68747
68748         Work around bug in Solaris 10 /proc file system:
68749         /proc/self/fd/NNN/.. isn't the parent directory of
68750         the directory whose file descriptor is NNN.  This needs to
68751         be worked around at run time, not compile time, since a
68752         program might be built on Solaris 8, where things work, and
68753         run on Solaris 10.
68754         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
68755         to use the following interface instead:
68756         (OPENAT_BUFFER_SIZE): New macro.
68757         (openat_proc_name): New function.
68758         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68759         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68760         Likewise.
68761         * lib/openat-proc.c: New file.
68762         * modules/openat (Files): Add lib/openat-proc.c.
68763         (Depends-on): Add same-inode, stdbool.
68764         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68765
68766 2006-09-29  Bruno Haible  <bruno@clisp.org>
68767
68768         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68769         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68770         argument. Set stdout_closed before testing for ferror, not after.
68771         (fwriteerror, fwriteerror_no_ebadf): New functions.
68772
68773 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68774
68775         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68776
68777 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68778
68779         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68780         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68781
68782 2006-09-28  Jim Meyering  <jim@meyering.net>
68783
68784         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68785         Include <unistd.h>.
68786
68787 2006-09-28  Bruno Haible  <bruno@clisp.org>
68788
68789         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68790         * modules/linkedhash-list (Depends-on): Likewise.
68791         * modules/rbtreehash-list (Depends-on): Likewise.
68792
68793 2006-09-28  Bruno Haible  <bruno@clisp.org>
68794
68795         * lib/strndup.h: Simplify the redefinition of strndup.
68796         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
68797         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
68798
68799 2006-09-28  Bruno Haible  <bruno@clisp.org>
68800
68801         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
68802         * lib/gl_linkedhash_list.c: Likewise.
68803         * lib/gl_rbtreehash_list.c: Likewise.
68804
68805 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68806
68807         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
68808         getaddrinfo.
68809
68810         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68811         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68812         it causes <stdio_ext.h> to cause a compile-time error.
68813         Problem reported by Nelson H. F. Beebe.
68814         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68815         of HAVE_DECL___PENDING.
68816
68817         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68818         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68819         declaration.
68820
68821 2006-09-27  Jim Meyering  <jim@meyering.net>
68822
68823         This file could end up with a definition for a function
68824         named __strndup, rather than rpl_strndup on a system with
68825         incomplete weak_alias support.
68826         * lib/strndup.c (strndup): Rename from __strndup.
68827         Remove #defines that used to map __strndup to strndup.
68828         Don't use K&R prototypes.
68829         Remove LIBC-related code, since this file is not sync'd with glibc.
68830         * lib/strndup.h: Revamp, accordingly.
68831         * m4/strndup.m4: Modernize.
68832
68833 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68834
68835         * modules/savewd (Depends-on): Add 'raise'.
68836         * lib/savewd.c: Include <signal.h>, for 'raise'.
68837
68838 2006-09-26  Jim Meyering  <jim@meyering.net>
68839
68840         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68841         when we detect Darwin 8.7.0's acl_get_file bug.
68842         Rearrange to perform the new (below) run-test while $LIBS
68843         contains any acl-related library.  Set USE_ACL at the end.
68844         (gl_ACL_GET_FILE): New function.
68845
68846 2006-09-26  Eric Blake  <ebb9@byu.net>
68847
68848         * lib/verror.c: Include <config.h> unconditionally.
68849
68850 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68851
68852         * modules/clock-time (Maintainer): Add self.
68853         * modules/getlogin_r (Depends-on): Add extensions.
68854
68855 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68856
68857         * modules/clock-time: New module.
68858         * modules/nanosleep (Depends-on): Add clock-time.
68859         * modules/gethrxtime (Depends-on): Likewise.
68860         * modules/gettime (Depends-on): Likewise.
68861         * modules/settime (Depends-on): Likewise.
68862
68863         * modules/fts-lgpl: Depend on openat.
68864         * modules/mkancesdirs: Depend on savewd.
68865         * modules/mkdir-p: Likewise.
68866
68867 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68868
68869         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68870
68871         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68872         `gl_have_arbitrary_file_name_length_limit' to
68873         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68874         actually works between configure runs.
68875
68876 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68877             Bruno Haible  <bruno@clisp.org>
68878
68879         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68880
68881 2006-09-25  Jim Meyering  <jim@meyering.net>
68882
68883         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68884         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68885
68886 2006-09-25  Eric Blake  <ebb9@byu.net>
68887
68888         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68889         exec's in 2006-09-18 patch when shuffling fds.
68890
68891 2006-09-25  Bruno Haible  <bruno@clisp.org>
68892
68893         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68894         Reported by Jim Meyering.
68895
68896 2006-09-24  Jim Meyering  <jim@meyering.net>
68897
68898         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68899         compare a pointer against a literal "0".  That caused failures with
68900         at least HP-UX's hpcc.
68901
68902 2006-09-22  Simon Josefsson  <jas@extundo.com>
68903
68904         * modules/gc-sha1:
68905         * modules/gc-md4:
68906         * modules/gc-hmac-sha1:
68907         * modules/gc-hmac-md5:
68908         * modules/gc-des:
68909         * modules/gc-arcfour: Distribute more files.
68910
68911 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68912
68913         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68914         (gl_linked_iterator_from_to): Initialize struct completely.
68915         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68916         (gl_tree_iterator_from_to): Likewise
68917         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68918         * lib/gl_array_list.c [lint] (gl_array_iterator)
68919         (gl_array_iterator_from_to): Likewise.
68920         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68921         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68922         (gl_carray_iterator_from_to): Likewise.
68923
68924         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68925         * lib/md4.c (md4_process_block): Remove unused variable.
68926         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68927         parentheses for clarity.
68928
68929 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68930
68931         * modules/bison-i18n (Depends-on): Add gettext.
68932
68933 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68934
68935         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68936         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68937         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68938         also add missing comma that caused broken test.
68939         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68940         stdlib.h, for `abort'.
68941         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68942         variables.
68943         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68944         include unistd.h if present, for `rmdir'.
68945         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68946         variables.
68947         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68948         in the process include standard headers for prototypes.
68949         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68950         gets declared on GNU/Linux.
68951         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68952         unistd.h, for `rmdir'.
68953         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68954
68955         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68956         always true.
68957         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68958
68959         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68960
68961 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68962
68963         * gnulib-tool (func_version): Create output all at once.  This
68964         may help avoid triggering unnecessary SIGPIPEs, and at any
68965         rate it doesn't hurt.
68966
68967 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68968             Bruno Haible  <bruno@clisp.org>
68969
68970         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68971         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68972         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68973
68974         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68975         (gl_FUNC_VASPRINTF): Invoke it.
68976
68977 2006-09-22  Bruno Haible  <bruno@clisp.org>
68978
68979         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68980         getloadavg.c as first argument.
68981
68982 2006-09-22  Bruno Haible  <bruno@clisp.org>
68983
68984         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68985         at the beginning of the gl_INIT macro.
68986         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68987         gl_GETLOADAVG.
68988
68989 2006-09-22  Bruno Haible  <bruno@clisp.org>
68990
68991         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68992         module.
68993         Suggested by Ralf Wildenhues.
68994
68995 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68996
68997         Import this patch from libc:
68998
68999         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
69000
69001         * lib/regex_internal.c (re_string_reconstruct): Handle
69002         offset < pstr->valid_raw_len && pstr->offsets_needed case.
69003         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
69004         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
69005         re_string_context_at.
69006
69007         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
69008         now requires it.
69009         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
69010         gl_REGEX now does it for us.
69011         (gl_REGEX): Add test taken from
69012         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
69013
69014         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
69015         Check that large offsets work.  Modernize Autoconf usages.
69016         Prefer "yes" to mean a good thing rather than a bad.
69017         Don't put "#define mkstemp" in config.h, as this might interfere
69018         with standard system headers that "#define mkstemp mkstemp64".
69019
69020         * modules/mkstemp (Depends-on): Add extensions, so that
69021         mkstemp is visible on some platforms.
69022         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
69023         (Include): Change to "mkstemp.h" from <stdlib.h>.
69024         (Files): Add mkstemp.h.
69025
69026         * lib/mkstemp.h: New file, since some standard headers
69027         #define mkstemp.
69028         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
69029         Include "mkstemp.h".
69030         Make the _LIBC code resemble glibc original more,
69031         e.g., use K&R style.
69032         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
69033         (mkstemp): Remove, since mkstemp.h does this for us.
69034         * lib/stdlib--.h: Include mkstemp.h.
69035
69036         Import this patch from libc:
69037
69038         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69039
69040         * lib/tempname.c (__gen_tempname): Change attempts_min
69041         into a macro.  Use preprocessor to decide how to initialize
69042         attempts [Coverity CID 67].
69043
69044 2006-09-20  Bruno Haible  <bruno@clisp.org>
69045
69046         * lib/mkdtemp.c: Import from libc.
69047         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69048                 * sysdeps/posix/tempname.c (__gen_tempname): Change
69049                 attempts_min into a macro.  Use preprocessor to decide how to
69050                 initialize attempts [Coverity CID 67].
69051         2001-11-27  Paul Eggert  <eggert@twinsun.com>
69052                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
69053                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
69054
69055 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69056
69057         * gnulib-tool (func_exit): New function, to allow to pass the
69058         exit status portably through the trap.  Use everywhere.
69059         (--help, --version): Signal a write error.
69060         (trap): catch SIGPIPE, for write errors.
69061         Exit at the end of the trap, with the correct exit status.
69062
69063 2006-09-19  Karl Berry  <karl@gnu.org>
69064
69065         * doc/gnulib.texi: note about the license texinfo files.
69066
69067 2006-09-19  Eric Blake  <ebb9@byu.net>
69068
69069         * gnulib-tool: Avoid space-tab.
69070
69071 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69072
69073         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
69074         that prevented coreutils 6.1 from building.  Problem reported
69075         by Petter Reinholdtsen.
69076
69077 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69078
69079         * gnulib-tool (avoidlist): Fix typo that broke options like
69080         --avoid=lock that are used by coreutils bootstrap.
69081
69082 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
69083
69084         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
69085         more systematically.
69086
69087 2006-09-18  Jim Meyering  <jim@meyering.net>
69088
69089         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
69090
69091 2006-09-18  Bruno Haible  <bruno@clisp.org>
69092
69093         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
69094
69095 2006-09-18  Bruno Haible  <bruno@clisp.org>
69096
69097         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
69098         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
69099         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
69100         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
69101         * m4/gettext.m4: Require autoconf >= 2.52.
69102         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
69103         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
69104         of gl_cv_header_inttypes_h.
69105
69106 2006-09-18  Bruno Haible  <bruno@clisp.org>
69107
69108         * lib/javaversion.c: Include configmake.h.
69109
69110 2006-09-18  Bruno Haible  <bruno@clisp.org>
69111
69112         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
69113         avoid that the while loops be executed in a subshell.
69114
69115 2006-09-18  Bruno Haible  <bruno@clisp.org>
69116
69117         * MODULES.html.sh (func_module): Break long lines.
69118         Suggested by Bruce Korb <bkorb@gnu.org>.
69119
69120 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69121
69122         Speed up by a factor of 1.12.
69123         * gnulib-tool (nl): New variable.
69124         (func_import): Rewrite include directive extraction to only read each
69125         directive once.
69126
69127 2006-09-17  Bruno Haible  <bruno@clisp.org>
69128
69129         * modules/javaversion (Makefile.am): Remove DEFS setting.
69130         (Depends-on): Add configmake, for PKGDATADIR definition.
69131
69132 2006-09-17  Bruno Haible  <bruno@clisp.org>
69133
69134         * gnulib-tool (func_create_testdir): Rewrite all files at once.
69135
69136 2006-09-17  Bruno Haible  <bruno@clisp.org>
69137
69138         * gnulib-tool (func_append): New function, stolen from libtool.m4.
69139         (func_modules_transitive_closure, func_modules_add_dummy,
69140         func_modules_to_filelist, func_import, func_create_testdir,
69141         func_create_megatestdir, ...): Use it wherever possible.
69142         Suggested by Ralf Wildenhues.
69143
69144 2006-09-16  Karl Berry  <karl@gnu.org>
69145
69146         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
69147         to avoid sectioning errors.
69148         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
69149         [ifinfo]: blank line after @center-ed titles.
69150         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
69151         Spell FSF address consistently with others.
69152         (These changes approved by rms.)
69153
69154 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69155
69156         Speed up by a factor of 1.61.
69157         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
69158         already checked module names again.
69159
69160 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69161
69162         Speed up by a factor of 1.13.
69163         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
69164         for new_files, and the input to func_add_or_update.
69165
69166 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69167
69168         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
69169         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
69170
69171 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69172
69173         * modules/mkancesdirs (Depends-on): Add fcntl.
69174         * modules/savewd: New file.
69175         * MODULES.html.sh (File system functions): Add savewd.
69176
69177         * modules/configmake (Makefile.am): Add support for the
69178         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
69179
69180 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69181
69182         * m4/savewd.m4: New file.
69183
69184 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69185
69186         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
69187         (dirchownmod): New arg FD.  All callers changed.
69188         Use FD rather than opening the directory ourself, as opening is
69189         now the caller's responsibility.
69190         * lib/dirchownmod.h: Likewise.
69191         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
69192         hosts that require <sys/types.h> before <sys/stat.h>.  Include
69193         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
69194         (test_dir): Remove.
69195         (mkancesdirs): Return length of prefix of FILE that has already
69196         been made, or -2 if there is a child doing the work.  Redo
69197         algorithm so that it is O(N) rather than O(N**2).  Optimize away
69198         ".", and treat ".." specially since it might stray back into
69199         already-created areas.  Use a subprocess if necessary.  New arg
69200         WD; all users changed.  MAKE_DIR function should now return 1
69201         if it creates a directory that is not readable.  Return -2 if
69202         a child process is spun off.
69203         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
69204         Adjust signature to match code.
69205         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
69206         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
69207         all users changed.
69208         * lib/savewd.c, lib/savewd.h: New files.
69209
69210 2006-09-15  Jim Meyering  <jim@meyering.net>
69211
69212         * modules/rename-dest-slash: New module.
69213         * MODULES.html.sh (posix_compat): Add it here.
69214
69215         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
69216
69217 2006-09-15  Jim Meyering  <jim@meyering.net>
69218
69219         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
69220         file.
69221
69222         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
69223
69224 2006-09-15  Jim Meyering  <jim@meyering.net>
69225
69226         * lib/rename-dest-slash.c (has_trailing_slash): Use
69227         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
69228         (rpl_rename_dest_slash): Perform the cheaper trailing slash
69229         test before testing whether SRC is a directory.
69230         Suggestions from Bruno Haible.
69231
69232         Avoid a warning about an unused variable.
69233         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
69234         into the #ifdef block where it's used.
69235
69236         * lib/rename-dest-slash.c: New file.
69237
69238 2006-09-14  Bruno Haible  <bruno@clisp.org>
69239
69240         * lib/allocsa.c: Include <config.h> unconditionally.
69241         * lib/asnprintf.c: Likewise.
69242         * lib/asprintf.c: Likewise.
69243         * lib/c-strcasecmp.c: Likewise.
69244         * lib/c-strcasestr.c: Likewise.
69245         * lib/c-strncasecmp.c: Likewise.
69246         * lib/c-strstr.c: Likewise.
69247         * lib/classpath.c: Likewise.
69248         * lib/clean-temp.c: Likewise.
69249         * lib/concatpath.c: Likewise.
69250         * lib/copy-file.c: Likewise.
69251         * lib/csharpcomp.c: Likewise.
69252         * lib/csharpexec.c: Likewise.
69253         * lib/execute.c: Likewise.
69254         * lib/fatal-signal.c: Likewise.
69255         * lib/findprog.c: Likewise.
69256         * lib/fwriteerror.c: Likewise.
69257         * lib/gl_array_list.c: Likewise.
69258         * lib/gl_array_oset.c: Likewise.
69259         * lib/gl_avltree_list.c: Likewise.
69260         * lib/gl_avltree_oset.c: Likewise.
69261         * lib/gl_avltreehash_list.c: Likewise.
69262         * lib/gl_carray_list.c: Likewise.
69263         * lib/gl_linked_list.c: Likewise.
69264         * lib/gl_linkedhash_list.c: Likewise.
69265         * lib/gl_list.c: Likewise.
69266         * lib/gl_oset.c: Likewise.
69267         * lib/gl_rbtree_list.c: Likewise.
69268         * lib/gl_rbtree_oset.c: Likewise.
69269         * lib/gl_rbtreehash_list.c: Likewise.
69270         * lib/imaxabs.c: Likewise.
69271         * lib/imaxdiv.c: Likewise.
69272         * lib/javacomp.c: Likewise.
69273         * lib/javaexec.c: Likewise.
69274         * lib/javaversion.c: Likewise.
69275         * lib/linebreak.c: Likewise.
69276         * lib/localcharset.c: Likewise.
69277         * lib/lock.c: Likewise.
69278         * lib/mbchar.c: Likewise.
69279         * lib/mbswidth.c: Likewise.
69280         * lib/mkdtemp.c: Likewise.
69281         * lib/pipe.c: Likewise.
69282         * lib/printf-args.c: Likewise.
69283         * lib/printf-parse.c: Likewise.
69284         * lib/progname.c: Likewise.
69285         * lib/progreloc.c: Likewise.
69286         * lib/readlink.c: Likewise.
69287         * lib/sh-quote.c: Likewise.
69288         * lib/stpcpy.c: Likewise.
69289         * lib/stpncpy.c: Likewise.
69290         * lib/strcasecmp.c: Likewise.
69291         * lib/strcasestr.c: Likewise.
69292         * lib/strcspn.c: Likewise.
69293         * lib/striconv.c: Likewise.
69294         * lib/strncasecmp.c: Likewise.
69295         * lib/strnlen1.c: Likewise.
69296         * lib/strstr.c: Likewise.
69297         * lib/strtok_r.c: Likewise.
69298         * lib/tls.c: Likewise.
69299         * lib/tmpdir.c: Likewise.
69300         * lib/unicodeio.c: Likewise.
69301         * lib/unsetenv.c: Likewise.
69302         * lib/vasnprintf.c: Likewise.
69303         * lib/vasprintf.c: Likewise.
69304         * lib/wait-process.c: Likewise.
69305         * lib/xallocsa.c: Likewise.
69306         * lib/xsetenv.c: Likewise.
69307         * lib/xstriconv.c: Likewise.
69308
69309 2006-09-13  Simon Josefsson  <jas@extundo.com>
69310
69311         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
69312         that internally, suggested by Ralf Wildenhues
69313         <Ralf.Wildenhues@gmx.de>.
69314
69315 2006-09-13  Simon Josefsson  <jas@extundo.com>
69316
69317         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
69318         @LIBOBJS@.
69319         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69320
69321 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69322
69323         * lib/_fpending.c: Include <config.h> unconditionally, since we no
69324         longer worry about uses that don't define HAVE_CONFIG_H.
69325         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
69326         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
69327         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
69328         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
69329         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
69330         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
69331         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
69332         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
69333         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
69334         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
69335         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
69336         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
69337         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
69338         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
69339         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
69340         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
69341         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
69342         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
69343         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
69344         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
69345         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
69346         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
69347         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
69348         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
69349         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
69350         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
69351         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
69352         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
69353         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
69354         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
69355         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
69356         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
69357         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
69358         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
69359         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
69360         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
69361         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
69362         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
69363         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
69364         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
69365         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
69366         Likewise.
69367
69368 2006-09-13  Eric Blake  <ebb9@byu.net>
69369
69370         * lib/getopt.c: Fix typo in last commit.
69371
69372 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69373
69374         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
69375         dgettext.
69376
69377 2006-09-12  Jim Meyering  <jim@meyering.net>
69378
69379         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
69380         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
69381         Reported by Nelson H. F. Beebe.
69382
69383 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69384
69385         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
69386         program_invocation_name and program_invocation_short_name are
69387         initialized.
69388         * lib/argp-namefrob.h: Move declarations of program_invocation_name
69389         and program_invocation_short_name to argp.h, so they are visible
69390         to user programs.
69391         * lib/argp.h: Likewise
69392
69393 2006-09-10  Bruno Haible  <bruno@clisp.org>
69394
69395         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69396         m4/inttypes_h.m4, m4/uintmax_t.m4.
69397
69398 2006-09-10  Bruno Haible  <bruno@clisp.org>
69399
69400         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
69401         gl_AC_TYPE_UINTMAX_T.
69402
69403 2006-09-10  Bruno Haible  <bruno@clisp.org>
69404
69405         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
69406
69407 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69408
69409         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
69410         convention.  Text proposed by Bruno Haible.
69411         (struct argp_option): Document the use of N_() wrappers.
69412
69413         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
69414         '\v', and translate the two parts separately, instead of feeding
69415         the whole string to gettext.  This allows to exclude
69416         '\v' from the strings visible to the translator by writing doc
69417         strings as N_("..") "\v" N_("..").
69418
69419 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
69420
69421         * config/srclist.txt: Undo latest change; the bug was fixed.
69422
69423 2006-09-09  Bruno Haible  <bruno@clisp.org>
69424
69425         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
69426         assignments if building a library without libtool.
69427         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
69428         in func_emit_lib_Makefile_am.
69429         (func_import): When building a static library libfoo.a, arrange to
69430         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
69431         (func_create_testdir): Likewise.
69432         * modules/gc (configure.ac, Makefile.am): If building statically,
69433         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
69434         * modules/iconvme (configure.ac, Makefile.am): Likewise.
69435         * modules/striconv (configure.ac, Makefile.am): Likewise.
69436         Based on a suggestion by Ralf Wildenhues.
69437
69438 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69439
69440         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69441         Check for unistd.h too, since Autoconf doesn't assume POSIX.
69442         Also:
69443
69444         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69445         Add year_2050_test to catch glibc bug 2821
69446         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69447
69448         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69449         Prefer #ifdef to #if.
69450
69451         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
69452         Return from 'main' instead of calling 'exit'.
69453
69454 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69455
69456         * lib/mktime.c (guess_time_tm): Fix bug where mktime
69457         returned the maximum time_t value rather than (time_t) -1.
69458         Problem originally reported by William Bardwell
69459         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69460
69461         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69462         Moved to here ...
69463         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69464         ... from here.
69465
69466 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69467
69468         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
69469         2821 is fixed.
69470
69471 2006-09-08  Jim Meyering  <jim@meyering.net>
69472
69473         Don't make generated files read-only.  That would bother too many
69474         people.  However, do retain the ability to work when targets are
69475         read-only: remove the destination and temporary files before writing
69476         them (when generated via sed or echo), or by using the -f option for
69477         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
69478         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69479         * modules/byteswap, modules/configmake, modules/fcntl:
69480         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69481         * modules/localcharset, modules/netinet_in, modules/poll:
69482         * modules/stdbool, modules/stdint, modules/sys_select:
69483         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69484
69485 2006-09-08  Jim Meyering  <jim@meyering.net>
69486
69487         Avoid new build failure on FreeBSD 6.0.
69488         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
69489         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
69490         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
69491
69492 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69493
69494         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
69495
69496 2006-09-07  Jim Meyering  <jim@meyering.net>
69497
69498         Fix global typo in last change: use chmod u-w, not chmod u-x.
69499         Spotted by Paul Eggert and Bruce Korb.
69500         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69501         * modules/byteswap, modules/configmake, modules/fcntl:
69502         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69503         * modules/localcharset, modules/netinet_in, modules/poll:
69504         * modules/stdbool, modules/stdint, modules/sys_select:
69505         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69506
69507 2006-09-06  Jim Meyering  <jim@meyering.net>
69508
69509         Make generated files be read-only.
69510         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
69511         Ensure that each generated file is now read-only.
69512         * modules/argz: Likewise.
69513         * modules/arpa_inet: Likewise.
69514         * modules/byteswap: Likewise.
69515         * modules/configmake: Likewise.
69516         * modules/fcntl: Likewise.
69517         * modules/fnmatch: Likewise.
69518         * modules/getopt: Likewise.
69519         * modules/glob: Likewise.
69520         * modules/inttypes: Likewise.
69521         * modules/netinet_in: Likewise.
69522         * modules/poll: Likewise.
69523         * modules/stdbool: Likewise.
69524         * modules/stdint: Likewise.
69525         * modules/sys_select: Likewise.
69526         * modules/sys_socket: Likewise.
69527         * modules/sys_stat: Likewise.
69528         * modules/sysexits: Likewise.
69529         * modules/localcharset: Same as above, but continue using temporary
69530         file named "t-$@" (why different?) rather than the "$@-t" used
69531         everywhere else.
69532
69533         * modules/sysexits (Makefile.am): Replace literal occurrences
69534         of "sysexit.h" more readable, and more consistent, "$@".
69535
69536 2006-09-06  Bruno Haible  <bruno@clisp.org>
69537
69538         * modules/striconv: New file.
69539         * modules/xstriconv: New file.
69540         * MODULES.html.sh (Internationalization functions): Add striconv,
69541         xstriconv.
69542
69543 2006-09-06  Bruno Haible  <bruno@clisp.org>
69544
69545         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
69546         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
69547         not using libtool correctly.
69548
69549 2006-09-06  Bruno Haible  <bruno@clisp.org>
69550
69551         * lib/striconv.h: New file.
69552         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
69553         iconvstring.c.
69554         * lib/xstriconv.h: New file.
69555         * lib/xstriconv.c: New file.
69556
69557 2006-09-06  Bruno Haible  <bruno@clisp.org>
69558
69559         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69560         lib_..._LDFLAGS.
69561
69562 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69563
69564         * lib/argz_.h: Sync from Libtool.
69565
69566         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
69567                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69568
69569         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
69570
69571 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69572
69573         * modules/trim: New file.
69574
69575 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69576
69577         * lib/trim.h: New file.
69578         * lib/trim.c: New file.
69579
69580 2006-09-05  Bruno Haible  <bruno@clisp.org>
69581
69582         * MODULES.html.sh (String handling): Add trim.
69583
69584 2006-09-04  Karl Berry  <karl@gnu.org>
69585
69586         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
69587         until next release.
69588
69589 2006-09-03  Bruno Haible  <bruno@clisp.org>
69590
69591         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
69592         correctly.
69593
69594 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69595
69596         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
69597         not gl_GETLOADAVG.  Omit unneeded semicolons.
69598         Problems reported by Ralf Wildenhues in
69599         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69600         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
69601         at the end, which is the usual gnulib style.
69602
69603         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
69604         of doing all the work ourselves.
69605         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
69606         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
69607
69608 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69609
69610         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
69611         Problem reported by Ralf Wildenhues in
69612         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69613
69614         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
69615         HAVE_STRUCT_STATFS_F_FSTYPENAME.
69616
69617 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69618
69619         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
69620         yesterday's patch by changing test -n to test -z.
69621
69622 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69623
69624         * modules/getloadavg (Files): Add m4/getloadavg.m4.
69625         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
69626         the former is now obsolescent.
69627
69628         * modules/chdir-long (Depends-on): Add fcntl.
69629
69630 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69631
69632         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
69633         obsolescent, and programs should use gnulib instead.
69634         * m4/getloadavg.m4: New file, with contents taken from Autoconf
69635         but with prefixes changed.
69636
69637 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69638
69639         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
69640         or stdbool.h, because they might not exist while configuring.
69641
69642         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69643         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69644         does that for us.
69645         (O_DIRECTORY): Remove.
69646
69647 2006-08-31  Eric Blake  <ebb9@byu.net>
69648
69649         * gnulib-tool: Don't let emacs change spaces to TAB.
69650
69651 2006-08-31  Bruno Haible  <bruno@clisp.org>
69652
69653         * gnulib-tool: When calling func_import more than once, do it in a
69654         subshell.
69655         Reported by Eric Blake <ebb9@byu.net>.
69656
69657 2006-08-31  Bruno Haible  <bruno@clisp.org>
69658
69659         * gnulib-tool (nl): Remove variable.
69660         (sed_transform_lib_file): Use more robust test for config-h module.
69661         (func_import): Fix typo in 2006-08-25 patch.
69662
69663 2006-08-31  Bruno Haible  <bruno@clisp.org>
69664
69665         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69666         specified, augment Makefile.am variables instead of assigning them.
69667
69668 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69669
69670         Work around a bug in both the Linux and SunOS 64-bit kernels:
69671         nanosleep mishandles sleeps for longer than 2**31 seconds.
69672         Problem reported by Frank v Waveren in
69673         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69674         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69675         Check for nanosleep bug.
69676         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69677
69678 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69679
69680         Work around a bug in both the Linux and SunOS 64-bit kernels:
69681         nanosleep mishandles sleeps for longer than 2**31 seconds.
69682         Problem reported by Frank v Waveren in
69683         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69684         * lib/nanosleep.c (BILLION): New constant.
69685         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69686         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69687         implementation.
69688
69689 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69690
69691         * modules/nanosleep (Depends-on): Add gettime.
69692
69693 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69694         and Simon Josefsson  <jas@extundo.com>
69695         and Oskar Liljeblad  <oskar@osk.mine.nu>
69696
69697         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
69698         * gnulib-tool (func_import): New license type 'unmodifiable license
69699         text'.
69700         * modules/fdl: Use it.  Longer description.
69701         * module/gpl, module/lgpl: New files.
69702
69703 2006-08-30  Jim Meyering  <jim@meyering.net>
69704
69705         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
69706         shadowing the parameter.
69707
69708 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69709
69710         Sync from Libtool:
69711
69712         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69713
69714         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69715         sharing with gnulib.  Report by Eric Blake.
69716
69717 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69718
69719         * modules/isapipe: New file.
69720         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69721
69722 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69723
69724         * modules/configmake (Makefile.am): Add a comment, and omit
69725         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69726         by Bruno Haible.
69727
69728 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69729
69730         * m4/isapipe.m4: New file.
69731
69732 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69733
69734         * lib/isapipe.c, lib/isapipe.h: New files.
69735
69736 2006-08-29  Jim Meyering  <jim@meyering.net>
69737
69738         * modules/configmake (Makefile.am): Make configmake.h depend on
69739         Makefile.  Otherwise, a stale configmake.h could hang around.
69740
69741 2006-08-29  Eric Blake  <ebb9@byu.net>
69742
69743         * lib/error.c (error_at_line, print_errno_message): Match libc, after
69744         resolution of upstream bug 3044.
69745
69746 2006-08-29  Bruno Haible  <bruno@clisp.org>
69747
69748         * modules/localcharset (Depends-on): Add configmake.
69749         (Makefile.am): Remove setting of LIBDIR through DEFS.
69750
69751 2006-08-29  Bruno Haible  <bruno@clisp.org>
69752
69753         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
69754         defined.
69755
69756 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69757
69758         * modules/fcntl: New file.
69759         * modules/chdir-safer (Depends-on): Add fcntl.
69760         * modules/fts: Likewise.
69761         * modules/mkdir-p: Likewise.
69762
69763         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69764         This undoes the most recent change, since we're now addressing the
69765         problem in a different way.
69766
69767         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69768         into output, since the output might be called Makefile.am even
69769         if $makefile_name is something different.
69770         (func_import): Use $makefile_am rather than
69771         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69772         empty.
69773
69774         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69775
69776 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69777
69778         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69779         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69780         recent change to stdint.m4, since we're now addressing the problem in a
69781         different way.
69782
69783 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69784
69785         * m4/fcntl_h.m4: New file.
69786
69787 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69788
69789         * lib/fcntl_.h: New file.
69790         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69791         the fcntl module.
69792         * lib/dirchownmod.c: Likewise.
69793         * lib/fts.c: Likewise.
69794
69795         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
69796         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
69797         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
69798         just before including <inttypes.h>, to avoid circular inclusion.
69799
69800 2006-08-28  Jim Meyering  <jim@meyering.net>
69801
69802         * doc/visibility.texi: Actually read and correct the grammar of the
69803         sentence affected by yesterday's change.
69804
69805 2006-08-28  Eric Blake  <ebb9@byu.net>
69806
69807         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
69808         needs wrapper.
69809
69810 2006-08-28  Eric Blake  <ebb9@byu.net>
69811
69812         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69813
69814 2006-08-28  Eric Blake  <ebb9@byu.net>
69815
69816         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69817
69818 2006-08-28  Bruno Haible  <bruno@clisp.org>
69819
69820         * modules/c-strstr: New file, from GNU gettext.
69821         * MODULES.html.sh (String handling): Add c-strstr.
69822
69823 2006-08-28  Bruno Haible  <bruno@clisp.org>
69824
69825         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69826         macros.
69827         Reported by Eric Blake.
69828
69829 2006-08-28  Bruno Haible  <bruno@clisp.org>
69830
69831         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69832         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69833         * lib/vasprintf.c: Include errno.h, limits.h.
69834         (EOVERFLOW): New fallback definition.
69835         (vasprintf): Test here whether the string length is > INT_MAX.
69836         * lib/vsnprintf.c: Include errno.h, limits.h.
69837         (EOVERFLOW): New fallback definition.
69838         (vsnprintf): Fix bug when generated string was too long for the buffer.
69839         Test here whether the string length is > INT_MAX.
69840
69841 2006-08-28  Bruno Haible  <bruno@clisp.org>
69842
69843         * lib/inttypes_.h (SCNX*): Remove definitions.
69844         Reported by Eric Blake.
69845
69846 2006-08-28  Bruno Haible  <bruno@clisp.org>
69847
69848         * lib/c-strstr.h: New file, from GNU gettext.
69849         * lib/c-strstr.c: New file, from GNU gettext.
69850
69851 2006-08-28  Bruno Haible  <bruno@clisp.org>
69852
69853         * gnulib-tool: Reorder some statements.
69854
69855 2006-08-28  Bruno Haible  <bruno@clisp.org>
69856
69857         * gnulib-tool: New option --makefile-name.
69858         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69859         $makefile_name.
69860         (func_import): Write $makefile_name to the cache file, and read it from
69861         there unless explicitly specified. Use $makefile_name as file name
69862         instead of Makefile.am. Adjust the recommendations accordingly.
69863
69864 2006-08-28  Bruno Haible  <bruno@clisp.org>
69865
69866         * gnulib-tool (func_verify_module): Check against misapplying patch.
69867
69868 2006-08-28  Bruno Haible  <bruno@clisp.org>
69869
69870         * gnulib-tool (func_relativize, func_relconcat): New functions.
69871         Give an error if --local-dir is given with --update.
69872         Remove trailing slashes from $local_gnulib_dir.
69873         (func_import): Store the relativized $local_gnulib_dir in
69874         gnulib-cache.m4, and read it from there if not specified explicitly.
69875
69876 2006-08-28  Bruno Haible  <bruno@clisp.org>
69877
69878         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69879         is the current directory. Respect also $local_gnulib_dir.
69880
69881 2006-08-28  Bruno Haible  <bruno@clisp.org>
69882             Simon Josefsson  <jas@extundo.com>
69883
69884         BeOS portability.
69885         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69886
69887 2006-08-27  Jim Meyering  <jim@meyering.net>
69888
69889         * doc/visibility.texi: Remove duplicate word: "pointer".
69890
69891 2006-08-26  Bruno Haible  <bruno@clisp.org>
69892
69893         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69894         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69895         (Makefile.am): Create inttypes.h from inttypes_.h.
69896         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69897
69898         * modules/imaxabs: New file.
69899
69900         * modules/imaxdiv: New file.
69901
69902 2006-08-26  Bruno Haible  <bruno@clisp.org>
69903
69904         * m4/inttypes.m4: New file.
69905         * m4/_inttypes_h.m4: Remove file.
69906         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69907         PRI_MACROS_BROKEN.
69908         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69909
69910         * m4/imaxabs.m4: New file.
69911
69912         * m4/imaxdiv.m4: New file.
69913
69914 2006-08-26  Bruno Haible  <bruno@clisp.org>
69915
69916         * lib/inttypes_.h: New file.
69917         * lib/inttypes.h: Remove file.
69918         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69919
69920         * lib/imaxabs.c: New file.
69921
69922         * lib/imaxdiv.c: New file.
69923
69924 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69925
69926         New config-h module, so that "make" output needn't be cluttered
69927         by -DHAVE_CONFIG_H.
69928         * MODULES.html.sh (Support for building libraries and executables):
69929         Add config-h.
69930         * modules/config-h: New file.
69931         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69932         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69933         the config-h module is used.
69934
69935         New configmake module, so that "make" output needn't be cluttered
69936         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69937         * MODULES.html.sh (Support for building libraries and executables):
69938         Add configmake.
69939         * modules/configmake: New file.
69940
69941 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69942
69943         * m4/config-h.m4: New file.
69944
69945 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69946
69947         * config/srclist.txt: Add elisp-comp.
69948
69949 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69950
69951         * MODULES.html.sh (Support for building libraries and executables):
69952         Add elisp-comp.
69953         * build-aux/elisp-comp: New file.
69954         * modules/elisp-comp: New file.
69955
69956 2006-08-24  Bruno Haible  <bruno@clisp.org>
69957
69958         * gnulib-tool (func_create_testdir): Use non-default values of
69959         sourcebase and m4base.
69960
69961 2006-08-24  Bruno Haible  <bruno@clisp.org>
69962
69963         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69964         HTML structure.
69965
69966 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69967
69968         * modules/openat (Depends-on): Add lchown.
69969
69970 2006-08-23  Bruno Haible  <bruno@clisp.org>
69971
69972         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69973         of gl_LOCK_EARLY instead of gl_LOCK.
69974
69975 2006-08-23  Bruno Haible  <bruno@clisp.org>
69976
69977         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69978         on OSF/1 to no.
69979         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69980
69981 2006-08-23  Bruno Haible  <bruno@clisp.org>
69982
69983         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69984         as unusable.
69985
69986         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69987         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69988         (gl_LOCK): New macro.
69989
69990 2006-08-22  Simon Josefsson  <jas@extundo.com>
69991
69992         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69993         to md5 module.
69994
69995 2006-08-22  Simon Josefsson  <jas@extundo.com>
69996
69997         * MODULES.html.sh: Add "Support for maintaining and release
69998         projects".
69999
70000         * build-aux/gnupload: New file, from coreutils.
70001
70002 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70003
70004         Avoid the need for AC_LIBSOURCES in m4 macros.
70005         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
70006         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
70007         * modules/check-version (EXTRA_DIST): Add check-version.h.
70008         * modules/crc (EXTRA_DIST): Add crc.h.
70009         * modules/des (EXTRA_DIST): Add des.h.
70010         * modules/gc (EXTRA_DIST): Add gc.h.
70011         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
70012         * modules/getline (EXTRA_DIST): Add getline.h.
70013         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
70014         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
70015         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
70016         * modules/md2 (EXTRA_DIST): Add md2.h.
70017         * modules/md4 (EXTRA_DIST): Add md4.h.
70018         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
70019         * modules/read-file (EXTRA_DIST): Add read-file.h.
70020         * modules/readline (EXTRA_DIST): Add readline.h.
70021         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
70022         rijndael-api-fst.h.
70023
70024 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70025
70026         * m4/rijndael.m4 (gl_ARCFOUR):
70027         * m4/arctwo.m4 (gl_ARCTWO):
70028         * m4/check-version.m4 (gl_CHECK_VERSION):
70029         * m4/crc.m4 (gl_CRC):
70030         * m4/des.m4 (gl_DES):
70031         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
70032         * m4/gc.m4 (gl_GC):
70033         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
70034         * m4/getline.m4 (gl_FUNC_GETLINE):
70035         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
70036         * m4/hmac-md5.m4 (gl_HMAC_MD5):
70037         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
70038         * m4/md2.m4 (gl_MD2):
70039         * m4/md4.m4 (gl_MD4):
70040         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
70041         * m4/read-file.m4 (gl_FUNC_READ_FILE):
70042         * m4/readline.m4 (gl_FUNC_READLINE):
70043         * m4/rijndael.m4 (gl_RIJNDAEL):
70044         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70045         to get the necessary .h files and whatnot.
70046
70047 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70048
70049         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
70050         gnulib rather than the other way around.
70051         * config/srclistvars.sh (COREUTILS): Remove.
70052
70053 2006-08-22  Jim Meyering  <jim@meyering.net>
70054
70055         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
70056
70057         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
70058
70059 2006-08-22  Eric Blake  <ebb9@byu.net>
70060
70061         * modules/regexprops-generic: New file.
70062         * MODULES.html.sh (Support for building documentation): List it.
70063
70064 2006-08-22  Eric Blake  <ebb9@byu.net>
70065
70066         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
70067         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70068         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
70069         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
70070
70071 2006-08-22  Bruno Haible  <bruno@clisp.org>
70072
70073         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
70074         and lib_LTLIBRARIES like the other lib_* variables.
70075
70076 2006-08-22  Bruno Haible  <bruno@clisp.org>
70077
70078         * build-aux/x-to-1.in: New file, from GNU gettext.
70079
70080 2006-08-22  Bruno Haible  <bruno@clisp.org>
70081
70082         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
70083         <utmpx.h> exists.
70084
70085 2006-08-22  Bruno Haible  <bruno@clisp.org>
70086
70087         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
70088         <utmpx.h> exists.
70089
70090 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70091
70092         BeOS portability.
70093         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
70094         exist.
70095         Problem reported by Bruno Haible.
70096
70097 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70098
70099         Avoid the need for AC_LIBSOURCES in m4 macros.
70100         * modules/acl (EXTRA_DIST): Add acl.h.
70101         * modules/argmatch (Files): Add m4/argmatch.m4.
70102         (configure.ac): Add gl_ARGMATCH.
70103         (EXTRA_DIST): Renamed from lib_SOURCES, for
70104         consistency with the other modules.  Remove argmatch.c.
70105         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
70106         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
70107         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
70108         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
70109         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
70110         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
70111         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
70112         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
70113         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
70114         * modules/closeout (EXTRA_DIST): Add closeout.h.
70115         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
70116         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
70117         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
70118         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
70119         dirname.h; remove basename.c and stripslash.c.
70120         * modules/exclude (EXTRA_DIST): Add exclude.h.
70121         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
70122         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
70123         * modules/file-type (EXTRA_DIST): Add file-type.h.
70124         * modules/filemode (EXTRA_DIST): Add filemode.h.
70125         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
70126         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70127         * modules/fpending (EXTRA_DIST): Add __fpending.h.
70128         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
70129         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
70130         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
70131         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
70132         * modules/getdate (EXTRA_DIST): Add getdate.c.
70133         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
70134         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
70135         * modules/getpass (EXTRA_DIST): Add getpass.h.
70136         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
70137         * modules/group-member (EXTRA_DIST): Add group-member.h.
70138         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
70139         * modules/hash (EXTRA_DIST): Add hash.h.
70140         * modules/human (EXTRA_DIST): Add human.h.
70141         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
70142         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
70143         * modules/lchown (EXTRA_DIST): Add lchown.h.
70144         * modules/long-options (EXTRA_DIST): Add long-options.h.
70145         * modules/lstat (EXTRA_DIST): Add lstat.h.
70146         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
70147         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
70148         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
70149         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
70150         * modules/memxor (EXTRA_DIST): Add memxor.h.
70151         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
70152         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
70153         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
70154         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
70155         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
70156         * modules/physmem (EXTRA_DIST): Add physmem.h.
70157         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
70158         * modules/posixver (EXTRA_DIST): Add posixver.h.
70159         * modules/quote (EXTRA_DIST): Add quote.h.
70160         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
70161         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
70162         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
70163         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
70164         regex_internal.h regexec.c.
70165         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
70166         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
70167         * modules/same (EXTRA_DIST): Add same.h.
70168         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
70169         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
70170         * modules/savedir (EXTRA_DIST): Add savedir.h.
70171         * modules/sha1 (EXTRA_DIST): Add sha1.h.
70172         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
70173         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
70174         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
70175         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
70176         * modules/strdup (EXTRA_DIST): Add strdup.h.
70177         * modules/strftime (EXTRA_DIST): Add strftime.h.
70178         * modules/strndup (EXTRA_DIST): Add strndup.h.
70179         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
70180         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
70181         * modules/time_r (EXTRA_DIST): Add time_r.h.
70182         * modules/timespec (EXTRA_DIST): Add timespec.h.
70183         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70184         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
70185         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
70186         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
70187         * modules/userspec (EXTRA_DIST): Add userspec.h.
70188         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
70189         * modules/utimens (EXTRA_DIST): Add utimens.h.
70190         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
70191         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
70192         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
70193         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
70194         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
70195         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
70196         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
70197         * modules/yesno (EXTRA_DIST): Add yesno.h.
70198
70199 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70200
70201         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
70202
70203         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
70204         * m4/dev-ino.m4, same-inode.m4: Remove.
70205
70206         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
70207         * m4/acl.m4 (AC_FUNC_ACL):
70208         * m4/backupfile.m4 (gl_BACKUPFILE):
70209         * m4/c-strtod.m4 (gl_C99_STRTOLD):
70210         * m4/canon-host.m4 (gl_CANON_HOST):
70211         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70212         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
70213         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
70214         * m4/cloexec.m4 (gl_CLOEXEC):
70215         * m4/close-stream.m4 (gl_CLOSE_STREAM):
70216         * m4/closeout.m4 (gl_CLOSEOUT):
70217         * m4/dirfd.m4 (gl_FUNC_DIRFD):
70218         * m4/dirname.m4 (gl_DIRNAME):
70219         * m4/exclude.m4 (gl_EXCLUDE):
70220         * m4/exitfail.m4 (gl_EXITFAIL):
70221         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
70222         * m4/file-type.m4 (gl_FILE_TYPE):
70223         * m4/filemode.m4 (gl_FILEMODE):
70224         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
70225         * m4/fpending.m4 (gl_FUNC_FPENDING):
70226         * m4/fprintftime.m4 (gl_FPRINTFTIME):
70227         * m4/fts.m4 (gl_FUNC_FTS):
70228         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
70229         * m4/getdate.m4 (gl_GETDATE):
70230         * m4/gethrxtime.m4 (gl_GETHRXTIME):
70231         * m4/getpagesize.m4 (gl_GETPAGESIZE):
70232         * m4/getpass.m4 (gl_FUNC_GETPASS):
70233         * m4/gettime.m4 (gl_GETTIME):
70234         * m4/getugroups.m4 (gl_GETUGROUPS):
70235         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
70236         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
70237         * m4/hard-locale.m4 (gl_HARD_LOCALE):
70238         * m4/hash.m4 (gl_HASH):
70239         * m4/idcache.m4 (gl_IDCACHE):
70240         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
70241         * m4/lchown.m4 (gl_FUNC_LCHOWN):
70242         * m4/long-options.m4 (gl_LONG_OPTIONS):
70243         * m4/lstat.m4 (gl_FUNC_LSTAT):
70244         * m4/md5.m4 (gl_MD5):
70245         * m4/memcasecmp.m4 (gl_MEMCASECMP):
70246         * m4/memcoll.m4 (gl_MEMCOLL):
70247         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
70248         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
70249         * m4/memxor.m4 (gl_MEMXOR):
70250         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
70251         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
70252         * m4/modechange.m4 (gl_MODECHANGE):
70253         * m4/mountlist.m4 (gl_MOUNTLIST):
70254         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70255         * m4/openat.m4 (gl_FUNC_OPENAT):
70256         * m4/pathmax.m4 (gl_PATHMAX):
70257         * m4/physmem.m4 (gl_PHYSMEM):
70258         * m4/posixtm.m4 (gl_POSIXTM):
70259         * m4/posixver.m4 (gl_POSIXVER):
70260         * m4/quote.m4 (gl_QUOTE):
70261         * m4/quotearg.m4 (gl_QUOTEARG):
70262         * m4/readtokens.m4 (gl_READTOKENS):
70263         * m4/readutmp.m4 (gl_READUTMP):
70264         * m4/regex.m4 (gl_REGEX):
70265         * m4/safe-read.m4 (gl_SAFE_READ):
70266         * m4/safe-write.m4 (gl_SAFE_WRITE):
70267         * m4/same.m4 (gl_SAME):
70268         * m4/save-cwd.m4 (gl_SAVE_CWD):
70269         * m4/savedir.m4 (gl_SAVEDIR):
70270         * m4/settime.m4 (gl_SETTIME):
70271         * m4/sha1.m4 (gl_SHA1):
70272         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
70273         * m4/stat-macros.m4 (gl_STAT_MACROS):
70274         * m4/stat-time.m4 (gl_STAT_TIME):
70275         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
70276         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
70277         * m4/strdup.m4 (gl_FUNC_STRDUP):
70278         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
70279         * m4/strndup.m4 (gl_FUNC_STRNDUP):
70280         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
70281         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
70282         * m4/time_r.m4 (gl_TIME_R):
70283         * m4/timespec.m4 (gl_TIMESPEC):
70284         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
70285         * m4/unlinkdir.m4 (gl_UNLINKDIR):
70286         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
70287         * m4/userspec.m4 (gl_USERSPEC):
70288         * m4/utimecmp.m4 (gl_UTIMECMP):
70289         * m4/utimens.m4 (gl_UTIMENS):
70290         * m4/xalloc.m4 (gl_XALLOC):
70291         * m4/xgetcwd.m4 (gl_XGETCWD):
70292         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
70293         * m4/xreadlink.m4 (gl_XREADLINK):
70294         * m4/xstrtod.m4 (gl_XSTRTOD):
70295         * m4/yesno.m4 (gl_YESNO):
70296         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70297         to get the necessary .h files and whatnot.
70298
70299 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
70300             Bruno Haible  <bruno@clisp.org>
70301
70302         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
70303         /bin/sh understanding of '!' conditional negation.
70304
70305 2006-08-21  Jim Meyering  <jim@meyering.net>
70306
70307         * modules/openat (Depends-on): Really alphabetize.
70308
70309         * modules/acl (Depends-on): Add error and quote.
70310
70311         * check-module (find_included_lib_files): Add at-func.c to the
70312         ok-to-include-more-than-once white list.
70313
70314         * modules/openat (Depends-on): Add lstat.  Alphabetize.
70315
70316 2006-08-21  Bruno Haible  <bruno@clisp.org>
70317
70318         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70319         Emit a pkgdata_DATA variable only if some snippets add contents to it.
70320         Reported by Martin Lambers <marlam@marlam.de>.
70321
70322 2006-08-21  Bruno Haible  <bruno@clisp.org>
70323
70324         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
70325         specify an installation location, don't emit a noinst_LIBRARIES or
70326         noinst_LTLIBRARIES assignment.
70327
70328 2006-08-21  Bruno Haible  <bruno@clisp.org>
70329
70330         BeOS portability.
70331         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
70332         BeOS has mbrtowc() but no <wctype.h>.
70333
70334 2006-08-21  Bruno Haible  <bruno@clisp.org>
70335
70336         BeOS portability.
70337         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
70338         exist.
70339
70340 2006-08-21  Bruno Haible  <bruno@clisp.org>
70341
70342         BeOS portability.
70343         * lib/mbchar.h: Include <wctype.h> only if it exists.
70344
70345 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70346
70347         Remove files that are no longer needed by their respective modules.
70348         * m4/obstack.m4: Remove.
70349         * m4/strerror_r.m4: Remove.
70350         * m4/uint32_t.m4: Remove.
70351         * m4/uintptr_t.m4: Remove.
70352         * m4/ullong_max.m4: Remove.
70353         * m4/xstrtoimax.m4: Remove.
70354         * m4/xstrtoumax.m4: Remove.
70355
70356         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
70357         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
70358         dependencies now capture this.
70359
70360         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
70361         Do not use AC_LIBSOURCES, since gnulib modules now do this.
70362         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
70363         * m4/human.m4 (gl_HUMAN): Likewise.
70364         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
70365         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
70366
70367         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
70368
70369         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
70370         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
70371         stdint.
70372         * m4/human.m4 (gl_HUMAN): Likewise.
70373         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
70374         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
70375         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70376         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70377         * m4/xstrtol (gl_XSTRTOL): Likewise.
70378
70379         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
70380         AC_TYPE_LONG_LONG_INT.
70381         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70382         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
70383         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
70384         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70385
70386         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
70387         on stdbool.
70388
70389         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
70390         (gl_PREREQ_XSTRTOUL): Remove.
70391
70392         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
70393
70394         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
70395         mode.
70396
70397 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70398
70399         Add and change modules to make it easier for coreutils to use
70400         gnulib-tool.
70401         * modules/backupfile (Files): Remove m4/d-ino.m4.
70402         (Depends-on): Add d-ino.
70403         * modules/cycle-check (Depends-on): Add stdint.
70404         (lib_SOURCES): Add cycle-check.h.
70405         * modules/d-ino: New module.
70406         * modules/d-type: New module.
70407         * modules/error (Files): Remove m4/strerror_r.m4.
70408         * modules/filemode (Files): Add m4/st_dm_mode.m4.
70409         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70410         m4/inttypes_h.m4, m4/uintmax_t.m4.
70411         (Depends-on): Add stdint.
70412         (lib_SOURCES): Add fsusage.h.
70413         * modules/getcwd (Files): Remove d-ino.m4.
70414         (Depends-on): Add d-ino.
70415         * modules/getndelim2 (Depends-on): Add stdint.
70416         * modules/glob (Files): Remove m4/d-type.m4.
70417         (Depends-on): Add d-type.
70418         * modules/host-os: New module.
70419         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
70420         m4/inttypes_h.m4, m4/uintmax_t.m4.
70421         * Depends-on: Add stdint.
70422         (lib_SOURCES): Add human.h.
70423         * modules/inttostr (Files): Remove m4/intmax_t.m4,
70424         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
70425         m4/uintmax_t.m4, m4/ulonglong.m4.
70426         (Depends-on): Add stdint.
70427         (EXTRA_DIST): Add inttostr.h.
70428         * modules/lchmod: New module.
70429         * modules/link-follow: New module.
70430         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
70431         (Depends-on): Add lchmod.
70432         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
70433         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
70434         (Depends-on): Add stdint.
70435         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
70436         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
70437         (Depends-on): Add stdint.
70438         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
70439         * modules/perl: New module.
70440         * modules/regex (Depends-on): Add stdint.
70441         * modules/rmdir-errno: New module.
70442         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70443         m4/intmax_t.m4.
70444         (Depends-on): Add stdint.
70445         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70446         m4/uintmax_t.m4.
70447         (Depends-on): Add stdint.
70448         * modules/unlink-busy: New module.
70449         * modules/utimecmp (Depends-on): Add stdint.
70450         * modules/uptime: New module.
70451         * modules/winsz-ioctl: New module.
70452         * modules/winsz-termios: New module.
70453         * modules/xnanosleep (Depends-on): Add nanosleep.
70454         * modules/ullong_max: Remove.
70455         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
70456         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
70457         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
70458         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
70459         (Depends-on): Add inttypes.
70460         (lib_SOURCES): Add xstrtol.h.
70461         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
70462         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
70463         * MODULES.html.sh: Move 'assert' into the assert section.
70464         Move 'dummy' into the linking section.
70465         Remove ullong_max.
70466         Add section for compatibility checks for POSIX:2001 functions,
70467         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
70468         winsz-ioctl, and winsz-termios into it.
70469         Add lchmod.
70470         Add top-level Misc section and put host-os, perl, and uptime
70471         into it.
70472
70473 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70474
70475         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
70476         now assume the stdint module.  Do not include inttypes.h.
70477         * lib/fsusage.h: Likewise.
70478         * lib/getndelim2.c: Likewise.
70479         * lib/human.h: Likewise.
70480         * lib/inttostr.h: Likewise.
70481         * lib/obstack.c: Likewise.
70482         * lib/regex_internal.h: Likewise.
70483         * lib/tempname.c: Likewise.
70484         * lib/utimecmp.c: Likewise.
70485         * lib/xstrtol.h: Likewise.
70486
70487         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
70488
70489         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
70490         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
70491         * lib/xtime.h: Likewise.
70492
70493 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70494
70495         * modules/openat (Files): Add lib/fchmodat.c.
70496         Fixes problem reported by Jay Youngman.
70497
70498 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70499
70500         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
70501         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
70502
70503 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
70504             Bruno Haible  <bruno@clisp.org>
70505
70506         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
70507         and is a script that invokes bison. Tighten the code. Add comments.
70508
70509 2006-08-18  Jim Meyering  <jim@meyering.net>
70510
70511         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
70512         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
70513         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
70514         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
70515
70516 2006-08-18  Bruno Haible  <bruno@clisp.org>
70517
70518         * modules/bison-i18n: New file.
70519         * MODULES.html.sh (Internationalization functions): Add it.
70520
70521 2006-08-18  Bruno Haible  <bruno@clisp.org>
70522
70523         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
70524         sys/statvfs.h. When getmntinfo was found, check its declaration and
70525         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
70526
70527 2006-08-18  Bruno Haible  <bruno@clisp.org>
70528
70529         * m4/bison-i18n.m4: New file, from bison.
70530
70531 2006-08-18  Bruno Haible  <bruno@clisp.org>
70532
70533         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
70534         (ME_DUMMY): Treat "kernfs" as a dummy.
70535         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
70536
70537 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70538
70539         Update from coreutils.
70540
70541         2006-08-15  Jim Meyering  <jim@meyering.net>
70542
70543         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
70544
70545         2006-01-17  Jim Meyering  <jim@meyering.net>
70546
70547         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
70548
70549         2006-01-11  Jim Meyering  <jim@meyering.net>
70550
70551         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
70552         Check for the lchmod function.
70553
70554 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70555
70556         Update from coreutils.
70557
70558         * lib/__fpending.h: Add copyright notice.
70559         * lib/fprintftime.h: Likewise.
70560         * lib/savedir.c: Use (C) in copyright notice.
70561         * lib/savedir.h: Likewise.
70562
70563         2006-08-15  Jim Meyering  <jim@meyering.net>
70564
70565         * lib/at-func.c: New file, with the logic of all emulated at-functions.
70566         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
70567         in support of the EXPECTED_ERRNO macro.
70568         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
70569         definitions.  Instead, define the appropriate symbols and include
70570         "at-func.c".
70571         * lib/mkdirat.c (mkdirat): Likewise.
70572         * lib/fchmodat.c (fchmodat): Likewise.
70573         (ENOSYS): Remove definition.
70574         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
70575         it.  Don't include "unistd--.h" -- it wasn't ever used.
70576
70577         2006-01-17  Jim Meyering  <jim@meyering.net>
70578
70579         Rewrite fts.c not to change the current working directory,
70580         by using openat, fstatat, fdopendir, etc..
70581
70582         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
70583         (HAVE_OPENAT_SUPPORT): Define.
70584         [_LIBC] (fchdir): Don't undef or define; no longer used.
70585         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
70586         Now, this `function' always succeeds, and consumes its file descriptor
70587         parameter -- so callers must not close such FDs.  Update callers.
70588         (diropen_fd, opendirat, cwd_advance_fd): New functions.
70589         (diropen): Add parameter, SP.  Adjust all callers.
70590         Implement using diropen_fd, rather than open.
70591         (fts_open): Initialize new member, fts_cwd_fd.
70592         Remove fts_rft-setting code.
70593         (fts_close): Close fts_cwd_fd, if necessary.
70594         (__opendir2): Define in terms of opendir or opendirat,
70595         depending on whether the FST_NOCHDIR flag is set.
70596         (fts_build): Since fts_safe_changedir consumes its FD, and since
70597         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
70598         and close the dup'd file descriptor upon failure.
70599         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
70600         (fts_safe_changedir): Tweak semantics to reflect that this function
70601         now calls cwd_advance_fd and hence consumes its FD argument.
70602         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
70603         [struct FTS] (fts_rft): Remove now-unused member.
70604         [struct FTS] (fts_cycle.state): Improve comment.
70605
70606         * lib/openat.c (openat_needs_fchdir): New function.
70607         * lib/openat.h (openat_needs_fchdir): Declare it.
70608
70609 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70610
70611         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
70612         Problem and fix reported by Pádraig Brady in
70613         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
70614
70615 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70616
70617         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
70618
70619 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70620
70621         * lib/memcoll.c (memcoll): Optimize for the common case where the
70622         arguments are bytewise equal.
70623
70624 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70625
70626         * doc/regexprops-generic.texi: Add a copyright notice.
70627
70628 2006-08-15  Bruno Haible  <bruno@clisp.org>
70629
70630         * modules/tmpdir (License): Change to LGPL.
70631
70632 2006-08-15  Bruno Haible  <bruno@clisp.org>
70633
70634         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
70635         module.
70636
70637 2006-08-14  Simon Josefsson  <jas@extundo.com>
70638
70639         * config/srclist.txt: Add gnupload.
70640
70641 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70642
70643         Change copyright notice from LGPL 2 to GPL 2, since that's the
70644         standard form used in the gnulib repository.
70645         * tests/test-lock.c: Likewise.
70646         * tests/test-stdint.c: Likewise.
70647         * tests/test-tls.c: Likewise.
70648
70649         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70650         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70651         Add copyright notice.
70652
70653         * check-module: Add copyright notice.  Output a copyright
70654         notice if "--version" is specified.
70655         * modules/COPYING: New file.
70656         * tests/test-getaddrinfo.c: Add copyright notice.
70657         * tests/test-verify.c: Likewise.
70658
70659 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70660
70661         Change copyright notice from LGPL 2 to GPL 2, since that's the
70662         standard form used in the gnulib repository.
70663         * lib/lock.c: LGPL -> GPL.
70664         * lib/lock.h: Likewise.
70665         * lib/strnlen1.c: Likewise.
70666         * lib/strnlen1.h: Likewise.
70667         * lib/tls.c: Likewise.
70668         * lib/tls.h: Likewise.
70669         * lib/tmpdir.c: Likewise.
70670
70671         * lib/TODO: Remove; this belongs only in coreutils.
70672
70673 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70674
70675         Add copyright notices to long-enough files that lack them, since
70676         otherwise the files aren't clearly free.  Use the same notice that
70677         getdate.texi already uses.
70678         * doc/alloca-opt.texi: Add copyright notice.
70679         * doc/alloca.texi: Likewise.
70680         * doc/ctime.texi: Likewise.
70681         * doc/functions.texi: Likewise.
70682         * doc/gcd.texi: Likewise.
70683         * doc/gnulib-tool.texi: Likewise.
70684         * doc/inet_ntoa.texi: Likewise.
70685         * doc/visibility.texi: Likewise.
70686
70687         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70688         * doc/quote.texi: Add copyright notice.
70689
70690         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
70691         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
70692         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
70693         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
70694         is now obsolete, and give a pointer to the Sun list.
70695         Add copyright notice.
70696
70697 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70698
70699         * config/srclistvars.sh: Add copyright notice.
70700
70701 2006-08-14  Eric Blake  <ebb9@byu.net>
70702
70703         Import the following change from libc:
70704
70705         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
70706
70707         Upstream bug 2997.
70708         * lib/misc/error.c: Add space between program name and message if file
70709         name is missing.
70710
70711 2006-08-12  Karl Berry  <karl@gnu.org>
70712
70713         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70714         remove, these originate in gnulib now.
70715
70716 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70717
70718         * doc/Makefile (standards.info standards.html standards.dvi):
70719         Also depend on make-stds.texi.
70720
70721 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70722
70723         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70724         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70725
70726         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70727         in wchar_t.  Problem reported by Eric Blake.
70728
70729         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70730         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70731         Also, help the compiler to keep LEN in a register.
70732
70733 2006-08-11  Eric Blake  <ebb9@byu.net>
70734
70735         * users.txt: Sort.  Add tar.
70736
70737 2006-08-11  Bruno Haible  <bruno@clisp.org>
70738
70739         * users.txt: New file.
70740
70741 2006-08-11  Bruno Haible  <bruno@clisp.org>
70742
70743         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
70744         before <wchar.h>. Needed for OSF/1 and BSD/OS.
70745
70746 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70747
70748         * modules/snprintf (Depends-on): Remove minmax.
70749         (Maintainer): Add self and Bruno.
70750
70751 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70752
70753         * lib/.cppi-disable: Add snprintf.h, socket_.h.
70754         * lib/snprintf.c: Include <errno.h> and <limits.h>.
70755         (EOVERFLOW): Define if the system does not.
70756         Do not include "minmax.h"; it wasn't used.
70757         (snprintf): Don't assume size_t promotes to an unsigned type.
70758         Fix bug when generated string was too long for the buffer: the
70759         buffer's contents are supposed to be the initial prefix of the
70760         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70761         exceeds INT_MAX; do the check ourselves.
70762
70763         Import the following changes from libc:
70764
70765         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70766
70767         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70768         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70769         set wc to the byte which couldn't be converted.
70770         (re_string_reconstruct): Don't clear valid_raw_len before calling
70771         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70772         tip_context using re_string_context_at.
70773
70774         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70775
70776         * lib/posix/regex.h: g++ still cannot handled [restrict].
70777
70778         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70779
70780         * lib/posix/regex.h: Remove special handling for VMS.
70781
70782 2006-08-10  Jim Meyering  <jim@meyering.net>
70783
70784         * modules/same-inode: New module.
70785         * modules/dev-ino: New module.
70786         * modules/cycle-check: Depend on these modules, rather than simply
70787         including their .h files.
70788         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70789         required via m4/cycle-check.m4.
70790         * modules/same: Depend on new same-inode module, rather than
70791         including same-inode.h.
70792         * modules/chdir-safer: New file.
70793
70794         * modules/chown (Depends-on): Add stat-macros.
70795
70796 2006-08-10  Jim Meyering  <jim@meyering.net>
70797
70798         * m4/cycle-check.m4: New file.
70799         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
70800         * m4/dev-ino.m4, m4/same-inode.m4: New files.
70801
70802 2006-08-10  Eric Blake  <ebb9@byu.net>
70803
70804         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
70805         in from original proposal.
70806
70807 2006-08-10  Eric Blake  <ebb9@byu.net>
70808         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70809
70810         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70811         namespace.
70812
70813 2006-08-10  Bruno Haible  <bruno@clisp.org>
70814
70815         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70816         as well.
70817
70818 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70819
70820         Sync from coreutils.
70821
70822         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70823
70824         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70825         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70826
70827 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70828
70829         * modules/restrict: Remove; no longer needed now that we assume
70830         Autoconf 2.59 or later.
70831         * MODULES.html.sh: Remove 'restrict'.
70832         * modules/argp (Depends-on): Remove 'restrict'.
70833         * modules/base64 (Depends-on): Likewise.
70834         * modules/gc (Depends-on): Likewise.
70835         * modules/getaddrinfo (Depends-on): Likewise.
70836         * modules/glob (Depends-on): Likewise.
70837         * modules/inet_ntop (Depends-on): Likewise.
70838         * modules/inet_pton (Depends-on): Likewise.
70839         * modules/memxor (Depends-on): Likewise.
70840         * modules/regex (Depends-on): Likewise.
70841         * modules/strtok_r (Depends-on): Likewise.
70842         * modules/time_r (Depends-on): Likewise.
70843
70844 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70845
70846         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70847         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70848         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70849         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70850         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70851         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70852         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70853         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70854
70855         Merge from coreutils.
70856         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70857         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70858         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70859         * m4/time_r.m4 (gl_TIME_R): Likewise.
70860
70861 2006-08-09  Karl Berry  <karl@gnu.org>
70862
70863         * config/srclist.txt: no more gettext-tools, per Bruno.
70864
70865 2006-08-08  Eric Blake  <ebb9@byu.net>
70866
70867         * modules/verror: New module.
70868         * MODULES.html.sh: Document it.
70869
70870 2006-08-08  Eric Blake  <ebb9@byu.net>
70871
70872         * lib/verror.h, lib/verror.c: New files.
70873
70874 2006-08-08  Eric Blake  <ebb9@byu.net>
70875
70876         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70877         verror_at_line output complies with GNU Coding Standards even when
70878         file is NULL.
70879
70880 2006-08-07  Bruno Haible  <bruno@clisp.org>
70881
70882         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70883         versions of AIX.
70884         Reported by Ralf Wildenhues.
70885
70886 2006-08-07  Bruno Haible  <bruno@clisp.org>
70887
70888         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70889         in an AC_DEFUN. Needed so that the autoconf snippets can use
70890         AC_REQUIRE.
70891
70892 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70893
70894         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70895         Initialize pkgdata_DATA.
70896         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70897         overriding it.
70898
70899 2006-08-06  Eric Blake  <ebb9@byu.net>
70900
70901         * lib/error.h: Fold in some upstream changes from glibc.
70902         * lib/error.c: Likewise.
70903
70904 2006-08-04  Bruno Haible  <bruno@clisp.org>
70905
70906         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70907         Make the mostlyclean-local rule depend on mostlyclean-generic.
70908         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70909
70910 2006-07-31  Bruno Haible  <bruno@clisp.org>
70911
70912         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70913         <stdlib.h>, <string.h>.
70914
70915 2006-07-30  Bruno Haible  <bruno@clisp.org>
70916
70917         * modules/readlink (License): Change to LGPL.
70918
70919 2006-07-30  Bruno Haible  <bruno@clisp.org>
70920
70921         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70922         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70923         set PKGDATADIR to point to it.
70924
70925 2006-07-30  Bruno Haible  <bruno@clisp.org>
70926
70927         * modules/csharpexec (configure.ac): Comment out macro invocation.
70928         * modules/javaexec (configure.ac): Likewise.
70929         * modules/javacomp-script (configure.ac): Likewise.
70930
70931         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70932
70933 2006-07-30  Bruno Haible  <bruno@clisp.org>
70934
70935         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70936         linked-list.
70937
70938 2006-07-30  Bruno Haible  <bruno@clisp.org>
70939
70940         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70941
70942 2006-07-30  Bruno Haible  <bruno@clisp.org>
70943
70944         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70945         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70946         get removed.
70947
70948 2006-07-29  Bruno Haible  <bruno@clisp.org>
70949
70950         Make it possible for gnulib-tool to work with locally modified or
70951         augmented gnulib repositories.
70952         * gnulib-tool (func_usage): Document --local-dir option.
70953         (local_gnulib_dir): New variable.
70954         Handle --local-dir option.
70955         (func_lookup_file): New function.
70956         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70957         (func_get_description, func_get_filelist, func_get_description,
70958         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70959         func_get_automake_snippet, func_get_include_directive,
70960         func_get_license, func_get_maintainer): Use func_lookup_file.
70961         (func_import, func_create_testdir): Use func_lookup_file.
70962
70963 2006-07-29  Bruno Haible  <bruno@clisp.org>
70964
70965         * modules/setenv (Depends-on): Add unistd.
70966
70967 2006-07-29  Bruno Haible  <bruno@clisp.org>
70968
70969         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70970
70971 2006-07-29  Bruno Haible  <bruno@clisp.org>
70972
70973         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70974
70975 2006-07-29  Bruno Haible  <bruno@clisp.org>
70976
70977         * gnulib-tool (import, update): If there is no Makefile.am, look at
70978         aclocal.m4, instead of bailing out.
70979
70980 2006-07-29  Bruno Haible  <bruno@clisp.org>
70981
70982         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70983         Categorize the options by when they are useful.
70984
70985 2006-07-29  Bruno Haible  <bruno@clisp.org>
70986
70987         * gnulib-tool (func_usage): Document option --no-libtool.
70988         Handle option --no-libtool.
70989         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70990         for changed semantics of $libtool variable.
70991         (func_import): Likewise. If libtool is not used, show this through
70992         an option --no-libtool.
70993         (func_create_testdir): Update.
70994
70995 2006-07-29  Bruno Haible  <bruno@clisp.org>
70996
70997         * gnulib-tool (func_import): Extend error message about missing
70998         --doc-base.
70999
71000 2006-07-29  Bruno Haible  <bruno@clisp.org>
71001
71002         * gnulib-tool (func_import): Don't create the $docbase directory if
71003         there is no file to store there.
71004
71005 2006-07-29  Bruno Haible  <bruno@clisp.org>
71006
71007         * gnulib-tool (autoconf_minversion): If a --dir option is given and
71008         relevant, look for configure.ac there, not in the current directory.
71009         Also use a simple search for AC_PREREQ, not "autoconf --trace".
71010
71011 2006-07-29  Bruno Haible  <bruno@clisp.org>
71012
71013         * gnulib-tool (SORT): New variable.
71014         (func_usage): Undocument --assume-autoconf option.
71015         Remove --assume-autoconf option handling.
71016         (autoconf_minversion): Determine from the contents of configure.ac.
71017         (func_import): Remove autoconf_minversion handling.
71018         Suggested by Eric Blake.
71019
71020 2006-07-29  Bruno Haible  <bruno@clisp.org>
71021
71022         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
71023
71024 2006-07-29  Bruno Haible  <bruno@clisp.org>
71025
71026         * config/srclist.txt (*setenv.[ch]): Remove rules.
71027
71028 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71029
71030         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
71031
71032 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71033
71034         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
71035         arpa/inet.h.
71036
71037 2006-07-28  Simon Josefsson  <jas@extundo.com>
71038
71039         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
71040         * modules/inet_pton (Depends-on): Likewise.
71041
71042 2006-07-28  Simon Josefsson  <jas@extundo.com>
71043
71044         * m4/netinet_in_h.m4: New file.
71045
71046 2006-07-28  Simon Josefsson  <jas@extundo.com>
71047
71048         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
71049         #include's.
71050
71051 2006-07-28  Simon Josefsson  <jas@extundo.com>
71052
71053         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
71054         #include's.
71055
71056 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
71057
71058         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
71059         setgid on directories only if they set these bits.
71060         * lib/modechange.h: Remove obsolete comment about masks.
71061
71062 2006-07-28  Eric Blake  <ebb9@byu.net>
71063
71064         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
71065         macro expansion.
71066
71067 2006-07-28  Bruno Haible  <bruno@clisp.org>
71068
71069         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
71070
71071 2006-07-28  Bruno Haible  <bruno@clisp.org>
71072
71073         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
71074
71075 2006-07-28  Bruno Haible  <bruno@clisp.org>
71076
71077         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71078         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71079         Define fallbacks.
71080         Avoids link error on FreeBSD 4.x.
71081         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71082
71083         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
71084         encoding.
71085         * lib/mbswidth.c (iswcntrl): Likewise.
71086
71087 2006-07-27  Bruno Haible  <bruno@clisp.org>
71088
71089         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
71090         test.
71091
71092 2006-07-27  Bruno Haible  <bruno@clisp.org>
71093
71094         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
71095         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
71096         defined.
71097
71098 2006-07-26  Eric Blake  <ebb9@byu.net>
71099
71100         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
71101
71102 2006-07-26  Eric Blake  <ebb9@byu.net>
71103
71104         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
71105         like mingw that lack mkstemp.
71106         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
71107         avoid compilation warning on mingw.
71108
71109 2006-07-26  Bruno Haible  <bruno@clisp.org>
71110
71111         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
71112         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
71113         INT_FAST*_MIN, INTPTR_MIN.
71114
71115 2006-07-25  Bruno Haible  <bruno@clisp.org>
71116
71117         * modules/version-etc (Depends-on): Add stdarg.
71118
71119 2006-07-25  Bruno Haible  <bruno@clisp.org>
71120
71121         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
71122         complex commands.
71123
71124 2006-07-25  Bruno Haible  <bruno@clisp.org>
71125
71126         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
71127         defined in <stdarg.h> or config.h.
71128
71129 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71130
71131         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
71132         (gl_STDIO_SAFER): Remove.
71133
71134 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71135
71136         * MODULES.html.sh (File stream based Input/Output):
71137         Add fopen-safer, tmpfile-safer; remove stdio-safer.
71138         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
71139         * modules/fopen-safer, modules/tmpfile-safer: New files.
71140         * modules/stdio-safer: Remove.
71141
71142 2006-07-24  Bruno Haible  <bruno@clisp.org>
71143
71144         * modules/tmpdir: New file.
71145         * MODULES.html.sh (File system functions): Add it.
71146
71147 2006-07-24  Bruno Haible  <bruno@clisp.org>
71148
71149         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
71150         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
71151
71152 2006-07-24  Bruno Haible  <bruno@clisp.org>
71153
71154         * modules/clean-temp: New file.
71155
71156 2006-07-24  Bruno Haible  <bruno@clisp.org>
71157
71158         * m4/tmpdir.m4: New file, from GNU gettext.
71159
71160 2006-07-24  Bruno Haible  <bruno@clisp.org>
71161
71162         * lib/tmpdir.h: New file, from GNU gettext.
71163         * lib/tmpdir.c: New file, from GNU gettext.
71164
71165 2006-07-24  Bruno Haible  <bruno@clisp.org>
71166
71167         * lib/clean-temp.h: New file, from GNU gettext.
71168         * lib/clean-temp.c: New file, from GNU gettext.
71169
71170 2006-07-23  Eric Blake  <ebb9@byu.net>
71171
71172         * modules/stdio-safer (Files): Add tmpfile-safer.c.
71173         (Depends-on): Add binary-io.
71174
71175 2006-07-23  Eric Blake  <ebb9@byu.net>
71176
71177         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
71178
71179 2006-07-23  Eric Blake  <ebb9@byu.net>
71180
71181         * lib/tmpfile-safer.c: New file.
71182         * lib/stdio-safer.h (fopen_safer): Add prototype.
71183         * lib/stdio--.h (tmpfile): Make safer.
71184
71185 2006-07-23  Bruno Haible  <bruno@clisp.org>
71186
71187         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
71188         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
71189         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
71190         gl_linked_remove_at): Use it.
71191
71192 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71193         and Simon Josefsson <jas@extundo.com>
71194
71195         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
71196
71197         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
71198
71199 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71200
71201         * modules/close-stream: New file.
71202         * modules/closeout (Description): Make it clear that it exits
71203         with a diagnostic on error.
71204         (Depends-on): Add close-stream.  Remove fpending, stdbool.
71205         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
71206
71207 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71208
71209         * m4/close-stream.m4: New file.
71210
71211 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71212
71213         * lib/close-stream.c, lib/close-stream.h: New files.
71214
71215 2006-07-22  Bruno Haible  <bruno@clisp.org>
71216
71217         Merge from GNU gettext 0.15.
71218
71219         2006-05-01  Bruno Haible  <bruno@clisp.org>
71220
71221                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
71222
71223         2006-07-22  Bruno Haible  <bruno@clisp.org>
71224
71225                 * modules/javaversion: New file.
71226                 * MODULES.html.sh (Java): Add javaversion.
71227
71228         2006-03-12  Bruno Haible  <bruno@clisp.org>
71229
71230                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
71231
71232         2005-12-04  Bruno Haible  <bruno@clisp.org>
71233
71234                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
71235                 (untested).
71236
71237         2006-06-21  Bruno Haible  <bruno@clisp.org>
71238
71239                 Avoid warnings from recent versions of mcs.
71240                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
71241                 -o, -L, -r any more. Use options documented since mcs-1.0
71242                 instead. Similarly for -g.
71243
71244         2005-12-04  Bruno Haible  <bruno@clisp.org>
71245
71246                 * build-aux/csharpcomp.sh.in: Suffix for resources is
71247                 .resources, not .resource.
71248
71249         2005-07-09  Bruno Haible  <bruno@clisp.org>
71250
71251                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
71252                 add a .dll suffix.
71253                 Reported by Mark Junker <mjscod@gmx.de>.
71254
71255         2006-07-22  Bruno Haible  <bruno@clisp.org>
71256
71257                 * modules/gettext: Upgrade to gettext-0.15.
71258                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
71259                 m4/visibility.m4.
71260                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
71261
71262 2006-07-22  Bruno Haible  <bruno@clisp.org>
71263
71264         Merge from GNU gettext 0.15.
71265
71266         2006-03-25  Bruno Haible  <bruno@clisp.org>
71267
71268                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
71269
71270         2006-07-21  Bruno Haible  <bruno@clisp.org>
71271
71272                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
71273                 "1.1".
71274
71275         2006-05-09  Bruno Haible  <bruno@clisp.org>
71276
71277                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
71278                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
71279                 for the conftestver execution.
71280
71281         2006-05-01  Bruno Haible  <bruno@clisp.org>
71282
71283                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
71284                 optional target-version argument. Verify that the compiler
71285                 groks source of the specified source-version, or add -source
71286                 option as necessary. Verify that the compiler produces
71287                 bytecode in the specified target-version, or add -target and
71288                 -source options as necessary. Make the result of the test
71289                 available as variable CONF_JAVAC. Also log error output in
71290                 config.log.
71291
71292         2006-03-11  Bruno Haible  <bruno@clisp.org>
71293
71294                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
71295
71296         2006-05-09  Bruno Haible  <bruno@clisp.org>
71297
71298                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
71299                 CLASSPATH_SEPARATOR to a semicolon.
71300
71301         2006-03-12  Bruno Haible  <bruno@clisp.org>
71302
71303                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
71304                 available as variable CONF_JAVA, for subsequent autoconf
71305                 tests. Also log error output in config.log.
71306
71307         2006-07-19  Bruno Haible  <bruno@clisp.org>
71308
71309                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
71310                 that getline works on glibc2 systems. Needed to avoid trouble
71311                 in relocatable.c.
71312                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
71313
71314         2005-12-04  Bruno Haible  <bruno@clisp.org>
71315
71316                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
71317                 launcher (untested).
71318
71319         2005-12-04  Bruno Haible  <bruno@clisp.org>
71320
71321                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
71322
71323         2006-07-22  Bruno Haible  <bruno@clisp.org>
71324
71325                 * gettext.m4: Update from GNU gettext-0.15.
71326                 * nls.m4: Likewise.
71327                 * po.m4: Likewise.
71328                 * inttypes-pri.m4: Likewise.
71329                 * inttypes-h.m4: Renamed from inttypes.m4.
71330                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
71331
71332 2006-07-22  Bruno Haible  <bruno@clisp.org>
71333
71334         Merge from GNU gettext 0.15.
71335
71336         2005-07-05  Bruno Haible  <bruno@clisp.org>
71337
71338                 * printf-args.c (printf_fetchargs): Work around broken
71339                 definition of wint_t on mingw.
71340
71341         2005-02-12  Bruno Haible  <bruno@clisp.org>
71342
71343                 * xallocsa.h: Add extern "C" for C++.
71344
71345         2006-05-17  Bruno Haible  <bruno@clisp.org>
71346
71347                 Cygwin portability.
71348                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
71349
71350         2006-04-30  Bruno Haible  <bruno@clisp.org>
71351
71352                 * progreloc.c: Include <mach-o/dyld.h> if available.
71353                 (find_executable): Use _NSGetExecutablePath when possible.
71354
71355         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71356
71357                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
71358                 function.
71359
71360         2005-12-29  Bruno Haible  <bruno@clisp.org>
71361
71362                 * progreloc.c (set_program_name_and_installdir): Fix
71363                 compilation error.
71364
71365         2005-12-04  Bruno Haible  <bruno@clisp.org>
71366
71367                 Cygwin portability.
71368                 * progreloc.c: Include <windows.h> also on Cygwin.
71369                 (find_executable): Add support for Cygwin.
71370                 (set_program_name_and_installdir): Handle also platforms with
71371                 nonempty EXEEXT.
71372
71373         2006-07-11  Bruno Haible  <bruno@clisp.org>
71374
71375                 * javacomp.c: Fix a comment.
71376                 Reported by Jim Meyering.
71377
71378         2006-04-30  Bruno Haible  <bruno@clisp.org>
71379
71380                 * javacomp.h (compile_java_class): Add source_version,
71381                 target_version arguments.
71382                 * javacomp.c: Rewritten to choose only a compiler that
71383                 respects the specified source_version and target_version.
71384
71385         2006-06-27  Bruno Haible  <bruno@clisp.org>
71386
71387                 Assume correct S_ISDIR macro.
71388                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
71389
71390         2006-07-22  Bruno Haible  <bruno@clisp.org>
71391
71392                 * javaversion.h: New file, from GNU gettext.
71393                 * javaversion.c: New file, from GNU gettext.
71394                 * javaversion.java: New file, from GNU gettext.
71395                 * javaversion.class: New file, from GNU gettext.
71396
71397         2006-05-17  Bruno Haible  <bruno@clisp.org>
71398
71399                 Cygwin portability.
71400                 * javaexec.c (execute_java_class): Test for jview program
71401                 also on Cygwin.
71402
71403         2006-04-09  Bruno Haible  <bruno@clisp.org>
71404
71405                 * fatal-signal.c: Don't include string.h.
71406                 (at_fatal_signal): Use a copying loop instead of memcpy.
71407
71408         2005-12-04  Bruno Haible  <bruno@clisp.org>
71409
71410                 * csharpexec.c: Add support for 'clix' launcher (untested).
71411                 (execute_csharp_using_sscli): New function.
71412                 (execute_csharp_program): Call it.
71413
71414         2006-06-21  Bruno Haible  <bruno@clisp.org>
71415
71416                 Avoid warnings from recent versions of mcs.
71417                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
71418                 -o, -L, -r any more. Use options documented since mcs-1.0
71419                 instead. Similarly for -g.
71420
71421         2005-07-09  Bruno Haible  <bruno@clisp.org>
71422
71423                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
71424                 add a .dll suffix.
71425                 Reported by Mark Junker <mjscod@gmx.de>.
71426
71427         2006-06-17  Bruno Haible  <bruno@clisp.org>
71428
71429                 * config.charset: Update for NetBSD 3.0.
71430
71431         2006-05-17  Bruno Haible  <bruno@clisp.org>
71432
71433                 Cygwin portability.
71434                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
71435
71436         2006-05-16  Bruno Haible  <bruno@clisp.org>
71437
71438                 * localcharset.c [CYGWIN]: Include <windows.h>.
71439                 (get_charset_aliases): For Cygwin, return the same CPxxx
71440                 aliases list as under WIN32.
71441                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
71442                 the environment variables. Fall back to GetACP().
71443
71444         2006-04-05  Bruno Haible  <bruno@clisp.org>
71445
71446                 * config.charset: Update Juan Manuel Guerrero's address.
71447
71448         2005-02-12  Bruno Haible  <bruno@clisp.org>
71449
71450                 * allocsa.h: Add extern "C" for C++.
71451
71452         2005-02-10  Bruno Haible  <bruno@clisp.org>
71453
71454                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
71455                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
71456
71457         2006-07-22  Bruno Haible  <bruno@clisp.org>
71458
71459                 * gettext.h: Update to GNU gettext-0.15.
71460
71461 2006-07-22  Bruno Haible  <bruno@clisp.org>
71462
71463         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
71464         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
71465         lib-prefix.m4, longdouble.m4, ssize_t.m4.
71466
71467 2006-07-21  Eric Blake  <ebb9@byu.net>
71468
71469         * modules/stdlib-safer: New file.
71470         * MODULES.html.sh (File stream based Input/Output): Add
71471         stdlib-safer.
71472
71473 2006-07-21  Eric Blake  <ebb9@byu.net>
71474
71475         * lib/stdlib-safer.h: New file from coreutils, required by
71476         stdlib--.h.
71477
71478 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
71479
71480         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
71481
71482 2006-07-20  Bruno Haible  <bruno@clisp.org>
71483
71484         * gnulib-tool: Recognize new option --assume-autoconf.
71485         (autoconf_minversion): New variable.
71486         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
71487
71488 2006-07-20  Bruno Haible  <bruno@clisp.org>
71489
71490         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
71491
71492 2006-07-19  Derek R. Price  <derek@ximbiot.com>
71493
71494         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
71495         Reindent and repaginate.
71496
71497 2006-07-19  Derek Price  <derek@ximbiot.com>
71498
71499         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
71500         Correct grammar.
71501
71502 2006-07-17  Bruno Haible  <bruno@clisp.org>
71503
71504         * modules/list: New file.
71505         * modules/array-list: New file.
71506         * modules/carray-list, modules/carray-list-tests: New files.
71507         * modules/linked-list, modules/linked-list-tests: New files.
71508         * modules/avltree-list, modules/avltree-list-tests: New files.
71509         * modules/rbtree-list, modules/rbtree-list-tests: New files.
71510         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
71511         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
71512         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
71513         * modules/oset: New file.
71514         * modules/array-oset: New file.
71515         * modules/avltree-oset, modules/avltree-oset-tests: New files.
71516         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
71517         * tests/test-carray_list.c: New file.
71518         * tests/test-linked_list.c: New file.
71519         * tests/test-avltree_list.c: New file.
71520         * tests/test-rbtree_list.c: New file.
71521         * tests/test-linkedhash_list.c: New file.
71522         * tests/test-avltreehash_list.c: New file.
71523         * tests/test-rbtreehash_list.c: New file.
71524         * tests/test-avltree_oset.c: New file.
71525         * tests/test-rbtree_oset.c: New file.
71526         * MODULES.html.sh (Container data structures): New section.
71527
71528 2006-07-17  Bruno Haible  <bruno@clisp.org>
71529
71530         * m4/gl_list.m4: New file.
71531
71532 2006-07-17  Bruno Haible  <bruno@clisp.org>
71533
71534         * lib/gl_list.h: New file.
71535         * lib/gl_list.c: New file.
71536         * lib/gl_array_list.h: New file.
71537         * lib/gl_array_list.c: New file.
71538         * lib/gl_carray_list.h: New file.
71539         * lib/gl_carray_list.c: New file.
71540         * lib/gl_linked_list.h: New file.
71541         * lib/gl_linked_list.c: New file.
71542         * lib/gl_anylinked_list1.h: New file.
71543         * lib/gl_anylinked_list2.h: New file.
71544         * lib/gl_avltree_list.h: New file.
71545         * lib/gl_avltree_list.c: New file.
71546         * lib/gl_anyavltree_list1.h: New file.
71547         * lib/gl_anyavltree_list2.h: New file.
71548         * lib/gl_rbtree_list.h: New file.
71549         * lib/gl_rbtree_list.c: New file.
71550         * lib/gl_anyrbtree_list1.h: New file.
71551         * lib/gl_anyrbtree_list2.h: New file.
71552         * lib/gl_anytree_list1.h: New file.
71553         * lib/gl_anytree_list2.h: New file.
71554         * lib/gl_linkedhash_list.h: New file.
71555         * lib/gl_linkedhash_list.c: New file.
71556         * lib/gl_anyhash_list1.h: New file.
71557         * lib/gl_anyhash_list2.h: New file.
71558         * lib/gl_avltreehash_list.h: New file.
71559         * lib/gl_avltreehash_list.c: New file.
71560         * lib/gl_rbtreehash_list.h: New file.
71561         * lib/gl_rbtreehash_list.c: New file.
71562         * lib/gl_anytreehash_list1.h: New file.
71563         * lib/gl_anytreehash_list2.h: New file.
71564
71565         * lib/gl_oset.h: New file.
71566         * lib/gl_oset.c: New file.
71567         * lib/gl_array_oset.h: New file.
71568         * lib/gl_array_oset.c: New file.
71569         * lib/gl_avltree_oset.h: New file.
71570         * lib/gl_avltree_oset.c: New file.
71571         * lib/gl_rbtree_oset.h: New file.
71572         * lib/gl_rbtree_oset.c: New file.
71573         * lib/gl_anytree_oset.h: New file.
71574
71575 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71576
71577         * m4/mkancesdirs.m4: New file.
71578         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
71579         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
71580         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
71581         it.
71582
71583 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71584
71585         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
71586         * lib/mkancesdirs.h: New files.
71587         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
71588         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
71589         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
71590         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
71591         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
71592         callers changed.  Revamp internals significantly, by not
71593         attempting to create directories that are temporarily more
71594         permissive than the final results.  Do not attempt to use
71595         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
71596         This removes some race conditions, fixes some bugs, and simplifies
71597         things.  Use new dirchownmod function to do owner and mode changes.
71598         * lib/mkdir-p.h: Likewise.
71599         * lib/modechange.c (octal_to_mode): New function.
71600         (struct mode_change): New member mentioned.
71601         (make_node_op_equals): New arg mentioned.  All callers changed.
71602         (mode_compile): Keep track of which mode bits the user has explicitly
71603         mentioned.
71604         (mode_adjust): New arg DIR, so that we implement the X op correctly.
71605         New arg PMODE_BITS, to keep track of which mode bits the user
71606         mentioned; it treats S_ISUID and S_ISGID speciall.
71607         All callers changed.
71608         * lib/modechange.h: Likewise.
71609
71610 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71611
71612         * MODULES.html.sh: Add mkancestors.
71613         * modules/mkancesdirs: New module.
71614         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
71615         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
71616         The chdir-safer and afs files are now orphans; I'll remove them
71617         unless someone speaks up.
71618         Add lib/dirchownmod.c, lib/dirchownmod.h.
71619         (Depends-on): Remove alloca, chown, save-cwd, dirname.
71620         Add lchown, mkancesdirs.
71621         (Maintainer): Add self.
71622
71623 2006-07-15  Karl Berry  <karl@gnu.org>
71624
71625         * gnulib-tool: help message wording/arrangement.
71626
71627 2006-07-14  Simon Josefsson  <jas@extundo.com>
71628
71629         * doc/gnulib.texi (Libtool and Windows): New section.
71630
71631 2006-07-12  Simon Josefsson  <jas@extundo.com>
71632
71633         * modules/gendocs (License): Fix license, approved by Karl.
71634
71635 2006-07-12  Eric Blake  <ebb9@byu.net>
71636
71637         * MODULES.html.sh: Add gendocs.
71638
71639 2006-07-11  Eric Blake  <ebb9@byu.net>
71640
71641         * modules/fdl: New module, to install doc/fdl.texi.
71642         * MODULES.html.sh: Add new section for documentation modules.
71643         * gnulib-tool: Avoid space-tab.
71644         (--doc-base): New option, to manage files from doc.
71645
71646 2006-07-11  Eric Blake  <ebb9@byu.net>
71647
71648         * m4/absolute-header.m4: Fix comments to match recent change.
71649
71650 2006-07-11  Eric Blake  <ebb9@byu.net>
71651
71652         * gnulib-tool: List --doc-base before --tests-base.
71653
71654 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71655
71656         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71657
71658 2006-07-11  Bruno Haible  <bruno@clisp.org>
71659
71660         * README: Mention where to put documentation.
71661
71662 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71663
71664         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71665
71666 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71667
71668         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71669         to stdint.m4.
71670
71671 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71672
71673         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71674         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71675         "no/such/file/stdint.h" when there is no such file, so that
71676         the resulting C code can be parsed by dodgy compilers.
71677         Problems reported by Bob Proulx.
71678
71679 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71680
71681         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71682         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71683         macros into the GNU _D_EXACT_NAMLEN.
71684         * lib/savedir.c:  Likewise.
71685         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71686
71687 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71688         and Paul Eggert  <eggert@cs.ucla.edu>
71689
71690         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
71691         * m4/savedir.m4:
71692         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71693         macros into the GNU _D_EXACT_NAMLEN.
71694
71695 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71696
71697         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
71698         around the absolute name, to work around a problem with the HP-UX
71699         11.23 native C compiler, reported by Bob Proulx.
71700
71701 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71702
71703         * doc/maintain.texi, make-stds.texi: Sync from
71704         <http://savannah.gnu.org/projects/gnustandards>.
71705
71706 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71707
71708         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71709
71710 2006-07-09  Jim Meyering  <jim@meyering.net>
71711
71712         * m4/glob.m4: Remove a doubled word in a comment.
71713
71714 2006-07-09  Jim Meyering  <jim@meyering.net>
71715
71716         * lib/argp-pv.c: Remove a doubled word in a comment.
71717         * lib/check-version.c (check_version): Likewise.
71718         * lib/javacomp.c (compile_java_class): Likewise.
71719
71720 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71721
71722         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71723         for the benefit of people using Autoconf 2.60.  If you want to
71724         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71725         (or m4/onceonly.m4, if pre-2.57) manually.
71726
71727 2006-07-08  Jim Meyering  <jim@meyering.net>
71728
71729         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71730         comment.
71731         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71732         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71733         comment.
71734
71735 2006-07-08  Jim Meyering  <jim@meyering.net>
71736
71737         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
71738
71739 2006-07-07  Simon Josefsson  <jas@extundo.com>
71740
71741         * tests/test-crc.c: Change expected crc value, the test vector
71742         were probably computed using the old broken crc.c?
71743
71744 2006-07-06  Simon Josefsson  <jas@extundo.com>
71745
71746         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
71747         now the canonical place for the M4 file).
71748
71749         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
71750         from the sys_socket dependency now.
71751
71752         * modules/inet_pton (Files): Ditto.
71753
71754         * modules/inet_ntop (Files): Ditto.
71755
71756 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71757
71758         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71759         not gl_PREREQ_GETUSERSHELL.
71760
71761 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71762
71763         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71764         with only one argument, for Autoconf 2.60.
71765         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71766         expand to nothing, so add a shell command to avoid syntax error.
71767         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71768
71769 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71770
71771         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71772
71773 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71774
71775         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71776         no longer needed.  Check for isblank decl.
71777         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71778         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71779         of existence.
71780
71781 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71782
71783         * lib/getloadavg.c: Use __VMS, not VMS.
71784         * lib/getopt.c: Likewise.
71785         * lib/getpagesize.h: Likewise.
71786         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71787         and probably does not work.
71788
71789 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71790
71791         * lib/.cppi-disable: Add wcwidth.
71792         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71793         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
71794         (ISGRAPH): Remove.  All uses changed to isgraph.
71795         (FOLD) [!defined _LIBC]: Remove special case.
71796         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
71797         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
71798         HAVE_ISBLANK.
71799         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
71800         case.
71801
71802 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71803
71804         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
71805         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
71806         brackets.  Other minor changes to suppress some compiler
71807         warnings.
71808
71809 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71810         and Paul Eggert  <eggert@cs.ucla.edu>
71811
71812         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71813         of invoking obsolescent AC_HEADER_DIRENT macro.
71814         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71815         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71816         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71817         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71818         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71819         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71820         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71821         * m4/readdir.m4: Remove; no longer needed.
71822
71823 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71824         and Paul Eggert  <eggert@cs.ucla.edu>
71825
71826         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71827         Don't worry about this obsolete case any more.
71828         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71829         directories.
71830         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71831         worry about this obsolete case any more.
71832         * lib/fts.c: Likewise.
71833         * lib/getcwd.c: Likewise.
71834         * lib/glob.h: Likewise.
71835         * lib/savedir.c: Likewise.
71836
71837 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71838
71839         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71840         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71841         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71842         needed.
71843         All uses removed.
71844         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71845         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71846         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71847         needed.
71848         * m4/getdate.m4 (gl_GETDATE): Likewise.
71849         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71850         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71851         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71852         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71853         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71854         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71855         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71856         needed.
71857
71858 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71859
71860         * lib/memcasecmp.c: Include <limits.h>.
71861         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71862         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71863         Don't assume isdigit succeeds only on '0' through '9'.
71864
71865 2006-07-05  Eric Blake  <ebb9@byu.net>
71866
71867         * modules/getaddrinfo (Depends-on): Add snprintf.
71868
71869 2006-07-05  Eric Blake  <ebb9@byu.net>
71870
71871         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71872         to avoid 'header present but could not be compiled' on cygwin.
71873
71874 2006-07-05  Eric Blake  <ebb9@byu.net>
71875
71876         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71877         missing from netdb.h.
71878         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71879
71880 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71881
71882         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71883         no longer needed.
71884         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71885         * m4/getdate.m4 (gl_GETDATE): Likewise.
71886         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71887         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71888         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71889         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71890         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71891
71892 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71893
71894         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71895         All uses of is_space replaced by isspace.
71896         * lib/exit.h: Don't talk about STDC_HEADERS.
71897         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71898         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71899         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71900         replaced by isprint etc.
71901         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71902         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71903         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71904         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71905         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71906         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71907
71908 2006-07-05  Bruno Haible  <bruno@clisp.org>
71909
71910         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71911         the function exists, before testing against AIX.
71912         Reported by Martin Lambers <marlam@marlam.de>.
71913
71914 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71915
71916         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71917         From Mark D. Baushke.
71918
71919 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71920
71921         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71922         to the absolute name, not just one, to bypass Sun C 5.8's
71923         "warning: #include of /usr/include/... may be non-portable".
71924
71925 2006-07-04  Eric Blake  <ebb9@byu.net>
71926
71927         * modules/dirname-tests: New test module.
71928         * tests/test-dirname.c: New file, replacing dirname.c
71929         TEST_DIRNAME section that was recently deleted.
71930
71931 2006-07-04  Bruno Haible  <bruno@clisp.org>
71932
71933         Assume ANSI C header files and <ctype.h> functions.
71934         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71935         (mbsnwidth): Use isprint, iscntrl instead.
71936
71937 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71938
71939         Merge from coreutils.
71940         * MODULES.html.sh: Add xstrtold.
71941         * modules/xstrtold: New file.
71942         * modules/cycle-check (Files): Add lib/same-inode.h.
71943         * modules/dirname (Files): Add m4/double-slash-root.m4.
71944         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71945         * modules/mkdir-p (Files): Add lib/same-inode.h.
71946         * modules/same (Files): Add lib/same-inode.h.
71947
71948 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71949
71950         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71951         This is to keep the terminology clean; POSIX talks about
71952         "absolute pathnames", not "full pathnames", but the GNU
71953         Coding Standards say to use "path" for something else;
71954         so use "absolute" to keep both sides happy.
71955         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71956         Set gl_absolute_header, not gl_full_header_path.
71957         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71958         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71959         All uses changed.
71960
71961         Merge from coreutils.
71962
71963         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71964
71965         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71966         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71967         want to require the building of c-strtod.o.
71968         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71969         needs -lm directly.
71970         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71971
71972         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71973
71974         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71975         --as-needed option if available.  Problem reported by Albert Chin in
71976         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71977         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71978         cc merely issues a bunch of annoying warnings for --as-needed
71979         (this problem was reported by Bob Proulx).  Also, try linking with
71980         -lm to detect a bug in binutils 2.16 (this problem was reported
71981         by Ralf Wildenhues).
71982
71983         2006-06-18  Jim Meyering  <jim@meyering.net>
71984
71985         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71986         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71987         macro.
71988         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71989         also check for glibc-2.4's abort-inducing bug.
71990
71991         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71992         Low-probability clean-up should be to use rmdir to get rid of
71993         the just-created directory, not unlink.
71994
71995         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71996         configure fail, and request a bug report to inform us about it.
71997         Add a comment that, barring reports to the contrary, in 2007 we'll
71998         assume ftruncate is universally available.
71999
72000         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72001
72002         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
72003
72004         2006-03-12  Jim Meyering  <jim@meyering.net>
72005
72006         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
72007         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
72008         * m4/same.m4 (gl_SAME): Likewise.
72009         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
72010
72011         2006-03-11  Eric Blake  <ebb9@byu.net>
72012
72013         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
72014         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
72015         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
72016         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
72017
72018 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72019
72020         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
72021         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
72022         reported by Mark D. Baushke, one in
72023         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
72024
72025         Merge from coreutils.
72026
72027         * lib/.cppi-disable: Add stdint_.h.
72028         * lib/.cvsignore: Add stdint.h.
72029
72030         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72031
72032         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
72033         both double and long double versions.
72034         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
72035         * lib/xstrtold.c: New file.
72036         * lib/xstrtod.h (xstrtold): New decl.
72037
72038         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72039
72040         * lib/filemode.c (setst): Remove.
72041         (strmode): Rewrite to avoid setst.  This makes the code shorter,
72042         (arguably) clearer, and the generated code is a bit smaller on my
72043         Debian GNU/Linux stable x86 host.
72044
72045         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72046
72047         * lib/filemode.c: Include "filemode.h" first, to test the interface.
72048         Assume that filemode.h includes sys/types.h and sys/stat.h.
72049         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
72050         (ftypelet): Reorder to put common cases first, for efficiency.
72051         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
72052         to do 'M'.
72053         (strmode): Renamed from mode_string, and now stores 12 bytes instead
72054         of 10, for compatibility with FreeBSD.  All callers changed.
72055         (filemodestring): Now stores 12 bytes instead of 10, and sets file
72056         types that can't be deduced solely from st_mode.  First arg is now a
72057         const pointer.
72058         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
72059         (strmode): Renamed from mode_string.
72060         (filemodestring): New decl.
72061         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
72062         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
72063         needed.
72064         (S_ISPORT, S_ISWHT): New macros, if not already defined.
72065
72066         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72067
72068         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
72069         fsusage.h now does that.  Include fsusage.h first, to test interface.
72070         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
72071         at most one method (the old code could have generated decls that
72072         didn't conform to C89, not that this was ever exercised).
72073         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
72074
72075         2006-03-19  Jim Meyering  <jim@meyering.net>
72076
72077         Work even in a chroot where d_ino values for entries in "/"
72078         don't match the stat.st_ino values for the same names.
72079         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
72080         number, iterate through all entries again, using lstat instead.
72081         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
72082         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
72083
72084         * lib/getcwd.c (__getcwd): Clarify a comment.
72085         Use memcpy in place of a call to strcpy.
72086
72087         2006-03-12  Jim Meyering  <jim@meyering.net>
72088
72089         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
72090         matches that of the current directory (which we're about to chdir ".."
72091         out of), then save the dev-ino of the parent, instead.
72092
72093         * lib/same-inode.h (SAME_INODE): New file/macro.
72094         * lib/chdir-safer.c (SAME_INODE): Remove definition.
72095         Include "same-inode.h", instead.
72096         * lib/same.c: Likewise.
72097         * lib/cycle-check.h: Include "same-inode.h".
72098         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
72099         * lib/cycle-check.c (SAME_INODE): Remove definition.
72100         * lib/root-dev-ino.h: Include "same-inode.h".
72101
72102         2006-03-11  Eric Blake  <ebb9@byu.net>
72103
72104         * lib/same.c (same_name): s/base_name/last_component/
72105         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
72106         * lib/filenamecat.c (file_name_concat): Likewise.
72107
72108         2006-03-11  Eric Blake  <ebb9@byu.net>,
72109                     Paul Eggert  <eggert@cs.ucla.edu>
72110
72111         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
72112         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
72113         drive prefix.
72114         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
72115         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
72116         (last_component): New method.
72117         * lib/dirname.c (dir_len): Determine when drive letters need a
72118         subsequent slash.  Preserve // when it is special.
72119         (dir_name): Don't append dot when drive letter is absolute.
72120         [TEST_DIRNAME]: Move into a full-blown gnulib test.
72121         * lib/basename.c (base_name): New semantics - malloc the result.
72122         Preserve // when it is special.  Preserve relative files that look
72123         like drive letters.
72124         (base_len): Preserve // when it is special.
72125         (last_component): New method, similar to old base_name semantics.
72126         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
72127         base_name.  Strip redundant slashes from ///.
72128
72129 2006-07-03  Jim Meyering  <jim@meyering.net>
72130
72131         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
72132         macro is used before the first cycle_check call.
72133
72134 2006-07-03  Eric Blake  <ebb9@byu.net>
72135
72136         * modules/dirname (Depends-on): Add xstrndup.
72137
72138 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72139
72140         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
72141         test cases, so that config.log is a bit easier to follow.
72142
72143 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72144
72145         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
72146         both are 64 bits, since this seems to be the tradition, and this
72147         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
72148         we ever run into a host that prefers long long to long in this
72149         case, we'll need another configure-time test.  Problem reported by
72150         Jim Meyering.
72151
72152 2006-07-02  Eric Blake  <ebb9@byu.net>
72153
72154         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
72155
72156 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72157
72158         * modules/inttypes (Depends-on): No longer depends on stdint.
72159         * modules/stdint (Description): Say more about assumptions.
72160         Say that the fast types might differ.  Say macros are used.
72161         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
72162         (Makefile.am): Revise list of substituted symbols to match
72163         new stdint.m4.
72164         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
72165         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
72166         * tests/test-stdint.c (verify_same_types)
72167         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
72168         the code conforms to C99/C89.
72169         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
72170         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
72171
72172 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72173
72174         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
72175         but fix a bug, by requiring at least 64 bits.
72176         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
72177         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
72178         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
72179         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72180
72181         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
72182         changes.  Make 2.59 a prerequisite.  Check and substitute for
72183         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
72184         inttypes.h.  Do not use special include files; just use the
72185         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
72186         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
72187         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
72188         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
72189         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
72190         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
72191         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
72192         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
72193         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
72194         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
72195         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
72196         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
72197         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
72198         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
72199         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
72200         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
72201         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
72202         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
72203         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
72204         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
72205         WINT_MAX.  Check for C99 conformance more strictly, by detecting
72206         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
72207         not check for things that C99 does not require, e.g., int8_t.  If
72208         a test isn't needed unless <stdint.h> isn't working, and is
72209         unlikely to be needed for any other reason, then don't do it
72210         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
72211         size_t, since we assume C89 freestanding at least.  Do not check
72212         for sig_atomic_t, wchar_t, or wint_t, since the code now does
72213         the right thing even if the types are not defined.  Instead use:
72214         (gl_STDINT_TYPE_PROPERTIES): New macro.
72215         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
72216         testing whether <sys/types.h> clashes, as Autoconf does this for
72217         us now.  All uses removed.
72218         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
72219         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
72220         (gl_CHECK_TYPE_SAME):
72221         Remove; no longer needed.
72222         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
72223         exists, since we'll return 0 anyway in that case.
72224         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
72225
72226 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72227
72228         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
72229         possible collision with system files.
72230         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
72231         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
72232         WCHAR_MIN and WCHAR_MAX in this case.
72233         (<stddef.h>): Do not include; no longer needed.
72234         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
72235         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
72236         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
72237         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
72238         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
72239         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
72240         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
72241         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
72242         !defined(__c99))]: Include in this case too, since it's harmless
72243         now.
72244         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
72245         dangerous to do so.
72246         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
72247         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
72248         (_STDINT_MIN, _STDINT_MAX): New macros.
72249         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
72250         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
72251         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
72252         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
72253         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
72254         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
72255         macros, not typedefs; this simplifies things quite a bit.
72256         Use long int for all types narrower than int64_t.
72257         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
72258         Define in terms of long long int or int64_t or long int,
72259         not int64_t or int32_t.  This saves some compile-time testing.
72260         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
72261         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
72262         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
72263         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
72264         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
72265         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
72266         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
72267         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
72268         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
72269         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
72270         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72271         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72272         undef any previous version and define our own version, for
72273         simplicity and consistency with the new macros for types.
72274         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72275         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72276         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
72277         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
72278         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
72279         @WINT_T_SUFFIX@ to keep things simple here.
72280         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
72281         Simplify by assuming typical 8/16/32/64 host, since we're
72282         already doing that elsewhere anyway.
72283         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
72284         and assume long long int is 64 bits if available.  This
72285         speeds up 'configure'.
72286
72287 2006-07-01  Eric Blake  <ebb9@byu.net>
72288
72289         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
72290         Reported by Andreas Buening.
72291
72292 2006-07-01  Eric Blake  <ebb9@byu.net>
72293
72294         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
72295
72296 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72297
72298         * lib/getaddrinfo.c: fixed typo
72299
72300 2006-06-29  Jim Meyering  <jim@meyering.net>
72301
72302         * modules/strftime (Maintainer): Add my name, since with the
72303         FPRINTFTIME changes strftime.c has forked from glibc.
72304
72305 2006-06-29  Eric Blake  <ebb9@byu.net>
72306
72307         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
72308
72309 2006-06-29  Eric Blake  <ebb9@byu.net>
72310
72311         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
72312
72313 2006-06-29  Eric Blake  <ebb9@byu.net>
72314
72315         * lib/stat_.h: New file.
72316
72317 2006-06-29  Eric Blake  <ebb9@byu.net>
72318
72319         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
72320         unused static function.
72321
72322 2006-06-29  Eric Blake  <ebb9@byu.net>
72323
72324         * doc/functions.texi (Function Portability): Document missing lstat
72325         on mingw.
72326
72327 2006-06-29  Eric Blake  <ebb9@byu.net>
72328
72329         * MODULES.html.sh: Add sys_stat.
72330         * modules/sys_stat: New module.
72331         * modules/mkstemp (Depends-on): Add sys_stat.
72332
72333 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72334
72335         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
72336
72337 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72338
72339         * m4/c-bs-a.m4: Removed.
72340
72341 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72342
72343         * lib/strftime.c: Assume strftime() exists.
72344
72345 2006-06-29  Derek Price  <derek@ximbiot.com>
72346
72347         * modules/c-bs-a: Removed - \a is C89.
72348         * MODULES.html.sh: Remove c-bs-a.
72349
72350 2006-06-29  Bruno Haible  <bruno@clisp.org>
72351
72352         * modules/wcwidth (License): Change to LGPL.
72353
72354 2006-06-28  Simon Josefsson  <jas@extundo.com>
72355
72356         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
72357         on _WIN32.
72358
72359         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
72360         getnameinfo.
72361
72362 2006-06-28  Simon Josefsson  <jas@extundo.com>
72363
72364         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
72365
72366 2006-06-28  Simon Josefsson  <jas@extundo.com>
72367
72368         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
72369         functions there.  It will succeed on Windows XP, but on Windows
72370         2000 and (presumably) earlier, it will fail, and use the internal
72371         re-implementation.
72372         (use_win32_p): New function.
72373         (getaddrinfo): Use strtoul on servname, to support numeric ports.
72374         Support AI_NUMERICSERV to disable getservbyname.
72375         (getnameinfo): New function, only supports
72376         NI_NUMERICHOST|NI_NUMERICSERV for now.
72377
72378         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
72379         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
72380         getnameinfo.
72381
72382 2006-06-28  Eric Blake  <ebb9@byu.net>
72383
72384         * modules/wcwidth: New file.
72385         * modules/mbchar (Depends-on): Add wcwidth.
72386         * modules/mbswidth (Depends-on): Add wcwidth.
72387         * MODULES.html.sh: Add wcwidth.
72388
72389 2006-06-28  Eric Blake  <ebb9@byu.net>
72390
72391         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
72392         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
72393
72394 2006-06-28  Eric Blake  <ebb9@byu.net>
72395
72396         * lib/xvasprintf.h: Fix comments.
72397
72398 2006-06-28  Eric Blake  <ebb9@byu.net>
72399
72400         * lib/mbchar.h (wcwidth): Include wcwidth.h.
72401         * lib/mbswidth.c (wcwidth): Move from here...
72402         * lib/wcwidth.h: ...to this new file.
72403
72404 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72405
72406         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
72407
72408         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
72409         it's obsolete.
72410         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
72411
72412 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72413
72414         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
72415         Autoconf 2.60 says this stuff was obsolete.
72416
72417 2006-06-28  Bruno Haible  <bruno@clisp.org>
72418
72419         * modules/wcwidth (Files): Add m4/wchar_t.m4.
72420
72421 2006-06-28  Bruno Haible  <bruno@clisp.org>
72422
72423         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
72424         gt_TYPE_WCHAR_T.
72425
72426 2006-06-28  Bruno Haible  <bruno@clisp.org>
72427
72428         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
72429         declaration for wcwidth.
72430         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
72431
72432 2006-06-28  Bruno Haible  <bruno@clisp.org>
72433
72434         * lib/mkdtemp.c [MINGW]: Include <io.h>.
72435         (mkdir): Define using _mkdir.
72436
72437 2006-06-28  Bruno Haible  <bruno@clisp.org>
72438
72439         * lib/getaddrinfo.h: Fix POSIX URL.
72440         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
72441         _WIN32.
72442         (use_win32_p): Make static.
72443         (getaddrinfo): Reject service name if it is empty or does not consist
72444         solely of decimal digits, or if its value is > 65535.
72445         (getnameinfo): Remove useless casts.
72446
72447 2006-06-27  Simon Josefsson  <jas@extundo.com>
72448
72449         * modules/sys_select: New file, suggested by Bruno Haible, Paul
72450         Eggert and Martin Lambers.
72451
72452 2006-06-27  Simon Josefsson  <jas@extundo.com>
72453
72454         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
72455         Eggert and Martin Lambers.
72456
72457 2006-06-27  Bruno Haible  <bruno@clisp.org>
72458
72459         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
72460         result to 0, not to empty.
72461         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
72462
72463 2006-06-27  Bruno Haible  <bruno@clisp.org>
72464
72465         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
72466
72467 2006-06-26  Simon Josefsson  <jas@extundo.com>
72468
72469         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
72470         present.
72471
72472 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
72473
72474         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
72475         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
72476         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
72477
72478 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
72479
72480         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
72481
72482 2006-06-26  Bruno Haible  <bruno@clisp.org>
72483
72484         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
72485
72486 2006-06-26  Bruno Haible  <bruno@clisp.org>
72487
72488         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
72489
72490 2006-06-26  Bruno Haible  <bruno@clisp.org>
72491
72492         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
72493         SGI C compiler in pre-C99 mode.
72494         Suggested by Mark D. Baushke and Larry Jones.
72495
72496 2006-06-26  Bruno Haible  <bruno@clisp.org>
72497
72498         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
72499         WCHAR_MAX.
72500         Reported by Mark D. Baushke and Larry Jones.
72501
72502 2006-06-26  Bruno Haible  <bruno@clisp.org>
72503
72504         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
72505         in pre-C99 mode.
72506         Suggested by Mark D. Baushke and Larry Jones.
72507
72508 2006-06-23  Simon Josefsson  <jas@extundo.com>
72509             Bruno Haible  <bruno@clisp.org>
72510
72511         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
72512         Emit mostlyclean-local rule.
72513         (func_emit_tests_Makefile_am): Likewise.
72514         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
72515
72516 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
72517
72518         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
72519
72520 2006-06-23  Bruno Haible  <bruno@clisp.org>
72521
72522         * tests/test-stdint.c: Update to match ISO C 99 Technical
72523         Corrigendum 1.
72524
72525 2006-06-23  Bruno Haible  <bruno@clisp.org>
72526
72527         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
72528
72529 2006-06-23  Bruno Haible  <bruno@clisp.org>
72530
72531         * lib/stdint_.h: Treat IRIX like OpenBSD.
72532
72533 2006-06-23  Bruno Haible  <bruno@clisp.org>
72534
72535         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
72536         ISO C 99 Technical Corrigendum 1.
72537
72538 2006-06-22  Simon Josefsson  <jas@extundo.com>
72539
72540         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
72541         MinGW.
72542
72543 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72544
72545         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
72546         needed.  Some compiler complained about some of them.  Problem reported
72547         by Larry Jones in
72548         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
72549
72550 2006-06-21  Simon Josefsson  <jas@extundo.com>
72551
72552         * tests/test-getaddrinfo.c: New file.
72553
72554         * modules/getaddrinfo-tests: New file.
72555
72556         * MODULES.html.sh: Add inet_pton.
72557
72558         * modules/inet_pton: New file.
72559
72560 2006-06-21  Simon Josefsson  <jas@extundo.com>
72561
72562         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
72563         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
72564         of using the (limited) gnulib implementation on Windows XP.
72565
72566         * m4/inet_pton.m4: New file.
72567
72568 2006-06-21  Simon Josefsson  <jas@extundo.com>
72569
72570         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
72571         variable.
72572
72573         * lib/socket_.h: Don't define WINVER.
72574
72575         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
72576         slightly modified to work in gnulib.
72577
72578 2006-06-21  Simon Josefsson  <jas@extundo.com>
72579
72580         * doc/gnulib.texi (Windows sockets): Add.
72581
72582 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
72583
72584         * lib/read-file.c (fread_file): Start with buffer allocation of
72585         0 bytes rather than 1 byte; this simplifies the code.
72586         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
72587         code to free buffer and save/restore errno.
72588         (internal_read_file): Remove unused local.
72589
72590 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
72591
72592         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
72593         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
72594         Problem reported by Denis Excoffier in
72595         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
72596
72597 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72598
72599         * modules/sys_socket, modules/socklen: Include sys/types since
72600         FreeBSD 4.x's sys/socket.h needs it.
72601
72602 2006-06-19  Simon Josefsson  <jas@extundo.com>
72603
72604         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
72605
72606 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72607
72608         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
72609
72610 2006-06-19  Bruno Haible  <bruno@clisp.org>
72611
72612         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
72613         and FULL_PATH_INTTYPES_H in angle brackets.
72614         Reported by Mark D. Baushke <mdb@gnu.org>.
72615
72616 2006-06-17  Eric Blake  <ebb9@byu.net>
72617
72618         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
72619         errno.
72620
72621 2006-06-17  Bruno Haible  <bruno@clisp.org>
72622
72623         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
72624         <sys/inttypes.h>.
72625
72626 2006-06-17  Bruno Haible  <bruno@clisp.org>
72627
72628         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
72629         whether errno is declared. Assume <errno.h> declares errno.
72630
72631 2006-06-17  Bruno Haible  <bruno@clisp.org>
72632
72633         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
72634
72635 2006-06-17  Bruno Haible  <bruno@clisp.org>
72636
72637         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
72638         problem on Solaris 2.5.1.
72639
72640 2006-06-16  Eric Blake  <ebb9@byu.net>
72641
72642         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72643         * lib/unicodeio.c [!defined errno]: Likewise.
72644         * lib/strtol.c [!defined errno]: Likewise.
72645         * lib/strtod.c [!defined errno]: Likewise.
72646
72647 2006-06-15  Eric Blake  <ebb9@byu.net>
72648
72649         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72650
72651 2006-06-15  Eric Blake  <ebb9@byu.net>
72652
72653         * config/srclist.txt (ssize_t.m4): Lose sync.
72654
72655 2006-06-15  Bruno Haible  <bruno@clisp.org>
72656
72657         * modules/stdint (Files): Include m4/full-header-path.m4,
72658         m4/size_max.m4, m4/wchar_t.m4.
72659         (Makefile.am): Many more substitutions.
72660         * modules/stdint-tests: New file.
72661         * tests/test-stdint.c: New file.
72662
72663 2006-06-15  Bruno Haible  <bruno@clisp.org>
72664
72665         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72666         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72667         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72668         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72669         gl_CHECK_TYPE_SAME): New macros.
72670
72671 2006-06-15  Bruno Haible  <bruno@clisp.org>
72672
72673         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72674
72675 2006-06-15  Bruno Haible  <bruno@clisp.org>
72676
72677         * lib/stdint_.h: Rewritten to be fully auto-configured.
72678         Fixes bug on HP-UX/IA64.
72679
72680 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72681
72682         * lib/getdate.y (__attribute__): Don't define if already defined.
72683         Problem reported by Larry Jones.
72684         * lib/utimens.c (__attribute__): Likewise.
72685
72686 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72687
72688         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72689         reported by Andreas Schwab.
72690
72691 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72692             Bruno Haible  <bruno@clisp.org>
72693
72694         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
72695         check for the declaration of strnlen and a run test that exposes the
72696         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
72697         rpl_strndup.
72698
72699 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72700             Bruno Haible  <bruno@clisp.org>
72701
72702         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
72703
72704 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72705
72706         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72707         compile test, for Tru64 4.0D.
72708
72709 2006-05-28  Karl Berry  <karl@gnu.org>
72710
72711         * config/srclist.txt (printf-args.c): lose sync.
72712
72713 2006-05-26  Martin Lambers  <marlam@marlam.de>
72714
72715         * lib/getpass.c: Updates the test for the native W32 API, and adds
72716         missing includes, thus fixing compilation warnings.
72717
72718 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72719
72720         * lib/exclude.c (exclude_fnmatch): New function.
72721         (excluded_file_name): Call exclude_fnmatch.
72722         * lib/exclude.h (excluded_file_name): New prototype
72723
72724 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72725
72726         * lib/tempname.c (small_open, large_open): New macros.
72727         (__open, __open64) [!_LIBC]: Remove.
72728         (__gen_tempname): Use small_open and large_open instead of __open
72729         and __open64.  This fixes a portability bug on HP-UX 11.11i
72730         reported by Simon Wing-Tang in
72731         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72732
72733 2006-05-24  Bruno Haible  <bruno@clisp.org>
72734
72735         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
72736         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
72737         Reported by Thorsten Maerz <torte@netztorte.de> via
72738         Aaron Stone <aaron@serendipity.cx>.
72739
72740 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72741
72742         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
72743         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
72744         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
72745         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
72746         not really conditional on the cache.
72747         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
72748
72749 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72750
72751         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
72752         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
72753         (my_usleep): Don't mishandle maximum value.
72754
72755 2006-05-19  Jim Meyering  <jim@meyering.net>
72756
72757         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72758
72759 2006-05-17  Bruno Haible  <bruno@clisp.org>
72760
72761         Cygwin portability.
72762         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72763
72764 2006-05-17  Bruno Haible  <bruno@clisp.org>
72765
72766         * lib/stdint_.h: Fix recognition of Cygwin.
72767
72768 2006-05-15  Bruno Haible  <bruno@clisp.org>
72769
72770         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72771         on libtool patch by Ralf Wildenhues.
72772
72773 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72774
72775         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72776         test for C99 conformance; (bool) 0.5 is an integer constant
72777         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72778         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72779
72780 2006-05-11  Simon Josefsson  <jas@extundo.com>
72781
72782         * m4/xvasprintf.m4: Fix obvious typo.
72783
72784 2006-05-11  Jim Meyering  <jim@meyering.net>
72785
72786         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72787         James Lemley.
72788
72789 2006-05-10  Simon Josefsson  <jas@extundo.com>
72790
72791         * lib/md4.c: Typo fix, update copyright years.
72792         (K1, K2): Don't use L because it turn computations into 64-bit on
72793         64-bit platforms.
72794
72795 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
72796
72797         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
72798         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
72799         unwanted sign propagation, e.g., on hosts with 64-bit int.
72800         There still are some problems with reeelly weird theoretical hosts
72801         (e.g., 33-bit int) but it's not worth worrying about now.
72802         * lib/sha1.c (rol): Likewise.
72803         (K1, K2, K3, K4): Remove unnecessary L suffix.
72804
72805 2006-05-10  Bruno Haible  <bruno@clisp.org>
72806
72807         * lib/des.c: Cast to avoid warnings.
72808
72809 2006-05-09  Bruno Haible  <bruno@clisp.org>
72810
72811         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72812         (Depends-on): Depend also on xsize, stdarg.
72813         (configure.ac): Add gl_XVASPRINTF.
72814
72815 2006-05-09  Bruno Haible  <bruno@clisp.org>
72816
72817         * m4/xvasprintf.m4: New file.
72818
72819 2006-05-09  Bruno Haible  <bruno@clisp.org>
72820
72821         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72822         (EOVERFLOW): Define fallback value.
72823         (xstrcat): New function.
72824         (xvasprintf): Recognize the special case of a string concatenation.
72825
72826 2006-05-08  Eric Blake  <ebb9@byu.net>
72827
72828         * gnulib-tool (func_version): Base copyright year on CVS date.
72829         (func_emit_copyright_notice): New function.
72830         (func_emit_lib_Makefile_am): Use it.
72831         (func_emit_tests_Makefile_am): Likewise.
72832         (func_import): Likewise.
72833
72834 2006-05-08  Bruno Haible  <bruno@clisp.org>
72835
72836         * modules/stdarg: New file.
72837         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72838
72839 2006-05-08  Bruno Haible  <bruno@clisp.org>
72840
72841         * m4/stdarg.m4: New file, from GNU gettext.
72842
72843 2006-05-08  Bruno Haible  <bruno@clisp.org>
72844
72845         * config/srclist.txt (build-aux/config.rpath): different from latest
72846         release.
72847
72848 2006-05-08  Bruno Haible  <bruno@clisp.org>
72849
72850         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72851
72852 2006-05-05  Jim Meyering  <jim@meyering.net>
72853
72854         * m4/warning.m4: New file, derived from bison's file by the same name.
72855
72856 2006-05-03  Bruno Haible  <bruno@clisp.org>
72857
72858         * lib/stdint_.h: Shorter URL.
72859         * lib/inttypes.h: Likewise.
72860
72861 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72862
72863         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72864
72865 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72866
72867         * lib/verify.h: Document the internals better.  Most of this change
72868         was written by Bruno Haible.
72869
72870 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72871
72872         * doc/verify.texi: New file, partly based on a proposal by
72873         Bruno Haible.
72874
72875 2006-05-02  Bruno Haible  <bruno@clisp.org>
72876
72877         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72878         test from here...
72879         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72880
72881 2006-04-29  Bruno Haible  <bruno@clisp.org>
72882
72883         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72884         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72885
72886 2006-04-29  Bruno Haible  <bruno@clisp.org>
72887
72888         * gnulib-tool: Make --update option actually work.
72889
72890 2006-04-29  Bruno Haible  <bruno@clisp.org>
72891
72892         * doc/gcd.texi: New file.
72893         * doc/gnulib.texi: Include it.
72894
72895 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72896
72897         * lib/getdate.y (get_date): When adding relative date, start with the
72898         initial time, not with the result of the first mktime call.
72899
72900 2006-04-25  Bruno Haible  <bruno@clisp.org>
72901
72902         * gnulib-tool (func_import): Output the include directives in three
72903         blocks, sorted separately.
72904         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72905
72906 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72907
72908         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72909         to define main with arguments, for C++.  Reported by Eric Blake.
72910         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72911         Prefer 'int main ()' to 'int main (void)', for C++.
72912         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72913         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72914         for 'main', for C99 and C++.
72915
72916 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72917
72918         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72919         Don't assume that exit status -1 is valid.
72920         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72921         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72922         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72923         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72924         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72925         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72926         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72927         functions can be used without declaring them, or that you can
72928         exit with status -1.
72929         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72930
72931 2006-04-24  Karl Berry  <karl@gnu.org>
72932
72933         * config/srclist.txt (longdouble.m4): sync lost.
72934
72935 2006-04-24  Eric Blake  <ebb9@byu.net>
72936
72937         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72938
72939 2006-04-24  Bruno Haible  <bruno@clisp.org>
72940
72941         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72942         poll() implementation in AIX.
72943         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72944
72945 2006-04-24  Bruno Haible  <bruno@clisp.org>
72946
72947         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72948         assigned exactly once.
72949
72950 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72951             Bruno Haible  <bruno@clisp.org>
72952
72953         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72954         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72955         for AM_CPPFLAGS.
72956
72957 2006-04-23  Bruno Haible  <bruno@clisp.org>
72958
72959         * modules/copy-file: Depend on unistd.
72960         * modules/execute: Likewise.
72961         * modules/fatal-signal: Likewise.
72962         * modules/findprog: Likewise.
72963         * modules/mkdtemp : Likewise.
72964         * modules/pipe: Likewise.
72965         * modules/wait-process: Likewise.
72966
72967 2006-04-23  Bruno Haible  <bruno@clisp.org>
72968
72969         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72970         condition was already detected.
72971         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72972
72973 2006-04-23  Bruno Haible  <bruno@clisp.org>
72974
72975         * lib/copy-file.c: Include <unistd.h> unconditionally.
72976         * lib/execute.c: Likewise.
72977         * lib/fatal-signal.c: Likewise.
72978         * lib/findprog.c: Likewise.
72979         * lib/mkdtemp.c: Likewise.
72980         * lib/pipe.h: Likewise.
72981         * lib/pipe.c: Likewise.
72982         * lib/wait-process.h: Likewise.
72983
72984 2006-04-23  Bruno Haible  <bruno@clisp.org>
72985
72986         * gnulib-tool (func_usage): Fix --import description. Document
72987         --update.
72988         (func_import): Create temporary file in a temporary directory, if
72989         --dry-run is specified. Silence errors from 'grep' when there are no
72990         m4 files in $m4dir.
72991         (func_create_testdir): Silence errors from 'grep' when there are no
72992         m4 files in $m4dir.
72993         Reported by Karl Berry <karl@freefriends.org>.
72994
72995 2006-04-20  Bruno Haible  <bruno@clisp.org>
72996
72997         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72998         one argument, so that the code will be portable to Autoconf 2.60.
72999         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
73000         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73001         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
73002
73003 2006-04-19  Derek Price  <derek@ximbiot.com>
73004             Eric Blake  <ebb9@byu.net>
73005
73006         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
73007         rather than "/full/path.h".  Update comment to match.  Shorten &
73008         generalize m4_translit call via AS_TR_CPP.
73009
73010 2006-04-19  Derek Price  <derek@ximbiot.com>
73011             Eric Blake  <ebb9@byu.net>
73012
73013         * lib/inttypes.h: Correct grammar in comment.
73014
73015 2006-04-18  Derek Price  <derek@ximbiot.com>
73016             Paul Eggert  <eggert@cs.ucla.edu>
73017
73018         * modules/inttypes: New file.
73019         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
73020
73021 2006-04-18  Derek Price  <derek@ximbiot.com>
73022             Paul Eggert  <eggert@cs.ucla.edu>
73023
73024         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
73025         New files.
73026
73027 2006-04-18  Derek Price  <derek@ximbiot.com>
73028             Paul Eggert  <eggert@cs.ucla.edu>
73029
73030         * lib/inttypes.h: New file.
73031         * lib/strtoimax.c: Assume <inttypes.h>.
73032
73033 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
73034
73035         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
73036         isn't mounted.  Problem reported by Kir Kolyshkin.
73037
73038 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73039
73040         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
73041         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
73042         Derek R. Price.
73043         * lib/regex.h (RE_DUP_MAX): Update comment to match current
73044         implementation.
73045
73046 2006-04-12  Eric Blake  <ebb9@byu.net>
73047
73048         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
73049         is now done automatically by the corresponding Autoconf macro.
73050
73051 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
73052
73053         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
73054         time_r.h.
73055
73056 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73057
73058         Merge regex changes from libc, removing some of our
73059         POSIX-conformance changes that were rejected and redoing them in a
73060         less-intrusive way.
73061
73062         * lib/regcomp.c (re_compile_internal, init_dfa):
73063         Length arg is now size_t, not Idx.  All uses changed.
73064         (peek_token): Forward decl now says internal_function.
73065         (__re_error_msgid, __re_error_msgid_idx):
73066         Now static rather than extern with attribute_hidden.
73067         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
73068         For some reason libc prefers K&R style defns for external functions.
73069         (regerror) [!defined _LIBC]: Likewise.
73070         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
73071         (seek_collating_symbol_entry, lookup_collation_sequence_value):
73072         (build_range_exp, build_collating_symbol):
73073         Use K&R-style defn.
73074         (re_compile_fastmap): Use '\0' to memset, not 0.
73075         (utf8_sb_map): Make the calculations more obvious.
73076         (init_dfa, parse_bracket_exp, build_charclass_op):
73077         Call calloc and cast result, as glibc does.
73078         (init_word_char, fetch_token, peek_token, peek_token_bracket):
73079         (build_range_exp, build_collating_symbol):
73080         Now internal functions.
73081
73082         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
73083
73084         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
73085         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
73086         Don't depend on VMS; depend on __VMS instead, for POSIX
73087         namespace cleanness.
73088         (regoff_t): Define to ssize_t, not long int.
73089
73090         Remove the REG_ macros named below.  Instead, make the old names
73091         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
73092         __USE_GNU_REGEX.
73093         (REG_BACKSLASH_ESCAPE_IN_LISTS):
73094         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
73095         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
73096         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
73097         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
73098         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
73099         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
73100         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
73101         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
73102         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
73103         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
73104         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
73105         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
73106         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
73107         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
73108         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
73109         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
73110         (REG_NREGS):
73111         Remove.  All uses replaced by the old RE_* names.
73112         (RE_BACKSLASH_ESCAPE_IN_LISTS):
73113         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
73114         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
73115         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
73116         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
73117         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
73118         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
73119         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
73120         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
73121         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
73122         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
73123         Don't bother having these macros be independent of each others'
73124         values, since they no longer exist in the POSIX name space.
73125
73126         Rename the following member names back to their old names,
73127         unless !__USE_GNU_REGEX.  All uses changed back.
73128         (buffer): Renamed from re_buffer.
73129         (allocated): Renamed from re_allocated.
73130         (used): Renamed from re_used.
73131         (syntax): Renamed from re_syntax.
73132         (fastmap): Renamed from re_fastmap.
73133         (translate): Renamed from re_translate.
73134         (can_be_null): Renamed from re_can_be_null.
73135         (regs_allocated): Renamed from re_regs_allocated.
73136         (fastmap_accurate): Renamed from re_fastmap_accurate.
73137         (no_sub): Renamed from re_no_sub.
73138         (not_bol): Renamed from re_not_bol.
73139         (not_eol): Renamed from re_not_eol.
73140         (newline_anchor): Renamed from re_newline_anchor.
73141         (num_regs): Renamed from rm_num_regs.
73142         (start): Renamed from rm_start.
73143         (end): Renamed from rm_end.
73144
73145         (free_state): Move up a bit.
73146
73147         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
73148         #define to be empty.
73149         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
73150         when that is what is intended.
73151         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
73152         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
73153         (MAX): New macro.
73154         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
73155         All uses changed back to re_malloc, etc.  It's now the caller's
73156         responsibility to check for overflow; all callers changed.
73157         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
73158         (re_x2nrealloc): Remove.
73159         (free_state): Remove decl.
73160
73161         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
73162         (re_set_registers, re_exec):
73163         Use K&R-style defn.
73164
73165         2006-01-31  Roland McGrath  <roland@redhat.com>
73166
73167         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
73168         Reported by Mike Frysinger <vapier@gentoo.org>.
73169
73170         2006-01-15  Andreas Jaeger  <aj@suse.de>
73171
73172         [BZ #1950]
73173         * lib/regex_internal.c (re_string_reconstruct): Adjust for
73174         build_wcs_upper_buffer change.
73175         (build_wcs_upper_buffer): Change return type.
73176
73177         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
73178
73179         * lib/regex_internal.h: Include <stdint.h> if available.
73180
73181         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
73182
73183         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
73184
73185         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73186
73187         * lib/regcomp.c: Adjust for changed secondary hash function.
73188
73189         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
73190
73191         * lib/regex.h: Pretty printing.
73192         Clean up namespace a bit.
73193
73194         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
73195
73196         * lib/regexec.c (update_cur_sifted_state, check_arrival,
73197         check_arrival_add_next_nodes): Avoid using uninitialized variable.
73198
73199         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73200                     Ulrich Drepper  <drepper@redhat.com>
73201
73202         [BZ #1302]
73203         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
73204         changed.
73205         (bitset_word_t): Renamed from bitset_word.  All uses changed.
73206
73207         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
73208
73209         [BZ #281]
73210         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
73211         * lib/regcomp.c: Remove unnecessary uses of
73212         unsigned RE_TRANSLATE_TYPE.
73213         * lib/regex_internal.h: Likewise.
73214         * lib/regex_internal.c: Likewise.
73215         * lib/regexec.c: Likewise.
73216         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
73217
73218         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
73219
73220         * lib/regexec.c (find_recover_state): Remove unnecessary
73221         initialization.
73222         (transit_state_bkref): Make DFA a const pointer.
73223         (get_subexp): Likewise.
73224         (check_arrival): Likewise.
73225         (update_cur_sifted_state): Likewise.
73226         (re_search_internal): Likewise.
73227         (prune_impossible_nodes): Likewise.
73228         (acquire_init_state_context): Likewise.
73229         (proceed_next_node): Likewise.
73230         (set_regs): Likewise.
73231         (free_fail_stack_return): Likewise.
73232         (check_arrival_expand_ecl): Mark DFA parameter as const.
73233         (check_arrival_expand_ecl_sub): Likewise.
73234         (check_subexp_limits): Likewise.
73235         (sub_epsilon_src_nodes):  Likewise.
73236         (add_epsilon_src_nodes):  Likewise.
73237         (merge_state_array): Likewise.
73238         (update_regs): Likewise.
73239         (build_trtable): Likewise.
73240         (sift_states_backward): Mark MCTX parameter as const.
73241         (build_sifted_states): Likewise.
73242         (update_cur_sifted_state): Likewise.
73243         (sift_states_mkref): Likewise.
73244         (check_arrival_expand_ecl): Mark eclosure as const.
73245         (check_dst_limits_calc_pos_1): Likewise.
73246         * lib/regex_internal.h (re_match_context_t): Make dfa a const
73247         pointer.
73248
73249         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
73250
73251         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
73252         (transit_state_sb): Likewise.
73253         (transit_state_mb): Likewise.
73254         (sift_states_iter_mb): Likewise.
73255         (check_arrival_add_next_nodes): Likewise.
73256         (check_node_accept_bytes): Change first parameter to pointer-to-const.
73257         [_LIBC] (re_search_2_stub): Use mempcpy.
73258
73259         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
73260         mbrtowc for very simple UTF-8 case.
73261
73262         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
73263         a pointer-to-const.
73264         (re_acquire_state_context): Likewise.
73265         * lib/regex_internal.h: Adjust prototypes.
73266
73267         * lib/regex.c: Prevent using C++ compilers.
73268
73269         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
73270         (re_acquire_state_context): Likewise.
73271
73272 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73273
73274         * modules/regex (Depends-on): Add ssize_t.
73275
73276 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73277
73278         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
73279         translation table.
73280
73281 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73282
73283         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
73284
73285 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
73286             Bruno Haible  <bruno@clisp.org>
73287
73288         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
73289         <sys/types.h> and <inttypes.h>.
73290
73291 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73292
73293         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
73294         `__error_t_defined', so argp.h will not typedef the former.
73295
73296 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73297
73298         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
73299         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
73300         glibc names.  Even if glibc is changed to conform to POSIX, the
73301         traditional names will be available anyway, since regex depends on
73302         the extensions module.  Also, fix a longstanding typo in the
73303         implementation of Spencer ERE test #75 from grep 2.3.  Problems
73304         reported by Emanuele Giaquinta.  Also, change sense of cached
73305         variable, so that the message makes sense.
73306
73307 2006-03-24  Simon Josefsson  <jas@extundo.com>
73308
73309         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
73310         including some doc fixes.
73311         (base64_encode_alloc): Fix +1 bug on allocation failures.
73312
73313 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73314
73315         * lib/base64.c (base64_encode): Do not read past end of array with
73316         unsanitized input on systems with CHAR_BIT > 8.
73317
73318 2006-03-24  Eric Blake  <ebb9@byu.net>
73319
73320         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
73321
73322 2006-03-22  Karl Berry  <karl@gnu.org>
73323
73324         * config/srclist.txt (*setenv.[ch]): get from coreutils.
73325         * config/srclistvars.sh (COREUTILS): new var.
73326
73327 2006-03-17  Jim Meyering  <jim@meyering.net>
73328
73329         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
73330         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
73331
73332 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73333
73334         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
73335         no longer needs it.  Instead, check that regoff_t is as least
73336         as wide as ptrdiff_t.
73337
73338         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
73339         so that our regex.h stays compatible with the installed regex.
73340         This is helpful for installers who configure --without-included-regex.
73341         Problem reported by Emanuele Giaquinta.
73342
73343 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73344
73345         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
73346         Typedef to long int, not to off_, as POSIX will likely change
73347         in that direction.
73348
73349 2006-03-15  Eric Blake  <ebb9@byu.net>
73350
73351         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
73352
73353 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73354
73355         * lib/argp-help.c (validate_uparams): Fix typo
73356         * lib/argp-parse.c (argp_default_options): Consistently begin help
73357         messages with a lowercase letter.
73358
73359 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
73360
73361         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
73362         overrun buffers and shouldn't be used (much as gets shouldn't be
73363         used).
73364         * lib/time_r.c (asctime_r, ctime_r): Likewise.
73365
73366 2006-03-08  Simon Josefsson  <jas@extundo.com>
73367
73368         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
73369         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73370
73371 2006-03-08  Simon Josefsson  <jas@extundo.com>
73372
73373         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
73374         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73375
73376 2006-03-08  Simon Josefsson  <jas@extundo.com>
73377
73378         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
73379         signal that configure disabled the device.
73380
73381 2006-03-08  Simon Josefsson  <jas@extundo.com>
73382
73383         * build-aux/maint.mk: Fix refresh-po, to handle no translated
73384         languages.
73385
73386 2006-03-07  Simon Josefsson  <jas@extundo.com>
73387
73388         * modules/getopt (Depends-on): Add unistd.
73389
73390         * modules/unistd: New file.
73391
73392 2006-03-07  Simon Josefsson  <jas@extundo.com>
73393
73394         * modules/gc-random: New file.
73395
73396 2006-03-07  Simon Josefsson  <jas@extundo.com>
73397
73398         * m4/unistd_h.m4: New file.
73399
73400 2006-03-07  Simon Josefsson  <jas@extundo.com>
73401
73402         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
73403         test to be side-effect free by storing the result in the cache
73404         variable gl_cv_lib_readline, and moving the assignment of
73405         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
73406         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73407
73408 2006-03-07  Simon Josefsson  <jas@extundo.com>
73409
73410         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
73411         error on missing devices (the functions will return an error).
73412
73413         * m4/gc.m4: Move random stuff to gc-random.m4
73414
73415 2006-03-07  Simon Josefsson  <jas@extundo.com>
73416
73417         * lib/unistd_.h: New file.
73418
73419 2006-03-07  Simon Josefsson  <jas@extundo.com>
73420
73421         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
73422
73423 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73424
73425         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
73426         Problem reported by Juan Manuel Guerrero.
73427
73428 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73429
73430         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
73431         the unistd module.
73432         * lib/getlogin_r.c: Likewise.
73433         * lib/getlogin_r.h: Likewise.
73434         * lib/glob.c: Likewise.
73435         * lib/pagealign_alloc.c: Likewise.
73436         * lib/unistd_.h: Remove; no longer needed.
73437
73438 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73439
73440         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73441         Add unistd.
73442         * modules/c-stack (Depends-on): Add unistd.
73443         * modules/getlogin_r: Likewise.
73444         * modules/glob: Likewise.
73445         * modules/pagealign_alloc: Likewise.
73446         * modules/unistd (Files): Remove lib/unistd_.h.
73447         (EXTRA_DIST): Remove.
73448         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
73449         need unistd_.h.
73450         (MOSTLYCLEANFILES): Remove unistd.h-t.
73451
73452 2006-03-03  Simon Josefsson  <jas@extundo.com>
73453
73454         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
73455
73456 2006-03-03  Simon Josefsson  <jas@extundo.com>
73457
73458         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
73459         libidn and bison.
73460
73461 2006-03-03  Simon Josefsson  <jas@extundo.com>
73462
73463         * build-aux/maint.mk: Add indent target.
73464
73465 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
73466
73467         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
73468         our replacement poll.h in any case, to avoid a differing
73469         declaration from a system header.  Seen on AIX.
73470
73471 2006-03-01  Simon Josefsson  <jas@extundo.com>
73472
73473         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
73474         <kasal@ucw.cz>.
73475
73476 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73477
73478         * modules/gettime (Depends-on): Add extensions module.
73479         * modules/nanosleep (Depends-on): Likewise.
73480         * modules/settime (Depends-on): Likewise.
73481
73482 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73483
73484         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
73485         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
73486         pedantically.
73487         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73488         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
73489
73490         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
73491         not "==".  Reported by Ralf Wildenhues.
73492
73493 2006-03-01  Karl Berry  <karl@gnu.org>
73494
73495         * doc/Copyright/request-*: new files, synced from gnuorg.
73496
73497 2006-03-01  Karl Berry  <karl@gnu.org>
73498
73499         * config/srclist.txt (Copyright/*): new entries.
73500
73501 2006-02-28  Simon Josefsson  <jas@extundo.com>
73502
73503         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
73504
73505 2006-02-27  Simon Josefsson  <jas@extundo.com>
73506
73507         * lib/base64.h: Indent #define's.  From Jim Meyering
73508         <jim@meyering.net>.
73509
73510 2006-02-27  Jim Meyering  <jim@meyering.net>
73511
73512         Revert the change of 2006-02-24, so these files can continue
73513         to be sync'd from gettext.
73514         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
73515         of `config.h'.
73516
73517 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73518
73519         * modules/intprops: New file.
73520         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73521         Add intprops.
73522         * modules/getloadavg (Files): Remove lib/intprops.h.
73523         (Depends-on): Add intprops.
73524         * modules/human: Likewise.
73525         * modules/inttostr: Likewise.
73526         * modules/openat: Likewise.
73527         * modules/sig2str: Likewise.
73528         * modules/userspec: Likewise.
73529         * modules/utimecmp: Likewise.
73530         * modules/xnanosleep: Likewise.
73531         * modules/xstrtol: Likewise.
73532
73533 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
73534
73535         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
73536         * modules/lock-tests (TESTS): Use $(EXEEXT).
73537         * modules/tls-tests: Likewise.
73538         * modules/argp-tests: Likewise.
73539         (check_PROGRAMS): New var, replacing...
73540         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
73541
73542 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73543
73544         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
73545         `config.h'.
73546
73547 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73548
73549         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
73550
73551 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73552
73553         Sync from coreutils.
73554         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
73555         gl_CHDIR_SAFER.
73556
73557 2006-02-22  Jim Meyering  <jim@meyering.net>
73558
73559         Sync from coreutils.
73560         * m4/chdir-safer.m4: New file.
73561
73562 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73563
73564         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
73565         AT_FDCWD exceeds INT_MAX.
73566         * lib/openat.h (AT_FDCWD): Likewise.
73567
73568 2006-02-17  Eric Blake  <address@hidden>
73569
73570         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
73571
73572 2006-02-16  Simon Josefsson  <jas@extundo.com>
73573
73574         * modules/getaddrinfo (Depends-on): Add sys_socket.
73575
73576 2006-02-15  Simon Josefsson  <jas@extundo.com>
73577
73578         * build-aux/maint.mk: Add dsyntax-check rule.
73579
73580 2006-02-15  Eric Blake  <ebb9@byu.net>
73581
73582         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
73583         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
73584         'present but cannot compile' warnings on cygwin.
73585         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
73586         use ws2tcpip.h if sys/socket.h works.
73587         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
73588         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
73589
73590 2006-02-14  Simon Josefsson  <jas@extundo.com>
73591
73592         * modules/maintainer-makefile (Files): Rename.
73593
73594         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
73595         and (the local) Makefile.cfg to maint-cfg.mk.
73596
73597         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
73598         to the latter.
73599
73600         * modules/maintainer-makefile: New module.
73601
73602         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
73603         severaly stripped to make it possible to build it up from scratch
73604         with reliable tests.
73605
73606         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
73607         fixes to permit overriding the default actions when configure and
73608         makefile are not available.
73609
73610 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73611
73612         Sync from coreutils.
73613         * modules/lstat (Depends-on): Don't depend on xalloc.
73614         (License): Change from GPL to LGPL, since this is now simply a
73615         replacement for a libc function.
73616
73617 2006-02-14  Jim Meyering  <jim@meyering.net>
73618
73619         Sync from coreutils.
73620
73621         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
73622         failure on deficient systems, and simplify gnulib lgpl dependencies.
73623         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
73624         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
73625
73626         * lib/xalloc-die.c: Remove unused definition of N_.
73627
73628 2006-02-14  Jim Meyering  <jim@meyering.net>
73629
73630         Sync from coreutils.
73631         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
73632         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
73633         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
73634         double-quote uses of that variable, to accommodate the rare case in
73635         which getmntent is available in none of the libraries checked.  This
73636         happens at least on FreeBSD 5.0.
73637
73638 2006-02-13  Simon Josefsson  <jas@extundo.com>
73639
73640         * gnulib-tool (Usage): Fix --import, from
73641         karl@freefriends.org (Karl Berry).
73642
73643 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73644
73645         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73646
73647 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73648
73649         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73650         "autoupdate" on 2005-12-12.
73651
73652 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73653
73654         * modules/closeout (Depends-on): Remove atexit.
73655
73656 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73657
73658         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73659         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73660
73661 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73662
73663         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73664         __EXTENSIONS__ if this causes compilation to fail.  Problem
73665         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73666         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73667
73668 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73669
73670         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73671         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73672         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73673         All uses changed.
73674
73675 2006-01-26  Simon Josefsson  <jas@extundo.com>
73676
73677         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73678         prototype is visible on mingw32.
73679
73680         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73681         for mingw32.
73682
73683         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73684         mingw32).
73685
73686 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73687
73688         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73689         attempt to open for write; this always fails, at least on POSIX
73690         hosts.  This reinstates the 2006-01-09 change, which was
73691         inadvertently removed.
73692
73693 2006-01-26  Bruno Haible  <bruno@clisp.org>
73694
73695         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
73696         Reported by Paul Eggert.
73697
73698 2006-01-26  Bruno Haible  <bruno@clisp.org>
73699             Paul Eggert  <eggert@cs.ucla.edu>
73700
73701         * lib/stdbool_.h (_Bool)
73702         [(! (defined __cplusplus || defined __BEOS__)
73703           && !defined __GNUC__
73704           && !(defined __HP_cc || defined __xlc__
73705                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
73706                || defined __sgi))]:
73707         #define to signed char in these cases too; this simplifies
73708         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73709         etc., separately) and makes it more conservative.
73710
73711 2006-01-25  Simon Josefsson  <jas@extundo.com>
73712
73713         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73714         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73715         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73716
73717 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73718
73719         * lib/argp-namefrob.h: Bugfix. Remove stray #
73720
73721 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73722
73723         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73724         so that we test the test.
73725         Check for yet another HP-UX cc bug involving *bool |= bool.
73726
73727 2006-01-25  Karl Berry  <karl@gnu.org>
73728
73729         * config/srclist.txt (vasnprintf.c): sync lost.
73730
73731 2006-01-25  Jim Meyering  <jim@meyering.net>
73732
73733         Sync from the stable (b5) branch of coreutils:
73734
73735         * lib/fts.c (fts_children): Don't let close() clobber errno from
73736         failed fchdir().
73737
73738         * lib/fts.c (fts_stat): When following a symlink-to-directory,
73739         don't necessarily interpret stat-fails+lstat-succeeds as indicating
73740         a dangling symlink.  That can also happen at least for ELOOP.
73741         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
73742         FYI, this bug predates the inclusion of fts.c in coreutils.
73743
73744         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
73745         in their own block, so pre-c99 compilers don't object.
73746
73747         Avoid the double-free (first in fts_read, second in fts_close) that
73748         would occur when an `active' directory is made inaccessible (e.g.,
73749         via chmod a-x) during a traversal.
73750         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73751         before returning.  Reproduce this failure by
73752         mkdir -p a/b; cd a; chmod a-x . b
73753         Reported by Stavros Passas.
73754
73755 2006-01-25  Jim Meyering  <jim@meyering.net>
73756
73757         * lib/fileblocks.c: Remove more useless parentheses.
73758         * lib/readutmp.h: Likewise.
73759
73760 2006-01-25  Bruno Haible  <bruno@clisp.org>
73761
73762         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73763         warnings.
73764         Reported by Paul Eggert.
73765
73766 2006-01-25  Bruno Haible  <bruno@clisp.org>
73767
73768         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73769         rid of a trap command. For Solaris sh.
73770         Reported by Mark D. Baushke <mdb@gnu.org>.
73771
73772 2006-01-24  Simon Josefsson  <jas@extundo.com>
73773
73774         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73775         Bruno.
73776
73777 2006-01-24  Karl Berry  <karl@gnu.org>
73778
73779         * config/srclist.txt (argp-namefrob.h): sync lost.
73780
73781 2006-01-24  Jim Meyering  <jim@meyering.net>
73782
73783         * modules/openat (Files): Add lib/intprops.h.
73784         From Mark D. Baushke.
73785
73786 2006-01-24  Jim Meyering  <jim@meyering.net>
73787
73788         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73789         Reported by Mark D. Baushke.
73790
73791 2006-01-24  Jim Meyering  <jim@meyering.net>
73792
73793         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
73794
73795 2006-01-24  Bruno Haible  <bruno@clisp.org>
73796
73797         * modules/strnlen (Maintainer): Change from glibc to all.
73798
73799 2006-01-24  Bruno Haible  <bruno@clisp.org>
73800
73801         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
73802         Patch by Paul Eggert.
73803
73804 2006-01-24  Bruno Haible  <bruno@clisp.org>
73805
73806         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
73807         already has it.
73808         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73809         2005-11-26.
73810
73811         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73812         'signed char' to avoid problems with the built-in _Bool type.
73813         Reported by Paul Eggert on 2005-11-26.
73814
73815 2006-01-24  Bruno Haible  <bruno@clisp.org>
73816
73817         * gnulib-tool (func_import): Avoid constructing complicated sed
73818         expressions inside backquote.
73819         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73820
73821 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73822
73823         These changes imported from libc.
73824         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73825         test and two separate function calls.
73826         * lib/strndup.c (__strndup): Add libc_hidden_def.
73827
73828 2006-01-23  Simon Josefsson  <jas@extundo.com>
73829
73830         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73831         Remove the test_*_SOURCES variable: automake infers it by default.
73832         * modules/tls-tests: Likewise.
73833
73834 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73835
73836         Work around porting bugs reported by Dieter in
73837         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73838         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73839         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73840         Include "getopt.h" first, to check interface.
73841         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73842         !HAVE_DECL_GETENV.
73843         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73844         (__strndup): Revert to K&R-style function dfns, the glibc style.
73845         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73846         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73847         Include strnlen.h first, to get prototype properly.
73848         (strnlen): Renamed from __strnlen.
73849         Remove weak alias.
73850
73851 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73852
73853         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73854
73855 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73856
73857         * config/srclist.txt: Adjust to reflect glibc reorganization.
73858         This affects only comments.
73859
73860 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73861
73862          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73863          Reported by Bruce Korb <bkorb@gnu.org>.
73864
73865 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73866
73867         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73868         to pacify gcc -Wswitch-default.
73869
73870 2006-01-22  Bruno Haible  <bruno@clisp.org>
73871
73872         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73873         temporary buffer for sprintf, take into account the precision also
73874         for 'd', 'i', 'u', 'o', 'x', 'X'.
73875
73876 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73877
73878         * modules/argp-tests: New module
73879         * tests/test-argp.c: New file
73880         * tests/test-argp-2.sh: New file
73881
73882 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73883
73884         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73885         (__argp_base_name): Removed
73886         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73887         typo.
73888         (__argp_base_name): Provide macro definition or extern declaration
73889         depending on the configuration
73890
73891 2006-01-20  Simon Josefsson  <jas@extundo.com>
73892
73893         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73894
73895 2006-01-20  Simon Josefsson  <jas@extundo.com>
73896
73897         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73898
73899 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73900
73901         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73902         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73903         Suggested by Bruno Haible.
73904
73905 2006-01-20  Karl Berry  <karl@gnu.org>
73906
73907         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73908         until changes propagate, I guess.
73909
73910 2006-01-19  Simon Josefsson  <jas@extundo.com>
73911
73912         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73913
73914 2006-01-19  Simon Josefsson  <jas@extundo.com>
73915
73916         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73917
73918 2006-01-19  Simon Josefsson  <jas@extundo.com>
73919
73920         * gnulib-tool: Set check_PROGRAMS.
73921
73922         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73923         modules/des-tests, modules/gc-arcfour-tests,
73924         modules/gc-arctwo-tests, modules/gc-des-tests,
73925         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73926         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73927         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73928         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73929         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73930         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73931         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73932         test_*_SOURCES.
73933
73934 2006-01-18  Simon Josefsson  <jas@extundo.com>
73935
73936         * modules/socklen (Depends-on): Depend on sys_socket.
73937
73938 2006-01-18  Simon Josefsson  <jas@extundo.com>
73939
73940         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73941         modules/des-tests, modules/gc-arcfour-tests,
73942         modules/gc-arctwo-tests, modules/gc-des-tests,
73943         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73944         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73945         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73946         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73947         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73948         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73949         $(EXEEXT) to automake TESTS variable, for mingw32.
73950
73951 2006-01-17  Simon Josefsson  <jas@extundo.com>
73952
73953         * modules/socklen (Include): Need sys/socket.h.
73954
73955 2006-01-17  Bruno Haible  <bruno@clisp.org>
73956
73957         * modules/ssize_t (Include): Add <sys/types.h>.
73958
73959 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73960
73961         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73962         it's not portable and it doesn't work with cross-compiles.
73963         Problem reported by Bruno Haible.  Fix missing-$ typo in
73964         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73965         -zignore from being used with Sun's C compiler.
73966
73967 2006-01-12  Simon Josefsson  <jas@extundo.com>
73968
73969         * lib/base64.c: Fix warning, reported by Bruno Haible
73970         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73971
73972 2006-01-12  Bruno Haible  <bruno@clisp.org>
73973
73974         * modules/ldd: New file.
73975         * build-aux/ldd.sh.in: New file.
73976         * MODULES.html.sh (Support for building libraries and executables): Add
73977         ldd.
73978
73979 2006-01-12  Bruno Haible  <bruno@clisp.org>
73980
73981         * m4/ldd.m4: New file.
73982
73983 2006-01-12  Bruno Haible  <bruno@clisp.org>
73984
73985         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73986         endless loop while replacing $auxdir with build-aux.
73987
73988 2006-01-11  Simon Josefsson  <jas@extundo.com>
73989
73990         * lib/stdint_.h (SIZE_MAX): Add missing (.
73991
73992 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73993
73994         Sync from coreutils.
73995         * lib/md5.c: Fix commentary typos.
73996         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73997         * lib/md5.h (__attribute__): Remove; unused.
73998         * lib/sha1.c: Fix commentary to match md5 better.
73999         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
74000         so that we don't need to worry about alignment.  All uses changed.
74001         This merges the 2005-10-28 md5 change into sha1.
74002
74003 2006-01-11  Jim Meyering  <jim@meyering.net>
74004
74005         Sync from coreutils.
74006         * lib/md5.c (OP): Fix spacing.
74007
74008 2006-01-11  Bruno Haible  <bruno@clisp.org>
74009
74010         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74011         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
74012         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
74013
74014 2006-01-11  Bruno Haible  <bruno@clisp.org>
74015
74016         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74017         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
74018         the "early" section as well.
74019
74020 2006-01-11  Bruno Haible  <bruno@clisp.org>
74021
74022         Avoid "ar: no archive members specified" error on MacOS X.
74023         * gnulib-tool (func_modules_add_dummy): New function.
74024         (func_import, func_create_testdir): Invoke it.
74025
74026 2006-01-11  Bruno Haible  <bruno@clisp.org>
74027
74028         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
74029         with $auxdir in AC_CONFIG_FILES statements.
74030
74031 2006-01-11  Bruno Haible  <bruno@clisp.org>
74032
74033         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74034         Initialize also noinst_HEADERS to empty.
74035
74036 2006-01-11  Bruno Haible  <bruno@clisp.org>
74037
74038         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
74039         variables.
74040         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
74041         autoreconf.
74042
74043 2006-01-11  Bruno Haible  <bruno@clisp.org>
74044
74045         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
74046         overridable by the user.
74047         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74048
74049 2006-01-10  Simon Josefsson  <jas@extundo.com>
74050
74051         * modules/sys_socket: New file.
74052
74053 2006-01-10  Simon Josefsson  <jas@extundo.com>
74054
74055         * m4/sys_socket_h.m4: New file.
74056
74057 2006-01-10  Simon Josefsson  <jas@extundo.com>
74058
74059         * lib/socket_.h: New file.
74060
74061 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74062
74063         * modules/readutmp (Maintainer): Add myself.
74064
74065 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74066
74067         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
74068         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
74069         People who are still concerned with buggy memcmp implementations
74070         can invoke gl_FUNC_MEMCMP themselves.
74071
74072 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74073
74074         * lib/regex_internal.h (BITSET_WORD_BITS):
74075         Work around a bug in 64-bit PGC (before version 6.1-2), where the
74076         preprocessor mishandles large unsigned values as if they were signed.
74077         Problem reported by Claudio Fontana in
74078         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
74079
74080 2006-01-10  Jim Meyering  <jim@meyering.net>
74081
74082         Avoid the double-free (first in fts_read, second in fts_close) that
74083         would occur when an `active' directory is made inaccessible (e.g.,
74084         via chmod a-x) during a traversal.
74085         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74086         before returning.  Reproduce this failure by
74087         mkdir -p a/b; cd a; chmod a-x . b
74088         Reported by Stavros Passas.
74089
74090         Sync from coreutils.
74091         * lib/sha1.c: Tweak grammar in a comment.
74092
74093 2006-01-10  Jim Meyering  <jim@meyering.net>
74094
74095         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
74096         Patch by Joerg Sonnenberger.
74097
74098 2006-01-10  Bruno Haible  <bruno@clisp.org>
74099
74100         * modules/readutmp: Depend on module free.
74101         * modules/strtok_r: Depend on module restrict.
74102
74103 2006-01-10  Bruno Haible  <bruno@clisp.org>
74104
74105         * modules/gettext (configure.ac): Add an invocation of
74106         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
74107
74108 2006-01-10  Bruno Haible  <bruno@clisp.org>
74109
74110         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
74111         Reported by Werner Lemberg <wl@gnu.org>.
74112
74113 2006-01-10  Bruno Haible  <bruno@clisp.org>
74114
74115         * lib/localcharset.c: Update from GNU gettext.
74116
74117 2006-01-10  Bruno Haible  <bruno@clisp.org>
74118
74119         * lib/argp.h (__const): Remove macro. Use const instead.
74120         * lib/argp-fmtstream.h (__const): Likewise.
74121         * lib/glob_.h (__const): Remove macro.
74122         * lib/glob-libc.h: Use const instead of __const.
74123
74124 2006-01-10  Bruno Haible  <bruno@clisp.org>
74125
74126         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
74127         variable.
74128         Needed to avoid an automake error regarding the 'gettext' module.
74129
74130 2006-01-09  Simon Josefsson  <jas@extundo.com>
74131
74132         * modules/inet_ntop (Depends-on): Add restrict.
74133
74134 2006-01-09  Simon Josefsson  <jas@extundo.com>
74135
74136         * modules/gc-rijndael-tests (License): Put under LGPL.
74137
74138         * modules/gc-des-tests (License): Likewise.
74139
74140         * modules/gc-arcfour-tests (License): Likewise.
74141
74142         * modules/gc-arctwo-tests (License): Likewise.
74143
74144         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
74145
74146         * modules/gc-hmac-sha1-tests (Files): Likewise.
74147
74148         * modules/gc-hmac-md5-tests (License): Likewise.
74149
74150         * modules/gc-sha1-tests (License): Likewise.
74151
74152         * modules/gc-md5-tests (License): Likewise.
74153
74154         * modules/gc-md4-tests (License): Likewise.
74155
74156         * modules/gc-md2-tests (License): Likewise.
74157
74158         * modules/gc-tests (License): Likewise.
74159
74160         * modules/des-tests (License): Likewise.
74161
74162         * modules/md4-tests (License): Likewise.
74163
74164         * modules/md2-tests (License): Likewise.
74165
74166 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74167
74168         Sync from coreutils:
74169
74170         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
74171         * modules/lib-ignore: New file.
74172         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
74173         chdir-safer.m4, lchmod.m4.
74174         * modules/openat: Add mkdirat.c, openat-priv.h.
74175
74176 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74177
74178         Sync from coreutils.
74179         * m4/lib-ignore.m4: New file.
74180         * m4/lchmod.m4: New file.
74181
74182 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74183
74184         Sync from coreutils.
74185         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
74186         for write access: POSIX says that must fail.
74187         * lib/fts.c (diropen): Likewise.
74188         * lib/save-cwd.c (save_cwd): Likewise.
74189         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
74190         well, for minor improvements on hosts that lack O_DIRECTORY.
74191         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
74192         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
74193         Fall back on chown if open failed with EACCES.
74194
74195         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
74196         Report an error at compile-time if only a 1-second nominal clock
74197         resolution is found.
74198
74199         * lib/lchmod.h: New file.
74200         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
74201         (make_dir_parents): Use lchown rather than chown, and
74202         lchmod rather than chmod.
74203
74204         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
74205         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
74206         "proc" reported by n0dalus.
74207
74208         * lib/mountlist.c: Include <limits.h>.
74209         (dev_from_mount_options)
74210         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
74211         New function.  It no longer assumes "dev=" has the System V meaning
74212         on Linux (since it doesn't).  It also parses "dev=" more carefully.
74213         (read_file_system_list)
74214         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
74215         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
74216         dev= in that case.
74217
74218         * lib/posixtm.h (PDS_PRE_2000): New macro.
74219         * lib/posixtm.c (year): Arg is now syntax_bits rather than
74220         allow_century.  All usages changed.  Reject dates outside the range
74221         1969-1999 if PDS_PRE_2000 is used.
74222
74223 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74224
74225         Sync from coreutils.
74226         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
74227         (Time of day items): Mention the possibility of leap seconds.
74228         Problem reported by Dr. David Alan Gilbert.
74229
74230 2006-01-09  Jim Meyering  <jim@meyering.net>
74231
74232         Sync from coreutils.
74233
74234         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
74235
74236         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
74237
74238         * lib/modechange.c (mode_compile): Reject an invalid mode string
74239         that starts with an octal digit.  From Andreas Gruenbacher.
74240
74241         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
74242         and dup to open_safer and dup_safer, respectively.
74243         (openat_permissive): Fix typo in comment.
74244
74245         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
74246         "gettext.h"; either no longer needed or are guaranteed by openat.h.
74247         (_): Remove; no longer needed.
74248         (openat): Renamed from rpl_openat; no need for rpl_openat
74249         since openat.h renames openat for us.
74250         Replace most of the body with a call to openat_permissive,
74251         to avoid duplicate code.
74252         Port to (probably hypothetical) environments were mode_t is
74253         wider than int.
74254         (openat_permissive): Require mode arg, so that we can check
74255         types better.  Put it just after flags.  Change cwd failure
74256         indicator from pointer-to-bool to pointer-to-errno-value.
74257         All callers changed.
74258         Invoke openat_save_fail and/or openat_restore_fail if
74259         cwd_errno is null, so that openat can call us.
74260         (openat_permissive, fdopendir, fstatat, unlinkat):
74261         Simplify errno handling to avoid some duplicate code,
74262         as it's OK to set errno on success.
74263         * lib/openat.h: Revamp code so that function macros depend on
74264         __OPENAT_PREFIX only, not also on AT_FDCWD.
74265         (openat_ro): Remove.  Caller changed to use openat_permissive.
74266         (openat_permissive): Now a macro, if not a function.
74267         (openat_restore_fail, openat_save_fail): Now always functions,
74268         since mkdirat needs them even if __OPENAT_PREFIX is defined.
74269
74270         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
74271         and openat.c.
74272         * lib/mkdirat.c: Include openat-priv.h.
74273         Remove definitions of macros defined therein.
74274         * lib/openat.c: Likewise.
74275
74276         * lib/mkdirat.c (mkdirat): New file and function.
74277         * lib/openat.h (mkdirat): Declare.
74278
74279         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
74280
74281         * lib/openat.h (openat_permissive): Declare.
74282         (openat_ro): Define.
74283
74284         * lib/openat.c (EXPECTED_ERRNO): New macro.
74285         (openat_permissive): New function -- used in remove.c rewrite.
74286         (all functions): Set errno just before returning, only if there
74287         was an actual failure.
74288         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
74289
74290         Emulate openat-family functions using Linux's procfs, if possible.
74291         Idea and some code based on Ulrich Drepper's glibc changes.
74292
74293         * lib/openat.c: (BUILD_PROC_NAME): New macro.
74294         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
74295         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
74296         before falling back on save_cwd and restore_cwd.
74297         (fdopendir, fstatat, unlinkat): Likewise.
74298
74299         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
74300         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
74301
74302         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
74303         as second argument to va_arg.  Otherwise, some versions of gcc
74304         warn that `if this code is reached, the program will abort'.
74305
74306 2006-01-09  Jim Meyering  <jim@meyering.net>
74307
74308         Sync from coreutils.
74309         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
74310         Require openat-priv.h.
74311
74312 2006-01-09  Bruno Haible  <bruno@clisp.org>
74313
74314         * modules/strnlen (Include): Use strnlen.h.
74315
74316 2006-01-09  Bruno Haible  <bruno@clisp.org>
74317
74318         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
74319
74320 2006-01-09  Bruno Haible  <bruno@clisp.org>
74321
74322         * lib/sysexit_.h (EX_OK): New macro.
74323         Suggested by Martin Lambers <marlam@marlam.de>.
74324
74325 2006-01-09  Bruno Haible  <bruno@clisp.org>
74326
74327         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
74328         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
74329
74330 2006-01-09  Bruno Haible  <bruno@clisp.org>
74331
74332         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
74333         numbers.
74334
74335 2006-01-09  Bruno Haible  <bruno@clisp.org>
74336
74337         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
74338         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
74339         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
74340         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
74341
74342 2006-01-09  Bruno Haible  <bruno@clisp.org>
74343
74344         * build-aux/javacomp.sh.in: New file, moved from lib/.
74345         * modules/javacomp-script (Files): Update.
74346         (configure.ac): Add AC_CONFIG_FILES invocation.
74347         (EXTRA_DIST): Remove variable.
74348
74349         * build-aux/javaexec.sh.in: New file, moved from lib/.
74350         * modules/javaexec (Files): Update.
74351         (configure.ac): Add AC_CONFIG_FILES invocation.
74352         (EXTRA_DIST): Remove javaexec.sh.in.
74353
74354         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
74355         * modules/csharpcomp-script (Files): Update.
74356         (configure.ac): Add AC_CONFIG_FILES invocation.
74357         (EXTRA_DIST): Remove variable.
74358
74359         * build-aux/csharpexec.sh.in: New file, moved from lib/.
74360         * modules/csharpexec (Files): Update.
74361         (configure.ac): Add AC_CONFIG_FILES invocation.
74362         (EXTRA_DIST): Remove csharpexec.sh.in.
74363
74364 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74365
74366         Sync from coreutils.
74367
74368         Add POSIX ACL support
74369         * lib/acl.h (copy_acl, set_acl): Add declarations.
74370         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
74371         systems other than Linux.
74372         (chmod_or_fchmod): New function: use fchmod when possible,
74373         and chmod otherwise.
74374         (file_has_acl): Add a POSIX ACL implementation, with a
74375         Linux-specific subcase.
74376         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
74377         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
74378         acls are unsupported.
74379         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
74380         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
74381         are unsupported.
74382
74383 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74384
74385         Sync from coreutils.
74386         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
74387
74388 2006-01-07  Bruno Haible  <bruno@clisp.org>
74389
74390         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
74391         gl_EARLY.
74392
74393 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74394
74395         * lib/strftime.c (tzname): Don't declare if it is already #defined.
74396         Problem reported for Mingw by Mark Junker.
74397
74398 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74399
74400         * README: Gnulib normally doesn't generate a tarball.
74401
74402 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
74403
74404         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
74405         long int, not int, for nanosecond counts, so that people who are
74406         used to POSIX struct timespec won't be surprised.  Reported by Jim
74407         Meyering.
74408
74409 2005-12-28  Bruno Haible  <bruno@clisp.org>
74410
74411         * build-aux/config.rpath: Update from GNU gettext.
74412
74413 2005-12-16  Jim Meyering  <jim@meyering.net>
74414
74415         * modules/fprintftime: New module.
74416         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
74417
74418 2005-12-16  Jim Meyering  <jim@meyering.net>
74419
74420         * m4/fprintftime.m4: New file.
74421
74422 2005-12-16  Jim Meyering  <jim@meyering.net>
74423
74424         * lib/fprintftime.c, lib/fprintftime.h: New files.
74425
74426 2005-12-15  Simon Josefsson  <jas@extundo.com>
74427
74428         * modules/socklen (configure.ac): Fix M4 macro name, to align with
74429         new m4/socklen.m4.
74430
74431 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74432
74433         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
74434         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
74435
74436 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74437
74438         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
74439         * lib/argp-help.c (fill_in_uparams): Check if the constructed
74440         struct uparams is valid. Fall back to the default values if it is
74441         not.
74442
74443 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74444
74445         * modules/argp (Files): Add argp-pin.c
74446         (Depends-on): dirname
74447         (lib_SOURCES): Add argp-pin.c
74448
74449 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74450
74451         * m4/argp.m4:  Check if program_invocation_name and
74452         program_invocation_short_name are declared and define appropriate
74453         macros if they are not.
74454
74455 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74456
74457         * lib/argp-help.c (__argp_base_name): New function
74458         (__argp_short_program_name): Rewrite using __argp_base_name
74459         * lib/argp-namefrob.h: Define program_invocation_name and
74460         program_invocation_short_name if requested
74461         (__argp_base_name): Add prototype
74462         * lib/argp-parse.c (argp_def): Use gettext wrappers
74463         (argp_default_parser): Use __argp_base_name
74464         * lib/argp-pin.c: New file. Defines program_invocation_name and
74465         program_invocation_short_name on systems that lack them.
74466
74467 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74468
74469         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
74470         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74471         porting problem reported by Georg Schwarz in
74472         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74473
74474 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74475
74476         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
74477         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74478         porting problem reported by Georg Schwarz in
74479         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74480
74481 2005-12-05  Bruno Haible  <bruno@clisp.org>
74482
74483         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
74484         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
74485         Reported by Mark Junker <mjscod@gmx.de>.
74486
74487 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
74488
74489         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
74490         Use implementation from Albert Chin, with some
74491         comments/corrections by Stepan Kasal and myself.
74492
74493 2005-12-02  Bruno Haible  <bruno@clisp.org>
74494
74495         * gnulib-tool (func_import): Accept GPLed build tool modules when
74496         --lgpl is given.
74497         * modules/csharpcomp-script: New file.
74498         * modules/csharpcomp: Depend on it.
74499         * modules/javacomp-script: New file.
74500         * modules/javacomp: Depend on it.
74501         Suggested by Simon Josefsson.
74502
74503 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
74504
74505         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
74506         statement, to work around an HP-UX 10.20 compiler bug reported by
74507         Peter O'Gorman.
74508
74509 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74510
74511         * modules/savedir (Depends-on): Add openat.
74512
74513 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74514
74515         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
74516         (uintmax_t) [defined uintmax_t]: Do not declare.
74517         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
74518         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
74519         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
74520         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
74521         sake of portability to weird hosts that C allows (though we don't
74522         know of any practical examples).
74523
74524         * lib/savedir.h (fdsavedir): New decl.
74525         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
74526         contains most of the former guts of savedir.
74527         (savedir): Use savedirstream.
74528         Include "openat.h".
74529
74530 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74531
74532         * modules/obstack (Files): Add m4/ulonglong.m4.
74533         Problem reported by Davide Angelocola.
74534
74535 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74536
74537         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
74538         coreutils no longer futzes with rounding modes.
74539
74540 2005-11-14  Jim Meyering  <jim@meyering.net>
74541
74542         * lib/mkstemp-safer.c: Include <config.h>, required for possible
74543         replacement of mkstemp.
74544
74545 2005-11-10  Simon Josefsson  <jas@extundo.com>
74546
74547         * lib/readline.c: Remove EOL.
74548
74549 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74550
74551         * modules/gethrxtime (Depends-on): Add gettime.
74552
74553 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74554
74555         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
74556         or gettimeofday; no longer needed.
74557
74558 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74559
74560         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
74561         time business.
74562         (gethrxtime) [! (HAVE_NANOUPTIME
74563         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
74564         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
74565         our own approximation.
74566
74567 2005-11-08  Eric Blake  <ebb9@byu.net>
74568
74569         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74570
74571 2005-11-08  Eric Blake  <ebb9@byu.net>
74572
74573         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74574
74575 2005-11-04  Bruno Haible  <bruno@clisp.org>
74576
74577         * gnulib-tool: Implement --update mode.
74578
74579 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74580
74581         Fix porting problem reported by Theodoros V. Kalamatianos.
74582         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
74583         Don't assume that futimes failing means we must fail.
74584
74585 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74586
74587         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
74588         variables to suggest the intended function of the PATH_MAX check.
74589
74590 2005-10-30  Kean Johnston  <jkj@sco.com>
74591
74592         Trivial changes to support SCO systems.
74593         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
74594         as PATH_MAX.
74595         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
74596         where __ptr is null when no I/O is pending.
74597
74598 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74599
74600         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
74601         leave errno alone.  Problem reported by Dmitry V. Levin.
74602
74603 2005-10-28  Simon Josefsson  <jas@extundo.com>
74604
74605         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
74606         Test more.
74607
74608         * tests/test-gc-md2.c, tests/test-md2.c: New files.
74609
74610         * modules/md2, modules/md2-tests: New files.
74611
74612 2005-10-28  Simon Josefsson  <jas@extundo.com>
74613
74614         * m4/inet_ntop.m4: More tests.
74615
74616         * m4/gc-md2.m4, md2.m4: New file.
74617
74618 2005-10-28  Simon Josefsson  <jas@extundo.com>
74619
74620         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
74621         "restrict" keywords, as per POSIX.  Protect the function
74622         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
74623         Don't use K&R prototypes.  Check the sprintf return values.
74624         Re-define EAFNOSUPPORT if not present.  Indent.
74625
74626         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
74627         suggested by Bruno Haible <bruno@clisp.org>.
74628
74629         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
74630
74631         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
74632
74633         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
74634         libgcrypt).
74635
74636         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
74637
74638         * lib/md2.h, lib/md2.c: New files.
74639
74640 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
74641
74642         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74643         errno alone.  Problem reported by Frederic Jolliton.
74644
74645 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74646
74647         * modules/verify (License): Change from GPL to LGPL.  This is a
74648         tiny module and there are apparently near-equivalents that are
74649         under the BSD license.
74650
74651 2005-10-24  Simon Josefsson  <jas@extundo.com>
74652
74653         * modules/sha1: Relicense to LGPL.
74654
74655 2005-10-24  Simon Josefsson  <jas@extundo.com>
74656
74657         * lib/md4.h: Shrink buffer size, now that we changed the type.
74658
74659 2005-10-23  Simon Josefsson  <jas@extundo.com>
74660
74661         * gnulib-tool (func_import): Fix --tests-base.
74662
74663 2005-10-22  Simon Josefsson  <jas@extundo.com>
74664
74665         * modules/arcfour (Depends-on): Need stdint.
74666
74667 2005-10-22  Simon Josefsson  <jas@extundo.com>
74668
74669         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74670         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74671
74672 2005-10-22  Simon Josefsson  <jas@extundo.com>
74673
74674         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74675         suggested by Bruno Haible <bruno@clisp.org>.
74676
74677 2005-10-22  Simon Josefsson  <jas@extundo.com>
74678
74679         * lib/crc.h: Include stddef.h, for size_t.
74680
74681 2005-10-22  Simon Josefsson  <jas@extundo.com>
74682
74683         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74684         arcfour_context struct (simplify test vector testing in GNU
74685         Shishi).
74686
74687 2005-10-21  Simon Josefsson  <jas@extundo.com>
74688
74689         * modules/des, modules/des-tests: New files.
74690
74691         * modules/gc-des, modules/gc-des-tests: New files.
74692
74693         * tests/test-des.c, tests/test-gc-des.c: New file.
74694
74695 2005-10-21  Simon Josefsson  <jas@extundo.com>
74696
74697         * modules/arctwo, modules/arctwo-tests: New files.
74698
74699         * tests/test-arctwo.c: New file.
74700
74701         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
74702
74703         * tests/test-gc-arctwo.c: New file.
74704
74705 2005-10-21  Simon Josefsson  <jas@extundo.com>
74706
74707         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74708         Bruno Haible <bruno@clisp.org>.
74709
74710         * m4/gc-des.m4: New file.
74711
74712 2005-10-21  Simon Josefsson  <jas@extundo.com>
74713
74714         * m4/arctwo.m4: New file.
74715
74716         * m4/gc-arctwo.m4: New file.
74717
74718 2005-10-21  Simon Josefsson  <jas@extundo.com>
74719
74720         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74721         block.
74722
74723 2005-10-21  Simon Josefsson  <jas@extundo.com>
74724
74725         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74726         <bruno@clisp.org>.
74727
74728         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74729
74730         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74731         Bruno Haible <bruno@clisp.org>.
74732
74733         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74734         <bruno@clisp.org>.
74735
74736 2005-10-21  Simon Josefsson  <jas@extundo.com>
74737
74738         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
74739
74740 2005-10-21  Simon Josefsson  <jas@extundo.com>
74741
74742         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
74743
74744 2005-10-21  Simon Josefsson  <jas@extundo.com>
74745
74746         * lib/des.h, lib/des.c: New files.
74747
74748         * lib/gc-gnulib.c: Support DES.c
74749
74750 2005-10-21  Simon Josefsson  <jas@extundo.com>
74751
74752         * lib/arctwo.h, lib/arctwo.c: New files.
74753
74754         * lib/gc-gnulib.c: Support ARCTWO.
74755
74756 2005-10-21  Simon Josefsson  <jas@extundo.com>
74757
74758         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74759         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74760
74761 2005-10-21  Simon Josefsson  <jas@extundo.com>
74762
74763         * gnulib-tool (func_import, func_create_testdir): Define automake
74764         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74765         Makefile.am snippet),
74766         suggested by Bruno Haible <bruno@clisp.org>.
74767
74768         * modules/gc (Makefile.am): Use it.
74769
74770 2005-10-21  Bruno Haible  <bruno@clisp.org>
74771
74772         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74773         patch.
74774
74775 2005-10-19  Simon Josefsson  <jas@extundo.com>
74776
74777         * tests/test-gc-rijndael.c: New file.
74778
74779         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74780
74781 2005-10-19  Simon Josefsson  <jas@extundo.com>
74782
74783         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74784         interface too.
74785
74786 2005-10-19  Simon Josefsson  <jas@extundo.com>
74787
74788         * tests/test-gc-arcfour.c: New file.
74789
74790         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74791
74792 2005-10-19  Simon Josefsson  <jas@extundo.com>
74793
74794         * modules/gc-md4, modules/gc-md4-tests: New file.
74795
74796         * tests/test-gc-md4.c: New file.
74797
74798 2005-10-19  Simon Josefsson  <jas@extundo.com>
74799
74800         * m4/gc-md4.m4: New file.
74801
74802 2005-10-19  Simon Josefsson  <jas@extundo.com>
74803
74804         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
74805         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
74806         <kasal@ucw.cz>.
74807
74808 2005-10-19  Simon Josefsson  <jas@extundo.com>
74809
74810         * m4/gc-arcfour.m4: New file.
74811
74812         * m4/gc-rijndael.m4: New file.
74813
74814 2005-10-19  Simon Josefsson  <jas@extundo.com>
74815
74816         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74817
74818 2005-10-19  Simon Josefsson  <jas@extundo.com>
74819
74820         * lib/gc-gnulib.c: Support ARCFOUR.
74821
74822 2005-10-19  Simon Josefsson  <jas@extundo.com>
74823
74824         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74825         support.
74826
74827         * lib/gc.h: Add ECB enum type.
74828
74829         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74830
74831 2005-10-18  Simon Josefsson  <jas@extundo.com>
74832
74833         * tests/test-md5.c: New file.
74834
74835         * modules/md5-tests: New file.
74836
74837 2005-10-18  Simon Josefsson  <jas@extundo.com>
74838
74839         * tests/test-md4.c: New file.
74840
74841         * modules/md4, modules/md4-tests: New files.
74842
74843 2005-10-18  Simon Josefsson  <jas@extundo.com>
74844
74845         * m4/md4.m4: New file.
74846
74847 2005-10-18  Simon Josefsson  <jas@extundo.com>
74848
74849         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74850
74851 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74852
74853         * gnulib-tool (func_create_testdir): Omit the second check whether
74854         BUILT_SOURCES in nonempty.
74855
74856 2005-10-17  Simon Josefsson  <jas@extundo.com>
74857
74858         * tests/test-rijndael.c: New file.
74859
74860 2005-10-17  Simon Josefsson  <jas@extundo.com>
74861
74862         * modules/sha1: Depend on stdint instead of md5.
74863
74864         * modules/md5: Depend on stdint, remove uint32_t.
74865
74866 2005-10-17  Simon Josefsson  <jas@extundo.com>
74867
74868         * modules/gc-sha1-tests: New file.
74869
74870         * tests/test-gc-sha1.c: New file.
74871
74872 2005-10-17  Simon Josefsson  <jas@extundo.com>
74873
74874         * m4/md5.m4: Remove call to uint32_t.m4.
74875
74876 2005-10-17  Simon Josefsson  <jas@extundo.com>
74877
74878         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74879
74880         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74881         md5.h.
74882
74883         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74884
74885         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74886
74887 2005-10-17  Simon Josefsson  <jas@extundo.com>
74888
74889         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74890
74891 2005-10-17  Simon Josefsson  <jas@extundo.com>
74892
74893         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74894
74895 2005-10-17  Simon Josefsson  <jas@extundo.com>
74896
74897         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74898
74899         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74900
74901 2005-10-17  Bruno Haible  <bruno@clisp.org>
74902
74903         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74904         that it can also be used in a test.
74905
74906 2005-10-16  Bruno Haible  <bruno@clisp.org>
74907
74908         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74909         TESTS_ENVIRONMENT, so that individual tests can augment it.
74910
74911         * gnulib-tool (func_create_testdir): Use an intermediate target for
74912         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74913         macros, like $(ALLOCA_H), which cannot be passed through the command
74914         line.
74915
74916 2005-10-15  Simon Josefsson  <jas@extundo.com>
74917
74918         * modules/rijndael-tests: New file.
74919
74920         * modules/rijndael: New file.
74921
74922 2005-10-15  Simon Josefsson  <jas@extundo.com>
74923
74924         * m4/rijndael.m4: New file.
74925
74926 2005-10-15  Simon Josefsson  <jas@extundo.com>
74927
74928         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74929
74930         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74931
74932 2005-10-14  Simon Josefsson  <jas@extundo.com>
74933
74934         * tests/test-arcfour.c: New file.
74935
74936         * modules/arcfour, modules/arcfour-tests: New files.
74937
74938 2005-10-14  Simon Josefsson  <jas@extundo.com>
74939
74940         * m4/arcfour.m4: New file.
74941
74942 2005-10-14  Simon Josefsson  <jas@extundo.com>
74943
74944         * lib/arcfour.h, lib/arcfour.c: New files.
74945
74946 2005-10-14  Roland McGrath  <roland@redhat.com>
74947
74948         Import from libc.  [BZ #1331]
74949         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74950         macro argument.
74951         Reported by Matej Vela <vela@debian.org>.
74952
74953 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74954
74955         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74956         include <wchar.h>; no longer needed.
74957
74958 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74959
74960         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74961
74962 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74963         and  Ulrich Drepper  <drepper@redhat.com>
74964
74965         Import from libc.
74966         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74967         instead of inline stream orientation test and two separate
74968         function calls.  Pay no attention to USE_IN_LIBIO.
74969
74970 2005-10-13  Simon Josefsson  <jas@extundo.com>
74971
74972         * modules/gc-hmac-md5-tests: New file.
74973
74974         * tests/test-gc-hmac-sha1.c: New file.
74975
74976         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74977
74978         * modules/gc-hmac-md5-tests: New file.
74979
74980         * tests/test-gc-md5.c: New file.
74981
74982         * modules/gc-md5-tests: New file.
74983
74984 2005-10-13  Simon Josefsson  <jas@extundo.com>
74985
74986         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74987         Move memory allocation outside of loop.
74988
74989 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74990
74991         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74992         intermediate directory is in a read-only file system.  Problem
74993         reported by Eric Blake.
74994
74995 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74996
74997         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74998
74999 2005-10-12  Simon Josefsson  <jas@extundo.com>
75000
75001         * tests/test-hmac-sha1.c: New file.
75002
75003         * modules/hmac-sha1-tests: New file.
75004
75005         * modules/hmac-sha1: New file.
75006
75007 2005-10-12  Simon Josefsson  <jas@extundo.com>
75008
75009         * modules/gc-sha1: New file.
75010
75011 2005-10-12  Simon Josefsson  <jas@extundo.com>
75012
75013         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
75014
75015         * tests/test-gc-pbkdf2-sha1.c: New file.
75016
75017 2005-10-12  Simon Josefsson  <jas@extundo.com>
75018
75019         * modules/gc-md5, modules/gc-hmac-md5: New files.
75020
75021         * modules/gc (Files): Remove md5, memxor and hmac files.
75022
75023 2005-10-12  Simon Josefsson  <jas@extundo.com>
75024
75025         * m4/gc-pbkdf2-sha1.m4: New file.
75026
75027         * m4/gc-hmac-sha1.m4: New file.
75028
75029         * m4/gc-sha1: New file.
75030
75031         * m4/hmac-sha1.m4: New file.
75032
75033 2005-10-12  Simon Josefsson  <jas@extundo.com>
75034
75035         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
75036
75037         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
75038
75039 2005-10-12  Simon Josefsson  <jas@extundo.com>
75040
75041         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
75042         suggested by Bruno Haible <bruno@clisp.org>.
75043
75044 2005-10-12  Simon Josefsson  <jas@extundo.com>
75045
75046         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
75047
75048 2005-10-12  Simon Josefsson  <jas@extundo.com>
75049
75050         * lib/gc-pbkdf2-sha1.c: New file.
75051
75052         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
75053
75054 2005-10-12  Simon Josefsson  <jas@extundo.com>
75055
75056         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
75057
75058         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
75059
75060 2005-10-12  Simon Josefsson  <jas@extundo.com>
75061
75062         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
75063         GC_USE_HMAC_MD5, respectively.
75064
75065         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
75066         (gc_md5): Fix typo.
75067
75068         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
75069
75070         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
75071
75072         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
75073
75074 2005-10-12  Bruno Haible  <bruno@clisp.org>
75075
75076         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
75077         Reported by Stepan Kasal <kasal@ucw.cz>.
75078
75079 2005-10-11  Simon Josefsson  <jas@extundo.com>
75080
75081         * tests/test-crc.c: New file.
75082
75083         * modules/crc, modules/crc-tests: New files.
75084
75085 2005-10-11  Simon Josefsson  <jas@extundo.com>
75086
75087         * m4/crc.m4: New file.
75088
75089 2005-10-11  Simon Josefsson  <jas@extundo.com>
75090
75091         * lib/gc.h: Add gc_hash and gc_hash_buffer.
75092
75093         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
75094
75095         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
75096
75097 2005-10-11  Simon Josefsson  <jas@extundo.com>
75098
75099         * lib/crc.h, lib/crc.c: New files.
75100
75101         * lib/gc.h (gc_hash_buffer): Add doc.
75102
75103 2005-10-11  Bruno Haible  <bruno@clisp.org>
75104
75105         * modules/c-strcasestr: New file.
75106         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
75107
75108 2005-10-11  Bruno Haible  <bruno@clisp.org>
75109
75110         * modules/c-strcase: New file.
75111         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
75112
75113 2005-10-11  Bruno Haible  <bruno@clisp.org>
75114
75115         * lib/strcasecmp.c: Include limits.h.
75116         (strcasecmp): Avoid integer overflow on exotic platforms.
75117         * lib/strncasecmp.c: Include limits.h.
75118         (strncasecmp): Avoid integer overflow on exotic platforms.
75119         Reported by Paul Eggert.
75120
75121 2005-10-11  Bruno Haible  <bruno@clisp.org>
75122
75123         * lib/c-strcasestr.h: New file, from GNU gettext.
75124         * lib/c-strcasestr.c: New file, from GNU gettext.
75125
75126 2005-10-11  Bruno Haible  <bruno@clisp.org>
75127
75128         * lib/c-strcase.h: New file, from GNU gettext.
75129         * lib/c-strcasecmp.c: New file, from GNU gettext.
75130         * lib/c-strncasecmp.c: New file, from GNU gettext.
75131
75132 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75133
75134         * modules/mempcpy (License): GPL -> LGPL.
75135         * modules/strchrnul (License): Likewise.
75136         * modules/sysexits (License): Likewise.
75137
75138 2005-10-08  Simon Josefsson  <jas@extundo.com>
75139
75140         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
75141
75142 2005-10-07  Simon Josefsson  <jas@extundo.com>
75143
75144         * m4/memxor.m4: Remove gl_C_RESTRICT call.
75145
75146 2005-10-06  Simon Josefsson  <jas@extundo.com>
75147
75148         * tests/test-hmac-md5.c: New file.
75149
75150         * modules/hmac-md5-tests: New file.
75151
75152         * modules/hmac-md5: New file.
75153
75154 2005-10-06  Simon Josefsson  <jas@extundo.com>
75155
75156         * m4/hmac-md5.m4: New file.
75157
75158         * m4/memxor.m4: Require gl_C_RESTRICT.
75159
75160 2005-10-06  Simon Josefsson  <jas@extundo.com>
75161
75162         * lib/memxor.c (memxor): Avoid casts and warnings.
75163
75164 2005-10-06  Simon Josefsson  <jas@extundo.com>
75165
75166         * lib/hmac-md5.c: New file.
75167
75168         * lib/hmac.h: New file.
75169
75170 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75171
75172         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
75173         promotes to int, not unsigned int, to catch the AIX 5.3
75174         compiler bug.
75175
75176 2005-10-05  Simon Josefsson  <jas@extundo.com>
75177
75178         * modules/memxor: New file.
75179
75180         * modules/iconv (Files): Move config.rpath to havelib, it is used
75181         there.
75182
75183         * modules/havelib (Files): Add config.rpath.
75184
75185 2005-10-05  Simon Josefsson  <jas@extundo.com>
75186
75187         * m4/memxor.m4: New file.
75188
75189 2005-10-05  Simon Josefsson  <jas@extundo.com>
75190
75191         * lib/memxor.c (memxor): Fix compiler error.
75192
75193         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
75194         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
75195
75196         * lib/memxor.h, lib/memxor.c: New files.
75197
75198         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
75199         we assume all systems have it, suggested by Jim Meyering
75200         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
75201         any systems lack sys/socket.h; mingw32 is known to lack it, but we
75202         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
75203         same reasons.
75204
75205 2005-10-05  Simon Josefsson  <jas@extundo.com>
75206
75207         * config/srclist.txt: Add glibc bug 1423 for md5.h.
75208
75209 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75210
75211         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
75212         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
75213         needed, since the source code now assumes these .h files.
75214
75215 2005-10-05  Derek Price  <derek@ximbiot.com>
75216
75217         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
75218
75219 2005-10-05  Bruno Haible  <bruno@clisp.org>
75220
75221         * modules/stdint (License): Change to LGPL.
75222
75223 2005-10-04  Simon Josefsson  <jas@extundo.com>
75224
75225         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
75226         D. Baushke" <mdb@gnu.org>.
75227
75228 2005-10-04  Bruno Haible  <bruno@clisp.org>
75229
75230         * lib/verify.h (verify_true): Provide alternative definition for C++.
75231
75232 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
75233
75234         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
75235         (SSIZE_MAX): New macro, if not already defined.
75236         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
75237         than 2 GiB.
75238
75239 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75240
75241         Sync from coreutils.
75242         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
75243         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
75244         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
75245         ULLONG_MAX doesn't work with 2.7.2.1.
75246
75247 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75248
75249         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
75250         From Ben Pfaff.
75251
75252         * modules/exclude (Depends-on): Depend on verify.
75253         * modules/strtoimax (Depends-on): Likewise.
75254         * modules/utimecmp (Depends-on): Likewise.
75255
75256 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75257
75258         * lib/exclude.c: Include verify.h.
75259         (verify): Remove.  All callers changed to use verify.h's version.
75260         * lib/strtoimax.c: Likewise.
75261         * lib/utimecmp.c: Likewis.e
75262
75263         Sync from coreutils.
75264         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
75265         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
75266         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
75267         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
75268         bother returning ENOSYS if settimeofday or stime fails; just let
75269         them return whatever errno they want to return.
75270         * lib/utimens.c: Include unistd.h, for dup2.
75271         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
75272         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
75273
75274 2005-10-02  Jim Meyering  <jim@meyering.net>
75275
75276         Sync from coreutils.
75277         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
75278         from glibc-2.2.5 that fails for read-only files.
75279
75280 2005-10-02  Jim Meyering  <jim@meyering.net>
75281
75282         Sync from coreutils.
75283         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
75284         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
75285         `#if HAVE_CONFIG_H'.
75286         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
75287         Remove AT_FDCWD test.
75288         Do not consume the fd unless successful.
75289         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
75290         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
75291         block, so that we don't even try to compile it if settimeofday is
75292         available.  This works around a compilation failure on OSF1 V5.1,
75293         due to stime requiring a `long int*' while tv_sec is `int'.
75294
75295 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
75296
75297         Sync from coreutils.
75298         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
75299         against `yes', rather than just testing for nonempty.
75300
75301 2005-10-01  Simon Josefsson  <jas@extundo.com>
75302
75303         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
75304         and Darwin.
75305
75306         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
75307         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
75308         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
75309         freeaddrinfo and gai_strerror are declared by the POSIX headers.
75310         Check if struct addrinfo is declared.
75311
75312 2005-10-01  Simon Josefsson  <jas@extundo.com>
75313
75314         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
75315         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
75316         AI_* and EAI_* definitions.  Protect function declarations.
75317
75318 2005-10-01  Jim Meyering  <jim@meyering.net>
75319
75320         Sync from coreutils.
75321
75322         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
75323         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
75324         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
75325         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75326         in the inet and nsl libraries.  Required on Solaris 5.7.
75327
75328 2005-10-01  Jim Meyering  <jim@meyering.net>
75329
75330         Sync from coreutils.
75331         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75332         in the inet and nsl libraries.  Required on Solaris 5.7.
75333
75334 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
75335
75336         * lib/getdelim.c (getdelim): Remove unused variables.
75337
75338 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75339
75340         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
75341         so that the code works even with ancient cpp.  Portability problem
75342         with GCC 2.7.2.1 reported by Thomas M.Ott.
75343
75344 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75345
75346         * modules/regex (Depends-on): Add strcase.
75347
75348         * modules/gethostname (Licence): Change from GPL to LGPL, since
75349         gethostname.c is a trivial implementation of a standard library
75350         function.
75351         * modules/poll (License): Change from GPL to LGPL, since it's
75352         derived from LGPL code.
75353
75354 2005-09-27  Jim Meyering  <jim@meyering.net>
75355
75356         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
75357         HAVE_CONFIG_H.
75358
75359         * lib/intprops.h (signed_type_or_expr__): Define.
75360         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
75361         for unsigned types.
75362
75363 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75364
75365         * lib/verify.h (verify_expr): Remove, replacing with:
75366         (verify_true): New macro that returns true instead of void.
75367         (verify_type__): Remove.
75368         (verify): Use verify_true rather than verify_type__.
75369
75370 2005-09-26  Bruno Haible  <bruno@clisp.org>
75371
75372         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
75373         is necessary.
75374         (lib_SOURCES): Remove mbchar.c.
75375         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
75376         (Files): Add m4/mbrtowc.m4.
75377         * modules/mbiter: Likewise.
75378         * modules/mbuiter: Likewise.
75379
75380 2005-09-26  Bruno Haible  <bruno@clisp.org>
75381
75382         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
75383         compile mbchar.c if they are not both present.
75384         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
75385         * m4/mbiter.m4 (gl_MBITER): Likewise.
75386         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
75387         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
75388         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
75389
75390 2005-09-25  Jim Meyering  <jim@meyering.net>
75391
75392         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
75393         also uses socklen_t.
75394
75395 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
75396
75397         * lib/utimens.c (ENOSYS): Define if not already defined.
75398         (futimens): Support having a null PATH if the file descriptor
75399         is nonnegative.
75400
75401         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
75402         Remove.
75403         (__attribute): Define to empty unless GCC 3.1 or later.
75404         This works around a core dump on OpenBSD 3.4, which has GCC
75405         2.95.3, which dumps core when given __attribute__(()).  It also
75406         simplifies other tests, since we really don't want to bother with
75407         worrying about which ancient version of GCC supported what.
75408         Original problem reported by Yoann Vandoorselaere, with part of
75409         the fix suggested by Derek Price.
75410
75411 2005-09-24  Jim Meyering  <jim@meyering.net>
75412
75413         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
75414         so we can once again use a positive bitfield width of 1 -- now we
75415         don't have to explain why we were using a bitfield width of 2.
75416
75417 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75418
75419         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
75420         and similarly for the other external symbols.  Problem reported
75421         by James Gallager.
75422
75423         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
75424         bug reported by Jim Meyering.
75425
75426         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
75427         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
75428         not needed, since socklen is a prerequisite module.
75429
75430 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75431
75432         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
75433         Problem reported by Eric Blake.
75434         (getaddrinfo): Initialize se so that it's not garbage.
75435         Redo internal storage allocation so that it doesn't make unportable
75436         assumptions about alignment.
75437         Fix a memory leak.
75438
75439         * lib/utimens.c (futimens): Use futimesat if available.
75440         Prefer it to futimes since it doesn't have the futimes bug.
75441
75442         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
75443         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
75444         Instead, declare a function that returns a pointer to an array,
75445         and use verify_type__ to declare the size of the array.
75446         Problem and germ of a solution reported by Bruno Haible.
75447         (verify_type__): Use 2, not 1, for bitfield size, to avoid
75448         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
75449
75450 2005-09-23  Jim Meyering  <jim@meyering.net>
75451
75452         Sync from coreutils.
75453         Correct build failure (socklen_t not defined) on at least
75454         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
75455         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
75456
75457 2005-09-23  Jim Meyering  <jim@meyering.net>
75458
75459         * modules/getaddrinfo (Depends-on): Add socklen.
75460
75461 2005-09-23  Bruno Haible  <bruno@clisp.org>
75462
75463         * tests/test-verify.c: New file.
75464
75465 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75466
75467         Sync from coreutils.
75468
75469         * modules/argmatch (Depends-on): Add verify.
75470         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
75471         unistd-safer.
75472         * modules/save-cwd (Depends-on): Likewise.
75473
75474         * modules/openat (Files): Add lib/openat-die.c.
75475         (Depends-on): Remove error, exitfail.
75476         Add dirname.
75477
75478         * modules/verify: New file.
75479         * MODULES.html.sh (Diagnostics <assert.h>): New section,
75480         with "verify" module.
75481
75482 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75483
75484         Sync from coreutils.
75485
75486         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
75487         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
75488         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
75489         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
75490         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
75491         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
75492         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
75493         Don't bother checking for string.h, stdlib.h, unistd.h.
75494         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
75495         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
75496         module's job.
75497         * m4/jm-macros.m4 (gl_MACROS): Likewise.
75498         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
75499
75500         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
75501         (gl_GETDATE): Use it.
75502
75503         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
75504
75505 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75506
75507         Sync from coreutils.
75508
75509         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
75510         stat-time.h.
75511         * lib/argmatch.h: Include verify.h
75512         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
75513         (ARGMATCH_ASSERT): Remove; unused.
75514         * lib/canonicalize.c: Assume STDC_HEADERS.
75515         * lib/exclude.c: Include "strcase.h".
75516         * lib/regex_internal.h [!defined _LIBC]: Likewise.
75517         * lib/getusershell.c: Include stdio--.h rather than stdio.h
75518         and stdio-safer.h.
75519         (getusershell): Call fopen, not fopen_safer.
75520         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
75521         Do not include unistd-safer.h.
75522         (save_cwd): Don't call fd_safer; no longer needed
75523         now that we include fcntl--.h.
75524
75525         * lib/getdate.y (relative_time): New type.
75526         (RELATIVE_TIME_0): New constant.
75527         (parser_control): Use relative_time instead of doing it ourselves.
75528         (%union): Add new relative_time rel member.
75529         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
75530         Now typeless.
75531         (relunit, relunit_snumber): Now of type rel.
75532         (zone, rel, relunit, get_date): Adjust to above changes.
75533
75534         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
75535         Do not include unistd-safer.h.
75536         (getloadavg): Don't call fd_safer; no longer needed
75537         now that we include fcntl--.h.
75538
75539         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
75540         (make_dir_parents): Treat ENOSYS like EEXIST.
75541
75542         Improve quality of diagnostics on restore_cwd failure.
75543         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
75544         (make_dir_parents): Last arg is now int * (for errno), not bool *.
75545         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
75546         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
75547         each time through the loop.  Do not diagnose restore_cwd failure;
75548         that is the caller's job (and perhaps the caller does not care).
75549
75550         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
75551         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
75552         If the file already exists but is not a directory, don't bother
75553         to try to make its parents.
75554         Close potential file descriptor leak if we can't chdir("/") (!).
75555         Don't always return true if chdir($PWD) fails; return true only
75556         if the requested action was done successfully (except for the
75557         chdir($PWD)).
75558         Don't log final directory unless we actually made it.
75559         Refactor to avoid duplicate code to fix up permissions.
75560         Don't attempt to fix up parent permissions if chdir($PWD) fails.
75561
75562         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
75563         to make it a bit faster and (I hope) clearer.
75564         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
75565         Fix bug in formats like %2N.
75566
75567         * lib/verify.h: New file.
75568
75569 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75570
75571         Sync from coreutils.
75572         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
75573
75574 2005-09-22  Jim Meyering  <jim@meyering.net>
75575
75576         Sync from coreutils.
75577
75578         * m4/lstat.m4 (gl_FUNC_LSTAT):
75579         Use AC_LIBSOURCES to require lstat.c and lstat.h.
75580         Remove obsolete comment.
75581         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
75582         * m4/xstrtod.m4: Likewise.
75583
75584         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
75585
75586 2005-09-22  Jim Meyering  <jim@meyering.net>
75587
75588         Sync from coreutils.
75589
75590         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
75591
75592         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
75593         the .tm_year member, since otherwise gcc-4.0 would now warn about
75594         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
75595
75596         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
75597         order to avoid an unsuppressible warning from gcc on 64-bit systems.
75598
75599         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
75600         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
75601         when run in a time zone for which daylight savings time is in effect
75602         for the starting date.
75603
75604         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
75605         stop us from restricting permissions of just-created absolute-named
75606         directories.
75607         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
75608         to restore initial working directory.
75609         * lib/mkdir-p.c (make_dir_parents): New parameter:
75610         different_working_dir, to tell caller if/when we change the working
75611         directory and are unable to return to the initial one.
75612         * lib/mkdir-p.h (make_dir_parents): Update prototype.
75613         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
75614         `return false'.  This fixes a bug introduced on 2004-07-30.
75615
75616         * lib/openat.c (fdopendir): Be sure to close the supplied
75617         file descriptor before returning.  This makes our replacement
75618         implementation a little closer to Solaris's, where fdopendir
75619         ties the file descriptor to the returned DIR* pointer.
75620         * lib/openat.c (unlinkat): New function.
75621         * lib/openat.h (unlinkat): Add prototype.
75622         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
75623         (openat_restore_fail): Rename from openat_restore_die.
75624         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
75625
75626         Provide an alternative to exiting immediately upon save_cwd or
75627         restore_cwd failure.  Now, an application can arrange e.g.,
75628         to perform a longjump in that case.
75629         * lib/openat.c: Include dirname.h.
75630         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
75631         (rpl_openat, fdopendir, fstatat): Call openat_save_die
75632         and openat_restore_die rather than calling error directly.
75633         Don't include "error.h" or "exitfail.h"; they're no longer needed.
75634
75635         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75636         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
75637         define.
75638
75639         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
75640         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
75641                             int utc, int nanoseconds);
75642         Background:
75643         date should not have to allocate a megabyte of virtual memory to
75644         handle a format argument like +%1048575T.  When implemented with
75645         strftime, it must allocate such a buffer, use strftime to fill it
75646         in, print it, then free it.
75647         With fprintftime, it simply prints everything and exits.
75648         With no need for memory allocation, that's one fewer way to fail.
75649         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75650         optional field width, not before, so we accept %9:z, not %:9z.
75651         (my_strftime): Be sure to use L_('x') for literals.
75652
75653         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75654         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75655         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75656         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75657         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75658         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75659         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75660         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75661         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75662         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75663         * lib/xgethostname.c, lib/xreadlink.c:
75664         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75665
75666         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75667         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75668         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75669         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75670         and don't include <sys/file.h>).
75671
75672 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75673
75674         Sync from coreutils.
75675
75676         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75677         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75678         [!LDAV_DONE]: Avoid unused variable warning.
75679
75680 2005-09-21  Bruno Haible  <bruno@clisp.org>
75681
75682         * lib/unicodeio.h (unicode_to_mb): New declaration.
75683
75684 2005-09-20  Derek Price  <derek@ximbiot.com>
75685
75686         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75687         getaddrinfo.h.
75688
75689 2005-09-20  Bruno Haible  <bruno@clisp.org>
75690
75691         * gnulib-tool: Remove trailing slashes from the values specified for
75692         --source-base, --m4-base, --tests-base, --aux-dir.
75693         Suggested by Simon Josefsson <jas@extundo.com>.
75694
75695 2005-09-20  Bruno Haible  <bruno@clisp.org>
75696
75697         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
75698         func_modules_to_filelist, func_import, func_create_testdir): Make all
75699         sorting results locale-independent, so that gnulib-cache.m4 doesn't
75700         change when gnulib-tool is invoked in a different locale.
75701
75702 2005-09-19  Simon Josefsson  <jas@extundo.com>
75703
75704         * m4/socklen.m4: Fix typo.
75705
75706 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75707
75708         Use a consistent style for including <config.h>.
75709         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75710         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75711         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75712         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75713         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75714         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75715         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75716         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75717         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75718         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75719         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75720         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75721         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75722         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75723         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75724         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75725         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75726         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75727         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75728         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75729         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75730         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75731         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75732         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75733         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75734         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
75735         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
75736         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
75737         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
75738         lib/xstrtoumax.c, lib/yesno.c:
75739         Standardize inclusion of config.h.
75740         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
75741         lib/inttostr.h:  Removed inclusion of config.h from header files.
75742         * lib/inttostr.c:  Adjusted in-tree users.
75743         * lib/timespec.h: Remove superfluous warning to include config.h.
75744         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
75745         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
75746         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
75747         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
75748         config.h with HAVE_CONFIG_H.
75749
75750 2005-09-19  Jim Meyering  <jim@meyering.net>
75751
75752         * modules/pathmax (License): Change to LGPL.
75753
75754 2005-09-19  Derek Price  <derek@ximbiot.com>
75755
75756         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
75757
75758 2005-09-19  Bruno Haible  <bruno@clisp.org>
75759
75760         * gnulib-tool (import): Provide default for --tests-base.
75761
75762 2005-09-19  Bruno Haible  <bruno@clisp.org>
75763
75764         * doc/quote.texi: New file, extracted from gnulib.texi.
75765         * doc/ctime.texi: New file, extracted from gnulib.texi.
75766         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75767         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75768         * doc/gnulib.texi: Include them.
75769
75770 2005-09-18  Bruno Haible  <bruno@clisp.org>
75771
75772         Portability fix.
75773         * gnulib-tool (func_readlink): New function.
75774         (func_ln_if_changed): Use it.
75775
75776 2005-09-18  Bruno Haible  <bruno@clisp.org>
75777
75778         * gnulib-tool: Support --with-tests also with --import.
75779         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75780         (func_import): Use variables $testsbase and $inctests. Emit a
75781         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75782         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75783         SUBDIRS += $testsdir.
75784         (func_create_testdir): Update.
75785
75786 2005-09-18  Bruno Haible  <bruno@clisp.org>
75787
75788         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75789         instead of $dry_run.
75790         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75791         (func_ln_if_changed): Don't handle dry-run here.
75792         (func_import): In dry-run mode, detect more precisely which actions
75793         would be performed, and don't use "...ing" verbs.
75794
75795 2005-09-18  Bruno Haible  <bruno@clisp.org>
75796
75797         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
75798         (func_import): Use join on two temporary files instead of three nested
75799         loops, in order to determine which files are new or old.
75800
75801 2005-09-18  Bruno Haible  <bruno@clisp.org>
75802
75803         * gnulib-tool (func_import): Comment out code that spits out the
75804         new files with --dry-run.
75805
75806 2005-09-18  Bruno Haible  <bruno@clisp.org>
75807
75808         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75809
75810 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75811
75812         * lib/stat-time.h: New file.
75813         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75814         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75815         in a different way.
75816         (timespec_cmp): New function.
75817         * lib/utimecmp.c: Include stat-time.h.
75818         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75819         members exist, not on the obsolescent ST_MTIM_NSEC.
75820         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75821
75822 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75823
75824         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75825
75826 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75827
75828         * MODULES.html.sh (File system functions): Add stat-time.
75829         * modules/stat-time: New file.
75830         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75831         is now done in a different way, by the stat-time module.
75832         * modules/utimecmp (Depends-on): Add stat-time.
75833
75834 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75835
75836         * m4/st_mtim.m4: Remove.  Superseded by...
75837         * m4/stat-time.m4: New file.
75838         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75839         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75840
75841 2005-09-15  Derek Price  <derek@ximbiot.com>
75842
75843         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75844
75845 2005-09-15  Derek Price  <derek@ximbiot.com>
75846
75847         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75848         * lib/regex_internal.c: Ditto, using this...
75849         (__GNUC_PREREQ): ...new macro.
75850         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75851         using...
75852         (__GNUC_PREREQ): ...this new macro.
75853
75854         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75855
75856 2005-09-15  Derek Price  <derek@ximbiot.com>
75857             Paul Eggert  <eggert@cs.ucla.edu>
75858
75859         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75860         changes, consolidating in...
75861         * lib/regex_internal.h: ...this file.
75862
75863 2005-09-13  Jim Meyering  <jim@meyering.net>
75864
75865         * lib/canon-host.c: Filter through gnu indent and reword comments
75866         slightly.
75867         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75868
75869 2005-09-13  Derek Price  <derek@ximbiot.com>
75870
75871         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75872         failure.
75873         Reported by Jim Meyering  <jim@meyering.net>.
75874
75875 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75876
75877         * lib/base64.c: Typo.
75878         (base64_encode): Put b64str in initialized data section.
75879
75880 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75881
75882         Merge glibc and coreutils changes into gnulib, plus a few
75883         extra fixes.
75884         * lib/md5.c: Use #error rather than a string.
75885         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75886         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75887         (__attribute__): Define to empty for non recent-GCC.
75888         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75889         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75890         Renamed from their non-__ counterparts, with new macros replacing
75891         them if not _LIBC.  Add __THROW attribute.
75892         (rol): Remove.
75893         (struct md5_ctx): Align buffer if using GCC.
75894         * lib/sha1.h (struct sha1_ctx): Likewise.
75895         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75896         The old name was backwards.
75897         (NOTSWAP): Remove; not used.
75898         (rol): New macro, moved here from md5.h.
75899         (sha1_process_block): Remove a FIXME that doesn't make sense.
75900
75901 2005-09-12  Derek Price  <derek@ximbiot.com>
75902
75903         Return usable errors from canon-host.
75904         * lib/canon-host.h: New file.
75905         * lib/canon-host.c (canon_host): Wrap...
75906         (canon_host_r): ...this new function, which now relies exclusively on
75907         getaddrinfo.
75908         (ch_strerror): New function.
75909         (last_cherror): New global.
75910         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75911         interface.
75912         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75913         void *.
75914         (freeaddrinfo): Free ai->ai_canonname when set.
75915
75916 2005-09-12  Derek Price  <derek@ximbiot.com>
75917
75918         Make canon-host require getaddrinfo.
75919         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75920         AC_LIBSOURCE canon-host.h.  Call...
75921         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75922         gl_GETADDRINFO.
75923         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75924
75925 2005-09-12  Derek Price  <derek@ximbiot.com>
75926
75927         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75928         LGPL.
75929         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75930
75931 2005-09-12  Derek Price  <derek@ximbiot.com>
75932
75933         * lib/gai_strerror.c: Include config.h when available.  Include
75934         getaddrinfo.h before other headers to test interface.
75935         Reported by Larry Jones <lawrence.jones@ugs.com>.
75936
75937 2005-09-12  Derek Price  <derek@ximbiot.com>
75938             Paul Eggert  <eggert@cs.ucla.edu>
75939
75940         * modules/glob (Files): Add glob-libc.h.
75941
75942 2005-09-12  Derek Price  <derek@ximbiot.com>
75943             Paul Eggert  <eggert@cs.ucla.edu>
75944
75945         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75946         glob_.h, glob-libc.h.
75947         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75948
75949 2005-09-12  Derek Price  <derek@ximbiot.com>
75950             Paul Eggert  <eggert@cs.ucla.edu>
75951
75952         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75953         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75954         protecting things that should be done only in gnulib contexts.
75955         * lib/glob_.h: New file, containing only the glob things needed for
75956         gnulib.
75957         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75958         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75959         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75960         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75961         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75962         and to respect the namespace rules better.
75963
75964 2005-09-08  Simon Josefsson  <jas@extundo.com>
75965
75966         * modules/socklen: New file.
75967
75968 2005-09-08  Simon Josefsson  <jas@extundo.com>
75969
75970         * m4/socklen.m4: New file.
75971
75972 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75973
75974         * modules/utimens (Files): Add m4/utimbuf.m4, since
75975         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75976         Reported by Sergey Poznyakoff.
75977
75978 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75979
75980         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75981         definitions, since that's the preferred style in glibc.
75982         Fix a minor spacing issue, and update copyright notice to match
75983         glibc's.
75984
75985 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75986
75987         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75988
75989 2005-09-06  Simon Josefsson  <jas@extundo.com>
75990
75991         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75992         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75993
75994 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75995
75996         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75997         warning.
75998
75999 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76000
76001         * config/srclist.txt: Add glibc bug 1302.
76002
76003 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
76004
76005         Change bitset word type from unsigned int to unsigned long int,
76006         as this has better performance on typical 64-bit hosts.
76007         Port bitset code to hosts with unusual word sizes.
76008         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
76009         (build_collating_symbol):
76010         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
76011         argument is a bitset.  This is merely a style issue, but it makes
76012         it clearer that an entire array is expected.
76013         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
76014         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
76015         Port to the case where bitset_word is not the same as unsigned int.
76016         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76017         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
76018         Likewise.
76019         * lib/regexec.c (check_dst_limits_calc_pos_1,
76020         check_subexp_matching_top):
76021         (build_trtable, group_nodes_into_DFAstates):
76022         Likewise.
76023         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
76024         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
76025         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
76026         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
76027         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
76028         * lib/regcomp.c (optimize_subexps, lower_subexp):
76029         Work even if bitset_word has holes in its bitwise representation.
76030         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
76031         * lib/regexec.c (check_dst_limits_calc_pos_1,
76032         check_subexp_matching_top):
76033         Likewise.
76034         * lib/regex_internal.c (re_string_reconstruct):
76035         Don't assume UCHAR_MAX == 255.
76036         * lib/regex_internal.h (bitset_set_all): Likewise.
76037         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
76038         All uses changed.
76039         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
76040         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
76041         All uses changed.
76042         (BITSET_WORD_MAX): New macro.
76043         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
76044         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
76045         (bitset_empty, bitset_copy):
76046         Prefer sizeof (bitset) to multiplying it out ourselves.
76047         (bitset_not_merge): Remove; unused.
76048         (bitset_contain): Return bool, not unsigned int with one bit on.
76049         All callers changed.
76050         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
76051         alignment than re_node_set; do this by defining a new internal
76052         type struct dests_alloc and using it to allocate memory.
76053
76054 2005-09-05  Bruno Haible  <bruno@clisp.org>
76055
76056         * gnulib-tool (func_import): Fix comparison in handling of symbolic
76057         links.
76058
76059 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
76060
76061         * modules/size_max (Makefile.am): Add size_max.h
76062
76063 2005-09-04  Derek Price  <derek@ximbiot.com>
76064
76065         * gnulib-tool (func_import): Fix reversed $symbolic logic.
76066
76067 2005-09-03  Simon Josefsson  <jas@extundo.com>
76068
76069         * gnulib-tool: Fix typo.
76070
76071 2005-09-03  Simon Josefsson  <jas@extundo.com>
76072
76073         * config/srclist.txt: Add glibc bug 1293.
76074
76075 2005-09-03  Derek Price  <derek@ximbiot.com>
76076
76077         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
76078         From Larry Jones <lawrence.jones@ugs.com>.
76079
76080 2005-09-02  Simon Josefsson  <jas@extundo.com>
76081
76082         * modules/socklen: New file.
76083
76084 2005-09-02  Simon Josefsson  <jas@extundo.com>
76085
76086         * modules/havelib: New module.
76087
76088         * modules/gettext, modules/iconv, modules/lock, modules/readline:
76089         Use havelib.
76090
76091 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76092
76093         Check for arithmetic overflow when calculating sizes, to prevent
76094         some buffer-overflow issues.  These patches are conservative, in the
76095         sense that when I couldn't determine whether an overflow was possible,
76096         I inserted a run-time check.
76097         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
76098         macros.
76099         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
76100         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
76101         (re_xnrealloc, re_x2nrealloc): New inline functions.
76102         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
76103         parse_bracket_exp):
76104         (build_equiv_class, build_charclass): Check for arithmetic overflow
76105         in size expression calculations.
76106         * lib/regex_internal.c (re_string_realloc_buffers):
76107         (build_wcs_upper_buffer, re_node_set_add_intersect):
76108         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
76109         (re_dfa_add_node, register_state): Likewise.
76110         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
76111         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
76112         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
76113         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
76114
76115 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76116
76117         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76118         m4/ulonglong.m4.  Problem reported by Martin Lambers.
76119
76120 2005-09-02  Bruno Haible  <bruno@clisp.org>
76121
76122         Support for lib vs. lib64 distinction on biarch platforms.
76123         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
76124         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
76125         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
76126
76127 2005-09-02  Bruno Haible  <bruno@clisp.org>
76128
76129         * gnulib-tool (import): In the other first-use case, provide defaults
76130         as well.
76131
76132 2005-09-02  Bruno Haible  <bruno@clisp.org>
76133
76134         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
76135         patches not yet found in the latest gettext release.
76136
76137 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76138
76139         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
76140         to avoid a collision with bits/local_lim.h in glibc.
76141         All uses changed.  Problem reported by Dmitry V. Levin in
76142         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
76143
76144         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
76145         bugs in int versus size_t comparisons.
76146         (re_string_context_at): Fix bug where the code assumed that
76147         Idx is signed.
76148
76149         Use bool where appropriate.
76150         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
76151         All callers changed.
76152         (calc_eclosure_iter): Likewise, for ROOT arg.
76153         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
76154         (build_charclass_op): Likewise, for NON_MATCH arg.
76155         * lib/regex_internal.c (re_string_allocate, re_string_construct):
76156         (re_string_construct_common): Likewise, for ICASE arg.
76157         * lib/regexec.c (re_search_2_stub, re_search_stub):
76158         Likewise, for RET_LEN arg.
76159         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
76160         (set_regs): Likewise, for FL_BACKTRACK arg.
76161         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
76162         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
76163         (calc_eclosure_iter, parse_bracket_exp):
76164         Use bool for internal variables that are booleans.
76165         * lib/regexec.c (re_search_internal, check_matching,
76166         proceed_next_node):
76167         (set_regs, build_sifted_states, sift_states_bkref):
76168         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
76169         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76170         (find_collation_sequence_value):
76171         Likewise.
76172         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
76173         (re_node_set_compare):
76174         Return bool, not int. All callers changed.
76175         * lib/regexec.c (check_halt_node_context, check_dst_limits):
76176         (build_trtable, check_node_accept): Likewise.
76177         * lib/regex_internal.h: Include stdbool.h.
76178
76179         Fix bugs uncovered when converting to bool.
76180         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
76181         failure instead of charging ahead blindly.
76182         * lib/regex_internal.c (register_state): Likewise.
76183         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
76184         for freeing internal storage.
76185         (group_nodes_into_DFA_states): Use unsigned int, not int, for
76186         bitset pieces used as boolean, to avoid undefined behavior
76187         on hosts that do int overflow checking.
76188
76189 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76190
76191         * config/srclist.txt: Add glibc bugs 1285-1287.
76192
76193 2005-09-01  Jim Meyering  <jim@meyering.net>
76194
76195         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
76196         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
76197         Require gl_STAT_MACROS, too.
76198
76199 2005-09-01  Bruno Haible  <bruno@clisp.org>
76200
76201         * gnulib-tool (import): In the first-use case, provide defaults.
76202
76203 2005-09-01  Bruno Haible  <bruno@clisp.org>
76204
76205         * gnulib-tool (func_import): Remove the .tmp files.
76206
76207 2005-09-01  Bruno Haible  <bruno@clisp.org>
76208
76209         * gnulib-tool (func_import): Fix handling of symbolic links.
76210
76211 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76212
76213         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
76214         old glibc regex code mishandles strings longer than 2**31 bytes.
76215         This patch fixes this when the regex code is used in gnulib
76216         (i.e., outside glibc).
76217
76218         This patch should not affect the use of the regex code inside
76219         glibc.  No doubt this problem also needs to be handled for glibc
76220         as well, but the result will be an incompatible change to the
76221         glibc ABI, and the old ABI will have to be supported too.  That
76222         can be the the subject for another patch.
76223
76224         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
76225         governing whether the rest of this patch is active.  By default,
76226         the macro is disabled and the patch has no effect.
76227         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
76228         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
76229         (struct re_pattern_buffer, re_search, re_search_2, re_match):
76230         (re_match_2, re_set_registers): Use the new types.
76231         * lib/regex_internal.h (Idx, re_hashval_t): New types.
76232         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
76233         New macros.
76234         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
76235         (re_string_context_at, bin_tree_t, re_dfastate_t):
76236         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
76237         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
76238         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
76239         (re_string_char_size_at, re_string_wchar_at):
76240         (re_string_elem_size_at):
76241         Use the new types and macros to port to 64-bit hosts.
76242         Use unsigned types for internal values, so that the code
76243         mostly works even for arrays larger than SSIZE_MAX.
76244         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
76245         (search_duplicated_node, calc_eclosure_iter, fetch_number):
76246         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
76247         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
76248         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
76249         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
76250         (calc_inveclosure, parse_dup_op, build_range_exp):
76251         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
76252         (fetch_number, create_token_tree, mark_opt_subexp):
76253         Likewise.
76254         * lib/regex_internal.c (re_string_construct_common,
76255         create_ci_newstate):
76256         (create_cd_newstate, re_string_allocate, re_string_construct):
76257         (re_string_realloc_buffers, build_wcs_upper_buffer):
76258         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76259         (re_string_reconstruct, re_string_peek_byte_case):
76260         (re_string_fetch_byte_case, re_string_context_at):
76261         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76262         (re_node_set_init_copy, re_node_set_add_intersect):
76263         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76264         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76265         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76266         (re_acquire_state, re_acquire_state_context, register_state):
76267         Likewise.
76268         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
76269         search_cur_bkref_entry):
76270         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
76271         (re_search_internal, re_search_2_stub, re_search_stub)
76272         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
76273         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
76274         (update_cur_sifted_state, check_dst_limits):
76275         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76276         (check_subexp_limits, sift_states_bkref, merge_state_array):
76277         (check_subexp_matching_top, get_subexp, get_subexp_sub):
76278         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
76279         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76280         (expand_bkref_cache, check_node_accept_bytes):
76281         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
76282         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
76283         (acquire_init_state_context, check_halt_node_context):
76284         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
76285         (sift_states_backward, clean_state_log_if_needed):
76286         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
76287         (find_recover_state, transit_state_sb, transit_state_mb):
76288         (transit_state_bkref, build_trtable, match_ctx_clean):
76289         Likewise.
76290         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
76291         to work around an assumption that REG_MISSING is negative.
76292
76293         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
76294         (seek_collating_symbol_entry) [defined _LIBC]:
76295         (lookup_collation_sequence_value) [defined _LIBC]:
76296         (build_range_exp, build_collating_symbol) [defined _LIBC]:
76297         Use prototypes rather than old-style function definitions.
76298         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
76299         (transit_state_sb) [0]:
76300         (find_collation_sequence_value) [defined _LIBC]: Likewise.
76301
76302         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
76303         rm_eo.
76304
76305         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
76306         (optimize_subexps, lower_subexp):
76307         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
76308         since the signed shift might overflow.  Use 1u<<31 instead.
76309         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76310         Likewise.
76311         * lib/regexec.c (check_dst_limits_calc_pos_1,
76312         check_subexp_matching_top): Likewise.
76313
76314         * lib/regcomp.c (optimize_subexps, lower_subexp):
76315         Use CHAR_BIT rather than 8, for clarity.
76316         * lib/regexec.c (check_dst_limits_calc_pos_1):
76317         (check_subexp_matching_top): Likewise.
76318         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
76319         have to worry about portability issues when shifting it left.
76320         Remove no-longer-needed test for table_size > 0.
76321         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
76322         in a word, as the resulting behavior is undefined.
76323         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
76324         in one case, a <= should have been an <, and in another case the
76325         whole test was missing.
76326         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
76327         the standard name CHAR_BIT.
76328         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
76329         this is not true on one's complement and signed-magnitude hosts.
76330
76331         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
76332         next_last_offset.
76333         (struct re_dfa_t): Remove unused member states_alloc.
76334         * lib/regcomp.c (init_dfa): Don't initialize unused members.
76335
76336 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76337
76338         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
76339         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
76340         and large-file glibc and in 32-bit large-file Solaris.
76341
76342 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76343
76344         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
76345         lengths fit in regoff_t; this isn't true if regoff_t is the same
76346         width as size_t.
76347         * lib/regex.c (re_search_internal): 5th arg is LAST_START
76348         (= START + RANGE) instead of RANGE.  This avoids overflow
76349         problems when regoff_t is the same width as size_t.
76350         All callers changed.
76351         (re_search_2_stub): Check for overflow when adding the
76352         sizes of the two strings.
76353         (re_search_stub): Check for overflow when adding START
76354         to RANGE; if it occurs, substitute the extreme value.
76355
76356 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76357
76358         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
76359
76360 2005-08-31  Jim Meyering  <jim@meyering.net>
76361
76362         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
76363         a pointer-to-const.
76364         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
76365         (register_state): Likewise.
76366         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
76367         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76368         (group_nodes_into_DFAstates): Likewise.
76369
76370 2005-08-31  Jim Meyering  <jim@meyering.net>
76371
76372         * check-module: Add a FIXME comment.
76373
76374 2005-08-31  Eric Blake  <ebb9@byu.net>
76375
76376         * modules/unistd-safer (Files): Add unistd--.h.
76377         * modules/stdio-safer (Files): Add stdio--.h.
76378
76379 2005-08-31  Derek Price  <derek@ximbiot.com>
76380
76381         * lib/getdelim.c (getdelim): Return EOF on EOF.
76382         Reported by Larry Jones <lawrence.jones@ugs.com>.
76383
76384 2005-08-31  Bruno Haible  <bruno@clisp.org>
76385
76386         Avoid unnecessary diffs in the generated lib/Makefile.am.
76387         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
76388         the generated files.
76389         (func_import): Don't set cmd.
76390
76391 2005-08-31  Bruno Haible  <bruno@clisp.org>
76392
76393         * lib/strstr.c: Include <stddef.h>, for NULL.
76394         * lib/strcasestr.c: Likewise.
76395         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76396
76397 2005-08-31  Bruno Haible  <bruno@clisp.org>
76398
76399         * gnulib-tool: New option --macro-prefix.
76400         (func_import): Use macro_prefix.
76401         (import): Handle option --macro-prefix.
76402
76403 2005-08-31  Bruno Haible  <bruno@clisp.org>
76404
76405         * gnulib-tool (import): Rename most ac_* variables to cached_*.
76406         Also use new variables cached_lgpl, cached_libtool.
76407
76408 2005-08-31  Bruno Haible  <bruno@clisp.org>
76409
76410         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
76411         always instantiating them.
76412
76413 2005-08-31  Bruno Haible  <bruno@clisp.org>
76414
76415         * gnulib-tool (func_import): Read the previous cached settings
76416         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
76417         earlier added by gnulib but are now dropped. Warn when a gnulib file
76418         overwrites a non-gnulib file.
76419
76420 2005-08-31  Bruno Haible  <bruno@clisp.org>
76421
76422         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
76423         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
76424         projects that don't keep autogenerated files in CVS. Put into
76425         actioncmd only the specified modules, not the transitive closure.
76426
76427 2005-08-31  Bruno Haible  <bruno@clisp.org>
76428
76429         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
76430         Create directories that shall be filled.
76431         (import): Don't look for gl_* macros in configure.ac. Recurse across
76432         all directories containing a gnulib-cache.m4 files, if meaningful.
76433
76434 2005-08-31  Bruno Haible  <bruno@clisp.org>
76435
76436         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
76437         (import): Set seen_libtool when we see gl_LIBTOOL.
76438
76439 2005-08-31  Bruno Haible  <bruno@clisp.org>
76440
76441         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
76442         declaration macro definitions from generated gnulib.m4.
76443
76444 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
76445
76446         * lib/iconvme.h: Add prototype for iconv_alloc.
76447
76448 2005-08-29  Simon Josefsson  <jas@extundo.com>
76449
76450         * lib/iconvme.c: Fix errno.
76451
76452 2005-08-29  Bruno Haible  <bruno@clisp.org>
76453
76454         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
76455         that it works when the directory contains spaces.
76456
76457 2005-08-29  Bruno Haible  <bruno@clisp.org>
76458
76459         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
76460
76461 2005-08-29  Bruno Haible  <bruno@clisp.org>
76462
76463         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
76464         Emit more advice.
76465
76466 2005-08-29  Bruno Haible  <bruno@clisp.org>
76467         and Stepan Kasal  <kasal@ucw.cz>
76468
76469         * check-module: If more parameters are given, check each of them
76470         separately; add more exceptions, as noted by Jim Meyering.
76471         (check_module): New procedure.
76472         (%exempt_header): Now contains all exceptions.
76473
76474 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
76475
76476         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
76477
76478 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76479
76480         * lib/iconvme.c: Split iconv_string into iconv_alloc.
76481
76482 2005-08-28  Bruno Haible  <bruno@clisp.org>
76483
76484         * m4/gnulib-tool.m4: New file.
76485
76486 2005-08-27  Jim Meyering  <jim@meyering.net>
76487
76488         * modules/unistd-safer (Files): Add pipe-safer.c.
76489         * modules/fcntl-safer (Files): Add creat-safer.c.
76490
76491 2005-08-27  Jim Meyering  <jim@meyering.net>
76492
76493         * m4/stdlib-safer.m4: New file.  From coreutils.
76494         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
76495         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
76496         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
76497         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
76498         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
76499
76500 2005-08-27  Jim Meyering  <jim@meyering.net>
76501
76502         * lib/fopen-safer.c: Merge minor changes from coreutils.
76503         * lib/dup-safer.c: Likewise.
76504         * lib/fd-safer.c: Likewise.
76505
76506         Merge from coreutils.
76507         * lib/stdio--.h: New file.
76508         * lib/stdlib--.h: New file.
76509         * lib/mkstemp-safer.c: New file.
76510
76511         GNU tar needs these.
76512         * lib/pipe-safer.c: New file.
76513         * lib/creat-safer.c: New file.
76514         * lib/fcntl--.h (creat): Define to creat_safer.
76515         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
76516         * lib/unistd--.h (pipe): Define to pipe_safer.
76517         * lib/unistd-safer.h: Declare pipe_safer.
76518
76519 2005-08-26  Simon Josefsson  <jas@extundo.com>
76520
76521         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
76522         Haible <bruno@clisp.org>.
76523
76524 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
76525
76526         * lib/regex_internal.h: Remove all references to
76527         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
76528         or better.
76529         (bitset_not, bitset_merge, bitset_not_merge):
76530         (bitset_mask, re_string_allocate, re_string_construct):
76531         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
76532         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
76533         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
76534         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
76535         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76536         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76537         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
76538         (re_acquire_state_context):
76539         Remove unnecessary forward decls.
76540         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
76541         Put __attribute at function definition,
76542         now that the function decl has been removed.
76543         * lib/regex_internal.c (re_string_peek_byte_case):
76544         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
76545         Likewise.
76546
76547 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
76548
76549         * m4/regex.m4: Add AC_PREREQ(2.50).
76550         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
76551
76552 2005-08-25  Simon Josefsson  <jas@extundo.com>
76553
76554         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
76555         __fsetlocking.
76556
76557 2005-08-25  Simon Josefsson  <jas@extundo.com>
76558
76559         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
76560         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
76561         GLIBC specific code.
76562
76563 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76564
76565         Make regex safe for g++.  This fixes one real bug (an "err"
76566         that should have been "*err").  g++ problem reported by
76567         Sam Steingold.
76568         * lib/regex_internal.h (re_calloc): New macro, consistent with
76569         re_malloc etc.  All callers of calloc changed to use re_calloc.
76570         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
76571         not int.  All callers changed.
76572         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
76573         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
76574         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
76575         (find_recover_state): Change "err" to "*err"; this fixes what
76576         appears to be a real bug.
76577         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
76578         versus int.
76579
76580 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76581
76582         * modules/regex (Depends-on): Add malloc, since the code
76583         assumes that !malloc(0) means failure.
76584
76585 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76586
76587         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
76588
76589         alloca modernization/simplification for regex.
76590         * lib/regex.c: Remove portability cruft for alloca.  This no longer
76591         needs to be at the start of the file, and can be moved into
76592         regex_internal.h and simplified.
76593         * lib/regex_internal.h: Include <alloca.h>.
76594         (__libc_use_alloca) [!defined _LIBC]: New macro.
76595         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
76596         now works outside glibc.
76597
76598 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76599
76600         * config/srclist.txt: Add glibc bugs 1241, 1245.
76601
76602 2005-08-25  Jim Meyering  <jim@meyering.net>
76603
76604         * lib/open-safer.c: Include <config.h>.
76605         Otherwise, we'd lose LARGEFILE support in any file using
76606         e.g. "fcntl--.h"
76607
76608 2005-08-25  Bruno Haible  <bruno@clisp.org>
76609
76610         * m4/minmax.m4: Require autoconf 2.52.
76611         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
76612         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
76613         alternatives of translit over the alphabet.
76614         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
76615
76616 2005-08-24  Simon Josefsson  <jas@extundo.com>
76617
76618         * tests/test-getpass.c: New file.
76619
76620 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76621
76622         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
76623         for GNU regex features.
76624
76625 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76626
76627         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
76628         * lib/regex.h (regerror): Likewise.
76629
76630         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
76631         requires this.  (The code never needed it.)
76632
76633         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
76634         All uses of recently-renamed identifiers changed to use the new,
76635         POSIX-compliant names.  The code will build and run just fine
76636         without these changes, but it's better to eat our own dog food
76637         and use the standard-conforming names.
76638
76639         * lib/regex.h: Fix a multitude of POSIX name space violations.
76640         These changes have an effect only for programs that define
76641         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
76642         do not change anything for programs compiled in the normal way.
76643         Also, there is no effect on the ABI.
76644
76645         (_REGEX_SOURCE): New macro.
76646         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76647         defined and _GNU_SOURCE is not; this fixes a name space violation.
76648
76649         Rename the following macros to obey POSIX requirements.
76650         The old names are still visible as macros if _REGEX_SOURCE is defined.
76651         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76652         RE_BACKSLASH_ESCAPE_IN_LISTS.
76653         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76654         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76655         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76656         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76657         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76658         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76659         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76660         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76661         (REG_INTERVALS): renamed from RE_INTERVALS.
76662         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76663         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76664         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76665         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76666         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76667         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76668         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76669         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76670         RE_UNMATCHED_RIGHT_PAREN_ORD.
76671         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76672         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76673         (REG_DEBUG): renamed from RE_DEBUG.
76674         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76675         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76676         unusual, since we can't clash with the POSIX REG_ICASE.
76677         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76678         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76679         (REG_NO_SUB): renamed from RE_NO_SUB.
76680         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76681         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76682         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76683         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76684         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76685         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76686         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76687         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76688         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76689         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76690         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
76691         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
76692         RE_SYNTAX_POSIX_MINIMAL_BASIC.
76693         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
76694         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
76695         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
76696         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
76697         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
76698         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
76699         (REG_FIXED): Renamed from REGS_FIXED.
76700         (REG_NREGS): Renamed from RE_NREGS.
76701
76702         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
76703         of other REG_* macros, since POSIX says the user is allowed to
76704         #undef these macros selectively.
76705
76706         (reg_errcode_t): Update comment stating what other tables need
76707         to be consistent.
76708
76709         Rename the following enum values to obey POSIX requirements.
76710         The old names are still visible as macros.
76711         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76712         is not defined, since GNU is supposed to be a superset of POSIX as
76713         much as possible, and since we want reg_errcode_t to be a signed
76714         type for implementation consistency.
76715         (_REG_NOERROR): Renamed from REG_NOERROR.
76716         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76717         (_REG_BADPAT): Renamed from REG_BADPAT.
76718         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76719         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76720         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76721         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76722         (_REG_EBRACK): Renamed from REG_EBRACK.
76723         (_REG_EPAREN): Renamed from REG_EPAREN.
76724         (_REG_EBRACE): Renamed from REG_EBRACE.
76725         (_REG_BADBR): Renamed from REG_BADBR.
76726         (_REG_ERANGE): Renamed from REG_ERANGE.
76727         (_REG_ESPACE): Renamed from REG_ESPACE.
76728         (_REG_BADRPT): Renamed from REG_BADRPT.
76729         (_REG_EEND): Renamed from REG_EEND.
76730         (_REG_ESIZE): Renamed from REG_ESIZE.
76731         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76732         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76733         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76734         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
76735         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
76736
76737         (_REG_RE_NAME, _REG_RM_NAME): New macros.
76738         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
76739         changed.  But support the old name if the new one is not defined
76740         and if _REGEX_SOURCE.
76741
76742         Change the following member names in struct re_pattern_buffer.
76743         The old names are still supported if !_REGEX_SOURCE.
76744         The new names are always supported, regardless of _REGEX_SOURCE.
76745         (re_buffer): Renamed from buffer.
76746         (re_allocated): Renamed from allocated.
76747         (re_used): Renamed from used.
76748         (re_syntax): Renamed from syntax.
76749         (re_fastmap): Renamed from fastmap.
76750         (re_translate): Renamed from translate.
76751         (re_can_be_null): Renamed from can_be_null.
76752         (re_regs_allocated): Renamed from regs_allocated.
76753         (re_fastmap_accurate): Renamed from fastmap_accurate.
76754         (re_no_sub): Renamed from no_sub.
76755         (re_not_bol): Renamed from not_bol.
76756         (re_not_eol): Renamed from not_eol.
76757         (re_newline_anchor): Renamed from newline_anchor.
76758
76759         Change the following member names in struct re_registers.
76760         The old names are still supported if !_REGEX_SOURCE.
76761         The new names are always supported, regardless of _REGEX_SOURCE.
76762         (rm_num_regs): Renamed from num_regs.
76763         (rm_start): Renamed from start.
76764         (rm_end): Renamed from end.
76765
76766         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76767         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76768         Prepend __ to parameter names.
76769
76770         Undo yesterday's changes.
76771
76772 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76773
76774         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76775         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76776         lib/regex.c.
76777
76778 2005-08-24  Jim Meyering  <jim@meyering.net>
76779
76780         Sync from coreutils.
76781         * m4/fcntl-safer.m4: New file.
76782
76783         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76784         and object files for this module.
76785
76786 2005-08-24  Jim Meyering  <jim@meyering.net>
76787
76788         Sync from coreutils.
76789         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76790
76791 2005-08-24  Jim Meyering  <jim@meyering.net>
76792
76793         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
76794         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
76795
76796 2005-08-24  Jim Meyering  <jim@meyering.net>
76797
76798         * modules/fcntl-safer: New module.
76799         * modules/fts (Depends-on): Add fcntl-safer.
76800         * MODULES.html.sh (File descriptor based Input/Output):
76801         Add fcntl-safer.
76802
76803 2005-08-24  Bruno Haible  <bruno@clisp.org>
76804
76805         Support for unit test modules.
76806         * modules/README: Mention tests modules.
76807         * modules/TEMPLATE-TESTS: New file.
76808         * gnulib-tool: New options --extract-tests-module, --with-tests and
76809         --tests-base (unused for the moment).
76810         (testsbase, inctests): New variables.
76811         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76812         (func_verify_module): Exclude TEMPLATE-TESTS.
76813         (func_verify_nontests_module, func_verify_tests_module): New functions.
76814         (func_get_dependencies): Add implicit dependency for tests modules.
76815         (func_get_tests_module): New function.
76816         (func_modules_transitive_closure): When --with-tests was specified,
76817         include the unit tests as well, unless explicitly avoided.
76818         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76819         (func_emit_tests_Makefile_am): New function.
76820         (func_create_testdir): When --with-tests was specified, emit a
76821         tests/ directory.
76822         * MODULES.html.sh (Future developments): Update.
76823
76824 2005-08-24  Bruno Haible  <bruno@clisp.org>
76825
76826         * modules/tls-tests: New file.
76827         * tests/test-tls.c: New file, from GNU gettext.
76828
76829 2005-08-24  Bruno Haible  <bruno@clisp.org>
76830
76831         * modules/lock-tests: New file.
76832         * tests/test-lock.c: New file, from GNU gettext.
76833
76834 2005-08-24  Bruno Haible  <bruno@clisp.org>
76835
76836         * lib/lock.h: Add multiple inclusion guard.
76837         * lib/tls.h: Add multiple inclusion guard.
76838
76839 2005-08-24  Bruno Haible  <bruno@clisp.org>
76840
76841         * gnulib-tool: Add support for the --aux-dir option to
76842         --create-testdir, --create-megatestdir, --test, --megatest.
76843         (func_create_testdir, func_create_megatestdir): Optionally emit a
76844         AC_CONFIG_AUX_DIR directive.
76845         (create-testdir, create-megatestdir, test, megatest): Provide a
76846         default value for $auxdir.
76847
76848 2005-08-24  Bruno Haible  <bruno@clisp.org>
76849
76850         * gnulib-tool (import): Use compound statement instead of subshell
76851         where possible.
76852
76853 2005-08-24  Bruno Haible  <bruno@clisp.org>
76854
76855         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76856
76857 2005-08-24  Bruno Haible  <bruno@clisp.org>
76858
76859         * gnulib-tool (func_version): Update.
76860
76861 2005-08-24  Bruno Haible  <bruno@clisp.org>
76862
76863         * gnulib-tool (func_import, func_create_testdir,
76864         func_create_megatestdir): Quote all autoconf macro arguments.
76865
76866 2005-08-24  Bruno Haible  <bruno@clisp.org>
76867
76868         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76869         option --force, because --force causes the aclocal.m4 of each
76870         subdirectory to be newer than the corresponding config.h.in.
76871
76872 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76873
76874         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76875         All contents moved to gl_REGEX.
76876         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76877         assume that it does.
76878
76879 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76880
76881         * lib/regex.h (REG_NOSYS)
76882         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76883         Define, since POSIX requires it as of 2001.
76884         (_REG_ENOSYS)
76885         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76886         New private symbol, used to keep the enum signed in all cases.
76887         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76888         Youngman in
76889         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76890
76891         * lib/regex_internal.c (re_string_skip_chars, register_state):
76892         (calc_state_hash):
76893         Remove forward decls; no longer needed now that we use prototypes.
76894         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76895         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76896         (clean_state_log_if_needed): Likewise.
76897
76898 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76899
76900         * config/srclist.txt: Add glibc bugs 1231-1233.
76901
76902 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76903
76904         Fix problems reported by Sam Steingold in
76905         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76906         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76907         assumed that reg_errcode_t is a signed type, which is not
76908         necessarily true if _XOPEN_SOURCE is not defined.
76909         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76910         since some compilers warn about it otherwise.
76911
76912 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76913
76914         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76915         (init_word_char, create_initial_state, duplicate_node_closure):
76916         (fetch_token, peek_token_bracket, build_range_exp):
76917         (build_collating_symbol): Remove forward decls; no longer needed
76918         now that we use prototypes.
76919
76920         * lib/regcomp.c:
76921         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76922         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76923         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76924         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76925         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76926         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76927         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76928         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76929         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76930         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76931         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76932         (build_charclass, build_charclass_op, fetch_number, create_tree):
76933         (create_token_tree, mark_opt_subexp, duplicate_tree):
76934         Use prototypes rather than old-style definitions.
76935
76936         * lib/regex_internal.c:
76937         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76938         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76939         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76940         (re_string_reconstruct, re_string_peek_byte_case):
76941         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76942         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76943         (re_node_set_init_copy, re_node_set_add_intersect):
76944         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76945         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76946         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76947         (re_acquire_state, re_acquire_state_context, register_state):
76948         (create_ci_newstate, create_cd_newstate, free_state):
76949         Likewise.
76950         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76951         re_search_2):
76952         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76953         (re_search_internal, prune_impossible_nodes):
76954         (acquire_init_state_context, check_matching, static):
76955         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76956         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76957         (update_regs, sift_states_backward, build_sifted_states):
76958         (clean_state_log_if_needed, merge_state_array):
76959         (update_cur_sifted_state, add_epsilon_src_nodes):
76960         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76961         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76962         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76963         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76964         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76965         (check_arrival, check_arrival_add_next_nodes):
76966         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76967         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76968         (check_node_accept_bytes, check_node_accept, extend_buffers):
76969         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76970         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76971         (sift_ctx_init):
76972         Likewise.
76973
76974         * lib/regex_internal.h:
76975         (re_string_allocate, re_string_construct, re_string_reconstruct):
76976         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76977         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76978         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76979         (re_string_context_at, re_string_peek_byte_case):
76980         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76981         is defined, since we now use prototypes always.
76982
76983         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76984         C89 or better.  All uses removed.
76985
76986 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76987
76988         * config/srclist.txt: Add glibc bugs 1220-1227.
76989
76990 2005-08-20  Jim Meyering  <jim@meyering.net>
76991
76992         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76993         of unused local, dfa.
76994
76995 2005-08-20  Bruno Haible  <bruno@clisp.org>
76996
76997         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76998
76999 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77000
77001         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
77002         (re_node_set_insert_last, re_dfa_add_node):
77003         Rename local variables to avoid GCC shadowing warnings.
77004
77005 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77006
77007         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
77008         [defined lint]: Suppress bogus uninitialized-variable warnings.
77009
77010         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
77011         and let the caller return REG_ESPACE if out of space.  This
77012         removes an uninitialied-variable warning with GCC 4.0.1, and also
77013         avoids taking the address of a local variable.  All callers
77014         changed.
77015
77016 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77017
77018         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
77019         $LIBCSRC/posix/regexec.c.
77020         Add glibc bug 1217 for regcomp.c.
77021
77022 2005-08-19  Jim Meyering  <jim@meyering.net>
77023
77024         * lib/regexec.c (proceed_next_node): Redo local variables to
77025         avoid GCC shadowing warnings.
77026
77027 2005-08-18  Bruno Haible  <bruno@clisp.org>
77028
77029         * lib/strstr.c (strstr): Fix return value in multibyte case.
77030         * lib/strcasestr.c (strcasestr): Likewise.
77031
77032 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77033
77034         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
77035
77036 2005-08-17  Jim Meyering  <jim@meyering.net>
77037
77038         Make the %s format (seconds since the epoch) work for a negative
77039         number and when used with a zero-padded field width, e.g. %015s.
77040
77041         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
77042         label so that it precedes the code to set `digits'.  Otherwise,
77043         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
77044         print `00-22'.  Now, it prints `-0022', as it should.
77045
77046 2005-08-17  Bruno Haible  <bruno@clisp.org>
77047
77048         * modules/strstr (Files): Add m4/mbrtowc.m4.
77049         (Depends-on): Add mbuiter.
77050
77051 2005-08-17  Bruno Haible  <bruno@clisp.org>
77052
77053         * modules/strcasestr: New file.
77054         * MODULES.html.sh (String handling, based on ANSI C 89): Add
77055         strcasestr.
77056
77057 2005-08-17  Bruno Haible  <bruno@clisp.org>
77058
77059         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
77060
77061 2005-08-17  Bruno Haible  <bruno@clisp.org>
77062
77063         * modules/mbuiter: New file.
77064         * MODULES.html.sh (Extended multibyte and wide character utilities):
77065         Add mbuiter.
77066
77067 2005-08-17  Bruno Haible  <bruno@clisp.org>
77068
77069         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
77070         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
77071
77072 2005-08-17  Bruno Haible  <bruno@clisp.org>
77073
77074         * m4/strcasestr.m4: New file.
77075
77076 2005-08-17  Bruno Haible  <bruno@clisp.org>
77077
77078         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
77079         * lib/strstr.c: Completely rewritten, with multibyte locale support.
77080
77081 2005-08-17  Bruno Haible  <bruno@clisp.org>
77082
77083         * lib/strcasestr.h: New file.
77084         * lib/strcasestr.c: New file.
77085
77086 2005-08-17  Bruno Haible  <bruno@clisp.org>
77087
77088         * lib/strcasecmp.c: Use mbuiter.h.
77089
77090 2005-08-17  Bruno Haible  <bruno@clisp.org>
77091
77092         * lib/mbuiter.h: New file.
77093
77094 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77095
77096         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
77097         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
77098         and gl_GETOPT are both invoked via different paths (as happens
77099         with GNU tar CVS because it uses both argp and getopt), the former
77100         wins.
77101
77102 2005-08-16  Bruno Haible  <bruno@clisp.org>
77103
77104         * modules/tls: New file.
77105         * MODULES.html.sh (Multithreading): Add tls.
77106
77107 2005-08-16  Bruno Haible  <bruno@clisp.org>
77108
77109         * modules/strnlen1: New file.
77110         * MODULES.html.sh (String handling): Add strnlen1.
77111
77112 2005-08-16  Bruno Haible  <bruno@clisp.org>
77113
77114         * modules/strcase (Files): Add m4/mbrtowc.m4.
77115         (Depends-on): Add strnlen1, mbchar.
77116
77117 2005-08-16  Bruno Haible  <bruno@clisp.org>
77118
77119         * modules/mbiter: New file.
77120         * MODULES.html.sh (Extended multibyte and wide character utilities):
77121         Add mbiter.
77122
77123 2005-08-16  Bruno Haible  <bruno@clisp.org>
77124
77125         * modules/mbfile: New file.
77126         * MODULES.html.sh (Extended multibyte and wide character utilities):
77127         Add mbfile.
77128
77129 2005-08-16  Bruno Haible  <bruno@clisp.org>
77130
77131         * modules/mbchar: New file.
77132         * MODULES.html.sh (Extended multibyte and wide character utilities):
77133         New section.
77134
77135 2005-08-16  Bruno Haible  <bruno@clisp.org>
77136
77137         * m4/tls.m4: New file, from GNU gettext.
77138
77139 2005-08-16  Bruno Haible  <bruno@clisp.org>
77140
77141         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
77142         always.
77143         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
77144
77145 2005-08-16  Bruno Haible  <bruno@clisp.org>
77146
77147         * m4/mbiter.m4: New file.
77148
77149 2005-08-16  Bruno Haible  <bruno@clisp.org>
77150
77151         * m4/mbfile.m4: New file.
77152
77153 2005-08-16  Bruno Haible  <bruno@clisp.org>
77154
77155         * m4/mbchar.m4: New file.
77156
77157 2005-08-16  Bruno Haible  <bruno@clisp.org>
77158
77159         * lib/tls.h: New file, from GNU gettext.
77160         * lib/tls.c: New file, from GNU gettext.
77161
77162 2005-08-16  Bruno Haible  <bruno@clisp.org>
77163
77164         * lib/strnlen1.h: New file.
77165         * lib/strnlen1.c: New file.
77166
77167 2005-08-16  Bruno Haible  <bruno@clisp.org>
77168
77169         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
77170         (mbi_init): Update.
77171         (mbi_avail, mbi_advance): Let the iteration end before the terminating
77172         NUL byte, not after it.
77173
77174 2005-08-16  Bruno Haible  <bruno@clisp.org>
77175
77176         * lib/strcase.h (strcasecmp): Add note in comments.
77177         * lib/strncasecmp.c: Use code from strcasecmp.c.
77178         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
77179         (strcasecmp): Work correctly in multibyte locales.
77180
77181 2005-08-16  Bruno Haible  <bruno@clisp.org>
77182
77183         * lib/mbiter.h: New file.
77184
77185 2005-08-16  Bruno Haible  <bruno@clisp.org>
77186
77187         * lib/mbfile.h: New file.
77188
77189 2005-08-16  Bruno Haible  <bruno@clisp.org>
77190
77191         * lib/mbchar.h: New file.
77192         * lib/mbchar.c: New file.
77193
77194 2005-08-16  Bruno Haible  <bruno@clisp.org>
77195
77196         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
77197         the valid ones. Makes the comparison operations transitive:
77198         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
77199         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
77200
77201 2005-08-15  Simon Josefsson  <jas@extundo.com>
77202
77203         * modules/ssize_t (License): Change to 'unlimited'.
77204
77205         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
77206
77207 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77208
77209         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
77210         Add comments for each pending glibc patch.
77211
77212 2005-08-15  Bruno Haible  <bruno@clisp.org>
77213
77214         * lib/regex.h (__restrict_arr): Don't define to __restrict if
77215         __cplusplus is defined.
77216
77217 2005-08-14  Jim Meyering  <jim@meyering.net>
77218
77219         Sync from coreutils.
77220
77221         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
77222         Use the hash-table-based cycle-detection code not just when
77223         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
77224         Reported by James Youngman in
77225         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
77226         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
77227         FTS_TIGHT_CYCLE_CHECK.
77228         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
77229         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
77230         once again.
77231         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
77232         * lib/fts.c (fd_safer): Remove decl.
77233         Include fcntl--.h rather than unistd-safer.h
77234         (fts_safe_changedir): Don't call fd_safer; no longer needed
77235         now that we include fcntl--.h.
77236
77237 2005-08-12  Simon Josefsson  <jas@extundo.com>
77238
77239         * modules/getndelim2: Use ssize_t module.
77240         * modules/getnline: Likewise.
77241         * modules/safe-read: Likewise.
77242         * modules/xreadlink: Likewise.
77243
77244         * modules/ssize_t: New file.
77245
77246 2005-08-12  Simon Josefsson  <jas@extundo.com>
77247
77248         * m4/readline.m4: Look for termcap, curses or ncurses if required.
77249
77250 2005-08-12  Simon Josefsson  <jas@extundo.com>
77251
77252         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77253         ssize_t.
77254
77255 2005-08-12  Simon Josefsson  <jas@extundo.com>
77256
77257         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
77258         readline, getdelim and check_version.
77259         (Support for systems lacking ISO C 99: Sizes of integer types):
77260         Add size_max.
77261
77262 2005-08-12  Bruno Haible  <bruno@clisp.org>
77263
77264         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
77265
77266 2005-08-11  Simon Josefsson  <jas@extundo.com>
77267
77268         * modules/readline: New file.
77269
77270         * modules/strnlen (Files): Add strnlen.h.
77271
77272 2005-08-11  Simon Josefsson  <jas@extundo.com>
77273
77274         * m4/readline.m4: New file.
77275
77276 2005-08-11  Simon Josefsson  <jas@extundo.com>
77277
77278         * lib/readline.h, readline.c: New file.
77279
77280 2005-08-11  Simon Josefsson  <jas@extundo.com>
77281
77282         * doc/gnulib.texi (Initial import, Finishing touches): Mention
77283         gl_AVOID.
77284
77285 2005-08-11  Bruno Haible  <bruno@clisp.org>
77286
77287         * lib/strnlen.h (strnlen): Change parameter name to match comment.
77288
77289 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
77290
77291         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
77292
77293 2005-08-10  Simon Josefsson  <jas@extundo.com>
77294
77295         * tests/test-iconvme.c: New file.
77296
77297 2005-08-10  Simon Josefsson  <jas@extundo.com>
77298
77299         * m4/strnlen.m4: New file.
77300
77301         * m4/strndup.m4: Don't check for strnlen declaration, done in
77302         strnlen.m4.
77303
77304 2005-08-10  Simon Josefsson  <jas@extundo.com>
77305
77306         * lib/strndup.c: Use strnlen.h.
77307
77308         * lib/strnlen.h: New file.
77309
77310 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77311
77312         * README: Typos.
77313
77314 2005-08-02  Simon Josefsson  <jas@extundo.com>
77315
77316         * modules/readline: New file.
77317
77318 2005-08-02  Simon Josefsson  <jas@extundo.com>
77319
77320         * modules/getdelim: New file.
77321
77322         * modules/getline: Rewrite, don't use getndelim2.
77323
77324 2005-08-02  Simon Josefsson  <jas@extundo.com>
77325
77326         * m4/getline.m4: Separate out getdelim stuff into separate module.
77327
77328         * m4/getdelim.m4: New file.
77329
77330 2005-08-02  Simon Josefsson  <jas@extundo.com>
77331
77332         * lib/getline.h, getline.c: Rewrite.
77333
77334         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
77335
77336 2005-07-31  Bruno Haible  <bruno@clisp.org>
77337
77338         * lib/lock.h (gl_lock_initializer): New macro.
77339         (gl_lock_define_initialized): Use it.
77340         (gl_rwlock_initializer): New macro.
77341         (gl_rwlock_define_initialized): Use it.
77342         (gl_recursive_lock_initializer): New macro.
77343         (gl_recursive_lock_define_initialized): Use it.
77344
77345 2005-07-30  Karl Berry  <karl@gnu.org>
77346
77347         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
77348         Report from Ben Pfaff, regarding getopt.
77349
77350 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
77351
77352         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
77353         normal way.
77354         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
77355         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
77356         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
77357         (gl_GETOPT): Use the new macros.  Most of the implementation
77358         is moved to the new macros.  This is for programs like Emacs
77359         that don't want all the functionality of gl_GETOPT.
77360
77361 2005-07-26  Bruno Haible  <bruno@clisp.org>
77362
77363         * m4/lock.m4: Update from GNU gettext.
77364
77365 2005-07-26  Bruno Haible  <bruno@clisp.org>
77366
77367         * lib/lock.h: Update from GNU gettext.
77368         * lib/lock.c: Update from GNU gettext.
77369
77370 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
77371
77372         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
77373         obsolescent AC_TRY_RUN.  Include the default includes files, for
77374         'exit'.
77375
77376 2005-07-24  Bruno Haible  <bruno@clisp.org>
77377
77378         * modules/visibility: New file.
77379         * MODULES.html.sh (Misc): Add visibility.
77380
77381 2005-07-24  Bruno Haible  <bruno@clisp.org>
77382
77383         * m4/visibility.m4: New file.
77384
77385 2005-07-24  Bruno Haible  <bruno@clisp.org>
77386
77387         * doc/visibility.texi: New file.
77388
77389 2005-07-22  Bruno Haible  <bruno@clisp.org>
77390
77391         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
77392         $(ALLOCA_H), redundant through BUILT_SOURCES.
77393         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
77394         redundant through BUILT_SOURCES.
77395         * modules/byteswap (Makefile.am): Remove explicit dependency on
77396         $(BYTESWAP_H), redundant through BUILT_SOURCES.
77397         * modules/fnmatch (Makefile.am): Remove explicit dependency on
77398         $(FNMATCH_H), redundant through BUILT_SOURCES.
77399         * modules/getopt (Makefile.am): Remove explicit dependency on
77400         $(GETOPT_H), redundant through BUILT_SOURCES.
77401         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
77402         redundant through BUILT_SOURCES.
77403         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
77404         redundant through BUILT_SOURCES.
77405         * modules/stdbool (Makefile.am): Remove explicit dependency on
77406         $(STDBOOL_H), redundant through BUILT_SOURCES.
77407         * modules/stdint (Makefile.am): Remove explicit dependency on
77408         $(STDINT_H), redundant through BUILT_SOURCES.
77409         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
77410         Remove explicit dependency on $(SYSEXITS_H).
77411         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
77412
77413 2005-07-18  Simon Josefsson  <jas@extundo.com>
77414
77415         * lib/check-version.c (check_version): Accept identical versions too.
77416
77417 2005-07-18  Bruno Haible  <bruno@clisp.org>
77418
77419         * modules/lock: New file.
77420         * MODULES.html.sh (Multithreading): New section.
77421
77422 2005-07-18  Bruno Haible  <bruno@clisp.org>
77423
77424         * m4/lock.m4: New file, from GNU gettext.
77425
77426 2005-07-18  Bruno Haible  <bruno@clisp.org>
77427
77428         * lib/lock.h: New file, from GNU gettext.
77429         * lib/lock.c: New file, from GNU gettext.
77430
77431 2005-07-18  Bruno Haible  <bruno@clisp.org>
77432
77433         * lib/lock.h (gl_once_t): New type.
77434         (gl_once_define, gl_once): New macros.
77435         * lib/lock.c (fresh_once): New variable.
77436         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
77437         functions.
77438
77439 2005-07-16  Simon Josefsson  <jas@extundo.com>
77440
77441         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
77442         workaround, suggested by Bruno.
77443
77444 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77445
77446         * modules/xalloc (Depends-on): Add xalloc-die.
77447         * modules/xvasprintf (Depends-on): Add xalloc-die.
77448
77449 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77450
77451         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
77452         with a minor change.
77453
77454 2005-07-15  Bruno Haible  <bruno@clisp.org>
77455
77456         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
77457         When using lib/poll.c, define poll as rpl_poll.
77458
77459 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
77460
77461         * modules/argp (Depends-on): Remove unlocked-io.
77462
77463 2005-07-14  Derek Price  <derek@ximbiot.com>
77464
77465         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
77466         for glob symlink bug.
77467
77468 2005-07-14  Bruno Haible  <bruno@clisp.org>
77469
77470         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
77471         Instead, test for *_unlocked function declarations directly.
77472
77473 2005-07-11  Simon Josefsson  <jas@extundo.com>
77474
77475         * modules/size_max: New file.
77476
77477         * modules/xsize: Depend on size_max module for size_max.m4.
77478
77479 2005-07-11  Simon Josefsson  <jas@extundo.com>
77480
77481         * lib/size_max.h: New file.
77482
77483 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
77484
77485         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
77486         copyright symbol and the year.
77487         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
77488         (version_etc_va): Use parameterized copyright notice.
77489         Reword to conform to the current GNU coding standards.
77490
77491 2005-07-11  Karl Berry  <karl@gnu.org>
77492
77493         * doc/gnulib.texi (Quoting): new node.
77494         (Initial import): more info, from Patrice.
77495
77496 2005-07-11  Bruno Haible  <bruno@clisp.org>
77497
77498         * gnulib-tool (func_usage): Document option --avoid.
77499         (Command line options): Handle --avoid.
77500         (func_acceptable): New function.
77501         (func_modules_transitive_closure): Use it.
77502
77503 2005-07-11  Bruno Haible  <bruno@clisp.org>
77504
77505         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
77506         Reported by Jim Meyering.
77507
77508 2005-07-10  Bruno Haible  <bruno@clisp.org>
77509
77510         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
77511         Needed when size_t is smaller than 'unsigned int'.
77512         Reported by Paul Eggert.
77513
77514 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77515
77516         * modules/argp (Depends-on): Add unlocked-io
77517
77518 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77519
77520         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
77521         block of defines.
77522
77523 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77524
77525         * config/srclist.txt: Comment out regcomp.c, since we have a porting
77526         fix now.
77527
77528 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
77529         and Paul Eggert  <eggert@cs.ucla.edu>
77530
77531         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
77532         in wint_t, not wchar_t.  Remove now-unnecessary cast.
77533
77534 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77535
77536         * modules/regex (Files): Add lib/regex_internal.c,
77537         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
77538         (Depends-on): Add extensions.
77539         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
77540
77541 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77542
77543         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
77544         pathconf.
77545         * m4/same.m4 (gl_SAME): Likewise.
77546         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
77547
77548         * m4/regex.m4: Adjust to new libc regex implementation.
77549         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
77550         all the .c and .h parts of (the new) regex.
77551         Quote the m4 stuff better.
77552         Check for RE_ICASE bug of old gnulib.
77553         Check for REG_STARTEND of recent libc.
77554         Rename local variables from jm_* to gl_*.
77555         Quote operand of "test -f".
77556         Say "recent enough" version of libc, not "version 2".
77557         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
77558         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
77559         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
77560         Remove check for btowc, isascii.
77561         Require AM_LANGINFO_CODESET.
77562
77563 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77564
77565         * lib/regex.c, regex.h: Sync from libc.
77566         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
77567         * lib/regexec.c:
77568         New files, synced from libc, except that regex_internal.h
77569         currently has a small porting fix.
77570
77571 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77572
77573         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
77574         regex_internal.c, regexec.c.
77575         Add regex_internal.h too, but as a comment, since the libc version
77576         is currently broken in gnulib mode.
77577
77578 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77579
77580         Support programs like Emacs that use gnulib but not gettext.
77581         * MODULES.html.sh (Internationalization functions): Add gettext-h.
77582         * modules/gettext-h: New file.
77583         * modules/gettext (Files): Remove lib/gettext.h.
77584         (Depends-on): Add gettext-h.
77585         (Makefile.am): Remove lib_SOURCES.
77586         * modules/argmatch, modules/c-stack, modules/closeout:
77587         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
77588         * modules/execute, modules/file-type, modules/getaddrinfo:
77589         * modules/getopt, modules/human, modules/javacomp:
77590         * modules/javaexec, modules/mkdir-p, modules/obstack:
77591         * modules/openat, modules/pagealign_alloc, modules/pipe:
77592         * modules/quotearg, modules/regex, modules/rpmatch:
77593         * modules/unicodeio, modules/userspec, modules/version-etc:
77594         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
77595         * modules/xsetenv:
77596         Depend on gettext-h, not gettext.
77597
77598 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77599
77600         * gnulib-tool (func_import): Add support for 'public domain' license.
77601         * modules/alloca, modules/atexit, modules/memmove:
77602         Now public domain, not GPL.
77603         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
77604         * modules/realloc, modules/strerror, modules/strtod:
77605         Now LGPL, not GPL.
77606
77607 2005-07-05  Bruno Haible  <bruno@clisp.org>
77608
77609         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
77610         autoconf CVS. Needed for mingw.
77611
77612 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77613
77614         Remove the dependency of the strftime module on the tzset module.
77615         * modules/strftime (Depends-on): Remove dependency on tzset.
77616
77617 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77618
77619         Remove the dependency of the strftime module on the tzset module.
77620         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
77621         gl_FUNC_TZSET_CLOBBER.
77622
77623 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77624
77625         Remove the dependency of the strftime module on the tzset module.
77626         * lib/strftime.c (my_strftime)
77627         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
77628         Copy the input structure, to work around some of the bug with
77629         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
77630         Solaris releases, you should also use the tzset module, but we won't
77631         require it as a dependency any more since we don't want LGPLed code
77632         to depend on GPLed code.
77633
77634 2005-07-02  Jim Meyering  <jim@meyering.net>
77635
77636         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
77637         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
77638         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
77639         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
77640
77641 2005-07-02  Jim Meyering  <jim@meyering.net>
77642
77643         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77644
77645 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77646
77647         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77648         declares only 'struct timespec;' (!).
77649
77650 2005-07-01  Jim Meyering  <jim@meyering.net>
77651
77652         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77653         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77654         * lib/save-cwd.c, tempname.c:
77655         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77656         and don't include <sys/file.h>).
77657
77658 2005-06-29  Jim Meyering  <jim@meyering.net>
77659
77660         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77661         type name.  Use the variable name instead.
77662         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77663         Likewise.
77664
77665 2005-06-28  Simon Josefsson  <jas@extundo.com>
77666
77667         * modules/check-version (Files): Add check-version.m4.
77668
77669 2005-06-28  Simon Josefsson  <jas@extundo.com>
77670
77671         * m4/check-version.m4: New file, suggested by Jim Meyering
77672         <jim@meyering.net>.
77673
77674 2005-06-28  Simon Josefsson  <jas@extundo.com>
77675
77676         * lib/check-version.h, lib/check-version.c: New files.
77677
77678 2005-06-28  Simon Josefsson  <jas@extundo.com>
77679
77680         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77681         collision with global variable.  Better indentation.  Don't
77682         increment buffer pointer beyond buffer end.  Based on comments
77683         from Paul Eggert <eggert@cs.ucla.edu>.
77684
77685         * lib/base64.h: Indent.
77686
77687 2005-06-28  Simon Josefsson  <jas@extundo.com>
77688
77689         * doc/gnulib.texi (Library version handling): New section.
77690
77691 2005-06-28  Jim Meyering  <jim@meyering.net>
77692
77693         * check-module (find_included_lib_files): Hard-code another
77694         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
77695         but modules/fts-lgpl (correctly) does not list those files.
77696
77697         * modules/canonicalize (Files): Add lib/pathmax.h.
77698
77699 2005-06-25  Simon Josefsson  <jas@extundo.com>
77700
77701         * modules/check-version: New file.
77702
77703 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
77704
77705         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
77706         initializer of struct addrinfo, as an indication that we don't
77707         care how many members the structure has.
77708
77709 2005-06-24  Derek Price  <derek@ximbiot.com>
77710         and Bruno Haible  <bruno@clisp.org>
77711
77712         Remove stat module & update lstat.
77713         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77714         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77715         * m4/stat.m4: Remove this file.
77716
77717 2005-06-24  Derek Price  <derek@ximbiot.com>
77718         and Bruno Haible  <bruno@clisp.org>
77719
77720         Remove stat module & update lstat.
77721         * lib/stat.c: Remove this file...
77722         (slash_aware_lstat): ...moving this content and its support...
77723         * lib/lstat.c (rpl_lstat): ...into here.
77724         * lib/lstat.h: New file.
77725
77726 2005-06-24  Derek Price  <derek@ximbiot.com>
77727         and Bruno Haible  <bruno@clisp.org>
77728
77729         Remove stat module & update lstat.
77730         * config/srclist.txt (libc sources): Remove stat.
77731
77732 2005-06-24  Derek Price  <derek@ximbiot.com>
77733         and Bruno Haible  <bruno@clisp.org>
77734
77735         Remove stat module & update lstat.
77736         * MODULES.html.sh (stat): Remove.
77737         * MODULES.html: Regenerated.
77738         * modules/lstat (Description): Correct function name.
77739         (Files): Add "lstat.h".
77740         (Depends-on): Remove stat, add xalloc, stat-macros.
77741         * modules/stat: Remove this file.
77742         (Include): Add "lstat.h", remove <sys/stat.h>.
77743
77744 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77745
77746         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
77747         (ranged_convert): Don't save conversion in a temporary struct.
77748         This causes a warning with GCC 4.0.0, and anyway in the typical
77749         case it's not worth the extra 100 bytes or so of code.
77750         (ranged_convert, __mktime_internal): When calling a function via a
77751         pointer P, use P () rather than (*P) (), as we now assume C89 or
77752         better.
77753
77754 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77755
77756         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
77757         "who -r" failed to give output.  Problem reported by Tim Waugh.
77758
77759         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77760         (xcalloc): Use it to avoid needless tests.
77761         Problem reported by Jim Meyering.
77762
77763 2005-06-20  Derek Price  <derek@ximbiot.com>
77764
77765         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77766         unnecessary for Autoconfs > 2.59c.
77767
77768 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77769
77770         * lib/argp.h (__option_is_short): Check upper limit of
77771         __key. Isprint() requires its argument to have the value
77772         of an unsigned char or EOF.
77773
77774 2005-06-16  Jim Meyering  <jim@meyering.net>
77775
77776         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77777         when either N or S is zero.
77778
77779 2005-06-16  Derek Price  <derek@ximbiot.com>
77780
77781         * m4/bison.m4: Declare YACC & YFLAGS precious.
77782
77783 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77784
77785         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77786         multibyte string or pattern, fall back on unibyte matching.
77787         Problem reported by James Youngman.
77788
77789 2005-06-08  Bruno Haible  <bruno@clisp.org>
77790
77791         * modules/csharpcomp: New file.
77792         * MODULES.html.sh (C#): Add csharpcomp.
77793
77794 2005-06-08  Bruno Haible  <bruno@clisp.org>
77795
77796         * m4/csharpcomp.m4: New file, from GNU gettext.
77797
77798 2005-06-08  Bruno Haible  <bruno@clisp.org>
77799
77800         * lib/csharpcomp.h: New file, from GNU gettext.
77801         * lib/csharpcomp.c: New file, from GNU gettext.
77802         * lib/csharpcomp.sh.in: New file, from GNU gettext.
77803
77804 2005-06-08  Bruno Haible  <bruno@clisp.org>
77805
77806         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
77807         warning on mingw.
77808
77809 2005-06-07  Derek Price  <derek@ximbiot.com>
77810
77811         Sync from CVS.
77812         * lib/glob_.h: Indent nested #ifdef.
77813
77814 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77815
77816         Sync from coreutils.
77817         Use "file name" when talking about file names, instead of "filename"
77818         or "path", as per the GNU coding standards.
77819         * lib/mkdir-p.c: Renamed from makepath.c.
77820         (make_dir_parents): Renamed from make_path.  All callers changed.
77821         * lib/mkdir-p.h: Likewise.  All includers changed.
77822         * lib/filenamecat.c: Renamed from path-concat.c.
77823         (file_name_concat): Renamed from path_concat.  All callers changed.
77824         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77825         * lib/filenamecat.h: Likewise.  All includers changed.
77826         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77827         in comments or local variable names.
77828         * lib/basename.c: Likewise.
77829         * lib/canonicalize.c, canonicalize.h: Likewise.
77830         * lib/dirname.c, dirname.h: Likewise.
77831         * lib/euidaccess.c: Likewise.
77832         * lib/exclude.c: Likewise
77833         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77834         * lib/fsusage.c, fsuage.h: Likewise.
77835         * lib/fts.c, fts_.h: Likewise.
77836         * lib/getcwd.c: Likewise.
77837         * lib/getloadavg.c: Likewise.
77838         * lib/mkstemp.c: Likewise.
77839         * lib/mountlist.c, mountlist.h: Likewise.
77840         * lib/openat.c, openat.h: Likewise.
77841         * lib/readlink-stub.c: Likewise.
77842         * lib/readutmp.c, readutmp.h: Likewise.
77843         * lib/rename.c: Likewise.
77844         * lib/rmdir.c: Likewise.
77845         * lib/same.c: Likewise.
77846         * lib/savedir.c: Likewise.
77847         * lib/stripslash.c: Likewise.
77848         * lib/tempname.c: Likewise.
77849         * lib/xreadlink.c: Likewise.
77850         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77851         All uses changed.
77852         * lib/exclude.h: Likewise.
77853
77854         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77855         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77856         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77857         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77858         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77859         files have been getting away with it for years (MORE/BSD 4.3
77860         is extinct now).
77861         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77862         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77863
77864         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77865         Define to 256, not 255, as per modern POSIX.
77866
77867 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77868
77869         Sync from coreutils.
77870         Use "file name" when talking about file names, instead of "filename"
77871         or "path", as per the GNU coding standards.
77872         * MODULES.html.sh: mkdir-p renamed from makepath.
77873         filenamecat renamed from path-concat.
77874         * modules/filenamecat: Renamed from modules/path-concat.
77875         (Files): filenamecat.h and filenamecat.c renamed from
77876         path-concat.h and path-concat.c.
77877         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77878         (Include): filenamecat.h, not path-concat.h.
77879         * modules/mkdir-p: Renamed from modules/makepath.
77880         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77881         makepath.c.
77882         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77883         (Include): mkdir-p.h, not makepath.h.
77884
77885 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77886
77887         Sync from coreutils.
77888         * m4/mkdir-p.m4: Renamed from makepath.m4.
77889         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77890         Rename files from makepath.c to mkdir-p.c, and from
77891         makepath.h to mkdir-p.h.
77892         * m4/filenamecat.m4: Renamed from path-concat.m4.
77893         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77894         Rename files from path-concat.c to filenamecat.c,
77895         and from path-concat.h to filenamecat.h.
77896         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77897         "file name" in local variables or comments.
77898         * m4/rename.m4: Likewise.
77899
77900 2005-06-01  Bruno Haible  <bruno@clisp.org>
77901
77902         * modules/csharpexec: New file.
77903         * MODULES.html.sh (C#): New section.
77904
77905 2005-06-01  Bruno Haible  <bruno@clisp.org>
77906
77907         * m4/csharp.m4: New file, from GNU gettext.
77908         * m4/csharpexec.m4: New file, from GNU gettext.
77909
77910 2005-06-01  Bruno Haible  <bruno@clisp.org>
77911
77912         * lib/csharpexec.h: New file, from GNU gettext.
77913         * lib/csharpexec.c: New file, from GNU gettext.
77914         * lib/csharpexec.sh.in: New file, from GNU gettext.
77915
77916 2005-05-31  Derek Price  <derek@ximbiot.com>
77917             Paul Eggert  <eggert@cs.ucla.edu>
77918
77919         Sync from cvs.
77920         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77921
77922 2005-05-31  Derek Price  <derek@ximbiot.com>
77923             Paul Eggert  <eggert@cs.ucla.edu>
77924
77925         Sync from cvs.
77926         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77927
77928 2005-05-29  Derek Price  <derek@ximbiot.com>
77929
77930         * config/srclist.txt (glob_.h, glob.c): Add these files.
77931
77932 2005-05-29  Derek Price  <derek@ximbiot.com>
77933
77934         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77935         * modules/glob: New file.
77936         * modules/getlogin_r: Add link to POSIX spec in description.
77937
77938 2005-05-29  Derek Price  <derek@ximbiot.com>
77939             Paul Eggert  <eggert@cs.ucla.edu>
77940
77941         * m4/glob.m4: New file.
77942
77943 2005-05-29  Derek Price  <derek@ximbiot.com>
77944             Paul Eggert  <eggert@cs.ucla.edu>
77945
77946         * lib/glob_.h, lib/glob.c: New files.
77947
77948 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77949
77950         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77951         * modules/fts-lgpl (Depends-on): Remove gettext.
77952
77953 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77954
77955         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77956         and don't require gt_INTTYPES_PRI.
77957
77958 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77959
77960         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77961
77962         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77963         the configuration hassle isn't worth it.
77964         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77965         (LONGEST_MODIFIER, PRIuMAX): Remove.
77966
77967 2005-05-27  Bruno Haible  <bruno@clisp.org>
77968
77969         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77970
77971 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77972
77973         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77974         _POSIX_PTHREAD_SEMANTICS for Solaris.
77975
77976 2005-05-25  Derek Price  <derek@ximbiot.com>
77977
77978         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77979
77980 2005-05-25  Derek Price  <derek@ximbiot.com>
77981             Paul Eggert  <eggert@cs.ucla.edu>
77982
77983         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77984         * lib/getlogin_r.c, getlogin_r.h: New files.
77985
77986 2005-05-25  Bruno Haible  <bruno@clisp.org>
77987             Derek Price  <derek@ximbiot.com>
77988
77989         * lib/getlogin_r.h: Simplify API documentation.
77990
77991 2005-05-23  Derek Price  <derek@ximbiot.com>
77992
77993         * modules/minmax (Files): Add m4/minmax.m4.
77994         (configure.ac): Add gl_MINMAX.
77995
77996 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77997
77998         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77999         so that unistd-safer.h (GPL'ed code) need not be included.
78000
78001 2005-05-22  Bruno Haible  <bruno@clisp.org>
78002
78003         * m4/minmax.m4: New file.
78004         Based on a patch by Derek Price <derek@ximbiot.com>.
78005
78006 2005-05-22  Bruno Haible  <bruno@clisp.org>
78007
78008         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
78009         (INT64_MIN): Fix definition.
78010         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
78011
78012         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
78013         NEED_SIGNED_INT_TYPES.
78014
78015         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
78016         HAVE_SYSTEM_INTTYPES.
78017
78018 2005-05-22  Bruno Haible  <bruno@clisp.org>
78019
78020         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
78021         Also include <sys/param.h> if it defines MIN, MAX.
78022         Based on a patch by Derek Price <derek@ximbiot.com>.
78023
78024 2005-05-21  Jim Meyering  <jim@meyering.net>
78025
78026         * modules/fts (Files): Add m4/inttypes-pri.m4.
78027         (Depends-on): Add lstat and remove gettext.  Alphabetize.
78028
78029 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78030
78031         New fts module.
78032         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
78033         (setup_dir, free_dir): New functions.
78034         (enter_dir, leave_dir): Define trivial
78035         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
78036         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
78037         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
78038         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
78039         Move to fts-cycle.c.
78040         (fts_open): Use setup_dir.
78041         (fts_close): Use free_dir.
78042         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
78043         This adds a label and some gotos, but the alternatives were messier.
78044         Check for memory allocation failure when entering a dir.
78045         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
78046         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
78047         (FTS): New member fts_cycle, that is a union that contains the
78048         old active_dir_ht and cycle_state.  All uses changed to mention
78049         fts_cycle.ht and fts_cycle.state.
78050         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
78051         fts.c, with the following changes:
78052         (setup_dir, free_dir): New functions.
78053         (enter_dir): Now returns bool.  Return true if successful, false
78054         if memory exhausted.  All callers changed.
78055         Do not bother partly cleaning up on
78056         memory allocation failure; that is free_dir's job.
78057         However, free ad if hash_insert fails, to avoid memory leak.
78058         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
78059         fts->fts_options to see which union member to use.
78060
78061 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78062
78063         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
78064         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
78065
78066 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78067
78068         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
78069
78070 2005-05-20  Jim Meyering  <jim@meyering.net>
78071
78072         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
78073         Now a macro, to pacify GCC.
78074
78075 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78076
78077         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
78078         of -1.
78079
78080 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78081
78082         * lib/chown.c (rpl_chown): Return -1 on failure.
78083
78084 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78085
78086         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
78087         Don't check for stddef.h.
78088         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
78089         don't use its results.
78090         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
78091         since we include them unconditionally.  Don't require
78092         AM_STDBOOL_H, since stdbool is a prerequisite.
78093         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
78094         since we assume C89 or better.
78095         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
78096         as we don't use their results.
78097         Don't check for fchdir, memmove, memset, strrchr, as we use
78098         them unconditionally.
78099         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
78100         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
78101
78102 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78103
78104         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
78105         Include <stddef.h> unconditionally, since we assume C89 now.
78106         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
78107         * lib/fts.c: Include fts_.h first, to check interface.
78108         Do not include intprops.h; no longer needed.
78109         Include cycle-check.h and hash.h, since fts_.h no longer does.
78110         Remove unnecessary casts of closedir to void.
78111         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
78112         decide whether to decrement nlinks.
78113         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
78114         (FTS): Use struct hash_table * instead of Hash_table, so that
78115         we no longer need to include hash.h here.
78116
78117 2005-05-18  Jim Meyering  <jim@meyering.net>
78118
78119         * modules/dirfd (License): Change to LGPL.  Most of the code
78120         is already in the public domain.
78121
78122 2005-05-18  Jim Meyering  <jim@meyering.net>
78123
78124         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
78125         Reported by Yoann Vandoorselaere.
78126
78127 2005-05-17  Jim Meyering  <jim@meyering.net>
78128
78129         * m4/fts.m4: New file, from coreutils.
78130
78131 2005-05-17  Jim Meyering  <jim@meyering.net>
78132
78133         * lib/fts.c, lib/fts_.h: New files, from coreutils.
78134
78135 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78136
78137         Sync from coreutils.
78138         * m4/unlinkdir.m4: New file.
78139
78140 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78141
78142         Sync from coreutils.
78143         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
78144         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
78145         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
78146         White space changes only.
78147         * lib/makepath.c (make_path): Port to hosts where leading "//" is
78148         special.
78149         * lib/yesno.c: Include getline.h, not ctype.h.
78150         (yesno): Don't remove leading white space; POSIX doesn't allow it.
78151         Use getline to remove arbitrary restriction on response length.
78152
78153 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78154
78155         * config/srclist-update: Spell out "Street" in FSF postal
78156         mail address; this is the style the FSF seems to prefer.
78157
78158         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
78159         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
78160         this updates FSF postal mail address.
78161
78162         Sync from coreutils.
78163         * modules/unlinkdir: New file.
78164         * modules/yesno (Depends-on): Add getline.
78165         * MODULES.html.sh (File system functions): Add unlinkdir.
78166
78167 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78168
78169         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
78170         lib/strsep.h:
78171         Change the initial comment to refer to GPL, not LGPL.
78172         gnulib-tool will change it to LGPL as needed.
78173
78174         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
78175         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
78176         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
78177         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
78178         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
78179         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
78180         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
78181         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
78182         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
78183         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
78184         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
78185         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
78186         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
78187         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
78188         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
78189         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
78190         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
78191         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
78192         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
78193         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
78194         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
78195         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
78196         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
78197         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
78198         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
78199         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
78200         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
78201         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
78202         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
78203         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
78204         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
78205         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
78206         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
78207         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
78208         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
78209         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
78210         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
78211         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
78212         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
78213         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
78214         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
78215         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
78216         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
78217         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
78218         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
78219         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
78220         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
78221         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
78222         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
78223         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
78224         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78225         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
78226         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
78227         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
78228         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
78229         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
78230         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
78231         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
78232         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
78233         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
78234         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
78235         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
78236         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
78237         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
78238         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
78239         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
78240         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
78241         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
78242         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
78243         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
78244         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
78245         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
78246         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
78247         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
78248         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
78249         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
78250         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
78251         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
78252         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
78253         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
78254         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
78255         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
78256         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
78257         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
78258         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
78259         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
78260         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
78261         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
78262         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
78263         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
78264         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
78265         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
78266         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
78267         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
78268         lib/yesno.c, lib/yesno.h:
78269         Update FSF postal mail address.
78270
78271 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78272
78273         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
78274         tests/test-memmem.c, tests/test-stpncpy.c:
78275         Update FSF postal mail address.
78276
78277 2005-05-13  Bruno Haible  <bruno@clisp.org>
78278
78279         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
78280         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
78281         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
78282         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
78283         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
78284         Add support for 64-bit integers in the MSVC compiler.
78285
78286 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78287
78288         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
78289
78290 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
78291
78292         * gnulib-tool (func_import): Sort and uniquify recommended includes.
78293
78294 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
78295
78296         * doc/getdate.texi (General date syntax): Don't say that date
78297         date --iso-8601=ns generates acceptable dates; it doesn't yet.
78298         Problem reported by Nic Ferrier.
78299
78300 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78301
78302         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
78303         specified in ai_socktype. Fix invalid ai_protocol
78304         check. ai_protocol is usually set to 0 or depending on
78305         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
78306         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
78307         ai_socktype / ai_protocol in the returned addrinfo structure.
78308
78309 2005-05-10  Simon Josefsson  <jas@extundo.com>
78310
78311         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
78312         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78313
78314 2005-05-10  Karl Berry  <karl@gnu.org>
78315
78316         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
78317         (from http://www.gnu.org/licenses).
78318         * doc/COPYING.LIB: also rename to COPYING.LESSER.
78319         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
78320         fdl.texi suffices.
78321
78322 2005-05-10  Karl Berry  <karl@gnu.org>
78323
78324         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
78325         (COPYING.DOC): remove.
78326
78327         * config/srclist-update: new FSF address.
78328
78329 2005-05-10  Derek Price  <derek@ximbiot.com>
78330
78331         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
78332         possible.
78333
78334 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78335             Bruno Haible  <bruno@clisp.org>
78336
78337         * modules/inet_ntop: New file.
78338         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78339         inet_ntop.
78340
78341 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78342             Bruno Haible  <bruno@clisp.org>
78343
78344         * m4/inet_ntop.m4: New file.
78345
78346 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78347             Bruno Haible  <bruno@clisp.org>
78348
78349         * lib/inet_ntop.h: New file.
78350         * lib/inet_ntop.c: New file, from glibc with modifications.
78351
78352 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
78353
78354         * modules/time_r (License): Change to LGPL.
78355         * modules/extensions (License): Change to LGPL.  Actually,
78356         the license is more permissive than that, but currently gnulib-tool
78357         doesn't know how to handle more-permissive licenses.
78358
78359         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
78360         Problem reported by Dave Love.
78361
78362 2005-05-08  Jim Meyering  <jim@meyering.net>
78363
78364         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
78365         blank.
78366
78367 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78368
78369         * modules/argmatch (Depends-on): Add stdbool.
78370         * modules/backupfile (Depends-on): Likewise.
78371         * modules/chdir-long (Depends-on): Likewise.
78372         * modules/closeout (Depends-on): Likewise.
78373         * modules/cycle-check (Depends-on): Likewise.
78374         * modules/dirname (Depends-on): Likewise.
78375         * modules/fnmatch (Depends-on): Likewise.
78376         * modules/fsusage (Depends-on): Likewise.
78377         * modules/fwriteerror (Depends-on): Likewise.
78378         * modules/getcwd (Depends-on): Likewise.
78379         * modules/getloadavg (Depends-on): Likewise.
78380         * modules/hard-locale (Depends-on): Likewise.
78381         * modules/makepath (Depends-on): Likewise.
78382         * modules/mountlist (Depends-on): Likewise.
78383         * modules/nanosleep (Depends-on): Likewise.
78384         * modules/posixtm (Depends-on): Likewise.
78385         * modules/quotearg (Depends-on): Likewise.
78386         * modules/readtokens (Depends-on): Likewise.
78387         * modules/readtokens0 (Depends-on): Likewise.
78388         * modules/readutmp (Depends-on): Likewise.
78389         * modules/save-cwd (Depends-on): Likewise.
78390         * modules/strftime (Depends-on): Likewise.
78391         * modules/userspec (Depends-on): Likewise.
78392         * modules/utimecmp (Depends-on): Likewise.
78393         * modules/xgetcwd (Depends-on): Likewise.
78394         * modules/xnanosleep (Depends-on): Likewise.
78395         * modules/xstrtod (Depends-on): Likewise.
78396         * modules/yesno (Depends-on): Likewise.
78397
78398 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
78399
78400         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
78401         needless checks.
78402
78403 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78404
78405         Merge from coreutils.  Among other things,
78406         add bulletproofing for cases where stdin, stdout, or stderr are closed.
78407         * lib/fd-safer.c: New file.
78408         * lib/fcntl-safer.h, open-safer.c: Remove.
78409         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
78410         * lib/dup-safer.c: Include unistd-safer.h first.
78411         Don't include errno.h.
78412         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
78413         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
78414         * lib/file-type.c: Rely on file-type.h change.
78415         * lib/getloadavg.c: Include unistd-safer.h.
78416         (getloadavg): Use safer open.
78417         * lib/getusershell.c: Include "stdio-safer.h".
78418         (getusershell): Use safer fopen.
78419         * lib/long-options.c (long_options): Use NULL rather than 0.
78420         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
78421         'free'.
78422         * lib/modechange.c: Likewise.
78423         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
78424         (MODE_DONE): New constant.
78425         (struct mode_change): Remove 'next' member.
78426         (make_node_op_equals): New function; like the old one of the
78427         same name, except it allocates an array.
78428         (mode_compile, mode_create_from_ref): Use it.
78429         (mode_compile): Allocate result as an array, not a linked list.
78430         Parse octal string ourself, so that we catch mistakes like "+0".
78431         (mode_adjust): Arg is an array, not a linked list.
78432         * lib/modechange.c: Include stat-macros.h, xalloc.h.
78433         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
78434         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
78435         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
78436         Remove.  This is now stat-macros.h's job.
78437         (talloc): Remove.  All callers replaced by xalloc, so that
78438         our invokers don't have to worry about reporting memory failures.
78439         (make_node_op_equals): Remove.
78440         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78441         New constants.
78442         (struct mode_change): Moved here from modechange.h.
78443         (mode_append_entry): Remove.
78444         (mode_compile): Remove MASKED_OPS arg, since it encouraged
78445         apps to have incorrect behavior.  Use simpler algorithm for head
78446         and tail.  Don't futz with umask; that's now the job of mode_adjust.
78447         Detect more invalid usages rather than having somewhat-random behavior.
78448         Don't insert an "a=" action, as that leads to incorrect behavior.
78449         (mode_compile, mode_create_from_ref): Return NULL on error instead
78450         of an enum, since now there's only one way to have an error.  All
78451         callers changed.
78452         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
78453         at the correct time.  Simplify calculation of "+u" and its ilk.
78454         Don't mishandle "+X".
78455         (mode_free): Remove "register" and localize decls.
78456         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78457         (struct mode_change): Move to modechange.c; callers don't
78458         need to see this stuff.
78459         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
78460         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
78461         (mode_change, mode_adjust): Reflect the new signatures noted above.
78462         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
78463         that might redefine system include files.
78464         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
78465         (my_usleep): Use NULL rather than (void *) 0.
78466         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
78467         Use siginterrupt to specify that system calls should be interrupted.
78468         (rpl_nanosleep): Move initialization of suspended closer to call of
78469         my_usleep.
78470         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
78471         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
78472         (desirable_utmp_entry): New function.
78473         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
78474         using x2nrealloc, to simplify logic.
78475         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
78476         size calculation.  Do not assume utmp file is a regular file.
78477         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
78478         (READ_UTMP_CHECK_PIDS): New constant.
78479         * lib/save-cwd.c: Include unistd-safer.h.
78480         (save_cwd): Use fd_safer.
78481         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
78482         [!_LIBC] Include "stat-macros.h" instead.
78483         * lib/unistd-safer.h (fd_safer): New decl.
78484
78485 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78486
78487         * modules/getloadavg (Depends-on): Add unistd-safer.
78488         * modules/getusershell (Depends-on): Add stdio-safer.
78489         * modules/lstat (Depends-on): Remove xalloc.
78490         * modules/mkstemp (Depends-on): Add stat-macros.
78491         * modules/modechange (Depends-on): Remove xstrtol.
78492         Add stat-macros, xalloc.
78493         * modules/save-cwd (Depends-on): Add unistd-safer.
78494         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
78495         * modules/unistd-safer (Files): Add lib/fd-safer.c
78496         (Makefile.am): Remove lib_SOURCES.
78497
78498         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
78499         Remove fcntl-safer; unistd-safer supersedes it.
78500
78501 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78502
78503         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
78504         AC_HEADER_STAT.
78505         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
78506         (gl_PREREQ_CHOWN): Remove.
78507         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
78508         it.  Don't require AC_HEADER_STAT.
78509         (gl_PREREQ_LSTAT): Remove.
78510         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
78511         Don't require AC_HEADER_STAT.
78512         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
78513         (gl_PREREQ_RMDIR): Remove.
78514         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
78515         mention stat-macros.h or AC_HEADER_STAT, since we'll make
78516         the stat-macros module a prerequisite.
78517         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
78518         * m4/filemode.m4 (gl_FILEMODE): Likewise.
78519         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
78520         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
78521         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
78522         variable names.
78523         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
78524         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
78525         variable prefixes.
78526         * m4/fcntl-safer.m4: Remove.
78527         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
78528         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
78529         Invoke gl_PREREQ_FD_SAFER.
78530         (gl_PREREQ_FD_SAFER): New macro.
78531         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
78532         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
78533         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
78534         Remove duplicate call to AC_LIBOBJ(readutmp).
78535         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
78536
78537         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
78538         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
78539
78540 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78541
78542         * MODULES.html.sh (Misc): Add byteswap.
78543
78544 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78545
78546         * modules/getcwd (Depends-on): Add extensions.
78547         * modules/openat (Depends-on): Likewise.
78548
78549 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78550
78551         * modules/byteswap: New file.
78552
78553 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78554
78555         * m4/byteswap.m4: New file.
78556
78557 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78558
78559         * lib/byteswap_.h: New file.
78560
78561 2005-04-25  Karl Berry  <karl@gnu.org>
78562
78563         * m4/gettext.m4: Update from GNU gettext 0.14.4.
78564
78565 2005-04-25  Albert Chin  <china@thewrittenword.com>
78566
78567         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
78568         Toolkit C bug.
78569
78570 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
78571
78572         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
78573         (func_ln_if_changed): Remove forcibly for no error message
78574         in case file does not exist.
78575
78576 2005-04-19  Simon Josefsson  <jas@extundo.com>
78577
78578         * gnulib-tool (Options): Make --symlink mean --symbolic.
78579
78580 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
78581
78582         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
78583
78584 2005-04-16  Simon Josefsson  <jas@extundo.com>
78585
78586         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
78587
78588 2005-04-15  Simon Josefsson  <jas@extundo.com>
78589
78590         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
78591
78592 2005-04-15  Simon Josefsson  <jas@extundo.com>
78593
78594         * gnulib-tool: Rename --symlink to --symbolic.
78595
78596 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
78597
78598         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
78599         symbolic links to files instead of copying/moving.  Add --aux-dir,
78600         specifying directory relative --dir where auxiliary build tools
78601         are placed.
78602
78603 2005-04-14  Bruno Haible  <bruno@clisp.org>
78604
78605         * modules/allocsa (License): Change to LGPL.
78606         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
78607
78608 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78609
78610         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
78611         that "UTC +1 second" continues to work.  Problem reported
78612         by Dmitry V. Levin.
78613         (relunit_snumber): New rule.
78614         (relunit): Use it.
78615
78616 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78617
78618         * lib/getdate.y (universal_time_zone_table): New constant.
78619         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
78620         universal_time_zone_table.
78621         (lookup_zone): Prefer universal_time_zone_table to
78622         local_time_zone_table, so that "GMT" time stamps are allowed in
78623         London during the summer.  Problem reported by Ian Abbott.
78624
78625 2005-04-12  Jim Meyering  <jim@meyering.net>
78626
78627         * lib/human.c (humblock): Set *options even when returning due to
78628         xstrtoumax conversion failure.  Thanks to a used-uninitialized
78629         warning from gcc-4.
78630
78631 2005-04-09  Jim Meyering  <jim@meyering.net>
78632
78633         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
78634         -Wuninitialized: initialize tm0.tm_year.
78635
78636 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
78637
78638         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
78639         count, since there's no maximum.  All uses changed.
78640         Add member dsts_seen.
78641         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
78642         not being INT_MAX.
78643         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78644         Use pc_rels_seen to decide whther a date is absolute.
78645
78646         * lib/getdate.y (number): Don't overwrite year.
78647         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78648         check.
78649
78650 2005-04-02  Simon Josefsson  <jas@extundo.com>
78651
78652         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78653         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78654
78655 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78656
78657         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78658         where no absolute path name can be longer than PATH_MAX.
78659
78660 2005-03-27  Jim Meyering  <jim@meyering.net>
78661
78662         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78663
78664 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78665
78666         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78667         "one's complement" -> "ones' complement" in comment, as per Knuth.
78668         "value of type" -> "type or expression" in comment.
78669         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78670
78671 2005-03-26  Jim Meyering  <jim@meyering.net>
78672
78673         Comment nits.
78674         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78675         Correct typos: s/or/of/.
78676
78677 2005-03-26  Jim Meyering  <jim@meyering.net>
78678
78679         * modules/check-include-files: Move to ../ and rename to...
78680         * check-module: ...this.
78681
78682 2005-03-25  Jim Meyering  <jim@meyering.net>
78683
78684         * modules/xvasprintf (Files): Add xalloc.h.
78685
78686 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78687
78688         * modules/gettext (Files): config/config.rpath ->
78689         build-aux/config.rpath
78690         * modules/iconv (Files): Likewise.
78691         Problem reported by Oskar Liljeblad.
78692
78693 2005-03-23  Jim Meyering  <jim@meyering.net>
78694
78695         * modules/check-include-files: New script to check for
78696         missing dependencies, multiple includes, etc.
78697
78698         * modules/c-strtold (Depends-on): Add xalloc.
78699         * modules/c-strtod (Depends-on): Add xalloc.
78700         * modules/hash (Depends-on): Add xalloc.
78701         (Files): Remove lib/xalloc.h.
78702
78703         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
78704         * modules/userspec (Files): Add lib/inttostr.h.
78705
78706 2005-03-23  Jim Meyering  <jim@meyering.net>
78707
78708         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78709
78710 2005-03-22  Jim Meyering  <jim@meyering.net>
78711
78712         * modules/stat-macros: New module.
78713         * modules/canonicalize, modules/euidaccess, modules/file-type,
78714         * modules/filemode, modules/lchown, modules/makepath,
78715         * modules/rmdir, modules/stat: Depend on new stat-macros module
78716         rather than listing lib/stat-macros.h manually.
78717         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78718
78719 2005-03-22  Jim Meyering  <jim@meyering.net>
78720
78721         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78722
78723 2005-03-22  Bruno Haible  <bruno@clisp.org>
78724
78725         * config/srclist.txt: Replace target directory 'config' with
78726         'build-aux'.
78727         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78728         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78729         ../build-aux/.
78730
78731 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78732
78733         * modules/chdir-long (Depends-on): Add mempcpy.
78734
78735         * modules/acl, modules/backupfile, modules/c-strtod,
78736         modules/c-strtold, modules/canon-host, modules/canonicalize,
78737         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
78738         modules/exclude, modules/exitfail, modules/file-type,
78739         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
78740         modules/getdate, modules/getline, modules/getpagesize,
78741         modules/getpass, modules/getugroups, modules/group-member,
78742         modules/hard-locale, modules/hash, modules/human, modules/idcache,
78743         modules/inttostr, modules/long-options, modules/makepath,
78744         modules/md5, modules/memcasecmp, modules/memcoll,
78745         modules/modechange, modules/mountlist, modules/path-concat,
78746         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
78747         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
78748         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
78749         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
78750         modules/strftime, modules/strndup, modules/strverscmp,
78751         modules/timespec, modules/unlocked-io, modules/userspec,
78752         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
78753         modules/yesno:
78754         Remove lib_SOURCES line from Makefile.am section, as this is now
78755         done automatically by the corresponding Autoconf macro.
78756
78757 2005-03-21  Jim Meyering  <jim@meyering.net>
78758
78759         Changes imported from coreutils.
78760
78761         * lib/cycle-check.c: Don't include xalloc.h.
78762
78763         * lib/path-concat.c: Don't include assert.h.
78764         (path_concat): Remove assertion that would have triggered
78765         for ABASE starting with more than one slash.
78766         Reported by Andreas Schwab.
78767
78768         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78769         properly when ABASE is an absolute file name.
78770         Correct the description of this function.
78771         Include <assert.h>.
78772         Add an assertion and a test driver.
78773         This fixes a bug introduced on 2004-07-02.
78774         Andreas Schwab reported the resulting failure of cp --parents:
78775         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78776
78777 2005-03-21  Jim Meyering  <jim@meyering.net>
78778
78779         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78780         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78781
78782 2005-03-21  Jim Meyering  <jim@meyering.net>
78783         and  Paul Eggert  <eggert@cs.ucla.edu>
78784
78785         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78786         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78787         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78788         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78789         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78790         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78791         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78792         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78793         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
78794         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
78795         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
78796         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
78797         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
78798         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
78799         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
78800         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
78801         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
78802         for these modules.
78803
78804 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
78805
78806         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
78807         (which shouldn't happen), generate nothing instead of returning 0
78808         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78809
78810 2005-03-16  Bruno Haible  <bruno@clisp.org>
78811
78812         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78813         HAVE_LONGLONG_64BIT.
78814
78815 2005-03-16  Bruno Haible  <bruno@clisp.org>
78816
78817         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78818         HAVE_LONGLONG_64BIT.
78819
78820 2005-03-16  Bruno Haible  <bruno@clisp.org>
78821
78822         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78823         HAVE_LONGLONG_64BIT.
78824
78825 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78826
78827         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78828         reliably distinguish strftime failure from empty output on POSIX
78829         hosts.
78830
78831 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78832
78833         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78834         (iconv_string): Don't guess a size-zero buffer, as that might cause
78835         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78836         result would be 'too large', where 'too large' is (heuristically)
78837         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78838         overflow concerns.  This will prevent some unwanted malloc failures
78839         when the inputs are very large.
78840
78841 2005-03-15  Karl Berry  <karl@gnu.org>
78842
78843         * config/srclist.txt (config.rpath): from gettext.
78844         * config/config.rpath: update.
78845
78846 2005-03-15  Bruno Haible  <bruno@clisp.org>
78847
78848         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78849         to 'negate'.
78850
78851         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78852         variable.
78853
78854         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78855         results.
78856
78857 2005-03-14  Simon Josefsson  <jas@extundo.com>
78858
78859         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78860         <fx@gnu.org>.
78861
78862 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78863
78864         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78865         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78866         intprops.h.
78867         * lib/strtol.c: Likewise.
78868
78869 2005-03-14  Jim Meyering  <jim@meyering.net>
78870
78871         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78872         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78873         to be nonzero so that we (and caller) can detect the difference
78874         between a valid zero-length expansion and an error return, even
78875         when the underlying strftime fails before writing anything into
78876         that location.
78877
78878 2005-03-14  Bruno Haible  <bruno@clisp.org>
78879
78880         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78881         Update from GNU gettext 0.14.3.
78882
78883 2005-03-10  Jim Meyering  <jim@meyering.net>
78884
78885         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78886
78887 2005-03-10  Jim Meyering  <jim@meyering.net>
78888
78889         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78890         so that this module works on systems without fchdir.
78891
78892 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78893
78894         Factor int-properties macros into a single file, except for
78895         glibc-related files.
78896         * lib/intprops.h: New file.
78897         * lib/getloadavg.c: Include it instead of limits.h.
78898         (INT_STRLEN_BOUND): Remove.
78899         * lib/human.c: Include intprops.h.
78900         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78901         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78902         302/1000.
78903         * lib/inttostr.h: Include intprops.h instead of limits.h.
78904         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78905         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78906         for consistency with intprops.h.
78907         (time_t_is_integer, twos_complement_arithmetic): Use them.
78908         * lib/sig2str.h: Include <signal.h>, intprops.h.
78909         (INT_STRLEN_BOUND): Remove.
78910         * lib/strftime.c (TYPE_SIGNED): Remove.
78911         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78912         * lib/strtol.c: Adjust comments to match intprops.h.
78913         * lib/userspec.c: Include intprops.h.
78914         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78915         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78916         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78917         instead of rolling our own expressions.
78918         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78919
78920         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78921         instead of int.
78922         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78923         the right thing even if adding 1900 would overflow.  Similarly
78924         for tm_mon + 1 and tm_yday + 1.
78925         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78926         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78927         (DO_SIGNED_NUMBER): New macro.
78928         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78929
78930 2005-03-07  Bruno Haible  <bruno@clisp.org>
78931
78932         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78933
78934 2005-03-07  Bruno Haible  <bruno@clisp.org>
78935
78936         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78937
78938 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78939
78940         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78941         (func_import): Only replace files via --import when they have actually
78942         changed.
78943
78944 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78945
78946         * m4/mmap-anon.m4: New file.
78947         * m4/pagealign_alloc.m4: New file.
78948
78949 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78950             Bruno Haible  <bruno@clisp.org>
78951
78952         * modules/pagealign_alloc: New file.
78953         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78954
78955 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78956             Bruno Haible  <bruno@clisp.org>
78957
78958         * lib/pagealign_alloc.h: New file.
78959         * lib/pagealign_alloc.c: New file.
78960
78961 2005-03-03  Bruno Haible  <bruno@clisp.org>
78962
78963         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78964         Use an all-permissive copyright notice, recommended by RMS.
78965
78966 2005-03-02  Bruno Haible  <bruno@clisp.org>
78967
78968         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78969         of AIX, the replacement has to be done only after <string.h> is
78970         included, therefore not in config.h. stpncpy.h does the replacement,
78971         and stpncpy.c uses it.
78972
78973 2005-03-02  Bruno Haible  <bruno@clisp.org>
78974
78975         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78976         stpncpy.c uses it.
78977
78978 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78979
78980         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78981         The workaround isn't strictly needed for POSIX conformance, and
78982         it's too much of a pain to configure and maintain.  We'll ask
78983         people to fix their kernels instead.
78984         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78985         (NANOSLEEP_BUG_WORKAROUND): Remove.
78986         (xnanosleep): Remove the workaround.
78987
78988 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78989
78990         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78991         Reported by Derek Price.
78992         (Include): Add "timespec.h".
78993
78994         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78995
78996 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78997
78998         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78999         to detect nanosleep bug.
79000
79001 2005-03-01  Bruno Haible  <bruno@clisp.org>
79002
79003         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
79004
79005 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79006
79007         * modules/gethrxtime: New file.
79008         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
79009         (Depends-on): Add gethrxtime.
79010         (configure.ac): Add gl_XNANOSLEEP.
79011         (Makefile.am): Remove lib_SOURCES line.
79012
79013 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79014
79015         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
79016         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
79017
79018 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79019
79020         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
79021         * lib/timespec.h (gettime): Return void, since it always
79022         succeeds now.  All uses changed.
79023         * lib/gettime.c (gettime): Likewise.
79024         [HAVE_NANOTIME]: Prefer nanotime.
79025         Assume gettimeofday succeeds, as POSIX requires.
79026         Assime time () succeeds, since other code already does.
79027         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
79028         (timespec_subtract): Remove.
79029         (NANOSLEEP_BUG_WORKAROUND): New constant.
79030         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
79031         things considerably.  Use it only on GNU/Linux hosts, since the
79032         workaround shouldn't be needed elsewhere.
79033
79034 2005-02-24  Bruno Haible  <bruno@clisp.org>
79035
79036         * modules/gettext (Files): Add m4/glibc2.m4.
79037
79038 2005-02-24  Bruno Haible  <bruno@clisp.org>
79039
79040         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
79041         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
79042         * m4/progtest.m4:
79043         Update from GNU gettext 0.14.2.
79044         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
79045
79046 2005-02-24  Bruno Haible  <bruno@clisp.org>
79047
79048         * lib/localcharset.c: Update from GNU gettext 0.14.2.
79049         * lib/config.charset: Update from GNU gettext 0.14.2.
79050
79051 2005-02-24  Bruno Haible  <bruno@clisp.org>
79052
79053         * lib/gettext.h: Update from GNU gettext 0.14.2.
79054
79055 2005-02-23  Simon Josefsson  <jas@extundo.com>
79056
79057         * m4/iconvme.m4: New file.
79058
79059 2005-02-23  Jim Meyering  <jim@meyering.net>
79060
79061         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
79062         change.
79063         Thanks to Bruno Haible for catching it.
79064
79065 2005-02-22  Simon Josefsson  <jas@extundo.com>
79066
79067         * modules/iconvme: New file.
79068
79069         * MODULES.html.sh: Add iconvme.
79070
79071 2005-02-22  Simon Josefsson  <jas@extundo.com>
79072
79073         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
79074
79075 2005-02-22  Simon Josefsson  <jas@extundo.com>
79076
79077         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
79078
79079 2005-02-22  Jim Meyering  <jim@meyering.net>
79080
79081         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
79082         s/ifndef/ifdef/.
79083
79084 2005-02-20  Neil Conway  <neilc@samurai.com>
79085
79086         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
79087         returned by OSX/Darwin if the specified buffer is not large
79088         enough for the hostname.
79089
79090 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79091
79092         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
79093         pass it to _help, otherwise the latter coredumps trying to
79094         dereference state.root_argp.
79095
79096 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79097
79098         * modules/chdir-long (Depends-on): Add memrchr.
79099         * modules/memrchr (Files): Add lib/memrchr.h.
79100         (Include): "memrchr.h".
79101
79102 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79103
79104         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
79105
79106 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79107
79108         * lib/memrchr.h: New file.
79109         * lib/chdir-long.c: Include it.
79110         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
79111         Don't bother including stddef.h.
79112
79113 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
79114
79115         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
79116         inclusion.
79117         Include <sys/types.h>, for dev_t.
79118         (ME_DUMMY, ME_REMOTE): Move from here....
79119         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
79120         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
79121         Dmitry V. Levin.
79122         Include mountlist.h first, to test the interface.
79123
79124 2005-01-29  Bruno Haible  <bruno@clisp.org>
79125
79126         * lib/progname.c (program_name): Initialize.
79127         Needed when linking statically on MacOS X.
79128
79129 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79130
79131         Sync from coreutils.
79132         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
79133         (Depends-on): Add c-strtod.
79134         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
79135
79136 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79137
79138         Sync from coreutils.
79139         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
79140
79141         Remove files that are specific to coreutils.
79142         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
79143
79144 2005-01-28  Bruno Haible  <bruno@clisp.org>
79145
79146         * modules/javacomp: New file.
79147         * MODULES.html.sh (Java): Add javacomp.
79148
79149 2005-01-28  Bruno Haible  <bruno@clisp.org>
79150
79151         * m4/javacomp.m4: New file, from GNU gettext.
79152
79153 2005-01-28  Bruno Haible  <bruno@clisp.org>
79154
79155         * lib/javacomp.sh.in: New file, from GNU gettext.
79156         * lib/javacomp.h: New file, from GNU gettext.
79157         * lib/javacomp.c: New file, from GNU gettext.
79158
79159 2005-01-26  Simon Josefsson  <jas@extundo.com>
79160
79161         * lib/gai_strerror.c: Use GPL in header.
79162
79163 2005-01-26  Bruno Haible  <bruno@clisp.org>
79164
79165         * modules/javaexec: New file.
79166         * MODULES.html.sh (Java): Add javaexec.
79167
79168 2005-01-26  Bruno Haible  <bruno@clisp.org>
79169
79170         * m4/javaexec.m4: New file, from GNU gettext.
79171
79172 2005-01-26  Bruno Haible  <bruno@clisp.org>
79173
79174         * lib/javaexec.sh.in: New file, from GNU gettext.
79175         * lib/javaexec.h: New file, from GNU gettext.
79176         * lib/javaexec.c: New file, from GNU gettext.
79177
79178 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79179
79180         * modules/lchown (Depends-on): Remove lchown.h
79181
79182 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79183
79184         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
79185         must be defined if the header file was not found, in order
79186         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
79187
79188 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79189
79190         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
79191         initializers for struct pentry_state.
79192         (__argp_error): Check return value of __asprintf
79193         (__argp_failure): Translate error message
79194
79195         * lib/argp-parse.c: Removed braces around the expansion of N_()
79196
79197 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79198
79199         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
79200         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
79201         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
79202         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
79203         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
79204         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
79205         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
79206         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
79207         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
79208         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
79209         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
79210         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
79211         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
79212         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
79213         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
79214         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
79215         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
79216         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
79217         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
79218         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
79219         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
79220         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
79221         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
79222         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
79223         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
79224         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
79225         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
79226         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
79227         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
79228         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
79229         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
79230         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
79231         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
79232         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
79233         xstrtol.m4, xstrtoumax.m4, yesno.m4:
79234         Use an all-permissive copyright notice, recommended by RMS.
79235
79236 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
79237
79238         * modules/chdir-long (Depends-on): Remove mempcpy.
79239
79240 2005-01-21  Jim Meyering  <jim@meyering.net>
79241
79242         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
79243         same value as for Solaris 9.
79244
79245         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
79246         component length.  This included changing the parameter to be
79247         of type `char *' rather than `char const *'.
79248         * lib/chdir-long.h (chdir_long): Update prototype.
79249
79250         * lib/openat.c (fdopendir, fstatat): New functions.
79251         * lib/openat.h: Include headers required for use of DIR and struct
79252         stat.
79253         [AT_SYMLINK_NOFOLLOW]: Define.
79254         (fdopendir, fstatat): Add prototypes.
79255
79256 2005-01-21  Bruno Haible  <bruno@clisp.org>
79257
79258         * modules/classpath: New file.
79259         * MODULES.html.sh (Java): Add classpath.
79260
79261 2005-01-21  Bruno Haible  <bruno@clisp.org>
79262
79263         * lib/classpath.h: New file, from GNU gettext.
79264         * lib/classpath.c: New file, from GNU gettext.
79265
79266 2005-01-20  Simon Josefsson  <jas@extundo.com>
79267
79268         * modules/version-etc-fsf: New file.
79269
79270 2005-01-20  Simon Josefsson  <jas@extundo.com>
79271
79272         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
79273         * lib/version-etc.c: Remove version_etc_copyright.
79274         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
79275         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
79276
79277 2005-01-20  Simon Josefsson  <jas@extundo.com>
79278
79279         * lib/base64.h (isbase64): Add.
79280
79281         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
79282         using a unsigned prototype, don't inline.
79283         (base64_decode): Use it.
79284
79285 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79286
79287         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
79288         it.
79289
79290 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79291
79292         * lib/save-cwd.c (save_cwd): Remove code to support the case
79293         where fchdir is missing or flaky.
79294
79295 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79296
79297         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
79298
79299 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
79300
79301         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
79302         AC_LIBSOURCES now does this.
79303         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
79304         with new ullong_max module.
79305
79306 2005-01-19  Bruno Haible  <bruno@clisp.org>
79307
79308         * modules/sh-quote: New file.
79309         * MODULES.html.sh (Executing programs): Add sh-quote.
79310
79311 2005-01-19  Bruno Haible  <bruno@clisp.org>
79312
79313         * lib/sh-quote.h: New file, from GNU gettext.
79314         * lib/sh-quote.c: New file, from GNU gettext.
79315
79316 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79317
79318         Merge from coreutils.
79319         * m4/ullong_max.m4: New file.
79320         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
79321         (gl_MACROS): Assume localeconv exists.
79322
79323 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79324
79325         Merge changes from coreutils, as described below in several
79326         changelogs dated today.
79327
79328         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
79329         (O_DIRECTORY): Remove; not needed here, since "." must be
79330         a directory.  All uses removed.
79331         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
79332         universal on Suns, and we also need to test for IRIX.
79333         Revamp code to use 'if' rather than '#if'.
79334         Avoid unnecessary comparison of cwd->desc to 0.
79335
79336         * lib/utimens.c (futimens): Robustify the previous patch, by checking
79337         for known valid error numbers rather than observed invalid ones.
79338
79339 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79340
79341         * modules/ullong_max: New file.
79342
79343         * modules/chdir-long, modules/openat: New files.
79344         * modules/save-cwd (Depends-on): Depend on chdir-long.
79345         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
79346
79347 2005-01-18  Jim Meyering  <jim@meyering.net>
79348
79349         Merge from coreutils.
79350         * m4/chdir-long.m4, m4/openat.m4: New files.
79351         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
79352         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
79353         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
79354         is sane and DOES follow symlinks.  Besides, testing 20 different
79355         systems found no broken chown implementations.
79356         Prompted by a change in rsync's copy of this macro.
79357         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
79358
79359         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
79360
79361         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
79362         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
79363         NULL-means-set-to-current-time semantics.
79364         Remove temporary file immediately, rather than waiting
79365         for configure's at-exit trap code to do it.
79366
79367 2005-01-18  Jim Meyering  <jim@meyering.net>
79368
79369         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79370
79371         * lib/utimens.c (futimens): Account for the fact that futimes
79372         can also fail with errno == ENOSYS or errno == ENOENT.
79373         Patch from Dmitry V. Levin.
79374
79375         Change the name of the robust chdir function from chdir to chdir_long.
79376         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
79377         (restore_cwd): Use chdir_long, not chdir.
79378         * lib/chdir-long.c: Renamed from chdir.c.
79379         * lib/chdir-long.h: Renamed from chdir.h.
79380         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
79381         Hurd.
79382
79383 2005-01-18  Bruno Haible  <bruno@clisp.org>
79384
79385         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
79386         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
79387         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
79388         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
79389         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
79390         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
79391         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
79392         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
79393         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
79394         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
79395         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
79396         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
79397         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
79398         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
79399         Use an all-permissive copyright notice, recommended by RMS.
79400
79401 2005-01-18  Bob Proulx  <bob@proulx.com>
79402
79403         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
79404         simplify offsetof() macro construct to avoid compile failure with
79405         native HP-UX 11.0 ANSI C compiler.
79406
79407 2005-01-17  Bruno Haible  <bruno@clisp.org>
79408
79409         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
79410         redundant because stpncpy.m4 takes care of it.
79411
79412 2005-01-17  Bruno Haible  <bruno@clisp.org>
79413
79414         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
79415
79416 2005-01-17  Bruno Haible  <bruno@clisp.org>
79417
79418         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
79419         used.
79420
79421 2005-01-17  Bruno Haible  <bruno@clisp.org>
79422
79423         * lib/fwriteerror.h (fwriteerror): Change specification to include
79424         fclose.
79425         * lib/fwriteerror.c: Include <stdbool.h>.
79426         (fwriteerror): At the end, close the file stream. Record whether
79427         stdout was already closed.
79428
79429 2005-01-17  Bruno Haible  <bruno@clisp.org>
79430
79431         * lib/execute.c (environ): Declare if needed.
79432         * lib/pipe.c (environ): Likewise.
79433         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
79434
79435 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79436
79437         * modules/argp: Depend on vsnprintf
79438
79439 2005-01-10  Jim Meyering  <jim@meyering.net>
79440
79441         * modules/closeout (Depends-on): Add atexit.
79442
79443 2005-01-06  Bruno Haible  <bruno@clisp.org>
79444
79445         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
79446
79447 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79448
79449         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
79450         definitions to be after all include files, to avoid collisions.
79451         Problem reported by Bob Proulx.
79452
79453 2005-01-04  Jim Meyering  <jim@meyering.net>
79454
79455         Changes imported from coreutils.
79456         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
79457         as the mkstemp template, use a temporary directory and an
79458         8.3-friendly template to avoid trouble on systems like DJGPP.
79459         Reported by Juan M. Guerrero via Stepan Kasal.
79460         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
79461         close. Remove the temporary directory right away, rather than waiting
79462         for configure's at-exit trap code to do it.
79463         Suggestion from Stepan Kasal.
79464
79465 2005-01-01  Simon Josefsson  <jas@extundo.com>
79466
79467         * gnulib-tool: Print #include directives when --import'ing.
79468
79469 2004-12-28  Simon Josefsson  <jas@extundo.com>
79470
79471         * tests/test-base64.c: Include required header files.  Remove
79472         unused variables.
79473
79474 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79475
79476         * modules/error (Depends-on): Remove gettext.
79477
79478 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79479
79480         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
79481         not needed.  This removes a dependency on the gettext module.
79482         [defined _LIBC]: Do not include <libintl.h>; not needed.
79483
79484 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79485
79486         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
79487         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
79488
79489 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79490
79491         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
79492         HAVE_DECL_STRTOLD.
79493
79494 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79495
79496         * modules/getdate (Depends-on): Remove alloca-opt.
79497
79498 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79499
79500         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
79501
79502 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79503
79504         * lib/argp-parse.c: Include <stddef.h>.
79505         (alignof, alignto): New macros.
79506         (parser_init): Don't assume that void * is aligned sufficiently
79507         for struct option.
79508
79509         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
79510         need to extend the stack.
79511         (YYINITDEPTH): New macro, so that the initial stack isn't overly
79512         large.
79513
79514 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79515
79516         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
79517
79518 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79519
79520         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
79521         (2004-10-24) change.  Apparently this was a false alarm.
79522
79523         * modules/getdate: Depend on alloca-opt, not alloca.
79524
79525 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79526
79527         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
79528         Remove now-obsolete comment about AIX.
79529         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
79530         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
79531         (YYMAXDEPTH): New macro.
79532
79533 2004-12-18  Simon Josefsson  <jas@extundo.com>
79534
79535         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
79536
79537 2004-12-18  Bruno Haible  <bruno@clisp.org>
79538
79539         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
79540
79541 2004-12-18  Bruno Haible  <bruno@clisp.org>
79542
79543         * lib/fatal-signal.c (fatal_signals): Make non-const.
79544         (init_fatal_signals): New function.
79545         (uninstall_handlers, install_handlers): Ignore signals that were set to
79546         SIG_IGN.
79547         (at_fatal_signal): Call init_fatal_signals.
79548         (init_fatal_signal_set): Likewise. Ignore signals that were set to
79549         SIG_IGN.
79550         Reported by Paul Eggert.
79551
79552 2004-12-18  Bruno Haible  <bruno@clisp.org>
79553
79554         * doc/alloca.texi: New file.
79555         * doc/alloca-opt.texi: New file.
79556
79557 2004-12-17  Jim Meyering  <jim@meyering.net>
79558
79559         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
79560         Otherwise, install-sh could exit with improper exit status when
79561         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
79562
79563 2004-12-16  Simon Josefsson  <jas@extundo.com>
79564
79565         * tests/test-base64.c: Add license.
79566
79567 2004-12-15  Stepan Kasal  <address@hidden>
79568
79569         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
79570
79571 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
79572
79573         * modules/getcwd (Files): Add m4/d-ino.m4.
79574         Suggested by Mark D. Baushke.
79575
79576 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79577
79578         * lib/getdate.y (textint): New member "negative".
79579         (time_zone_hhmm): New function.
79580         Expect 14 shift-reduce conflicts, not 13.
79581         (o_colon_minutes): New rule.
79582         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
79583         (yylex): Set the "negative" member of signed numbers.
79584
79585 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79586
79587         * doc/getdate.texi (Time of day items, Time zone items):
79588         Describe new formats +00:00, UTC+00:00.
79589
79590 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79591
79592         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
79593         spurious "-l"s.  Problem reported by Stepan Kasal.
79594
79595 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
79596
79597         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
79598         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
79599
79600 2004-12-04  Simon Josefsson  <jas@extundo.com>
79601
79602         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
79603         Vandoorselaere <yoann@prelude-ids.org>.
79604
79605 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79606
79607         Changes imported from coreutils.
79608         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
79609         exist.
79610         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
79611
79612 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79613
79614         Changes imported from coreutils.
79615         * lib/hard-locale.c: Assume <locale.h> exists.
79616         Include "strdup.h".
79617         (GLIBC_VERSION): New macro.
79618         (hard_locale): Assume setlocale exists.
79619         Rewrite to avoid #ifdef.
79620         Use strdup rather than malloc + strcpy.
79621         * lib/human.c: Assume <locale.h> exists.
79622         (human_readable): Assume localeconv exists.
79623
79624 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79625
79626         * modules/hard-locale (Depends-on): Add strdup.
79627
79628 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
79629
79630         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
79631         convert T2, not T.  (Imported from libc.)
79632
79633 2004-11-30  Simon Josefsson  <jas@extundo.com>
79634
79635         * modules/restrict (License): Change to LGPL.
79636
79637 2004-11-30  Simon Josefsson  <jas@extundo.com>
79638
79639         * m4/restrict.m4: Add copyright and copying conditions.
79640
79641 2004-11-30  Simon Josefsson  <jas@extundo.com>
79642
79643         * m4/base64.m4: New file.
79644
79645 2004-11-30  Simon Josefsson  <jas@extundo.com>
79646
79647         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79648         base64.
79649
79650         * tests/test-base64.c: New file.
79651
79652         * modules/base64: New file.
79653
79654 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79655
79656         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79657         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79658
79659         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79660
79661 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79662
79663         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79664         (__getcwd.c): Don't restore errno; glibc doesn't.
79665         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79666         first, falling back to our code only if its results look suspicious.
79667         Ensure that the resulting buffer is only as large as necessary.
79668
79669         * lib/readutmp.c: Include readutmp.h first.
79670         Include <errno.h>, since readutmp.h no longer does that.
79671         * lib/readutmp.h: Don't include <errno.h>,
79672         <sys/param.h>, <time.h>; not needed to establish interface.
79673         (errno): Remove decl.
79674         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79675         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79676         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79677
79678 2004-11-28  Simon Josefsson  <jas@extundo.com>
79679
79680         * lib/base64.h, base64.c: New file.
79681
79682 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79683
79684         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79685
79686 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79687
79688         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79689         (Depends-on): Remove pathmax, same.  Add mempcpy.
79690         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
79691         (Makefile.am): Append getcwd.h to lib_SOURCES.
79692         (Include): Add getcwd.h.
79693         (Maintainer): Change from Jim Meyering to "all, glibc",
79694         since getdate now uses intended-for-glibc code.
79695         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
79696         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
79697
79698 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79699
79700         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
79701         HP's ANSI C compiler.
79702         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
79703         Declaring int functions causes warnings on some modern systems and
79704         shouldn't be needed to compile on ancient ones.
79705         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
79706         defined.
79707
79708         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79709         with the following changes.
79710         (__set_errno): Parenthesize properly.
79711         Include <stdbool.h>.
79712         (MIN, MAX, MATCHING_INO): New macros.
79713         (__getcwd): Define with prototype, not K&R form.
79714         Use heuristics to allocate default buffer on stack if possible.
79715         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79716         behavior, and to avoid the PATH_MAX limit when computing
79717         ../../../../...
79718         Use MATCHING_INO to compare inode number to file.
79719         Check for arithmetic overflow in size calculations.
79720         Fix bug in reallocation of dot array that caused getcwd to fail
79721         on directories nested deeper than 75.
79722         Be more careful about saving errno on error.
79723         Do not use realloc; use only free+malloc, as this is a bit
79724         more flexible and avoids a needless copy operation.
79725         Do not inspect st_dev and st_ino for symbolic links; POSIX
79726         doesn't specify the latter.
79727         Check for closedir errors.
79728         Avoid needless casts.
79729         Use "#ifdef weak_alias" around weak_alias, to be like other
79730         glibc code.
79731         The following changes to getcwd.c have effect only when used in
79732         gnulib; they have no effect inside glibc proper.
79733         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79734         as alloca isn't used.
79735         (alloca, __alloca): Likewise.
79736         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
79737         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79738         unconditionally, as gnulib assumes C89 or better.
79739         Do not include <sys/param.h>.
79740         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
79741         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
79742         better.
79743         (NULL) [!defined NULL]: Remove; we assume C89 or better.
79744         Include <dirent.h> in a way that is compatible with modern Autoconf.
79745         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
79746         New macros, if not already defined.
79747         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
79748         Use "_LIBC", not "defined _LIBC", for consistency.
79749         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
79750         a mempcpy module.
79751         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
79752         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
79753         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
79754         credit only to Jim Meyering and adjust the copyright dates.
79755         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
79756         <stdlib.h>, <unistd.h>, "pathmax.h".
79757         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79758         (INITIAL_BUFFER_SIZE): Remove.
79759         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79760
79761 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79762
79763         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79764         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79765         Use the _ONCE methods, for efficiency.
79766         Check for fcntl.h.  In test program, include <errno.h>
79767         and <fcntl.h> if available.  Remove old K&R cruft from
79768         test program.  Check for common errors in GNU/Linux,
79769         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79770         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79771         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79772         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79773         name accordingly.
79774         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79775         accommodate new getcwd.c.
79776         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79777         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79778         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79779         that's all we need now.
79780
79781 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79782
79783         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79784         argp-parse.c depends on getopt internals, that means we should
79785         always use our getopt, to be on the safe side.
79786         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79787         order not to spoil the result of an eventual previous invocation
79788         of gl_GETOPT_SUBSTITUTE.
79789
79790 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79791
79792         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79793         redefinition warnings. To avoid them, include the defines
79794         in `#if !defined __need_getopt ... #endif'. The only place
79795         where __getopt_argv_const is used is in definitions
79796         of getopt_long and getopt_long_only below, which are as well
79797         protected by `#ifndef __need_getopt'.
79798         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
79799         __need_getopt after including <stdio.h> and <unistd.h> These
79800         headers might have defined it.
79801
79802 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79803
79804         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
79805
79806 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79807
79808         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79809         (futimens): New function, which uses futimes if available.
79810         (futimens, utimens): Support timespec==NULL, with same semantics
79811         as utime and utimens.
79812         * lib/utimens.h (futimens): New decl.
79813
79814 2004-11-23  Jim Meyering  <jim@meyering.net>
79815
79816         * lib/getopt_.h: Remove trailing blanks.
79817
79818 2004-11-23  Jim Meyering  <jim@meyering.net>
79819
79820         * lib/__fpending.c: Add comment.
79821
79822 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79823
79824         * modules/canonicalize (Depends-on): Add xreadlink.
79825         Problem reported by James Youngman.
79826
79827 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79828
79829         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79830         New macros.
79831         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79832         optopt): Use them instead of invoking ## directly; otherwise, the
79833         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79834
79835 2004-11-19  Bruno Haible  <bruno@clisp.org>
79836
79837         * lib/strtok_r.c: Move comments from here...
79838         * lib/strtok_r.h: ... to here.
79839
79840 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79841
79842         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79843         implementations that mishandle size_t overflow.
79844
79845 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79846
79847         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79848         might fail.  Problem reported by Yoann Vandoorselaere.
79849         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79850         implementations that mishandle size_t overflow.
79851
79852 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79853
79854         * modules/canon-host (Depends-on): Add strdup.
79855
79856 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79857
79858         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79859
79860 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79861
79862         * lib/canon-host.c: Include "strdup.h".
79863         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79864         Use strdup instead of malloc/strcpy to duplicate strings.
79865
79866         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79867         (human_space_before_unit): New constant.
79868         * lib/human.c (human_readable): Support it.
79869
79870         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79871         (xgetcwd): Set errno correctly when failing.
79872         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79873         the failure is actually due to a PATH_MAX problem.
79874
79875         Further getopt changes to make it more likely that glibc will
79876         buy the changes back.
79877         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79878         (getopt): Use it, so to preserve glibc semantic
79879         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79880         when compiling for libc.
79881         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79882         (getopt_long, getopt_long_only): Use it.
79883
79884         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79885         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79886         (getopt): Argv is now char * const *, as per standard.
79887         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79888         not char *__getopt_argv_const *.
79889         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79890         _getopt_long_only_r): Likewise.
79891         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79892         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79893         _getopt_long_r, _getopt_long_only_r): Likewise.
79894         * lib/getopt_.h (__getopt_argv_const): Remove.
79895         (getopt): Argv is now char * const *, as per standard.
79896
79897         * lib/getdate.y (tORDINAL): New token.
79898         (day, relunit): Allow it for relative times.
79899         (relative_time_table): Use tORDINAL for ordinals.
79900
79901 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79902
79903         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79904         Document that "second" isn't allowed as an ordinal number.
79905
79906 2004-11-16  Jim Meyering  <jim@meyering.net>
79907
79908         * modules/closeout (Depends-on): Add fpending.
79909
79910 2004-11-15  Jim Meyering  <jim@meyering.net>
79911
79912         * lib/closeout.c: Include "__fpending.h" once again.
79913         Include <stdbool.h>.
79914         (close_stdout): Don't fail just because stdout was closed initially,
79915         since some programs don't write to stdout in the normal course of
79916         operation (other than --version and --help), and we don't want this
79917         function to make e.g. `touch file >&-' fail.
79918         But do fail if it was closed and someone has tried to write to it.
79919         E.g., `printf foo >&-' must fail.
79920
79921 2004-11-13  Jim Meyering  <jim@meyering.net>
79922
79923         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79924
79925 2004-11-12  Simon Josefsson  <jas@extundo.com>
79926
79927         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79928         small doc fix is still pending.
79929
79930 2004-11-11  Simon Josefsson  <jas@extundo.com>
79931
79932         * modules/strtok_r: New file.
79933
79934         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79935         strtok_r.
79936
79937 2004-11-11  Simon Josefsson  <jas@extundo.com>
79938
79939         * m4/strtok_r.m4: New file.
79940
79941         * m4/getopt.m4: Replace opterr.
79942
79943 2004-11-11  Simon Josefsson  <jas@extundo.com>
79944
79945         * lib/strtok_r.h, strtok_r.c: New file.
79946
79947 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79948
79949         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79950         of replacing opterr, getopt, etc.  This should handle the
79951         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79952
79953 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79954
79955         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79956         we can stop lying to compilers about the constness of argv when we
79957         are compiled outside glibc.
79958         (getopt, getopt_long, getopt_long_only): Use it.
79959         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79960         _getopt_internal, getopt): Likewise.
79961         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79962         _getopt_long_only_r): Likewise.
79963         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79964         _getopt_long_r, _getopt_long_only_r): Likewise.
79965
79966         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79967         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79968         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79969         the other external symbols.
79970         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79971         declaration, since the above renaming now works around collisions.
79972
79973 2004-11-11  Jim Meyering  <jim@meyering.net>
79974
79975         * lib/linebreak.c: Remove trailing blanks.
79976         * lib/alloca_.h: Likewise.
79977         * lib/acosl.c: Likewise.
79978         * lib/euidaccess.c: Likewise.
79979         * lib/allocsa.h: Likewise.
79980
79981 2004-11-10  Simon Josefsson  <jas@extundo.com>
79982
79983         * m4/getaddrinfo.m4: New file.
79984
79985 2004-11-10  Simon Josefsson  <jas@extundo.com>
79986
79987         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79988
79989 2004-11-10  Simon Josefsson  <jas@extundo.com>
79990
79991         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79992         getaddrinfo.
79993
79994         * modules/getaddrinfo: New file.
79995
79996 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79997
79998         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79999
80000 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80001
80002         * lib/mktime.c (SHR): New macro, which is a portable
80003         substitute for >> that should work even on Crays.
80004         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
80005         Problem reported by Mark D. Baushke in
80006         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
80007         * lib/getdate.y (SHR): Likewise.
80008         (tm_diff): Use it.
80009         * lib/strftime.c (SHR): Likewise.
80010         (tm_diff): Use it.
80011         * lib/quotearg.c (struct quoting_options): Use unsigned int for
80012         quote_these_too, so that right shifts are well defined.  All uses
80013         changed.
80014
80015 2004-11-10  Jim Meyering  <jim@meyering.net>
80016
80017         Ensure that no close failure goes unreported.
80018         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
80019         return early when it seems there's nothing to flush.
80020         Don't include __fpending.h.
80021
80022 2004-11-10  Jim Meyering  <jim@meyering.net>
80023
80024         * modules/closeout (Depends-on): Remove fpending.
80025
80026 2004-11-10  Jim Meyering  <jim@meyering.net>
80027
80028         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
80029
80030 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80031
80032         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
80033         gl_FUNC_STRFTIME.
80034         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
80035         and AC_REQUIRE when possible, to avoid duplicate checks.
80036         Check for <wchar.h>.
80037
80038 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80039
80040         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
80041
80042 2004-11-09  Bruno Haible  <bruno@clisp.org>
80043
80044         * m4/sockpfaf.m4: New file.
80045
80046 2004-11-05  Bruno Haible  <bruno@clisp.org>
80047
80048         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
80049         Reported by Mark D. Baushke <mdb@cvshome.org>.
80050
80051 2004-11-04  Bruno Haible  <bruno@clisp.org>
80052
80053         2004-09-11  Bruno Haible  <bruno@clisp.org>
80054                 * allocsa.valgrind: New file.
80055         2004-02-06  Bruno Haible  <bruno@clisp.org>
80056                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
80057                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
80058                 Reported by Christopher Seip <chris.seip@hp.com>.
80059
80060 2004-11-04  Bruno Haible  <bruno@clisp.org>
80061
80062         * modules/allocsa (Files): Add lib/allocsa.valgrind.
80063         (Makefile.am): Distribute it.
80064
80065 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
80066
80067         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
80068         with errno == ERANGE if the buffer is too small.
80069         Problem reported by Mark D. Baushke.
80070
80071 2004-11-03  Albert Chin  <china@thewrittenword.com>
80072             Paul Eggert  <eggert@cs.ucla.edu>
80073
80074         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
80075         equivalent, substitute $ac_type for equivalent type rather than
80076         blindly using uint32_t *always* which won't work if uint32_t is not
80077         available.  Define _UINT32_T to work around typedef of uint32_t if
80078         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
80079         2.5.1.
80080
80081 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80082
80083         * m4/jm-macros.m4: Sync from coreutils.
80084         (gl_MACROS): Check for mbrlen, for pathchk.
80085         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
80086
80087 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80088
80089         * lib/xreadlink.c (MAXSIZE): New macro.
80090         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
80091         size does not exceed MAXSIZE.  Avoid cast.
80092         As suggested by Mark D. Baushke in
80093         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
80094         if readlink fails with buffer size just under MAXSIZE, try again
80095         with MAXSIZE.
80096
80097 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80098
80099         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
80100
80101 2004-11-02  Derek R. Price  <derek@ximbiot.com>
80102         and  Paul Eggert  <eggert@cs.ucla.edu>
80103
80104         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
80105         (get_date): Overparenthesize to avoid GCC warning.
80106
80107 2004-11-02  Bruno Haible  <bruno@clisp.org>
80108
80109         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
80110         returns void.
80111
80112 2004-11-02  Bruno Haible  <bruno@clisp.org>
80113
80114         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
80115         function returns void.
80116
80117 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80118
80119         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
80120         fflush_unlocked, flockfile, funlockfile, funlockfile,
80121         fputs_unlocked, putc_unlocked.
80122
80123 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80124
80125         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80126         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
80127         already declared.
80128
80129 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80130
80131         * modules/getdate (Files): Add doc/getdate.texi.
80132         (Depends-on): Add setenv, xalloc.
80133
80134 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80135
80136         * lib/getdate.y: Add support for TZ="foo" within a date string.
80137         Fix some bugs near time_t boundaries.  Reject dates with
80138         out-of-range components, e.g., "Sept 31".
80139         Include <stdlib.h>, "setenv.h", "xalloc.h".
80140         (ISDIGIT_LOCALE): Remove; unused.
80141         Note that the TZ and time functions used here are not reentrant.
80142         (mktime_ok, get_tz): New functions.
80143         (TZBUFSIZE): New constant.
80144         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
80145         This requires that we sometimes generate our own TZ="XXX..." setting.
80146
80147 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80148
80149         * doc/getdate.texi: New file, from coreutils with modifications for
80150         the new TZ parsing.
80151
80152 2004-10-27  Derek R. Price  <derek@ximbiot.com>
80153
80154         * lib/mktime.c (not_equal_tm): Remove redundant check.
80155
80156 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80157
80158         * modules/regex (lib_SOURCES): Add regex.c.
80159         Reported by James Youngman in
80160         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
80161
80162 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80163
80164         * lib/getdate.y: Use Bison 1.875 features, and some minor
80165         code cleanups.  This change does not affect semantics.
80166         Don't include <stdlib.h>; no longer needed.
80167         Don't include unlocked-io.h; only the "#if TEST" code uses
80168         stdio, and performance isn't crucial there.
80169         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
80170         Bison 1.875 features as described below.
80171         All uses of "PC." replaced by "pc->".
80172         (YYSTYPE): Add a forward declaration.
80173         (yylex, yyerror): Use full prototypes in forward decls.
80174         Use "%pure-parser" rather than obsolescent "%pure_parser".
80175         Use %parse-param and %lex-param instead of obsolescent
80176         YYPARSE_PARAM and YYLEX_PARAM.
80177         (meridian_table, month_and_day_table, time_units_table,
80178         relative_time_table, time_zone_table, military_table,
80179         lookup_zone, lookup_word, get_date):
80180         Use NULL instead of 0 where appropriate.
80181         (to_hour): Avoid abort (), to avoid a dependency on
80182         stdlib.h.
80183         (yyerror, yylex): Now accepts parser_control * arg.
80184         (main) [TEST]: Use '\0' rather than 0 for char.
80185
80186 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80187
80188         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
80189
80190 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80191
80192         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
80193         It's now the caller's responsibility to handle the case where
80194         !HAVE_GETPAGESIZE && !defined getpagesize.
80195
80196         * lib/mktime.c (leapyear): Arg is long int, not int.
80197
80198 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
80199
80200         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
80201
80202 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80203
80204         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
80205         missing.  Problem reported by James Youngman.
80206
80207 2004-10-16  Simon Josefsson  <jas@extundo.com>
80208
80209         * gnulib-tool: Fix comments.  Fix parse problem.
80210         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
80211
80212 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
80213
80214         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
80215         implementation of getopt_long.  Problem reported by Alexander Taler in:
80216         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
80217
80218 2004-10-15  Bruno Haible  <bruno@clisp.org>
80219
80220         * gnulib-tool: Untabify. Initialize supplied_libname.
80221         (func_usage): More homogenous output.
80222         (func_modules_transitive_closure, func_modules_to_filelist,
80223         func_emit_lib_Makefile_am): New functions.
80224         (func_import): New function, extracted from big case statement. Use
80225         func_get_license, func_modules_transitive_closure,
80226         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
80227         opt_lgpl. Don't use test -a, as it's not portable.
80228         (func_create_testdir): Use func_modules_transitive_closure,
80229         func_modules_to_filelist, func_emit_lib_Makefile_am.
80230
80231 2004-10-15  Bruno Haible  <bruno@clisp.org>
80232
80233         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
80234
80235 2004-10-15  Bruno Haible  <bruno@clisp.org>
80236
80237         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
80238         the portions belonging to each module.
80239         Suggested by Derek Robert Price <derek@ximbiot.com>.
80240
80241 2004-10-12  Simon Josefsson  <jas@extundo.com>
80242
80243         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80244         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
80245         to real functions.
80246
80247 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80248
80249         * modules/vsnprintf: New file.
80250
80251 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80252
80253         * m4/vsnprintf.m4: New file.
80254
80255 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80256
80257         * lib/vsnprintf.h: New file.
80258         * lib/vsnprintf.c: New file.
80259
80260 2004-10-11  Bruno Haible  <bruno@clisp.org>
80261
80262         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
80263         vsnprintf.
80264
80265 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80266
80267         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
80268
80269 2004-10-07  Bruno Haible  <bruno@clisp.org>
80270
80271         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
80272         fits into the provided buffer.
80273
80274 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80275
80276         * lib/diacrit.c, diacrit.h: Add GPL notice.
80277
80278         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
80279         notice.
80280         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
80281         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
80282         This avoids a potential constant-folding bug.
80283
80284 2004-10-05  Bruno Haible  <bruno@clisp.org>
80285
80286         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
80287         for the declaration of strsep.
80288
80289 2004-10-05  Bruno Haible  <bruno@clisp.org>
80290
80291         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
80292
80293 2004-10-04  Simon Josefsson  <jas@extundo.com>
80294
80295         * modules/memmem: New file.
80296         * tests/test-memmem.c: New file.
80297         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
80298
80299 2004-10-04  Simon Josefsson  <jas@extundo.com>
80300
80301         * m4/memmem.m4: New file.
80302
80303 2004-10-04  Simon Josefsson  <jas@extundo.com>
80304
80305         * lib/memmem.h: New file.
80306         * lib/memmem.c: New file, taken from glibc.
80307
80308 2004-10-04  Simon Josefsson  <jas@extundo.com>
80309
80310         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
80311         '#ifdef USE_UNLOCKED_IO'.
80312
80313 2004-10-04  Simon Josefsson  <jas@extundo.com>
80314
80315         * config/srclist.txt: Add memmem from glibc.
80316
80317 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80318
80319         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
80320
80321         * modules/argmatch, modules/argp, modules/closeout, modules/error,
80322         modules/exclude, modules/getdate, modules/getline,
80323         modules/getndelim2, modules/getpass, modules/getpass-gnu,
80324         modules/getusershell, modules/linebuffer, modules/md5,
80325         modules/mountlist, modules/posixtm, modules/readtokens,
80326         modules/readutmp, modules/regex, modules/sha1,
80327         modules/version-etc, modules/yesno:
80328         Remove dependency on unlocked-io.
80329
80330 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80331
80332         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
80333
80334         * m4/unlocked-io.m4: Add copyright notice.
80335         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
80336
80337 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80338
80339         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
80340         * lib/xmalloc.c (xmemdup): Likewise.
80341         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
80342         XFREE): Remove these long-obsolescent macros.
80343         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
80344         * lib/xstrdup.c: Remove.
80345
80346         * lib/regex.c (re_comp): Cast gettext return value to char *,
80347         Problem reported by Martin Neitzel via Mark D. Baushke.
80348
80349 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80350
80351         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
80352         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
80353         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
80354         regex.c, sha1.c, version-etc.c, yesno.c:
80355         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
80356         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
80357         the includer's responsibility.
80358
80359         Sync from coreutils.
80360
80361         * lib/modechange.c (mode_compile): Don't decrement a pointer that
80362         points to the start of a string, as the C Standard says the
80363         resulting behavior is undefined.
80364
80365         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
80366         simple -> simple_backups, numbered_existing ->
80367         numbered_existing_backups, numbered -> numbered_backups
80368         to avoid shadowing problems.  All uses changed.
80369         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
80370         * lib/backupfile.c (check_extension, numbered_backup):
80371         Rename locals to avoid shadowing 'basename'.
80372         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
80373         once.
80374
80375         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
80376         * lib/.cvsignore: Add getopt.h.
80377
80378 2004-10-04  Bruno Haible  <bruno@clisp.org>
80379
80380         * modules/README: New file.
80381         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
80382         not a module.
80383
80384 2004-10-02  Jim Meyering  <jim@meyering.net>
80385
80386         * lib/dirfd.h, getpagesize.h: Add copyright notice.
80387
80388 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80389
80390         * modules/strsep: New file.
80391
80392 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80393
80394         * m4/strsep.m4: New file.
80395
80396 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80397
80398         * lib/strsep.h: New file.
80399         * lib/strsep.c: New file.
80400
80401 2004-10-01  Simon Josefsson  <jas@extundo.com>
80402
80403         * lib/snprintf.c (snprintf): Handle size==0.
80404
80405 2004-10-01  Simon Josefsson  <jas@extundo.com>
80406             Bruno Haible  <bruno@clisp.org>
80407
80408         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
80409         (snprintf): Declare 'args'.
80410
80411 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
80412
80413         * lib/snprintf.c: Remove comments as to why each header is needed.
80414
80415 2004-10-01  Bruno Haible  <bruno@clisp.org>
80416
80417         * MODULES.html.sh: Add strsep.
80418
80419 2004-09-30  Simon Josefsson  <jas@extundo.com>
80420
80421         * modules/snprintf: New file.
80422
80423 2004-09-30  Simon Josefsson  <jas@extundo.com>
80424
80425         * m4/snprintf.m4: New file.
80426
80427 2004-09-30  Simon Josefsson  <jas@extundo.com>
80428
80429         * lib/snprintf.h, lib/snprintf.c: New files.
80430
80431 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80432
80433         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
80434         (hol_entry_help): Never translate an empty string.
80435         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
80436         * lib/argp.h (OPTION_NO_TRANS): New option.
80437
80438 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80439
80440         * modules/argp (Maintainer): Replace Simon Josefsson
80441         by Sergey Poznyakoff.
80442
80443 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80444
80445         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
80446         changes merged back into glibc.
80447
80448 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80449
80450         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
80451
80452 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80453
80454         * lib/xvasprintf.c: Include xalloc.h.
80455         (xvasprintf): Use xalloc_die, not xmalloc_die.
80456
80457 2004-09-29  Bruno Haible  <bruno@clisp.org>
80458
80459         * modules/alloca-opt: New file, derived from modules/alloca.
80460         * modules/allocsa: Depend on alloca-opt instead of alloca.
80461         * modules/setenv: Likewise.
80462         * modules/vasnprintf: Likewise.
80463         * MODULES.html.sh: Add alloca-opt.
80464
80465 2004-09-28  Simon Josefsson  <jas@extundo.com>
80466
80467         * gnulib-tool: New parameter --lgpl, to asseert that modules are
80468         LGPL, and to replace license template from GPL to LGPL.
80469
80470 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80471
80472         * modules/dummy: Change license to LGPL.
80473
80474 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80475
80476         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
80477
80478 2004-09-24  Simon Josefsson  <jas@extundo.com>
80479
80480         * modules/minmax (License): Change from GPL to LGPL.
80481
80482 2004-09-23  Simon Josefsson  <jas@extundo.com>
80483
80484         * gnulib-tool (--import): Typo.
80485
80486 2004-09-23  Simon Josefsson  <jas@extundo.com>
80487
80488         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
80489
80490 2004-09-22  Bruno Haible  <bruno@clisp.org>
80491
80492         * modules/*: Add 'License' field.
80493         * gnulib-tool: Accept --extract-license option.
80494         (func_get_license): New function.
80495
80496 2004-09-21  Bruno Haible  <bruno@clisp.org>
80497
80498         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
80499         Reported by Simon Josefsson.
80500
80501 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80502
80503         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
80504         gl_AC_TYPE_LONG_LONG.
80505
80506 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80507
80508         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
80509
80510 2004-09-18  Simon Josefsson  <jas@extundo.com>
80511         and  Paul Eggert  <eggert@cs.ucla.edu>
80512
80513         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
80514         calls with autoreconf.  Define GL_LIB.
80515
80516 2004-09-14  Karl Berry  <karl@gnu.org>
80517
80518         * config/srclist.txt: unsync setenv.c, sigh.
80519
80520 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80521
80522         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
80523         Problem reported by Bruno Haible in:
80524         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
80525
80526 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80527
80528         * config/srclist.txt: Comment out argp-pvh.c.
80529
80530 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
80531
80532         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
80533         in case some system header has #define'd it.  Problem reported by
80534         Soeren D. Schulze in
80535         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
80536
80537 2004-09-09  Karl Berry  <karl@gnu.org>
80538
80539         * regex.[ch]: delete from the root.  These were supposed to be
80540                 synced with emacs cvs, but this has not happened for about
80541                 a year, and anyway nothing else uses emacs regex.[ch].
80542                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
80543                 lib/regex[.ch] is untouched.
80544
80545 2004-09-09  Bruno Haible  <bruno@clisp.org>
80546
80547         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
80548
80549 2004-09-09  Bruno Haible  <bruno@clisp.org>
80550
80551         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
80552         modifications.
80553         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
80554
80555 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80556
80557         * modules/xvasprintf: New file.
80558         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
80559
80560 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80561
80562         * lib/xvasprintf.h: New file.
80563         * lib/xvasprintf.c: New file.
80564         * lib/xasprintf.c: New file.
80565
80566 2004-09-08  Bruno Haible  <bruno@clisp.org>
80567
80568         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
80569
80570 2004-09-08  Bruno Haible  <bruno@clisp.org>
80571
80572         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
80573         length is > INT_MAX.
80574         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
80575         more.
80576
80577 2004-09-08  Bruno Haible  <bruno@clisp.org>
80578
80579         * lib/stdint_.h: New file, taken from GNU clisp.
80580
80581 2004-09-08  Bruno Haible  <bruno@clisp.org>
80582             Oskar Liljeblad  <oskar@osk.mine.nu>
80583
80584         * modules/stdint: New file.
80585         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
80586
80587 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80588
80589         Import from coreutils.
80590         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
80591         strings on unbounded length.  alloca's performance benefits aren't
80592         that important here.
80593         (V_STRDUP): Remove.
80594         (parse_with_separator): New function, with most of the internals
80595         of the old parse_user_spec.  Allow user to omit both user and group,
80596         for compatibility with FreeBSD.
80597         Clone only the user name, not the entire spec.
80598         Do not set *uid, *gid unless entirely successful.
80599         Avoid memory leak in some failing cases.
80600         Fix regression for USER.GROUP reported by Dmitry V. Levin in
80601         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
80602         (parse_user_spec): Rewrite to use parse_with_separator.
80603
80604 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80605
80606         * modules/userspec: Don't depend on alloca.
80607
80608 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80609
80610         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
80611
80612 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80613
80614         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
80615         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
80616         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
80617
80618 2004-08-16  Simon Josefsson  <jas@extundo.com>
80619
80620         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
80621         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
80622         Add --dry-run for --import.
80623         Let user provided command line parameters override configure.ac
80624         settings.
80625
80626 2004-08-12  Simon Josefsson  <jas@extundo.com>
80627
80628         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
80629         as discussed with Paul Eggert in threads rooted at
80630         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
80631         and
80632         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
80633         Before, the test was empty, and relied on ELIDE_CODE in source
80634         code.)
80635         (gl_PREREQ_GETOPT): New macro.
80636         (gl_GETOPT): Use them.
80637
80638 2004-08-12  Simon Josefsson  <jas@extundo.com>
80639
80640         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
80641         * lib/getopt_.h: Renamed from getopt.h.
80642
80643 2004-08-12  Simon Josefsson  <jas@extundo.com>
80644
80645         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80646         Change default library name from libfoo to libgnu.
80647         Now, if you have a configure.ac that says:
80648                 gl_SOURCE_BASE(gl)
80649                 gl_M4_BASE(gl/m4)
80650                 gl_MODULES(error getopt etcetera)
80651                 gl_INIT
80652         you can import all you need by running:
80653                 ../gnulib/gnulib-tool --import
80654
80655         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80656         (Makefile.am): Rewrite, use logic from argz.
80657         (Include): Use <getopt.h> instead of "getopt.h".
80658
80659 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80660
80661         * modules/argp (Files): Add m4/unlocked-io.m4.
80662         (Depends-on): Add extensions.
80663
80664 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80665
80666         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80667         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80668         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80669         Check for program_invocation_name, program_invocation_short_name,
80670         flockfile, funlockfile, features.h, _getopt_long_only_r.
80671
80672 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80673
80674         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80675         its complicated substitute.
80676         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80677         and program_invocation_name.
80678         (__argp_basename) [!_LIBC]: Remove; the only use was
80679         replaced by its body.
80680         (__argp_short_program_name): Change condition from
80681         !defined __argp_short_program_name to
80682         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80683         to match argp-namefrob.h.
80684         (__argp_failure): Don't assume strerror_r returns char *.
80685         * lib/argp-parse.c (N_): Define unconditionally.
80686         (argp_default_options): Fill out initializers with 0 to avoid
80687         gcc warnings.
80688
80689 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80690
80691         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
80692         getopt1.c.
80693
80694 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80695
80696         Merge from coreutils.
80697
80698         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
80699
80700         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
80701         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
80702
80703 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80704
80705         Merge from coreutils.
80706
80707         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80708         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80709         for Reliant Unix 5.43.
80710
80711         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80712         (union fooround): Use uintmax_t, not long int.
80713         The rest is a merge from libc:
80714         [defined _LIBC]: Include <shlib-compat.h>.
80715         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80716
80717         * lib/settime.c (settime): Recode to avoid warning with
80718         Sun Forte C 6U2.
80719
80720         * lib/strverscmp.c: Convert to UTF-8.
80721
80722 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80723
80724         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80725         m4/uintmax_t.m4.
80726
80727 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80728
80729         * modules/xalloc-die: New file.
80730         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80731
80732         * modules/md5 (Files): Add m4/uint32_t.m4.
80733         * modules/sha1: Renamed from modules/sha.
80734         (Files):
80735         Rename lib/sha.h to lib/sha1.h.
80736         Rename lib/sha.c to lib/sha1.c.
80737         Rename m4/sha.m4 to m4/sha1.m4.
80738         (lib_SOURCES): Likewise.
80739         (configure.ac): Rename gl_SHA to gl_SHA1.
80740         (Include): sha.h -> sha1.h.
80741
80742 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80743
80744         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
80745         * m4/sha1.m4: Renamed from sha.m4.
80746         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
80747
80748 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80749
80750         * lib/obstack.h (obstack_empty_p):
80751         Don't assume that chunk->contents is suitably aligned.
80752         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
80753         Likewise. Problem reported by Benno in
80754         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
80755
80756         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
80757         readable.  This could be improved further but it'd take some work.
80758
80759 2004-08-08  Simon Josefsson  <jas@extundo.com>
80760
80761         * modules/xgethostname (Depends-on): Remove exit and error (not
80762         used).
80763
80764         * modules/getpass-gnu: Add getpass.h.
80765         (Depends-on): Add stdbool.
80766         * modules/getpass: Add getpass.h.
80767
80768 2004-08-08  Simon Josefsson  <jas@extundo.com>
80769
80770         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80771         Check getpass declaration.
80772
80773 2004-08-08  Simon Josefsson  <jas@extundo.com>
80774
80775         * lib/xgethostname.c: Don't include error.h (not used).
80776
80777         * lib/getpass.h: Add.
80778         * lib/getpass.c: Include getpass.h first.
80779
80780 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80781
80782         * lib/xalloc-die.c: New file.
80783         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80784         All uses removed.
80785         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80786         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80787         xalloc-die.c.
80788         (_, N_, xalloc_die): Move to xalloc-die.c.
80789         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80790         so that we needn't mess with xalloc_msg_memory_exhausted.
80791
80792         * lib/sha1.h: Renamed from sha.h.
80793         (SHA1_H): Renamed from _SHA_H.
80794         (sha1_ctx): Renamed from sha_ctx.
80795         (sha1_init_ctx): Renamed from sha_init_ctx.
80796         (sha1_process_block): Renamed from sha_process_block.
80797         (sha1_process_bytes): Renamed from sha_process_bytes.
80798         (sha1_finish_ctx): Renamed from sha_finish_ctx.
80799         (sha1_read_ctx): Renamed from sha_read_ctx.
80800         (sha1_stream): Renamed from sha_stream.
80801         (sha1_buffer): Renamed from sha_buffer.
80802         * lib/sha1.c: Likewise; renamed from sha.c.
80803         Do not include <sys/types.h>.
80804         Include <stddef.h> rather than <stdlib.h>.
80805
80806 2004-08-08  Bruno Haible  <bruno@clisp.org>
80807
80808         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80809         FILESYSTEM_PREFIX_LEN.
80810         * lib/progreloc.c: Likewise.
80811         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80812
80813 2004-08-06  Simon Josefsson  <jas@extundo.com>
80814
80815         * modules/progname (Depends-on): Don't depend on stdbool.
80816
80817 2004-08-06  Simon Josefsson  <jas@extundo.com>
80818
80819         * modules/getsubopt: New file.
80820         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80821         getsubopt.
80822
80823 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80824
80825         More merge from coreutils.
80826
80827         * m4/utimens.m4, m4/utimecmp.m4: New files.
80828         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80829         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80830         prereq.m4, sha.m4: Import changes from coreutils.
80831
80832 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80833
80834         More merge from coreutils.
80835         * modules/raise, modules/readtokens0, modules/utimens:
80836         * modules/utimecmp, module/xnanosleep: New files.
80837         * modules/strftime: Add lib/strftime.h.
80838         Change include from <time.h> to "strftime.h".
80839         * modules/yesno: Add lib/yesno.h.
80840         * modules/backupfile: Remove lib/addext.c.
80841         * modules/euidaccess: Add stat-macros.h.
80842         * modules/canonicalize, modules/euidaccess,
80843         modules/filemode, modules/lchown, modules/makepath,
80844         modules/rmdir, modules/stat: Likewise.
80845
80846 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80847
80848         Merge from tar.
80849         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80850         SIZE_MAX is a valid preprocessor constant.
80851         (__argp_basename): Change from "#ifndef _LIBC"
80852         to "#ifndef __argp_short_program_name", so that
80853         we don't compile these functions for tar.
80854
80855         More merges from coreutils.
80856         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80857         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80858         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80859         * lib/addext.c: Remove; no longer needed.
80860         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80861         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80862         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80863         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80864         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80865         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80866         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80867         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80868         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80869         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80870         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80871         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80872         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80873         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80874         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80875         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80876         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80877         Import changes from coreutils.
80878
80879 2004-08-05  Simon Josefsson  <jas@extundo.com>
80880
80881         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80882
80883 2004-08-05  Simon Josefsson  <jas@extundo.com>
80884
80885         * m4/getsubopt.m4: New file.
80886
80887 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80888
80889         Merge from coreutils.
80890
80891         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80892         * m4/getcwd-path-max.m4: New files.
80893
80894         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80895         FILESYSTEM_PREFIX_LEN ->
80896         FILE_SYSTEM_PREFIX_LEN.
80897         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80898         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80899         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80900         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80901
80902         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80903         prerequisite modules now handle the DOS stuff.
80904         Don't check for unistd.h.
80905
80906 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80907
80908         Merge from coreutils.
80909
80910         * lib/.gdb-history: Remove; this doesn't belong here.
80911
80912         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80913         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80914         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80915         * lib/getcwd.c: New files.
80916
80917         * lib/dirname.h: Include <stdbool.h>.
80918         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80919         for consistency with POSIX terminology.  All uses changed.
80920         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80921         (strip_trailing_slashes): Use bool for booleans.
80922         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80923
80924         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80925         sometimes returns a positive errno value even when it succeeds.
80926         (print_errno_message) [!LIBC]: Fall back on strerror if
80927         __strerror_r fails.
80928
80929         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80930         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80931         (longest_relative_suffix): New function.
80932         (path_concat): Use it.  Assume first argument is not NULL.
80933         Port to DOS.  Omit redundant separators.
80934         Report an error instead of returning NULL.
80935         Use mempcpy instead of memcpy.
80936         (xpath_concat): Remove: not declared or used.
80937
80938         * lib/same.h: Include <stdbool.h>
80939         (same_name): Return bool, not int.
80940         * lib/same.c (same_name): Likewise.
80941         (errno): Don't declare; we assume C89 or better now.
80942
80943         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80944         if not already defined.
80945
80946         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80947         * lib/dup-safer.c (errno): Likewise.
80948
80949 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80950
80951         Merge from coreutils.
80952         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80953         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80954         * modules/path-concat: Don't depend on strdup.
80955
80956 2004-08-03  Simon Josefsson  <jas@extundo.com>
80957
80958         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80959         * lib/progname.h: Don't include stdbool.h.
80960
80961 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80962
80963         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80964         * MODULES.html.sh (func_all_modules): Remove fatal.
80965
80966 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80967
80968         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80969
80970 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80971
80972         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80973         working.
80974
80975 2004-08-02  Simon Josefsson  <jas@extundo.com>
80976
80977         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80978         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80979         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80980
80981 2004-08-01  Simon Josefsson  <jas@extundo.com>
80982
80983         * lib/xgetdomainname.c: Include stdlib.h, for free().
80984
80985 2004-07-19  Bruno Haible  <bruno@clisp.org>
80986
80987         * MODULES.html.sh (func_all_modules): Add dummy.
80988
80989 2004-07-16  Simon Josefsson  <jas@extundo.com>
80990
80991         * modules/dummy: New file.
80992
80993 2004-07-16  Simon Josefsson  <jas@extundo.com>
80994
80995         * lib/dummy.c: New file.
80996
80997 2004-07-16  Bruno Haible  <bruno@clisp.org>
80998
80999         * lib/backupfile.h: Add extern "C" for C++.
81000         * lib/closeout.h: Likewise.
81001         * lib/copy-file.h: Likewise.
81002         * lib/findprog.h: Likewise.
81003         * lib/full-write.h: Likewise.
81004         * lib/pathname.h: Likewise.
81005         * lib/progname.h: Likewise.
81006         * lib/stpcpy.h: Likewise.
81007         * lib/stpncpy.h: Likewise.
81008         * lib/strcase.h: Likewise.
81009         * lib/strstr.h: Likewise.
81010         * lib/xalloc.h: Likewise.
81011
81012         * lib/mbswidth.h: Add extern "C" for C++.
81013         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
81014
81015 2004-07-13  Robert Millan  <robertmh@gnu.org>
81016
81017         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
81018
81019 2004-07-09  Simon Josefsson  <jas@extundo.com>
81020
81021         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
81022         failed without this.)
81023
81024 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81025
81026         * modules/chown (Files): Add lib/fchown-stub.c, since
81027         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
81028
81029 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81030
81031         * lib/fchown-stub.c: New file.
81032
81033 2004-06-24  Jim Meyering  <jim@meyering.net>
81034
81035         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
81036
81037 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81038
81039         * modules/argz: Omit "#include".
81040
81041         * MODULES.html.sh (func_all_modules): Add calloc, to match
81042         2004-06-01 addition of calloc module.
81043
81044 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81045
81046         * m4/argz.m4: New file, which is autoupdated from libtool.
81047
81048 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81049
81050         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
81051         libtool.
81052
81053 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81054
81055         * config/srclist-update: Don't insist on "USA." before the
81056         close-comment, as libtool omits the period and puts the */ on a
81057         separate line.
81058         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
81059         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
81060
81061 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
81062
81063         * modules/argz: New file.
81064         * MODULES.html.sh (func_all_modules): Add argz.
81065
81066 2004-06-12  Jim Meyering  <jim@meyering.net>
81067         and  Paul Eggert  <eggert@cs.ucla.edu>
81068
81069         * modules/hash (Files): Add lib/xalloc.h.
81070         * modules/pipe (Depends-on): Add wait-process.
81071         * modules/stat (Depends-on): Add xalloc.
81072         * modules/userspec (Files): Add lib/userspec.h.
81073         * modules/xstrto
81074
81075         Upgrade from gettext-0.13.
81076         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
81077         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
81078         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
81079
81080 2004-06-10  Jim Meyering  <jim@meyering.net>
81081
81082         * lib/calloc.c: New file.
81083
81084 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81085
81086         * lib/getdate.y (yylex): Allow space between sign and number.
81087         Problem reported by Dan Jacobson.
81088
81089 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81090
81091         Merge from coreutils CVS.
81092
81093         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
81094         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
81095         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
81096         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
81097         xstrtol.m4: Fix copyright date and/or serial number.
81098
81099         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
81100         See if we need an fchown replacement.
81101         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
81102         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
81103         and use the replacement function if we detect either defect.
81104
81105         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
81106         gl_UTIMECMP.
81107
81108 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81109         and  Jim Meyering  <jim@meyering.net>
81110
81111         Merge from coreutils CVS.
81112
81113         * lib/stat-macros.h: New file, with contents from file-type.h
81114         and coreutils' system.h.
81115         * lib/file-type.c: Include "stat-macros.h".
81116         * lib/file-type.h (file_type): Move all macro definitions to new file,
81117         stat-macros.h.
81118
81119         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
81120         Wrap old code with this conditional.
81121         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
81122         function that does not dereference symlinks.
81123         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
81124
81125         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
81126         dependency problems.
81127         (xreadlink): Accept new arg SIZE, for efficiency.
81128         All decls and uses changed.
81129         * lib/xreadlink.h: Include <stddef.h>, for size_t.
81130
81131         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
81132         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
81133
81134         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
81135         sysexits.h.
81136
81137 2004-06-01  Jim Meyering  <jim@meyering.net>
81138
81139         * m4/calloc.m4: New file.
81140
81141 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
81142
81143         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
81144         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
81145         Also, fix a typo in a diagnostic.
81146
81147 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81148
81149         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
81150         or AC_FUNC_REALLOC.
81151
81152 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81153
81154         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
81155         macros to be defined.
81156         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
81157         the allocator returns NULL because the requested size is zero.
81158
81159 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81160
81161         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
81162         var.  Add comment explaining why libc still defines it.  This
81163         merges the following patch from glibc:
81164         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
81165
81166 2004-05-20  Andreas Schwab  <schwab@suse.de>
81167
81168         * m4/free.m4: Replace free if it not known to work, not the other
81169         way round.
81170
81171 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81172
81173         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
81174         present in glibc since revision 1.1 of this file.
81175         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
81176         obstack_alignment_mask, obstack_alloc, obstack_base,
81177         obstack_blank, obstack_blank_fast, obstack_chunk_size,
81178         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
81179         obstack_grow0, obstack_init, obstack_int_grow,
81180         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
81181         obstack_next_free, obstack_object_size, obstack_ptr_grow,
81182         obstack_ptr_grow_fast, obstack_room): Remove declarations of
81183         nonexistent functions.
81184
81185 2004-05-18  Karl Berry  <karl@gnu.org>
81186
81187         * config/srclist.txt: break link for vasnprintf.c.
81188
81189 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81190
81191         Port obstack to the AS/400, where pointers are 16 bytes wide and
81192         you cannot cast an integer to a valid pointer.  This patch is
81193         currently waiting to be integrated into glibc; see
81194         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
81195
81196         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
81197         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
81198         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
81199         (struct obstack): temp member is now a union of a pointer and
81200         an integer, instead of an integer.  All integer uses changed.
81201         This does not affect the physical layout of struct obstack,
81202         except on hosts (like the AS/400) where the size or alignment of
81203         void * is greater than that of ptrdiff_t.
81204         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
81205         __STDC__)]: Store temporary in pointer member of union, not
81206         integer member.
81207         * lib/obstack.c: Include <stddef.h>, for offsetof.
81208         (struct fooalign): Remove; it doesn't need a name.
81209         (union fooround): Change double to long double, and add void *.
81210         (DEFAULT_ALIGNMENT): Use offsetof to compute.
81211         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
81212         not a macro.  Hence the values are always int; so remove all
81213         casts-to-int in uses.
81214
81215 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81216
81217         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
81218         we can get this patch merged into glibc.
81219
81220 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81221             Paul Eggert  <eggert@cs.ucla.edu>
81222
81223         * m4/argp: Depend on alloca.
81224
81225 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81226             Paul Eggert  <eggert@cs.ucla.edu>
81227
81228         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
81229         freecoding.
81230
81231 2004-05-17  Bruno Haible  <bruno@clisp.org>
81232
81233         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
81234         precision that consists of a '.' followed by an empty digit string.
81235         Patch by Tor Lillqvist <tml@iki.fi>.
81236
81237 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81238
81239         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
81240         for backward compatibility with older code.  We need our own
81241         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
81242         it under some other name, and our alloca.h will define it.
81243
81244 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81245             Derek Price  <derek@ximbiot.com>
81246
81247         * lib/alloca.c: Include <alloca.h>, to get our interface.
81248         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
81249         include <alloca.h> first.  Use C89 prototype for alloca; this
81250         requires including <stddef.h> for size_t.  Use extern "C" if C++.
81251         Use #elif for simplicity, since we can assume C89 now.
81252         Don't try to source the system alloca.h since it will not be found
81253         and to prevent recursively including its replacement.
81254         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
81255         * lib/regex.c: Likewise.
81256
81257 2004-05-16  Derek Price  <derek@ximbiot.com>
81258             Paul Eggert  <eggert@cs.ucla.edu>
81259
81260         getline cleanup.  This changes the getndelim2 API: both order of
81261         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
81262         no delimiter).
81263
81264         * lib/getline.c: Don't include stddef.h or stdio.h, since our
81265         interface does that.
81266         (getline): Always use getdelim, so that we don't have two
81267         copies of this code.
81268         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
81269         if available.
81270         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
81271         (GETNDELIM2_MAXIMUM): New macro.
81272         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
81273         instead of the old practice of delim2==0.  All callers changed.
81274         Return -1 on overflow, instead of returning junk.
81275         Do not set *linesize unless allocation succeeds.
81276         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
81277         that we include sys/types.h.
81278         * lib/getnline.h: Likewise.
81279         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
81280         (getndelim2): Reorder arguments.
81281         * lib/getnline.c (getnline, getndelim):
81282         Don't discard the NMAX argument.
81283         (getnline): Invoke getndelim, to avoid code duplication.
81284         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
81285         of (size_t) -1 by callers of the getnline family.
81286
81287 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81288
81289         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
81290         Check for gettimeofday.
81291         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
81292         Check for settimeofday, stime.
81293
81294 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81295
81296         * lib/nanosleep.c (suspended): Change its type from int to
81297         sig_atomic_t volatile.
81298         (first_call): Make it private to rpl_nanosleep, and have it
81299         be zero initially as that's a bit faster.
81300         (my_usleep): Round up fractional times instead of truncating them,
81301         as this is the usual meaning for 'sleep'.
81302
81303         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
81304         doesn't work.
81305         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
81306         (ENOSYS): Define if not defined.
81307         (settime): Fall back on stime if it exists and settimeofday fails.
81308         But don't bother with fallbacks if a method fails with errno == EPERM.
81309
81310 2004-05-11  Jim Meyering  <jim@meyering.net>
81311
81312         Prior to this change, the save_cwd caller required read access to the
81313         current directory on most systems (ones with the fchdir function).
81314
81315         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
81316         fails, try write-only, and finally, resort to using xgetcwd.
81317
81318 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81319
81320         * lib/obstack.c, obstack.h: Import changes from libc.
81321
81322 2004-04-28  Bruno Haible  <bruno@clisp.org>
81323
81324         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
81325         also implicitly appends .exe to executables.
81326         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
81327         accepts Windows pathnames.
81328         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81329         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81330         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81331         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81332         Reported by Derek Robert Price <derek@ximbiot.com>.
81333
81334 2004-04-21  Karl Berry  <karl@gnu.org>
81335
81336         * config/srclist.txt (localcharset.c): break sync.
81337
81338 2004-04-20  Paul Eggert  <eggert@twinsun.com>
81339
81340         * m4/host-os.m4: Add a copyright notice.
81341
81342 2004-04-20  Jim Meyering  <jim@meyering.net>
81343
81344         Change UTILS_ to gl_ in AC_DEFINE'd names.
81345         Change utils_- and jm_-prefixed variables, too.
81346         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
81347         UTILS_FUNC_MKDIR_TRAILING_SLASH.
81348         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
81349
81350         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
81351         Don't emit trailing blanks.
81352         Also rename jm_-prefixed variables to have gl_ prefix.
81353
81354         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
81355         Also rename jm_-prefixed variables to have gl_ prefix.
81356
81357         * m4/jm-macros.m4: Reflect the renamings.
81358         * m4/prereq.m4: Likewise.
81359
81360 2004-04-20  Jim Meyering  <jim@meyering.net>
81361
81362         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
81363         memory.
81364
81365 2004-04-20  Jim Meyering  <jim@meyering.net>
81366             Bruno Haible  <bruno@clisp.org>
81367
81368         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
81369         memory when realloc fails.
81370
81371 2004-04-19  Jim Meyering  <jim@meyering.net>
81372
81373         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
81374         now that readutmp.c may call `free (0)'.
81375
81376 2004-04-19  Bruno Haible  <bruno@clisp.org>
81377
81378         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
81379         * m4/inttypes_h.m4: Likewise.
81380         * m4/stdint_h.m4: Likewise.
81381         * m4/intmax_t.m4: Likewise.
81382         * m4/uintmax_t.m4: Likewise.
81383
81384 2004-04-18  Jim Meyering  <jim@meyering.net>
81385
81386         * m4/prereq.m4: Don't forbid jm_ prefix.
81387
81388         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
81389         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
81390         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
81391         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
81392         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
81393         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
81394         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
81395         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
81396         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
81397         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
81398         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
81399         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
81400         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
81401         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
81402         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
81403         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
81404         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
81405         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
81406         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
81407
81408 2004-04-18  Jim Meyering  <jim@meyering.net>
81409
81410         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
81411         failure, don't leak memory and do call END_UTMP_ENT.
81412
81413 2004-04-16  Jim Meyering  <jim@meyering.net>
81414
81415         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
81416         coreutils' stat program.
81417         (gl_PREREQ): Don't require jm_PREREQ_STAT.
81418
81419 2004-04-11  Paul Eggert  <eggert@twinsun.com>
81420
81421         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
81422         C89.
81423         (CHAR_BIT): Remove, since we assume C89.
81424         Include <stdint.h> if available, as per current Autoconf CVS advice.
81425
81426 2004-03-31  Jim Meyering  <jim@meyering.net>
81427
81428         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
81429         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
81430         * m4/xalloc.m4: Likewise.
81431
81432 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81433
81434         Merge from coreutils.
81435
81436         * m4/inttostr.m4: New file.
81437         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
81438         Require AM_STDBOOL_H and gl_TIMESPEC instead.
81439         Require gl_CLOCK_TIME.
81440         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
81441
81442 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81443
81444         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
81445         not bool, to be more consistent with Unix conventions.
81446         Suggested by Bruno Haible.
81447
81448         Merge from coreutils.
81449
81450         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
81451         * lib/umaxtostr.c: New files.
81452
81453         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
81454         the usual <time.h> dance.
81455         (get_date): Change signature to support fractional time stamps.
81456         All callers changed.
81457         * lib/getdate.y: Include "getdate.h" first, as we can now
81458         assume C89 and don't need to worry about 'const'.
81459         Similarly, include "unlocked-io.h" near start, not in middle.
81460         Include <limits.h>.
81461         (textint.value): Use long int rather than int.
81462         (textint.digits): Use size_t rather than int.
81463         (BILLION, LOG10_BILLION): New constants.
81464         (parser_control): New member rel_ns.  Members day_ordinal,
81465         time_zone, month, day, hour, minutes, rel_year, rel_month,
81466         rel_day, rel_hour, rel_minutes, rel_seconds
81467         are now long int, not int.  Member seconds is now struct timespec,
81468         not int.  New member timespec_seen.  Members dates_seen, days_seen,
81469         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
81470         not int.
81471         (%union.intval): Now long int, not int.
81472         New member timespec.
81473         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
81474         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
81475         (spec): Now is a timespec or an item list.
81476         (timespec, items): New nonterminals.
81477         (time, rel, relunit, number, get_date):
81478         Add support for fractional seconds.
81479         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
81480         (gmtime, localtime, mktime): Remove decls; not needed with C89.
81481         (to_hour): First arg is now long int, not int.
81482         (to_year): Returns long int, not int.
81483         Don't treat year -70 like 70.
81484         (tm_diff): Returns long int, not int.
81485         (lookup_word): Use bool instead of int when appropriate.
81486         (yylex): Use size_t for count, not int.
81487         Detect overflow when parsing large integer constants.
81488         Add support for fractions.
81489         (get_date): Make pointers 'const' if possible.
81490         Use more-portable code to detect integer overflow.
81491         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
81492         Don't use ctime; it's not reliable if the year has >4 digits.
81493
81494         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
81495         This is for compatibility with BSD.
81496
81497         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
81498         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
81499         From coreutils' system.h.
81500
81501         * lib/userspec.c: Don't include "posixver.h".
81502         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
81503         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
81504         compatible extension.  Simplify code by removing a boolean int
81505         that was always nonzero if a string was nonnull.
81506
81507 2004-03-30  Jim Meyering  <jim@meyering.net>
81508
81509         Merge from coreutils.
81510
81511         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
81512         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
81513         on some systems one must include <grp.h> before it.
81514         Reported by Christian Krackowizer.
81515
81516 2004-03-30  Jim Meyering  <jim@meyering.net>
81517
81518         Merge from coreutils.
81519
81520         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
81521
81522         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
81523         an empty input stream.
81524
81525         * lib/readtokens.c: Include <stdbool.h>.
81526         (readtoken): Use `size_t' rather than int/long.
81527         All callers adjusted.
81528         Use `bool' rather than `int' where appropriate.
81529         Use memset rather than an explicit loop.
81530         Use x2nrealloc rather than xrealloc.
81531         Allow the use of `\0' as a delimiter.
81532         (readtokens): Likewise.
81533         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
81534
81535 2004-03-30  Jim Meyering  <jim@meyering.net>
81536
81537         * m4/realloc.m4: Remove file, since now it does no more than
81538         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
81539         the `configure.ac' section of module/realloc.
81540         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
81541
81542 2004-03-30  Bruno Haible  <bruno@clisp.org>
81543
81544         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
81545         nonnull.
81546
81547 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81548
81549         Merge changes to getloadavg.c from coreutils and Emacs.
81550
81551         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
81552         Define to an expression, not to the empty string.
81553         Include cloexec.h and xalloc.h.
81554         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
81555         Use set_cloexec_flag rather than rolling our own.
81556         * lib/cloexec.c, lib/cloexec.h: New files.
81557
81558 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81559
81560         * m4/cloexec.m4: New file.
81561
81562 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81563
81564         * lib/getopt.h: Sync with libc CVS.
81565
81566 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81567             Bruno Haible  <bruno@clisp.org>
81568
81569         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
81570         mbswidth.
81571
81572 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81573             Bruno Haible  <bruno@clisp.org>
81574
81575         * lib/mbswidth.h: Include <wchar.h> only if
81576         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
81577         <wchar.h>.
81578         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
81579
81580 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81581
81582         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
81583         Sync with libc CVS.
81584         * lib/getopt_int.h: New file, also synced from libc.
81585
81586 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81587
81588         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
81589         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
81590         Bring back getopt.c, getopt.h, getopt1.c.
81591
81592 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81593
81594         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
81595         All uses changed.  Check for sa_sigaction member; this fixes
81596         a bug first reported by Jason Andrade in
81597         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81598
81599 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81600
81601         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
81602         '#if' expressions.  Unlike the code it replaces, it does not
81603         depend on (defined _SC_PAGESIZE).  However, it does depend on
81604         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
81605         first reported by Jason Andrade in
81606         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81607
81608 2004-02-25  Simon Josefsson  <jas@extundo.com>
81609
81610         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
81611
81612 2004-02-25  Simon Josefsson  <jas@extundo.com>
81613
81614         * lib/strdup.h: New file.
81615         * lib/strdup.c: Include it.
81616         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
81617         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
81618
81619 2004-02-23  Karl Berry  <karl@gnu.org>
81620
81621         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
81622         (from fencepost.gnu.org:/gd/gnuorg).
81623
81624 2004-02-23  Karl Berry  <karl@gnu.org>
81625
81626         * config/srclistvars.sh (GNUORG) [karl]: redefine.
81627         * config/srclist.txt: add maintain/standards documents.
81628
81629 2004-02-18  Bruno Haible  <bruno@clisp.org>
81630
81631         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
81632         Reported by Derek Robert Price <derek@ximbiot.com>.
81633
81634 2004-02-16  Karl Berry  <karl@gnu.org>
81635
81636         * config/mkinstalldirs, install-sh: update from automake.
81637
81638 2004-02-06  Karl Berry  <karl@gnu.org>
81639
81640         * m4/po.m4: update from gettext 0.14.1.
81641
81642 2004-02-06  Karl Berry  <karl@gnu.org>
81643
81644         * lib/config.charset: update from gettext 0.14.1.
81645
81646 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81647
81648         Add comments and code, prompted by suggestions from Bruno Haible
81649         for sh-quote.
81650         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81651         describing the enum quoting_style values.
81652         * lib/quotearg.c (quotearg_alloc): New function.
81653         (quotearg_buffer_restyled): Treat lone { and } as special.
81654         Treat = as special.  Work around bug with older shells
81655         that "see" a '\' that is really the 2nd byte of a multibyte char.
81656         Quote empty string with shell_quoting_style.
81657
81658 2004-02-03  Bruno Haible  <bruno@clisp.org>
81659
81660         * m4/pipe.m4: New file, from GNU gettext.
81661
81662 2004-02-03  Bruno Haible  <bruno@clisp.org>
81663
81664         * lib/pipe.h: New file, from GNU gettext.
81665         * lib/pipe.c: New file, from GNU gettext.
81666
81667 2004-01-27  Bruno Haible  <bruno@clisp.org>
81668
81669         * m4/execute.m4: New file, from GNU gettext.
81670
81671 2004-01-27  Bruno Haible  <bruno@clisp.org>
81672
81673         * lib/execute.h: New file, from GNU gettext.
81674         * lib/execute.c: New file, from GNU gettext.
81675         * lib/w32spawn.h: New file, from GNU gettext.
81676
81677 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81678
81679         Merge from diffutils.
81680
81681         * lib/file-type.c (file_type): Add typed memory objects.
81682         * lib/file-type.h (S_TYPEISTMO): New macro.
81683
81684         * lib/c-stack.h (c_stack_action): Remove argv argument.
81685         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81686         (die): Don't calculate message unless segv_action returns.
81687         (get_stack_location, min_address_from_argv, max_address_from_argv,
81688         volatile stack_base, volatile_stack_size): Remove.
81689         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81690         that every segmentation violation is a stack overflow.  (Ouch!)
81691         See Debian bug 136249 (still outstanding) for more info about why
81692         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
81693
81694 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81695
81696         Exit-status fix from coreutils.
81697
81698         Use exit_failure consistently in place of EXIT_FAILURE,
81699         so that program exit statuses are consistent on failure.
81700
81701         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
81702         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
81703         * lib/argmatch.h: Comment fix to match the above.
81704         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
81705         Now a macro referring to exit_failure, instead of a separate
81706         variable.  Include "exitfail.h" to get it.
81707         * lib/xstrtol.h: Include "exitfail.h".
81708         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81709
81710         * lib/long-options.c (parse_long_options): Use prototype
81711         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81712         for clarity.
81713
81714 2004-01-21  Jim Meyering  <jim@meyering.net>
81715
81716         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81717         so as not to conflict with a different-sized __mktime_internal
81718         function in GNU libc.
81719         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81720         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81721
81722 2004-01-20  Karl Berry  <karl@gnu.org>
81723
81724         * config/config.guess: update from config.
81725
81726         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81727
81728 2004-01-20  Bruno Haible  <bruno@clisp.org>
81729
81730         Safer stack allocation.
81731         * lib/setenv.c: Include allocsa.h.
81732         (alloca): Remove fallback definition.
81733         (freea): Remove macro.
81734         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
81735         instead of freea.
81736
81737 2004-01-20  Bruno Haible  <bruno@clisp.org>
81738
81739         * m4/eealloc.m4: New file, from GNU gettext.
81740
81741 2004-01-20  Bruno Haible  <bruno@clisp.org>
81742
81743         * m4/allocsa.m4: New file, from GNU gettext.
81744
81745 2004-01-20  Bruno Haible  <bruno@clisp.org>
81746
81747         * lib/xallocsa.h: New file, from GNU gettext.
81748         * lib/xallocsa.c: New file, from GNU gettext.
81749
81750 2004-01-20  Bruno Haible  <bruno@clisp.org>
81751
81752         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
81753
81754 2004-01-20  Bruno Haible  <bruno@clisp.org>
81755
81756         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
81757         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81758         specially.
81759
81760 2004-01-20  Bruno Haible  <bruno@clisp.org>
81761
81762         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81763         patch.
81764
81765 2004-01-20  Bruno Haible  <bruno@clisp.org>
81766
81767         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81768
81769 2004-01-20  Bruno Haible  <bruno@clisp.org>
81770
81771         * lib/eealloc.h: New file.
81772
81773 2004-01-20  Bruno Haible  <bruno@clisp.org>
81774
81775         * lib/binary-io.h: Avoid warnings on Cygwin.
81776
81777 2004-01-20  Bruno Haible  <bruno@clisp.org>
81778
81779         * lib/allocsa.h: New file, from GNU gettext.
81780         * lib/allocsa.c: New file, from GNU gettext.
81781
81782 2004-01-18  Karl Berry  <karl@gnu.org>
81783
81784         * doc/gpl.texi, doc/lgpl.texi: new files.
81785
81786 2004-01-18  Karl Berry  <karl@gnu.org>
81787
81788         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81789         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81790
81791 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81792
81793         Merge from coreutils.
81794
81795         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
81796         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
81797         (gl_DEFAULT_POSIX2_VERSION): Move
81798         the documentation from 'configure' into 'config.hin',
81799         so that 'configure --help' isn't burdened by it and
81800         we don't have to worry about its formatting there.
81801         Reword the documentation so that it's more succinct
81802         and can be run together into a single paragraph.
81803         * m4/same.m4 (gl_SAME): Check for pathconf.
81804
81805 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81806
81807         Merge from coreutils.
81808
81809         * lib/posixver.c: Include posixver.h.
81810
81811         * lib/same.c: Include <stdbool.h>, <limits.h>.
81812         (_POSIX_NAME_MAX): Define if not defined.
81813         (MIN): New macro.
81814         (same_name): If file names are silently truncated, report
81815         that the file names are the same if they are the same after
81816         the silent truncation.
81817
81818         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81819         conversion function.
81820         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81821         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81822         longer needed.
81823
81824 2004-01-15  Jim Meyering  <jim@meyering.net>
81825
81826         Merge from coreutils.
81827
81828         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81829         if no library is required.
81830         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81831         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81832         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81833         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81834         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81835         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81836         value, $ac_cv_search_crypt, if it's "none required".
81837         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81838         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81839         not gl_FUNC_GETLOADAVG.
81840         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81841         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81842
81843 2004-01-15  Jim Meyering  <jim@meyering.net>
81844
81845         Merge from coreutils.
81846
81847         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81848         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81849         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81850
81851         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81852         optional configure-time default.
81853
81854         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81855
81856         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81857
81858 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81859
81860         Merge from coreutils.
81861
81862         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81863         value, $ac_cv_search_nanosleep, if it's "none required".
81864
81865 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81866
81867         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81868         with like-named macro in fnmatch.c.
81869         (EXT): Use an internal constant instead.
81870
81871         Merge fnmatch patches from glibc.
81872         * lib/fnmatch.c (mbsinit): Remove define.
81873         Add libc_hidden_ver (__fnmatch, fnmatch).
81874         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81875         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81876
81877 2004-01-14  Karl Berry  <karl@gnu.org>
81878
81879         * config/install-sh: update from automake.
81880
81881 2004-01-13  Karl Berry  <karl@gnu.org>
81882
81883         * config/install-sh: update from automake.
81884
81885 2004-01-09  Karl Berry  <karl@gnu.org>
81886
81887         * config/install-sh: update from automake.
81888
81889 2004-01-05  Karl Berry  <karl@gnu.org>
81890
81891         * config/config.{sub,guess}: update from config.
81892
81893 2003-12-31  Karl Berry  <karl@gnu.org>
81894
81895         * config/depcomp: update from automake.
81896
81897 2003-12-14  Karl Berry  <karl@gnu.org>
81898
81899         * lib/config.charset: update from gettext-runtime.
81900
81901 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81902
81903         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81904         Bug reported by Alfred M. Szmidt.
81905
81906 2003-12-03  Bruno Haible  <bruno@clisp.org>
81907
81908         * m4/gettext.m4: Upgrade from gettext-0.13.
81909         * m4/po.m4: Upgrade from gettext-0.13.
81910         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81911         * m4/intmax.m4: New file, from gettext-0.13.
81912         * m4/printf-posix.m4: New file, from gettext-0.13.
81913
81914 2003-11-29  Karl Berry  <karl@gnu.org>
81915
81916         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81917
81918 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81919             Bruno Haible  <bruno@clisp.org>
81920
81921         * lib/printf-parse.h: Don't include sys/types.h.
81922         (ARG_NONE): New macro.
81923         (char_directive): Change type of *arg_index fields to size_t.
81924         * lib/printf-parse.c: Don't include sys/types.h.
81925         (SSIZE_MAX): Remove macro.
81926         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81927         Remove unnecessary overflow check.
81928         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81929         fields.
81930
81931 2003-11-25  Bruno Haible  <bruno@clisp.org>
81932
81933         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81934
81935 2003-11-25  Bruno Haible  <bruno@clisp.org>
81936
81937         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81938         gt_TYPE_SSIZE_T.
81939
81940 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81941
81942         * modules/alloca: Remove dependency on xalloc.
81943
81944 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81945
81946         * lib/alloca.c: Remove dependency on xalloc module.
81947         (xalloc_die): Remove.
81948         (memory_full) [!defined emacs]: New macro.
81949         [!defined emacs]: Don't include xalloc.h.
81950         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81951         address arithmetic overflows.  Change datatypes a bit to avoid
81952         unnecessary casts.
81953
81954 2003-11-22  Jim Meyering  <jim@meyering.net>
81955
81956         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81957         s/size/size_t/.
81958
81959 2003-11-21  Karl Berry  <karl@gnu.org>
81960
81961         * config/config.{sub,guess}: update from config.
81962
81963 2003-11-18  Karl Berry  <karl@gnu.org>
81964
81965         * config/config.{sub,guess}: update from config.
81966
81967         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81968
81969 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81970
81971         * README: Mention that S+T cannot overflow if S is the size of
81972         an existing object and T is sufficiently small.
81973
81974 2003-11-17  Jim Meyering  <jim@meyering.net>
81975
81976         On systems without utime and without a utimes function capable of
81977         dealing with a NULL struct utimbuf* argument, this utime replacement
81978         could -- in unusual circumstances -- leak a file descriptor.
81979         * lib/utime.c: Include <unistd.h> and <errno.h>.
81980         (utime_null): Be sure to close `fd' and to preserve errno.
81981         Reported by Geoff Collyer via Arnold Robbins.
81982
81983 2003-11-17  Bruno Haible  <bruno@clisp.org>
81984
81985         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81986         (Depends-on): Add xsize.
81987
81988 2003-11-17  Bruno Haible  <bruno@clisp.org>
81989
81990         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81991
81992 2003-11-17  Bruno Haible  <bruno@clisp.org>
81993
81994         * lib/vasnprintf.c (alloca): Remove fallback definition.
81995         (freea): Remove definition.
81996         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81997         Reported by Paul Eggert.
81998
81999 2003-11-16  Paul Eggert  <eggert@twinsun.com>
82000             Bruno Haible  <bruno@clisp.org>
82001
82002         Protect against address arithmetic overflow.
82003         * lib/printf-args.h: Include stddef.h.
82004         (arguments): Change type of field 'count' to size_t.
82005         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
82006         'unsigned int' where appropriate.
82007         * lib/printf-parse.h: Include sys/types.h.
82008         (char_directive): Change type of *arg_index fields to ssize_t.
82009         (char_directives): Change type of fields 'count', max_*_length to
82010         size_t.
82011         * lib/printf-parse.c: Include sys/types.h and xsize.h.
82012         (SSIZE_MAX): Define fallback value.
82013         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
82014         instead of 'int' where appropriate. Check a_allocated, d_allocated
82015         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
82016         * lib/vasnprintf.c: Include xsize.h.
82017         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
82018         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
82019         overflow. Avoid wraparound when converting a width or precision from
82020         decimal to binary.
82021
82022 2003-11-16  Bruno Haible  <bruno@clisp.org>
82023
82024         Update from GNU gettext.
82025         * lib/printf-parse.c: Generalize to it can be compiled for wide
82026         strings.
82027         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
82028         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
82029         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
82030         SNPRINTF): New macros.
82031         Don't include <alloca.h> if the file is used inside libintl.
82032         (local_wcslen): New function, for Solaris 2.5.1.
82033         (VASNPRINTF): Use it instead of wcslen.
82034
82035 2003-11-16  Bruno Haible  <bruno@clisp.org>
82036
82037         * lib/xsize.h (xmax): New function.
82038         (xsum, xsum3, xsum4): Declare as "pure" functions.
82039
82040 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82041
82042         * modules/xalloc (Files): Undo latest change, since xalloc.h
82043         no longer needs SIZE_MAX or PTRDIFF_MAX.
82044
82045 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82046
82047         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
82048         gl_PTRDIFF_MAX.
82049
82050 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82051
82052         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
82053         "return", to pacify some unknown compiler.  Problem reported
82054         by Joerg Schilling.
82055
82056 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82057
82058         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
82059         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
82060         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
82061         heuristic is just as accurate as far as we know, and it removes a
82062         dependency on size_max.m4 and ptrdiff_max.m4.
82063
82064 2003-11-11  Bruno Haible  <bruno@clisp.org>
82065
82066         * modules/xsize (Files): Add m4/size_max.m4.
82067         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
82068
82069 2003-11-11  Bruno Haible  <bruno@clisp.org>
82070
82071         * m4/size_max.m4: New file.
82072         * m4/ptrdiff_max.m4: New file.
82073         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
82074         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
82075         (gl_XALLOC): Invoke it.
82076
82077 2003-11-11  Bruno Haible  <bruno@clisp.org>
82078
82079         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
82080         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
82081         defined.
82082
82083 2003-11-10  Paul Eggert  <eggert@twinsun.com>
82084
82085         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
82086         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
82087         rejected some allocations of exactly SIZE_MAX - 2 bytes.
82088         From Bruno Haible.
82089         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
82090         not (size_t) -1, since it's defined here.
82091
82092 2003-11-09  Karl Berry  <karl@gnu.org>
82093
82094         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
82095
82096 2003-11-06  Paul Eggert  <eggert@twinsun.com>
82097
82098         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
82099         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
82100         Reject sizes of exactly SIZE_MAX bytes.
82101         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
82102         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
82103
82104 2003-11-05  Bruno Haible  <bruno@clisp.org>
82105
82106         * lib/xsize.h: Include limits.h, to avoid a possible collision with
82107         SIZE_MAX defined in <limits.h> on Solaris.
82108
82109 2003-11-04  Jim Meyering  <jim@meyering.net>
82110
82111         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
82112         variable names, rather than @VAR@.
82113         * modules/poll: Likewise.
82114
82115 2003-11-04  Bruno Haible  <bruno@clisp.org>
82116
82117         * modules/xsize: New file.
82118         * modules/linebreak: Depend on xsize.
82119         * MODULES.html.sh (func_all_modules): Add xsize.
82120
82121 2003-11-04  Bruno Haible  <bruno@clisp.org>
82122
82123         * m4/xsize.m4: New file.
82124
82125 2003-11-04  Bruno Haible  <bruno@clisp.org>
82126
82127         * lib/xsize.h: New file.
82128         * lib/linebreak.c: Include xsize.h.
82129         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
82130         argument for overflow.
82131         Suggested by Paul Eggert.
82132
82133 2003-11-03  Karl Berry  <karl@gnu.org>
82134
82135         * config/config.{guess,sub}: update from config.
82136
82137 2003-11-03  Jim Meyering  <jim@meyering.net>
82138
82139         * modules/userspec (lib_SOURCES): Add userspec.h.
82140         (Include): Add "userspec.h".
82141         Improve description.
82142
82143 2003-11-03  Jim Meyering  <jim@meyering.net>
82144
82145         * lib/userspec.c: Include "userspec.h".
82146         * lib/userspec.h: New file.
82147
82148 2003-11-03  Bruno Haible  <bruno@clisp.org>
82149
82150         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
82151
82152 2003-11-03  Bruno Haible  <bruno@clisp.org>
82153
82154         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
82155         available, to avoid (extremely rare) race condition.
82156         Suggested by Paul Eggert.
82157
82158 2003-11-02  Karl Berry  <karl@gnu.org>
82159
82160         * config/srclist.txt (vasprintf.c): sync broken, sigh.
82161
82162 2003-10-31  Paul Eggert  <eggert@twinsun.com>
82163
82164         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
82165         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
82166         (read_filesystem_list): Set and use me_type_malloced.
82167         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
82168         whatever the type happens to be), for brevity and consistency.
82169         Check for size calculation overflow on Alphas running OSF/1.
82170
82171 2003-10-31  Jim Meyering  <jim@meyering.net>
82172
82173         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
82174
82175         * lib/linebuffer.c: Include <string.h> for declaration of memset.
82176
82177 2003-10-30  Paul Eggert  <eggert@twinsun.com>
82178             Bruno Haible  <bruno@clisp.org>
82179
82180         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
82181         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
82182
82183 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82184
82185         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
82186         netbsd*-gnu*.  Suggested by Robert Millan.
82187
82188 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82189
82190         * modules/group-member: Depend on stdbool.
82191
82192 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82193
82194         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
82195
82196 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82197
82198         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
82199         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
82200         after the 'gnu' in these cases.  This fixes some bugs in the
82201         previous change, and is based on suggestions by Robert Millan.
82202
82203 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82204
82205         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
82206         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
82207         no longer needed.
82208         * lib/quotearg.c (quotearg_n_options): Use it.
82209         * lib/group-member.c: Include <stdbool.h>.
82210         (free_group_info): Arg is now const *; don't free arg.
82211         (get_group_info): Now returns bool and accepts struct group_info *,
82212         rather than returning a malloc'ed struct group_info *.
82213         All uses changed.  Check for overflow in internal size calculation.
82214
82215         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
82216         rather than xmalloc/xrealloc.
82217         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
82218         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
82219         conformance bug: the old code used a pointer after freeing the
82220         storage that it addressed.
82221         * lib/hash.c (hash_initialize): Simplify the code by using
82222         xalloc_oversized rather than doing it by hand.
82223         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
82224         the buffer preserved.  Use free and xmalloc instead.
82225         * lib/quotearg.c (quotearg_n_options): Likewise.
82226         Use a simpler test for size overflow.  Don't use xalloc_oversized
82227         because unsigned int might be wider than size_t (!); this suggests
82228         that we should switch from unsigned int to size_t for slot numbers.
82229
82230 2003-10-28  Paul Eggert  <eggert@twinsun.com>
82231
82232         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
82233         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
82234         NetBSD kernels.  Requested by Richard Stallman.
82235
82236 2003-10-27  Paul Eggert  <eggert@twinsun.com>
82237
82238         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
82239         to allocate the returned structure.  Do not allocate a subarray,
82240         as x2nrealloc will do that.
82241         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
82242         instead of xnrealloc.
82243         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
82244
82245 2003-10-27  Bruno Haible  <bruno@clisp.org>
82246
82247         * lib/stdbool_.h: Better support for BeOS.
82248
82249 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82250
82251         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
82252         now uses inline.
82253
82254 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82255
82256         * lib/xalloc.h (xalloc_oversized): New static inline function, for
82257         callers that want to do their own size-overflow checking.  Include
82258         <stdbool.h>, since xalloc_oversized returns bool.
82259         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
82260         to use xalloc_oversized.
82261
82262         Add two functions x2realloc, x2nrealloc, for programs that grow
82263         arrays dynamically by doubling their sizes.
82264         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
82265         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
82266         New functions.
82267
82268         Port to C99 semantics for 'inline' of external functions.
82269         Bug reported by Bruno Haible.
82270         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
82271         with the old contents of xnmalloc.
82272         (xnmalloc, xmalloc): Use it.
82273         (xnrealloc_inline): New static inline function,
82274         with the old contents of xnrealloc.
82275         (xnrealloc, xrealloc): Use it.
82276
82277         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
82278         that.
82279
82280 2003-10-26  Karl Berry  <karl@gnu.org>
82281
82282         * config/srclist.txt (COPYING.DOC): no longer available from
82283         /gd/gnuorg; don't know where the ultimate source is.
82284
82285 2003-10-25  Paul Eggert  <eggert@twinsun.com>
82286
82287         Fix several address-calculation bugs in the hash modules,
82288         plus some minor code cleanup.
82289
82290         * lib/hash.h: Include <stdbool.h>, for bool.
82291         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
82292         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
82293         hash_get_n_entries, hash_get_max_bucket_length,
82294         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
82295         hash_rehash): Use size_t rather than unsigned.
82296         * lib/hash.c (struct hash_table, hash_get_n_buckets,
82297         hash_get_n_buckets_used, hash_get_n_entries,
82298         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
82299         hash_get_entries, hash_do_for_each, hash_string, is_prime,
82300         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
82301         Likewise.
82302         (SIZE_MAX): Define if not defined.
82303         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
82304         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
82305         hash_print):
82306         Use const * when possible.
82307         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
82308         (check_tuning): Fix bug: if tuning parameters were very close to
82309         0 or 1, rounding errors could have caused subscript violations.
82310         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
82311         (hash_initialize): Add 'fail:' label
82312         to free table and return NULL, and use it to simplify code.
82313         Use calloc rather than clearing the storage ourself.
82314         (hash_initialize, hash_rehash): Check for arithmetic overflow in
82315         buffer size calculations.
82316         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
82317         Include <stddef.h>, for size_t.
82318         * lib/hash-pjw.c (hash_pjw): Likewise.
82319         Switch to method described by Bruno Haible.
82320         Include <limits.h>, for CHAR_BIT.
82321         (SIZE_BITS): New macro.
82322
82323 2003-10-23  Paul Eggert  <eggert@twinsun.com>
82324
82325         * m4/getline.m4 (AM_FUNC_GETLINE):
82326         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
82327         hosts.  Problem reported by Derek Robert Price in
82328         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
82329         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
82330         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
82331
82332 2003-10-21  Paul Eggert  <eggert@twinsun.com>
82333
82334         * lib/getndelim2.c (getndelim2): When size calculation overflows,
82335         ceiling the allocation at NMAX bytes rather than silently
82336         discarding input bytes before NMAX is reached.  This makes
82337         a difference only if NMAX exceeds SIZE_MAX / 2.
82338
82339         * lib/obstack.c: Merge from glibc.
82340         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
82341         Add libc_hidden_def (_obstack_newchunk).
82342         (_obstack_free) [! defined _LIBC]: Remove.
82343         [defined _LIBC]: Make a strong alias from obstack_free, rather than
82344         a clone of the function body.
82345         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
82346         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
82347
82348         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
82349         glibc.
82350         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
82351         arg to memcpy.
82352
82353         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
82354         (obstack_ptr_grow_fast, obstack_int_grow_fast):
82355         Don't use lvalue casts, as GCC plans to remove support for them
82356         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
82357         was also present in the non-GCC version, indicating that this
82358         code had always been buggy and had never been widely used.
82359         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
82360         Use the fast variant of each macro, rather than copying the
82361         definiens of the fast variant; that way, we'll be more likely to
82362         catch future bugs in the fast variants.
82363
82364 2003-10-20  Bruno Haible  <bruno@clisp.org>
82365
82366         * modules/wait-process: New file.
82367         * MODULES.html.sh (func_all_modules): Add wait-process.
82368
82369 2003-10-20  Bruno Haible  <bruno@clisp.org>
82370
82371         * m4/wait-process.m4: New file.
82372
82373 2003-10-20  Bruno Haible  <bruno@clisp.org>
82374
82375         * lib/wait-process.h: New file, from GNU gettext.
82376         * lib/wait-process.c: New file, from GNU gettext.
82377
82378 2003-10-19  Jim Meyering  <jim@meyering.net>
82379
82380         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
82381         HPUX 10.20.
82382
82383 2003-10-18  Karl Berry  <karl@gnu.org>
82384
82385         * config/config.guess: update from config.
82386
82387 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82388
82389         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
82390         (getgroups): First arg is int, not size_t.
82391         Don't let 'free' mangle errno.
82392
82393 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82394
82395         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
82396
82397 2003-10-16  Karl Berry  <karl@gnu.org>
82398
82399         * config/config.{guess,sub}: update from config.
82400
82401 2003-10-16  Jim Meyering  <jim@meyering.net>
82402
82403         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
82404         memcpy.
82405
82406 2003-10-15  Paul Eggert  <eggert@twinsun.com>
82407
82408         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
82409         (SIZE_MAX): Remove.
82410         (new_exclude, add_exclude_file): Initial size no longer needs to
82411         be a power of 2.
82412         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
82413         our own address arithmetic overflow checking.
82414
82415         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
82416         (fnmatch): Do not alloca more than 2000 wide characters;
82417         instead, use malloc for large buffers.
82418         Check for address arithmetic overflow, and return -1
82419         with errno set to ENOMEM in that case.
82420         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
82421         (NEW_PATTERN): Do not alloca more than 8000 bytes;
82422         instead, return -1.  Check for address arithmetic overflow.
82423
82424 2003-10-14  Paul Eggert  <eggert@twinsun.com>
82425
82426         Handle invalid suffixes and overflow independently, so that
82427         callers can treat them independently as needed.  Fix some bugs in
82428         suffix handling, e.g., "100k@" was not diagnosed as an invalid
82429         suffix for a human-readable blocksize.  The major caller-visible
82430         change is the addition of a new
82431         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
82432         that both overflow and suffix chars were found.
82433
82434         * lib/human.c (humblock): Don't check separately for invalid suffix
82435         char; that is xstrtoumax's job (now that its bug is fixed).
82436         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
82437         INTMAX_MAX]: New macros.
82438         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
82439         TYPE_MAXIMUM): New macros.
82440         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
82441         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
82442         if overflow occurs, as it's what __strtol does and it's more useful
82443         in practice.
82444         (__xstrtol): If __strtol reports some error other than ERANGE,
82445         reflect it to the caller as LONGINT_INVALID.  If it reports
82446         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
82447         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
82448         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
82449         value.
82450         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
82451         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
82452         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
82453         [defined UINTMAX_MAX]: New macros.
82454
82455 2003-10-14  Bruno Haible  <bruno@clisp.org>
82456
82457         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
82458
82459 2003-10-14  Bruno Haible  <bruno@clisp.org>
82460
82461         * m4/sig_atomic_t: New file, from GNU gettext.
82462         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
82463
82464 2003-10-14  Bruno Haible  <bruno@clisp.org>
82465
82466         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
82467         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
82468         Also use volatile where needed.
82469
82470 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82471
82472         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
82473         Change maintainer from Bruno Haible to 'all'.
82474
82475 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82476
82477         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
82478
82479 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82480
82481         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
82482         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
82483         and define in terms of the other primitives.
82484         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
82485         (SIZE_MAX): Define if not already defined.
82486         (array_size_overflow): New function.
82487         (xalloc_die): Abort instead of exiting if 'error' returns.
82488         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
82489         (xmalloc, xrealloc): Use them.
82490         (xcalloc): Check for address arithmetic overflow.
82491         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
82492         a bit faster than strcpy.
82493
82494 2003-10-10  Simon Josefsson  <jas@extundo.com>
82495
82496         * modules/argp (Depends-on): Add restrict and strcase.
82497
82498 2003-10-10  Simon Josefsson  <jas@extundo.com>
82499
82500         * m4/argp.m4: Add AC_C_INLINE.
82501
82502 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82503
82504         Merge getpass from libc, plus a few fixes.
82505
82506         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
82507         Include <stdbool.h>.
82508         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
82509         __fsetlocking to empty.
82510         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
82511         do include <bits/libc-lock.h>.
82512         Do not include <fcntl.h>; not needed.
82513         [_LIBC]: Include <wchar.h>.
82514         (NOTCANCEL_MODE): New macro.
82515         (flockfile, funlockfile) [_LIBC]: New macros.
82516         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
82517         [!_LIBC]: New macros.
82518         (call_fclose): New function.
82519         (getpass): Use it.  Save tty stream separately; this simplifies the
82520         code and makes it more reliable if stdin happens to equal stdout.
82521         Invoke __fsetlocking on tty.
82522         Handle thread cancellation if needed.
82523         Namespace cleanup (use __tcgetattr, __getline).
82524         Use bool for Booleans.
82525         [USE_IN_LIBIO]: Handle wide streams.
82526         [!_LIBC]: Unconditionally do the fseek, since we don't know what
82527         stream might go where.
82528
82529         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
82530         doesn't have to include <stdio.h> before us.
82531         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
82532         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
82533         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
82534         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
82535         if not declared, so that we can use getpass.c code from libc without
82536         rewriting it.
82537         (flockfile, ftrylockfile, funlockfile): New macros.
82538
82539 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82540
82541         * modules/getpass: Depend on stdbool.
82542
82543 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82544
82545         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
82546
82547 2003-10-07  Karl Berry  <karl@gnu.org>
82548
82549         * config/config.{guess,sub}: update from config.
82550
82551 2003-10-06  Jim Meyering  <jim@meyering.net>
82552             Bruno Haible  <bruno@clisp.org>
82553
82554         This lets translators provide better translations for the
82555         "Written by ..." part of --version output.
82556         * lib/version-etc.h: Include stdarg.h.
82557         (version_etc_copyright): Declare as readonly.
82558         (version_etc): Make this function variadic with a NULL-terminated list
82559         of author name strings.
82560         (version_etc_va): New declaration.
82561         * lib/version-etc.c: Include stdarg.h, stdlib.h.
82562         (version_etc_copyright): Declare as readonly.
82563         (version_etc_va): New function. Provide a different translatable string
82564         for each possible number of authors < 10. Abbreviate when there are 10
82565         authors or more.
82566         (version_etc): Make this function variadic. Call version_etc_va.
82567         Suggestion from Gary V. Vaughan.
82568
82569         * lib/long-options.h (parse_long_options): Change prototype: the
82570         authors string is moved to the end and becomes variadic.
82571         * lib/long-options.c: Include stdarg.h.
82572         (parse_long_options): Make this function variadic, too.
82573         Call version_etc_va, not version_etc.
82574
82575 2003-10-06  Bruno Haible  <bruno@clisp.org>
82576
82577         * modules/version-etc-2: Remove file.
82578         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
82579
82580 2003-10-06  Bruno Haible  <bruno@clisp.org>
82581
82582         * modules/fatal-signal: New file.
82583         * MODULES.html.sh (func_all_modules): Add fatal-signal.
82584
82585 2003-10-06  Bruno Haible  <bruno@clisp.org>
82586
82587         * m4/fatal-signal.m4: New file.
82588         * m4/signalblocking.m4: New file, from GNU gettext.
82589
82590 2003-10-06  Bruno Haible  <bruno@clisp.org>
82591
82592         * lib/version-etc-2.h: Remove file.
82593         * lib/version-etc-2.c: Remove file.
82594
82595 2003-10-06  Bruno Haible  <bruno@clisp.org>
82596
82597         * lib/fatal-signal.h: New file, from GNU gettext.
82598         * lib/fatal-signal.c: New file, from GNU gettext.
82599
82600 2003-10-05  Paul Eggert  <eggert@twinsun.com>
82601
82602         * README: Rework advice for preventing empty .o files.
82603         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
82604         not <sys/types.h>.
82605
82606 2003-10-04  Karl Berry  <karl@gnu.org>
82607
82608         * lib/argp*: update from libc.
82609
82610 2003-10-04  Karl Berry  <karl@gnu.org>
82611
82612         * config/config.{guess,sub}: update from config.
82613
82614 2003-10-02  Bruno Haible  <bruno@clisp.org>
82615
82616         * modules/lchown (Include): Add lchown.h.
82617         * modules/time_r (Include): Use "..." syntax.
82618         * modules/xgetdomainname (Include): Add xgetdomainname.h.
82619
82620 2003-10-01  Simon Josefsson  <jas@extundo.com>
82621
82622         * MODULES.html.sh (func_all_modules): Move gethostname from section
82623         'based on' to section 'lacking' POSIX:2001.
82624
82625 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
82626
82627         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
82628         to output mode on the same stream.
82629
82630 2003-09-29  Paul Eggert  <eggert@twinsun.com>
82631
82632         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
82633         Fix arg typo in previous patch.
82634
82635 2003-09-28  Jim Meyering  <jim@meyering.net>
82636
82637         * lib/error.c: Correct cpp indentation.
82638
82639 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82640
82641         * modules/free: New file.
82642
82643 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82644
82645         * m4/free.m4: New file.
82646
82647 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82648
82649         * lib/minmax.h (MIN, MAX)
82650         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82651         Omit the special code that used __typeof__, since we worry that
82652         it could be more trouble than it's worth.  See:
82653         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82654         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82655
82656         * lib/free.c: New file.
82657
82658 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82659
82660         Trivial fixes to Makefile.am parts of module listings.
82661         * modules/strstr: Append strstr.h to lib_SOURCES.
82662         * modules/strcase: Likewise, for strcase.h.
82663
82664 2003-09-27  Karl Berry  <karl@gnu.org>
82665
82666         * config/mkinstalldirs: update from automake.
82667
82668 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82669
82670         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82671         (error_tail): Do not loop, reallocating temporary buffer, since
82672         the output cannot contain more wide characters than the input
82673         contains bytes, the size must be big enough already.  This avoids
82674         one potential size overflow calculation.  Check for size overflow
82675         when calculating temporary buffer size.  Free temporary buffer
82676         when done, if it was allocated with malloc; this plugs a memory
82677         leak.  Remove casts from void * to pointers, that are no longer
82678         needed now that we're assuming C89 or better.
82679
82680         Merge error changes from glibc.
82681
82682         * lib/error.c, error.h: Update copyright notice header to match glibc.
82683         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82684         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82685         Disable cancellation while printing error.
82686         * lib/error.h: Prepend __ to parameter names.
82687
82688 2003-09-26  Jim Meyering  <jim@meyering.net>
82689
82690         * lib/error.c (error_tail): Move some declarations
82691         into inner scope where the local variables are used.
82692
82693 2003-09-26  Bruno Haible  <bruno@clisp.org>
82694
82695         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
82696         stpncpy().
82697         Don't define stpncpy through config.h; it's now done through stpncpy.h.
82698
82699 2003-09-26  Bruno Haible  <bruno@clisp.org>
82700
82701         * lib/stpncpy.h (gnu_stpncpy): New declaration.
82702         (stpncpy): Define as alias for gnu_stpncpy.
82703         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
82704
82705 2003-09-25  Simon Josefsson  <jas@extundo.com>
82706
82707         * lib/xgetdomainname.h: New file.
82708         * lib/xgetdomainname.c: New file.
82709
82710 2003-09-25  Simon Josefsson  <jas@extundo.com>
82711             Bruno Haible  <bruno@clisp.org>
82712
82713         * modules/getdomainname: New file.
82714         * modules/xgetdomainname: New file.
82715         * MODULES.html.sh (func_all_modules): Add getdomainname,
82716         xgetdomainname.
82717
82718 2003-09-25  Simon Josefsson  <jas@extundo.com>
82719             Bruno Haible  <bruno@clisp.org>
82720
82721         * m4/getdomainname.m4: New file.
82722
82723 2003-09-25  Simon Josefsson  <jas@extundo.com>
82724             Bruno Haible  <bruno@clisp.org>
82725
82726         * lib/getdomainname.h: New file.
82727         * lib/getdomainname.c: New file.
82728
82729 2003-09-25  Karl Berry  <karl@gnu.org>
82730
82731         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82732
82733 2003-09-25  Karl Berry  <karl@gnu.org>
82734
82735         * config/install-sh: update from automake.
82736
82737 2003-09-25  Bruno Haible  <bruno@clisp.org>
82738
82739         * modules/version-etc-2: New file, from modules/version-etc with
82740         modifications.
82741         * MODULES.html.sh (func_all_modules): Add version-etc-2.
82742
82743 2003-09-25  Bruno Haible  <bruno@clisp.org>
82744
82745         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
82746         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
82747
82748 2003-09-24  Simon Josefsson  <jas@extundo.com>
82749
82750         * modules/xgethostname: Add xgethostname.h.
82751
82752 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82753
82754         * lib/linebuffer.c (freebuffer): Don't free the argument, just
82755         the buffer associated with the argument.  Bug reported by
82756         Simon Josefsson.
82757
82758 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82759
82760         * README: Document assumptions that 'int' is at least 32 bits
82761         wide, that integer arithmetic is 2's complement without overflow,
82762         that there are no holes in integer values, that adding sizes of
82763         two nonoverlapping objects can't overflow, and that all-bits-zero
82764         yields scalar zero.  Fix spelling and capitalization typos.
82765
82766 2003-09-19  Karl Berry  <karl@gnu.org>
82767
82768         * lib/argp.h: update from libc.
82769
82770 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82771
82772         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82773         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82774         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82775
82776 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82777
82778         * gnulib-tool: Use "test -h", not "test -L", for portability
82779         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82780         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82781         (sed_extract_prog): Issue s commands one-by-one, rather than
82782         using \| in one s command.
82783
82784 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82785
82786         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82787         input error, instead of returning NULL the next time we are called
82788         (and therefore losing track of errno).
82789
82790 2003-09-16  Bruno Haible  <bruno@clisp.org>
82791
82792         * gnulib-tool (func_create_testdir): Warn about duplicated
82793         dependencies.
82794
82795 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82796
82797         * modules/argmatch, modules/fatal, modules/obstack,
82798         modules/xalloc, modules/xgethostname: Sort dependencies by
82799         importance, not alphabetically.
82800
82801 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82802
82803         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
82804         fails, so that the caller gets the proper errno.
82805
82806         * lib/readutmp.c (read_utmp): Likewise.
82807         Check for fstat error.  Close stream and free storage
82808         when failing.
82809
82810 2003-09-14  Karl Berry  <karl@gnu.org>
82811
82812         * config/srclist.txt (strdup.c): disable for c89 changes.
82813
82814 2003-09-14  Jim Meyering  <jim@meyering.net>
82815
82816         * lib/getloadavg.c: Correct cpp indentation.
82817         * lib/strdup.c: Likewise.
82818         * lib/vasnprintf.c: Likewise.
82819
82820 2003-09-14  Bruno Haible  <bruno@clisp.org>
82821
82822         * modules/fwriteerror: New file.
82823         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82824
82825 2003-09-14  Bruno Haible  <bruno@clisp.org>
82826
82827         * lib/fwriteerror.h: New file.
82828         * lib/fwriteerror.c: New file.
82829
82830 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82831
82832         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82833         modules/xgethostname, modules/xalloc: Depend on exit.
82834
82835 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82836
82837         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82838
82839         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82840         and AC_MINIX, too, so that their extensions are available.
82841
82842         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82843         This macro has been superseded by gl_BACKUPFILE.
82844
82845         More patches to assume C89 or better.
82846
82847         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82848
82849         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82850         unconditionally.
82851         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82852         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82853         Include <string.h>, <stdlib.h> unconditionally.
82854         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82855         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82856         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82857         headers or for string.h.
82858         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82859         or strtoul.
82860
82861         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82862         headers.
82863         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82864         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82865         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82866         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82867         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82868         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82869         memcpy, memset.
82870         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82871         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82872         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82873         strtol.
82874         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82875         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82876         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82877         strtoul.
82878
82879 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82880
82881         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82882         * lib/obstack.c [!defined _LIBC]: Likewise.
82883         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82884         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82885         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82886
82887         More changes to assume C89 or better.
82888
82889         * lib/error.c (error_tail): Assume vprintf.
82890
82891         * lib/argmatch.c (getenv): Remove decl.
82892         * lib/progreloc.c (get_full_program_name): Define via prototype.
82893         * lib/setenv.c (clearenv): Likewise.
82894         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82895         needed.
82896         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82897         (malloc, memcpy): Remove decls.
82898         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82899         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82900         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82901         (memcpy): Remove macro.
82902         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82903         (__P): Remove.  All uses removed.
82904         (PTR): Remove.  All uses changed to void *.
82905         (CHAR_BIT, NULL): Remove.
82906         (spaces, zeros, memset_space, memset_zero)
82907         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82908         Remove.
82909         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82910         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82911         Define with prototype.
82912         Remove now-unnecessary prototype decl.
82913         (extra_args_spec): Assume ANSI C.  All uses changed.
82914         (extra_args_spec_iso): Remove.
82915         (my_strftime, emacs_strftimeu): Define via prototype.
82916         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82917         unconditionally.
82918         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82919         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82920         (strtoul, strtol): Remove decls.
82921         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82922         LONG_MAX): Remove.
82923         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82924         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82925         (LOCALE_PARAM_PROTO): New macro.
82926         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82927         (INTERNAL (strtol), strtol): Define with a prototype.
82928         (PARAMS): Remove.  All uses removed.
82929         * lib/tempname.c: Include <string.h> unconditionally.
82930         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82931         * lib/xgethostname.c (main): Define with a prototype.
82932         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82933         Include <stdlib.h> unconditionally.
82934         (calloc, malloc, realloc, free): Remove decls.
82935         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82936         Include <stdlib.h> unconditionally.  Sort include file names.
82937         (strtod): Remove.
82938         (xstrtod): Define with a prototype.
82939         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82940         (strtol, strtoul): Remove decls.
82941
82942 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82943
82944         More patches to assume C89 or better.
82945         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82946         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82947         string.h, memchr, STDC_HEADERS.
82948
82949 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82950
82951         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82952         Include <stdlib.h>, <string.h> unconditionally.
82953         Remove now-unnecessary cast to char *.
82954         * lib/strnlen.c: Include <string.h> unconditionally.
82955         * lib/yesno.c (yesno): Define with a prototype.
82956
82957 2003-09-11  Bruno Haible  <bruno@clisp.org>
82958
82959         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82960
82961 2003-09-10  Jim Meyering  <jim@meyering.net>
82962
82963         * lib/error.c: Correct indentation of cpp directives.
82964
82965 2003-09-10  Bruno Haible  <bruno@clisp.org>
82966
82967         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82968         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82969         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82970         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82971         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82972         <stdlib.h> and <string.h> checks.
82973         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82974         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82975
82976 2003-09-10  Bruno Haible  <bruno@clisp.org>
82977
82978         * lib/strcspn.c: Include <string.h> unconditionally.
82979         * lib/strpbrk.c: Include <string.h> unconditionally.
82980         * lib/strstr.c: Include <string.h> unconditionally.
82981         * lib/unicodeio.c: Include <string.h> unconditionally.
82982         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82983         * lib/unsetenv.c: Likewise.
82984         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82985         * lib/yesno.c: Include <stdlib.h> unconditionally.
82986         (rpmatch): Add prototype.
82987
82988 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82989
82990         More patches to assume C89 or better.
82991         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82992         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82993         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82994         or for string.h.
82995         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82996         stdlib.h.
82997         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82998         C headers.
82999         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
83000         string.h.
83001         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
83002         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
83003         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
83004         or for string.h.
83005         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
83006         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
83007         C headers.
83008         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
83009         memcpy.
83010         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
83011         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
83012         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
83013         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
83014         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
83015         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
83016         string.h, free.
83017         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
83018         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
83019         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
83020         C headers, or for string.h.
83021         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
83022         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
83023         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
83024         headers, memory.h, stdlib.h, string.h, strings.h.
83025         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
83026         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
83027         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
83028         strchr.
83029         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
83030         headers, memory.h, string.h.
83031         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
83032         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
83033         free.
83034         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
83035         headers.
83036         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
83037         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
83038         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
83039         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
83040         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
83041
83042 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83043
83044         More K&R removal.
83045
83046         * lib/acosl.c (main): Use a prototype.
83047         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
83048         tanl.c: Likewise.
83049
83050         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
83051
83052         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
83053         (getopt, etopt_long, getopt_long_only, _getopt_internal)
83054         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
83055         with a prototype.
83056         * lib/getopt.c (const): Remove macro.
83057         Include <string.h> unconditionally.
83058         (my_index): Remove; all uses changed to strchr.
83059         (strlen): Remove decl.
83060         (exchange): Remove forward decl; no longer needed.
83061         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
83062         Define with prototype.
83063         * lib/getopt1.c (const): Remove macro.
83064         (getopt_long, getopt_long_only, main): Define with prototype.
83065
83066         * lib/getugroups.c: Include <string.h> unconditionally.
83067
83068         * lib/getusershell.c: Include <stdlib.h> unconditionally.
83069         (getusershell, setusershell, endusershell, readname, main):
83070         Define with prototypes.
83071
83072         * lib/group-member.c: Include group-member.h first.
83073         Include <stdlib.h> unconditionally.
83074
83075         * lib/hard-locale.c: Include hard-locale.h first.
83076         Include <stdlib.h>, <string.h> unconditionally.
83077
83078         * lib/hash.c (free, malloc): Remove decls.
83079         Include <stdlib.h> unconditionally.
83080
83081         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
83082         (getenv): Do not declare.
83083
83084         * lib/idcache.c: Include <string.h> unconditionally.
83085
83086         * lib/long-options.c: Include long-options.h first, to test interface.
83087         Include <stdlib.h> unconditionally.
83088
83089         * lib/makepath.c: Include makepath.h first, to test interface.
83090         Include <stdlib.h> and <string.h> unconditionally.
83091
83092         * lib/linebuffer.c: Include <stdlib.h>.
83093         (free): Remove decl.
83094
83095         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
83096         stddef.h. rpl_malloc returns void *, not char *.
83097         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
83098         prototype.
83099
83100         * lib/md5.h: Include <limits.h> unconditionally.
83101         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
83102         (__P): Remove; all uses removed.
83103         * lib/md5.c: Include "md5.h" first.
83104         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
83105         md5_buffer, md5_process_bytes, md5_process_block):
83106         Define with prototypes.
83107         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
83108         * lib/sha.c: Include "sha.h" first.
83109         Include <stdlib.h>, <string.h> unconditionally.
83110
83111         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
83112         * lib/memcmp.c (__ptr_t): Likewise.
83113         * lib/memrchr.c (__ptr_t): Likewise.
83114         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
83115         Include <string.h> unconditionally.
83116         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
83117         * lib/memchr.c: Include <stdlib.h> unconditionally.
83118         * lib/memchr.c (LONG_MAX): Remove.
83119         * lib/memrchr.c (LONG_MAX): Likewise.
83120         * lib/memchr.c (__memchr): Define via a prototype.
83121         * lib/memrchr.c (__memrchr): Likewise.
83122         * lib/memcmp.c (__P): Remove, and remove all uses.
83123         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
83124         Remove forward decls; no longer needed.
83125         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
83126         Use types required by C89 in prototype.
83127
83128         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
83129         * lib/savedir.c: Likewise.
83130         * lib/mkdir.c (free): Remove decl.
83131         * lib/rmdir.c (rmdir): Define with a prototype.
83132         * lib/savedir.c: Include savedir.h first, to test interface.
83133
83134         * lib/mktime.c (STDC_HEADERS): Remove.
83135         Include <stdlib.h>, <string.h> unconditionally.
83136
83137         * lib/modechange.c: Include <stdlib.h> unconditionally.
83138         (malloc): Remove decl.
83139
83140         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
83141         (free): Remove decl.
83142
83143         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
83144         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
83145         (This type really should be intptr_t, but that's a C99ism.)
83146         (_obstack_memcpy): Remove: all uses changed to memcpy.
83147         Include <string.h> unconditionally.
83148         (struct obstack): Assume __STDC__ for types of members
83149         chunkfun, freefun, extra_arg.
83150         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
83151         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
83152         obstack_begin, obstack_specify_allocation,
83153         obstack_specify_allocation_with_arg, obstack_chunkfun,
83154         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
83155         Remove unprototyped decls and the macros that use them.
83156         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
83157         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
83158         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
83159         (defined __STDC__ && __STDC__)]:
83160         Remove nonprototyped code.
83161         Include <stdlib.h> unconditionally.
83162         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
83163         _obstack_allocated_p, _obstack_free, obstack_free,
83164         _obstack_memory_used, print_and_abort):
83165         Define using prototypes.
83166         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
83167         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
83168         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
83169         obstack_next_free, obstack_object_size, obstack_room) [0]:
83170         Remove unused, unprototyped code.
83171
83172         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
83173
83174         * lib/physmem.c (physmem_total, physmem_available, main): Define
83175         with prototypes.
83176
83177         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
83178         (main): Define with a prototype.
83179
83180         * lib/posixver.c (getenv): Remove decl.
83181
83182         * lib/putenv.c (malloc): Returns void *, not char *.
83183         Include <string.h> unconditionally.
83184         (strchr, memcpy, NULL): Do not define.
83185
83186         * lib/readtokens.c: Include readtokens.h first, to test interface.
83187         Include <stdlib.h>, <string.h> unconditionally.
83188         (init_tokenbuffer): Define with a prototype.
83189
83190         * lib/regex.c (PARAMS): Remove.  All uses removed.
83191         All uses of _RE_ARGS removed, too.
83192         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83193         unconditionally.
83194         (bzero): Assume memset exists.
83195         (memcmp, memcpy, NULL): Remove.
83196         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
83197         char, or assignments to local vars of type signed char.
83198         (init_syntax_once, PREFIX(extract_number_and_incr),
83199         PREFIX(print_partial_compiled_pattern),
83200         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
83201         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
83202         PREFIX(regex_grow_registers), PREFIX(regex_compile),
83203         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
83204         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
83205         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
83206         wcs_compile_range, byte_compile_range, truncate_wchar,
83207         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
83208         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
83209         count_mbs_length, wcs_re_match_2_internal,
83210         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
83211         PREFIX(alt_match_null_string_p),
83212         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
83213         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
83214         regfree, PREFIX(extract_number)): Define with prototype.  Remove
83215         now-unnecessary declaration, if any.
83216         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
83217         regcomp, regexec):
83218         Remove now-unnecessary casts among pointer types.
83219         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
83220
83221         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
83222         (free): Remove decl.
83223
83224         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
83225
83226         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
83227         (free): Remove decl.
83228
83229         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
83230         * lib/xgetcwd.c: Likewise.
83231
83232         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
83233         (free): Remove decl.
83234
83235         * lib/strchrnul.c (strchrnul): Define with a prototype.
83236         Fix bug: c_in was not converted to char before searching.
83237
83238         The following changes are not K&R related:
83239
83240         * lib/group-member.h: Include <sys/types.h>, so that this file is
83241         self-contained.
83242         * lib/makepath.h: Likewise.
83243
83244         * lib/getusershell.c (readname, default_index, line_size, readname):
83245         Use size_t, not int, for sizes.
83246         (readname): If the size overflows, report an error instead of
83247         looping forever.
83248
83249 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83250
83251         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
83252         libc.
83253
83254 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83255
83256         * README: New section: portability guidelines.
83257
83258 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83259
83260         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
83261         C89 spec.
83262
83263 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83264
83265         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
83266
83267 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83268
83269         Assume C89 or better; remove K&R cruft.
83270         A few of these changes were first proposed by Derek Robert Price
83271         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
83272
83273         * lib/addext.c: Include <string.h> unconditionally.
83274         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
83275         Don't declare getenv or malloc.
83276
83277         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
83278         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
83279         (NULL): Remove.
83280         (find_stack_direction, alloca): Use prototypes.
83281
83282         * lib/atexit.c (atexit): Define using a prototype.
83283
83284         * lib/basename.c, dirname.c, stripslash.c:
83285         Include <string.h> unconditionally.
83286
83287         * lib/bcopy.c: Include <stddef.h>.
83288         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
83289
83290         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
83291
83292         * lib/error.h (error, error_at_line, error_print_progname)
83293         [! (defined (__STDC__) && __STDC__)]: Remove decls.
83294         * lib/error.c: Include error.h first, to check interface.
83295         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83296         (VA_START): Remove; all uses changeed to va_start.
83297         (exit, strerror): Remove decls.
83298         (error_print_progname): Prototype uncondionally.
83299         Don't include <errno.h>; no longer needed.
83300         (private_strerror): Remove.
83301         (error_tail): Always define.
83302         (error, error_at_line): Assume C89 or better; always use prototypes.
83303         * lib/fatal.c: Include "fatal.h" first, to test interface.
83304         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83305         (VA_START): Remove; all uses changed to va_start.
83306         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
83307         this case.
83308         (exit): Remove decl.
83309         (fatal): Prototype unconditionally.  Assume va_start works.
83310         Abort at end, to pacify gcc.
83311
83312         * lib/euidaccess.c (main): Define with a prototype.
83313
83314         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
83315
83316         * lib/exitfail.c: Include <stdlib.h> unconditionally.
83317
83318         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
83319         prototypes.
83320         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
83321         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
83322         (getenv): Remove decl.
83323         (fnmatch): Define using a prototype.
83324         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
83325         (FCT): Define using a prototype.
83326
83327         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
83328
83329         * lib/gethostname.c: Include <stddef.h>.
83330         (gethostname): Define with prototype.  Length is size_t, not int.
83331
83332 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83333
83334         Assume C89 or better; remove K&R cruft.
83335         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
83336         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
83337         string.h, getenv, malloc.
83338         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
83339         headers.
83340         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
83341         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
83342         do not check for strerror.
83343         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
83344         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
83345         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
83346         do not check for doprnt or vprintf.
83347         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
83348         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
83349
83350 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83351
83352         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
83353         getversion.c should have been removed then, but was accidentally
83354         preserved.
83355
83356         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
83357         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
83358
83359 2003-09-08  Karl Berry  <karl@gnu.org>
83360
83361         * config/config.sub, config.guess, srclistvars.sh: update from savannah
83362                 config, forget about prep.
83363
83364         * config/depcomp, missing: update from automake.
83365
83366 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83367
83368         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
83369         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83370
83371 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83372
83373         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
83374         copy_tm_result.  Bug reported by Simon Josefsson in
83375         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83376
83377 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83378
83379         * m4/time_r.m4: New file.
83380         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
83381         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
83382         is. Check for timegm declaration.
83383         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
83384         Do not check for gmtime_r.
83385         Replace mktime if __mktime_internal does not exist and if mktime
83386         hasn't been replaced already.
83387
83388 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83389
83390         * lib/time_r.c, lib/time_r.h: New files.
83391
83392         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
83393         __localtime_r.
83394         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
83395         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
83396
83397         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
83398         __gmtime_r.
83399         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
83400         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
83401         Include <time_r.h>.
83402
83403         * lib/timegm.c: Switch to glibc implementation, with the following
83404         changes:
83405         [defined HAVE_CONFIG_H]: Include <config.h>.
83406         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
83407         (__mktime_internal) [!defined _LIBC]: New decl.
83408         (__gmtime_r) [!defined _LIBC]: New macro and function.
83409         (timegm): Use a prototype, since gnulib assumes C89.
83410         Do not bother declaring tmp to be const, as it's not really usefu.
83411         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
83412         (timegm): Declare only if HAVE_DECL_TIMEGM.
83413
83414 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83415
83416         * MODULES.html.sh (func_all_modules): Add time_r.
83417         * modules/time_r: New file.
83418         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
83419         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
83420
83421 2003-09-03  Paul Eggert  <eggert@twinsun.com>
83422
83423         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
83424         Bug reported by Lute Kamstra in
83425         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
83426
83427         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
83428         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
83429         course with correspondingly smaller numbers for tomorrow and
83430         yesterday.  From Tadayoshi Funaba.  Originally installed into
83431         sh-utils on 1999-08-07, but the patch got lost (I guess during the
83432         coreutils merge?).
83433
83434 2003-08-31  Simon Josefsson  <jas@extundo.com>
83435
83436         * modules/timegm: New file.
83437         * MODULES.html.sh (func_all_modules): Add timegm.
83438
83439 2003-08-31  Simon Josefsson  <jas@extundo.com>
83440
83441         * m4/timegm.m4: New file.
83442
83443 2003-08-31  Simon Josefsson  <jas@extundo.com>
83444
83445         * lib/timegm.h: New file.
83446         * lib/timegm.c: New file.  Based on
83447         wget-1.8.2/src/http.c:mktime_from_utc.
83448
83449 2003-08-31  Karl Berry  <karl@gnu.org>
83450
83451         * lib/argp.h: update from libc.
83452
83453 2003-08-28  Bruno Haible  <bruno@clisp.org>
83454
83455         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
83456         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
83457         followed by '#define fnmatch fnmatch_posix' gives an error.
83458
83459 2003-08-28  Bruno Haible  <bruno@clisp.org>
83460
83461         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
83462         warning on QNX, which defines O_BINARY to 000000.
83463
83464 2003-08-27  Jim Meyering  <jim@meyering.net>
83465
83466         * m4/mkstemp.m4: Require that the system mkstemp be able to create
83467         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
83468         would fail after 32.  Reported by Danny Levinson.  Details here:
83469         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
83470
83471 2003-08-24  Bruno Haible  <bruno@clisp.org>
83472
83473         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
83474         MSVC7 <stdio.h> is included later.
83475
83476 2003-08-22  Simon Josefsson  <jas@extundo.com>
83477
83478         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
83479
83480 2003-08-20  Karl Berry  <karl@gnu.org>
83481
83482         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
83483
83484 2003-08-20  Bruno Haible  <bruno@clisp.org>
83485
83486         * modules/progname: New file.
83487         * MODULES.html.sh (func_all_modules): Add progname.
83488
83489 2003-08-20  Bruno Haible  <bruno@clisp.org>
83490
83491         * lib/progname.h: New file, from GNU gettext.
83492         * lib/progname.c: New file, from GNU gettext.
83493         * lib/progreloc.c: New file, from GNU gettext.
83494
83495 2003-08-19  Jim Meyering  <jim@meyering.net>
83496
83497         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
83498         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
83499
83500 2003-08-19  Bruno Haible  <bruno@clisp.org>
83501
83502         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
83503         more.
83504
83505 2003-08-19  Bruno Haible  <bruno@clisp.org>
83506
83507         * lib/xstrdup.c: Assume <string.h> exists.
83508
83509 2003-08-18  Paul Eggert  <eggert@twinsun.com>
83510
83511         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
83512         in makefile rules.
83513
83514 2003-08-18  Jim Meyering  <jim@meyering.net>
83515
83516         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
83517         * m4/lib-ld.m4: Likewise.
83518
83519 2003-08-18  Jim Meyering  <jim@meyering.net>
83520
83521         * lib/setenv.h: Indent nested cpp directive.
83522         * lib/vasnprintf.c: Remove trailing blanks.
83523
83524 2003-08-17  Simon Josefsson  <jas@extundo.com>
83525
83526         * modules/xstrndup: New file.
83527         * MODULES.html.sh (func_all_modules): Add xstrndup.
83528
83529 2003-08-17  Simon Josefsson  <jas@extundo.com>
83530
83531         * modules/argp: Fix autoconf macro name. Add more dependencies.
83532
83533 2003-08-17  Simon Josefsson  <jas@extundo.com>
83534
83535         * m4/xstrndup.m4: New file.
83536
83537 2003-08-17  Simon Josefsson  <jas@extundo.com>
83538
83539         * m4/argp.m4: New file.
83540
83541 2003-08-17  Simon Josefsson  <jas@extundo.com>
83542             Bruno Haible  <bruno@clisp.org>
83543
83544         * lib/xstrndup.h: New file.
83545         * lib/xstrndup.c: New file.
83546
83547 2003-08-17  Bruno Haible  <bruno@clisp.org>
83548
83549         * modules/strndup (Files, Include): Add lib/strndup.h.
83550
83551 2003-08-17  Bruno Haible  <bruno@clisp.org>
83552
83553         * modules/euidaccess (Files): Add lib/euidaccess.h.
83554
83555 2003-08-17  Bruno Haible  <bruno@clisp.org>
83556
83557         * lib/strndup.h: New file.
83558
83559 2003-08-17  Bruno Haible  <bruno@clisp.org>
83560
83561         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
83562         like AC_GNU_SOURCE.
83563         * modules/extensions (configure.ac): Comment out the invocation of
83564         gl_USE_SYSTEM_EXTENSIONS.
83565
83566 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83567
83568         Merges from coreutils, etc.
83569         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
83570         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
83571         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
83572         fixing a typo.
83573         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
83574         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
83575
83576 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83577
83578         Document merge from coreutils.
83579         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
83580         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
83581         * modules/utime: Add m4/utimes-null.m4.
83582
83583 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83584
83585         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
83586         space, undoing this 2003-08-12 change:
83587         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83588
83589 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83590
83591         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
83592         strtoul.c from libc, undoing this 2003-08-12 change:
83593         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83594
83595 2003-08-16  Jim Meyering  <jim@meyering.net>
83596
83597         Merges from coreutils.
83598         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
83599         prefix.  Adjust cache variables similarly.  Create 500 rather than
83600         just 300 files, to exercise bug on Darwin6.5, too.
83601         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
83602         $missing_dir.
83603         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
83604         AM_SYS_POSIX_TERMIOS.
83605         Reported by mkc@mathdogs.com.
83606         Also change use of $am_cv_sys_posix_termios
83607         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
83608         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
83609         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
83610         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
83611         in /proc/mounts until it finds one with matching device number.  This
83612         is unnecessary when the FILE argument *is* a mount point.  No stat call
83613         is necessary in that case.  So, disable the statvfs-testing code on
83614         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
83615         as RedHat bug# 84846.
83616         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83617         to 1MB, so as not to render systems with no stack size limit (e.g.,
83618         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83619         Include <unistd.h>.  On some systems,
83620         it is required for the definition of _SC_PAGESIZE.
83621
83622 2003-08-16  Jim Meyering  <jim@meyering.net>
83623
83624         Merge from coreutils.
83625         * lib/xstrtoimax.c: #else #if -> #elif.
83626         * lib/xstrtoumax.c: Likewise.
83627
83628 2003-08-16  Jim Meyering  <jim@meyering.net>
83629
83630         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
83631         * m4/utimes.m4: Removed.
83632         * m4/utimes-null.m4: Renamed from utimes.m4.
83633
83634         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83635         to 1MB, so as not to render systems with no stack size limit (e.g.,
83636         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83637         Include <unistd.h>.  On some systems,
83638         it is required for the definition of _SC_PAGESIZE.
83639
83640 2003-08-16  Jim Meyering  <jim@meyering.net>
83641         and Paul Eggert  <eggert@cs.ucla.edu>
83642
83643         Merges from coreutils, etc.
83644
83645         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83646         using the latest version from cvs.  This avoids problems with #line
83647         directives using a vendor (Sun) compiler.
83648         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83649         Don't set GETGROUPS_LIB here; now it's
83650         done via getgroups.m4's wrapper function.
83651         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83652         rather than just in sh-util/configure.in, so that the
83653         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83654         same.
83655         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83656         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83657         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83658         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83659         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83660         Remove code that is now done by the newly-required macros.
83661         Append $(EXEEXT) to DF_PROG.
83662         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83663         Do not invoke or require the following here,
83664         since prereq.m4 or some gnulib .m4 now does this for us:
83665         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83666         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83667         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83668         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83669         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83670         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83671         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83672         AC_FUNC_OBSTACK.
83673         Do not replace the following functions, as this is now the job
83674         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83675         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83676         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83677         atexit getpass, strdup, getpagesize.
83678         Replace 'raise'.
83679         Do not check for the following functions, as this is now the job
83680         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83681         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83682         setregid.
83683         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83684         Check for sys/sysctl.h.
83685         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83686         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83687         of checking for ssize_t ourselves.
83688
83689         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83690         Require every macro that gnulib/modules/* suggests for us.
83691         (jm_PREREQ_ADDEXT): New macro.
83692         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
83693         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
83694
83695         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
83696         (gl_PHYSMEM): Use it.
83697         Also check for `table' function.
83698         Check for new headers and functions.
83699         Add check for sys/sysmp.h.
83700         With suggestions from Kaveh Ghazi.
83701         Ignore headers that are present but cannot be compiled.  This
83702         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
83703         C 5.4.
83704
83705 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83706
83707         Document merge from coreutils.
83708         * modules/userspec: Depend on posixver.
83709         * modules/strftime: Depend on tzset.
83710
83711 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83712
83713         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83714         rather than tab, after '#' in shell-script copyright notices.
83715         Suggested by Bruno Haible.
83716
83717 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83718
83719         * config/srclist-update: Use three spaces, rather than tab, after '#'
83720         in shell-script copyright notices.  Suggested by Bruno Haible.
83721         Remove unnecessary parenthesization in regular expression.
83722
83723 2003-08-15  Jim Meyering  <jim@meyering.net>
83724
83725         Merge from coreutils.
83726         * lib/xgethostname.c: Include <stdlib.h>.
83727         (xghostname): Don't exit for anything other than memory-related
83728         failure; just return NULL.
83729         * lib/userspec.c: Include "posixver.h".
83730         (parse_user_spec): Accept `.' as a separator only
83731         in pre-POSIX-200112 mode.
83732         * lib/strtoimax.c: Use #elif rather than #else #if.
83733         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83734         Remove function, now that we can rely on a working tzset function.
83735         [!_LIBC]: Ensure that the required autoconf test has been run.
83736         [!defined _NL_CURRENT && HAVE_STRFTIME]:
83737         Use underlying_strftime for %r.
83738         * lib/sha.c: Merge in some clean-up and optimization changes from
83739         glibc.
83740         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
83741         Ensure that it is a multiple of 64.
83742         Rearrange loop exit tests so as to avoid performing an
83743         additional fread after encountering an error or EOF.
83744         * lib/realloc.c: Update copyright date.
83745
83746 2003-08-15  Jim Meyering  <jim@meyering.net>
83747         and Paul Eggert  <eggert@twinsun.com>
83748
83749         Merge from coreutils.
83750         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
83751         member but strut utmpx does not.  Needed for AIX 4.3.3.
83752         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
83753
83754 2003-08-15  Jim Meyering  <jim@meyering.net>
83755         and Paul Eggert  <eggert@cs.ucla.edu>
83756
83757         Merges from coreutils, etc.
83758         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83759         Require gl_FUNC_TZSET_CLOBBER.
83760         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83761         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83762         members.
83763
83764 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83765
83766         Help the merge from coreutils.
83767         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83768         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83769         * m4/tzset.m4: Use it too.
83770
83771 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83772
83773         * modules/tzset: New file.
83774
83775 2003-08-14  Jim Meyering  <jim@meyering.net>
83776
83777         Merges from coreutils.
83778         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83779         variable names, rather than @FNMATCH_H@.
83780         * modules/alloca: Likewise for $(ALLOCA_H).
83781
83782         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83783         the three copies of the literal target, `fnmatch.h'.
83784         * modules/alloca (alloca.h): Likewise.
83785
83786 2003-08-14  Jim Meyering  <jim@meyering.net>
83787
83788         Merge from coreutils.
83789         * m4/tzset.m4: New file.
83790         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83791         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83792         otherwise, AIX 5.1 systems would end up using the latter.
83793         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
83794         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
83795         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
83796         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
83797
83798 2003-08-14  Jim Meyering  <jim@meyering.net>
83799
83800         Merge from coreutils.
83801         * lib/obstack.h: Whitespace changes.
83802         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
83803         and xcalloc return values.
83804         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
83805         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
83806         hang on OSF/1 5.1 for DIR on both local and remote file systems.
83807         Reported by (and fix confirmed by) Nelson H. F. Beebe.
83808         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83809         error from mntctl.
83810         Use mntctl's return value to drive the entry-processing loop, since
83811         we can't rely on the value of the vmt_length member in the last
83812         entry.  On some systems doing so could result in exhausting
83813         virtual memory.  Based in part on a patch from Mike Jetzer.
83814
83815 2003-08-14  Jim Meyering  <jim@meyering.net>
83816         and Paul Eggert  <eggert@twinsun.com>
83817
83818         Merges from coreutils, plus other fixes.
83819         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83820         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83821         for credits and details.  Thanks to Kaveh Ghazi for helping
83822         to keep these files in sync.
83823         (ARRAY_SIZE): Define it.
83824         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83825         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83826         (memcasecmp): Don't assume size_t fits in unsigned int.
83827         Remove casts and duplicate code.
83828         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83829         (memcpy): Remove definition.
83830         Merge in some clean-up and optimization changes from glibc.
83831         [BLOCKSIZE]: Move definition to top of file.
83832         Ensure that it is a multiple of 64.
83833         Rearrange loop exit tests so as to avoid performing an
83834         additional fread after encountering an error or EOF.
83835         * lib/md5.h (md5_uintptr): Define.
83836         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83837         return to the initial working directory.  Preserve errno
83838         for caller.
83839         * lib/idcache.c: Include "xalloc.h".
83840         (xmalloc, xrealloc): Remove decls.
83841         (getuser): Remove casts no longer required in C89.
83842         * lib/human.c: Include stdio.h, for sprintf.
83843         * lib/group-member.c: Include "xalloc.h".
83844         (xmalloc, xrealloc): Remove decls.
83845         (get_group_info): Remove casts no longer required in C89.
83846         * lib/getusershell.c (readname): Remove casts no longer required in
83847         C89.
83848         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83849         * lib/getline.c: Whitespace fix, from coreutils.
83850
83851 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83852
83853         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83854         Check for isascii.
83855
83856         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83857         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83858         Undo previous (whitespace-only) change.
83859
83860 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83861
83862         * lib/exclude.c: Include <ctype.h>
83863         (IN_CTYPE_DOMAIN): New macro.
83864         (is_space): New fn.
83865         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83866         and empty lines.
83867
83868         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83869         Undo previous (whitespace-only) change.
83870
83871 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83872
83873         * config/srclist-update: Change update back to the old behavior,
83874         leaving whitespace alone.  Use one 'sed' command rather than a
83875         pipeline.
83876         (fixlicense): Now a variable, not a function.
83877         (remove_trailing_blanks): Remove.
83878         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83879         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83880         Undo previous (whitespace-only) change.
83881
83882 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83883
83884         Merge from coreutils.
83885         * modules/euidaccess: Add lib_SOURCES, include for new
83886         file euidaccess.h
83887
83888 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83889
83890         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83891         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83892         Normalize leading white space and remove trailing white space.
83893
83894         Merge from coreutils
83895         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83896
83897         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83898         0.12.1.  These files are now being upgraded automatically by
83899         ../config/srclist-update.
83900
83901 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83902
83903         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83904         Normalize leading white space and remove trailing white space.
83905         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83906         notice, as per ../config/srclist-update.
83907
83908         Merge from coreutils.
83909         * lib/euidaccess.h: New file.
83910         * lib/euidaccess.c: Include it.
83911         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83912         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83913         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83914
83915 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83916
83917         * config/srclist-update: Add copyright notice.
83918         (remove_id_lines, remove_trailing_blanks): New constants.
83919         (fixfile): Use them to normalize spacing a bit in copied files.
83920         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83921         Normalize leading white space and remove trailing white space.
83922
83923         * config/texinfo.tex: Sync with texinfo.
83924
83925         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83926         strtoul.c from libc, to merge coreutils whitespace changes.
83927
83928         * config/srclist.txt: Get the following m4 files from gettext:
83929         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83930         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83931         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83932         wint_t.m4.
83933
83934 2003-08-12  Karl Berry  <karl@gnu.org>
83935
83936         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83937         been made.
83938
83939 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83940
83941         * modules/gnu-source, m4/gnu-source.m4:
83942         Remove; we're assuming Autoconf 2.54 or later now.
83943         Suggested by Bruno Haible.
83944         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83945
83946 2003-08-11  Bruno Haible  <bruno@clisp.org>
83947
83948         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83949
83950 2003-08-11  Bruno Haible  <bruno@clisp.org>
83951
83952         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83953         (vasnprintf): Use it instead of wcslen.
83954
83955 2003-08-11  Bruno Haible  <bruno@clisp.org>
83956
83957         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83958         value to ensure that _Bool promotes to int. Use #define for _Bool when
83959         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83960
83961 2003-08-10  Karl Berry  <karl@gnu.org>
83962
83963         * lib/regex.h: update from libc (whitespace fix).
83964
83965 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83966
83967         Merge some files from coreutils.  These changes were
83968         originally made by Jim Meyering.
83969         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83970         many older Unixes require this.
83971         * lib/alloca.c (alloca): Remove cast to argument of free;
83972         no longer needed in C89.
83973         * lib/alloca_.h, regex.h: Fix white space to match
83974         what GNU indent does.
83975
83976 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83977
83978         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83979         apparently Emacs's Unicode mode got confused before my 2003-08-05
83980         checkin.
83981
83982 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83983
83984         * m4/extensions.m4: New file.
83985         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83986         Require gl_USE_SYSTEM_EXTENSIONS.
83987         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83988         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83989
83990 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83991
83992         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83993         * modules/extensions, modules/gnu-source: New files.
83994         * modules/timespec, modules/unlocked-io: Depend on extensions.
83995
83996 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83997
83998         * modules/restrict: New file.
83999         * MODULES.html.sh (func_all_modules): Add restrict.
84000         * modules/regex: Depend on restrict.
84001
84002 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84003
84004         * m4/restrict.m4: New file.
84005         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
84006
84007 2003-08-07  Bruno Haible  <bruno@clisp.org>
84008
84009         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
84010         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
84011
84012 2003-08-07  Bruno Haible  <bruno@clisp.org>
84013
84014         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
84015         makes the module 'getndelim2' compatible with the module 'getline'.
84016
84017 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84018
84019         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
84020         byte with "\201" to avoid glitches when editing that source file
84021         with multi-gnome-terminal.
84022
84023 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84024
84025         * lib/bumpalloc.h: Remove.
84026
84027 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84028
84029         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
84030         * modules/bumpalloc: Remove.
84031
84032 2003-08-04  Paul Eggert  <eggert@twinsun.com>
84033
84034         * lib/getloadavg.c: Change copyright notice and spacing to conform to
84035         GNU coding style.
84036
84037         Merge from coreutils.
84038         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
84039         1. From glibc.
84040         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
84041         from Karl Berry, implemented by Jim Meyering.
84042         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
84043         from Dmitry V. Levin.
84044         Remove anachronistic cast of xrealloc.
84045         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
84046         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
84047         type. Otherwise, it wouldn't compile with at least /bin/cc on
84048         ymp-cray-unicos9.0.2.X.
84049         Combine two mostly-identical uses of alloca into one.
84050         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
84051
84052 2003-08-04  Dave Love  <d.love@dl.ac.uk>
84053
84054         [From Emacs.]
84055
84056         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
84057         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
84058         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
84059         obsolete NLIST_NAME_UNION.
84060         [__GNU__]: Undef BSD and FSCALE.
84061         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
84062
84063 2003-08-03  Paul Eggert  <eggert@twinsun.com>
84064
84065         * lib/stdbool_.h (_Bool): Make it signed char, instead of
84066         an enum type, so that it's guaranteed to promote to int.  See:
84067         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
84068
84069 2003-08-03  Karl Berry  <karl@gnu.org>
84070
84071         * config/depcomp: update from automake.
84072
84073 2003-07-31  Paul Eggert  <eggert@twinsun.com>
84074
84075         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
84076         (strerror): Don't assume that a printable int fits in 14 bytes.
84077
84078 2003-07-31  Bruno Haible  <bruno@clisp.org>
84079
84080         * modules/getpass-gnu: New file.
84081         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
84082
84083 2003-07-31  Bruno Haible  <bruno@clisp.org>
84084
84085         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
84086
84087 2003-07-24  Karl Berry  <karl@gnu.org>
84088
84089         * config/missing: update from automake.
84090
84091 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
84092             Bruno Haible  <bruno@clisp.org>
84093
84094         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
84095         * lib/getline.c (getline, getdelim): Likewise.
84096         Remove _GNU_SOURCE define; now it's defined in config.h through
84097         m4/getline.m4.
84098
84099 2003-07-23  Karl Berry  <karl@gnu.org>
84100
84101         * config/config.sub: update from prep.
84102
84103 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84104
84105         * modules/xalloc (Depends-on): Add exitfail.
84106         * modules/xmemcoll: Likewise.
84107
84108 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84109
84110         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
84111         over-parenthesization in macros.
84112
84113         Sync with coreutils.
84114
84115         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
84116         required by C99.
84117
84118         Use `exit_failure' for xalloc and xmemcoll instead of their own
84119         private exit-failure variables.
84120         * lib/xalloc.h (xalloc_exit_failure): Remove.
84121         * lib/xmalloc.c: Likewise.  Include exitfail.h.
84122         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
84123         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
84124         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
84125         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
84126
84127 2003-07-20  Jim Meyering  <jim@meyering.net>
84128
84129         * modules/closeout (Depends-on): Add exitfail.
84130         Suggestion from Bruno Haible.
84131
84132 2003-07-19  Karl Berry  <karl@gnu.org>
84133
84134         * config/config.sub: update from prep.
84135
84136 2003-07-18  Paul Eggert  <eggert@twinsun.com>
84137
84138         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
84139         Remove.
84140         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
84141         to test that it can stand by itself.  Include "exitfail.h".
84142         Clients should set exit_failure instead.
84143         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
84144
84145 2003-07-18  Bruno Haible  <bruno@clisp.org>
84146
84147         * modules/getndelim2: New file.
84148         * modules/getline: Share files with module getndelim2.
84149         * modules/getnline: Depend on getndelim2 instead of sharing files with
84150         it. Add getnline.c to lib_SOURCES.
84151         * MODULES.html.sh (func_all_modules): Add getndelim2.
84152
84153 2003-07-18  Bruno Haible  <bruno@clisp.org>
84154
84155         * m4/getndelim2.m4: New file.
84156         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
84157         invoke gl_PREREQ_GETNDELIM2.
84158         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
84159         gl_PREREQ_GETNDELIM2.
84160         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
84161         gl_GETNDELIM2.
84162
84163 2003-07-18  Bruno Haible  <bruno@clisp.org>
84164
84165         * lib/getndelim2.h: New file.
84166         * lib/getndelim2.c: Make into a module of its own. Include config.h,
84167         getndelim2.h.
84168         (getndelim2): Make non-static. Change return type to ssize_t.
84169         * lib/getline.h: Change argument names.
84170         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
84171         * lib/getnline.c: Include getndelim2.h.
84172
84173 2003-07-18  Andreas Schwab  <schwab@suse.de>
84174
84175         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
84176
84177 2003-07-17  Karl Berry  <karl@gnu.org>
84178
84179         * config/config.sub: update from prep.
84180
84181 2003-07-17  Bruno Haible  <bruno@clisp.org>
84182
84183         * modules/getnline: New file.
84184         * modules/getline: Add lib/getndelim2.c to source file list.
84185         * MODULES.html.sh (func_all_modules): Add getnline.
84186
84187 2003-07-17  Bruno Haible  <bruno@clisp.org>
84188
84189         * m4/getnline.m4: New file.
84190
84191 2003-07-17  Bruno Haible  <bruno@clisp.org>
84192
84193         * m4/Makefile.am.in: Remove file.
84194         * m4/Makefile.am: Remove file.
84195         * m4/Makefile.in: Remove file.
84196
84197 2003-07-17  Bruno Haible  <bruno@clisp.org>
84198
84199         * lib/getnline.h: New file.
84200         * lib/getnline.c: New file.
84201         * lib/getndelim2.c: New file, extracted from getline.c.
84202         (getndelim2): Renamed from getdelim2, with added nmax argument.
84203         * lib/getline.c: Include getndelim2.c.
84204         (getdelim2): Moved out to getndelim2.c.
84205         (getline, getdelim): Update.
84206
84207 2003-07-17  Bruno Haible  <bruno@clisp.org>
84208
84209         * lib/Makefile.am: Remove file.
84210         * lib/Makefile.in: Remove file.
84211
84212 2003-07-17  Bruno Haible  <bruno@clisp.org>
84213
84214         * configure.in: Remove file.
84215         * Makefile.in: Remove file.
84216
84217 2003-07-17  Bruno Haible  <bruno@clisp.org>
84218
84219         * MODULES.html.sh: Put the </BODY> right before </HTML>.
84220
84221 2003-07-16  Karl Berry  <karl@gnu.org>
84222
84223         * config/srclist-update: was running fixlicense twice, which caused
84224                 texinfo.tex to be nullified for some reason.  Simplify,
84225                 $gplsrc is no longer needed as far as I can see?
84226
84227 2003-07-16  Jim Meyering  <jim@meyering.net>
84228
84229         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
84230
84231 2003-07-15  Paul Eggert  <eggert@twinsun.com>
84232
84233         * config/srclist.txt: Get the following files from gettext-runtime/intl
84234         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
84235         ref-del.sin.  From Bruno Haible.
84236         * config/srclist-update (fixfile): Change grep pattern again, since the
84237         previous fix didn't work (there was another trailing $).  Use
84238         '[$]' to escape the $s.
84239
84240 2003-07-15  Karl Berry  <karl@gnu.org>
84241
84242         * lib/vasnprintf.c: update from gettext.
84243
84244 2003-07-15  Karl Berry  <karl@gnu.org>
84245
84246         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
84247         gets expanded when surrounded by '$'.
84248
84249 2003-07-15  Jim Meyering  <jim@meyering.net>
84250
84251         * modules/save-cwd: Don't depend on error.  From Derek Price.
84252
84253 2003-07-15  Jim Meyering  <jim@meyering.net>
84254
84255         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
84256
84257 2003-07-14  Simon Josefsson  <jas@extundo.com>
84258
84259         * modules/mempcpy: New file.
84260         * MODULES.html.sh (func_all_modules): Add mempcpy.
84261
84262 2003-07-14  Simon Josefsson  <jas@extundo.com>
84263
84264         * m4/mempcpy.m4: New file.
84265
84266 2003-07-14  Simon Josefsson  <jas@extundo.com>
84267
84268         * lib/mempcpy.h: New file.
84269         * lib/mempcpy.c: New file.
84270
84271 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84272
84273         * modules/getdate, modules/posixtm: Depend on mktime.
84274
84275 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84276
84277         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
84278         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
84279         unicodeio.c, unicodeio.h, unlocked-io.h:
84280         Switch from LGPL to GPL.
84281
84282 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84283
84284         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
84285         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
84286         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
84287         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
84288         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
84289         updated automatically by ../config/srclist-update.  This changes
84290         their license from LPGL to GPL.
84291
84292 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84293
84294         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
84295         assumed to refer to the root of the most recent stable gettext version.
84296         * config/srclistvars.sh: Add defaults for eggert.
84297         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
84298         Match "This program" as well as "The program".  This is needed
84299         for gettext.
84300
84301 2003-07-14  Jim Meyering  <jim@meyering.net>
84302
84303         Don't emit diagnostics.  Let callers do that.
84304         * lib/save-cwd.c: Don't include "error.h".
84305         (save_cwd): Don't call error.  Ensure that errno is valid
84306         when returning nonzero.
84307
84308         * lib/save-cwd.h (restore_cwd): Update prototype.
84309         * lib/save-cwd.c (restore_cwd): Remove two parameters.
84310         Simplify.  Don't call error upon failure.  Let callers do that.
84311         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
84312         when auditing is enabled.  But don't bother updating the #if.
84313
84314 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
84315
84316         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
84317         it breaks C++ compilation.
84318         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
84319
84320 2003-07-10  Simon Josefsson  <jas@extundo.com>
84321
84322         * modules/strchrnul (Makefile.am): Add strchrnul.h.
84323
84324 2003-07-10  Jim Meyering  <jim@meyering.net>
84325
84326         * m4/clock_time.m4: Remove trailing blank.
84327         * m4/intmax_t.m4: Likewise.
84328
84329 2003-07-10  Jim Meyering  <jim@meyering.net>
84330
84331         * lib/vasnprintf.c: Remove trailing blanks.
84332         Make cpp indentation consistent.
84333
84334 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84335
84336         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
84337         posixver.c, strftime.c, strnlen.c, strverscmp.c:
84338         Switch from LGPL to GPL.
84339
84340 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84341
84342         * config/srclist.txt: Sort sublists.  Add
84343         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
84344         that differ from gnulib for one reason or another; we'd like this list
84345         to be smaller but for now let's document what we have.
84346
84347 2003-07-08  Paul Eggert  <eggert@twinsun.com>
84348
84349         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
84350         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
84351         and sweeter "eval x=$x".
84352         * config/srclist.txt: Get lib/argp* from glibc.
84353
84354 2003-07-07  Paul Eggert  <eggert@twinsun.com>
84355
84356         * lib/mktime.c: Fix some boundary cases and remove need for floating
84357         point.
84358
84359         Issue a compile-time diagnostic if time_t is floating point, or if
84360         two's complement arithmetic is not in effect, or if arithmetic
84361         right shift does not propagate the sign.  These assumptions were
84362         all in the original code but they weren't checked.
84363
84364         (TIME_T_MIDPOINT, verify): New macros.
84365         (__isleap): Remove; it has integer overflow problems.
84366         (leapyear): New function, without those problems.
84367         (ydhms_tm_diff): Remove; splitting into two parts.
84368         (ydhms_diff): New function, containing the arithmetic part of
84369         the old ydhms_tm_diff function.  Issue a compile-time
84370         diagnostic if we are not using C99 integer division.
84371         Avoid casts when possible.
84372         (guess_time_tm): New function, containing the checking part of
84373         the old ydhms_tm_diff function.  Return the new value, rather than
84374         the difference between it and the old.  Accept a new argument T
84375         so that *T specifies the old value.  Check for overflow in the result.
84376
84377         (__mktime_internal): Use a time_t offset, not a long int offset.
84378         This undoes the 2003-06-04 change, which is no longer needed now
84379         that we have better overflow checking.
84380         (localtime_offset): Likewise.
84381
84382         (__mktime_internal): Avoid harmful overflow on hosts where time_t
84383         and long are 64-bit but int is only 32-bit.
84384         (ydhms_diff): Use long int to store year1 and yday1.
84385         Issue a compile-time diagnostic if long int is not wide enough.
84386
84387         (__mktime_internal): Use long int to store adjusted year and yday.
84388         Use plain C rather than preprocessor commands, if that doesn't
84389         affect efficiency.
84390         Check for overflow (and try to repair) after each probe
84391         rather than checking only at the very end.  This avoids some bugs
84392         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
84393         does not equal GMT offset at maximum time).
84394         Use integer to check for overflow rather than floating point; this
84395         is more portable to non-IEEE hosts, and is a tad faster.
84396         When we detect that we are oscillating between two values,
84397         don't check whether tm_isdst has the requested value, since
84398         we already know the answer.  When tm_isdst has the wrong value,
84399         use a different heuristic to find the right one, based on the
84400         extreme values actually observed in practice in tz2003a,
84401         rather than the (overly optimistic) "previous 3 calendar quarters".
84402
84403         (not_equal_tm, print_tm, check_result): Use "const T" rather than
84404         "T const" to accommodate glibc style.
84405         (check_result): Use less-confusing report format.  "long" -> "long int.
84406         (main): Likewise.
84407         Don't loop if the iteration overflows time_t.
84408         Allow a negative step in the iteration.
84409
84410 2003-07-06  Karl Berry  <karl@gnu.org>
84411
84412         * config/depcomp: update from automake.
84413         * config/config.sub: update from prep.
84414
84415 2003-07-03  Karl Berry  <karl@gnu.org>
84416
84417         * config/config.guess: update from prep.
84418
84419 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84420
84421         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
84422         xreadlink.c now includes it unconditionally.
84423
84424 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84425
84426         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
84427         having it depend on HAVE_SYS_TYPES_H.
84428
84429 2003-07-01  Bruno Haible  <bruno@clisp.org>
84430
84431         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
84432         <sys/types.h> should be sufficient.
84433         Reported by Paul Eggert.
84434
84435 2003-06-26  Karl Berry  <karl@gnu.org>
84436
84437         * config/depcomp: update from automake.
84438
84439 2003-06-26  Bruno Haible  <bruno@clisp.org>
84440
84441         * modules/human: Depend on module stdbool.
84442
84443 2003-06-25  Bruno Haible  <bruno@clisp.org>
84444
84445         * modules/readlink: New file.
84446         * modules/xreadlink: Depend on it.
84447         * MODULES.html.sh (func_all_modules): Add readlink.
84448
84449 2003-06-25  Bruno Haible  <bruno@clisp.org>
84450
84451         * m4/readlink.m4: New file.
84452
84453 2003-06-25  Bruno Haible  <bruno@clisp.org>
84454
84455         * lib/readlink.c: New file.
84456
84457 2003-06-22  Karl Berry  <karl@gnu.org>
84458
84459         * config/srclist.txt: update mkinstalldirs from automake.
84460         * config/mkinstalldirs: update.
84461
84462 2003-06-22  Bruno Haible  <bruno@clisp.org>
84463
84464         Portability to mingw32.
84465         * m4/ssize_t.m4: New file, from GNU gettext.
84466         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
84467         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
84468
84469 2003-06-22  Bruno Haible  <bruno@clisp.org>
84470
84471         * modules/safe-read: Add m4/ssize_t.m4.
84472         * modules/xreadlink: Add m4/ssize_t.m4.
84473
84474 2003-06-20  Bruno Haible  <bruno@clisp.org>
84475
84476         Assume C89, so PARAMS isn't needed.
84477         * lib/unicodeio.h (PARAMS): Remove.
84478         * lib/unicodeio.c: Don't use PARAMS.
84479
84480 2003-06-18  Karl Berry  <karl@gnu.org>
84481
84482         * config/config.{guess,sub}: update from prep.
84483
84484 2003-06-18  Jim Meyering  <jim@meyering.net>
84485
84486         Merge changes from coreutils.
84487         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
84488         Remove explicit declarations of xmalloc and realloc.
84489         Include xalloc.h.
84490         (read_utmp): Remove anachronistic cast of xmalloc.
84491
84492 2003-06-17  Paul Eggert  <eggert@twinsun.com>
84493
84494         Assume C89, so PARAMS isn't needed.
84495         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
84496         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
84497         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
84498         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
84499         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
84500         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
84501         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
84502         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
84503         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
84504         lib/xstrtod.h, lib/xstrtol.h: Likewise.
84505         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
84506         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
84507         no longer needed. Anyway, config.h should always be included before any
84508         other file.
84509
84510 2003-06-11  Simon Josefsson  <jas@extundo.com>
84511
84512         * modules/sysexits: New file.
84513         * MODULES.html.sh (func_all_modules): Add sysexits.
84514
84515 2003-06-11  Simon Josefsson  <jas@extundo.com>
84516
84517         * lib/sysexit_.h: New file.
84518
84519 2003-06-11  Derek Price  <derek@ximbiot.com>
84520
84521         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
84522         necessary.
84523
84524 2003-06-11  Bruno Haible  <bruno@clisp.org>
84525
84526         * m4/sysexits.m4: New file.
84527
84528 2003-06-10  Simon Josefsson  <jas@extundo.com>
84529
84530         * lib/argp.h: New file, from glibc.
84531         * lib/argp-ba.c: New file, from glibc.
84532         * lib/argp-eexst.c: New file, from glibc.
84533         * lib/argp-fmtstream.c: New file, from glibc.
84534         * lib/argp-fmtstream.h: New file, from glibc.
84535         * lib/argp-fs-xinl.c: New file, from glibc.
84536         * lib/argp-help.c: New file, from glibc.
84537         * lib/argp-namefrob.h: New file, from glibc.
84538         * lib/argp-parse.c: New file, from glibc.
84539         * lib/argp-pv.c: New file, from glibc.
84540         * lib/argp-pvh.c: New file, from glibc.
84541         * lib/argp-xinl.c: New file, from glibc.
84542
84543 2003-06-10  Simon Josefsson  <jas@extundo.com>
84544
84545         * modules/strchrnul: New file.
84546
84547 2003-06-10  Simon Josefsson  <jas@extundo.com>
84548
84549         * modules/argp: New file.
84550
84551 2003-06-10  Simon Josefsson  <jas@extundo.com>
84552
84553         * m4/strchrnul.m4: New file.
84554
84555 2003-06-10  Simon Josefsson  <jas@extundo.com>
84556
84557         * lib/strchrnul.h: New file.
84558         * lib/strchrnul.c: New file.
84559
84560 2003-06-10  Bruno Haible  <bruno@clisp.org>
84561
84562         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
84563
84564 2003-06-07  Karl Berry  <karl@gnu.org>
84565
84566         * config/config.{guess,sub}: update from prep.
84567
84568 2003-06-07  Jim Meyering  <jim@meyering.net>
84569
84570         * modules/strtod: Use $(...) notation, not @...@ for
84571         AC_REPLACE'd variables.
84572         * modules/localcharset: Likewise.
84573
84574 2003-06-07  Jim Meyering  <jim@meyering.net>
84575
84576         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
84577         in place of my name in the copyright comment.
84578         Remove definition and uses of __P.
84579
84580         From coreutils.
84581         * lib/stat.c: Don't declare xmalloc explicitly.
84582         Instead, include "xalloc.h".
84583         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
84584         xrealloc, and xcalloc return values.
84585         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
84586         Improve comment.
84587         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
84588
84589 2003-06-07  Bruno Haible  <bruno@clisp.org>
84590
84591         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
84592         avoid AC_CONFIG_LINKS.
84593         * modules/fnmatch (Makefile.am): Use explicit creation rule for
84594         fnmatch.h, to avoid AC_CONFIG_LINKS.
84595         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
84596
84597 2003-06-07  Bruno Haible  <bruno@clisp.org>
84598
84599         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
84600         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
84601         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84602         directory.
84603         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
84604         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84605         directory.
84606
84607 2003-06-06  Jim Meyering  <jim@meyering.net>
84608
84609         Merge from coreutils.
84610         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
84611         Consolidate declarations and initializations of *_base* locals.
84612
84613         Merge from coreutils.
84614         This avoids a core dump on systems without GNU putenv,
84615         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
84616         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
84617         (unsetenv): New static function, from GNU libc.
84618         (rpl_putenv): Use it.
84619
84620         * lib/modechange.c: Remove trailing blanks.
84621
84622         Merge from coreutils.
84623         * lib/fsusage.c: Remove declaration of statfs.
84624         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
84625
84626         * lib/posixtm.c: Include <stdbool.h> unconditionally.
84627
84628 2003-06-06  Jim Meyering  <jim@meyering.net>
84629
84630         * lib/stdbool_.h: Renamed from stdbool.h.in.
84631
84632 2003-06-06  Jim Meyering  <jim@meyering.net>
84633             Bruno Haible  <bruno@clisp.org>
84634
84635         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84636         Adjust Makefile.am snippet not to redirect directly to target.
84637         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
84638
84639 2003-06-05  Paul Eggert  <eggert@twinsun.com>
84640
84641         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
84642         mismatch, look in future quarters as well as past.  This fixes a
84643         bug when processing fall-backwards gaps immediately after a long
84644         period of daylight-saving time.
84645
84646         * lib/mktime.c: Assume freestanding C89 or better.
84647         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84648         (__P): Remove; not used.
84649         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84650         (mktime, not_equal_tm, print_tm, check_result,
84651         main): Use prototypes.  Use const * where appropriate.
84652         (main): Fix typo in testing code that uncovered by above changes.
84653         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84654
84655 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84656
84657         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84658         locale.h, localeconv.  This merges changes from coreutils.
84659
84660         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84661         It can be removed after the next Autoconf is released.
84662         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84663         needed.
84664
84665 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84666
84667         * lib/mktime.c: Fix Debian bug 177940
84668         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84669         (localtime_offset): Now long int, not time_t, because we want it
84670         to be guaranteed to be signed.  All uses changed.
84671         (__mktime_internal): If overflow would occur when adding offset,
84672         don't add it.
84673
84674         Merge 'human' changes from coreutils.  Rewrite to support
84675         locale-specific notations like thousands separators.
84676         * lib/human.c: Simplify authorship notice.
84677         Include human.h immediately after config.h.
84678         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84679         <limits.h>: Do not include, since human.h does.
84680         (SIZE_MAX, UINTMAX_MAX): New macros.
84681         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84682         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84683         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84684         (power_letter): Renamed from suffixes.
84685         (generate_suffix_backwards): Remove.
84686         (adjust_value): Now takes int style (because of human.h changes)
84687         and long double value (for greater precision on some platforms).
84688         (group_number): New function.
84689         (human_readable): Use it.  Use integer options, not enum.
84690         Put the options before the sizes in the arg list.
84691         Support all the new options.
84692         The old human_readable function has been removed;
84693         use inttostr.h instead.
84694         (human_readable, default_block_size, humblock):
84695         Use uintmax_t, not int, for block sizes.
84696         (human_readable_inexact, block_size_types): Remove.
84697         (block_size_opts): New constant.
84698         (human_options): Renamed from human_block_size, with new signature
84699         that allows block sizes up to UINTMAX_MAX.  All callers changed.
84700         * lib/human.h: Add copyright and authorship notice.
84701         Include <limits.h> and <stdbool.h> unconditionally.
84702         (PARAMS): Remove.  All uses removed.
84703         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
84704         (enum human_inexact_style): Remove tag; now a nameless enum.
84705         (human_floor, human_ceiling, human_round_to_even): Now have
84706         values 2, 0, 1 rather than -1, 1, 0.
84707         (human_group_digits, human_suppress_point_zero, human_autoscale,
84708         human_base_1024, human_SI, human_B): New constants.
84709         (human_readable_inexact, human_block_size): Remove.
84710         (human_readable): Size args are now uintmax_t, not int.
84711         (human_options): New decl.
84712
84713         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84714         unnecessary now that we assume C89 or better.  This change
84715         imported from coreutils.
84716
84717         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84718         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84719         in the 2003-05-30 sync from glibc.
84720
84721         .h files should stand alone, but we shouldn't include <sys/types.h>
84722         if we can get away with just <stddef.h>.
84723
84724         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84725         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84726         rather than <sys/types.h>, as we merely need size_t.
84727         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84728         to get size_t.
84729         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84730         Include <stdio.h>, to get FILE.
84731         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84732         memcasecmp.h has included <stddef.h> and all we need is size_t.
84733         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84734         our interface, instead of including <sys/types.h>
84735
84736 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84737
84738         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
84739         now, as glibc mktime is buggy on non-glibc systems.
84740
84741 2003-06-03  Karl Berry  <karl@gnu.org>
84742
84743         * config/config.sub: update from prep.
84744
84745 2003-06-02  Paul Eggert  <eggert@twinsun.com>
84746
84747         [from coreutils]
84748         Fix some minor time-related bugs with POSIX time arguments.
84749         Some valid time stamps were being rejected (notably -1, and
84750         time stamps before 1900 on 64-bit hosts).  And some invalid
84751         time stamps were being accepted, e.g. September 31.
84752
84753         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
84754         that we can return (time_t) -1 successfully.
84755         * lib/posixtm.c: Likewise.
84756         [HAVE_STDBOOL_H]: Include <stdbool.h>.
84757         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84758         (t): Remove static var.
84759         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84760         of static var.  All uses changed.
84761         (year): Do not reject years before 1900; they can occur with
84762         64-bit time_t.
84763         (posix_time_parse): Do not check for out-of-range components;
84764         that is now the caller's responsibility, since our checks were
84765         only approximations.
84766         (posixtime): Use mktime to check for out-of-range components,
84767         since it knows them exactly.
84768         If mktime returns (time_t) -1, check whether an error actually occurred
84769         by invoking localtime on -1.
84770         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84771         posixtime failures better.
84772         Improve the test data (in comments only).
84773
84774 2003-06-02  Karl Berry  <karl@gnu.org>
84775
84776         * config/mkinstalldirs (version): new variable.
84777         (--version): new option.
84778         (usage): improve message.
84779
84780 2003-05-30  Karl Berry  <karl@gnu.org>
84781
84782         * lib/mktime.c: update from libc.
84783
84784 2003-05-30  Bruno Haible  <bruno@clisp.org>
84785
84786         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84787         * config/config.rpath: Upgrade to gettext-0.12.1.
84788
84789 2003-05-30  Bruno Haible  <bruno@clisp.org>
84790
84791         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84792         * m4/nls.m4: New file, from gettext-0.12.1.
84793         * m4/po.m4: New file, from gettext-0.12.1.
84794         * m4/progtest.m4: Upgrade to gettext-0.12.1.
84795
84796 2003-05-30  Bruno Haible  <bruno@clisp.org>
84797
84798         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
84799         * lib/localcharset.h: Likewise.
84800         * lib/localcharset.c: Likewise.
84801
84802 2003-05-29  Karl Berry  <karl@gnu.org>
84803
84804         * config/config.rpath: update from gettext.
84805
84806 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84807
84808         Assume the headers required for C89 freestanding compilers.
84809         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84810         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84811         * m4/human.m4 (gl_HUMAN): Likewise.
84812         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84813         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84814         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84815         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84816         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84817         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84818
84819 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84820
84821         Assume the headers required for C89 freestanding compilers.
84822         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84823         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84824         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84825         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84826         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84827         define, since <limits.h> is guaranteed to do that.
84828         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84829         * lib/exclude.c: Include <stdbool.h> unconditionally.
84830         * lib/tempname.c: Include <stddef.h> unconditionally.
84831         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84832         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84833         <stddef.h> does that.
84834         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84835         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84836         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84837         needed.
84838         * lib/xstrtol.c: Likewise.
84839         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84840         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84841
84842         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84843         warnings on some platforms.
84844
84845         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84846         arbitrarily.
84847
84848 2003-05-26  Jim Meyering  <jim@meyering.net>
84849
84850         Merge in a change from coreutils:
84851         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84852         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84853         that condition, rather than `-1' which is slightly misleading.
84854         Change the name of the cache variable to have the gl_ prefix.
84855         Prompted by a patch from Richard Dawe for DJGPP.
84856
84857 2003-05-24  Karl Berry  <karl@gnu.org>
84858
84859         * config/config.guess: update from prep.
84860
84861 2003-05-22  Karl Berry  <karl@gnu.org>
84862
84863         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84864
84865 2003-05-20  Karl Berry  <karl@gnu.org>
84866
84867         * config/config.guess: update from prep.
84868
84869 2003-05-18  Karl Berry  <karl@gnu.org>
84870
84871         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84872         might actually be set by the user.
84873
84874         * config/depcomp, install-sh, mdate-sh: update from automake.
84875
84876 2003-05-17  Bruno Haible  <bruno@clisp.org>
84877
84878         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84879         invalid expansion for AC_EGREP_CPP.
84880         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84881         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84882         Suggested by Akim Demaille <akim@epita.fr> in
84883         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84884
84885 2003-05-12  Jim Meyering  <jim@meyering.net>
84886
84887         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84888         the space-padded-by-default conversion specifiers, %e, %k, %l.
84889
84890 2003-05-12  Bruno Haible  <bruno@clisp.org>
84891
84892         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84893         the string is longer than 4 KB.
84894
84895 2003-05-11  Karl Berry  <karl@gnu.org>
84896
84897         * config/config.{guess,sub}: update from prep.
84898
84899 2003-05-09  Bruno Haible  <bruno@clisp.org>
84900
84901         * modules/error: Add m4/strerror_r.m4 to file list.
84902
84903 2003-05-03  Bruno Haible  <bruno@clisp.org>
84904
84905         Upgrade to Unicode-4.0.
84906         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84907         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84908         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84909         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84910         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84911         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84912         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84913         Change width of U+E0100..U+E01EF from 1 to 0.
84914
84915 2003-04-25  Jim Meyering  <jim@meyering.net>
84916
84917         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84918         of type size_t, not int.
84919
84920 2003-04-25  Bruno Haible  <bruno@clisp.org>
84921
84922         * lib/copy-file.c: Include <stddef.h>, for size_t.
84923
84924 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84925
84926         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84927         code which expansion is under static control.  Patch imported from
84928         Akim Demaille's patch to Bison; see
84929         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84930
84931 2003-04-14  Bruno Haible  <bruno@clisp.org>
84932
84933         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84934
84935 2003-04-11  Jim Meyering  <jim@meyering.net>
84936
84937         Merge changes from Coreutils.
84938
84939         2003-03-22  Jim Meyering  <jim@meyering.net>
84940
84941         * lib/strftime.c (widen): Cast alloca return value to proper type.
84942
84943         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84944
84945         From GNU libc.
84946         * lib/strftime.c (my_strftime): Handle very large width
84947         specifications for numeric values correctly.  Improve checks for
84948         overflow.
84949
84950         2003-01-19  Jim Meyering  <jim@meyering.net>
84951
84952         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84953         definitions.
84954         (nl_get_alt_digit) [! defined my_strftime]: Define.
84955         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84956         _nl_get_alt_digit and _nl_get_walt_digit.
84957
84958         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84959         libc. These changes have no effect outside of _LIBC.
84960
84961 2003-04-10  Bruno Haible  <bruno@clisp.org>
84962
84963         * modules/findprog: New file.
84964         * MODULES.html.sh (func_all_modules): Add it.
84965
84966 2003-04-10  Bruno Haible  <bruno@clisp.org>
84967
84968         * m4/findprog.m4: New file.
84969         * m4/eaccess.m4: New file.
84970
84971 2003-04-10  Bruno Haible  <bruno@clisp.org>
84972
84973         * lib/findprog.h: New file, from GNU gettext.
84974         * lib/findprog.c: New file, from GNU gettext.
84975
84976 2003-04-05  Jim Meyering  <jim@meyering.net>
84977
84978         Merge changes from Coreutils.
84979
84980         * lib/exclude.h (PARAMS): Remove definition and uses.
84981         * lib/exclude.c: Remove uses of `PARAMS'.
84982
84983         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84984         Add test-cases for DOS filenames. Declare program_name.
84985         (main): Set up program_name.  Patch by Rich Dawe.
84986
84987         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84988         error from mntctl.
84989         Use mntctl's return value to drive the entry-processing loop, since
84990         we can't rely on the value of the vmt_length member in the last
84991         entry.  On some systems doing so could result in exhausting
84992         virtual memory.  Based in part on a patch from Mike Jetzer.
84993
84994 2003-04-04  Bruno Haible  <bruno@clisp.org>
84995
84996         * modules/linebreak: New file.
84997         * MODULES.html.sh (func_all_modules): Add it.
84998
84999 2003-04-04  Bruno Haible  <bruno@clisp.org>
85000
85001         * m4/linebreak.m4: New file.
85002
85003 2003-04-04  Bruno Haible  <bruno@clisp.org>
85004
85005         * lib/linebreak.h: New file, from GNU gettext.
85006         * lib/linebreak.c: New file, from GNU gettext with slight
85007         modifications.
85008         * lib/lbrkprop.h: New file, from GNU gettext.
85009
85010 2003-04-03  Bruno Haible  <bruno@clisp.org>
85011
85012         * modules/utf8-ucs4: New file.
85013         * modules/utf16-ucs4: New file.
85014         * modules/ucs4-utf8: New file.
85015         * modules/ucs4-utf16: New file.
85016         * MODULES.html.sh (func_all_modules): Add them.
85017
85018 2003-04-03  Bruno Haible  <bruno@clisp.org>
85019
85020         * m4/utf-ucs4.m4: New file.
85021         * m4/ucs4-utf.m4: New file.
85022
85023 2003-04-03  Bruno Haible  <bruno@clisp.org>
85024
85025         * lib/utf8-ucs4.h: New file, from GNU gettext.
85026         * lib/utf16-ucs4.h: New file, from GNU gettext.
85027         * lib/ucs4-utf8.h: New file, from GNU gettext.
85028         * lib/ucs4-utf16.h: New file, from GNU gettext.
85029
85030 2003-04-02  Bruno Haible  <bruno@clisp.org>
85031
85032         * modules/binary-io: New file.
85033         * MODULES.html.sh (func_all_modules): Add it.
85034
85035 2003-04-02  Bruno Haible  <bruno@clisp.org>
85036
85037         * lib/binary-io.h: New file, from GNU gettext.
85038
85039 2003-04-01  Bruno Haible  <bruno@clisp.org>
85040
85041         * modules/pathname: New file.
85042         * MODULES.html.sh (func_all_modules): Add it.
85043
85044 2003-04-01  Bruno Haible  <bruno@clisp.org>
85045
85046         * lib/pathname.h: New file, from GNU gettext.
85047         * lib/concatpath.c: New file, from GNU gettext.
85048
85049 2003-03-30  Bruno Haible  <bruno@clisp.org>
85050
85051         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
85052
85053 2003-03-30  Bruno Haible  <bruno@clisp.org>
85054
85055         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
85056         function chown() doesn't exist.
85057
85058 2003-03-28  Bruno Haible  <bruno@clisp.org>
85059
85060         * modules/copy-file: New file.
85061         * MODULES.html.sh (func_all_modules): Add it.
85062
85063 2003-03-28  Bruno Haible  <bruno@clisp.org>
85064
85065         * m4/copy-file.m4: New file.
85066
85067 2003-03-28  Bruno Haible  <bruno@clisp.org>
85068
85069         * lib/copy-file.h: New file, from GNU gettext.
85070         * lib/copy-file.c: New file, from GNU gettext.
85071
85072 2003-03-18  Jim Meyering  <jim@meyering.net>
85073
85074         * lib/quote.c (quote_n): Fix typo in comment.
85075
85076 2003-03-18  Bruno Haible  <bruno@clisp.org>
85077
85078         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
85079         checking.
85080         * m4/onceonly_2_57.m4: Likewise.
85081
85082 2003-03-17  Bruno Haible  <bruno@clisp.org>
85083
85084         * m4/onceonly.m4: Require autoconf 2.54 or newer.
85085         (m4_quote): Remove macro.
85086         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
85087
85088 2003-03-14  Jim Meyering  <jim@meyering.net>
85089
85090         Merge changes from Coreutils.
85091         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
85092         to be const, in order to avoid warnings.
85093         (obstack_room): Likewise.
85094         (obstack_empty_p): Likewise.
85095
85096 2003-03-14  Bruno Haible  <bruno@clisp.org>
85097
85098         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
85099         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
85100
85101 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85102
85103         Merge changes from Bison.
85104         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
85105         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
85106         when compiling Bison 1.875's `bitset bset = obstack_alloc
85107         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
85108         * lib/hash.c: Include <stdbool.h> unconditionally.
85109
85110 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85111
85112         * m4/onceonly.m4 (m4_quote): New macro.
85113         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
85114         Quote AC_FOREACH variable-expansions properly.
85115
85116 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85117
85118         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
85119
85120 2003-03-09  Paul Eggert  <eggert@twinsun.com>
85121
85122         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
85123         Reported by Bruce Becker; see:
85124         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
85125
85126 2003-03-03  Paul Eggert  <eggert@twinsun.com>
85127             Bruno Haible  <bruno@clisp.org>
85128
85129         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
85130         Reported by John Hughes, see
85131         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
85132
85133 2003-02-20  Bruno Haible  <bruno@clisp.org>
85134
85135         * MODULES.html.sh (func_all_modules): Add poll.
85136
85137 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85138
85139         * modules/poll: New file.
85140
85141 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85142
85143         * lib/poll_.h: New file.
85144         * lib/poll.c: New file.
85145
85146 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85147
85148         * m4/poll.m4: New file.
85149
85150 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85151
85152         * modules/mathl: New file.
85153
85154 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85155
85156         * lib/mathl.h: New file.
85157         * lib/acosl.c: New file.
85158         * lib/asinl.c: New file.
85159         * lib/atanl.c: New file.
85160         * lib/ceill.c: New file.
85161         * lib/cosl.c: New file.
85162         * lib/expl.c: New file.
85163         * lib/floorl.c: New file.
85164         * lib/frexpl.c: New file.
85165         * lib/ldexpl.c: New file.
85166         * lib/logl.c: New file.
85167         * lib/sincosl.c: New file.
85168         * lib/sinl.c: New file.
85169         * lib/sqrtl.c: New file.
85170         * lib/tanl.c: New file.
85171         * lib/trigl.c: New file.
85172         * lib/trigl.h: New file.
85173
85174 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85175
85176         * m4/mathl.m4: New file.
85177
85178 2003-02-18  Bruno Haible  <bruno@clisp.org>
85179
85180         * MODULES.html.sh (func_all_modules): Add mathl.
85181
85182 2003-02-17  Bruno Haible  <bruno@clisp.org>
85183
85184         * modules/mkdtemp: New module.
85185         * MODULES.html.sh (func_all_modules): Add it.
85186
85187 2003-02-17  Bruno Haible  <bruno@clisp.org>
85188
85189         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
85190
85191 2003-02-17  Bruno Haible  <bruno@clisp.org>
85192
85193         * lib/mkdtemp.h: New file, from GNU gettext.
85194         * lib/mkdtemp.c: New file, from GNU gettext.
85195
85196 2003-02-02  Jim Meyering  <jim@meyering.net>
85197
85198         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
85199         e.g. glibc-2.2.93.
85200
85201 2003-01-31  Bruno Haible  <bruno@clisp.org>
85202
85203         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
85204         'rpl_rename'.
85205         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
85206         'rpl_strnlen'.
85207         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
85208         'rpl_strtod'.
85209         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
85210         'rpl_utime'.
85211
85212 2003-01-31  Bruno Haible  <bruno@clisp.org>
85213
85214         * lib/rename.c: #undef rename before defining rpl_rename.
85215         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
85216
85217 2003-01-30  Bruno Haible  <bruno@clisp.org>
85218
85219         * modules/vasnprintf, modules/vasprintf: New modules.
85220         * MODULES.html.sh (func_all_modules): Add them.
85221
85222 2003-01-30  Bruno Haible  <bruno@clisp.org>
85223
85224         * m4/signed.m4: New file, from GNU gettext.
85225         * m4/longdouble.m4: New file, from GNU gettext.
85226         * m4/wchar_t.m4: New file, from GNU gettext.
85227         * m4/wint_t.m4: New file, from GNU gettext.
85228         * m4/vasnprintf.m4: New file.
85229         * m4/vasprintf.m4: New file.
85230
85231 2003-01-30  Bruno Haible  <bruno@clisp.org>
85232
85233         * lib/printf-args.h: New file, from GNU gettext.
85234         * lib/printf-args.c: New file, from GNU gettext.
85235         * lib/printf-parse.h: New file, from GNU gettext.
85236         * lib/printf-parse.c: New file, from GNU gettext.
85237         * lib/vasnprintf.h: New file, from GNU gettext.
85238         * lib/vasnprintf.c: New file, from GNU gettext.
85239         * lib/asnprintf.c: New file, from GNU gettext.
85240         * lib/vasprintf.h: New file, from GNU gettext with modifications.
85241         * lib/vasprintf.c: New file, from GNU gettext.
85242         * lib/asprintf.c: New file, from GNU gettext.
85243
85244 2003-01-29  Bruno Haible  <bruno@clisp.org>
85245
85246         * modules/stpncpy: New module.
85247         * MODULES.html.sh (func_all_modules): Add it.
85248
85249 2003-01-29  Bruno Haible  <bruno@clisp.org>
85250
85251         * m4/stpncpy.m4: New file.
85252
85253 2003-01-29  Bruno Haible  <bruno@clisp.org>
85254
85255         * lib/stpncpy.h: New file, from GNU gettext with modifications.
85256         * lib/stpncpy.c: New file, from GNU gettext with modifications.
85257
85258 2003-01-28  Bruno Haible  <bruno@clisp.org>
85259
85260         * modules/c-ctype: New module.
85261         * MODULES.html.sh (func_all_modules): Add it.
85262
85263 2003-01-28  Bruno Haible  <bruno@clisp.org>
85264
85265         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
85266         Paul Eggert.
85267         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
85268         Paul Eggert.
85269
85270 2003-01-27  Bruno Haible  <bruno@clisp.org>
85271
85272         * modules/xsetenv: New module.
85273         * MODULES.html.sh (func_all_modules): Add it.
85274
85275 2003-01-27  Bruno Haible  <bruno@clisp.org>
85276
85277         * lib/xsetenv.h: New file, from GNU gettext.
85278         * lib/xsetenv.c: New file, from GNU gettext.
85279
85280 2003-01-23  Jim Meyering  <jim@meyering.net>
85281
85282         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
85283         from working on systems without dirfd (at least Irix and OSF1/Tru64).
85284
85285 2003-01-23  Bruno Haible  <bruno@clisp.org>
85286
85287         * modules/minmax: New module.
85288         * MODULES.html.sh (func_all_modules): Add it.
85289
85290 2003-01-23  Bruno Haible  <bruno@clisp.org>
85291
85292         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
85293         Eggert.
85294
85295 2003-01-22  Bruno Haible  <bruno@clisp.org>
85296
85297         * modules/exit: New module.
85298         * MODULES.html.sh (func_all_modules): Add it.
85299
85300 2003-01-22  Bruno Haible  <bruno@clisp.org>
85301
85302         * lib/exit.h: New file, from GNU gettext.
85303
85304 2003-01-19  Bruno Haible  <bruno@clisp.org>
85305
85306         * gnulib-tool: Recognize option --extract-maintainer.
85307         (func_get_maintainer): New function.
85308         * modules/*: Add Maintainer entry.
85309
85310 2003-01-16  Jim Meyering  <jim@meyering.net>
85311
85312         * m4/regex.m4: The `regex' struct is both input and output.
85313         Initialize it before each use.  Patch by Tim Waugh.
85314
85315 2003-01-16  Bruno Haible  <bruno@clisp.org>
85316
85317         * MODULES.html.sh: Add a table of contents. Add the module name as
85318         leftmost column. Add hyperlinks.
85319
85320 2003-01-15  Bruno Haible  <bruno@clisp.org>
85321
85322         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
85323
85324 2003-01-15  Bruno Haible  <bruno@clisp.org>
85325
85326         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
85327         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
85328         suffix.
85329
85330 2003-01-15  Bruno Haible  <bruno@clisp.org>
85331
85332         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
85333
85334 2003-01-15  Bruno Haible  <bruno@clisp.org>
85335
85336         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
85337         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
85338
85339 2003-01-14  Jim Meyering  <jim@meyering.net>
85340
85341         * lib/same.c (same_name): Tweak a comment.
85342
85343 2003-01-14  Bruno Haible  <bruno@clisp.org>
85344
85345         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
85346         when a string comparison is sufficient.
85347
85348 2003-01-14  Bruno Haible  <bruno@clisp.org>
85349
85350         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
85351         'unsigned int'.
85352
85353 2003-01-14  Bruno Haible  <bruno@clisp.org>
85354
85355         * lib/hash-pjw.c: Add comment about low quality of this function.
85356
85357 2003-01-13  Bruno Haible  <bruno@clisp.org>
85358
85359         * modules/stpcpy: Distribute lib/stpcpy.h.
85360         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
85361
85362 2003-01-13  Bruno Haible  <bruno@clisp.org>
85363
85364         * modules/*: Add a description.
85365         * modules/strpbrk: Fix Makefile.am snippet.
85366         * modules/strtoimax: Fix dependencies.
85367         * modules/strtoumax: Likewise.
85368
85369 2003-01-13  Bruno Haible  <bruno@clisp.org>
85370
85371         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
85372         * modules/alloca (Makefile.am): All object files depend on alloca.h.
85373         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
85374
85375 2003-01-13  Bruno Haible  <bruno@clisp.org>
85376
85377         * gnulib-tool (func_create_testdir): Store config/* files in the main
85378         directory.
85379         * config.rpath: Move to ...
85380         * config/config.rpath: ... here.
85381         * modules/gettext: Contains config/config.rpath, not config.rpath.
85382         * modules/iconv: Likewise.
85383
85384 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85385
85386         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85387         to avoid collisions with libcurses and libreadline.
85388
85389         * m4/getstr.m4: Remove.
85390         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
85391
85392 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85393
85394         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85395         to avoid collisions with libcurses and libreadline.
85396
85397         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
85398         * lib/getstr.h, getstr.c: Remove.
85399         * lib/getline.c: Include "getline.h", to check interface.
85400         Move body of old getstr.c here: this defines MIN_CHUNK and
85401         declares getdelim2, which is renamed from getstr.
85402         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
85403
85404         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
85405         All uses changed.
85406         * lib/linebuffer.h: Likewise.
85407         (readline): Remove backward-compatibility macro.
85408
85409 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85410
85411         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85412         to avoid collisions with libcurses and libreadline.
85413         * getstr: Remove.
85414         * MODULES.html.sh: Remove getstr.
85415         * modules/getline: Depend on unlocked-io, not getstr.
85416
85417 2003-01-12  Jim Meyering  <jim@meyering.net>
85418
85419         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
85420
85421 2003-01-10  Bruno Haible  <bruno@clisp.org>
85422
85423         * modules/alloca: Change Makefile.am requirements. Simplify Include
85424         requirements. Add lib/alloca_.h to file list.
85425
85426 2003-01-10  Bruno Haible  <bruno@clisp.org>
85427
85428         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
85429
85430 2003-01-10  Bruno Haible  <bruno@clisp.org>
85431
85432         * lib/alloca_.h: New file.
85433         * lib/getdate.y: Unconditionally include alloca.h.
85434         * lib/makepath.c: Likewise.
85435         * lib/setenv.c: Likewise.
85436         * lib/userspec.c: Likewise.
85437
85438 2003-01-09  Karl Berry  <karl@gnu.org>
85439
85440         * MODULES.html.sh: include `dirname $0` in PATH, to find
85441         gnulib-tool.
85442
85443 2003-01-09  Bruno Haible  <bruno@clisp.org>
85444
85445         * modules/stdbool: Change configure.ac, Makefile.am requirements.
85446         Simplify Include requirements. Add lib/stdbool.h.in to file list.
85447
85448 2003-01-09  Bruno Haible  <bruno@clisp.org>
85449
85450         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
85451
85452 2003-01-09  Bruno Haible  <bruno@clisp.org>
85453
85454         * lib/stdbool.h.in: New file.
85455
85456 2003-01-09  Bruno Haible  <bruno@clisp.org>
85457
85458         * gnulib-tool (func_all_modules): Ignore files ending in ~.
85459         * MODULES.html.sh: Likewise.
85460
85461 2003-01-08  Jim Meyering  <jim@meyering.net>
85462
85463         * lib/full-write.c: Undefine and define-away `const' after inclusion
85464         of errno.h, not before.  Suggestion from Bruno Haible.
85465
85466 2003-01-08  Bruno Haible  <bruno@clisp.org>
85467
85468         * modules/full-read: Depend on full-write.
85469
85470 2003-01-08  Bruno Haible  <bruno@clisp.org>
85471
85472         * lib/safe-read.c: Include specification header first, to ensure its
85473         selfcontainedness.
85474         * lib/full-write.c: Likewise.
85475
85476 2003-01-07  Jim Meyering  <jim@meyering.net>
85477
85478         * lib/full-write.c: Rework so that it may serve to define full_read,
85479         too.
85480         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
85481
85482 2003-01-07  Bruno Haible  <bruno@clisp.org>
85483
85484         * lib/strtoimax.c: Include <stdint.h> as an alternative to
85485         <inttypes.h>.
85486         * lib/xstrtol.h: Likewise.
85487         * lib/xstrtoimax.c: Likewise.
85488         * lib/xstrtoumax.c: Likewise.
85489         * lib/human.h: Likewise.
85490
85491         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
85492         on systems that have <inttypes.h> but not <stdint.h>.
85493
85494 2003-01-07  Bruno Haible  <bruno@clisp.org>
85495
85496         * MODULES.html.sh: Add copyright notice.
85497         (missed_files): Omit CVS directory entries.
85498         (func_module): Make it work with sed-3.02.
85499         * MODULES.txt: Remove file.
85500
85501 2003-01-06  Jim Meyering  <jim@meyering.net>
85502
85503         * lib/version-etc.c: Update year in translatable copyright string.
85504
85505 2003-01-03  Karl Berry  <karl@gnu.org>
85506
85507         * config/config.{guess,sub}: update from prep.
85508
85509 2003-01-02  Karl Berry  <karl@gnu.org>
85510
85511         * doc/COPYING.DOC: belatedly updated to 1.2.
85512
85513 2003-01-01  Karl Berry  <karl@gnu.org>
85514
85515         * gnulib-tool (func_verify_module): report module name $module in
85516         error message, not $1.
85517         * gnulib-tool (create-testdir): don't complain if destdir couldn't
85518         be created, only if it doesn't exist.
85519         * gnulib-tool (last_checkin_date): don't expand the $Date here.
85520
85521 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85522
85523         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
85524
85525 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85526
85527         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
85528         memcmp if strcoll doesn't work.
85529
85530 2002-12-31  Bruno Haible  <bruno@clisp.org>
85531
85532         * lib/utime.c (utime_null): No need to call ftruncate if the file was
85533         nonempty.
85534
85535 2002-12-31  Bruno Haible  <bruno@clisp.org>
85536
85537         * lib/memcoll.c (STRCOLL): New macro.
85538         (memcoll): Use it.
85539
85540 2002-12-31  Bruno Haible  <bruno@clisp.org>
85541
85542         * lib/localcharset.h: New file.
85543         * lib/localcharset.c: Include it.
85544         * lib/unicodeio.c: Likewise.
85545
85546 2002-12-31  Bruno Haible  <bruno@clisp.org>
85547
85548         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
85549         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
85550
85551 2002-12-31  Bruno Haible  <bruno@clisp.org>
85552
85553         * lib/getline.h: Include <stddef.h>, for size_t.
85554
85555         * lib/unicodeio.h: Include <stddef.h>, for size_t.
85556         * lib/unicodeio.c: Don't include <stddef.h>.
85557
85558 2002-12-31  Bruno Haible  <bruno@clisp.org>
85559
85560         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
85561         HAVE_TM_ZONE.
85562
85563 2002-12-24  Karl Berry  <karl@gnu.org>
85564
85565         * config/config.guess: update from prep.
85566
85567 2002-12-24  Bruno Haible  <bruno@clisp.org>
85568
85569         General infrasructure.
85570         * m4/README: Rewritten.
85571         * m4/onceonly.m4: New file.
85572         * m4/onceonly_2_57.m4: New file.
85573
85574         Module atexit.
85575         * m4/atexit.m4: New file.
85576
85577         Module strtod.
85578         * m4/strtod.m4: New file.
85579
85580         Module strtol.
85581         * m4/strtol.m4: New file.
85582
85583         Module strtoul.
85584         * m4/strtoul.m4: New file.
85585
85586         Module memchr.
85587         * m4/memchr.m4: New file.
85588
85589         Module memcmp.
85590         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
85591         (jm_FUNC_MEMCMP): Invoke it.
85592
85593         Module memcpy.
85594         * m4/memcpy.m4: New file.
85595
85596         Module memmove.
85597         * m4/memmove.m4: New file.
85598
85599         Module memset.
85600         * m4/memset.m4: New file.
85601
85602         Module strcspn.
85603         * m4/strcspn.m4: New file.
85604
85605         Module strpbrk.
85606         * m4/strpbrk.m4: New file.
85607
85608         Module strstr.
85609         * m4/strstr.m4: New file.
85610
85611         Module strerror.
85612         * m4/strerror.m4: New file.
85613
85614         Module mktime.
85615         * m4/mktime.m4: Renamed from jm-mktime.m4.
85616         (gl_PREREQ_MKTIME): New macro.
85617         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
85618
85619         Module malloc.
85620         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
85621         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
85622         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
85623
85624         Module realloc.
85625         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
85626         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
85627         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
85628
85629         Module strftime.
85630         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
85631         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
85632         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
85633         gl_TM_GMTOFF.
85634         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
85635
85636         Module xalloc.
85637         * m4/xalloc.m4: New file.
85638
85639         Module alloca.
85640         * m4/alloca.m4: New file.
85641
85642         Module putenv.
85643         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85644         (jm_FUNC_PUTENV): Invoke it.
85645
85646         Module setenv.
85647         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85648         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85649         when invoked twice.
85650         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85651         gt_FUNC_SETENV.
85652
85653         Module memrchr.
85654         * m4/memrchr.m4: New file.
85655
85656         Module stpcpy.
85657         * m4/stpcpy.m4: New file.
85658
85659         Module strcase.
85660         * m4/strcase.m4: New file.
85661
85662         Module strdup.
85663         * m4/strdup.m4: New file.
85664
85665         Module strnlen.
85666         * m4/strnlen.m4: New file.
85667
85668         Module strndup.
85669         * m4/strndup.m4: New file.
85670
85671         Module xstrtod.
85672         * m4/xstrtod.m4: New file.
85673
85674         Module xstrtol.
85675         * m4/xstrtol.m4: New file.
85676
85677         Module getdate.
85678         * m4/getdate.m4: New file.
85679
85680         Module unlocked-io.
85681         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85682         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85683         * m4/jm-glibc-io.m4n: Remove file.
85684
85685         Module long-options.
85686         * m4/long-options.m4: New file.
85687
85688         Module md5.
85689         * m4/md5.m4: New file.
85690
85691         Module sha.
85692         * m4/sha.m4: New file.
85693
85694         Module getstr.
85695         * m4/getstr.m4: New file.
85696
85697         Module getline.
85698         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
85699         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
85700         <sys/types.h>, for size_t. Use the function name gnu_getline, not
85701         simply getline. Infoke gl_PREREQ_GETLINE.
85702
85703         Module obstack.
85704         * m4/obstack.m4: New file.
85705
85706         Module hash.
85707         * m4/hash.m4: New file.
85708
85709         Module readtokens.
85710         * m4/readtokens.m4: New file.
85711
85712         Module strverscmp.
85713         * m4/strverscmp.m4: New file.
85714
85715         Module stdbool.
85716         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85717         OSF/1.
85718
85719         Module strtoll.
85720         * m4/strtoll.m4: New file.
85721
85722         Module strtoull.
85723         * m4/strtoull.m4: New file.
85724
85725         Module strtoimax.
85726         * m4/strtoimax.m4: New file.
85727
85728         Module strtoumax.
85729         * m4/strtoumax.m4: New file.
85730
85731         Module xstrtoimax.
85732         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85733         jm_AC_PREREQ_XSTRTOIMAX.
85734         Moved the strtol prerequisites to strtol.m4.
85735         Moved the strtoll prerequisites to strtoll.m4.
85736         Moved the strtoimax prerequisites to strtoimax.m4.
85737
85738         Module xstrtoumax.
85739         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
85740         jm_AC_PREREQ_XSTRTOUMAX.
85741         Moved the strtoul prerequisites to strtoul.m4.
85742         Moved the strtoull prerequisites to strtoull.m4.
85743         Moved the strtoumax prerequisites to strtoumax.m4.
85744
85745         Module chown.
85746         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
85747         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
85748
85749         Module dup2.
85750         * m4/dup2.m4: New file.
85751
85752         Module ftruncate.
85753         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
85754         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
85755
85756         Module getgroups.
85757         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85758         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85759
85760         Module gettimeofday.
85761         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85762         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85763         gl_PREREQ_GETTIMEOFDAY.
85764
85765         Module mkdir.
85766         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85767         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85768
85769         Module mkstemp.
85770         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85771         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85772         jm_AC_TYPE_UINTMAX_T.
85773         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85774
85775         Module stat.
85776         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85777         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85778
85779         Module lstat.
85780         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85781         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85782
85783         Module timespec.
85784         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85785         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85786         * m4/st_mtim.m4: Indentation.
85787
85788         Module nanosleep.
85789         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85790         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85791         gl_PREREQ_NANOSLEEP.
85792
85793         Module regex.
85794         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
85795         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
85796         (gl_REGEX): New macro.
85797
85798         Module rename.
85799         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
85800         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
85801
85802         Module rmdir.
85803         * m4/rmdir.m4: New file.
85804
85805         Module utime.
85806         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
85807         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
85808         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85809
85810         Module dirname.
85811         * m4/dirname.m4: New file.
85812
85813         Module getopt.
85814         * m4/getopt.m4: New file.
85815
85816         Module unistd-safer.
85817         * m4/unistd-safer.m4: New file.
85818
85819         Module fnmatch.
85820         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85821         declaration.
85822         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85823         (gl_FUNC_FNMATCH_POSIX): New macro.
85824         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85825         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85826         simply fnmatch.
85827
85828         Module exclude.
85829         * m4/exclude.m4: New file.
85830
85831         Module human.
85832         * m4/human.m4: New file.
85833
85834         Module acl.
85835         * m4/acl.m4: Nop.
85836
85837         Module backupfile.
85838         * m4/backupfile.m4: New file.
85839         * m4/d-ino.m4: Indentation.
85840
85841         Module fsusage.
85842         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85843         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85844         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85845
85846         Module dirfd.
85847         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85848         requirements.
85849
85850         Module euidaccess.
85851         * m4/euidaccess.m4: New file.
85852
85853         Module file-type.
85854         * m4/file-type.m4: New file.
85855
85856         Module fileblocks.
85857         * m4/fileblocks.m4: New file.
85858
85859         Module filemode.
85860         * m4/filemode.m4: New file.
85861
85862         Module isdir.
85863         * m4/isdir.m4: New file.
85864
85865         Module lchown.
85866         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85867         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85868
85869         Module makepath.
85870         * m4/makepath.m4: New file.
85871
85872         Module modechange.
85873         * m4/modechange.m4: New file.
85874
85875         Module mountlist.
85876         * m4/mountlist.m4: New file.
85877         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85878         Indentation.
85879
85880         Module path-concat.
85881         * m4/path-concat.m4: New file.
85882
85883         Module pathmax.
85884         * m4/pathmax.m4: New file.
85885
85886         Module same.
85887         * m4/same.m4: New file.
85888
85889         Module save-cwd.
85890         * m4/save-cwd.m4: New file.
85891
85892         Module savedir.
85893         * m4/savedir.m4: New file.
85894
85895         Module xgetcwd.
85896         * m4/xgetcwd.m4: New file.
85897         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85898
85899         Module xreadlink.
85900         * m4/xreadlink.m4: New file.
85901
85902         Module safe-read.
85903         * m4/safe-read.m4: New file.
85904
85905         Module safe-write.
85906         * m4/safe-write.m4: New file.
85907
85908         Module closeout.
85909         * m4/closeout.m4: New file.
85910
85911         Module stdio-safer.
85912         * m4/stdio-safer.m4: New file.
85913
85914         Module getpass.
85915         * m4/getpass.m4: New file.
85916
85917         Module getugroups.
85918         * m4/getugroups.m4: New file.
85919
85920         Module group-member.
85921         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85922         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85923
85924         Module idcache.
85925         * m4/idcache.m4: New file.
85926
85927         Module userspec.
85928         * m4/userspec.m4: New file.
85929
85930         Module gettime.
85931         * m4/clock_time.m4: New file.
85932         * m4/gettime.m4: New file.
85933
85934         Module settime.
85935         * m4/settime.m4: New file.
85936
85937         Module posixtm.
85938         * m4/posixtm.m4: New file.
85939
85940         Module gethostname.
85941         * m4/gethostname.m4: New file.
85942
85943         Module canon-host.
85944         * m4/canon-host.m4: New file.
85945
85946         Module gettext.
85947         * m4/codeset.m4: New file, from gettext-0.11.5.
85948         * m4/gettext.m4: New file, from gettext-0.11.5.
85949         * m4/glibc21.m4: New file, from gettext-0.11.5.
85950         * m4/iconv.m4: New file, from gettext-0.11.5.
85951         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85952         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85953         * m4/inttypes.m4: New file, from gettext-0.11.5.
85954         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85955         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85956         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85957         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85958         * m4/lib-link.m4: New file, from gettext-0.11.5.
85959         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85960         * m4/progtest.m4: New file, from gettext-0.11.5.
85961         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85962         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85963         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85964
85965         Module localcharset.
85966         * m4/localcharset.m4: New file.
85967
85968         Module hard-locale.
85969         * m4/hard-locale.m4: New file.
85970
85971         Module mbswidth.
85972         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85973         onceonly macros.
85974         * m4/mbrtowc.m4: Add comment.
85975
85976         Module memcasecmp.
85977         * m4/memcasecmp.m4: New file.
85978
85979         Module memcoll.
85980         * m4/memcoll.m4: New file.
85981
85982         Module unicodeio.
85983         * m4/unicodeio.m4: New file.
85984
85985         Module rpmatch.
85986         * m4/rpmatch.m4: New file.
85987
85988         Module yesno.
85989         * m4/yesno.m4: New file.
85990
85991         Module exitfail.
85992         * m4/exitfail.m4: New file.
85993
85994         Module c-stack.
85995         * m4/c-stack.m4 (gl_C_STACK): New macro.
85996         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85997
85998         Module error.
85999         * m4/error.m4 (gl_ERROR): New macro.
86000         (jm_PREREQ_ERROR): Use onceonly macros.
86001
86002         Module fatal.
86003         * m4/fatal.m4: New file.
86004
86005         Module getloadavg.
86006         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
86007         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
86008
86009         Module getpagesize.
86010         * m4/getpagesize.m4: New file.
86011
86012         Module getusershell.
86013         * m4/getusershell.m4: New file.
86014
86015         Module physmem.
86016         * m4/physmem.m4: New file.
86017
86018         Module posixver.
86019         * m4/posixver.m4: New file.
86020
86021         Module quotearg.
86022         * m4/quotearg.m4: New file.
86023
86024         Module quote.
86025         * m4/quote.m4: New file.
86026
86027         Module readutmp.
86028         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
86029
86030         Module sig2str.
86031         * m4/sig2str.m4: New file.
86032
86033         Other.
86034         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
86035         ulonglong.m4.
86036         * m4/intmax_t.m4: New file.
86037         * m4/d-type.m4: Indentation.
86038         * m4/jm-macros.m4: Update.
86039         * m4/prereq.m4 (jm_PREREQ): Update.
86040         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
86041         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
86042         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
86043         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
86044         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
86045         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
86046         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
86047         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
86048         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
86049         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
86050         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
86051         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
86052         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
86053         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
86054         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
86055         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
86056         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
86057         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
86058         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
86059
86060 2002-12-24  Bruno Haible  <bruno@clisp.org>
86061
86062         * MODULES.txt: Update according to m4/ changes.
86063
86064         Module gettext.
86065         * config.rpath: New file, from gettext-0.11.5.
86066
86067         * modules/*: New module descriptions.
86068         * gnulib-tool: New file.
86069         * MODULES.html.sh: New file.
86070
86071 2002-12-21  Karl Berry  <karl@gnu.org>
86072
86073         * doc/fdl.texi: update to version 1.2.
86074
86075 2002-12-19  Karl Berry  <karl@gnu.org>
86076
86077         * config/config.guess: update from prep.
86078
86079 2002-12-18  Bruno Haible  <bruno@clisp.org>
86080
86081         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
86082         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
86083
86084 2002-12-17  Bruno Haible  <bruno@clisp.org>
86085
86086         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
86087         stdlib.h, string.h.
86088
86089 2002-12-17  Bruno Haible  <bruno@clisp.org>
86090
86091         * lib/canon-host.c (strdup): Remove unused declaration.
86092
86093         * lib/fsusage.c: Include full_read.h.
86094         (get_fs_usage): Use full_read instead of safe_read.
86095
86096         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
86097
86098 2002-12-12  Karl Berry  <karl@gnu.org>
86099
86100         * config/config.guess: update from prep.
86101
86102 2002-12-11  Bruno Haible  <bruno@clisp.org>
86103
86104         * m4/setenv.m4: New file, from gettext-0.11.5.
86105
86106 2002-12-11  Bruno Haible  <bruno@clisp.org>
86107
86108         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
86109         not unsetenv().
86110         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
86111         modifications:
86112
86113         2002-12-11  Bruno Haible  <bruno@clisp.org>
86114
86115                 * setenv.c (alloca): Fall back to malloc.
86116                 (freea): New macro.
86117                 (setenv): Use freea() to free memory allocated with alloca().
86118
86119         2002-11-13  Bruno Haible  <bruno@clisp.org>
86120
86121                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
86122                 function declarations.
86123                 * unsetenv.c (unsetenv): Likewise.
86124
86125         2002-03-04  Bruno Haible  <bruno@clisp.org>
86126
86127                 Portability to AIX 4.3.3.
86128                 * unsetenv.c: New file, extracted from setenv.c.
86129                 * setenv.c: Move the unsetenv() function to unsetenv.c.
86130
86131         2001-12-20  Bruno Haible  <bruno@clisp.org>
86132
86133                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
86134                 use malloc instead. For SunOS 4.
86135
86136         2001-12-11  Bruno Haible  <bruno@clisp.org>
86137
86138                 * setenv.c: Declare alloca.
86139                 (compar_fn_t): New typedef.
86140                 (KNOWN_VALUE, STORE_VALUE): Use it.
86141
86142         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
86143         setenv.h.
86144
86145 2002-12-10  Paul Eggert  <eggert@twinsun.com>
86146
86147         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
86148         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
86149         Choose values that are less likely to collide with system fnmatch
86150         options.
86151         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
86152         defined (e.g., a pure POSIX system).
86153         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
86154         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
86155
86156 2002-12-06  Paul Eggert  <eggert@twinsun.com>
86157
86158         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
86159         a pain in practice to deal with generated m4 files.  This change
86160         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
86161
86162         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
86163         and jm-glibc-io.m4, as they are no longer a special case.
86164         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
86165         kludge and the auto-generation stuff.  Check only whether the
86166         functions are declared, not whether they exist, since older hosts
86167         that don't declare the functions can't use the optimization anyway.
86168
86169 2002-12-06  Jim Meyering  <jim@meyering.net>
86170
86171         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
86172
86173         Merge in changes from libc's misc/error.c, in preparation
86174         for the merge of gnulib's changes back into libc.
86175
86176         * lib/error.c (_): Define only if not already defined.
86177         Move definition to follow all #include directives.
86178         Include unlocked-io.h only if !_LIBC.
86179         [_LIBC]: Include <libio/libioP.h>.
86180         [USE_IN_LIBIO]: Include <libio/iolibio.h>
86181         (fflush): Tweak definition to use INTUSE.
86182         (putc): Define.
86183
86184 2002-12-05  Paul Eggert  <eggert@twinsun.com>
86185
86186         * lib/alloca.c [defined emacs]: Include "lisp.h".
86187         (xalloc_die) [defined emacs]: New macro.
86188         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
86189         [! defined emacs]: Include <xalloc.h>.
86190         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
86191         (pointer): Typedef to POINTER_TYPE *.
86192         (malloc): Remove decl; we now always use xmalloc.
86193         (alloca): Use old-style definition, since Emacs needs this.
86194         Check for arithmetic overflow when computing combined size.
86195
86196 2002-12-04  Paul Eggert  <eggert@twinsun.com>
86197
86198         Do not generate unlocked-io.h automatically, since it's easier to
86199         maintain it by hand.
86200
86201         * lib/unlocked-io.h: New file, from GNU diffutils,
86202         but with proper copyright notice and attribution.
86203         * lib/gen-uio: Remove.
86204         * lib/Makefile.am: Add copyright notice.
86205         (libfetish_a_SOURCES): Add unlocked-io.h.
86206         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
86207         (DISTCLEANFILES, io_functions): Remove macros.
86208         (EXTRA_DIST): Remove gen_uio.
86209         (unlocked-io.h): Remove rule.
86210
86211 2002-12-04  Jim Meyering  <jim@meyering.net>
86212
86213         Reflect the fact that stat.c and lstat.c are no longer generated.
86214         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
86215         (DISTCLEANFILES): Likewise.
86216         (EXTRA_DIST): Likewise.
86217         (all_local): Don't depend on stat.c or lstat.c.
86218         (stat.c, lstat.c): Remove rules.
86219         (EXTRA_DIST): Remove xstat.in.
86220
86221         * lib/xstat.in: Remove file.  Contents moved into stat.c.
86222         * lib/stat.c: New file.  Contents mostly from xstat.in.
86223         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
86224         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
86225
86226         * lib/safe-read.c: Rework so that it may serve to define safe_write,
86227         too.
86228         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
86229
86230 2002-12-03  Jim Meyering  <jim@meyering.net>
86231
86232         * lib/safe-read.c, safe-write.c: Change variable names and comments,
86233         but not semantics, to minimize the differences between these two files.
86234         (safe_read): Change comment to mention SAFE_READ_ERROR.
86235
86236         * lib/safe-read.c (IS_EINTR): Define.
86237         (safe_read): Use IS_EINTR in place of in-function cpp directives.
86238
86239 2002-12-02  Jim Meyering  <jim@meyering.net>
86240
86241         * lib/safe-read.c (EINTR): Define.
86242         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86243         (INT_MAX): Provide fallback.
86244         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
86245
86246         * lib/safe-read.h (SAFE_READ_ERROR): Define.
86247
86248 2002-12-02  Bruno Haible  <bruno@clisp.org>
86249
86250         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
86251         Define, taken from safe-read.c.
86252         (INT_MAX): Provide fallback.
86253         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
86254         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
86255
86256         * lib/safe-read.c (EINTR): Remove definition.
86257         (safe_read): Don't use EINTR if it is absent.
86258
86259 2002-12-01  Jim Meyering  <jim@meyering.net>
86260
86261         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
86262         zero.
86263         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
86264
86265 2002-11-27  Paul Eggert  <eggert@twinsun.com>
86266
86267         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
86268         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
86269         with `if (! (value < limit)) abort ();', for readability.
86270
86271 2002-11-26  Karl Berry  <karl@gnu.org>
86272
86273         * lib/strdup.c: copy from libc again, with jim's ok.
86274         * lib/.cppi-disable: re-add strdup.c
86275
86276 2002-11-25  Karl Berry  <karl@gnu.org>
86277
86278         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
86279         instead of "strtol.c".
86280
86281 2002-11-25  Karl Berry  <karl@gnu.org>
86282
86283         * config/install-sh: update from automake for variable quoting, $0 in
86284         error msgs, etc.
86285
86286         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
86287         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
86288         entry.
86289
86290 2002-11-25  Jim Meyering  <jim@meyering.net>
86291
86292         * lib/mktime.c: Sync from libc, now that it has the latest fix.
86293
86294 2002-11-24  Karl Berry  <karl@gnu.org>
86295
86296         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
86297         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
86298
86299 2002-11-24  Jim Meyering  <jim@meyering.net>
86300
86301         Update from coreutils:
86302
86303         * lib/mktime.c: Merge in changes from libc.
86304
86305         Avoid a link-time failure on some Linux systems.
86306         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
86307         (otherwise).
86308         (__mon_yday): Declare with the STATIC attribute.
86309         (__mktime_internal): Likewise.
86310         Based on a report from Greg Schafer.
86311
86312 2002-11-23  Jim Meyering  <jim@meyering.net>
86313
86314         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
86315         Use `unsigned', not `int', as type of index.
86316
86317         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
86318
86319         * lib/fsusage.c: Remove unneeded parentheses around operands of
86320         `defined'.
86321
86322 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86323
86324         * lib/quotearg.h: Allow multiple inclusion by surrounding with
86325         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
86326         so that we can be included first.
86327         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
86328         * lib/quotearg.c: Include quotearg.h immediately after config.h.
86329         No need to include stddef.h or sys/types.h any more.
86330         Surround local include files with "", not "<>".
86331         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
86332         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
86333         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
86334         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
86335         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
86336         (ISPRINT): Remove; no longer needed now that we assume C89.
86337
86338         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
86339         Preserve errno.
86340
86341         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
86342         quotearg_char): Use SIZE_MAX rather than
86343         (size_t) -1 when we are talking about "infinity".
86344
86345         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
86346
86347 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86348
86349         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
86350         hint that one should use `if (! x) abort ();' rather than `assert
86351         (x);', and anyway it's one less thing to worry about configuring.
86352         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
86353         hash_rehash, hash_insert): Use abort rather than assert.
86354
86355 2002-11-22  Bruno Haible  <bruno@clisp.org>
86356
86357         * lib/safe-read.h: Assume C89. Add comments.
86358         (safe_read): Change return type to size_t.
86359         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
86360         byte counts > SSIZE_MAX correctly.
86361         * lib/safe-write.h: New file.
86362         * lib/safe-write.c: New file.
86363         * lib/full-read.h: New file.
86364         * lib/full-read.c: New file.
86365         * lib/full-write.h: Assume C89. Add comments.
86366         * lib/full-write.c: Include safe-write.h.
86367         (full_write): Rewritten to use safe_write.
86368         Suggested by Jim Meyering and Paul Eggert.
86369
86370 2002-11-21  Jim Meyering  <jim@meyering.net>
86371
86372         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
86373
86374         Merge in changes from the coreutils.
86375
86376         2002-09-25  Paul Eggert  <eggert@twinsun.com>
86377         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
86378         <stdint.h>.
86379         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
86380         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
86381         int.  Work more efficiently if X is the same width as uintmax_t.
86382         Do not compare X to -1, to avoid bogus compiler warning.
86383         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
86384         Don't assume that f_frsize and f_bsize are the same type.
86385
86386         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
86387         warning on FreeBSD.
86388
86389         * lib/makepath.c (make_path): Restore umask *before* creating the final
86390         component.
86391         (make_path): Minor reformatting.
86392
86393         * lib/xmalloc.c: Adjust to work with new autoconf macros,
86394         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
86395         HAVE_MALLOC/HAVE_REALLOC.
86396
86397         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
86398         dummy ones.  At least on GNU/Linux systems, `auto' means something
86399         else.
86400         From Michael Stone.
86401
86402 2002-11-21  Bruno Haible  <bruno@clisp.org>
86403
86404         Remove case insensitive option matching.
86405         * lib/argmatch.h (argcasematch): Remove declaration.
86406         (ARGCASEMATCH): Remove macro.
86407         (__xargmatch_internal): Remove case_sensitive argument.
86408         (XARGMATCH): Update.
86409         (XARGCASEMATCH): Remove macro.
86410         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
86411         case_sensitive argument.
86412         (argcasematch): Remove function.
86413         (__xargmatch_internal): Remove case_sensitive argument.
86414         (main): Use XARGMATCH instead of XARGCASEMATCH.
86415
86416         * lib/xmalloc.c: Change compile-time error message. Add comment about
86417         required autoconf version.
86418
86419 2002-11-20  Paul Eggert  <eggert@twinsun.com>
86420
86421         Merge argmatch cleanups from Bison.  Assume C89.
86422
86423         * lib/argmatch.c: Include config.h here, not in argmatch.h.
86424         Include stdlib.h, for EXIT_FAILURE.
86425         Always include <string.h>, since we assume C89.
86426         (EXIT_FAILURE): Remove pre-C89 bug workaround.
86427         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
86428         Include <stddef.h> instead, since it's all we need for size_t.
86429         (PARAMS): Remove.  All uses removed.
86430         (ARRAY_CARDINALITY): Do not bother to #undef.
86431         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
86432         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86433         Remove unnecessary parentheses.
86434         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86435         Insert necessary parentheses.
86436         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
86437         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
86438
86439 2002-11-19  Bruno Haible  <bruno@clisp.org>
86440
86441         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
86442         * lib/mbswidth.h: Include <stddef.h>, for size_t.
86443
86444         * lib/mbswidth.h (PARAMS): Remove macro.
86445         (mbswidth, mbsnwidth): Use ANSI C function declarations.
86446         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
86447
86448         * lib/gcd.h (PARAMS): Remove macro.
86449         (gcd): Use ANSI C function declarations.
86450         * lib/gcd.c (gcd): Likewise.
86451
86452 2002-11-15  Bruno Haible  <bruno@clisp.org>
86453
86454         * lib/strcspn.c: Include <stddef.h>.
86455         (strcspn): Use ANSI C function declaration. Change return type to
86456         size_t. Use NULL.
86457         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
86458         (strpbrk): Use NULL.
86459         * lib/strpbrk.h (PARAMS): Remove macro.
86460         (strpbrk): Use ANSI C function declaration.
86461         * lib/strstr.c: Don't include <sys/types.h>.
86462         * lib/strstr.h (PARAMS): Remove macro.
86463         (strstr): Use ANSI C function declarations.
86464
86465 2002-11-14  Karl Berry  <karl@gnu.org>
86466
86467         * config/mkinstalldirs: `do' on separate line, instead of
86468         `for var; do'.
86469
86470 2002-11-06  Bruno Haible  <bruno@clisp.org>
86471
86472         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
86473         * lib/gcd.c (gcd): Likewise.
86474
86475 2002-11-05  Bruno Haible  <bruno@clisp.org>
86476
86477         * lib/gcd.h: New file, from gettext-0.11.5.
86478         * lib/gcd.c: New file, from gettext-0.11.5.
86479
86480 2002-11-05  Bruno Haible  <bruno@clisp.org>
86481
86482         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86483         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86484         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86485         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86486
86487         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
86488         <libintl.h>.
86489         * lib/makepath.c: Include gettext.h instead of <locale.h> and
86490         <libintl.h>.
86491
86492         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
86493         * lib/human.c: Include gettext.h instead of <libintl.h>.
86494         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
86495         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
86496         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
86497         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
86498         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
86499         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
86500         (textdomain): Remove definition.
86501         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
86502
86503         * lib/long-options.c: Remove include of <libintl.h> and definition of
86504         _.
86505         * lib/same.c: Remove include of <libintl.h> and definition of _.
86506
86507 2002-11-04  Owen Taylor  <otaylor@redhat.com>
86508
86509         * lib/config.charset: A few additions for Solaris.
86510
86511 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86512
86513         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
86514         * lib/localcharset.c (locale_charset): Declare as extern "C".
86515
86516 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86517
86518         * lib/config.charset: msdos in uk_UA uses CP1125.
86519
86520 2002-11-04  Bruno Haible  <bruno@clisp.org>
86521
86522         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
86523         * lib/strcase.h: New file, from GNU gettext-0.11.5.
86524         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
86525         * lib/strstr.h: New file, from GNU gettext-0.11.5.
86526         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
86527
86528 2002-11-04  Bruno Haible  <bruno@clisp.org>
86529
86530         * lib/localcharset.c (locale_charset): Don't return an empty string.
86531
86532 2002-11-04  Bruno Haible  <bruno@clisp.org>
86533
86534         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
86535         aliases.
86536
86537 2002-11-04  Bruno Haible  <bruno@clisp.org>
86538
86539         * lib/config.charset: Update for newest glibc. Add canonical names
86540         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
86541
86542 2002-11-04  Bruno Haible  <bruno@clisp.org>
86543
86544         * lib/config.charset: Add support for NetBSD.
86545
86546 2002-11-04  Bruno Haible  <bruno@clisp.org>
86547
86548         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
86549
86550 2002-11-01  Bruno Haible  <bruno@clisp.org>
86551
86552         * configure.in: Add AC_CONFIG_AUX_DIR call.
86553         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
86554         test/Makefile.
86555         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
86556
86557 2002-09-28  Karl Berry  <karl@gnu.org>
86558
86559         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
86560         installed automake until the next release, since changes have been
86561         made.
86562
86563 2002-09-25  Karl Berry  <karl@gnu.org>
86564
86565         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
86566         * lib/getopt*: copy from libc/posix.
86567         * lib/gettext.h: copy from gettext.
86568         * lib/.cppi-disable: add strdup.c, gettext.h.
86569
86570 2002-09-25  Karl Berry  <karl@gnu.org>
86571
86572         * config/srclist.txt: enable gettext.h check.
86573         * config/config.{guess,sub}: update from prep.
86574         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
86575                 from automake 1.6.3.
86576         See srclist*.
86577
86578 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
86579
86580         * regex.c (PATFETCH): Remove the translating fetch.
86581         (PATFETCH_RAW): Rename to PATFETCH.
86582         (set_image_of_range): New fun.
86583         (SET_RANGE_TABLE_WORK_AREA): Use it.
86584         (regex_compile): Don't translate the pattern chars so eagerly.
86585         Only do it when inserting an `exactn' bytecode or when handling
86586         a char-range.
86587         (mutually_exclusive_p): Avoid empty statement.
86588
86589 2002-07-06  Jim Meyering  <meyering@lucent.com>
86590
86591         * m4/README: Don't mention Makefile.am.in.
86592         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
86593
86594 2002-07-01  Jim Meyering  <meyering@lucent.com>
86595
86596         * lib/c-stack.c: Include sys/time.h.
86597         From Volker Borchert.
86598
86599 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86600
86601         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
86602
86603 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86604
86605         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
86606         New macro.  Use it uniformly instead of
86607         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
86608         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
86609         reported by Vin Shelton.
86610
86611 2002-06-22  Paul Eggert  <eggert@twinsun.com>
86612
86613         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
86614         Do not assume SA_SIGINFO behavior.
86615         Bug reported by Jim Meyering on NetBSD 1.5.2.
86616
86617 2002-06-22  Jim Meyering  <meyering@lucent.com>
86618
86619         * m4/c-stack.m4: New file, from diffutils-2.8.2.
86620         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
86621
86622         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
86623         now that configure.ac uses AC_GNU_SOURCE.
86624         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
86625         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
86626
86627         Update to latest tools.  Suggestions from Paul Eggert.
86628         * m4/stdbool.m4: New file, from diffutils-2.8.2.
86629         * m4/gnu-source.m4: Update from diffutils-2.8.2.
86630         * m4/fnmatch.m4: Likewise.
86631         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
86632         to AC_HEADER_STDBOOL
86633
86634 2002-06-22  Jim Meyering  <meyering@lucent.com>
86635
86636         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
86637         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
86638
86639 2002-06-22  Jim Meyering  <meyering@lucent.com>
86640
86641         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
86642
86643         * lib/exitfail.c, exitfail.h: Likewise.
86644         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86645
86646         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86647         of fnmatch.h.
86648         (EXTRA_DIST): Add fnmatch_loop.c.
86649         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86650
86651         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86652         * lib/fnmatch.c: Update from diffutils-2.8.2.
86653         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86654         * lib/fnmatch.h: Remove file.
86655
86656 2002-06-21  Jim Meyering  <meyering@lucent.com>
86657
86658         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86659         * m4/mbrtowc.m4: Likewise.
86660
86661         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86662         * m4/mbswidth.m4: Reflect name change:
86663         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86664         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86665
86666         * m4/lib-link.m4: Update from gettext-0.11.2.
86667         * m4/gettext.m4: Likewise.
86668
86669         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86670         From Alfred M. Szmidt.
86671
86672 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86673
86674         * lib/file-type.h: Report an error if neither S_ISREG nor
86675         S_IFREG is defined, instead of using a test specific to glibc
86676         2.2.  This should be safe, since POSIX requires S_ISREG and
86677         Unix Version 7 had S_IFREG.  We don't need to check for
86678         <sys/types.h> since we don't use any symbols that it defines.
86679
86680 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86681
86682         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86683         $@-t, so that each temporary file name is unique and valid in the first
86684         8 characters, for operation under DOS.
86685
86686 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86687
86688         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86689
86690 2002-06-15  Jim Meyering  <meyering@lucent.com>
86691
86692         Work even with DJGPP 2.03, which lacks support for symlinks.
86693         From Richard Dawe.
86694         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
86695         is defined.
86696         * lib/lchown.c (S_ISLNK): Likewise.
86697
86698 2002-06-15  Jim Meyering  <meyering@lucent.com>
86699
86700         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
86701         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
86702         have been included before this file.
86703
86704 2002-06-14  Jim Meyering  <meyering@lucent.com>
86705
86706         * lib/file-type.h: Use the version from diffutils-2.8.2.
86707         * lib/file-type.c: Likewise.
86708
86709 2002-06-07  Jim Meyering  <meyering@lucent.com>
86710
86711         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86712         They're needed at least for NetBSD 1.5.2.
86713         ($statxfs_includes): Include those same headers.
86714         ($statxfs_includes): Include sys/vfs.h if available.
86715         ($statxfs_includes): Likewise for sys/statvfs.h.
86716         Check for the following members in both structs statfs and statvfs:
86717         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86718
86719 2002-06-01  Jim Meyering  <meyering@lucent.com>
86720
86721         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86722         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86723
86724 2002-05-28  Jim Meyering  <meyering@lucent.com>
86725
86726         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86727         Reported by Volker Borchert.
86728
86729 2002-05-27  Jim Meyering  <meyering@lucent.com>
86730
86731         Fix a problem seen only on nonconforming systems whereby ls.c's
86732         use of localtime, and then of gettimeofday would cause trouble:
86733         the localtime call used to initialize rpl_gettimeofday's save
86734         mechanism would clobber ls's current local time information so
86735         that in any long listing the first file would always be listed
86736         with date 1970-01-01.  Analysis by Volker Borchert.
86737
86738         * lib/gettimeofday.c (localtime): Undefine.
86739         (rpl_localtime): New function.
86740
86741 2002-05-27  Jim Meyering  <meyering@lucent.com>
86742
86743         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
86744         localtime.
86745
86746         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
86747         use the replacement function; it wouldn't resolve at link time.
86748         Reported by Volker Borchert.
86749
86750 2002-05-22  Jim Meyering  <meyering@lucent.com>
86751
86752         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
86753         file-type.h.
86754         * lib/file-type.h: New file.
86755         * lib/file-type.c (file_type): New file/function.  Extracted from
86756         diffutils.
86757
86758 2002-04-30  Jim Meyering  <meyering@lucent.com>
86759
86760         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86761
86762 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86763
86764         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86765
86766 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86767
86768         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86769         Do not check for alloca.h (no longer used) or stdbool.h (was never
86770         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86771
86772 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86773
86774         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86775
86776 2002-04-29  Jim Meyering  <meyering@lucent.com>
86777
86778         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86779         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86780         Use AC_FUNC_STRNLEN here instead.
86781
86782         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86783         With autoconf-2.53a, it's part of AC_PROG_CC.
86784
86785 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86786
86787         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86788         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86789
86790 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86791
86792         * lib/sig2str.h, lib/sig2str.c: New files.
86793         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86794
86795 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86796
86797         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
86798         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
86799         of 127, since 64 is the largest conceivable number for ancient
86800         nonstandard hosts.
86801         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
86802
86803 2002-04-28  Jim Meyering  <meyering@lucent.com>
86804
86805         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
86806
86807 2002-04-24  Jim Meyering  <meyering@lucent.com>
86808
86809         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86810         (jm_PREREQ): Use it.
86811
86812         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86813         mach/mach.h fcntl.h.
86814         Check for this function: setlocale.
86815
86816 2002-04-24  Jim Meyering  <meyering@lucent.com>
86817
86818         * lib/gettext.h: New file, from Gettext.
86819         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86820         (libfetish_a_SOURCES): Add gettext.h.
86821
86822 2002-04-16  Jim Meyering  <meyering@lucent.com>
86823
86824         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86825         ut_pid, ut_id, ut_exit.
86826
86827 2002-04-16  Jim Meyering  <meyering@lucent.com>
86828
86829         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86830         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86831         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86832
86833 2002-04-12  Jim Meyering  <meyering@lucent.com>
86834
86835         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86836         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86837         existence of the getmntinfo function.  Needed for Darwin 5.3.
86838
86839         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86840         This is necessary at least on Darwin 5.3.
86841
86842         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86843         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86844         strnlen.o in the library, and that makes some versions of ranlib
86845         object.
86846
86847 2002-04-12  Jim Meyering  <meyering@lucent.com>
86848
86849         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86850
86851 2002-04-09  Jim Meyering  <meyering@lucent.com>
86852
86853         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86854         to be more precise.  Rather than saying we're checking whether the
86855         function `works', say what we're testing.
86856         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86857         Reported by Bruno Haible.
86858
86859 2002-03-10  Jim Meyering  <meyering@lucent.com>
86860
86861         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86862         Suggestion from Santiago Vila.
86863
86864 2002-03-08  Jim Meyering  <meyering@lucent.com>
86865
86866         * lib/rename.c: Mention that this wrapper is needed also on
86867         mips-dec-ultrix4.4 systems.
86868
86869 2002-03-02  Jim Meyering  <meyering@lucent.com>
86870
86871         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86872         not HAVE_CLOCK_SETTIME.
86873
86874 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86875
86876         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86877         Check for clock_settime.
86878
86879 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86880
86881         * lib/nanosleep.h: Rename to....
86882         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86883
86884         * lib/gettime.c: New file.
86885         * lib/settime.c: New file.
86886         * lib/stime.c: Remove.
86887
86888         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86889         timespec.h.  Remove nanosleep.h.
86890
86891 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86892
86893         * m4/acl.m4: New file.
86894         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86895         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86896
86897 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86898
86899         * lib/acl.c, lib/acl.h: New files.
86900         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86901
86902 2002-02-24  Jim Meyering  <meyering@lucent.com>
86903
86904         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86905         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86906         cause trouble.  Reported by Nelson Beebe.
86907
86908 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86909
86910         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86911         compilers that don't know that xalloc_die never returns.
86912
86913 2002-02-20  Jim Meyering  <meyering@lucent.com>
86914
86915         * lib/getdate.c: Regenerate using bison-1.33.
86916
86917 2002-02-17  Jim Meyering  <meyering@lucent.com>
86918
86919         * config/config.guess (main): Don't use `head -1'; it's no longer
86920         portable. Use `sed 1q' instead.
86921
86922 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86923
86924         * m4/codeset.m4: Upgrade to gettext-0.11.
86925         * m4/gettext.m4: Upgrade to gettext-0.11.
86926         * m4/glibc21.m4: Upgrade to gettext-0.11.
86927         * m4/iconv.m4: Upgrade to gettext-0.11.
86928         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86929         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86930         * m4/lib-ld.m4: New file, from gettext-0.11.
86931         * m4/lib-link.m4: New file, from gettext-0.11.
86932         * m4/lib-prefix.m4: New file, from gettext-0.11.
86933         * m4/progtest.m4: Upgrade to gettext-0.11.
86934
86935 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86936
86937         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86938         (jm_PREREQ): Use it.
86939
86940 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86941
86942         * lib/posixver.c, lib/posixver.h: New files.
86943         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86944
86945 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86946             Bruno Haible  <bruno@clisp.org>
86947
86948         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86949         (fwrite_success_callback): New declaration.
86950         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86951         print_unicode_char. Call failure callback instead of error.
86952         (fwrite_success_callback): New function.
86953         (exit_failure_callback): New function.
86954         (fallback_failure_callback): New function.
86955         (print_unicode_char): Call unicode_to_mb.
86956
86957 2002-01-26  Jim Meyering  <meyering@lucent.com>
86958
86959         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86960         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86961
86962 2002-01-26  Jim Meyering  <meyering@lucent.com>
86963
86964         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86965
86966 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86967
86968         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86969
86970 2002-01-22  Jim Meyering  <meyering@lucent.com>
86971
86972         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86973         Otherwise, some versions of automake would omit the rule that makes
86974         Makefile from Makefile.in.
86975
86976 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86977
86978         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86979         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86980         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86981         (memcoll): Set errno to zero if there is no error.
86982
86983         * lib/quotearg.c (quotearg_buffer_restyled):
86984         Fix bug with quoting buffers containing NUL when backslashing escapes.
86985         This bug was exposed by the other changes in this patch.
86986         (quotearg_n_options): New arg ARGSIZE.
86987         All callers changed.
86988         (quoting_options_from_style): New function.
86989         (quotearg_n_style): Use it.
86990         (quotearg_n_style_mem): New function.
86991
86992         * lib/quotearg.h (quotearg_n_style_mem): New function.
86993
86994 2002-01-19  Jim Meyering  <meyering@lucent.com>
86995
86996         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86997         Remove useless quotes: DF_PROG="df".
86998         * m4/strnlen.m4: New file.
86999
87000 2002-01-16  Paul Eggert  <eggert@twinsun.com>
87001
87002         * lib/backupfile.c (ISDIGIT): Comment fix.
87003         * lib/getdate.y (ISDIGIT): Likewise.
87004         * lib/posixtm.c (ISDIGIT, year): Likewise.
87005         * lib/strverscmp.c (ISDIGIT): Likewise.
87006         * lib/userspec.c (ISDIGIT): Likewise.
87007
87008 2002-01-16  Jim Meyering  <meyering@lucent.com>
87009
87010         * lib/getdate.y: Add three semicolons, each just before a closing
87011         brace. Bison (as of version 1.31) no longer papers over that mistake.
87012
87013 2002-01-05  Jim Meyering  <meyering@lucent.com>
87014
87015         * lib/version-etc.c (version_etc_copyright): Update copyright year.
87016
87017 2001-12-19  Paul Eggert  <eggert@twinsun.com>
87018
87019         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
87020         not silently exit merely because the output buffer happens to
87021         have nothing pending.
87022
87023 2001-12-18  Paul Eggert  <eggert@twinsun.com>
87024
87025         See the big note in ../ChangeLog.
87026         * lib/human.c (suffixes): Prefer K to k for 1024.
87027         (generate_suffix_backwards): New function.
87028         (human_readable_inexact): Use it.
87029         * lib/xstrtol.c (__xstrtol): If there is no number but there
87030         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
87031         Accept 'K' as well as 'k'.
87032
87033 2001-12-15  Jim Meyering  <meyering@lucent.com>
87034
87035         * lib/regex.h (__restrict_arr): Update from libc.
87036
87037         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
87038         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
87039         (STREQ): Define.
87040
87041 2001-12-14  Jim Meyering  <meyering@lucent.com>
87042
87043         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
87044         Suggestion from Bruno Haible.
87045
87046 2001-12-10  Jim Meyering  <meyering@lucent.com>
87047
87048         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
87049         xrealloc, Instead, include "xalloc.h".
87050         (initbuffer): Don't cast xmalloc return value to char*.
87051         (readline): Reword comment.
87052         Don't cast xrealloc return value to char*
87053         Return NULL, not 0.
87054
87055 2001-12-09  Jim Meyering  <meyering@lucent.com>
87056
87057         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
87058         about `signed and unsigned type in conditional expression'.
87059         * lib/posixtm.c (posix_time_parse): Likewise.
87060
87061         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
87062
87063         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
87064         to avoid a pedantic warning.
87065
87066         * lib/getstr.c: Don't include assert.h.
87067         (getstr): Remove warning-evoking assertions.
87068         Return -1 if offset parameter is out of bounds.
87069         Change the type of a local from int to size_t.
87070
87071         * lib/strftime.c (my_strftime_localtime_r): Include this function
87072         definition in the `#if ! HAVE_TM_GMTOFF' block.
87073
87074         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
87075         Include xalloc.h instead.
87076
87077 2001-12-02  Jim Meyering  <meyering@lucent.com>
87078
87079         * lib/tempname.c: Don't declare getenv, thus reverting the change of
87080         2001-11-18.  It's no longer necessary, now that stdlib.h is always
87081         included.
87082
87083         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
87084         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
87085
87086 2001-11-30  Akim Demaille  <akim@epita.fr>
87087
87088         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
87089         before being defined.
87090
87091 2001-11-27  Paul Eggert  <eggert@twinsun.com>
87092
87093         * lib/quotearg.h (quotearg_n, quotearg_n_style):
87094         First arg is int, not unsigned.
87095         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
87096         (SIZE_MAX, UINT_MAX): New macros.
87097         (quotearg_n_options): Abort if N is negative.
87098         Avoid overflow check on hosts where size_t is 64 bits and int
87099         is 32 bits, as overflow is impossible there.
87100         Fix off-by-one typo that caused unnecessary reallocation.
87101
87102 2001-11-27  Jim Meyering  <meyering@lucent.com>
87103
87104         * lib/tempname.c: Merge with version from libc.
87105         * lib/regex.c: Likewise.
87106
87107         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
87108         systems for which STDC_HEADERS is 0, it was not included, resulting in
87109         a warning about an integer-to-pointer conversion problem with getenv.
87110         Reported by Volker Borchert.
87111
87112 2001-11-26  Jim Meyering  <meyering@lucent.com>
87113
87114         * lib/gtod.h: Remove file.
87115         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
87116         * lib/gettimeofday.c: Don't include gtod.h.
87117         (GTOD_init): Remove function.
87118         (rpl_gettimeofday): Do its job here instead, rather than aborting.
87119         Suggestion from Volker Borchert.
87120
87121 2001-11-23  Jim Meyering  <meyering@lucent.com>
87122
87123         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
87124         it.
87125         * lib/hash.c (struct hash_table): Define it here instead.
87126
87127 2001-11-22  Jim Meyering  <meyering@lucent.com>
87128
87129         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
87130
87131 2001-11-20  Jim Meyering  <meyering@lucent.com>
87132
87133         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
87134         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
87135
87136 2001-11-19  Jim Meyering  <meyering@lucent.com>
87137
87138         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
87139         directory.  Use "conftestXXXXXX" as the template.
87140         Suggestion from Paul Eggert.
87141
87142         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
87143         immediately, so the test doesn't mistakenly hit the max-open-files
87144         limit.
87145
87146 2001-11-18  Paul Eggert  <eggert@twinsun.com>
87147
87148         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
87149         (TEMPORARIES): New macro.
87150         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
87151         removes an artificial limitation (e.g. HP-UX 10.20, where
87152         TMP_MAX is 17576).
87153
87154 2001-11-18  Jim Meyering  <meyering@lucent.com>
87155
87156         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
87157
87158 2001-11-18  Jim Meyering  <meyering@lucent.com>
87159
87160         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
87161         on SunOS 4.
87162
87163         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
87164         files will be created before anything else.
87165
87166 2001-11-17  Paul Eggert  <eggert@twinsun.com>
87167
87168         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
87169         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
87170
87171 2001-11-17  Jim Meyering  <meyering@lucent.com>
87172
87173         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
87174         Prompted by a report from Bob Proulx.
87175
87176         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
87177         Instead, require UTILS_FUNC_MKSTEMP.
87178
87179 2001-11-17  Jim Meyering  <meyering@lucent.com>
87180
87181         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
87182         Now, that's done as part of AC_FUNC_STRTOD.
87183
87184 2001-11-17  Jim Meyering  <meyering@lucent.com>
87185
87186         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
87187         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
87188         rather than group writable.  Patch by Juan F. Codagnone.
87189
87190         * lib/readtokens.c: Remove explicit declarations of xmalloc and
87191         xrealloc, Instead, include "xalloc.h".
87192
87193         * lib/mountlist.c: Include unlocked-io.h after all system headers.
87194         Remove explicit declarations of xmalloc, xrealloc,
87195         and xstrdup.  Instead, include "xalloc.h".
87196
87197         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
87198         unlocked-io.h.
87199         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
87200         Likewise.
87201         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
87202
87203         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
87204         Reported by Padraig Brady.
87205
87206         * lib/mkstemp.c: #undef mkstemp.
87207         Include config.h.
87208         (rpl_mkstemp): Rename from mkstemp.
87209         Protoize.
87210
87211 2001-11-16  Jim Meyering  <meyering@lucent.com>
87212
87213         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
87214         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
87215         determine the amount of total physical memory, use pstat_getstatic.
87216         HPUX-11 doesn't define _SC_PHYS_PAGES.
87217         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
87218         If sysconf couldn't be used to determine the amount of available
87219         physical memory, use both pstat_getstatic and pstat_getdynamic.
87220         Based on a patch from Bob Proulx.
87221
87222 2001-11-10  Jim Meyering  <meyering@lucent.com>
87223
87224         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
87225         (jm_PREREQ): Use it.
87226
87227 2001-11-09  Jim Meyering  <meyering@lucent.com>
87228
87229         * m4/jm-macros.m4: Require autoconf-2.52f.
87230         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
87231         Use these AC_-prefixed names, not the AM_-prefixed ones.
87232
87233         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
87234
87235 2001-11-05  Jim Meyering  <meyering@lucent.com>
87236
87237         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
87238
87239 2001-11-04  Jim Meyering  <meyering@lucent.com>
87240
87241         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
87242         $DEFS.
87243
87244 2001-11-03  Jim Meyering  <meyering@lucent.com>
87245
87246         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
87247         of AC_DEFUN.
87248
87249         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
87250         know the name of the variable in the macro definition.
87251
87252 2001-11-03  Jim Meyering  <meyering@lucent.com>
87253
87254         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
87255         in argmatch_to_argument call.
87256
87257         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
87258         argument.
87259
87260         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
87261         e.g., a fault due to an attempt to free a NULL pointer.
87262
87263 2001-11-01  Jim Meyering  <meyering@lucent.com>
87264
87265         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
87266         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
87267
87268 2001-11-01  Jim Meyering  <meyering@lucent.com>
87269
87270         * lib/dirfd.c, lib/dirfd.h: New files.
87271         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
87272
87273         * lib/hash.c (hash_print) [TESTING]: Clean up.
87274
87275 2001-10-22  Paul Eggert  <eggert@twinsun.com>
87276
87277         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
87278         to avoid a warning if -Wall.
87279
87280 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
87281
87282         * README: New file
87283         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
87284         (per RMS's instructions, this is now the canonical source)
87285         * lgpl/, gpl/: New directories.
87286
87287 2001-10-21  Paul Eggert  <eggert@twinsun.com>
87288
87289         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
87290
87291 2001-10-21  Jim Meyering  <meyering@lucent.com>
87292
87293         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
87294         this code would end up calling gettext even in packages built
87295         with --disable-nls.
87296         * lib/getopt.c (_): Likewise.
87297         * lib/regex.c (_): Likewise.
87298
87299 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87300
87301         * m4/error.m4 (jm_PREREQ_ERROR):
87302         Do not invoke AC_CHECK_FUNCS with strerror_r, as
87303         AC_FUNC_STRERROR_R does that.
87304         Check for strerror declaration.
87305
87306         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
87307         are supposed to have them these days.
87308         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
87309         Merge changes from latest Autoconf CVS.
87310         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
87311         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
87312         POSIX decided to standardize on the int flavor of strerror_r.
87313
87314 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87315
87316         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
87317         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
87318         Use strerror_r that is only a macro, even if it is not a function.
87319         (strerror): Check for HAVE_DECL_STRERROR before declaring.
87320         (private_strerror): Use prototypes, not old-style function definition.
87321         (print_errno_message): New function.
87322         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
87323         char*-flavored one.
87324         (error_tail, error, error_at_line): Use it.
87325
87326 2001-10-11  Jim Meyering  <meyering@lucent.com>
87327
87328         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
87329         and quote_n (1, ... to avoid clobbering a buffer.
87330
87331 2001-10-05  Jim Meyering  <meyering@lucent.com>
87332
87333         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
87334         hash-pjw.h.
87335         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
87336         * lib/hash-pjw.h: New file.
87337
87338 2001-09-30  Jim Meyering  <meyering@lucent.com>
87339
87340         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
87341         `struct fsstat' has the `f_fstypename' member.
87342         Use that to define FS_TYPE, which is now used to make
87343         the getfsstat link test tighter.
87344
87345 2001-09-30  Jim Meyering  <meyering@lucent.com>
87346
87347         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
87348         Include <sys/ucred.h>, for Apple Darwin.
87349         Include sys/mount.h and sys/fs_types.h only if available.
87350         (FS_TYPE): Define.
87351         (read_filesystem_list): Use FS_TYPE.
87352
87353 2001-09-29  Paul Eggert  <eggert@twinsun.com>
87354
87355         * lib/exclude.c (excluded_filename): 0 -> false, since it's
87356         a boolean context.
87357
87358 2001-09-29  Jim Meyering  <meyering@lucent.com>
87359
87360         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87361         [one-argument getmntent function]): Include stdio.h before mntent.h.
87362         SunOS 4.1.x needs it for the declaration of `FILE'.
87363         Patch by Volker Borchert.
87364
87365         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87366         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
87367         sys/fs_types.h, and make the link-test for getfsstat guard #include
87368         directives with appropriate #if HAVE_*_H tests so that we can
87369         detect getfsstat on Apple Darwin1.3.7 systems.
87370         Reported by Nelson Beebe.
87371         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
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         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87380         Check for strtoul and strtoumax,
87381         as those declarations are made even in the signed case.
87382         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
87383         Likewise, for strtol and strtoimax.
87384
87385 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87386
87387         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87388         #defines strtoimax.  Also treat the other strto* functions
87389         like strtoimax.
87390
87391         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
87392         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
87393         (strtoimax, strtoumax): Do not declare if already defined as a macro.
87394
87395 2001-09-26  Jim Meyering  <meyering@lucent.com>
87396
87397         Most macros in unlocked-io.h had the wrong number of arguments.
87398         * lib/gen-uio: New script.
87399         (USE_UNLOCKED_IO): Define to 1 if not already defined.
87400         * lib/unlocked-io.hin: Remove file.
87401         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
87402         rather than trying to embed it here.
87403         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
87404         Reported by Padraig Brady.
87405
87406 2001-09-25  Volker Borchert  <bt@teknon.de>
87407
87408         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
87409         `result'.
87410
87411 2001-09-24  Jim Meyering  <meyering@lucent.com>
87412
87413         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
87414
87415 2001-09-23  Jim Meyering  <meyering@lucent.com>
87416
87417         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
87418         instead of the mere test for existence of mntent.h.  The latter
87419         would get a false-positive on AIX 3.4 systems.
87420         In the outer getmntent if-block, don't die if neither of the getmntent
87421         tests succeeds.  Instead, just fall through and continue with the
87422         remaining tests.
87423
87424 2001-09-23  Jim Meyering  <meyering@lucent.com>
87425
87426         * lib/mountlist.c: Remove useless parentheses in #if directives.
87427         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
87428         the deprecated MOUNTED symbol is no longer defined in mntent.h.
87429
87430 2001-09-22  Jim Meyering  <meyering@lucent.com>
87431
87432         * m4/gettext.m4: New file.  From gettext.
87433         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
87434         * m4/progtest.m4: Likewise
87435         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
87436         * m4/glibc21.m4: Likewise.
87437
87438         * m4/libintl.m4: Remove.  No longer used.
87439
87440 2001-09-22  Jim Meyering  <meyering@lucent.com>
87441
87442         * lib/localcharset.c: Update from latest gettext.
87443         * lib/config.charset: Likewise.
87444
87445 2001-09-20  Jim Meyering  <meyering@lucent.com>
87446
87447         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
87448         strtoimax.
87449         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
87450         strtoumax.
87451
87452 2001-09-20  Jim Meyering  <meyering@lucent.com>
87453
87454         * lib/xstrtol.c (strtoimax): Guard declaration with
87455         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
87456         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
87457         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
87458         (strtoumax): Likewise, for completeness (it wasn't necessary).
87459
87460 2001-09-17  Paul Eggert  <eggert@twinsun.com>
87461
87462         * lib/strtoimax.c (HAVE_LONG_LONG):
87463         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
87464         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
87465         to work around bug in IBM C compiler.
87466
87467 2001-09-17  Jim Meyering  <meyering@lucent.com>
87468
87469         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
87470         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
87471         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
87472         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
87473         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
87474         whenever the right hand side need not be expanded by the shell.
87475
87476 2001-09-16  Paul Eggert  <eggert@twinsun.com>
87477
87478         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
87479         library.  It's not correct, as some older glibcs are buggy.
87480         fnmatch wasn't fixed until glibc 2.2.
87481
87482         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
87483         special shell magic here.
87484
87485 2001-09-16  Jim Meyering  <meyering@lucent.com>
87486
87487         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
87488         * m4/jm-macros.m4: Require it.
87489
87490 2001-09-16  Jim Meyering  <meyering@lucent.com>
87491
87492         * lib/mkdir.c: New file.
87493
87494 2001-09-15  Jim Meyering  <meyering@lucent.com>
87495
87496         * m4/jm-macros.m4: Check for help2man.
87497
87498 2001-09-11  Jim Meyering  <meyering@lucent.com>
87499
87500         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
87501         The body, by Paul Eggert, was moved here from configure.in.
87502         * m4/jm-macros.m4: Require UTILS_HOST_OS.
87503
87504 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87505
87506         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
87507         (jm_PREREQ): Use it.
87508
87509 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87510
87511         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
87512         Use ssize_t, not int, to store result of readlink.
87513         Check for ssize_t overflow as well as size_t overflow,
87514         as POSIX says the result of readlink is implementation-defined
87515         when ssize_t overflows.
87516         Remove unnecessary cast to char*.
87517         Use free+malloc instead of realloc, as the storage doesn't need
87518         to be preserved and it's clearer and can be more efficient that way.
87519         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
87520         * lib/xreadlink.h (xreadlink): Update prototype.
87521
87522 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87523
87524         * lib/xgetcwd.c: Revert some of the previous change; intead,
87525         fix the HAVE_GETCWD_NULL code to behave more like the
87526         !HAVE_GETCWD_NULL code used to.
87527
87528         Include "xalloc.h".
87529         (xgetcwd): Do not return NULL when memory is exhausted; instead,
87530         invoke xalloc_die.
87531
87532 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87533
87534         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
87535         sys/param.h, as pathmax.h includes them.
87536
87537 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87538
87539         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
87540         (jm_PREREQ_XGETCWD): New macro.
87541
87542         * m4/getcwd.m4: New file.
87543
87544 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87545
87546         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
87547         like the HAVE_GETCWD_NULL code.
87548         Include pathmax.h if not HAVE_GETCWD.
87549         Do not include xalloc.h.
87550         (INITIAL_BUFFER_SIZE): New symbol.
87551         Do not use xmalloc / xrealloc, since the caller is responsible for
87552         handling errors.  Preserve errno around `free' during failure.
87553         Do not overrun buffer when using getwd.
87554
87555 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87556
87557         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
87558         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
87559         getcwd (NULL, 0).
87560
87561 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87562
87563         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
87564         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
87565         spotted by Jim Meyering.
87566
87567 2001-09-03  Jim Meyering  <meyering@lucent.com>
87568
87569         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
87570         failure.
87571
87572 2001-09-02  Jim Meyering  <meyering@lucent.com>
87573
87574         * lib/error.c: Update from GNU libc.
87575
87576 2001-09-01  Jim Meyering  <meyering@lucent.com>
87577
87578         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
87579         Used by df.
87580
87581 2001-09-01  Jim Meyering  <meyering@lucent.com>
87582
87583         * lib/xreadlink.c: New file.
87584         * lib/xreadlink.h: New file.
87585         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
87586         xreadlink.h.
87587
87588         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
87589         doesn't conflict with sparc Solaris 7's definition in
87590         /usr/include/sys/int_types.h.
87591
87592         * lib/exclude.c: Use `""', not `<>' to #include non-system header
87593         files.
87594         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
87595         and strncasecmp as r-values.  Unixware didn't have declarations.
87596
87597 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87598
87599         * lib/xstrtol.h: Add copyright notice.
87600         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
87601         LONGINT_INVALID_SUFFIX_CHAR.
87602
87603 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87604
87605         * lib/xstrtol.c (strtoimax): New decl.
87606
87607 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87608
87609         * lib/xgetcwd.c: Don't include pathmax.h.
87610         Include stdlib.h and unistd.h if available.
87611         Include xalloc.h.
87612         (xmalloc, xstrdup, free): Remove decls.
87613         (xgetcwd): Don't assume sizes fit in unsigned.
87614         Check for overflow when computing sizes.
87615         Simplify reallocation code.
87616
87617 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87618
87619         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
87620         a directory's st_size can have an arbitrary value, so the old
87621         usage could waste an arbitrary amount of memory.  All uses
87622         changed.
87623         * lib/savedir.h: Update prototype.
87624
87625 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87626
87627         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
87628
87629         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
87630         old strtoimax.c.
87631
87632         Also, make the following further changes to make this file's
87633         configuration more similar to that of strtol.c:
87634         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
87635         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87636         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
87637         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
87638         changed to signed values.
87639
87640         And make the following changes as well:
87641         Fix copyright notice, as 1999 was missing.
87642         (verify): New macro.
87643         (strtoimax): Check sizes at compile-time, not run-time.
87644         Prefer strtol to strtoll if both work.
87645         (main): Remove; it was not that useful and was a pain to maintain.
87646
87647         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87648
87649 2001-08-31  Jim Meyering  <meyering@lucent.com>
87650
87651         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87652         Use an initial, malloc'd, buffer of length 128 rather than
87653         a statically allocated one of length 1024.
87654
87655 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87656
87657         Simplify code, partly by assuming autoconf 2.52 semantics.
87658
87659         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87660
87661         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87662         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87663         All uses removed.
87664         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87665         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87666         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87667         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87668         jm_AC_HEADER_INTTYPES_H.
87669         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87670
87671         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87672
87673         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87674         Quote first arg of AC_DEFUN.
87675         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87676         since they are needed to parse the include file even if we need
87677         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87678         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87679         but with opposite signedness.
87680
87681 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87682
87683         Merge 'exclude' changes from tar 1.13.22.
87684         This fixes one or two unlikely storage allocation overflow bugs,
87685         but doesn't change user-visible behavior otherwise.
87686
87687 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87688
87689         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87690         (jm_PREREQ_EXCLUDE): New macro.
87691
87692 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87693
87694         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
87695         tm to be declared.
87696
87697 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87698
87699         * lib/hash.c: Remove '2001' from copyright notice.
87700
87701 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87702
87703         * lib/full-write.h: New file.
87704         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
87705         * lib/full-write.c: Correct credits, as cccp.c no longer
87706         exists and anyway it was so heavily changed from the old cccp
87707         code as to be unrecognizable.  Include full-write.h.
87708         (full_write): Return size_t, with short writes meaning failure.
87709         All callers changed.  This fixes a bug with large buffers
87710         on 64-bit hosts.
87711         * lib/utime.c: Include full-write.h.
87712
87713 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87714
87715         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87716         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87717         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87718         Include if available.
87719         (<xalloc.h>): Include
87720         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87721         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87722         collide with FNM macros.
87723         (struct patopts): New struct.
87724         (struct exclude): Use it, as exclude patterns now come with options.
87725         (new_exclude): Support above changes.
87726         (new_exclude, add_exclude_file):
87727         Initial size must now be a power of two to simplify overflow checking.
87728         (free_exclude, fnmatch_no_wildcards): New function.
87729         (excluded_filename): No longer requires options arg, as the options
87730         are determined by add_exclude.  Now returns bool, not int.
87731         (excluded_filename, add_exclude):
87732         Add support for the fancy new exclusion options.
87733         (add_exclude, add_exclude_file): Now takes int options arg.
87734         Check for arithmetic overflow when computing sizes.
87735         (add_exclude_file): xrealloc might modify errno, so don't
87736         realloc until after errno might be used.
87737
87738         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
87739         New macros.
87740         (free_exclude): New decl.
87741         (add_exclude, add_exclude_file): Now takes int options arg.
87742         (excluded_filename): No longer requires options arg, as the options
87743         are determined by add_exclude.  Now returns bool, not int.
87744
87745 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87746
87747         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
87748
87749 2001-08-27  Jim Meyering  <meyering@lucent.com>
87750
87751         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
87752
87753         * lib/version-etc.c (N_): Remove definition.
87754         Revert most of last change.
87755         Instead, simply don't mark the `Copyright...' string for translation.
87756         Based on advice from Paul Eggert.
87757
87758         * lib/strtoxmax.c: Tweak comment.
87759
87760 2001-08-26  Jim Meyering  <meyering@lucent.com>
87761
87762         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87763
87764         * m4/xstrtoimax.m4: New file.
87765         * m4/xstrtoumax.m4: Add comments explaining why we
87766         AC_REPLACE_FUNCS(strtol).
87767
87768 2001-08-26  Jim Meyering  <meyering@lucent.com>
87769
87770         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87771         of copyright with `%s' so translators don't get an untranslated
87772         message in 2002.
87773         (COPYRIGHT_YEAR): Define.
87774         (version_etc): Use fprintf rather than fputs.
87775         Suggestion from Ulrich Drepper.
87776
87777         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87778
87779         * lib/strtoll.c: New file, from GNU libc.
87780         * lib/xstrtoimax.c: New file.
87781
87782         * lib/xstrtol.h: Add xstrtoimax.
87783         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87784         * lib/strtoimax.c: New file.  Likewise, but first define
87785         STRTOUXMAX_SIGNED.
87786
87787         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87788         ...
87789         * lib/strtoxmax.c: ... then renamed to this.
87790
87791 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87792
87793         * m4/inttypes.m4: Add AC_PREREQ(2.13).
87794         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
87795         (jm_AC_TYPE_INTMAX_T): New macro.
87796         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
87797
87798         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
87799
87800         * m4/longlong.m4: Renamed from ulonglong.m4.
87801         * m4/inttypes.m4: Renamed from inttypes_h.m4.
87802         * m4/uintmax_t.m4: Removed.
87803
87804 2001-08-13  Paul Eggert  <eggert@twinsun.com>
87805
87806         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
87807         Port to Solaris 8, where 'sed' requires a space after the 'r'
87808         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87809         Redirect output to $tmp just once.
87810
87811 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87812
87813         * lib/addext.c (<errno.h>): Include.
87814         (errno): Declare if not defined.
87815         (addext): Work correctly when pathconf returns -1 and leaves
87816         errno alone because there is no limit.  Also, work even if
87817         pathconf returns a value greater than SIZE_MAX.
87818
87819 2001-08-12  Jim Meyering  <meyering@lucent.com>
87820
87821         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87822         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87823         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87824         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87825         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87826         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87827         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87828         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87829         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87830         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87831         utime.m4, utimes.m4, xstrtoumax.m4:
87832         Quote the first argument in each use of AC_DEFUN.
87833
87834 2001-08-12  Jim Meyering  <meyering@lucent.com>
87835
87836         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87837         Simply `return getcwd (NULL, 0);'.
87838         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87839         Use 1300 as initial value for length, not PATH_MAX.
87840
87841         * lib/pathmax.h: Clean up cpp syntax.
87842
87843 2001-08-12  Jim Meyering  <meyering@lucent.com>
87844
87845         * lib/gettimeofday.c: New file.
87846         * lib/gtod.h: New file.
87847         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87848
87849 2001-08-05  Jim Meyering  <meyering@lucent.com>
87850
87851         * m4/jm-macros.m4: Require autoconf-2.52.
87852
87853 2001-08-04  Jim Meyering  <meyering@lucent.com>
87854
87855         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87856         stmt, to get in sync with glibc.
87857
87858 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87859
87860         The following changes are from gettext 0.10.39 as maintained by
87861         Bruno Haible.
87862
87863         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87864         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87865         with inverted sense.  All uses changed.
87866
87867         * lib/mbswidth.c: Don't include <limits.h>.
87868         Include <stdlib.h> and <string.h> unconditionally.
87869         (iswcntrl, mbsinit, ISCNTRL): New macros.
87870         (mbsnwidth): Use K&R style function declarations.
87871         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87872         can optimize it when MB_CUR_MAX == 1.
87873         The width of control characters is zero, not 1.
87874
87875 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87876
87877         The following changes are from gettext 0.10.39 as maintained by
87878         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87879
87880         * m4/codeset.m4: Upgrade to serial AM1.
87881         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87882         all uses changed.  Quote first arg of AC_DEFUN.
87883         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87884
87885         * m4/iconv.m4: Upgrade to serial AM2.
87886         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87887         Add --with-libconv-prefix.
87888         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87889         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87890         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87891         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87892         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87893
87894         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87895         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87896         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87897         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87898         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87899         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87900         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87901         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87902         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87903
87904         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87905         string.h any more.
87906
87907         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87908         not the default value.
87909
87910         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87911         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87912         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87913         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87914         Also check for iswcntrl, used for wcwidth fallback.
87915         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87916         to Autoconf 2.13.
87917
87918 2001-08-03  Jim Meyering  <meyering@lucent.com>
87919
87920         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87921         as it was in the original.  Reported by Paul Eggert.
87922
87923 2001-07-16  Jim Meyering  <meyering@lucent.com>
87924
87925         * m4/gettimeofday.m4: New file.
87926         Prompted by a report from Bernhard Baehr.
87927
87928 2001-07-15  Jim Meyering  <meyering@lucent.com>
87929
87930         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87931         stuff. Now it's in ../Makefile.cfg.
87932
87933 2001-07-15  Jim Meyering  <meyering@lucent.com>
87934
87935         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87936         (BUILT_SOURCES): Add unlocked-io.h.
87937         (io_functions): Define.
87938         (unlocked-io.h): New rule.
87939         (DISTCLEANFILES): Add unlocked-io.h.
87940         (all-local): Depend on unlocked-io.h, to ensure it is created.
87941
87942         * lib/unlocked-io.hin: New file
87943
87944         * lib/regex.c: Update from glibc.
87945
87946 2001-07-05  Jim Meyering  <meyering@lucent.com>
87947
87948         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87949         recommendation.
87950         (libfetish_a_SOURCES): Put all .h files here instead.
87951         Remove a thus-exposed (better checks in automake) duplicate and
87952         two unnecessary .h files.
87953
87954 2001-07-04  Jim Meyering  <meyering@lucent.com>
87955
87956         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87957         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87958         distcheck failure.
87959
87960 2001-07-02  Jim Meyering  <meyering@lucent.com>
87961
87962         The following changes were prompted by suggestions from Bruno Haible.
87963
87964         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87965         is now generated.
87966         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87967         definition of EXTRA_DIST.
87968         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87969         ensure that the generated file is created/updated whenever the list
87970         of $(unlocked_functions) is changed.
87971         (jm-glibc-io.m4): New rule.
87972         (unlocked-io.h): New rule -- currently unused.
87973
87974 2001-06-24  Jim Meyering  <meyering@lucent.com>
87975
87976         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87977         unmatched right bracket, rather than kludging it with an extra,
87978         falsely-matching quote in a comment.  Patch by Akim Demaille.
87979
87980 2001-06-11  Jim Meyering  <meyering@lucent.com>
87981
87982         * lib/regex.c: Update from GNU libc.
87983
87984 2001-05-27  Jim Meyering  <meyering@lucent.com>
87985
87986         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87987         Check for ut_type in struct utmp.
87988
87989 2001-05-27  Jim Meyering  <meyering@lucent.com>
87990
87991         * lib/readutmp.h (UT_TYPE): Define.
87992
87993 2001-05-24  Jim Meyering  <meyering@lucent.com>
87994
87995         * lib/argmatch.c: Include "quote.h".
87996         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87997         quote function.  Reported by Göran Uddeborg.
87998
87999 2001-05-22  Jim Meyering  <meyering@lucent.com>
88000
88001         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
88002         now that we use the package-supplied version unconditionally.
88003         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
88004
88005 2001-05-21  Jim Meyering  <meyering@lucent.com>
88006
88007         * m4/regex.m4: Change a couple backticks to single quotes to avoid
88008         shell syntax errors.
88009
88010 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88011
88012         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
88013
88014 2001-05-20  Paul Eggert  <eggert@twinsun.com>
88015
88016         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
88017         Don't bother to check library strftime, since
88018         we'll be using our own my_strftime function anyway.
88019         Define my_strftime instead of strftime.
88020
88021 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
88022
88023         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
88024         which is not yet declared.
88025
88026 2001-05-15  Jim Meyering  <meyering@lucent.com>
88027
88028         * m4/regex.m4: Use proper quoting so brackets appear in the test
88029         program.
88030         Reported by, and with help from, Bruno Haible.
88031
88032 2001-05-13  Jim Meyering  <meyering@lucent.com>
88033
88034         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
88035         undefined.
88036
88037 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88038
88039         dirname code cleanup.  base_name now behaves more compatibly
88040         with POSIX basename when given file names that have trailing
88041         slashes, and similarly for dir_name.  Add new primitives
88042         base_len and dir_len.  Put the directory-name-related decls
88043         into dirname.h.
88044
88045         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
88046         * lib/backupfile.c (base_name): Likewise.
88047         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
88048         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
88049         * lib/makepath.c (strip_trailing_slashes): Likewise.
88050         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
88051         ISSLASH): Likewise.
88052         * lib/rename.c (strip_trailing_slashes): Likewise.
88053         * lib/same.c (base_name): Likewise.
88054         * lib/stripslash.c (ISSLASH): Likewise.
88055
88056         * lib/addext.c: Include <dirname.h> after size_t is defined.
88057         * lib/backupfile.c: Likewise.
88058
88059         * lib/addext.c (addext): Use base_len to trim redundant
88060         trailing slashes instead of doing it ourselves.
88061         But do not trim the last slash if it is not redundant.
88062
88063         * lib/backupfile.c (find_backup_file_name,
88064         max_backup_version): Use base_len instead of rolling it ourselves.
88065         Handle the case of "" and (on DOS) "C:" correctly.
88066
88067         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
88068         needed. Include <string.h>, <dirname.h>.
88069         (base_name): Allow file names ending in slashes, other than names
88070         that are all slashes.  In this case, return the basename followed
88071         by the slashes.  This is more general, and can be used in places
88072         where the original base_name purposely had an assertion failure.
88073         (base_len): New function.
88074
88075         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
88076         Do not include <assert.h>; no longer needed.
88077         Include xalloc.h.
88078         (memrchr): Remove decl.
88079         (dir_name_r): Remove.
88080         (dir_len): Renamed from dirlen.  All callers changed.
88081         Rewrite in terms of base_name, for simplicity and consistency.
88082         (dir_name): Never return NULL.  All callers changed.
88083         Do not include <stdlib.h> in test program; no longer needed.
88084         return 0; is fine for test program.
88085
88086         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
88087         New macros.
88088         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
88089
88090         * lib/path-concat.c (path_concat): Use base_len to compute
88091         base length, not strlen; this means we cannot rely on memcpy
88092         to null-terminate.
88093
88094         * lib/same.c (STREQ): Remove.
88095         (same_name): Handle the case where the basename ends in trailing '/'.
88096
88097         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
88098         a slash was stripped.  Do not strip the last slash after a
88099         file system prefix.
88100
88101 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88102
88103         * lib/Makefile.am (libfetish_a_SOURCES):
88104         Add strftime.c, since we now compile it on all hosts.
88105
88106         * lib/strftime.c (my_strftime):
88107         Define to nstrftime if emacs, but only if my_strftime is not defined.
88108         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
88109         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
88110         Add one more extra argument: a nanoseconds value.
88111         All uses changed.
88112         (ns): New macro.
88113         (my_strftime function): Add %N format.
88114         (emacs_strftimeu): Renamed from emacs_strftime,
88115         with extra ut argument.
88116
88117 2001-05-09  Paul Eggert  <eggert@twinsun.com>
88118
88119         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
88120
88121 2001-04-21  Jim Meyering  <meyering@lucent.com>
88122
88123         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
88124         doesn't interfere.
88125
88126 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88127
88128         * m4/ftruncate.m4: Check for chsize.
88129         Link with ftruncate.o unconditionally if ftruncate is missing.
88130         This was required when cross-compiling to i586-mingw32msvc.
88131
88132 2001-04-08  Jim Meyering  <meyering@lucent.com>
88133
88134         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
88135         recomputed; that's necessary when the offset spans a DST transition.
88136         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
88137
88138 2001-04-02  Jim Meyering  <meyering@lucent.com>
88139
88140         * lib/regex.h, regex.c: Update from GNU libc.
88141
88142 2001-03-24  Jim Meyering  <meyering@lucent.com>
88143
88144         * m4/jm-macros.m4: Require autoconf-2.49d.
88145
88146 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
88147
88148         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
88149
88150 2001-03-19  Paul Eggert  <eggert@twinsun.com>
88151
88152         * lib/version-etc.c (version_etc_copyright): Update to 2001.
88153
88154 2001-03-17  Jim Meyering  <meyering@lucent.com>
88155
88156         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
88157         now that the version in autoconf is equivalent.
88158         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
88159
88160         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
88161         Suggestion from Akim Demaille.
88162
88163         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
88164         (jm_PREREQ_TEMPNAME): New function.
88165
88166 2001-03-16  Paul Eggert  <eggert@twinsun.com>
88167
88168         * lib/tempname.c (uint64_t): Define to uintmax_t if
88169         not defined, and if UINT64_MAX is not defined.
88170         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
88171         Reported by John David Anglin.
88172
88173 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
88174
88175         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
88176         resolve alias if codeset is empty.
88177         * lib/config.charset (BeOS): Use wildcard syntax.
88178
88179 2001-03-13  Jim Meyering  <meyering@lucent.com>
88180
88181         * lib/path-concat.c (path_concat)
88182         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
88183         concatenating e.g., `C:' and `foo'.
88184         From Bruno Haible.
88185
88186 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88187
88188         * lib/localcharset.c (locale_charset): Don't use
88189         setlocale(LC_CTYPE,NULL). Don't return NULL.
88190         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
88191
88192 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88193
88194         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
88195         support for DOS/DJGPP.
88196
88197 2001-03-01  Paul Eggert  <eggert@twinsun.com>
88198
88199         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
88200         lacks mkstemp.  Compile our own tempname.c if we compile our own
88201         mkstemp.c, as mkstemp relies on tempname.
88202
88203 2001-03-01  Jim Meyering  <meyering@lucent.com>
88204
88205         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
88206         AH_VERBATIM really does output its argument verbatim.
88207
88208 2001-02-28  Paul Eggert  <eggert@twinsun.com>
88209
88210         * lib/Makefile.am (libfetish_a_SOURCES):
88211         Add dup-safer.c, fopen-safer.c.
88212         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
88213
88214         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
88215         * lib/unistd-safer.h: New files.
88216
88217 2001-02-25  Paul Eggert  <eggert@twinsun.com>
88218
88219         The mkstemp replacement is taken from glibc 2.2.2, with some
88220         portability fixes for use outside glibc, as follows:
88221
88222         * lib/tempname.c (struct_stat64): New macro.
88223         (direxists, __gen_tempname): Use it.
88224         This avoids a portability problem with Solaris 8.
88225
88226         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
88227         (<stddef.h>, <stdint.h>, <string.h>):
88228         Include only if STDC_HEADERS || _LIBC.
88229         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
88230         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
88231         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
88232         (__set_errno): Define this macro if <errno.h> doesn't.
88233         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
88234         Define these macros if <stdio.h> doesn't.
88235         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
88236         Define these macros if <sys/stat.h>
88237         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
88238         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
88239         __xstat64): Define if not _LIBC.
88240         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
88241         (__gen_tempname): Invoke gettimeofday only if
88242         HAVE_GETTIMEOFDAY || _LIBC;
88243         otherwise, fall back on plain "time".
88244         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
88245
88246         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
88247
88248         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
88249
88250 2001-02-18  Paul Eggert  <eggert@twinsun.com>
88251
88252         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
88253
88254 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88255
88256         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
88257         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
88258         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
88259         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88260
88261 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88262
88263         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
88264         Remove workaround macros for hosts that have mbrtowc but not
88265         mbstate_t, as we now insist on proper declarations for both
88266         before using mbrtowc.
88267
88268 2001-02-17  Jim Meyering  <meyering@lucent.com>
88269
88270         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
88271         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
88272         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
88273         UnixWare 7.1.1.
88274
88275         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
88276         rather than AC_CACHE_VAL.
88277
88278 2001-02-17  Jim Meyering  <meyering@lucent.com>
88279
88280         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
88281         around included file name.
88282
88283         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
88284
88285         * lib/strftime.c: Update from GNU libc (the only changes were to
88286         comments).
88287
88288 2001-02-17  Jim Meyering  <meyering@lucent.com>
88289
88290         * lib/regex.c: Update from libc.
88291
88292 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
88293
88294         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
88295         clash.
88296
88297 2001-02-16  Paul Eggert  <eggert@twinsun.com>
88298
88299         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
88300         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
88301         Reported by Mark Hounschell via Paul Eggert.
88302
88303 2001-02-07  Jim Meyering  <meyering@lucent.com>
88304
88305         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
88306
88307 2001-02-05  Jim Meyering  <meyering@lucent.com>
88308
88309         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
88310         it includes the patch required for `large file' support with at least
88311         HP-UX's 10.20 /bin/cc.
88312
88313 2001-02-03  Jim Meyering  <meyering@lucent.com>
88314
88315         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
88316         AS_IF, now that it works once again (mysteriously).
88317         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88318
88319 2001-01-30  Jim Meyering  <meyering@lucent.com>
88320
88321         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
88322         * m4/chown.m4: Rename conftestchown to conftest.chown.
88323         * m4/rename.m4: s/conftestdir/conftest.d1/ and
88324         s/conftestdir2/conftest.d2/.
88325         * m4/utimes.m4: s/conftestdata/conftest.data/
88326         Inspired by Pavel Roskin's change in autoconf.
88327
88328 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
88329
88330         * lib/config.charset: Update for FreeBSD 4.2.
88331
88332 2001-01-27  Jim Meyering  <meyering@lucent.com>
88333
88334         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
88335         a use of AS_IF.
88336         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88337
88338 2001-01-26  Jim Meyering  <meyering@lucent.com>
88339
88340         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
88341         quotearg.c includes it.
88342
88343 2001-01-26  Jim Meyering  <meyering@lucent.com>
88344
88345         * lib/quotearg.c: Include stddef.h.
88346         * lib/quote.c: Include stddef.h.
88347         Reported by Axel Kittenberger.
88348
88349         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
88350         line in double quotes so that it evokes a better diagnostic.
88351         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
88352         Reported by Axel Kittenberger.
88353
88354 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
88355
88356         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
88357         as if it was a `charset'.
88358
88359 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88360
88361         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
88362         has const.
88363
88364 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88365
88366         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
88367         to avoid a warning.  Add back 'const' to inptr.
88368
88369 2001-01-20  Jim Meyering  <meyering@lucent.com>
88370
88371         Be sure that headers are checked before used in code compiled
88372         for the type checks.
88373         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
88374         In place of that, invoke jm_CHECK_ALL_TYPES.
88375         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
88376         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
88377         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
88378         The check for ssize_t was mistakenly run before the test for unistd.h.
88379
88380         The configure-time check for stdbool.h was missing.
88381         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
88382         (jm_PREREQ_HASH): New function.
88383
88384 2001-01-17  Jim Meyering  <meyering@lucent.com>
88385
88386         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
88387         for autoconf-2.49c.
88388         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
88389
88390 2001-01-16  Jim Meyering  <meyering@lucent.com>
88391
88392         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
88393         From Bruno Haible.
88394
88395 2001-01-14  Jim Meyering  <meyering@lucent.com>
88396
88397         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
88398         foo and bar.  Create conftestdir/ in the script, not in the C code.
88399         Remove directories in the script, not in the C code.
88400         Remove conftestdir{,2} before trying to create the directory.
88401         Make the entire configure script fail if the mkdir fails.
88402
88403 2001-01-14  Jim Meyering  <meyering@lucent.com>
88404
88405         * lib/rename.c: New file.  From Volker Borchert.
88406         Include stdlib.h, string.h or strings.h, and xalloc.h.
88407         Use strip_trailing_slashes rather than open-coding it.
88408
88409 2001-01-03  Paul Eggert  <eggert@twinsun.com>
88410
88411         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
88412
88413 2001-01-03  Jim Meyering  <meyering@lucent.com>
88414
88415         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
88416         of local `inptr' to avoid warning with some system declarations of
88417         iconv.
88418
88419 2001-01-02  Volker Borchert  <bt@teknon.de>
88420
88421         * m4/rename.m4: New file.
88422         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
88423
88424 2001-01-01  Jim Meyering  <meyering@lucent.com>
88425
88426         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
88427         even on systems with utmpx.h.  It's necessary for the declaration of
88428         utmp's ut_user member.  Reported by Andreas Jaeger.
88429
88430         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
88431         available. They are required for the declarations of getgrgid and
88432         getpwuid resp.
88433         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
88434         Reported by Andreas Jaeger.
88435
88436 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
88437
88438         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
88439         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
88440         so `make install' also works in VPATH builds.
88441
88442 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
88443
88444         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
88445         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
88446         can be used in subdirectories.
88447
88448 2000-12-29  Paul Eggert  <eggert@twinsun.com>
88449
88450         * lib/modechange.c: Do not assume that mode_t uses the
88451         traditional octal encoding.  E.g. "chmod 1 FOO" should set
88452         the other-execute bit of FOO even if S_IXOTH != 1.
88453
88454         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
88455         WOTH, XOTH, ALLM): New macros.
88456         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
88457          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
88458         Use them.
88459         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
88460         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
88461         (mode_compile):
88462         No need to use uintmax_t; unsigned long is long enough.
88463         Don't bother to get suffix since we don't use it.
88464
88465 2000-12-26  Jim Meyering  <meyering@lucent.com>
88466
88467         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
88468         better with autoheader.
88469
88470 2000-12-24  Jim Meyering  <meyering@lucent.com>
88471
88472         * lib/hash.c (is_prime): Return explicit boolean values.
88473         (hash_get_first): Return NULL to appease Irix5.6's 89.
88474         Reported by Nelson Beebe.
88475
88476 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
88477
88478         * lib/localcharset.c (locale_charset): Add support for Win32.
88479
88480 2000-12-18  Paul Eggert  <eggert@twinsun.com>
88481
88482         * lib/physmem.h, lib/physmem.c: New files.
88483
88484         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
88485         (noinst_HEADERS): Add physmem.h.
88486
88487         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
88488         't' for compatibility with Solaris 8 sort.
88489
88490 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
88491
88492         * lib/config.charset: Add support for BeOS.
88493
88494 2000-12-17  Jim Meyering  <meyering@lucent.com>
88495
88496         * m4/dos.m4 (jm_AC_DOS): New file and macro.
88497         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
88498
88499 2000-12-16  Jim Meyering  <meyering@lucent.com>
88500
88501         This bug had a serious impact on chown: `chown N:M FILE' (for integer
88502         N and M) would have treated it like `chown N:N FILE'.
88503
88504         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
88505
88506 2000-12-16  Jim Meyering  <meyering@lucent.com>
88507
88508         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
88509         SHELLS_FILE to a file name that's useful on djgpp systems.
88510         Include stdlib.h.
88511         (ADDITIONAL_DEFAULT_SHELLS): Define.
88512         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
88513         Based mostly on a patch from Prashant TR.
88514
88515 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
88516
88517         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
88518         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
88519         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
88520
88521 2000-12-08  Andreas Schwab  <schwab@suse.de>
88522
88523         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
88524         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
88525
88526 2000-12-07  Jim Meyering  <meyering@lucent.com>
88527
88528         * lib/stripslash.c (ISSLASH): Define.
88529         (strip_trailing_slashes): Use ISSLASH rather than comparing against
88530         `/'.
88531         From Prashant TR.
88532
88533         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
88534         (dir_name_r): Declare this function as static.
88535         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
88536         manifest itself on a name containing a mix of slashes and
88537         backslashes.
88538         Make this function work with names starting with a DOS-style
88539         drive letter and colon prefix.
88540         (dir_name): Append `.' if necessary.
88541         Based mostly on patches from Prashant TR and Eli Zaretskii.
88542
88543         * lib/dirname.h (dir_name_r): Remove prototype.
88544
88545 2000-12-06  Paul Eggert  <eggert@twinsun.com>
88546
88547         * m4/off_t-format.m4: Remove this file.
88548         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
88549
88550 2000-12-06  Jim Meyering  <meyering@lucent.com>
88551
88552         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
88553         replacement strtoull, we may well need the replacement strtoul, too.
88554         Check for declarations of strtoul and strtoull.
88555         Check for strtol.  Mainly as a cue to cause automake to include
88556         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
88557         Check for limits.h -- strtol.c needs it.
88558
88559 2000-12-05  Jim Meyering  <meyering@lucent.com>
88560
88561         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
88562
88563 2000-12-04  Jim Meyering  <meyering@lucent.com>
88564
88565         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
88566         Also include memory.h, stdlib.h, unistd.h if appropriate.
88567         Reported by Andreas Jaeger (conflicting declaration of malloc).
88568
88569 2000-12-02  Jim Meyering  <meyering@lucent.com>
88570
88571         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
88572         * m4/jm-macros.m4 (jm_MACROS): require it.
88573
88574 2000-12-02  Jim Meyering  <meyering@lucent.com>
88575
88576         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
88577
88578 2000-12-01  Paul Eggert  <eggert@twinsun.com>
88579
88580         * lib/memrchr.c: Include <config.h> before any system include file.
88581
88582 2000-11-30  Jim Meyering  <meyering@lucent.com>
88583
88584         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
88585
88586 2000-11-30  Jim Meyering  <meyering@lucent.com>
88587
88588         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
88589
88590 2000-11-29  Paul Eggert  <eggert@twinsun.com>
88591
88592         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
88593
88594 2000-11-26  Jim Meyering  <meyering@lucent.com>
88595
88596         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
88597
88598 2000-11-22  Paul Eggert  <eggert@twinsun.com>
88599
88600         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
88601         size of (size_t) -1; it's not portable.
88602
88603 2000-11-17  Jim Meyering  <meyering@lucent.com>
88604
88605         * lib/strstr.c: Update from GNU libc.
88606
88607 2000-11-17  Akim Demaille  <akim@epita.fr>
88608
88609         * lib/obstack.h: Formatting changes.
88610         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
88611         prevent type checking.
88612         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
88613         cast the value to (void *): assigning a `foo *' to a `void *'
88614         variable is valid.
88615         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
88616
88617 2000-11-16  Jim Meyering  <meyering@lucent.com>
88618
88619         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
88620
88621 2000-11-11  Jim Meyering  <meyering@lucent.com>
88622
88623         * lib/error.c: Add a couple #includes, merging from GNU libc version.
88624
88625 2000-11-10  Jim Meyering  <meyering@lucent.com>
88626
88627         * lib/obstack.h: Update from GNU libc.
88628         * lib/obstack.c: Likewise.
88629
88630 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
88631
88632         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
88633
88634 2000-11-06  Paul Eggert  <eggert@twinsun.com>
88635
88636         * lib/getusershell.c (setusershell): Use rewind rather than
88637         fseek/fseeko, to avoid configuration hassles with fseeko.
88638         Don't bother opening SHELLS_FILE if shellstream is NULL;
88639         it's not necessary.
88640
88641 2000-11-05  Jim Meyering  <meyering@lucent.com>
88642
88643         * lib/makepath.h (make_dir): Declare.
88644         * lib/makepath.c (make_dir): Remove `static' attribute.
88645         Tweak a comment.
88646
88647 2000-11-04  Jim Meyering  <meyering@lucent.com>
88648
88649         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88650
88651 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88652
88653         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88654         last one in a bucket, advance to the next bucket.
88655
88656 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88657
88658         * lib/fnmatch.c: Do not comment out all the code if we are using
88659         the GNU C library, because in some cases we are replacing buggy
88660         code in the GNU C library itself.
88661
88662 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88663
88664         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88665         (regex_compile): Catch bogus \(\1\).
88666
88667 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88668
88669         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88670         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88671         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88672
88673 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88674
88675         * lib/error.h, getline.h, modechange.h:
88676         Remove "2000" from Copyright line, as the file hasn't been
88677         changed this year other than in the copyright notice.
88678
88679         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88680         was changed this year.
88681
88682 2000-10-29  Jim Meyering  <meyering@lucent.com>
88683
88684         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88685         renaming.
88686         * m4/ls-mntd-fs.m4: Likewise
88687
88688 2000-10-29  Jim Meyering  <meyering@lucent.com>
88689
88690         * lib/xstat.in: Fix grammar in comment.
88691
88692 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
88693
88694         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
88695         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
88696         doesn't define __restrict_arr.
88697
88698 2000-10-28  Jim Meyering  <meyering@lucent.com>
88699
88700         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
88701         (jm_PREREQ_MEMCHR): New function.
88702
88703 2000-10-28  Jim Meyering  <meyering@lucent.com>
88704
88705         * lib/memchr.c: Update from libc.
88706         Adjust for portability:
88707         [HAVE_STDLIB_H]: Include stdlib.h.
88708         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88709         Undef __memchr, too.
88710         [!weak_alias]: Define __memchr to memchr.
88711
88712         * lib/regex.c: Update from libc.
88713         * lib/regex.h: Likewise.
88714         * lib/getopt1.c: Likewise.
88715         * lib/memcmp.c: Likewise.
88716
88717         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88718         Avoid using fseek, when possible -- it's broken by design.
88719         Patch by Ulrich Drepper.
88720
88721 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88722
88723         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88724         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88725         Giving in to popular pressure to shut up the compiler with casts.
88726
88727 2000-10-26  Jim Meyering  <meyering@lucent.com>
88728
88729         * lib/strftime.c: Update from libc.
88730
88731 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88732
88733         * regex.c: More `unsigned char' -> `re_char' changes.
88734         Also change several `int' into `re_wchar_t'.
88735         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
88736         (PUSH_FAILURE_POINTER): Don't cast any more.
88737         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
88738         We want GCC to complain, since this piece of code makes
88739         re_match non-reentrant, which *should* be fixed.
88740         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
88741         (EXTEND_BUFFER): Use RETALLOC.
88742         (SET_LIST_BIT): Don't cast.
88743         (re_wchar_t): New type.
88744         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
88745         that those two functions will always properly return.
88746         (IMMEDIATE_QUIT_CHECK): Cast to void.
88747         (analyse_first): Use recursion rather than an explicit stack.
88748         (re_compile_fastmap): Can't fail anymore.
88749         (re_search_2): Don't check re_compile_fastmap for failure.
88750         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
88751         Now also sets the new value (passed in a new argument).
88752         (re_match_2_internal): Use it.
88753         Also, use a new var `reg' of type size_t when looping through regs
88754         rather than reuse the inappropriate `mcnt'.
88755
88756 2000-10-25  Jim Meyering  <meyering@lucent.com>
88757
88758         * lib/obstack.c: Update from libc.
88759
88760 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88761
88762         * regex.c (regex_compile): Change the way of handling a range from
88763         a char less than 256 to a char not less than 256.
88764
88765 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88766
88767         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88768         NT-Emacs only.
88769         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88770         so that re_search functions only quit when callers expect them to.
88771
88772 2000-10-23  Jim Meyering  <meyering@lucent.com>
88773
88774         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88775         wrong.  That set_locale call must not have any side effects.
88776         From Paul Eggert.
88777
88778 2000-10-22  Jim Meyering  <meyering@lucent.com>
88779
88780         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88781         [CYCLIC]: Remove now-unused definition.
88782
88783         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88784         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88785         Suggestion from Ulrich Drepper.
88786
88787 2000-10-21  Jim Meyering  <meyering@lucent.com>
88788
88789         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88790         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88791         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88792
88793 2000-10-21  Jim Meyering  <meyering@lucent.com>
88794
88795         * lib/dirname.c (memrchr): Declare if necessary.
88796         (dir_name): Remove the restriction that there be no
88797         trailing slashes.  Now, this code skips past them, effectively
88798         ignoring them.
88799         [TEST_DIRNAME] (main): New unit tests.
88800
88801         * lib/memrchr.c: New file from GNU libc.
88802         Undef __memrchr, too.
88803         [!weak_alias]: Define __memrchr to memrchr.
88804         Guard weak_alias use with `#ifdef weak_alias'.
88805
88806 2000-10-21  Jim Meyering  <meyering@lucent.com>
88807
88808         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88809         (dir_name): Use dir_name_r.
88810         * lib/dirname.h (dir_name_r): Declare it.
88811
88812 2000-10-17  Jim Meyering  <meyering@lucent.com>
88813
88814         * lib/quote.h (PARAMS): Define and use.
88815         Reported by Akim Demaille.
88816
88817         * lib/getopt.c: Update from libc.
88818
88819 2000-10-16  Jim Meyering  <meyering@lucent.com>
88820
88821         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88822         setlocale.
88823         From Jan Fedak.
88824
88825 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88826
88827         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88828
88829 2000-09-25  Jim Meyering  <meyering@lucent.com>
88830
88831         * lib/md5.h (rol): Define (from GnuPG).
88832
88833         * lib/sha.c: Give credit (GnuPG) where due.
88834         (M): Use rol rather than open-coding it.
88835         Add a FIXME comment.
88836
88837 2000-09-21  Jim Meyering  <meyering@lucent.com>
88838
88839         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88840         Reported by Michael Stone.
88841
88842 2000-09-20  Jim Meyering  <meyering@lucent.com>
88843
88844         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88845         (noinst_HEADERS): Add sha.h.
88846         Based on code from Scott G. Miller and from GnuPG.
88847
88848 2000-09-18  Jim Meyering  <meyering@lucent.com>
88849
88850         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88851         LIBS. Otherwise, everyone ends up linking with -lelf for some
88852         configurations.
88853         Reported by Mike Stone.
88854
88855 2000-09-15  Jim Meyering  <meyering@lucent.com>
88856
88857         * lib/regex.c: Update from libc.
88858
88859 2000-09-10  Jim Meyering  <meyering@lucent.com>
88860
88861         * lib/getopt.c (_getopt_internal): Update from glibc.
88862
88863 2000-09-09  Jim Meyering  <meyering@lucent.com>
88864
88865         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88866         think it should be used as a general replacement for isascii.
88867         * lib/fnmatch.c: Likewise.
88868         * lib/mbswidth.c: Likewise
88869         * lib/regex.c: Likewise.
88870
88871         Don't use atoi.
88872         * lib/userspec.c: Include sys/param.h and limits.h.
88873         Include xstrtol.h.
88874         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88875         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88876         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88877         UID, GID.  Check range.
88878
88879 2000-09-06  Jim Meyering  <meyering@lucent.com>
88880
88881         * lib/getopt.c (_getopt_internal): Update from glibc.
88882
88883 2000-08-30  Jim Meyering  <meyering@lucent.com>
88884
88885         * lib/strftime.c: Merge in changes from GNU libc.
88886
88887 2000-08-26  Jim Meyering  <meyering@lucent.com>
88888
88889         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88890         * m4/fpending.m4: New file.
88891
88892 2000-08-26  Jim Meyering  <meyering@lucent.com>
88893
88894         * lib/closeout.c: Include "__fpending.h".
88895         (close_stdout_status): Return right away if there's nothing to flush.
88896
88897         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88898         * lib/__fpending.c: New file.
88899         * lib/__fpending.h: New file.
88900
88901 2000-08-20  Jim Meyering  <meyering@lucent.com>
88902
88903         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88904         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88905         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88906
88907 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88908
88909         Improve fileutils installation on systems where running
88910         programs (like install) can't be unlinked.
88911         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88912         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88913
88914 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88915
88916         Standardize on "memory exhausted" instead of "Memory exhausted"
88917         or "virtual memory exhausted".
88918         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88919         "virtual memory exhausted".
88920         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88921         our own message.
88922         * lib/userspec.c (parse_user_spec): Likewise.
88923         * lib/bumpalloc.h: comment fix
88924         * lib/same.c, userspec.c: Include xalloc.h.
88925
88926         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88927         not char *const and pointing to a constant array.
88928         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88929         (xrealloc): Comment fix.
88930
88931         * lib/userspec.c (parse_user_spec):
88932         Don't translate a message until just before returning,
88933         to avoid unnecessary translation.
88934
88935 2000-08-07  Jim Meyering  <meyering@lucent.com>
88936
88937         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88938         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88939         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88940         getgroups.c, gethostname.c, getopt.h, group-member.c,
88941         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88942         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88943         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88944         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88945         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88946         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88947         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88948         yesno.c: Back out Copyright date changes for each file with no change
88949         this year.  This eases coordination with other programs using the same
88950         source code modules.  From Paul Eggert.
88951
88952 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88953
88954         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88955         not char, for compatibility with glibc 2.1.3 strftime.c.
88956
88957 2000-08-03  Greg McGary  <greg@mcgary.org>
88958
88959         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88960         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88961         (EXTEND_BUFFER): Use them.
88962
88963 2000-08-01  Jim Meyering  <meyering@lucent.com>
88964
88965         * lib/dirname.c (ISSLASH): Define.
88966         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88967         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88968         both `\' and `/' may be use as path separators.
88969         Based on a patch from Prashant TR.
88970
88971 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88972
88973         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88974         slot vector a constant, since it might get modified.
88975
88976 2000-07-31  Jim Meyering  <meyering@lucent.com>
88977
88978         * lib/xmalloc.c: Use `virtual memory exhausted', not
88979         `Memory exhausted'.
88980         * lib/obstack.c (print_and_abort): Likewise.
88981
88982 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88983
88984         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88985         buffer, so that the caller can always quote one small
88986         component of a "memory exhausted" message in slot 0.
88987         From a suggestion by Jim Meyering.
88988
88989 2000-07-30  Jim Meyering  <meyering@lucent.com>
88990
88991         * lib/makepath.c (make_path): Quote the other instance, too.
88992
88993         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88994         (STATIC_BUF_SIZE): Define.
88995         (quotearg_n_options): Use only statically allocated storage when
88996         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88997         than STATIC_BUF_SIZE.
88998
88999 2000-07-29  Jim Meyering  <meyering@lucent.com>
89000
89001         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
89002         * lib/dirname.c (dir_name): Likewise.
89003
89004         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
89005         `/'.
89006
89007         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
89008         (dir_name): Assert that there are no trailing slashes.
89009
89010 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
89011
89012         * lib/mbswidth.h (mbswidth): Add a flags argument.
89013         (mbswidth): New declaration.
89014         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
89015         * lib/mbswidth.c (mbswidth): Add a flags argument.
89016         (mbsnwidth): New function.
89017
89018 2000-07-24  Jim Meyering  <meyering@lucent.com>
89019
89020         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
89021
89022 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89023
89024         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
89025
89026 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89027
89028         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
89029         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
89030         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
89031         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
89032         invoke multibyte primitives.
89033
89034 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89035
89036         * lib/quotearg.c:
89037         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
89038         so that mbstate_t is always defined.
89039
89040         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
89041         be 1 in at least one GCC installation, and this configuration
89042         error is likely to be common.  Ignoring MB_LEN_MAX hurts
89043         performance on hosts that have mbrtowc but have only unibyte
89044         locales, but I assume these hosts are rare.
89045
89046 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89047
89048         * lib/mbswidth.c (_XOPEN_SOURCE):
89049         Don't define; this causes problems on Solaris 7.
89050         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
89051
89052 2000-07-23  Jim Meyering  <meyering@lucent.com>
89053
89054         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
89055         too: getgrgid, getpwuid, getuid.
89056
89057 2000-07-23  Jim Meyering  <meyering@lucent.com>
89058
89059         * lib/basename.c (base_name): Add an assertion.
89060
89061 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
89062
89063         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
89064         shadow its mbsinit function.
89065
89066 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89067
89068         * lib/mbswidth.h: New file.
89069         * lib/mbswidth.c: New file.
89070         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
89071         (noinst_HEADERS): Add mbswidth.h.
89072
89073 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89074
89075         * lib/config.charset: Add support for FreeBSD. Improve support for
89076         HP-UX and IRIX 6.
89077
89078 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
89079
89080         * m4/mbswidth.m4: New file.
89081         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
89082
89083 2000-07-15  Jim Meyering  <meyering@lucent.com>
89084
89085         * lib/makepath.c: Include quote.h.
89086         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
89087         corresponding argument in a `quote (...)' call.
89088         Give better diagnostics.
89089
89090         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
89091         (noinst_HEADERS): Add quote.h.
89092
89093         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
89094         from tar's src/misc.c.
89095         * lib/quote.h: New file.  Prototypes for same.
89096
89097 2000-07-14  Paul Eggert  <eggert@twinsun.com>
89098
89099         From a suggestion by Bruno Haible.
89100         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
89101         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
89102         to decide whether to define the BeOS workaround macro;
89103         this adjusts to the change to AC_MBSTATE_T.
89104
89105 2000-07-14  Jim Meyering  <meyering@lucent.com>
89106
89107         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
89108         jm_AC_TYPE_UINTMAX_T.
89109
89110 2000-07-13  Paul Eggert  <eggert@twinsun.com>
89111
89112         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
89113
89114         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
89115         quotearg_buffer_restyled): Add support for
89116         clocale_quoting_style.  Undo previous change to
89117         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
89118         and "{RIGHT QUOTATION MARK}" msgids.
89119
89120 2000-07-10  Paul Eggert  <eggert@twinsun.com>
89121
89122         From a suggestion by Bruno Haible.
89123         * m4/mbstate_t.m4 (AC_MBSTATE_T):
89124         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
89125         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
89126         and mbstate_t, to a single-part test that simply defines mbstate_t.
89127         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
89128         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
89129
89130 2000-07-10  Jim Meyering  <meyering@lucent.com>
89131
89132         * m4/strerror_r.m4: Mirror the correction made in autoconf.
89133
89134         * m4/gnu-source.m4: Output to confdefs.h directly.
89135         Suggestion from Akim Demaille.
89136
89137 2000-07-09  Paul Eggert  <eggert@twinsun.com>
89138
89139         The old behavior of quoting `like this' doesn't look good with
89140         newer, ISO-style fonts.  See:
89141         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
89142
89143         Instead, quote "like this" by default.  Let the translator
89144         tailor the locale-specific quoting behavior by providing
89145         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
89146
89147         * lib/quotearg.c (N_): New macro.
89148         (gettext_default): New function.
89149         (quotearg_buffer_restyled): Use
89150         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
89151         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
89152
89153 2000-07-09  Jim Meyering  <meyering@lucent.com>
89154
89155         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
89156         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
89157
89158         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
89159         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
89160
89161 2000-07-09  Jim Meyering  <meyering@lucent.com>
89162
89163         * lib/Most files: Update copyright dates to include 2000.
89164
89165 2000-07-08  Jim Meyering  <meyering@lucent.com>
89166
89167         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
89168         if not defined.
89169         (xgethostname): Remove now-unnecessary #ifdef.
89170         Move declaration of `err' into loop where it's used.
89171
89172 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89173         and Bruno Haible  <haible@clisp.cons.org>
89174
89175         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
89176         only if the test for an object-type mbstate_t fails.  This
89177         prevents us from mistakenly reporting that mbstate_t is a
89178         system object type after we "#define mbstate_t int" to work
89179         around its lack.
89180
89181 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89182         and Bruno Haible  <haible@clisp.cons.org>
89183
89184         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
89185
89186 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89187
89188         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
89189         to strerror_r.
89190         Include <ctype.h> for use of isalpha.
89191
89192 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89193
89194         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
89195         by allocating a larger buffer. Test the gethostname return value for
89196         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
89197         returns an error and ENAMETOOLONG isn't defined.
89198
89199 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89200
89201         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
89202         dimension.
89203
89204 2000-07-04  Jim Meyering  <meyering@lucent.com>
89205
89206         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
89207         of the deprecated AC_CHECKING.
89208
89209 2000-07-04  Jim Meyering  <meyering@lucent.com>
89210
89211         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
89212         Reported by Bruno Haible.
89213
89214 2000-07-04  Jim Meyering  <meyering@lucent.com>
89215
89216         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
89217         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
89218         lacks mbrtowc.
89219
89220 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89221
89222         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
89223         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
89224
89225 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89226         and Bruno Haible  <haible@clisp.cons.org>
89227
89228         * lib/quotearg.c (mbrtowc):
89229         Assign to *pwc, and return 1 only if result is nonzero.
89230         (iswprint): Use ISPRINT when substituting our own mbrtowc.
89231
89232 2000-07-03  Jim Meyering  <meyering@lucent.com>
89233
89234         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
89235
89236 2000-07-03  Jim Meyering  <meyering@lucent.com>
89237
89238         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
89239         This is necessary to get a definition of e.g., UTMP_FILE on
89240         HP-UX 10.20.
89241         From Bob Proulx.
89242
89243 2000-07-02  Jim Meyering  <meyering@lucent.com>
89244
89245         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
89246
89247         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
89248         AC_LIBOBJ(function_name).
89249         * m4/chown.m4: Likewise.
89250         * m4/fnmatch.m4: Likewise.
89251         * m4/ftruncate.m4: Likewise.
89252         * m4/getgroups.m4: Likewise.
89253         * m4/getline.m4: Likewise.
89254         * m4/group-member.m4: Likewise.
89255         * m4/jm-macros.m4: Likewise.
89256         * m4/lstat.m4: Likewise.
89257         * m4/malloc.m4: Likewise.
89258         * m4/memcmp.m4: Likewise.
89259         * m4/nanosleep.m4: Likewise.
89260         * m4/putenv.m4: Likewise.
89261         * m4/realloc.m4: Likewise.
89262         * m4/regex.m4: Likewise.
89263         * m4/stat.m4: Likewise.
89264         * m4/strftime.m4: Likewise.
89265
89266 2000-07-02  Jim Meyering  <meyering@lucent.com>
89267
89268         * lib/quotearg.c (mbstate_t): Don't define here.
89269
89270 2000-07-02  Jim Meyering  <meyering@lucent.com>
89271
89272         * lib/nanosleep.c (SIGCONT): Define if not already defined.
89273
89274 2000-07-01  Jim Meyering  <meyering@lucent.com>
89275
89276         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
89277
89278 2000-07-01  Jim Meyering  <meyering@lucent.com>
89279
89280         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
89281         problem.
89282
89283 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89284
89285         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
89286         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
89287
89288 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89289
89290         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
89291         per change in ../m4/ls-mntd-fs.m4.
89292         (read_filesystem_list): Ignore symbolic links.
89293
89294 2000-06-29  Jim Meyering  <meyering@lucent.com>
89295
89296         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
89297         for declaration of strcmp.
89298
89299         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
89300
89301         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
89302         Avoid warning by casting result to `char *' to remove `const'.
89303
89304 2000-06-28  Jim Meyering  <meyering@lucent.com>
89305
89306         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
89307         included by quotearg.c, for which we perform this test.  From
89308         Bruno Haible.
89309
89310 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89311
89312         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
89313         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
89314         <utmpx.h> exists, put readutmp.o into LIBOBJS.
89315
89316 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89317
89318         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
89319
89320 2000-06-26  Paul Eggert  <eggert@twinsun.com>
89321
89322         savedir now sets errno on failure and invokes xmalloc to get memory.
89323         Fix a couple of other minor bugs while we're at it.
89324
89325         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
89326         (NAMLEN): Remove macro.
89327         (malloc, realloc): Remove decls.
89328         (stpcpy): Likewise.
89329         ("xalloc.h"): Include.
89330         (NAME_SIZE_DEFAULT): New macro.
89331         (savedir): Use xmalloc / xrealloc to allocate memory.
89332         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
89333         Skip "" directory entries.
89334         Use strlen to calculate directory entry length, since the old method
89335         is rarely used these days and isn't worth supporting.
89336         Don't use a pointer after freeing it.
89337         Check for integer overflow when calculating allocation size.
89338         Use memcpy to copy entries, instead of stpcpy.
89339         Set errno properly when returning NULL.
89340         Check for readdir error.
89341
89342 2000-06-26  Jim Meyering  <meyering@lucent.com>
89343
89344         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
89345
89346 2000-06-25  Jim Meyering  <meyering@lucent.com>
89347
89348         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
89349         Linux header bug when _XOPEN_SOURCE is defined to 500.
89350
89351 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89352
89353         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
89354         deficiency.
89355
89356 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89357
89358         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
89359         Include xalloc.h.
89360         Don't include <stdlib.h>.  Don't declare malloc, realloc.
89361
89362 2000-06-24  Jim Meyering  <meyering@lucent.com>
89363
89364         * m4/strerror_r.m4: Revive this file -- to try out an experimental
89365         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
89366         for which strerror does return char*, but which lacks a conveniently
89367         accessible declaration of the function.  If the compile-test says
89368         strerror_r doesn't work, then resort to a `run'-test that works on
89369         BeOS and segfaults on DEC Unix.
89370
89371 2000-06-24  Jim Meyering  <meyering@lucent.com>
89372
89373         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
89374
89375 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89376
89377         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
89378         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
89379
89380 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89381
89382         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
89383         (mbrtowc, mbstate_t): Define substitutes if
89384         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
89385         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
89386         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
89387
89388 2000-06-23  Jim Meyering  <meyering@lucent.com>
89389
89390         * m4/afs.m4: Add missing AC_MSG_RESULT.
89391         Reported by Bruno Haible.
89392
89393         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
89394         Suggestion from Bruno Haible.
89395
89396 2000-06-23  Jim Meyering  <meyering@lucent.com>
89397
89398         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
89399
89400 2000-06-21  Jim Meyering  <meyering@lucent.com>
89401
89402         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
89403
89404 2000-06-21  Jim Meyering  <meyering@lucent.com>
89405
89406         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
89407         (noinst_HEADERS): Add getstr.h.
89408
89409         * lib/getline.c (getstr): Move into a separate file.
89410         * lib/getstr.c (getstr): New file, extracted from getline.c, with
89411         the following changes: new parameter, delim2; both delim[12]
89412         parameters have type `int', not `char'.  The latter would lose
89413         with 8-bit delimiters.
89414         * lib/getstr.h: New file.
89415
89416 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89417
89418         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
89419         than 1024, return a memory chunk of least possible size, instead
89420         of size PATH_MAX + 2. In the loop, increment the size proportionally.
89421         Use free/xmalloc instead of xrealloc to avoid copying for very long
89422         paths.
89423
89424 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89425
89426         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
89427         the empty string.
89428
89429 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89430
89431         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
89432         address, not strdup.  Include <stdlib.h> and don't declare free().
89433
89434 2000-06-19  Jim Meyering  <meyering@lucent.com>
89435
89436         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
89437
89438 2000-06-18  Jim Meyering  <meyering@lucent.com>
89439
89440         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
89441
89442         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
89443         `checking whether...' message to be consistent with that of the
89444         lstat test.
89445
89446 2000-06-18  Jim Meyering  <meyering@lucent.com>
89447
89448         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
89449         Besides, these days every porting target provides a mkdir function.
89450
89451         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
89452         needed. (this snippet comes from src/system.h).
89453
89454 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
89455
89456         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
89457
89458 2000-06-15  Paul Eggert  <eggert@twinsun.com>
89459
89460         * lib/human.c (adjust_value): New function.
89461         (human_readable_inexact): Apply rounding style even when
89462         printing approximate values.
89463
89464 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89465
89466         * lib/human.c (human_readable_inexact): Allow an input block
89467         size that is not a multiple of the output block size, and vice versa.
89468         Reported by Piergiorgio Sartor.
89469
89470 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89471
89472         * lib/getdate.y (get_date): Apply relative times after time
89473         zone indicator, not before.  Reported by Todd A. Jacobs.
89474
89475 2000-06-13  Jim Meyering  <meyering@lucent.com>
89476
89477         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
89478
89479         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
89480
89481 2000-06-12  Paul Eggert  <eggert@twinsun.com>
89482
89483         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
89484
89485 2000-06-12  Jim Meyering  <meyering@lucent.com>
89486
89487         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
89488         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
89489         optional argument.
89490         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
89491         the optional argument, `lib'.
89492
89493 2000-06-08  Jim Meyering  <meyering@lucent.com>
89494
89495         * m4/largefile.m4: Remove file (now that it's part of autoconf).
89496
89497 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89498
89499         Rewrite largefile configuration so that we don't need to run
89500         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
89501         AC_CANONICAL_HOST in configure.in -- jmm]
89502
89503         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
89504         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
89505         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
89506         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
89507         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
89508         All uses changed.
89509         Instead of inspecting the output of getconf, try to compile the
89510         test program without and with the macro definition.
89511         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
89512         for getconf.  Instead, check for the needed flags by compiling
89513         test programs.
89514
89515 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89516
89517         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
89518
89519 2000-06-04  Jim Meyering  <meyering@lucent.com>
89520
89521         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
89522         SunOS 4.1.4 for which gid_t is an unsigned type.
89523
89524 2000-06-03  Jim Meyering  <meyering@lucent.com>
89525
89526         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
89527         now that autoconf requires that.
89528
89529         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
89530         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
89531         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
89532
89533 2000-06-03  Jim Meyering  <meyering@lucent.com>
89534
89535         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
89536
89537 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89538
89539         * m4/glibc21.m4: New file.
89540         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
89541
89542 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89543
89544         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
89545         newer, don't install charset.alias.
89546         * lib/config.charset: Change the Linux/glibc rules so they become empty
89547         on glibc-2.1 or newer.
89548
89549 2000-06-02  Jim Meyering  <meyering@lucent.com>
89550
89551         * lib/mountlist.c: Back out last change.  Instead, do this...
89552         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
89553         me_dummy member using the same `ignore'-testing code.
89554         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
89555         fs_type strings.
89556         From Mark D. Roth.
89557
89558 2000-05-29  Jim Meyering  <meyering@lucent.com>
89559
89560         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
89561         mounts with the `ignore' attribute.  Based on a patch from
89562         Mark D. Roth.
89563
89564 2000-05-28  Jim Meyering  <meyering@lucent.com>
89565
89566         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
89567         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89568         * m4/stat.m4: Likewise.
89569         * m4/lstat.m4: Likewise.
89570         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
89571
89572         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
89573         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
89574
89575 2000-05-26  Jim Meyering  <meyering@lucent.com>
89576
89577         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
89578
89579 2000-05-24  Jim Meyering  <meyering@lucent.com>
89580
89581         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
89582         autoconf requires that.
89583         * m4/lib-check.m4: Likewise.
89584         * m4/jm-macros.m4: Likewise.
89585         * m4/strftime.m4: Likewise.
89586
89587         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
89588         AC_CHECK_DECLS, now that autoconf requires that.
89589
89590 2000-05-22  Jim Meyering  <meyering@lucent.com>
89591
89592         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89593         * m4/lstat.m4: Likewise.
89594
89595 2000-05-22  Jim Meyering  <meyering@lucent.com>
89596
89597         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
89598
89599 2000-05-20  Jim Meyering  <meyering@lucent.com>
89600
89601         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
89602         (jm_PREREQ): Use it.
89603
89604 2000-05-18  Jim Meyering  <meyering@lucent.com>
89605
89606         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
89607         back, too, since it may have been modified by allocate_entry.
89608         (hash_delete): Rewrite to use neither the assignment operator
89609         nor the comma operator in an if-expression.
89610
89611 2000-05-15  Paul Eggert  <eggert@twinsun.com>
89612
89613         * lib/closeout.c:
89614         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
89615         Remove; no longer needed.
89616         "quotearg.h": Add include.
89617         (file_name): Do not bother to explicitly initialize to NULL; it's less
89618         efficient on some hosts.
89619         (close_stdout_status): Remove test as to whether stdout was already
89620         closed; it breaks for the case "echo x | sort >&-".
89621         Quote file name colons.
89622         Do not assume that _("write error") lacks format strings.
89623
89624 2000-05-15  Jim Meyering  <meyering@lucent.com>
89625
89626         * lib/version-etc.c (version_etc_copyright): Update the copyright
89627         string used in all --version output.
89628
89629 2000-05-14  Jim Meyering  <meyering@lucent.com>
89630
89631         * lib/closeout.c (close_stdout_set_file_name): New function.
89632         (close_stdout_status): Use new file-scoped global.
89633         Return right away if fstat says the stdout file descriptor is invalid.
89634         * lib/closeout.h (close_stdout_set_file_name): Declare.
89635
89636 2000-05-10  Jim Meyering  <meyering@lucent.com>
89637
89638         * lib/closeout.c [default_exit_status]: New file-scoped variable.
89639         (close_stdout_set_status): New function.
89640         * lib/closeout.h (close_stdout_set_status): Declare.
89641
89642 2000-05-09  Jim Meyering  <meyering@lucent.com>
89643
89644         * m4/gettext.m4: Rename this...
89645         * m4/libintl.m4: ...to this.
89646
89647 2000-05-08  Jim Meyering  <meyering@lucent.com>
89648
89649         * lib/long-options.c: Don't include closeout.h.
89650         (parse_long_options): Don't call close_stdout for --version.
89651
89652 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89653
89654         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89655         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89656         2.1.3 bug.  This avoids a clash when files like regex.c define
89657         _GNU_SOURCE.
89658
89659 2000-05-06  Jim Meyering  <meyering@lucent.com>
89660
89661         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89662         (AC_REPLACE_FUNCS): Add strnlen.
89663
89664         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89665         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89666
89667         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89668         AC_SEARCH_LIBS call for nanosleep.
89669         (LIB_NANOSLEEP): Set and AC_SUBST.
89670
89671 2000-05-06  Jim Meyering  <meyering@lucent.com>
89672
89673         * lib/strnlen.c: Undefine __strnlen and strnlen.
89674         [!weak_alias]: Define __strnlen to strnlen.
89675
89676         * lib/atexit.c: New file, from libiberty.
89677
89678 2000-05-06  Jim Meyering  <meyering@lucent.com>
89679
89680         * lib/closeout.c (close_stdout_status): Also check for errors on the
89681         stderr stream.
89682
89683 2000-05-05  Jim Meyering  <meyering@lucent.com>
89684
89685         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89686         AC_SEARCH_LIBS call for clock_gettime.
89687         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89688
89689         * m4/search-libs.m4: Update from autoconf.
89690
89691         su doesn't work on Solaris 2.6.
89692         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
89693         <shadow.h>.  Reported by Dragos Harabor.
89694
89695 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
89696
89697         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
89698         memcpy instead of xmalloc, xrealloc, path_concat.
89699         (locale_charset): Treat empty environment variables as absent.
89700         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
89701
89702 2000-05-04  Jim Meyering  <meyering@lucent.com>
89703
89704         * lib/getopt.c: Update from glibc.
89705         * lib/obstack.c: Likewise.
89706         * lib/obstack.h: Likewise.
89707         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89708         file
89709
89710         * lib/regex.h: Likewise.
89711         * lib/strndup.c: Likewise.
89712         * lib/strnlen.c: New file, from glibc.
89713
89714 2000-05-03  Jim Meyering  <meyering@lucent.com>
89715
89716         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89717
89718 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89719
89720         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89721         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89722         compile-time test, rather than inspecting host and OS, to
89723         decide whether to define _LARGEFILE_SOURCE.
89724
89725 2000-05-01  Jim Meyering  <meyering@lucent.com>
89726
89727         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89728
89729         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89730         Based on a patch from Bruno Haible.
89731
89732 2000-05-01  Jim Meyering  <meyering@lucent.com>
89733
89734         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
89735
89736 2000-04-29  Jim Meyering  <meyering@lucent.com>
89737
89738         * lib/path-concat.c: Declare strdup only if it's not defined.
89739         * lib/canon-host.c: Likewise.
89740
89741 2000-04-28  Jim Meyering  <meyering@lucent.com>
89742
89743         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
89744         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
89745         is included first, then limits.h is included by locale.h by libintl.h.
89746         From John David Anglin.
89747
89748 2000-04-25  Jim Meyering  <meyering@lucent.com>
89749
89750         * lib/makepath.c (S_IRWXUGO): Define.
89751         (make_path): Always perform explicit chmod if MODE specifies any
89752         of the `special' permission bits.  Prompted by a bug report against
89753         install from Mate Wierdl and Joost van Baal.
89754
89755 2000-04-18  Jim Meyering  <meyering@lucent.com>
89756
89757         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89758         (jm_PREREQ): Use it.
89759
89760 2000-04-18  Jim Meyering  <meyering@lucent.com>
89761
89762         * lib/README: New file.
89763
89764         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89765         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89766
89767 2000-04-17  Jim Meyering  <meyering@lucent.com>
89768
89769         Get it right :-)
89770         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89771         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89772         Suggestion from Akim Demaille.
89773
89774 2000-04-17  Jim Meyering  <meyering@lucent.com>
89775
89776         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89777         the definition of it to rpl_strftime also defined-away the system's
89778         declaration.
89779
89780 2000-04-15  Jim Meyering  <meyering@lucent.com>
89781
89782         Use `C' to denote so-called `contiguous' files, the same way
89783         that tar does.
89784         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89785         (ftypelet): Use S_ISCTG.
89786         From Michael Deutschmann.
89787
89788 2000-04-14  Jim Meyering  <meyering@lucent.com>
89789
89790         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89791         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89792         clobbered.
89793
89794 2000-04-14  Jim Meyering  <meyering@lucent.com>
89795
89796         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
89797
89798 2000-04-13  Jim Meyering  <meyering@lucent.com>
89799
89800         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
89801         AH_VERBATIM to insert required #ifndef into config.h.in.
89802         Suggestion from Akim Demaille.
89803
89804 2000-04-12  Jim Meyering  <meyering@lucent.com>
89805
89806         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
89807         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
89808         Christian Krackowizer.
89809
89810         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89811         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89812         (AC_SYS_LARGEFILE): Require.
89813         (AM_C_PROTOTYPES): Require.
89814
89815 2000-04-08  Jim Meyering  <meyering@lucent.com>
89816
89817         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89818         names don't conflict.  Reported by Eli Zaretskii.
89819
89820 2000-04-07  Jim Meyering  <meyering@lucent.com>
89821
89822         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89823         sys/types.h, to work around system header problems on AIX 3.2.5.
89824         From Bruno Haible.
89825
89826 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89827
89828         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89829         bug.  Deal with the different error behavior of Irix iconv.
89830
89831 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89832
89833         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89834         IRIX if the installer said otherwise.
89835
89836 2000-04-05  Jim Meyering  <meyering@lucent.com>
89837
89838         Portability tweaks required for ultrix4.3.
89839         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89840         (jm_CHECK_DECLS): Add getutent to the list of functions.
89841         (_jm_DECL_HEADERS): Add utmpx.h.
89842         From John David Anglin.
89843
89844         * m4/strftime.m4: Back out the 2000-04-02 change.
89845         Instead of that change, simply undefine putenv in the test program.
89846
89847 2000-04-05  Jim Meyering  <meyering@lucent.com>
89848
89849         Portability tweaks required for ultrix4.3.
89850         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89851         getutent.
89852         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89853         * lib/canon-host.c: Declare strdup.
89854         * lib/path-concat.c: Likewise.
89855         From John David Anglin.
89856
89857 2000-04-04  Jim Meyering  <meyering@lucent.com>
89858
89859         Be more DOS 8.3-friendly.
89860         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89861         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89862         * lib/Makefile.am: Reflect renaming.
89863         Reported by Eli Zaretskii.
89864
89865         Use a temporary file name that won't clash with `charset.alias'
89866         in the DOS 8.3 name space.
89867         * lib/Makefile.am (charset_tmp): Define.
89868         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89869         (uninstall-local): Likewise.
89870         Reported by Eli Zaretskii.
89871
89872 2000-04-03  Jim Meyering  <meyering@lucent.com>
89873
89874         * m4/gettext.m4: Fix typo in comment.
89875
89876         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89877         textutils/configure.in).  Suggestion from Paul Eggert.
89878         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89879
89880 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89881
89882         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89883         variable in the shell rather than using putenv, which isn't
89884         portable.  This avoids the configure-time inter-test dependency
89885         on the potentially-renamed putenv function.
89886
89887 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89888
89889         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89890         before checking struct stat.st_blksize, so that
89891         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89892
89893 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89894
89895         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89896         since strftime.c uses HAVE_STRFTIME to decide whether to use
89897         the underlying strftime.
89898
89899 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89900
89901         * lib/time/strftime.c (my_strftime): Make sure we call the system
89902         strftime, not ourselves, when invoking the underlying strftime.
89903
89904 2000-03-24  Jim Meyering  <meyering@lucent.com>
89905
89906         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89907         (charset_alias): Define.
89908         (install-exec-local): Factor out common code.
89909         (uninstall-local): Split lines longer than 80.
89910         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89911         (SUFFIXES): Define.
89912         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89913         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89914
89915 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89916
89917         * lib/config.charset: Output a line containing "Packages using this
89918         file".
89919         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89920         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89921         ref-del.sed): New rules.
89922
89923 2000-03-17  Jim Meyering  <meyering@lucent.com>
89924
89925         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89926         Otherwise, include <strings.h>
89927
89928 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89929
89930         * lib/unicodeio.c (utf8_wctomb): New function.
89931         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89932         format instead of in UCS-4 with platform dependent endianness.
89933
89934 2000-03-10  Jim Meyering  <meyering@lucent.com>
89935
89936         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89937         From Marco Franzen.
89938
89939 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89940
89941         * lib/savedir.c (savedir): Work even if directory size is
89942         negative; this can happen with some screwy NFS configurations.
89943
89944 2000-03-06  Jim Meyering  <meyering@lucent.com>
89945
89946         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89947         if it's NULL (because we ran out of memory).  From Bruno Haible.
89948
89949 2000-03-05  Jim Meyering  <meyering@lucent.com>
89950
89951         * lib/localcharset.c ("path-concat.h"): Include.
89952         (get_charset_aliases): Use path_concat instead of ANSI string
89953         concatenation.
89954
89955         * lib/unicodeio.h (PARAMS): Define.
89956         Use it to guard prototype.
89957
89958 2000-03-04  Jim Meyering  <meyering@lucent.com>
89959
89960         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89961         for lib/localcharset.c.
89962
89963 2000-03-04  Jim Meyering  <meyering@lucent.com>
89964
89965         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89966         installing into it.
89967         (uninstall-local): Uncomment this rule so `make distcheck' works
89968         once again.
89969
89970         * lib/unicodeio.c (<errno.h>): Include it.
89971         (errno): Declare if not defined.
89972
89973         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89974
89975         * lib/config.charset: New version, incorporating remarks from a linux
89976         i18n mailing list.  From Bruno Haible.
89977
89978 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89979
89980         * m4/codeset.m4: New file.
89981         * m4/iconv.m4: New file.
89982         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89983
89984 2000-03-03  Jim Meyering  <meyering@lucent.com>
89985
89986         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89987
89988 2000-03-02  Jim Meyering  <meyering@lucent.com>
89989
89990         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89991         the messages come out on separate lines.
89992
89993         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89994         rather than jm_CHECK_DECLARATIONS.
89995         * m4/decl.m4: Remove now-unused file.
89996
89997         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89998         geteuid.
89999
90000 2000-03-02  Jim Meyering  <meyering@lucent.com>
90001
90002         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
90003
90004 2000-03-01  Jim Meyering  <meyering@lucent.com>
90005
90006         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
90007         * lib/unicodeio.c: Likewise.
90008
90009 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
90010
90011         * lib/config.charset: New file.
90012         * lib/localcharset.c: New file.
90013         * lib/unicodeio.h, lib/unicodeio.c: New files.
90014         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
90015         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
90016         (noinst_HEADERS): Add unicodeio.h.
90017         (all-local, install-exec-local, charset.alias): New targets.
90018
90019 2000-02-28  Paul Eggert  <eggert@twinsun.com>
90020
90021         * lib/quotearg.c (ALERT_CHAR): New macro.
90022         (quotearg_buffer_restyled): Use it.
90023
90024 2000-02-27  Jim Meyering  <meyering@lucent.com>
90025
90026         * m4/check-decl.m4: Add getenv to the list.
90027
90028 2000-02-27  Jim Meyering  <meyering@lucent.com>
90029
90030         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
90031         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
90032
90033         * lib/backupfile.c: Guard inclusion of stdlib.h with
90034         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
90035         Declare malloc if needed.
90036
90037         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
90038         `#ifndef HAVE_DECL..'
90039         now that autoconf always defines the HAVE_DECL_ symbols.
90040         * lib/human.c: Likewise.
90041         * lib/same.c: Likewise.
90042         * lib/strtoumax.c: Likewise.
90043
90044         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
90045         declaration check was not run.
90046         * lib/hash.c: Likewise.
90047         * lib/human.c: Likewise.
90048         * lib/same.c: Likewise.
90049         * lib/strtoumax.c: Likewise.
90050
90051         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
90052         `.', then first look up the entire `.'-containing string as a login
90053         name.
90054
90055 2000-02-23  Jim Meyering  <meyering@lucent.com>
90056
90057         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
90058         in place of my hack.
90059
90060 2000-02-18  Paul Eggert  <eggert@twinsun.com>
90061
90062         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
90063         (textint): New typedef.
90064         (parser_control): Member year changed from int to textint.
90065         All uses changed.
90066         (YYSTYPE): Removed; replaced by %union with int and textint members.
90067         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
90068         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
90069         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
90070         (tSNUMBER, tUNUMBER): Now of type <textintval>.
90071         (date, number, to_year): Use width of number in digits, not its value,
90072         to determine whether it's a 2-digit year, or a 2-digit time.
90073         (yylex): Store number of digits of numeric tokens.
90074         Reported by John Kendall.
90075
90076         (parser_control): Changed from struct parser_control to typedef (for
90077         consistency).  All uses changed.
90078
90079         (tID): Removed; not used.
90080         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
90081
90082 2000-02-14  Paul Eggert  <eggert@twinsun.com>
90083
90084         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
90085         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
90086
90087 2000-02-12  Jim Meyering  <meyering@lucent.com>
90088
90089         * lib/userspec.c (ISDIGIT): Define it.
90090         (isdigit): Remove definition.
90091         (is_number): Use ISDIGIT, not isdigit.
90092         <libintl.h>: Include.
90093         (_ and N_): Define.
90094         (parse_user_spec): Mark translatable strings.
90095
90096 2000-02-10  Jim Meyering  <meyering@lucent.com>
90097
90098         With these changes, nanosleep.[ch] are finally enough like the other
90099         lib/* replacement files to compile on a few more losing systems.
90100
90101         * lib/nanosleep.h: Don't include config.h.
90102         Remove prototype from declaration of nanosleep.
90103         (PARAMS): Remove now-unneeded definition.
90104         * lib/nanosleep.c: #undef nanosleep.
90105         (rpl_nanosleep): Rename from nanosleep.
90106
90107 2000-02-10  Jim Meyering  <meyering@lucent.com>
90108
90109         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
90110         gnu_nanosleep to rpl_nanosleep.
90111
90112 2000-02-09  Jim Meyering  <meyering@lucent.com>
90113
90114         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
90115         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
90116
90117 2000-02-08  Akim Demaille  <akim@epita.fr>
90118
90119         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
90120         `[' and `]' and remove uses of `changequote'.
90121         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
90122         (AC_SYS_LARGEFILE): Likewise.
90123         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
90124         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
90125         of changequote.
90126         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
90127         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
90128         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
90129         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
90130
90131 2000-02-05  Jim Meyering  <meyering@lucent.com>
90132
90133         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
90134         Remove explicit use of AC_HEADER_TIME.  It is required by
90135         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
90136         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
90137         in autoconf whereby the expansion of the latter ended up preceding
90138         the expansion of its prerequisite, AC_HEADER_TIME.
90139         Reported by Volker Borchert.
90140
90141 2000-02-03  Jim Meyering  <meyering@lucent.com>
90142
90143         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
90144
90145 2000-02-03  Jim Meyering  <meyering@lucent.com>
90146
90147         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
90148         rather than with `#if HAVE_UTMPNAME'.
90149
90150 2000-02-02  Jim Meyering  <meyering@lucent.com>
90151
90152         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
90153         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
90154         Reported by Eli Zaretskii.
90155
90156 2000-02-01  Jim Meyering  <meyering@lucent.com>
90157
90158         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
90159
90160 2000-01-31  Jim Meyering  <meyering@lucent.com>
90161
90162         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
90163         functions.  Add the time.h and sys/time.h headers along with the
90164         AC_REQUIRE'ment of AC_HEADER_TIME.
90165
90166 2000-01-31  Jim Meyering  <meyering@lucent.com>
90167
90168         * lib/nanosleep.h (nanosleep): Guard declaration with
90169         `#if ! HAVE_DECL_NANOSLEEP'.
90170         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
90171         the declaration in that vendor's sys/timers.h.
90172         Reported by Christian Krackowizer.
90173
90174         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
90175         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
90176         (ISPRINT): Likewise.
90177         Reported by Tom Tromey.
90178
90179 2000-01-30  Jim Meyering  <meyering@lucent.com>
90180
90181         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
90182
90183         * m4/prereq.m4 (utmp_includes): Define.
90184         Check for ut_user and ut_name members in both struct utmpx
90185         and struct utmp.
90186
90187 2000-01-30  Jim Meyering  <meyering@lucent.com>
90188
90189         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
90190         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
90191         header files where only utmpx.ut_user is declared.
90192
90193         * lib/readutmp.h (UT_USER): Define.
90194
90195 2000-01-29  Jim Meyering  <meyering@lucent.com>
90196
90197         * m4/lib-check.m4: New file containing library-related checks from
90198         fileutils and sh-utils (textutils had none).
90199
90200 2000-01-28  Jim Meyering  <meyering@lucent.com>
90201
90202         * m4/perl.m4: Change format of warning message to look more like that
90203         from the missing script.  Suggestion from François Pinard.
90204
90205 2000-01-25  Jim Meyering  <meyering@lucent.com>
90206
90207         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
90208         well as time.h in the compile check.
90209         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
90210         Fix typo in cross-compiling case: s/yes/no/.
90211
90212 2000-01-23  Jim Meyering  <meyering@lucent.com>
90213
90214         * m4/jm-macros.m4: Move df-related tests here from
90215         fileutils/configure.in
90216
90217         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
90218         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
90219
90220         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
90221         s/space/ac_fsusage_space/.
90222         (jm_FILE_SYSTEM_USAGE): Take two parameters.
90223
90224         * m4/ftruncate.m4: New file (derived from part of
90225         fileutils/configure.in).
90226         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
90227         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
90228
90229         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
90230         AC_SUBST these here, rather than just in sh-util/configure.in, so
90231         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
90232         all the same.
90233         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
90234         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
90235         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
90236         (AC_SUBST(POW_LIBM)): Likewise.
90237         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
90238
90239 2000-01-23  Jim Meyering  <meyering@lucent.com>
90240
90241         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
90242         obstack.c.
90243
90244 2000-01-22  Jim Meyering  <meyering@lucent.com>
90245
90246         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
90247
90248         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
90249
90250         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
90251         configure.in
90252         (AC_CHECK_HEADERS): Likewise for sh-utils.
90253         (AC_CHECK_HEADERS): Likewise for textutils.
90254         Merge the three lists of headers.
90255
90256         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
90257         from fileutils' configure.in.
90258
90259         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
90260         code. Moved tests into their own function (_jm_DECL_HEADERS) in
90261         check-decl.m4.
90262
90263         * m4/check-decl.m4: Use #if rather than #ifdef.
90264         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
90265         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
90266         (_jm_DECL_HEADERS): Define new function.
90267         (jm_CHECK_DECLARATIONS): Require it.
90268
90269 2000-01-22  Jim Meyering  <meyering@lucent.com>
90270
90271         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
90272         [! HAVE_DECL_STRTOULL]: Declare strtoull.
90273         Required for some AIX systems.  Reported by Christian Krackowizer.
90274         [TESTING] (main): New function.
90275
90276         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
90277         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
90278         letters.
90279
90280         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
90281         iswprint.
90282
90283         * lib/strverscmp.c (ISDIGIT): Define.
90284         (strverscmp): Use ISDIGIT, not isdigit.
90285
90286 2000-01-19  Jim Meyering  <meyering@lucent.com>
90287
90288         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
90289         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
90290         defines `struct timespec' in <sys/time.h>
90291
90292         * m4/c-bs-a.m4: Remove uses of changequote altogether.
90293         Thanks to Akim for explaining.
90294
90295 2000-01-17  Paul Eggert  <eggert@twinsun.com>
90296
90297         * lib/nanosleep.c (nanosleep):
90298         Don't use SA_INTERRUPT to decide whether to call sigaction, as
90299         POSIX.1 doesn't require SA_INTERRUPT and some systems
90300         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
90301         it's been part of POSIX.1 since day 1 (in 1988).
90302
90303 2000-01-17  Jim Meyering  <meyering@lucent.com>
90304
90305         * lib/interlock: Remove unused file.  Reported by François Pinard.
90306
90307 2000-01-16  Paul Eggert  <eggert@twinsun.com>
90308
90309         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
90310         alert, backslash, formfeed, and vertical tab unnecessarily in
90311         shell quoting style.
90312
90313 2000-01-16  Jim Meyering  <meyering@lucent.com>
90314
90315         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
90316         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
90317         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
90318         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
90319
90320 2000-01-16  Jim Meyering  <meyering@lucent.com>
90321
90322         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
90323         because the latter didn't work.
90324
90325 2000-01-15  Jim Meyering  <meyering@lucent.com>
90326
90327         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
90328         (AC_REPLACE_FUNCS): Add memcpy and memset.
90329         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
90330         Add strpbrk.
90331         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
90332
90333 2000-01-12  Jim Meyering  <meyering@lucent.com>
90334
90335         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
90336         (jm_PREREQ): Use it.
90337         (jm_PREREQ_READUTMP): New macro.
90338         (jm_PREREQ): Use it.
90339
90340 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90341
90342         Quote multibyte characters correctly.
90343         * m4/c-bs-a.m4: New file.
90344         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
90345         (jm_PREREQ): Use it.
90346
90347 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90348
90349         * m4/uintmax_t.m4: Port to autoconf 2.13.
90350
90351 2000-01-08  Jim Meyering  <meyering@ascend.com>
90352
90353         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
90354         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
90355
90356 2000-01-04  Jim Meyering  <meyering@ascend.com>
90357
90358         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
90359         jm_STRUCT_DIRENT_D_TYPE.
90360         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
90361         jm_STRUCT_DIRENT_D_INO.
90362         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
90363         jm_STRUCT_UTIMBUF.
90364         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
90365         renamings.
90366         * m4/utime.m4: Likewise.
90367
90368         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
90369         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
90370
90371 2000-01-03  Paul Eggert  <eggert@twinsun.com>
90372
90373         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
90374         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
90375
90376 2000-01-02  Jim Meyering  <meyering@ascend.com>
90377
90378         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
90379         remember if this is necessary.
90380
90381 1999-12-26  Jim Meyering  <meyering@ascend.com>
90382
90383         * m4/jm-macros.m4: Use it here.
90384         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
90385
90386 1999-12-23  Jim Meyering  <meyering@ascend.com>
90387
90388         * m4/jm-macros.m4: Check for clock_gettime (moved from
90389         fileutils/configure.in)
90390         Check for gettimeofday.
90391
90392 1999-12-20  Jim Meyering  <meyering@ascend.com>
90393
90394         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
90395         autoconf-2.14a-1999-12-20.
90396
90397 1999-12-19  Jim Meyering  <meyering@ascend.com>
90398
90399         * m4/lstat-slash.m4: New file.
90400         * m4/jm-macros.m4: Use the new macro:
90401         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90402
90403 1999-12-07  Jim Meyering  <meyering@ascend.com>
90404
90405         * m4/perl.m4: Require that File::Compare be available, too.
90406         Too many systems seem to lack it.
90407
90408         * m4/strftime.m4: Add checks for most of the cpp macros tested in
90409         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
90410
90411 1999-11-18  Paul Eggert  <eggert@twinsun.com>
90412
90413         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
90414         problem with the QNX 4.25 shell, which doesn't propagate exit
90415         status of failed commands inside shell assignments.
90416
90417 1999-11-17  Jim Meyering  <meyering@ascend.com>
90418
90419         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
90420
90421 1999-11-07  Jim Meyering  <meyering@ascend.com>
90422
90423         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
90424
90425 1999-11-06  Jim Meyering  <meyering@ascend.com>
90426
90427         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
90428         * m4/jm-macros.m4 (jm_MACROS): Use it here.
90429
90430 1999-11-05  Jim Meyering  <meyering@ascend.com>
90431
90432         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
90433         configure.in of textutils, fileutils, and sh-utils into this one
90434         (shared between those packages) file.
90435         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
90436         AC_STRUCT_ST_BLKSIZE.
90437
90438 1999-11-03  Jim Meyering  <meyering@ascend.com>
90439
90440         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
90441         of AC_CHECK_TYPE checks includes unistd.h.
90442         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
90443         Suggestion from Akim Demaille.
90444
90445 1999-10-30  Jim Meyering  <meyering@ascend.com>
90446
90447         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
90448         m4-quoted string.
90449         * m4/ls-mntd-fs.m4: Likewise.
90450         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
90451         * m4/jm-winsz1.m4: Likewise.
90452
90453         * m4/const.m4: Remove file, since the fix made it into the experimental
90454         version of autoconf.
90455         * m4/mktime.m4: Likewise.
90456
90457         * m4/check-type.m4: Remove file, now that the latest version of
90458         AC_CHECK_TYPE takes a third arg to specify additional #includes.
90459
90460         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
90461         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
90462         AC_CHECK_TYPE.
90463
90464 1999-10-04  Jim Meyering  <meyering@ascend.com>
90465
90466         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
90467
90468 1999-09-22  Paul Eggert  <eggert@twinsun.com>
90469
90470         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
90471         2.95.1 bug with HP-UX 10.20.
90472
90473 1999-09-17  Jim Meyering  <meyering@ascend.com>
90474
90475         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
90476         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
90477         due to missing strdup (against sh-utils-2.0).
90478
90479 1999-08-29  Jim Meyering  <meyering@ascend.com>
90480
90481         * m4/jm-macros.m4: Require jm_BISON.
90482         * m4/bison.m4: New file.
90483
90484 1999-08-17  Paul Eggert  <eggert@twinsun.com>
90485
90486         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
90487         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
90488
90489 1999-08-05  Jim Meyering  <meyering@ascend.com>
90490
90491         * m4/getline.m4: Rename test file from conftestdata to conftest.data
90492         to avoid conflicts with `conftest' on 8+3 filesystems.
90493         Suggestion from Eli Zaretskii.
90494
90495 1999-08-04  Jim Meyering  <meyering@ascend.com>
90496
90497         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
90498         fileutils and sh-utils (textutils's getline test was inadequate).
90499         (AM_FUNC_GETLINE): Run this test.
90500         (AC_CHECK_FUNCS): Check for getdelim.
90501         Reported by Bob Proulx.
90502
90503 1999-08-02  Jim Meyering  <meyering@ascend.com>
90504
90505         * m4/jm-macros.m4: Add a comment.
90506
90507 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90508
90509         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
90510         <inttypes.h> defines strtoumax as a macro (and not as a
90511         function).
90512
90513 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90514
90515         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
90516         that we can shift, multiply and divide unsigned long long
90517         values; Ultrix cc can't do it.
90518
90519 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90520
90521         * m4/mktime.m4: New file, which is a preview of what should appear
90522         in the next public autoconf release.
90523
90524 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90525
90526         * m4/lfs.m4: Remove this file.
90527         * m4/largefile.m4: New file.  It contains the old contents of
90528         lfs.m4, except that all names with prefix AC_LFS have been
90529         changed to use the prefix AC_SYS_LARGEFILE instead, to be
90530         compatible with future autoconf versions.  Also, some minor m4
90531         quoting problems have been fixed.
90532
90533 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90534
90535         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
90536         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
90537         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
90538         and simplify the shell code.
90539
90540 1999-08-01  Jim Meyering  <meyering@ascend.com>
90541
90542         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
90543         m4.
90544
90545 1999-07-20  Jim Meyering  <meyering@ascend.com>
90546
90547         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
90548
90549 1999-07-15  Jim Meyering  <meyering@ascend.com>
90550
90551         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
90552
90553 1999-05-22  Jim Meyering  <meyering@ascend.com>
90554
90555         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
90556
90557 1999-05-20  Jim Meyering  <meyering@ascend.com>
90558
90559         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
90560         Add a colon after each `then' in case $4 is empty.
90561
90562 1999-05-16  Jim Meyering  <meyering@ascend.com>
90563
90564         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
90565
90566 1999-05-10  Jim Meyering  <meyering@ascend.com>
90567
90568         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
90569
90570         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
90571         AC_FUNC_MKTIME.
90572
90573 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
90574
90575         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
90576
90577 1999-05-04  Paul Eggert  <eggert@twinsun.com>
90578
90579         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
90580         not CPPFLAGS, so that linking works correctly in IRIX.
90581
90582 1999-04-30  Paul Eggert  <eggert@twinsun.com>
90583
90584         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
90585
90586 1999-04-20  Paul Eggert  <eggert@twinsun.com>
90587
90588         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
90589         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
90590         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
90591         jm_AC_TYPE_UNSIGNED_LONG_LONG.
90592         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
90593
90594         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
90595
90596 1999-04-20  Jim Meyering  <meyering@ascend.com>
90597
90598         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
90599         AC_REPLACE xstroull if necessary.  From Paul Eggert.
90600         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
90601
90602 1999-04-18  Jim Meyering  <meyering@ascend.com>
90603
90604         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
90605         * m4/jm-macros.m4: Use it.
90606
90607 1999-04-06  Jim Meyering  <meyering@ascend.com>
90608
90609         * m4/strftime.m4: Remove test for %f.
90610
90611 1999-03-29  Jim Meyering  <meyering@ascend.com>
90612
90613         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
90614         superset of the AC_TYPE_* checks in the textutils, fileutils,
90615         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
90616         AC_TYPE_PID_T.
90617
90618 1999-03-28  Jim Meyering  <meyering@ascend.com>
90619
90620         * m4/jm-macros.m4: Define GNU_PACKAGE here.
90621         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
90622         replaced e.g., in the *.sh files of the sh-utils.
90623
90624 1999-03-20  Jim Meyering  <meyering@ascend.com>
90625
90626         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
90627         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
90628         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
90629
90630 1999-03-19  Jim Meyering  <meyering@ascend.com>
90631
90632         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
90633
90634 1999-03-12  Jim Meyering  <meyering@ascend.com>
90635
90636         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
90637
90638 1999-03-07  Jim Meyering  <meyering@ascend.com>
90639
90640         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
90641         declared.
90642
90643 1999-02-17  Jim Meyering  <meyering@ascend.com>
90644
90645         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90646         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90647
90648 1999-02-07  Jim Meyering  <meyering@ascend.com>
90649
90650         * m4/group-member.m4: New file -- extracted from sh-utils'
90651         configure.in.
90652
90653         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90654         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90655
90656 1999-02-06  Jim Meyering  <meyering@ascend.com>
90657
90658         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90659         * m4/fnmatch.m4: Likewise.
90660         * m4/getgroups.m4: Likewise.
90661         * m4/lstat.m4: Likewise.
90662         * m4/malloc.m4: Likewise.
90663         * m4/putenv.m4: Likewise.
90664         * m4/realloc.m4: Likewise.
90665         * m4/regex.m4: Likewise.
90666         * m4/stat.m4: Likewise.
90667         * m4/strftime.m4: Likewise.
90668         Suggestion from Alain Magloire.
90669
90670         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90671         * m4/fnmatch.m4: Likewise.
90672         * m4/getgroups.m4: Likewise.
90673         * m4/getline.m4: Likewise.
90674         * m4/lstat.m4: Likewise.
90675         * m4/malloc.m4: Likewise.
90676         * m4/memcmp.m4: Likewise.
90677         * m4/putenv.m4: Likewise.
90678         * m4/realloc.m4: Likewise.
90679         * m4/regex.m4: Likewise.
90680         * m4/stat.m4: Likewise.
90681         * m4/strftime.m4: Likewise.
90682         Suggestion from Alain Magloire.
90683
90684         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90685         an argument.
90686
90687         * m4/regex.m4: Add a run-time Test for proper operation of
90688         re_compile_pattern.
90689
90690 1999-01-31  Jim Meyering  <meyering@ascend.com>
90691
90692         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
90693
90694 1999-01-30  Jim Meyering  <meyering@ascend.com>
90695
90696         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
90697
90698         * m4/jm-mktime.m4: Make this a wrapper around the official
90699         AM_FUNC_MKTIME rather than my private copy, now that the official one
90700         is up to date.
90701         * m4/mktime.m4: Remove file.
90702
90703         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
90704         * m4/uptime.m4: Likewise.
90705         * m4/uintmax_t.m4: Likewise.
90706
90707 1999-01-28  Jim Meyering  <meyering@ascend.com>
90708
90709         * m4/jm-macros.m4: Use jm_AFS.
90710         * m4/afs.m4: New file (from fileutils' configure.in).
90711
90712         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90713         * m4/chown.m4: Likewise.
90714         * m4/d-ino.m4: Likewise.
90715         * m4/d-type.m4: Likewise.
90716         * m4/fnmatch.m4: Likewise.
90717         * m4/getgroups.m4: Likewise.
90718         * m4/gettext.m4: Likewise.
90719         * m4/jm-mktime.m4: Likewise.
90720         * m4/jm-winsz2.m4: Likewise.
90721         * m4/lcmessage.m4: Likewise.
90722         * m4/ls-mntd-fs.m4: Likewise.
90723         * m4/malloc.m4: Likewise.
90724         * m4/memcmp.m4: Likewise.
90725         * m4/putenv.m4: Likewise.
90726         * m4/realloc.m4: Likewise.
90727         * m4/st_mtim.m4: Likewise.
90728         * m4/strftime.m4: Likewise.
90729
90730 1999-01-16  Jim Meyering  <meyering@ascend.com>
90731
90732         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90733         (ARGMATCH_DIE_DECL): Define.
90734
90735 1999-01-12  Jim Meyering  <meyering@ascend.com>
90736
90737         * m4/Makefile.am.in: Rewrite to avoid using fmt.
90738         Reported by Lars Hecking.
90739
90740 1999-01-10  Jim Meyering  <meyering@ascend.com>
90741
90742         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
90743         gross kludge.
90744         * m4/inttypes_h.m4: Likewise.
90745         * m4/lstat.m4: Likewise.
90746         * m4/malloc.m4: Likewise.
90747         * m4/readdir.m4: Likewise.
90748         * m4/realloc.m4: Likewise.
90749         * m4/st_dm_mode.m4: Likewise.
90750         * m4/stat.m4: Likewise.
90751         * m4/utimbuf.m4: Likewise.
90752         * m4/utimes.m4: Likewise.
90753
90754         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
90755         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
90756         comments in config.h.in are meaningful.
90757
90758         * m4/jm-macros.m4: Require autoconf-2.13 here.
90759
90760         * m4/regex.m4: By default, don't use the included regex.c on systems
90761         with glibc 2.  Suggestion from Uli Drepper.
90762
90763 1999-01-02  Jim Meyering  <meyering@ascend.com>
90764
90765         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90766
90767 1998-12-18  Jim Meyering  <meyering@ascend.com>
90768
90769         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90770         Based on a suggestion from Lars Hecking.
90771
90772 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90773
90774         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90775
90776 1998-11-16  Jim Meyering  <meyering@ascend.com>
90777
90778         * m4/lfs.m4: Double-quote the `uname...` expression.
90779
90780 1998-11-14  Jim Meyering  <meyering@ascend.com>
90781
90782         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90783         * m4/stat.m4: Likewise.
90784
90785 1998-11-03  Jim Meyering  <meyering@ascend.com>
90786
90787         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90788         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90789
90790 1998-10-18  Jim Meyering  <meyering@ascend.com>
90791
90792         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90793
90794 1998-10-17  Jim Meyering  <meyering@ascend.com>
90795
90796         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
90797         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
90798         calls for those previously hard-coded headers.  Instead, take a new
90799         parameter.
90800         (jm_CHECK_DECLARATIONS): Reflect interface change.
90801         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
90802         (jm_CHECK_DECL_LOCALTIME_R): New macro.
90803
90804         * m4/mktime.m4: Test for spring-forward gap before long-running test.
90805
90806 1998-10-14  Jim Meyering  <meyering@ascend.com>
90807
90808         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90809         instead of "TZ=America/Vancouver".  From Paul Eggert.
90810
90811 1998-10-11  Jim Meyering  <meyering@ascend.com>
90812
90813         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90814         This adds a test for a recently added compatibility fix for mktime.c.
90815         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90816
90817 1998-09-27  Jim Meyering  <meyering@ascend.com>
90818
90819         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90820
90821         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90822         ../configure.in, including a change from Gordon Matzigkeit to allow
90823         cross-compiling for the Hurd.
90824
90825         * m4/glibc.m4: New file/macro to test for the GNU C Library
90826         versions 1 and 2.  From Gordon Matzigkeit.
90827         Indent.
90828
90829 1998-09-21  Jim Meyering  <meyering@ascend.com>
90830
90831         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90832
90833 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90834
90835         Port nanosecond-resolution times to UnixWare 2.1.2 and
90836         pedantic Solaris 2.6.
90837
90838         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90839         AC_STRUCT_ST_MTIM.
90840         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90841         Generate name of ns member, instead of just 1 or undef.
90842         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90843
90844 1998-08-15  Jim Meyering  <meyering@ascend.com>
90845
90846         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90847         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90848         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90849         instead of jm_TYPE_SSIZE_T.
90850
90851 1998-08-12  Jim Meyering  <meyering@ascend.com>
90852
90853         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90854
90855 1998-08-02  Jim Meyering  <meyering@ascend.com>
90856
90857         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90858         in acconfig.h manually.
90859
90860 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90861
90862         * m4/st_mtim.m4: New file.
90863
90864 1998-07-28  Jim Meyering  <meyering@ascend.com>
90865
90866         * m4/utimes.m4: Undef stat.
90867
90868 1998-07-25  Jim Meyering  <meyering@ascend.com>
90869
90870         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90871         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90872
90873 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90874
90875         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90876         uid and gid actually remain unchanged.
90877
90878 1998-07-07  Jim Meyering  <meyering@ascend.com>
90879
90880         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90881
90882 1998-07-04  Jim Meyering  <meyering@ascend.com>
90883
90884         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90885         to prove that this macro can be used in packages without regex.c.
90886
90887 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90888
90889         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90890         is to be used.
90891
90892 1998-07-03  Jim Meyering  <meyering@ascend.com>
90893
90894         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90895
90896         * m4/gettext.m4: New file -- from gettext-0.10.35.
90897         * m4/lcmessage.m4: Likewise.
90898         * m4/progtest.m4: Likewise.
90899
90900         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90901         * m4/jm-macros.m4: Require the new macro.
90902
90903 1998-06-29  Jim Meyering  <meyering@ascend.com>
90904
90905         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90906         for the definition of NGROUPS (used in a system header included
90907         by sys/mount.h).
90908
90909 1998-06-28  Jim Meyering  <meyering@ascend.com>
90910
90911         * m4/ls-mntd-fs.m4: New file.
90912         * m4/fstypename.m4: New file.
90913
90914         * m4/jm-macros.m4: Require the new macro.
90915         * m4/jm-glibc-io.m4: New file.
90916
90917 1998-05-19  Jim Meyering  <meyering@ascend.com>
90918
90919         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90920         * m4/lchown.m4: New file.
90921
90922         * m4/Makefile.am.in: New file.
90923         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90924
90925 1998-05-14  Jim Meyering  <meyering@ascend.com>
90926
90927         * m4/Makefile.am (EXTRA_DIST): Add them.
90928         * m4/jm-macros.m4: New file.
90929         * m4/utimbuf.m4: New file.
90930
90931 1998-05-12  Jim Meyering  <meyering@ascend.com>
90932
90933         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90934
90935 1998-05-11  Jim Meyering  <meyering@ascend.com>
90936
90937         * m4/isc-posix.m4: New file.
90938
90939 1998-05-10  Jim Meyering  <meyering@ascend.com>
90940
90941         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90942
90943 1998-05-09  Jim Meyering  <meyering@ascend.com>
90944
90945         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90946         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90947         with automake.
90948
90949         * m4/ssize_t.m4: New file.
90950         * m4/mktime.m4: Remove file -- the new automake has this now.
90951
90952 1998-04-26  Jim Meyering  <meyering@ascend.com>
90953
90954         * m4/assert.m4: New file.
90955         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90956
90957 1998-04-05  Jim Meyering  <meyering@ascend.com>
90958
90959         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90960         (jm_PREREQ): Use it here.
90961
90962 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90963
90964         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90965         in acconfig.h.
90966
90967 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90968
90969         * m4/prereq.m4: New file.
90970         * m4/error.m4: New file.
90971         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90972
90973 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90974
90975         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90976         cache-check for the same variable -- that defeated the purpose of
90977         the test; the test program was never run.  This was a problem only
90978         on systems with losing getline functions -- HP-UX 10.20 is one.
90979         Reported by Bjorn Helgaas.
90980
90981 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90982
90983         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90984
90985 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90986
90987         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90988
90989         * m4/const.m4: New file.  Use an initializer in this declaration
90990         typedef int charset[2]; const charset x;
90991         Reported by Bob Glickstein.
90992
90993 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90994
90995         * m4/chown.m4: Fix reversed types on -1 args to chown.
90996         From Kaveh Ghazi.
90997
90998 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90999
91000         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
91001         Add lseek and memchr.
91002
91003         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
91004         T.E.Dickey <dickey@clark.net> said that some older preprocessors
91005         have a 20-character limit on names.
91006
91007 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
91008
91009         * m4/inttypes_h.m4: New file.
91010         * m4/uintmax_t.m4: New file.
91011         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
91012
91013
91014         -----
91015
91016         Local Variables:
91017         coding: utf-8
91018         End:
91019
91020         Copyright (C) 1997-2012 Free Software Foundation, Inc.
91021
91022         Copying and distribution of this file, with or without
91023         modification, are permitted provided the copyright notice
91024         and this notice are preserved.