sys_time: Override 'struct timeval' on some native Windows platforms.
[gnulib.git] / ChangeLog
1 2012-01-28  Bruno Haible  <bruno@clisp.org>
2
3         sys_time: Override 'struct timeval' on some native Windows platforms.
4         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
5         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
6         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
7         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
8         needs to be overridden.
9         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
10         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
11         * tests/test-sys_select.c: Check that the tv_sec member has the same
12         size as a 'time_t'.
13         * tests/test-sys_time.c: Likewise.
14         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
15         is set, set also REPLACE_GETTIMEOFDAY.
16         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
17         convert the resulting 'struct timeval' before returning.
18         * lib/select.c: Include <sys/time.h>.
19         (select, timeval): Undefine at the right place.
20         * modules/select (Depends-on): Add sys_time.
21         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
22         some Windows platforms.
23         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
24
25 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
26
27         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
28         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
29         an integer.
30         * lib/fcntl.c (dupfd): Likewise.
31         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
32
33 2012-01-28  Bruno Haible  <bruno@clisp.org>
34
35         fcntl: Avoid compilation error on native Windows.
36         * modules/fcntl (Depends-on): Add 'close'.
37
38 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39
40         select, poll, isatty: Avoid warnings on x86_64 mingw64.
41         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
42         pointer to an integer.
43         * lib/poll.c (IsConsoleHandle): Likewise.
44         * lib/isatty.c (IsConsoleHandle): Likewise.
45
46 2012-01-28  Jim Meyering  <meyering@redhat.com>
47
48         doc: clarify README-release
49         * top/README-release: Clarify: you should make a point to have
50         the latest stable versions of build tools in your PATH, and the
51         reference to buildreq is solely for its list of tool names, not
52         for its minimal-functional version numbers.
53         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
54
55         maint.mk: use more readable (yet functionally equivalent) quoting
56         It is common to quote a single quote in a single quoted string like
57         this:  '...'\''...'.  Unless you know the idiom, that looks like
58         gibberish, so prefer to double-quote the string when possible.
59         Then you can use a more readable, lone single quote: "...'..."
60         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
61         "don't" is more readable than the equivalent 'don'\''t'.
62         (sc_cast_of_x_alloc_return_value): Likewise.
63         (sc_cast_of_alloca_return_value): Likewise.
64         (sc_makefile_path_separator_check): Similar: use ":" in '...',
65         rather than '\'':'\''.
66
67 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
68
69         stdalign: relax _Alignof and tighten _Alignas test
70         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
71         as it was too strict: alignof must divide offsetof, but it need
72         not equal offsetof.  Inspired by Joseph S. Myers's comment
73         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
74         Conversely, tighten the _Alignas test a bit, as the resulting
75         alignment must be exactly 8.
76
77 2012-01-27  Bruno Haible  <bruno@clisp.org>
78
79         stdalign: Document the last change.
80         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
81
82 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
83
84         stdalign: check that alignof and offsetof are consistent
85         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
86         Problem reported for gnulib by Richard W.M. Jones in
87         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
88
89 2012-01-27  Jim Meyering  <meyering@redhat.com>
90
91         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
92         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
93         convert a sequence with gaps to the minimal containing range.
94         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
95         * tests/test-update-copyright.sh: Test for this.
96         The FSF confirmed it is ok to do this, assuming there is at
97         least one significant change per year in the affected range:
98         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
99
100 2012-01-26  Bruno Haible  <bruno@clisp.org>
101
102         pipe2: refine doc about thread-safety
103         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
104         multithread-safety problem.
105         * doc/glibc-functions/accept4.texi: Likewise.
106
107 2012-01-26  Bruno Haible  <bruno@clisp.org>
108
109         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
110         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
111         In the test program, include <fcntl.h>, for O_RDONLY.
112
113 2012-01-26  Eric Blake  <eblake@redhat.com>
114
115         pipe2: document lack of thread-safety in replacement
116         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
117         issue in replacement.
118         * doc/glibc-functions/accept4.texi (accept4): Likewise.
119         Based on a report by Eric Wong.
120
121 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
122             Bruno Haible  <bruno@clisp.org>
123
124         malloca: Avoid warnings on x86_64 mingw64.
125         * lib/malloca.c: Include <stdint.h>.
126         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
127         * modules/malloca (Depends-on): Add stdint.
128         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
129
130 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
131
132         obstack: remove __STDC__ conditionals
133         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
134         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
135         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
136         m4/include_next.m4 as the only gnulib-maintained places that still
137         refer to __STDC__.
138
139 2012-01-24  Bruno Haible  <bruno@clisp.org>
140
141         havelib: Modern quoting.
142         * build-aux/config.rpath: Quote 'like this', not `like this', as per
143         the recent change to the GNU coding standards.
144
145 2012-01-24  Bruno Haible  <bruno@clisp.org>
146
147         stdint: Improve support for Android.
148         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
149         Reported by Simon Josefsson <simon@josefsson.org>.
150
151 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
152
153         doc: omit trailing empty lines from INSTALL etc.
154         * doc/Makefile (INSTALL): Omit trailing empty lines.
155         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
156         omit trailing empty lines.  This simplifies the build procedure.
157
158 2012-01-23  Jim Meyering  <meyering@redhat.com>
159
160         tests: avoid spurious warnings about gl_sockets_startup
161         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
162         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
163         reporting a "statement with no effect".
164         * tests/test-accept.c (main): Mark as "(void)".
165         * tests/test-accept4.c (main): Likewise.
166         * tests/test-bind.c (main): Likewise.
167         * tests/test-connect.c (main): Likewise.
168         * tests/test-getpeername.c (main): Likewise.
169         * tests/test-getsockname.c (main): Likewise.
170         * tests/test-getsockopt.c (main): Likewise.
171         * tests/test-listen.c (main): Likewise.
172         * tests/test-recv.c (main): Likewise.
173         * tests/test-recvfrom.c (main): Likewise.
174         * tests/test-send.c (main): Likewise.
175         * tests/test-sendto.c (main): Likewise.
176         * tests/test-setsockopt.c (main): Likewise.
177         * tests/test-shutdown.c (main): Likewise.
178
179 2012-01-21  Bruno Haible  <bruno@clisp.org>
180
181         locale-fr.m4: Fix for Android.
182         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
183         failure of the test program on Bionic libc.
184
185 2012-01-21  Jim Meyering  <meyering@redhat.com>
186
187         bootstrap: fail when bootstrap_post_import_hook fails
188         Otherwise, it's far too easy to miss diagnostics emitted
189         between gnulib-tool's output and that of running configure.
190         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
191
192 2012-01-17  Jim Meyering  <meyering@redhat.com>
193
194         maint: enable sc_trailing_blank
195         * build-aux/pmccabe.css: Remove trailing blanks.
196         * doc/acl-cygwin.txt: Likewise.
197         * doc/gnu-oids.texi: Likewise
198         * cfg.mk: Enable sc_trailing_blank.
199         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
200
201 2012-01-17  Jim Meyering  <meyering@redhat.com>
202
203         maint: enable sc_prohibit_openat_without_use
204         * cfg.mk: Enable sc_prohibit_openat_without_use.
205         Exempt lib/selinux-at.c.
206
207 2012-01-17  Jim Meyering  <meyering@redhat.com>
208
209         maint: enable sc_prohibit_cloexec_without_use
210         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
211         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
212
213 2012-01-17  Jim Meyering  <meyering@redhat.com>
214
215         maint: enable sc_prohibit_intprops_without_use
216         * cfg.mk: Enable sc_prohibit_intprops_without_use
217         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
218
219 2012-01-17  Jim Meyering  <meyering@redhat.com>
220
221         maint: enable sc_prohibit_hash_pjw_without_use
222         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
223         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
224         to match any use of \<hash_pjw\>, i.e., not necessarily with a
225         following " (".
226
227 2012-01-17  Jim Meyering  <meyering@redhat.com>
228
229         maint: enable double-word-prohibiting rule
230         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
231         Exempt three files.
232
233 2012-01-17  Jim Meyering  <meyering@redhat.com>
234
235         maint: remove empty lines at EOF, but excluding modules/*
236         Apply syntax rules at home as well as abroad.  Most changes
237         were induced by running this:
238           make srcdir=. _build-aux=build-aux -f top/maint.mk \
239             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
240             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
241         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
242         Exempt modules/* and two binary files.
243         Also exempt doc/INSTALL*, per request from Bruno Haible.
244         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
245         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
246         * doc/Copyright/request-assign.future: Likewise.
247         * doc/Copyright/request-disclaim.changes: Likewise.
248         * doc/INSTALL: Likewise.
249         * doc/INSTALL.ISO: Likewise.
250         * doc/INSTALL.UTF-8: Likewise.
251         * doc/acl-cygwin.txt: Likewise.
252         * doc/acl-resources.txt: Likewise.
253         * doc/fdl-1.2.texi: Likewise.
254         * doc/fdl-1.3.texi: Likewise.
255         * doc/fdl.texi: Likewise.
256         * lib/argp-pin.c: Likewise.
257         * lib/round.c: Likewise.
258         * lib/unicase/u16-totitle.c: Likewise.
259         * lib/unictype/block_test.c: Likewise.
260         * lib/uninorm/canonical-decomposition.c: Likewise.
261         * m4/README: Likewise.
262         * m4/relocatable-lib.m4: Likewise.
263         * tests/test-isnand-nolibm.c: Likewise.
264         * tests/test-isnand.c: Likewise.
265         * tests/uninorm/NormalizationTest.txt: Likewise.
266
267 2012-01-17  Jim Meyering  <meyering@redhat.com>
268
269         maint: add framework to run syntax-check rules against gnulib sources
270         * cfg.mk: New file, to disable all currently-failing tests.
271         We'll enable them one by one, as they are made to pass.
272         * Makefile (sc_maint): New rule.
273
274 2012-01-21  Bruno Haible  <bruno@clisp.org>
275
276         stdint: Add support for Android.
277         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
278         include the system's <stdint.h>.
279         Reported by Simon Josefsson <simon@josefsson.org>.
280
281 2012-01-19  Jim Meyering  <meyering@redhat.com>
282
283         bootstrap: add bootstrap_post_import_hook
284         Bison does still need something like the gnulib_mk_hook whose
285         invocation I had to remove along with slurp in commit 767ccd40.
286         Technically, we could get along without it, but doing so would
287         have required living with a warning and a mandatory post-bootstrap
288         automake rerun.
289         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
290         (bootstrap_post_import_hook): New function.
291         Invoke it after gnulib-tool --import and before autoreconf.
292
293 2012-01-18  Jim Meyering  <meyering@redhat.com>
294
295         gitlog-to-changelog: don't use "no_"-prefixed variable name
296         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
297         to enable both --cluster and --no-cluster.  Change variable name,
298         s/\$no_cluster/$cluster/, and reverse usage to match.
299
300         gitlog-to-changelog: use "||", not "or" in expressions
301         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
302         expressions.
303
304 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
305
306         gitlog-to-changelog: new option --no-cluster
307         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
308         clustering of adjacent commit messages.
309
310 2012-01-17  Jim Meyering  <meyering@redhat.com>
311
312         maint: spell file systems with two words, not one
313         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
314         two words, not one.
315
316 2012-01-16  Jim Meyering  <meyering@redhat.com>
317
318         bootstrap: add a FIXME comment to ensure we eventually remove the hack
319         * build-aux/bootstrap (gnulib_tool_options): Add comment.
320
321 2012-01-16  Eric Blake  <eblake@redhat.com>
322
323         bootstrap: cater to autoconf 2.59
324         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
325         is not available.
326
327         bootstrap: properly check for libtool
328         * build-aux/bootstrap (libtoolize): Also run libtool when older
329         usage is detected.
330
331 2012-01-15  Bruno Haible  <bruno@clisp.org>
332
333         Improve support for MSVC 9.
334         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
335         clashes on MSVC.
336         * lib/fcntl.in.h: Likewise.
337         * lib/stdlib.in.h: Likewise.
338         * lib/sys_stat.in.h: Likewise.
339
340 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
341
342         gnupload: we hold the master copy of this script now
343         For motivation and more information, see:
344         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
345         * build-aux/gnupload: Make it clear in the heading comments that the
346         master copy of this file is maintained by gnulib.  Since we are at
347         it, bump its copyright year and ...
348         ($scriptversion): ... the date in its version.
349         ($usage): Patches and bug reports should be sent to the gnulib list,
350         not the automake one.
351         * config/srclist.txt: Don't try to sync 'gnupload' from automake
352         anymore.
353
354 2012-01-15  Bruno Haible  <bruno@clisp.org>
355
356         Fix module 'random'.
357         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
358         initstate, setstate are declared.
359
360 2012-01-14  Bruno Haible  <bruno@clisp.org>
361
362         Tests for module 'random'.
363         * modules/random-tests: New file.
364         * tests/test-random.c: New file, based on tests/test-random_r.c.
365
366         New module 'random'.
367         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
368         declarations.
369         * lib/random.c: New file, based on glibc/stdlib/random.c.
370         * m4/random.m4: New file.
371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
372         HAVE_RANDOM.
373         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
374         * modules/random: New file.
375         * config/srclist.txt: Add an entry for random.c.
376         * doc/posix-functions/random.texi: Mention the 'random' module.
377         * doc/posix-functions/initstate.texi: Likewise.
378         * doc/posix-functions/setstate.texi: Likewise.
379         * doc/posix-functions/srandom.texi: Likewise.
380
381 2012-01-12  Bruno Haible  <bruno@clisp.org>
382
383         random_r: Use common idioms.
384         * lib/random_r.c: Include <stdlib.h> first.
385
386         random_r: Override incompatible API on AIX, OSF/1.
387         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
388         Override the system function if REPLACE_RANDOM_R is 1.
389         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
390         and OSF/1, set REPLACE_RANDOM_R.
391         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
392         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
393         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
394         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
395         * doc/glibc-functions/random_r.texi: Likewise.
396         * doc/glibc-functions/setstate_r.texi: Likewise.
397
398         random_r: Support for MSVC 9.
399         * lib/random_r.c: Include stdint.h, not inttypes.h.
400
401 2012-01-12  Eric Blake  <eblake@redhat.com>
402
403         inet_ntop: guard extra work by IF_LINT
404         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
405         better code generation when not checking for warnings.
406         Suggested by Paul Eggert and Jim Meyering.
407
408         strptime: fix regression on mingw
409         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
410         Fix regression.  Reported by Bruno Haible.
411
412 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
413             Bruno Haible  <bruno@clisp.org>
414
415         copy-file: add error-code-returning variant.
416         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
417         (qcopy_file_preserving): New declaration.
418         * lib/copy-file.c (qcopy_file_preserving): Renamed from
419         copy_file_preserving. Change return type to 'int'. Don't emit an error
420         message here.
421         (copy_file_preserving): New function.
422         * tests/test-copy-file.c: Include <stdlib.h>.
423         (main): Test qcopy_file_preserving if the environment variable
424         NO_STDERR_OUTPUT is set.
425         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
426         with NO_STDERR_OUTPUT
427         * tests/test-copy-file-2.sh: Likewise.
428
429 2012-01-10  Bruno Haible  <bruno@clisp.org>
430
431         copy-file: Use 'quote' module consistently.
432         * lib/copy-file.c (copy_file_preserving): Use quote().
433
434         copy-file: Refactor.
435         * lib/copy-file.c: Include quote.h.
436         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
437         message here.
438         * modules/copy-file (Depends-on): Add quote.
439
440         acl: Export qcopy_acl.
441         * lib/acl.h (qcopy_acl): New declaration.
442         * lib/copy-acl.c (qcopy_acl): Make non-static.
443
444         acl: Rename a local variable.
445         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
446
447         acl: Align return values of copy_acl and qcopy_acl.
448         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
449         maybe < -1.
450
451 2012-01-11  Eric Blake  <eblake@redhat.com>
452
453         strptime: silence gcc warnings
454         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
455         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
456         Reported by Daniel P. Berrange.
457
458         inet_ntop: silence gcc warning
459         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
460         Reported by Daniel P. Berrange.
461
462 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
463
464         getloadavg test: skip the test on GNU/Linux without /proc mounted
465         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
466         file.  When /proc is not mounted, it always fails with ENOENT.
467         * tests/test-getloadavg.c (main): Treat ENOENT return code from
468         getloadavg(3) the same way as ENOSYS and ENOTSUP.
469
470 2012-01-10  Bruno Haible  <bruno@clisp.org>
471
472         regex: Avoid link error on MSVC 9.
473         * modules/regex (Depends-on): Add wctype.
474
475 2012-01-10  Bruno Haible  <bruno@clisp.org>
476
477         doc: Mention --with-tests option.
478         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
479         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
480         --with-tests.
481         Reported by Reuben Thomas.
482
483 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
484
485         users.txt: order package names lexicographically.
486         * users.txt: Order package names lexicographically.
487
488 2012-01-10  Jim Meyering  <meyering@redhat.com>
489
490         maint.mk: fix description in comment
491         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
492
493         ignore-value: remove deprecated ignore_ptr function
494         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
495         * NEWS: Note this.
496
497 2012-01-09  Jim Meyering  <meyering@redhat.com>
498
499         test-init.sh: avoid a subshell
500         * tests/test-init.sh: Remove protective subshell.
501         Suggested by Bernhard Voelker.  While a subshell is normally
502         required to protect against older shells (Solaris, FreeBSD) that
503         warn about a missing program before performing redirection, the
504         shell-selection tests performed by init.sh probably exclude any
505         offending shell.
506
507 2012-01-08  Bruno Haible  <bruno@clisp.org>
508
509         setlocale tests: Avoid test failure on Solaris 11 2011-11.
510         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
511         variable.
512
513 2012-01-08  Bruno Haible  <bruno@clisp.org>
514
515         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
516         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
517         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
518         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
519         macro.
520         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
521         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
522         * lib/spawn_faction_addopen.c: Add workaround implementation if
523         HAVE_WORKING_POSIX_SPAWN.
524         * modules/spawn (Makefile): Substitute
525         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
526         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
527         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
528         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
529         (Depends-on): Update conditions.
530         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
531         the Solaris 11 bug.
532
533 2012-01-08  Bruno Haible  <bruno@clisp.org>
534
535         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
536         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
537         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
538         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
539         macro.
540         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
541         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
542         * lib/spawn_faction_adddup2.c: Add workaround implementation if
543         HAVE_WORKING_POSIX_SPAWN.
544         * modules/spawn (Makefile): Substitute
545         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
546         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
547         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
548         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
549         (Depends-on): Update conditions.
550         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
551         the Solaris 11 bug.
552
553 2012-01-08  Bruno Haible  <bruno@clisp.org>
554
555         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
556         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
557         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
558         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
559         HAVE_WORKING_POSIX_SPAWN.
560         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
561         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
562         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
563         * lib/spawn_faction_addclose.c: Add workaround implementation if
564         HAVE_WORKING_POSIX_SPAWN.
565         * modules/spawn (Makefile): Substitute
566         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
567         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
568         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
569         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
570         (Depends-on): Update conditions.
571         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
572         the Solaris 11 bug.
573
574 2012-01-08  Bruno Haible  <bruno@clisp.org>
575
576         doc: Update for Solaris 11 2011-11.
577         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
578         * m4/printf.m4: Update comments.
579
580 2012-01-08  Bruno Haible  <bruno@clisp.org>
581
582         mktime: Avoid compilation error on Solaris 11.
583         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
584
585 2012-01-08  Bruno Haible  <bruno@clisp.org>
586
587         doc: Small fix.
588         * doc/posix-headers/nl_types.texi: Correct platforms list.
589
590 2012-01-08  Simon Josefsson  <simon@josefsson.org>
591
592         Add lgpl-3.0 module.
593         * MODULES.html.sh (Support for building documentation): Add
594         lgpl-3.0.
595         * modules/lgpl-3.0: New file.
596
597 2012-01-08  Jim Meyering  <meyering@redhat.com>
598
599         select.c: indent with spaces, not TABs
600         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
601
602 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
603
604         quotearg: do not use grave accent for left quote
605         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
606         locale_quoting_style.
607         (quotearg_buffer_restyled): Fix example.
608         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
609
610 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
611
612         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
613         Most programs do not have translation catalogs for English and much
614         less separate catalogs for British and American English.  Drop the
615         suggestion to translators about these two, and provide it
616         automatically for Unicode locales.  Like most programs, even those
617         using American English, we use single quotation marks.  This conflicts
618         with the American typographic convention, but works better when you
619         cite the entire error message within double quotes.  It also tries not
620         to clash with established practice and with what non-gnulib programs
621         will usually do.
622         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
623         using an UTF-8 or GB-18030 locale.  The list of other locales with
624         quotes was provided by Bruno Haible.
625         (quotearg_buffer_restyled): Adjust instructions to translators.
626         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
627         text, since this would be wrong when using Unicode.
628         * modules/quotearg: Depend on c-strcaseeq.
629
630 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
631
632         quotearg: fix Wikipedia link
633         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
634
635 2012-01-07  Simon Josefsson  <simon@josefsson.org>
636
637         Fix for mingw with MSVC9.
638         * m4/ld-version-script.m4: Check that compiler rejects version
639         scripts with syntax errors.  Reported by Bruno Haible
640         <bruno@clisp.org>.
641
642 2012-01-06  Bruno Haible  <bruno@clisp.org>
643
644         Talk about "native Windows API", not "Woe32".
645         * lib/accept4.c: Update comments to mention native Windows.
646         * lib/execute.c: Likewise.
647         * lib/fatal-signal.c: Likewise.
648         * lib/localcharset.c: Likewise.
649         * lib/nanosleep.c: Likewise.
650         * lib/nl_langinfo.c: Likewise.
651         * lib/pclose.c: Likewise.
652         * lib/pipe-filter-gi.c: Likewise.
653         * lib/pipe-filter-ii.c: Likewise.
654         * lib/pipe.c: Likewise.
655         * lib/pipe2.c: Likewise.
656         * lib/popen.c: Likewise.
657         * lib/progreloc.c: Likewise.
658         * lib/relocatable.c: Likewise.
659         * lib/sigaction.c: Likewise.
660         * lib/sigprocmask.c: Likewise.
661         * lib/spawn-pipe.h: Likewise.
662         * lib/spawn-pipe.c: Likewise.
663         * lib/spawni.c: Likewise.
664         * lib/stat-time.h: Likewise.
665         * lib/w32spawn.h: Likewise.
666         * tests/test-isatty.c: Likewise.
667         * lib/config.charset: More comments.
668         * doc/gnulib-intro.texi: Mention native Windows.
669         * doc/posix-functions/_Exit_C99.texi: Likewise.
670         * doc/posix-headers/fcntl.texi: Likewise.
671
672 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
673
674         argp: Avoid crash if translator uses % characters in a translation.
675         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
676         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
677
678 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
679
680         doc: C11 and C++11 are now official
681         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
682         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
683         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
684         * modules/stdalign:
685         Replace references to draft C1X to C11, and to draft C++0X to C++11.
686
687 2012-01-06  Bruno Haible  <bruno@clisp.org>
688
689         uc-is-grapheme-break tests: Tweak.
690         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
691         message.
692
693 2012-01-06  Bruno Haible  <bruno@clisp.org>
694
695         test-init.sh: correct the test for diff -u
696         * tests/test-init.sh: Also redirect stdout to /dev/null.
697
698 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
699
700         Use ', not `, for quoting output.
701         * build-aux/announce-gen (usage, sizes, print_news_deltas)
702         (print_changelog_deltas, get_tool_versions, main program):
703         * build-aux/git-version-gen:
704         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
705         * build-aux/move-if-change (help):
706         * build-aux/useless-if-before-free (usage, main program):
707         * check-module (parse_module_file, usage)
708         (find_included_lib_files, check_module):
709         * lib/argmatch.c (main) [TEST]:
710         * lib/argp-help.c (_help):
711         * lib/getopt1.c (main) [TEST]:
712         * lib/git-merge-changelog.c (usage):
713         * lib/xstrtol-error.c (xstrtol_error):
714         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
715         * m4/argz.m4 (gl_FUNC_ARGZ):
716         * m4/bison.m4 (gl_BISON):
717         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
718         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
719         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
720         * m4/fpending.m4 (gl_PREREQ_FPENDING):
721         * m4/gc-random.m4 (gl_GC_RANDOM):
722         * m4/intl.m4 (gt_CHECK_DECL):
723         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
724         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
725         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
726         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
727         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
728         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
729         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
730         * tests/test-dirname.c (main):
731         * tests/test-getpass.c (main):
732         * tests/test-iconvme.c (main):
733         * tests/test-parse-datetime.c (LOG):
734         * tests/test-xstrtoimax.sh:
735         * tests/test-xstrtol.sh:
736         * tests/test-xstrtoll.sh:
737         * tests/test-xstrtoumax.sh:
738         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
739         * top/GNUmakefile (abort-due-to-no-makefile):
740         Quote 'like this', not `like this', as per the recent change to
741         the GNU coding standards.
742
743 2012-01-05  Bruno Haible  <bruno@clisp.org>
744
745         strtoimax: Don't force a replacement on systems where intmax_t is int.
746         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
747         'intmax_t' is not larger than 'int'.
748         Reported by Pádraig Brady <P@draigBrady.com>.
749
750 2012-01-05  Bruno Haible  <bruno@clisp.org>
751
752         doc: Mention NetBSD bugs.
753         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
754         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
755
756 2012-01-05  Bruno Haible  <bruno@clisp.org>
757
758         strtoumax tests: Enhance tests.
759         * tests/test-strtoumax.c (main): Add tests for large values.
760
761 2012-01-05  Bruno Haible  <bruno@clisp.org>
762
763         strtoimax: Work around AIX 5.1 bug.
764         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
765         definition.
766         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
767         Set HAVE_STRTOIMAX.
768         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
769         REPLACE_STRTOIMAX.
770         * modules/inttypes-incomplete (Makefile.am): Substitute
771         REPLACE_STRTOIMAX.
772         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
773         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
774         (Depends-on): Update conditions.
775         * tests/test-strtoimax.c (main): Add tests for large values.
776         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
777
778 2012-01-05  Bruno Haible  <bruno@clisp.org>
779
780         inttypes: Modernize.
781         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
782         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
783         (Makefile.am): Update inttypes.h rule.
784
785 2012-01-05  Jim Meyering  <meyering@redhat.com>
786
787         init.sh: don't waste a subshell just to redirect stderr
788         * tests/init.sh: In testing for diff -u and diff -c, use a
789         stderr-redirecting exec inside `...` rather than a subshell.
790
791         test-init.sh: avoid failure on HP-UX 11.00
792         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
793         resolves to diff -c or cmp.  Reported by Bruno Haible.
794
795 2012-01-05  Bruno Haible  <bruno@clisp.org>
796
797         Tests for module 'strtoull'.
798         * modules/strtoull-tests: New file.
799         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
800
801 2012-01-05  Bruno Haible  <bruno@clisp.org>
802
803         Tests for module 'strtoll'.
804         * modules/strtoll-tests: New file.
805         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
806
807 2012-01-05  Bruno Haible  <bruno@clisp.org>
808
809         Tests for module 'strtoul'.
810         * modules/strtoul-tests: New file.
811         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
812
813 2012-01-05  Bruno Haible  <bruno@clisp.org>
814
815         Tests for module 'strtol'.
816         * modules/strtol-tests: New file.
817         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
818
819 2012-01-04  Jim Meyering  <meyering@redhat.com>
820
821         test-init.sh: accommodate Solaris 5.10's different diff -u output
822         * tests/test-init.sh: Also exempt @@ lines from the comparison
823         of diff output, since Solaris 5.10 and GNU diff formats differ.
824         Reported by Stefano Lattarini.
825
826 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
827
828         test-posixtm: don't assume signed integer wraparound
829         * tests/test-posixtm.c (main): Don't assume wraparound semantics
830         after signed integer overflow.  Inspired by (though it may not
831         fix) Bruno Haible's bug report in
832         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
833
834         Spell out "Windows 9x" and "Windows XP".
835         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
836         "Windows 9x" and "WinXP" with "Windows XP".
837
838 2012-01-04  Jim Meyering  <meyering@redhat.com>
839
840         test-vc-list-files-cvs.sh: remove obsolete comment
841         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
842         double exit.  Now that's all encapsulated via skip_ and Exit.
843
844 2012-01-04  Bruno Haible  <bruno@clisp.org>
845
846         Talk about "native Windows API", not "Win32".
847         * lib/classpath.c: Update comments to mention native Windows.
848         * lib/csharpexec.c: Likewise.
849         * lib/dup2.c: Likewise.
850         * lib/error.c: Likewise.
851         * lib/fcntl.c: Likewise.
852         * lib/filename.h: Likewise.
853         * lib/findprog.c: Likewise.
854         * lib/get-rusage-as.c: Likewise.
855         * lib/get-rusage-data.c: Likewise.
856         * lib/getpagesize.c: Likewise.
857         * lib/javaexec.c: Likewise.
858         * lib/msvc-inval.c: Likewise.
859         * lib/msvc-nothrow.c: Likewise.
860         * lib/nanosleep.c: Likewise.
861         * lib/nonblocking.c: Likewise.
862         * lib/printf-parse.c: Likewise.
863         * lib/setlocale.c: Likewise.
864         * lib/sigaction.c: Likewise.
865         * lib/strerror_r.c: Likewise.
866         * lib/tmpdir.c: Likewise.
867         * lib/vasnprintf.c: Likewise.
868         * lib/w32spawn.h: Likewise.
869         * lib/waitpid.c: Likewise.
870         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
871         * m4/locale-ar.m4: Likewise.
872         * m4/locale-fr.m4: Likewise.
873         * m4/locale-ja.m4: Likewise.
874         * m4/locale-tr.m4: Likewise.
875         * m4/locale-zh.m4: Likewise.
876         * m4/printf.m4: Likewise.
877         * tests/test-cloexec.c: Likewise.
878         * tests/test-copy-acl.sh: Likewise.
879         * tests/test-copy-file.sh: Likewise.
880         * tests/test-file-has-acl.sh: Likewise.
881         * tests/test-set-mode-acl.sh: Likewise.
882         * tests/test-dup-safer.c: Likewise.
883         * tests/test-dup2.c: Likewise.
884         * tests/test-dup3.c: Likewise.
885         * tests/test-fcntl.c: Likewise.
886         * tests/test-nonblocking-pipe.h: Likewise.
887         * tests/test-nonblocking-socket.h: Likewise.
888         * tests/test-pipe.c: Likewise.
889         * tests/test-pipe2.c: Likewise.
890         * tests/test-spawn-pipe-child.c: Likewise.
891         * doc/acl-resources.txt: Likewise.
892         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
893         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
894         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
895         * lib/localcharset.c: Update comments to mention native Windows.
896         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
897         * lib/localename.c: Likewise.
898         * lib/progreloc.c: Likewise.
899         * lib/relocatable.c: Likewise.
900         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
901         (windows_compute_revents): Renamed from win32_compute_revents.
902         (windows_compute_revents_socket): Renamed from
903         win32_compute_revents_socket.
904         * lib/select.c: Update comments to mention native Windows.
905         (windows_poll_handle): Renamed from win32_poll_handle.
906         * m4/threadlib.m4: Update comments to mention native Windows.
907         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
908         --enable-threads=windows instead of --enable-threads=win32. Set
909         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
910         * lib/glthread/lock.h: Update comments to mention native Windows.
911         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
912         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
913         USE_WIN32_THREADS.
914         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
915         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
916         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
917         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
918         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
919         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
920         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
921         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
922         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
923         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
924         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
925         * tests/test-tls.c: Likewise.
926         Rationale:
927         Microsoft renamed the "Win32 API" to "Windows API", as it is available
928         on both 32-bit and 64-bit Windows systems.
929         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
930         line of distinction is between "native Windows" on one side and Unix/
931         POSIX systems on the other side. More details in
932         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
933         Suggested by Paul Eggert.
934
935 2012-01-03  Bruno Haible  <bruno@clisp.org>
936
937         isatty: Support for MSVC 9.
938         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
939         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
940         (_isatty_nothrow): New function.
941         (isatty): Use it instead of _isatty.
942         (IsConsoleHandle): Add comment, from Paolo Bonzini.
943         * lib/poll.c (IsConsoleHandle): Likewise.
944         * lib/select.c (IsConsoleHandle): Likewise.
945         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
946         (gl_PREREQ_ISATTY): New macro.
947         * modules/isatty (Depends-on): Add msvc-inval.
948         (configure.ac): Invoke gl_PREREQ_ISATTY.
949
950 2012-01-03  Jim Meyering  <meyering@redhat.com>
951
952         maint.mk: remove temporary transition aid from over 1.5 years ago
953         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
954         purpose was to aid in the transition (avoiding silent malfunction)
955         from that old name to the new _sc_search_regexp.  This shim was
956         added by commit 219c504b.
957
958         init.sh: do not try to accommodate compare arguments starting with "-"
959         * tests/init.sh (compare_dev_null_): Do not try to accommodate
960         compare arguments that start with "-".  Besides, we do not worry
961         about this when invoking diff or cmp; why start now with sed?
962         Using "--" to separate options from argument would trigger sed
963         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
964         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
965
966 2012-01-02  Bruno Haible  <bruno@clisp.org>
967
968         Enhance tests for module 'isatty'.
969         * modules/isatty-tests (Depends-on): Add pipe-posix.
970         * tests/test-isatty.c: Include <fcntl.h>.
971         (DEV_NULL): New macro.
972         (main): Test the resut of isatty() also on regular files, pipes, and
973         /dev/null.
974
975         New module 'isatty'.
976         * lib/unistd.in.h (isatty): New declaration.
977         * lib/isatty.c: New file, based on an idea of
978         Bastien Roucariès <roucaries.bastien@gmail.com>.
979         * m4/isatty.m4: New file.
980         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
981         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
982         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
983         REPLACE_ISATTY.
984         * modules/isatty: New file.
985         * doc/posix-functions/isatty.texi: Mention the new module.
986         Suggested by Paolo Bonzini.
987
988 2012-01-02  Bruno Haible  <bruno@clisp.org>
989
990         canonicalize: Tweak 2011-12-29 commit.
991         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
992         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
993
994 2012-01-02  Jim Meyering  <meyering@redhat.com>
995
996         gitlog-to-changelog: describe input syntax in --help output
997         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
998
999         gitlog-to-changelog: fix typo in --help: show backslash before email @
1000         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
1001         in sources, but not in actual output.
1002
1003 2011-12-30  Jim Meyering  <meyering@redhat.com>
1004
1005         gitlog-to-changelog: don't malfunction when name contains %-directive
1006         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
1007         in a name string cause trouble.  E.g., with a user name of "%s",
1008         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
1009
1010 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
1011
1012         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
1013         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
1014         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
1015         the "  (tiny change)" notation that is appended to the standard
1016         ChangeLog "date  name  email" header line.
1017
1018 2012-01-01  Jim Meyering  <meyering@redhat.com>
1019
1020         test-framework-sh: init.sh: fix "make dist" failure
1021         When using gnulib-tool's --with-tests option and any module that
1022         depends on test-framework-sh, "make dist" would fail due to the
1023         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
1024         in the gltests directory, and not in the gllib/ directory.
1025         One way to work around that is to move the EXTRA_DIST += init.sh
1026         from the primary module to the -tests one:
1027         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
1028         * modules/test-framework-sh (Makefile.am): ...not here.
1029         Reported by Tom G. Christensen in
1030         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
1031
1032         version-etc: update copyright year reported by --version
1033         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
1034
1035 2011-12-31  Pádraig Brady  <P@draigBrady.com>
1036
1037         canonicalize: only stat() if required
1038         * lib/canonicalize.c (canonicalize_filename_mode):
1039         Avoid calling l?stat() when both CAN_MISSING,
1040         and CAN_NOLINKS are set, as we neither need
1041         to resolve symlinks or test component existence.
1042
1043 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
1044
1045         doc: cover st_ino issues once; add OpenVMS etc.
1046         * doc/posix-functions/stat.texi (stat):
1047         * doc/posix-functions/lstat.texi (lstat):
1048         * doc/posix-functions/fstatat.texi (fstatat):
1049         * doc/posix-functions/fstat.texi (fstat):
1050         Move general 'struct stat' stuff to sys_stat.texi,
1051         leaving behind a pointer.
1052         * doc/posix-headers/sys_stat.texi (sys/stat.h):
1053         Merge duplicate info about 'struct stat' problems into here.
1054         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
1055         and suggest partial workarounds.
1056
1057         same-inode: port to OpenVMS
1058         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
1059         three st_ino values.
1060
1061 2011-12-30  Pádraig Brady  <P@draigBrady.com>
1062
1063         canonicalize: fix references to stat() and lstat()
1064         * lib/canonicalize.c (canonicalize_filename_mode):
1065         Ensure references always resolve to a replacement
1066         function if required (even via a macro).
1067
1068 2011-12-30  Jim Meyering  <meyering@redhat.com>
1069
1070         gitlog-to-changelog: remove a little duplication
1071         * build-aux/gitlog-to-changelog (main): Grep @lines once,
1072         rather than twice.
1073
1074 2011-12-29  Pádraig Brady  <P@draigBrady.com>
1075
1076         canonicalize: add support for not resolving symlinks
1077         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
1078         indicate we don't want to follow symlinks.  Also
1079         provide CAN_MODE_MASK to aid setting these existing
1080         mutually exclusive values.
1081         * lib/canonicalize.c (canonicalize_filename_mode):
1082         Extract the flags from can_mode parameter, which
1083         are currently just used to select between stat()
1084         and lstat().  Also ensure that mutually exclusive
1085         values are flagged immediately as invalid.
1086         * tests/test-canonicalize.c: Verify symlinks are
1087         not followed, and that invalid flag combinations
1088         are diagnosed.
1089
1090 2011-12-25  Jim Meyering  <meyering@redhat.com>
1091
1092         gitlog-to-changelog: do not clump multi-paragraph entries
1093         Identical header lines (date,name,email+coauthors) are suppressed,
1094         thus putting all entries with those same characteristics under
1095         a single header.  However, when a log entry consists of two or
1096         more paragraphs, it may not be clear where it starts and ends.
1097         This change makes it so that such an entry is always separated
1098         from others by a header line, even when that header would
1099         otherwise be suppressed.
1100         * build-aux/gitlog-to-changelog: Implement the above.
1101         Inspired by a related request from Stefano Lattarini in
1102         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
1103
1104 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1105
1106         announce-gen: fix `cmd' typo in diagnostic
1107         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
1108         diagnostic: a missing '$' meant that the command was not output.
1109
1110 2011-12-23  Jim Meyering  <meyering@redhat.com>
1111
1112         test-framework-sh: distribute init.sh
1113         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
1114         Otherwise, "make -C gnulib-tests check" (at least in grep) would
1115         fail due to the lack of init.sh.
1116
1117         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
1118         * modules/atexit-tests: Rather than listing tests/init.sh,
1119         now that there's a module for it, simply depend on that new module.
1120         * modules/closein-tests: Likewise.
1121         * modules/exclude-tests: Likewise.
1122         * modules/getcwd-tests: Likewise.
1123         * modules/perror-tests: Likewise.
1124         * modules/pread-tests: Likewise.
1125         * modules/pwrite-tests: Likewise.
1126         * modules/vc-list-files-tests: Likewise.
1127         * modules/verify-tests: Likewise.
1128         * modules/xalloc-die-tests: Likewise.
1129         * modules/xstrtoimax-tests: Likewise.
1130         * modules/xstrtol-tests: Likewise.
1131         * modules/xstrtoll-tests: Likewise.
1132         * modules/xstrtoumax-tests: Likewise.
1133         * modules/yesno-tests: Likewise.
1134
1135 2011-12-22  Jim Meyering  <meyering@redhat.com>
1136
1137         test-framework-sh: add minimal tests of init.sh's compare function
1138         * modules/test-framework-sh-tests: New file.
1139         * tests/test-init.sh: New file.
1140
1141         test-framework-sh: new module
1142         * modules/test-framework-sh: New file.
1143         * MODULES.html.sh (Support for maintaining and releasing projects):
1144         List it.
1145
1146         init.sh: do not emit simulated diff output to stderr
1147         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
1148
1149 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
1150
1151         .gitignore: ignore gnulib.dvi and regex.info
1152         * doc/.gitignore:add gnulib.dvi and regex.info
1153
1154 2011-12-22  Jim Meyering  <meyering@redhat.com>
1155
1156         init.sh: correct previous change
1157         * tests/init.sh (compare): My previous change was wrong.
1158         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
1159
1160         init.sh: avoid unwarranted test failure when using "set -e"
1161         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
1162         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
1163         a use like "compare exp out" would get evoke an unconditional failure.
1164
1165 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
1166
1167         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
1168         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
1169         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
1170         autoreconf that did not.
1171         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
1172         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1173
1174 2011-12-17  Jim Meyering  <meyering@redhat.com>
1175
1176         bootstrap: remove some now-unneeded code
1177         This script arose back when gnulib-tool was young.
1178         Since then, it has seen improvements that render much of this
1179         script unnecessary.  In particular, it can now make symlinks
1180         to the files it uses.  Also, I no longer see as much value in
1181         marking files as read-only via comments.
1182         If you relied on the symlink-creation feature of the preceding
1183         version of this script, you can get most of that functionality
1184         by adding the --symlink option to the definition of
1185         gnulib_tool_option_extras in your bootstrap.conf file.
1186         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
1187         Run autopoint and libtoolize *before* gnulib-tool.
1188         After it, run an abbreviated autoreconf, rather than a loop around
1189         all tools.
1190         (slirp, bt_mark_as_generated): Remove functions.
1191
1192 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1193
1194         ftoastr: fix typo
1195         * lib/ftoastr.h: Fix misspelling in comment.
1196
1197 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
1198
1199         * top/README-release: fix punctuation.
1200
1201 2011-12-17  Jim Meyering  <meyering@redhat.com>
1202
1203         bootstrap: correct the recent buildreq change
1204         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
1205         had no effect.
1206         * build-aux/bootstrap (buildreq): Bracket each search term with
1207         "*...*", so that the shell "case" statement works as intended.
1208         Add comments.
1209
1210 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
1211
1212         build: let bootstrap resort to wget when downloading .po files
1213         * build-aux/bootstrap (download_po_files): Fallback to wget when
1214         downloading the .po files via rsync fails.  This is necessary to
1215         bootstrap from behind a strict firewall.
1216
1217 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1218
1219         stdint: don't assume C++11 when compiling with g++
1220         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
1221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
1222         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
1223         work also in C++ before C++11, as that improperly inhibits
1224         generating a substitute stdint.h for that case.
1225
1226 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1227
1228         alloca: protect comment from gnulib-tool
1229         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
1230         that gnulib-tool doesn't think it's a license, and munge it to
1231         say "GCC version 3".
1232
1233 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
1234
1235         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
1236         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
1237         $(abs_top_builddir) instead of $(top_builddir).
1238
1239 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
1240
1241         strftime-tests: also test nanoseconds
1242         * tests/test-strftime.c (T): Add a test of %N.
1243
1244 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1245
1246         inttypes, stdint: add C++11 support
1247         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
1248         when including inttypes.h and stdint.h.  Support this change to
1249         the standard.
1250         * doc/posix-headers/inttypes.texi (inttypes.h):
1251         * doc/posix-headers/stdint.texi (stdint.h): Document this.
1252         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
1253         Define if not defined already, for the benefit of pre-C++11 hosts.
1254         Define the standard format macros (e.g., PRId8) always.
1255         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
1256         Likewise, if __cpluspus.  Define the standard constant and limit
1257         macros (e.g., INT8_C, INT8_MAX) always.
1258         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
1259         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
1260         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
1261         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
1262         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
1263         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
1264         Likewise.
1265
1266 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1267
1268         nonblocking tests: Fix test failure on Linux/PPC.
1269         Suggested by Prerna Saxena in
1270         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
1271         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
1272         Set to 1100000.
1273
1274 2011-12-12  Jim Meyering  <meyering@redhat.com>
1275
1276         argmatch: don't hard-code `' when listing valid option arguments
1277         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
1278         use the quote function to add quotes.  Use fputs rather than
1279         fprintf for the format string with no format directive.
1280
1281 2011-12-07  Eric Blake  <eblake@redhat.com>
1282
1283         bootstrap: detect tools required by gnulib-tool
1284         * build-aux/bootstrap (buildreq): Provide minimum implicit
1285         dependencies.
1286         * DEPENDENCIES: Mention patch as a prereq.
1287
1288 2011-12-04  Bruno Haible  <bruno@clisp.org>
1289
1290         sethostname: Port to Windows platforms.
1291         * lib/sethostname.c: Provide an alternate implementation for Windows
1292         platforms.
1293         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
1294         (main): Skip the test if sethostname() fails with EPERM. On Windows
1295         platforms, don't check the result of gethostname().
1296
1297 2011-12-04  Bruno Haible  <bruno@clisp.org>
1298             Jim Meyering  <meyering@redhat.com>
1299
1300         tests: Avoid spurious error message on platforms without mktemp program.
1301         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
1302
1303 2011-12-04  Bruno Haible  <bruno@clisp.org>
1304
1305         sethostname: Fix documentation.
1306         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
1307         "not fixed" section.
1308
1309 2011-12-03  Bruno Haible  <bruno@clisp.org>
1310
1311         gnulib-tool: Verify that the License field is present and non-empty.
1312         * gnulib-tool (func_get_license_raw): New function, extracted from
1313         func_get_license.
1314         (func_get_license): Use it. Warn if the module is not a test module and
1315         has no license.
1316         Suggested by Jim Meyering.
1317
1318 2011-12-03  Bruno Haible  <bruno@clisp.org>
1319
1320         sethostname tests: Fix link error on mingw.
1321         * tests/test-sethostname1.c: New file, extracted from
1322         tests/test-sethostname.c.
1323         * tests/test-sethostname2.c: New file, extracted from
1324         tests/test-sethostname.c.
1325         * tests/test-sethostname.c: Remove file.
1326         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
1327         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
1328         (Depends-on): Add gethostname.
1329         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
1330         Link the latter with $(GETHOSTNAME_LIB).
1331
1332         sethostname tests: Fix compilation error on mingw.
1333         * tests/test-sethostname.c: Don't include <sys/types.h>.
1334         (geteuid): Use a dummy value without uid_t.
1335         * modules/sethostname-tests (Depends-on): Remove sys_types.
1336
1337         sethostname tests: Avoid a gcc warning.
1338         * tests/test-sethostname.c (main): Remove an unused variable.
1339
1340         Tweak last commit.
1341         * modules/sethostname-tests (Files): Sort by decreasing importance.
1342         (configure.ac): Check for geteuid.
1343         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
1344         the test when there's nothing to test. Drop an unnecessary cast.
1345         Improve an error message. Verify that the final sethostname() call
1346         succeeds.
1347
1348 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1349
1350         Add a test suite for the sethostname module.
1351         * modules/sethostname-tests: New file.  A test program
1352         for the sethostname module.
1353         * tests/test-sethostname.c: Likewise.
1354
1355 2011-12-03  Bruno Haible  <bruno@clisp.org>
1356
1357         Tweak last commit.
1358         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
1359         Fix preprocessor directives indentation. Fix typos.
1360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
1361         * modules/unistd (Makefile): Likewise.
1362
1363 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1364
1365         Integrate the sethostname module into unistd.
1366         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
1367         into the unistd.h header.
1368         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
1369         preprocessor directives.
1370         * modules/unistd: Setup the Makefile substitutions of the
1371         SETHOSTNAME preprocessor directives.
1372
1373 2011-12-03  Bruno Haible  <bruno@clisp.org>
1374
1375         Tweak last commit.
1376         * lib/sethostname.c: Don't include <string.h>.
1377         (sethostname): No need to copy the argument string to the stack. Don't
1378         call clearerr. Preserve errno when fprintf failed.
1379         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
1380         Don't invoke AC_REPLACE_FUNCS.
1381         * modules/sethostname (Link): Remove empty section.
1382         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
1383         failure problem.
1384
1385 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1386
1387         New module 'sethostname'.
1388         * lib/sethostname.c (sethostname): New file.  Provide sethostname
1389         for systems that lack it.
1390         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
1391         sethostname declaration and function.
1392         * modules/sethostname: New file.  Define the sethostname module.
1393
1394 2011-12-03  Bruno Haible  <bruno@clisp.org>
1395
1396         Tweak last commit.
1397         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
1398
1399 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1400
1401         Split the HOST_NAME_MAX detection into a separate m4 macro.
1402         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
1403         macro so it can be used by the pending sethostname module.
1404
1405 2011-12-03  Bruno Haible  <bruno@clisp.org>
1406
1407         Fix module descriptions syntax.
1408         * modules/argv-iter (License): Fix syntax.
1409         * modules/di-set (License): Likewise.
1410         * modules/ino-map (License): Likewise.
1411         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
1412
1413 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1414
1415         stdalign: port to Clang 3.0
1416         Problem reported by Simon Josefsson in
1417         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
1418         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
1419         which has <stdalign.h> but which does not define alignof.
1420         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
1421
1422 2011-12-01  Eric Blake  <eblake@redhat.com>
1423
1424         mktempd: silence dd usage
1425         * build-aux/mktempd (rand_bytes): Silence dd.
1426
1427 2011-11-30  Simon Josefsson  <simon@josefsson.org>
1428
1429         manywarnings: Don't mention gcc version in docstring.
1430         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
1431         Jim Meyering <meyering@redhat.com>.
1432
1433 2011-11-30  Jim Meyering  <meyering@redhat.com>
1434
1435         hash: mark a few floating point constants with "f" suffix
1436         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
1437         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
1438         floating point constants with "f", since they're destined to be
1439         saved/used as "float"s.
1440
1441 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
1442
1443         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
1444         * tests/test-float.c (test_long_double): Correct and re-enable the
1445         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
1446
1447 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
1448
1449         Avoid subtracting two pointers that don't point into the same block.
1450         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
1451         only pointers into the same memory block are subtracted. We cannot
1452         assume that sizeof (ptrdiff_t) == sizeof (void *).
1453
1454 2011-11-29  Eric Blake  <eblake@redhat.com>
1455
1456         maint.mk: add syntax check for use of compare from init.sh
1457         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
1458         moved here from coreutils.
1459
1460         manywarnings: drop -Wunsuffixed-float-constants
1461         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
1462         '1.0D', which is the only way to silence this warning for 'double'.
1463
1464 2011-11-29  Jim Meyering  <meyering@redhat.com>
1465
1466         hash: mark compute_bucket_size with the pure attribute
1467         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
1468
1469         quotearg, propername: correct pragma guard expression
1470         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
1471         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
1472
1473 2011-11-28  Jim Meyering  <meyering@redhat.com>
1474
1475         propername: do not mark proper_name with the const attribute
1476         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
1477         since it examines data pointed to by its parameter.
1478         * lib/propername.c (proper_name): Instead, add a pragma to suppress
1479         the suggestion from -Wsuggest-attribute=const.
1480
1481         propername: mark one more function as const
1482         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
1483
1484 2011-11-27  Jim Meyering  <meyering@redhat.com>
1485
1486         mark functions with const and pure attributes
1487
1488         Mark functions per suggestions from gcc-4.6 when using these options:
1489         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
1490         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
1491         Follow these guidelines: when possible, apply the attribute to
1492         an extern declaration, not to its definition.  Apply it to the
1493         definition only when the definition is static.
1494         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
1495         * lib/argv-iter.h (argv_iter_n_args): Likewise.
1496         * lib/base64.h (isbase64): Likewise.
1497         * lib/basename-lgpl.c (last_component, base_len): Likewise.
1498         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
1499         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
1500         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
1501         (c_tolower, c_toupper): Likewise.
1502         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
1503         * lib/chdir-long.c (find_non_slash): Likewise.
1504         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
1505         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
1506         * lib/file-type.h (file_type): Likewise.
1507         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
1508         * lib/filevercmp.c (verrevcmp): Likewise.
1509         * lib/freadahead.h (freadahead): Likewise.
1510         * lib/fts.c (fts_maxarglen): Likewise.
1511         * lib/hash-pjw.h (hash_pjw): Likewise.
1512         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
1513         * lib/hash.c (is_prime, next_prime): Likewise.
1514         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
1515         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
1516         (hash_table_ok, hash_get_first, hash_string): Likewise.
1517         (compute_bucket_size): Likewise.
1518         * lib/i-ring.h (i_ring_empty): Likewise.
1519         * lib/isnan.c (isnanl): Likewise.
1520         * lib/math.h (isnanl, rpl_isnanl): Likewise.
1521         * lib/memcasecmp.h (memcasecmp): Likewise.
1522         * lib/memchr2.h (memchr2): Likewise.
1523         * lib/memcmp2.h (memcmp2): Likewise.
1524         * lib/parse-datetime.y (lookup_zone): Likewise.
1525         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
1526         [!WINDOWS_SOCKETS]: Likewise.
1527         * lib/strnlen1.h (strnlen1): Likewise.
1528         * lib/uniwidth.in.h (uc_width): Likewise.
1529         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
1530         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
1531         (quoting_options_from_style): Add a comment.
1532         * lib/propername.h (proper_name): Add a comment.
1533
1534 2011-11-27  Bruno Haible  <bruno@clisp.org>
1535
1536         Remove unused macros from !_LIBC code in glibc-borrowed files.
1537         * lib/fnmatch.c (STRCOLL): Remove macro.
1538         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
1539         * lib/glob.c (__stat, __readdir64): Remove macros.
1540         * lib/tempname.c (__open64, __xstat64): Remove macros.
1541         Suggested by Paul Eggert.
1542
1543 2011-11-27  Bruno Haible  <bruno@clisp.org>
1544
1545         getcwd: Fix link error on MSVC 9.
1546         * modules/getcwd (Depends-on): Add readdir, rewinddir.
1547
1548 2011-11-27  Bruno Haible  <bruno@clisp.org>
1549
1550         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
1551         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
1552         HAVE_OPENDIR is 0.
1553         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
1554         HAVE_CLOSEDIR is 0.
1555         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
1556         is 0.
1557         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
1558
1559 2011-11-27  Bruno Haible  <bruno@clisp.org>
1560
1561         getcwd: Fix bug from 2011-08-17.
1562         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
1563         platforms that need it.
1564         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
1565         code of 4 to be a failure, not a success. This ensures that
1566         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
1567
1568 2011-11-27  Bruno Haible  <bruno@clisp.org>
1569
1570         binary-io tests: Avoid test failure on mingw when libtool is used.
1571         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
1572         Don't verify the size of t-bin-out1.tmp here.
1573         * tests/test-binary-io.sh: Verify it here.
1574         Reported by Simon Josefsson.
1575
1576 2011-11-26  Bruno Haible  <bruno@clisp.org>
1577
1578         Fix conflict between two instantiations of module 'unistd'.
1579         * gnulib-tool (func_emit_autoconf_snippet): Substitute
1580         ${include_guard_prefix} also in the autoconf snippet.
1581         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
1582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
1583         GNULIB_UNISTD_H_GETOPT.
1584         * modules/getopt-posix (configure.ac): Set the
1585         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
1586         * modules/getopt-gnu (configure.ac): Likewise.
1587         * modules/unistd (Makefile.am): Change the substitution value of
1588         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
1589         Reported by Simon Josefsson.
1590
1591 2011-11-25  Bruno Haible  <bruno@clisp.org>
1592
1593         pagealign_alloc: Doc and comments.
1594         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
1595         module.
1596         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
1597
1598 2011-11-25  Jim Meyering  <meyering@redhat.com>
1599
1600         test-update-copyright.sh: avoid false-positive failure
1601         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
1602         around false positive failure on Cygwin/Windows.  The latter was
1603         matching erroneously-created files with names like
1604         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
1605
1606 2011-11-25  Simon Josefsson  <simon@josefsson.org>
1607
1608         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
1609         * m4/valgrind-tests.m4: Check that the parameters that will be
1610         used works, not just a subset of them.  Reported by Bruno Haible
1611         <bruno@clisp.org>.
1612
1613 2011-11-24  Jim Meyering  <meyering@redhat.com>
1614
1615         test-stdalign.c: comment out long double tests
1616         * tests/test-stdalign.c: Don't try to reduce alignment of long double
1617         variables.  That provokes errors like this from gcc-4.7.0 20111124:
1618         error: '_Alignas' specifiers cannot reduce alignment of \
1619         'static_longdouble_alignas'.
1620
1621 2011-11-22  Jim Meyering  <meyering@redhat.com>
1622
1623         init.sh: make "compare /dev/null FILE" output more readable
1624         * tests/init.sh (compare_): Document the preferred order of arguments.
1625         (emit_diff_u_header_): New function.
1626         (compare_dev_null_): Emit a simulated diff, rather than just the
1627         contents of the unexpected file.  Suggestion from Bruno Haible.
1628
1629 2011-11-21  Jim Meyering  <meyering@redhat.com>
1630             Eric Blake  <eblake@redhat.com>
1631
1632         init.sh: work around OSF/1 5.1's mishandling of /dev/null
1633         * tests/init.sh: Make our compare function slightly more portable.
1634         Reported by Bruno Haible in
1635         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
1636
1637 2011-11-21  Simon Josefsson  <simon@josefsson.org>
1638
1639         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
1640         before using it, in code that ends up in config.h.
1641
1642 2011-11-20  Bruno Haible  <bruno@clisp.org>
1643
1644         getcwd: Work around getcwd bug on AIX 5..7.
1645         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
1646         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
1647         Use a different value for gl_cv_func_getcwd_path_max. Move the
1648         definition of HAVE_PARTLY_WORKING_GETCWD from here...
1649         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
1650         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
1651         Define HAVE_MINIMALLY_WORKING_GETCWD.
1652         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
1653         where it is not even minimally working, that is, on AIX.
1654         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
1655         m4/getcwd-path-max.m4.
1656         (main): Update exit code computation.
1657         * doc/posix-functions/getcwd.texi: Mention list of platforms where
1658         getcwd does not handle long file names.
1659
1660 2011-11-20  Bruno Haible  <bruno@clisp.org>
1661
1662         getcwd: Fix bug from 2009-09-10.
1663         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
1664         like "no".
1665
1666 2011-11-20  Simon Josefsson  <simon@josefsson.org>
1667
1668         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
1669
1670 2011-11-20  Bruno Haible  <bruno@clisp.org>
1671
1672         fma tests: Avoid shadowing local variables.
1673         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
1674         expected.
1675
1676 2011-11-20  Bruno Haible  <bruno@clisp.org>
1677
1678         copysignf tests: Fix.
1679         * tests/test-copysignf.c: Fix signature check.
1680
1681 2011-11-20  Bruno Haible  <bruno@clisp.org>
1682
1683         fma: Remove unused code.
1684         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
1685         unused macros.
1686
1687 2011-11-20  Bruno Haible  <bruno@clisp.org>
1688
1689         sethostname: Fix doc about AIX.
1690         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
1691         sethostname; it has it.
1692
1693         sethostname: Mention more portability problems.
1694         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
1695         problem.
1696         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1697
1698 2011-11-19  Bruno Haible  <bruno@clisp.org>
1699
1700         Depend on module fcntl-h when AT_FDCWD is used.
1701         * modules/utimens (Depends-on): Add fcntl-h.
1702         * modules/areadlinkat (Depends-on): Likewise.
1703         * modules/areadlinkat-with-size (Depends-on): Likewise.
1704         * modules/faccessat (Depends-on): Likewise.
1705         * modules/fchmodat (Depends-on): Likewise.
1706         * modules/fchownat (Depends-on): Likewise.
1707         * modules/getcwd (Depends-on): Likewise.
1708         * modules/mkdirat (Depends-on): Likewise.
1709         * modules/mkfifoat (Depends-on): Likewise.
1710         * modules/readlinkat (Depends-on): Likewise.
1711         * modules/symlinkat (Depends-on): Likewise.
1712         * modules/dup2-tests (Depends-on): Likewise.
1713         * modules/fdutimensat-tests (Depends-on): Likewise.
1714         * modules/futimens-tests (Depends-on): Likewise.
1715
1716 2011-11-19  Bruno Haible  <bruno@clisp.org>
1717
1718         euidaccess: Update a comment.
1719         * lib/euidaccess.c: Update comment about platforms with faccessat.
1720
1721 2011-11-19  Bruno Haible  <bruno@clisp.org>
1722
1723         openat: Fix file list.
1724         * modules/openat (Files): Remove lib/at-func.c.
1725
1726 2011-11-19  Bruno Haible  <bruno@clisp.org>
1727
1728         fstatat: Simplify.
1729         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
1730         gnulib should define rpl_fstatat, there is a
1731         "#define fstatat rpl_fstatat" in <sys/stat.h>.
1732
1733 2011-11-19  Bruno Haible  <bruno@clisp.org>
1734
1735         Ensure 'inline' can be used in tests/test-utimens-common.h.
1736         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
1737         * modules/futimens-tests (configure.ac): Likewise.
1738         * modules/utimens-tests (configure.ac): Likewise.
1739         * modules/utimensat-tests (configure.ac): Likewise.
1740
1741 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1742
1743         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
1744         not hash_insert0.
1745         (hash_insert_if_absent): Doc fix.
1746
1747 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1748
1749         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
1750
1751 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1752
1753         test-getcwd: disambiguate exit status
1754         * tests/test-getcwd.c (test_long_name): Return 0..7.
1755         (main): Exit with an unambiguous exit status.  The old
1756         code yielded a mysterious mixture of two failure codes.
1757
1758         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
1759         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
1760         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
1761         rpl_fstatat or fstatat.  This should fix the other problem
1762         reported by Kai Habel in
1763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1764         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
1765         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
1766         and I reproduced it on a Solaris 8 host we still have in production.
1767
1768 2011-11-18  Jim Meyering  <meyering@redhat.com>
1769
1770         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
1771         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
1772         Add a sentence to the comment.
1773         (hash_insert0): New function that simply calls hash_insert_if_absent.
1774         * lib/hash.h (hash_insert_if_absent): Declare it.
1775         (hash_insert0): Add deprecation attribute.
1776         (_GL_ATTRIBUTE_DEPRECATED): Define.
1777         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
1778         not hash_insert0.
1779         * NEWS: Mention it, even though it's not really an incompatible change.
1780
1781 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
1782
1783         openat: avoid compilation failure due to lack of <errno.h> inclusion
1784         * lib/openat.c: Include <errno.h>.
1785
1786 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1787
1788         * modules/getcwd (Depends-on): Add fdopendir.
1789         This fixes one of the two problems reported by Kai Habel in
1790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1791
1792         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
1793         stdalign problem reported by Ian Beckwith in
1794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
1795         * modules/crypto/gc-arcfour (Depends-on):
1796         Depend conditionally on crypto/arcfour.
1797         * modules/crypto/gc-arctwo (Depends-on):
1798         Depend conditionally on crypto/arctwo.
1799         * modules/crypto/gc-des (Depends-on):
1800         Depend conditionally on crypto/des.
1801         * modules/crypto/gc-hmac-md5 (Depends-on):
1802         Depend conditionally on crypto/hmac-md5.
1803         * modules/crypto/gc-hmac-sha1 (Depends-on):
1804         Depend conditionally on crypto/hmac-sha1.
1805         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
1806         * modules/crypto/gc-md4 (Depends-on):
1807         Depend conditionally on crypto/md4.
1808         * modules/crypto/gc-md5 (Depends-on):
1809         Depend conditionally on crypto/md5.
1810         * modules/crypto/gc-rijndael (Depends-on):
1811         Depend conditionally on crypto/rijndael.
1812         * modules/crypto/gc-sha1 (Depends-on):
1813         Depend conditionally on crypto/sha1.
1814         * modules/crypto/gc-arcfour:
1815         * modules/crypto/gc-arctwo:
1816         * modules/crypto/gc-des:
1817         * modules/crypto/gc-hmac-md5:
1818         * modules/crypto/gc-hmac-sha1:
1819         * modules/crypto/gc-md2:
1820         * modules/crypto/gc-md4:
1821         * modules/crypto/gc-md5:
1822         * modules/crypto/gc-rijndael:
1823         * modules/crypto/gc-sha1:
1824         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
1825         now that the conditional dependencies do the work for us.
1826
1827 2011-11-17  Jim Meyering  <meyering@redhat.com>
1828
1829         tests: factor st_ctime-comparison out of two headers
1830         * tests/test-utimens-common.h (ctime_compare): Define.
1831         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
1832         * tests/test-lutimens.h (test_lutimens): Likewise.
1833         * tests/test-utimens.h (test_utimens): Likewise.
1834
1835         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
1836         Invoke the test program via an init.sh-using wrapper.
1837         * tests/test-getcwd.sh: New file.
1838         * modules/getcwd-tests (Files): Add it.
1839         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
1840
1841 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
1842
1843         gitlog-to-changelog: support multi-author commits.
1844         The FSF cares about keeping track of all authors of patches to its
1845         projects, but Git doesn't provide obvious support for multi-author
1846         changesets. Consensus seems to be forming around the use of extra
1847         Signed-off-by inspired lines in the log message formatted as
1848         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
1849         multi-author commits between version control systems.
1850         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
1851         log message and output in standard ChangeLog multi-author format.
1852         Reported by Peter Rosin <peda@lysator.liu.se>
1853
1854 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
1855             Bruno Haible  <bruno@clisp.org>
1856
1857         Fix some modules' file list.
1858         * modules/fstatat (Files): Add m4/lstat.m4.
1859         * modules/openat (Files): Likewise.
1860         * modules/unlinkat (Files): Likewise.
1861
1862 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
1863
1864         maint.mk: fix tight-scope.mk generation in VPATH builds.
1865         * top/maint.mk (tight-scope.mk): Make sure to prefix file
1866         reference with $(srcdir) so that the file is found correctly even
1867         when running `make syntax-check' in a VPATH build.
1868
1869 2011-11-13  Bruno Haible  <bruno@clisp.org>
1870             Jim Meyering  <meyering@redhat.com>
1871
1872         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
1873         * tests/init.sh (compare): Remove "No differences encountered" or
1874         synonymous output from the 'diff' program.
1875
1876 2011-11-13  Bruno Haible  <bruno@clisp.org>
1877
1878         Makefile: Tweak indentation.
1879         * Makefile: Use tab as first character in every line that contains rule
1880         commands.
1881
1882 2011-11-13  Bruno Haible  <bruno@clisp.org>
1883
1884         Syntax check for copyright statements.
1885         * check-copyright: New file.
1886         * Makefile (sc_check_copyright): New rule.
1887
1888 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1889
1890         * build-aux/git-version-gen: Add --prefix to configure the tag
1891         match string.
1892
1893 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1894
1895         * build-aux/git-version-gen: Add --help and --version.
1896
1897 2011-11-12  Jim Meyering  <meyering@redhat.com>
1898
1899         revamp the other test-exclude?.sh scripts to use init.sh, too
1900         * tests/test-exclude1.sh: Use init.sh.
1901         * tests/test-exclude2.sh: Likewise.
1902         * tests/test-exclude3.sh: Likewise.
1903         * tests/test-exclude4.sh: Likewise.
1904         * tests/test-exclude5.sh: Likewise.
1905         * tests/test-exclude6.sh: Likewise.
1906         * tests/test-exclude7.sh: Likewise.
1907         * tests/test-exclude8.sh: Likewise.
1908         * modules/exclude-tests (Files): List init.sh.
1909
1910         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
1911         These shell scripts ignored failure of the binary test-exclude,
1912         so making the latter return 77 didn't cause them to be skipped.
1913         * tests/test-exclude5.sh: Exit with test-exclude's error status
1914         when that program fails.  Revamp to use init.sh.
1915         * tests/test-exclude2.sh: Likewise.
1916
1917         test-exclude: fix a typo
1918         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
1919
1920 2011-11-11  Bruno Haible  <bruno@clisp.org>
1921
1922         obstack: Fix compilation error on MSVC 9.
1923         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
1924
1925 2011-11-11  Jim Meyering  <meyering@redhat.com>
1926
1927         test-exclude: skip tests rather than failing on deficient systems
1928         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
1929         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
1930         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
1931         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
1932
1933 2011-11-10  Bruno Haible  <bruno@clisp.org>
1934
1935         ptsname_r test: Avoid gcc warning on glibc systems.
1936         * tests/test-ptsname_r.c (null_ptr): New function.
1937         (test_errors): Use it.
1938
1939 2011-11-10  Bruno Haible  <bruno@clisp.org>
1940
1941         ptsname_r: Avoid compilation error on OSF/1 5.1.
1942         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
1943         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
1944         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
1945         function is not declared or incompatibly declared.
1946         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
1947         * modules/ptsname_r (Depends-on, configure.ac): Update.
1948         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
1949
1950 2011-11-10  Bruno Haible  <bruno@clisp.org>
1951
1952         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
1953         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
1954         When cross-compiling, guess yes on all platforms except AIX.
1955         Reported by Ludovic Courtès <ludo@gnu.org>.
1956
1957 2011-11-09  Bruno Haible  <bruno@clisp.org>
1958
1959         ptsname_r tests: Fix bugs.
1960         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
1961         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
1962
1963 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1964
1965         fstatat: work with cross-compilation
1966         Problem reported by Ludovic Courtès in
1967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
1968         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
1969         "cross-compiling" and assume the bug is present.  Replace
1970         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
1971         an inverted sense, to be more conservative about our assumptions.
1972         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
1973
1974 2011-11-09  Bruno Haible  <bruno@clisp.org>
1975
1976         Improve MODULES.html output.
1977         * modules/mkfifoat (Description): Use the word "function".
1978         * modules/readlinkat (Description): Likewise.
1979         * modules/symlinkat (Description): Likewise.
1980
1981 2011-11-09  Eric Blake  <eblake@redhat.com>
1982
1983         ptsname_r-tests: new test module
1984         * modules/ptsname_r-tests: New module.
1985         * tests/test-ptsname_r.c: New file.
1986
1987         ptsname_r: new module
1988         * modules/ptsname_r: New module.
1989         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
1990         * lib/ptsname.c (__ptsname_r): Split...
1991         * lib/ptsname_r.c: ...into new file.
1992         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1993         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
1994         * modules/stdlib (Makefile.am): Substitute witnesses.
1995         * lib/stdlib.in.h (ptsname_r): Declare it.
1996         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
1997         * MODULES.html.sh (Misc): Likewise.
1998         * modules/ptsname (Depends-on): Alter dependency.
1999         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
2000
2001 2011-11-09  Jim Meyering  <meyering@redhat.com>
2002
2003         announce-gen: be more concise when there's only one URL+tarball
2004         * build-aux/announce-gen (get_tool_versions): When you distribute
2005         only one type of tarball, combine the first two "Here are..."
2006         sections and make the key-checking grammar independent of
2007         how many tarballs there are.
2008
2009 2011-11-09  Eric Blake  <eblake@redhat.com>
2010
2011         openpty: provide a stub on mingw
2012         * lib/pty.in.h (includes): Provide forward declarations.
2013         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
2014
2015         raise: fix mingw handling of SIGPIPE
2016         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
2017
2018 2011-11-08  Bruno Haible  <bruno@clisp.org>
2019
2020         More conditional dependencies.
2021         * modules/faccessat (Depends-on): Add conditions.
2022         * modules/fchmodat (Depends-on): Likewise.
2023         * modules/fchownat (Depends-on): Likewise.
2024         * modules/fstatat (Depends-on): Likewise.
2025         * modules/mkfifoat (Depends-on): Likewise.
2026         * modules/readlinkat (Depends-on): Likewise.
2027         * modules/symlinkat (Depends-on): Likewise.
2028         * modules/unlinkat (Depends-on): Likewise.
2029         * modules/utimensat (Depends-on): Likewise.
2030         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
2031         * modules/linkat (Depends-on): Refine the conditions.
2032         * modules/renameat (Depends-on): Likewise.
2033
2034 2011-11-08  Bruno Haible  <bruno@clisp.org>
2035
2036         faccessat: Move AC_LIBOBJ invocation to module description.
2037         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
2038         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
2039         invocation from here...
2040         * modules/faccessat (configure.ac): ... to here. Invoke
2041         gl_PREREQ_FACCESSAT.
2042
2043 2011-11-08  Bruno Haible  <bruno@clisp.org>
2044
2045         faccessat: Simplify autoconf macro.
2046         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
2047         gl_FUNC_EUIDACCESS.
2048
2049 2011-11-08  Bruno Haible  <bruno@clisp.org>
2050
2051         renameat: Fix dependencies.
2052         * modules/renameat (Depends-on): Add stdbool.
2053
2054 2011-11-08  Bruno Haible  <bruno@clisp.org>
2055
2056         mkfifoat: Fix module description.
2057         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
2058         not gl_UNISTD_MODULE_INDICATOR.
2059
2060 2011-11-08  Bruno Haible  <bruno@clisp.org>
2061
2062         fstatat: Remove unused dependency.
2063         * modules/fstatat (Depends-on): Remove fstat.
2064
2065 2011-11-08  Simon Josefsson  <simon@josefsson.org>
2066
2067         GNUmakefile: behave when Makefile is missing.
2068         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
2069
2070 2011-11-08  Bruno Haible  <bruno@clisp.org>
2071
2072         openat: Conditionalize dependencies.
2073         * lib/openat.c: Reduce the scope of some #includes.
2074         * modules/openat (Depends-on): Add conditions.
2075
2076 2011-11-07  Jim Meyering  <meyering@redhat.com>
2077
2078         maint.mk: extract GPG key ID without using a temporary file
2079         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
2080         without using a temporary file.  Based on a suggestion from Werner Koch
2081         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
2082
2083 2011-11-07  Eric Blake  <eblake@redhat.com>
2084
2085         grantpt: fix typo
2086         * lib/stdlib.in.h (grantpt): Check correct function.
2087
2088         maint.mk: silence new syntax check
2089         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
2090
2091 2011-11-06  Bruno Haible  <bruno@clisp.org>
2092
2093         Doc about floating-point and math API.
2094         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
2095         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
2096
2097 2011-11-06  Bruno Haible  <bruno@clisp.org>
2098
2099         stdalign tests: Skip the test when compiled by Sun C.
2100         * tests/test-stdalign.c (main): Skip the test on Sun C.
2101
2102 2011-11-06  Bruno Haible  <bruno@clisp.org>
2103
2104         ansi-c++-opt: Complete the 2011-06-05 change.
2105         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
2106         does not support namespaces, set the variable to "no", not to ":".
2107
2108 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2109
2110         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
2111
2112 2011-11-06  Bruno Haible  <bruno@clisp.org>
2113
2114         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
2115         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
2116         (minus_zerol) [HP-UX]: New macro.
2117         (unary_minus) [HP-UX]: New function.
2118         (copysignl) [HP-UX]: Use unary_minus function.
2119
2120 2011-11-06  Bruno Haible  <bruno@clisp.org>
2121
2122         ldexp, ldexpf, ldexpl: Enhance tests.
2123         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
2124         and tests/test-ldexpl.c.
2125         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
2126         LDEXP, MIN_EXP, MAX_EXP): New macros.
2127         Include test-ldexp.h.
2128         (main): Just call test_function.
2129         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
2130         infinity.h, nan.h.
2131         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2132         MAX_EXP): New macros.
2133         Include test-ldexp.h.
2134         (x, y): Remove variables.
2135         (main): Just call test_function.
2136         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
2137         infinity.h, nan.h.
2138         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2139         MAX_EXP): New macros.
2140         Include test-ldexp.h.
2141         (x, y): Remove variables.
2142         (main): Just call test_function.
2143         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
2144         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
2145         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2146         (Depends-on): Add isnand-nolibm, signbit, float.
2147         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
2148         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2149         (Depends-on): Add isnanf-nolibm, signbit, float.
2150
2151 2011-11-06  Bruno Haible  <bruno@clisp.org>
2152
2153         math tests: Cosmetics.
2154         * tests/test-math-c++.cc: Reorder declarations.
2155
2156 2011-11-05  Bruno Haible  <bruno@clisp.org>
2157
2158         fma*: Simplify test.
2159         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
2160         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
2161
2162         Tests for module 'fmal'.
2163         * modules/fmal-tests: New file.
2164         * tests/test-fmal1.c: New file.
2165         * tests/test-fmal2.c: New file.
2166
2167         New module 'fmal'.
2168         * lib/math.in.h (fmal): New declaration.
2169         * lib/fmal.c: New file.
2170         * m4/fmal.m4: New file.
2171         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
2172         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
2173         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
2174         REPLACE_FMAL.
2175         * modules/fmal: New file.
2176         * doc/posix-functions/fmal.texi: Mention the new module and the various
2177         bugs.
2178
2179         Tests for module 'fmaf'.
2180         * modules/fmaf-tests: New file.
2181         * tests/test-fmaf1.c: New file.
2182         * tests/test-fmaf2.c: New file.
2183
2184         New module 'fmaf'.
2185         * lib/math.in.h (fmaf): New declaration.
2186         * lib/fmaf.c: New file.
2187         * m4/fmaf.m4: New file.
2188         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
2189         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
2190         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
2191         REPLACE_FMAF.
2192         * modules/fmaf: New file.
2193         * doc/posix-functions/fmaf.texi: Mention the new module and the various
2194         bugs.
2195
2196         Tests for module 'fma'.
2197         * modules/fma-tests: New file.
2198         * tests/test-fma1.c: New file.
2199         * tests/test-fma1.h: New file.
2200         * tests/test-fma2.c: New file.
2201         * tests/test-fma2.h: New file.
2202
2203         New module 'fma'.
2204         * lib/math.in.h (fma): New declaration.
2205         * lib/fma.c: New file.
2206         * m4/fma.m4: New file.
2207         * m4/fegetround.m4: New file.
2208         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
2209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
2210         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
2211         REPLACE_FMA.
2212         * modules/fma: New file.
2213         * doc/posix-functions/fma.texi: Mention the new module and the various
2214         bugs.
2215
2216         Extend gl_MATHFUNC.
2217         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
2218         Support 'void' as argument type.
2219         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
2220
2221 2011-11-05  Jim Meyering  <meyering@redhat.com>
2222
2223         maint.mk: also prohibit inclusion of dirent.h without use
2224         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
2225
2226 2011-11-05  Bruno Haible  <bruno@clisp.org>
2227
2228         ldexpl tests: Avoid test failure on MSVC 9.
2229         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
2230         value. Needed in order to enforce the conversion from a value greater
2231         than LDBL_MAX to Infinity.
2232
2233 2011-11-05  Bruno Haible  <bruno@clisp.org>
2234
2235         New modules 'at-internal', 'openat-h', split off from module 'openat'.
2236         * modules/at-internal: New file, extracted from modules/openat.
2237         * modules/openat-h: New file.
2238         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
2239         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
2240         * modules/openat (Description): Add reference to POSIX function.
2241         (Files): Remove lib/openat.h, lib/openat-proc.c.
2242         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
2243         intprops, unistd.
2244         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
2245         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
2246         gl_FCNTL_MODULE_INDICATOR.
2247         (Include): Remove unistd.h, openat.h.
2248         * modules/areadlinkat (Files): Add lib/at-func.c.
2249         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2250         openat-die, openat-h, save-cwd.
2251         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
2252         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2253         openat-die, openat-h, save-cwd, unistd.
2254         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
2255         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2256         openat-h, save-cwd. Remove fcntl-h, openat.
2257         * modules/fchmodat (Files): Remove lib/openat.h.
2258         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2259         openat, stdbool, unistd.
2260         * modules/fchownat (Files): Remove lib/openat.h.
2261         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2262         openat, stdbool, sys_stat.
2263         * modules/fdopendir (Files): Remove lib/openat-priv.h,
2264         lib/openat-proc.c.
2265         (Depends-on): Add at-internal.
2266         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
2267         * modules/fstatat (Files): Remove lib/openat.h.
2268         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2269         stdbool, unistd.
2270         * modules/fts (Depends-on): Add openat-h.
2271         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
2272         openat.
2273         * modules/mkdirat (Files): Remove lib/openat.h.
2274         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2275         openat, stdbool, sys_stat.
2276         * modules/mkfifoat (Files): Add lib/at-func.c.
2277         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2278         openat-h, save-cwd. Remove fcntl-h, openat.
2279         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
2280         * modules/readlinkat (Files): Add lib/at-func.c.
2281         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2282         openat-h, save-cwd. Remove fcntl-h, openat.
2283         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
2284         openat.
2285         * modules/selinux-at (Files): Add lib/at-func.c.
2286         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2287         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
2288         * modules/symlinkat (Files): Add lib/at-func.c.
2289         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2290         openat-h, save-cwd. Remove fcntl-h, openat.
2291         * modules/unlinkat (Files): Remove lib/openat.h.
2292         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2293         stdbool.
2294         * modules/utimensat (Files): Add lib/at-func.c.
2295         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
2296         openat-die, openat-h, save-cwd.
2297         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
2298         * modules/fdutimensat-tests (Depends-on): Add openat.
2299         * modules/fstatat-tests (Depends-on): Add openat-h.
2300         * modules/readlinkat-tests (Depends-on): Add openat.
2301         * modules/symlinkat-tests (Depends-on): Add openat.
2302
2303 2011-11-05  Bruno Haible  <bruno@clisp.org>
2304
2305         openat: Include <stdbool.h>.
2306         * lib/openat.c: Include <stdbool.h>.
2307
2308 2011-11-04  Bruno Haible  <bruno@clisp.org>
2309
2310         fchownat, renameat, unlinkat: Fix dependencies.
2311         * modules/fchownat (Depends-on): Add fstatat.
2312         * modules/renameat (Depends-on): Likewise.
2313         * modules/unlinkat (Depends-on): Likewise.
2314
2315 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2316
2317         openat: remove direct dependency on dirent
2318         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
2319         and hasn't been needed ever since fdopendir was split into its own
2320         module on 2009-08-31.
2321         * modules/openat (Depends-on): Remove dirent.
2322
2323 2011-11-04  Bruno Haible  <bruno@clisp.org>
2324
2325         renameat: Optimize code size.
2326         * modules/renameat (configure.ac): Don't compile at-func2.c if
2327         REPLACE_RENAMEAT is 1.
2328
2329 2011-11-04  Bruno Haible  <bruno@clisp.org>
2330
2331         openat tests: Fix file list.
2332         * modules/openat-tests (Files): Add tests/test-open.h.
2333
2334 2011-11-04  Bruno Haible  <bruno@clisp.org>
2335
2336         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
2337         * modules/fchmodat (Depends-on): Add openat-die.
2338         * modules/fchownat (Depends-on): Likewise.
2339         * modules/linkat (Depends-on): Likewise.
2340         * modules/renameat (Depends-on): Likewise.
2341         * modules/openat (Depends-on): Add dirent.
2342
2343 2011-11-04  Jim Meyering  <meyering@redhat.com>
2344
2345         at-func*.c: fix comments
2346         * lib/at-func2.c: Correct/improve first-line comment.
2347         * lib/at-func.c: Correct grammar in first-line comment.
2348
2349 2011-11-04  Bruno Haible  <bruno@clisp.org>
2350
2351         New module 'mkdirat', split off from module 'openat'.
2352         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
2353         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
2354         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
2355         * modules/mkdirat: New file, extracted from modules/openat.
2356         * modules/openat (Files): Remove lib/mkdirat.c.
2357         (Depends-on): Remove mkdir.
2358         (configure.ac): Remove AC_LIBOBJ of mkdirat.
2359         (Include): Remove <sys/stat.h>.
2360         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
2361         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
2362         tests/test-mkdir.h.
2363         (Depends-on): Remove ignore-value.
2364         (Makefile.am): Remove rules for test-mkdirat.
2365         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
2366         of module 'openat'.
2367         * NEWS: Mention the change.
2368
2369 2011-11-04  Bruno Haible  <bruno@clisp.org>
2370
2371         closedir: Avoid warning on mingw.
2372         * lib/closedir.c: Include <unistd.h>.
2373
2374 2011-11-04  Bruno Haible  <bruno@clisp.org>
2375
2376         New module 'fstatat', split off from module 'openat'.
2377         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
2378         defined.
2379         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
2380         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
2381         gl_FUNC_FSTATAT.
2382         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
2383         * modules/fstatat: New file, extracted from modules/openat.
2384         * modules/openat (Files): Remove lib/fstatat.c.
2385         (Depends-on): Remove lstat.
2386         (configure.ac): Remove AC_LIBOBJ of fstatat.
2387         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
2388         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
2389         tests/test-lstat.h, tests/test-stat.h.
2390         (Depends-on): Remove getcwd-lgpl.
2391         (Makefile.am): Remove rules for test-fstatat.
2392         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
2393         of module 'openat'.
2394         * NEWS: Mention the change.
2395         * modules/getcwd (Depends-on): Add fstatat.
2396         * modules/linkat (Depends-on): Likewise.
2397         * modules/mkfifoat-tests (Depends-on): Likewise.
2398         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
2399
2400 2011-11-03  Bruno Haible  <bruno@clisp.org>
2401
2402         New module 'unlinkat', split off from module 'openat'.
2403         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
2404         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
2405         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
2406         * modules/unlinkat: New file, extracted from modules/openat. Correct
2407         the dependency conditions.
2408         * modules/openat (Files): Remove lib/unlinkat.c.
2409         (Depends-on): Remove rmdir, unlink.
2410         (configure.ac): Remove AC_LIBOBJ of unlinkat.
2411         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
2412         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
2413         tests/test-rmdir.h, tests/test-unlink.h.
2414         (Depends-on): Remove unlinkdir.
2415         (Makefile.am): Remove rules for test-unlinkat.
2416         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
2417         of module 'openat'.
2418         * NEWS: Mention the change.
2419         * modules/linkat-tests (Depends-on): Add unlinkat.
2420         * modules/mkfifoat-tests (Depends-on): Likewise.
2421         * modules/readlinkat-tests (Depends-on): Likewise.
2422
2423 2011-11-02  Bruno Haible  <bruno@clisp.org>
2424
2425         New module 'fchmodat', split off from module 'openat'.
2426         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
2427         defined.
2428         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
2429         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
2430         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
2431         * modules/fchmodat: New file, extracted from modules/openat.
2432         * modules/openat (Files): Remove lib/fchmodat.c.
2433         (configure.ac): Remove AC_LIBOBJ of fchmodat.
2434         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
2435         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
2436         (Makefile.am): Remove rules for test-fchmodat.
2437         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
2438         of module 'openat'.
2439         * NEWS: Mention the change.
2440
2441 2011-11-02  Jim Meyering  <meyering@redhat.com>
2442
2443         putenv: indent #definition of "environ" to placate cppi
2444         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
2445
2446         gitlog-to-changelog: provide a ChangeLog-repair mechanism
2447         Git logs are often treated as immutable, because editing them
2448         changes the SHA1 checksums of all descendants.  Thus, errors in
2449         git logs tend to stay there forever.  However, when we generate
2450         a ChangeLog file -- typically for distribution -- from that git log,
2451         we can actually make corrections in the generated file.  The key
2452         lies in recording in machine-readable/applicable form the desired
2453         corrections.  See --help for description and an example.
2454         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
2455         (usage): Describe it; alphabetize option descriptions.
2456         (main): Honor the new option, carefully.
2457
2458 2011-11-01  Jim Meyering  <meyering@redhat.com>
2459
2460         gitlog-to-changelog: avoid an infloop
2461         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
2462         that ends up being empty.
2463
2464 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2465
2466         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
2467         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
2468         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
2469         contains (possibly-quoted) backslashes.  This should avoid
2470         all-too-common shell bugs if COMPLICATED contains backslashes in
2471         the "wrong" places.  Reported by David Evans in
2472         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
2473         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
2474         because we want ASCII ranges.  Is there some reason we don't use
2475         the C locale everywhere in this script?
2476         (func_module, top level): Avoid unwanted pathname expansion when
2477         $repo_url_prefix or $repo_url_suffix_repl contain shell
2478         metacharacters like '?' and '*'.
2479
2480 2011-11-01  Bruno Haible  <bruno@clisp.org>
2481
2482         fchownat: Improve description.
2483         * modules/fchownat (Description): Add link to function.
2484
2485 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2486
2487         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
2488         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
2489         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
2490         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
2491
2492 2011-11-01  Bruno Haible  <bruno@clisp.org>
2493
2494         alignof: Avoid collision with stdalign module.
2495         * lib/alignof.h (alignof): Remove macro.
2496         * NEWS: Mention the change.
2497         Reported by Paul Eggert.
2498
2499 2011-11-01  Bruno Haible  <bruno@clisp.org>
2500
2501         New module 'fchownat', split off from module 'openat'.
2502         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
2503         defined.
2504         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
2505         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
2506         invoke gl_FUNC_FCHOWNAT.
2507         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
2508         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
2509         * modules/fchownat: New file, extracted from modules/openat.
2510         * modules/openat (Files): Remove lib/fchownat.c.
2511         (Depends-on): Remove lchown.
2512         (configure.ac): Remove AC_LIBOBJ of fchownat.
2513         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
2514         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
2515         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
2516         (Depends-on): Remove mgetgroups, usleep, stat-time.
2517         (configure.ac): Remove test for getegid.
2518         (Makefile.am): Remove rules for test-fchownat.
2519         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
2520         of module 'openat'.
2521         * NEWS: Mention the change.
2522
2523 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2524
2525         stdalign: port better to MSVC and to Sun C 5.11
2526         This fixes some of the problems reported by Bruno Haible in
2527         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
2528         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
2529         shortcomings of MSVC and of Sun C 5.11.
2530         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
2531         around __declspec arg.
2532         * modules/stdalign-tests (Files): Add tests/macros.h.
2533         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
2534         Include macros.h, for ASSERT.
2535         (DECLARE_ALIGNED): Remove.
2536         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
2537         to catch bug), and to 1 if not (simplifies the rest of the code).
2538         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
2539         (CHECK_AUTO): Remove.
2540         (CHECK_ALIGNED): Check only the alignment of the static vars,
2541         since auto var alignment isn't supported by Sun C 5.11.
2542         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
2543         ASSERT failures are easier to diagnose.
2544
2545 2011-10-31  Bruno Haible  <bruno@clisp.org>
2546
2547         doc about some IRIX 5.3 problems.
2548         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
2549         on IRIX 5.3.
2550         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
2551         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
2552         5.3.
2553         * doc/posix-functions/grantpt.texi: Likewise.
2554         * doc/posix-functions/unlockpt.texi: Likewise.
2555         * doc/posix-functions/lgamma.texi: Likewise.
2556         * doc/posix-functions/nextafter.texi: Likewise.
2557         * doc/posix-functions/remainder.texi: Likewise.
2558         * doc/posix-functions/select.texi: Mention misplaced declaration on
2559         IRIX 5.3.
2560         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2561
2562 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
2563
2564         gitlog-to-changelog: fix git-log invocation.
2565         git-log mishandles date strings before 1970-01-01 UTC, and there is
2566         no use to specify --since=1970-01-01 by default anyway.
2567         * build-aux/gitlog-to-changelog: By default, when no --since option
2568         was given, do not specify explicit --since option to git-log.
2569
2570 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
2571
2572         gitlog-to-changelog: new option --append-dot.
2573         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
2574         first non-blank line of each commit message terminated with a dot.
2575
2576 2011-10-30  Bruno Haible  <bruno@clisp.org>
2577
2578         ffsl, ffsll: Avoid compilation error due to 'restrict'.
2579         * lib/ffsl.h: Include <config.h>.
2580         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
2581
2582 2011-10-30  Jim Meyering  <meyering@redhat.com>
2583
2584         GNUmakefile: reenable "make syntax-check" for most projects
2585         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
2586         build-aux variable", "syntax-check" would do nothing but succeed with
2587         the "No version control files detected..." diagnostic (unless you
2588         happened to override _build-aux via cfg.mk).
2589         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
2590         to precede inclusion of maint.mk.  Otherwise, these variables would
2591         be used undefined in any project that does not override the default.
2592
2593 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
2594
2595         gitlog-to-changelog: treat a message with only blank lines as empty.
2596         * build-aux/gitlog-to-changelog: Move the code that removes leading and
2597         trailing blank lines before the code that issues a warning about an
2598         empty commit message.
2599
2600 2011-10-30  Jim Meyering  <meyering@redhat.com>
2601
2602         test-parse-datetime.c: avoid new DST-related false positive test failure
2603         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
2604         based on the time/date we'll convert, not the current time.
2605         Otherwise, the moment we cross a DST boundary like today's in
2606         Europe, (CEST to CET), that offset ends up being one hour off.
2607
2608 2011-10-27  Bruno Haible  <bruno@clisp.org>
2609
2610         fstat: Tweak documentation.
2611         * modules/fstat (Description): More precise description.
2612
2613 2011-10-27  Bruno Haible  <bruno@clisp.org>
2614
2615         Update documentation regarding 'largefile' module.
2616         * doc/posix-functions/fstat.texi: Tweak wording.
2617         * doc/posix-functions/opendir.texi: Mention that the module fixes the
2618         problems with huge directories and/or small ino_t types.
2619         * doc/posix-functions/readdir.texi: Likewise.
2620         * doc/posix-functions/rewinddir.texi: Likewise.
2621
2622 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
2623
2624         maint.mk: don't maintain a second build-aux variable.
2625         * maint.mk (build_aux): Removed.  The maintainer-makefile module
2626         depends on GNUmakefile, which already maintains a cfg.mk
2627         overridable $(_build-aux) for projects with a non-standard
2628         build-aux directory location, although without the $(srcdir)
2629         prefix.  Use that variable consistently instead of introducing a
2630         second one.  Adjust all call sites.
2631
2632 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2633
2634         Add stdalign module and use it in other modules.
2635         This is based on a previous proposal by Bruno Haible
2636         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
2637
2638         stdalign: new module
2639         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
2640         * modules/stdalign: New files.
2641         * MODULES.html.sh (c1x_core_properties): Add stdalign.
2642         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
2643
2644         stdalign-tests: new module
2645         * modules/stdalign-tests, tests/test-stdalign.c: New files.
2646
2647         argp: use stdalign
2648         * lib/argp-parse.c: Include <stdalign.h>.
2649         (alignof): Remove.
2650         * modules/argp (Depends-on): Add stdalign.
2651
2652         crypto libraries: use stdalign
2653         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2654         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
2655         Do not include <stdlib.h> twice, in md4.c.
2656         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
2657         because we are accessing a pointer's bit-pattern, not a size.
2658         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
2659         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
2660         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2661         * modules/crypto/sha512: Likewise.
2662
2663         sys_socket: use stdalign, not alignof
2664         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
2665         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
2666
2667 2011-10-27  Bruno Haible  <bruno@clisp.org>
2668
2669         raise test: Avoid a test failure on Linux/MIPS.
2670         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
2671         because 99 is a valid signal on Linux/MIPS.
2672
2673 2011-10-27  Bruno Haible  <bruno@clisp.org>
2674
2675         nonblocking tests: Fix test failure on Linux/MIPS.
2676         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
2677         Set to 270000.
2678
2679 2011-10-27  Bruno Haible  <bruno@clisp.org>
2680
2681         utimensat: Work around problem on Linux/hppa.
2682         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
2683         values.
2684         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
2685
2686 2011-10-25  Jim Meyering  <meyering@redhat.com>
2687
2688         maint.mk: fix a bug in sc_prohibit_stddef_without_use
2689         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
2690         after symbols like NULL, size_t, etc.
2691         Reported by Alfred M. Szmidt.
2692
2693         maint.mk: exempt ENODATA from a syntax-check rule
2694         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
2695         from the sc_prohibit_always-defined_macros syntax-check rule.
2696         Add a comment.  See this for more details:
2697         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
2698
2699 2011-10-23  Jim Meyering  <meyering@redhat.com>
2700
2701         fts: close parent dir FD before returning from post-traversal fts_read
2702         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
2703         unlink A, even though an FD open on A remained.  This is suboptimal
2704         (holding a file descriptor open longer than needed), but otherwise not
2705         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
2706         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
2707         that represents a real problem: it causes the removal of A to fail
2708         with e.g., "rm: cannot remove `A': Device or resource busy"
2709
2710         fts visits each directory twice and keeps a cache (fts_fd_ring) of
2711         directory file descriptors.  After completing the final, FTS_DP,
2712         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
2713         cache, but then proceeded to add a new FD to it via the subsequent
2714         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
2715         final file descriptor would be closed only via fts_close's call to
2716         fd_ring_clear.  Now, it is usually closed earlier, via the final
2717         FTS_DP-returning fts_read call.
2718         * lib/fts.c (restore_initial_cwd): New function, converted from
2719         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
2720         Update callers.
2721         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
2722         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
2723
2724 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
2725             Bruno Haible  <bruno@clisp.org>
2726             Jim Meyering  <jim@meyering.net>
2727
2728         readme-release: improve safety of release prep instructions.
2729         * README-release: Don't git pull all branches when only master
2730         is needed for the release process.
2731         Run make maintainer-clean before changing trees and merging.
2732         Don't try to run ./configure right after git pull in case files
2733         that influence the bootstrap process have changed, move the
2734         ./configure step to after running ./bootstrap.
2735         Don't bootstrap "one last time"... it's the first time!
2736
2737 2011-10-22  Bruno Haible  <bruno@clisp.org>
2738
2739         errno, strerror-override: Support for MSVC 10.
2740         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
2741         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
2742         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
2743         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
2744         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
2745         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
2746         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
2747         Assign values compatible with MSVC 10.
2748         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
2749         New macros.
2750         (GNULIB_defined_EWINSOCK): New macro.
2751         * lib/strerror-override.c (strerror_override): Update accordingly.
2752         * lib/strerror-override.h: Likewise.
2753         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
2754         longer equal to the corresponding errno value.
2755         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2756
2757 2011-10-22  Bruno Haible  <bruno@clisp.org>
2758
2759         perror: Recognize when test program crashes.
2760         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
2761         strerror, set gl_cv_func_perror_works to no.
2762         Reported by Daniel Richard G. <skunk@iskunk.org>.
2763
2764         perror: Fix indentation.
2765         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
2766
2767 2011-10-22  Bruno Haible  <bruno@clisp.org>
2768
2769         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
2770         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
2771         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
2772         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
2773         functions, not as a macro.
2774         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
2775         macros.
2776         (isfinite, isinf, isnan, signbit): Check overloaded functions and
2777         absence of macro.
2778         Suggested by Eric Blake.
2779         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2780
2781 2011-10-21  Bruno Haible  <bruno@clisp.org>
2782
2783         relocatable-prog-wrapper: Don't leave object files behind.
2784         * build-aux/install-reloc: Re-synchronize list of .o files to be
2785         removed with list of compilation units.
2786
2787 2011-10-20  Bruno Haible  <bruno@clisp.org>
2788
2789         openpty, posix_openpt: Remove code duplication.
2790         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
2791         * lib/openpty.c: Include <stdlib.h>.
2792         (openpty): Use posix_openpt on all platforms except IRIX.
2793         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
2794
2795 2011-10-20  Bruno Haible  <bruno@clisp.org>
2796
2797         unlockpt: Detect invalid argument.
2798         * lib/unlockpt.c: Include <fcntl.h>.
2799         (unlockpt): Check whether fd is valid, using fcntl().
2800         * modules/unlockpt (Depends-on): Add fcntl-h.
2801
2802 2011-10-20  Bruno Haible  <bruno@clisp.org>
2803
2804         openpty: Avoid compilation error on AIX 6.1.
2805         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
2806
2807 2011-10-20  Bruno Haible  <bruno@clisp.org>
2808
2809         posix_openpt: Support for OpenBSD.
2810         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
2811         (posix_openpt) [OpenBSD]: New code.
2812         * lib/grantpt.c: Include <fcntl.h>.
2813         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
2814         * modules/grantpt (Depends-on): Add fcntl-h.
2815
2816 2011-10-20  Bruno Haible  <bruno@clisp.org>
2817
2818         posix_openpt test: Coding style.
2819         * tests/test-posix_openpt.c: Use GNU coding style.
2820
2821 2011-10-20  Bruno Haible  <bruno@clisp.org>
2822
2823         grantpt: Support --avoid=pt_chown.
2824         * modules/grantpt (Files): Add lib/pty-private.h.
2825
2826 2011-10-20  Bruno Haible  <bruno@clisp.org>
2827
2828         posix_openpt: Fix autoconf macro.
2829         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
2830         unneeded check for _getpty.
2831
2832 2011-10-20  Bruno Haible  <bruno@clisp.org>
2833
2834         openpty: Update comments.
2835         * lib/openpty.c: Add comments about Minix.
2836
2837 2011-10-19  Eric Blake  <eblake@redhat.com>
2838
2839         openpty: relax license
2840         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
2841
2842         pt_chown: use configmake to simplify build
2843         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
2844
2845         ptsname and others: relax license
2846         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
2847         * modules/unlockpt (License): Likewise.
2848         * modules/pt_chown (License): Likewise.
2849         * modules/ptsname (License): Likewise.
2850         * modules/ttyname_r (License): Likewise.
2851
2852 2011-10-19  Jim Meyering  <meyering@redhat.com>
2853
2854         posix_openpt: remove spurious #endif
2855         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
2856
2857 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
2858
2859         maint.mk: Respect $(build_aux) in web-manual rule.
2860         * top/maint.mk (web-manual): Find gen-announce script in user's
2861         $(build_aux) directory instead of hard-coding 'build-aux'.
2862
2863 2011-10-19  Bruno Haible  <bruno@clisp.org>
2864
2865         posix_openpt: Fix compilation error.
2866         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
2867         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
2868         Mention the openpty module as an alternative.
2869
2870 2011-10-19  Bruno Haible  <bruno@clisp.org>
2871
2872         Support for old NeXTstep 3.3 frexp().
2873         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
2874         execution time of the test to 5 seconds.
2875         Reported by Daniel Richard G. <skunk@iskunk.org>.
2876
2877 2011-10-19  Bruno Haible  <bruno@clisp.org>
2878
2879         Support for old NeXTstep 3.3 sed.
2880         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
2881         part, use /.../, not \|...|. Escape periods in the header file name.
2882         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2883         Reported by Daniel Richard G. <skunk@iskunk.org>.
2884
2885 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2886
2887         Support for old NeXTstep 3.3 gcc.
2888         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
2889         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
2890         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
2891         * lib/spawn.in.h (_Restrict_arr_): Likewise.
2892         * lib/regex.h (_Restrict_arr_): Likewise.
2893         * lib/regex_internal.h (re_token_t): Likewise.
2894         * lib/regexec.c (check_node_accept_bytes): Likewise.
2895         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
2896
2897 2011-10-18  Eric Blake  <eblake@redhat.com>
2898
2899         posix_openpt: new module
2900         * modules/posix_openpt: New module.
2901         * m4/posix_openpt.m4: New file.
2902         * lib/posix_openpt.c: Likewise.
2903         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2904         (gl_STDLIB_H_DEFAULTS): Set defaults.
2905         * modules/stdlib (Makefile.am): Substitute macros.
2906         * lib/stdlib.in.h (posix_openpt): Declare.
2907         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
2908         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
2909         * modules/posix_openpt-tests: New test module.
2910         * tests/test-posix_openpt.c: New test.
2911
2912 2011-10-15  Bruno Haible  <bruno@clisp.org>
2913
2914         xstrtoll: Fix compilation failure.
2915         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
2916         from lib/strtol.c.
2917         * doc/posix-headers/limits.texi: Mention missing numerical limits on
2918         some platforms.
2919         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2920
2921 2011-10-15  Bruno Haible  <bruno@clisp.org>
2922
2923         vasnprintf: Optimize bit search operation.
2924         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
2925         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
2926         gl_DOUBLE_EXPONENT_LOCATION.
2927         * modules/vasnprintf (Files): Add m4/exponentd.m4.
2928         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2929         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2930         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2931         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2932         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2933         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2934         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2935         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
2936
2937 2011-10-15  Bruno Haible  <bruno@clisp.org>
2938
2939         vasnprintf: Fix comments.
2940         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
2941
2942 2011-10-14  Bruno Haible  <bruno@clisp.org>
2943
2944         Tests for module 'integer_length_ll'.
2945         * modules/integer_length_ll-tests: New file.
2946         * tests/test-integer_length_ll.c: New file.
2947
2948         New module 'integer_length_ll'.
2949         * lib/integer_length_ll.c: New file.
2950         * modules/integer_length_ll: New file.
2951
2952 2011-10-14  Bruno Haible  <bruno@clisp.org>
2953
2954         Tests for module 'integer_length_l'.
2955         * modules/integer_length_l-tests: New file.
2956         * tests/test-integer_length_l.c: New file.
2957
2958         New module 'integer_length_l'.
2959         * lib/integer_length_l.c: New file.
2960         * modules/integer_length_l: New file.
2961
2962 2011-10-14  Bruno Haible  <bruno@clisp.org>
2963
2964         Tests for module 'integer_length'.
2965         * modules/integer_length-tests: New file.
2966         * tests/test-integer_length.c: New file.
2967
2968         New module 'integer_length'.
2969         * lib/integer_length.h: New file.
2970         * lib/integer_length.c: New file.
2971         * modules/integer_length: New file.
2972
2973 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2974
2975         popen: Fix dependency conditions.
2976         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
2977
2978 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2979
2980         perror: Fix autoconf test.
2981         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
2982         <stdlib.h> and <string.h>.
2983
2984 2011-10-14  Bruno Haible  <bruno@clisp.org>
2985
2986         ffsl: Optimize on 64-bit platforms.
2987         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
2988         unrolling.
2989
2990 2011-10-13  Bruno Haible  <bruno@clisp.org>
2991
2992         ffsl: Optimize on 32-bit platforms.
2993         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
2994         use ffs() without a loop.
2995
2996         ffsl, ffsll: Optimize for GCC.
2997         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
2998         * lib/ffsl.c (GCC_BUILTIN): New macro.
2999         * lib/ffsll.c (GCC_BUILTIN): Likewise.
3000
3001 2011-10-13  Bruno Haible  <bruno@clisp.org>
3002
3003         ffs, bcopy, memset: Support symbol renaming via config.h.
3004         * lib/ffs.c: Include <config.h>.
3005         * lib/bcopy.c: Likewise.
3006         * lib/memset.c: Likewise.
3007
3008 2011-10-10  Bruno Haible  <bruno@clisp.org>
3009
3010         atanl: Simplify for platforms where 'long double' == 'double'.
3011         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3012         alternative implementation.
3013         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3014         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3015         * modules/atanl (Depends-on): Add atan. Update conditions.
3016
3017 2011-10-10  Bruno Haible  <bruno@clisp.org>
3018
3019         acosl: Simplify for platforms where 'long double' == 'double'.
3020         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3021         alternative implementation.
3022         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3023         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3024         * modules/acosl (Depends-on): Add acos. Update conditions.
3025
3026 2011-10-10  Bruno Haible  <bruno@clisp.org>
3027
3028         asinl: Simplify for platforms where 'long double' == 'double'.
3029         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3030         alternative implementation.
3031         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3032         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3033         * modules/asinl (Depends-on): Add asin. Update conditions.
3034
3035 2011-10-10  Bruno Haible  <bruno@clisp.org>
3036
3037         tanl: Simplify for platforms where 'long double' == 'double'.
3038         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3039         implementation.
3040         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3041         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3042         * modules/tanl (Depends-on): Add tan. Update conditions.
3043         (configure.ac): Don't compile trigl.c if
3044         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3045
3046 2011-10-10  Bruno Haible  <bruno@clisp.org>
3047
3048         cosl: Simplify for platforms where 'long double' == 'double'.
3049         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3050         implementation.
3051         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3052         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3053         * modules/cosl (Depends-on): Add cos. Update conditions.
3054         (configure.ac): Don't compile sincosl.c and trigl.c if
3055         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3056
3057 2011-10-10  Bruno Haible  <bruno@clisp.org>
3058
3059         sinl: Simplify for platforms where 'long double' == 'double'.
3060         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3061         implementation.
3062         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3063         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3064         * modules/sinl (Depends-on): Add sin. Update conditions.
3065         (configure.ac): Don't compile sincosl.c and trigl.c if
3066         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3067
3068 2011-10-10  Bruno Haible  <bruno@clisp.org>
3069
3070         logl: Simplify for platforms where 'long double' == 'double'.
3071         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3072         implementation.
3073         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3074         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3075         * modules/logl (Depends-on): Add log. Update conditions.
3076
3077 2011-10-10  Bruno Haible  <bruno@clisp.org>
3078
3079         expl: Simplify for platforms where 'long double' == 'double'.
3080         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3081         implementation.
3082         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3083         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3084         * modules/expl (Depends-on): Add exp. Update conditions.
3085
3086 2011-10-10  Bruno Haible  <bruno@clisp.org>
3087
3088         sqrtl: Simplify for platforms where 'long double' == 'double'.
3089         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3090         alternative implementation.
3091         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3092         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3093         * modules/sqrtl (Depends-on): Update conditions.
3094
3095 2011-10-10  Bruno Haible  <bruno@clisp.org>
3096
3097         ldexpl: Simplify for platforms where 'long double' == 'double'.
3098         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3099         alternative implementation.
3100         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3101         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3102         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
3103
3104 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
3105
3106         ffsll: set correct witness
3107         * modules/ffsll (configure.ac): Fix typo.
3108
3109 2011-10-10  Bruno Haible  <bruno@clisp.org>
3110
3111         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
3112         * lib/printf-frexpl.c: Include <config.h>.
3113         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3114         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
3115         second time.
3116         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
3117         gl_LONG_DOUBLE_VS_DOUBLE.
3118         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
3119         conditions.
3120
3121 2011-10-10  Bruno Haible  <bruno@clisp.org>
3122
3123         frexpl: Simplify for platforms where 'long double' == 'double'.
3124         * lib/frexpl.c: Include <config.h>.
3125         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3126         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3127         time.
3128         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3129         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3130         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
3131         * modules/frexpl (Depends-on): Add frexp. Update conditions.
3132         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
3133         conditions.
3134
3135 2011-10-10  Jim Meyering  <meyering@redhat.com>
3136
3137         test-renameat: don't leave behind a temporary file
3138         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
3139           ERROR: files left in build directory after distclean:
3140           ./gltests/test-renameat.too
3141           make[1]: *** [distcleancheck] Error 1
3142         Reported by Tom G. Christensen.
3143
3144 2011-10-09  Bruno Haible  <bruno@clisp.org>
3145
3146         rint: Determine RINT_LIBM correctly on AIX 7.
3147         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
3148         directly, not only through a function pointer. Also accept an optional
3149         4th argument with extra code.
3150         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
3151         rintf() call by gcc when optimizing.
3152
3153         mathfunc.m4: Refactor.
3154         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
3155         m4 variable.
3156
3157 2011-10-09  Bruno Haible  <bruno@clisp.org>
3158
3159         rintl: Simplify for platforms where 'long double' == 'double'.
3160         * lib/rintl.c: Include <config.h>.
3161         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3162         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3163         time.
3164         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3165         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3166         * modules/rintl (Depends-on): Add rint. Update conditions.
3167
3168 2011-10-09  Bruno Haible  <bruno@clisp.org>
3169
3170         roundl: Simplify for platforms where 'long double' == 'double'.
3171         * lib/roundl.c: Include <config.h>.
3172         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3173         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3174         time.
3175         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3176         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3177         * modules/roundl (Depends-on): Add round. Update conditions.
3178
3179 2011-10-09  Bruno Haible  <bruno@clisp.org>
3180
3181         truncl: Simplify for platforms where 'long double' == 'double'.
3182         * lib/truncl.c: Include <config.h>.
3183         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3184         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3185         time.
3186         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3187         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3188         * modules/truncl (Depends-on): Add trunc. Update conditions.
3189
3190 2011-10-09  Bruno Haible  <bruno@clisp.org>
3191
3192         ceill: Simplify for platforms where 'long double' == 'double'.
3193         * lib/ceill.c: Include <config.h>.
3194         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3195         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3196         time.
3197         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3198         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3199         * modules/ceill (Depends-on): Add ceil. Update conditions.
3200
3201 2011-10-09  Bruno Haible  <bruno@clisp.org>
3202
3203         floorl: Simplify for platforms where 'long double' == 'double'.
3204         * lib/floorl.c: Include <config.h>.
3205         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3206         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3207         time.
3208         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3209         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3210         * modules/floorl (Depends-on): Add floor. Update conditions.
3211
3212 2011-10-09  Bruno Haible  <bruno@clisp.org>
3213
3214         rint: Fix ordering constraints.
3215         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
3216         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3217         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3218
3219 2011-10-09  Bruno Haible  <bruno@clisp.org>
3220
3221         copysignl: Simplify for platforms where 'long double' == 'double'.
3222         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3223         alternative.
3224         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3225         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3226         * modules/copysignl (Depends-on): Add copysign. Update conditions.
3227
3228 2011-10-09  Bruno Haible  <bruno@clisp.org>
3229
3230         Tests for module 'rintl'.
3231         * modules/rintl-tests: New file.
3232         * tests/test-rintl.c: New file.
3233
3234         New module 'rintl'.
3235         * lib/math.in.h (rintl): New declaration.
3236         * lib/rintl.c: New file.
3237         * m4/rintl.m4: New file.
3238         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
3239         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
3240         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
3241         * modules/rintl: New file.
3242         * tests/test-math-c++.cc: Check the declaration of rintl.
3243         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3244         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
3245         * doc/posix-functions/rintl.texi: Mention the new module.
3246
3247 2011-10-09  Bruno Haible  <bruno@clisp.org>
3248
3249         Tests for module 'rintf'.
3250         * modules/rintf-tests: New file.
3251         * tests/test-rintf.c: New file.
3252
3253         New module 'rintf'.
3254         * lib/math.in.h (rintf): New declaration.
3255         * lib/rintf.c: New file.
3256         * m4/rintf.m4: New file.
3257         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
3258         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
3259         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
3260         * modules/rintf: New file.
3261         * tests/test-math-c++.cc: Check the declaration of rintf.
3262         * doc/posix-functions/rintf.texi: Mention the new module.
3263
3264 2011-10-09  Bruno Haible  <bruno@clisp.org>
3265
3266         rint: Support for MSVC.
3267         * lib/math.in.h (rint): New declaration.
3268         * lib/rint.c: New file.
3269         * m4/rint.m4: New file.
3270         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
3271         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
3272         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
3273         * modules/rint (Description): Fix.
3274         (Files): Add lib/rint.c, m4/rint.m4.
3275         (Depends-on): Add math.
3276         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
3277         gl_MATH_MODULE_INDICATOR.
3278         * tests/test-math-c++.cc: Check the declaration of rint.
3279         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3280         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
3281         * doc/posix-functions/rint.texi: Mention the replacement provided by
3282         the module.
3283
3284         rint tests: More tests.
3285         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
3286         minus-zero.h, infinity.h, nan.h.
3287         (main): Skip the test if the current rounding mode is not standard. Add
3288         tests for negative numbers, minus zero, infinity, NaN.
3289         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
3290         tests/nan.h.
3291         (Depends-on): Add isnand-nolibm.
3292
3293 2011-10-09  Bruno Haible  <bruno@clisp.org>
3294
3295         Tests for module 'copysignl'.
3296         * modules/copysignl-tests: New file.
3297         * tests/test-copysignl.c: New file.
3298
3299         New module 'copysignl'.
3300         * lib/math.in.h (copysignl): New declaration.
3301         * lib/copysignl.c: New file.
3302         * m4/copysignl.m4: New file.
3303         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
3304         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
3305         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
3306         HAVE_COPYSIGNL.
3307         * modules/copysignl: New file.
3308         * tests/test-math-c++.cc: Check the declaration of copysignl.
3309         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3310         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
3311         * doc/posix-functions/copysignl.texi: Mention the new module.
3312
3313 2011-10-09  Bruno Haible  <bruno@clisp.org>
3314
3315         Tests for module 'copysignf'.
3316         * modules/copysignf-tests: New file.
3317         * tests/test-copysignf.c: New file.
3318
3319         New module 'copysignf'.
3320         * lib/math.in.h (copysignf): New declaration.
3321         * lib/copysignf.c: New file.
3322         * m4/copysignf.m4: New file.
3323         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
3324         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
3325         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
3326         HAVE_COPYSIGNF.
3327         * modules/copysignf: New file.
3328         * tests/test-math-c++.cc: Check the declaration of copysignf.
3329         * doc/posix-functions/copysignf.texi: Mention the new module.
3330
3331 2011-10-09  Bruno Haible  <bruno@clisp.org>
3332
3333         Ensure that HAVE_* variables are set to 1 before they are set to 0.
3334         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
3335         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
3336         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3337         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
3338         gl_SIGNAL_H_DEFAULTS.
3339
3340 2011-10-09  Bruno Haible  <bruno@clisp.org>
3341
3342         poll: Make macro safer.
3343         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
3344         ac_cv_header_poll_h is not set.
3345
3346 2011-10-09  Bruno Haible  <bruno@clisp.org>
3347
3348         copysign: Provide replacement.
3349         * lib/math.in.h (copysign): New declaration.
3350         * lib/copysign.c: New file.
3351         * m4/copysign.m4: New file.
3352         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
3353         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
3354         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
3355         HAVE_COPYSIGN.
3356         * modules/copysign (Description): Clarify.
3357         (Files): Add lib/copysign.c, m4/copysign.m4.
3358         (Depends-on): Add math, signbit.
3359         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
3360         gl_MATH_MODULE_INDICATOR.
3361         * tests/test-math-c++.cc: Check the declaration of copysign.
3362         * doc/posix-functions/copysign.texi: Mention the effects of the module
3363         on Minix and MSVC.
3364
3365 2011-10-09  Bruno Haible  <bruno@clisp.org>
3366
3367         isinf: Ensure macro on AIX 5.1.
3368         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
3369         macro.
3370         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
3371
3372 2011-10-09  Bruno Haible  <bruno@clisp.org>
3373
3374         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
3375         * modules/snprintf-posix-tests (configure.ac): Require
3376         gl_LONG_DOUBLE_VS_DOUBLE.
3377         * modules/sprintf-posix-tests (configure.ac): Likewise.
3378         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
3379         * modules/vasprintf-posix-tests (configure.ac): Likewise.
3380         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
3381         * modules/vsprintf-posix-tests (configure.ac): Likewise.
3382         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
3383         tests on platforms where 'long double' is the same as 'double'.
3384         * tests/test-sprintf-posix.h (test_function): Likewise.
3385         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3386         * tests/test-vasprintf-posix.c (test_function): Likewise.
3387
3388         *printf: Fix for platforms where 'long double' == 'double'.
3389         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
3390         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
3391         * modules/dprintf-posix (Files): Add m4/math_h.m4.
3392         * modules/fprintf-posix (Files): Likewise.
3393         * modules/obstack-printf-posix (Files): Likewise.
3394         * modules/snprintf-posix (Files): Likewise.
3395         * modules/sprintf-posix (Files): Likewise.
3396         * modules/vasnprintf (Files): Likewise.
3397         * modules/vasnprintf-posix (Files): Likewise.
3398         * modules/vasprintf-posix (Files): Likewise.
3399         * modules/vdprintf-posix (Files): Likewise.
3400         * modules/vfprintf-posix (Files): Likewise.
3401         * modules/vsnprintf-posix (Files): Likewise.
3402         * modules/vsprintf-posix (Files): Likewise.
3403         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3404         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3405         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3406         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3407         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3408         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3409         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3410
3411         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
3412         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
3413         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3414         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
3415         'long double'.
3416         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
3417
3418         isinf: Fix for platforms where 'long double' == 'double'.
3419         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3420         Don't blindly assume 80-bit 'long double'.
3421
3422         isfinite: Fix for platforms where 'long double' == 'double'.
3423         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3424         Don't blindly assume 80-bit 'long double'.
3425
3426         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
3427         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
3428         * modules/isfinite-tests (configure.ac): Require
3429         gl_LONG_DOUBLE_VS_DOUBLE.
3430         * modules/isinf-tests (configure.ac): Likewise.
3431         * modules/isnan-tests (configure.ac): Likewise.
3432         * modules/isnanl-tests (configure.ac): Likewise.
3433         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
3434         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
3435         tests on platforms where 'long double' is the same as 'double'.
3436         * tests/test-isinf.c (test_isinfl): Likewise.
3437         * tests/test-isnan.c (test_long_double): Likewise.
3438         * tests/test-isnanl.h (main): Likewise.
3439
3440 2011-10-08  Bruno Haible  <bruno@clisp.org>
3441
3442         Tests for module 'tanhf'.
3443         * modules/tanhf-tests: New file.
3444         * tests/test-tanhf.c: New file.
3445
3446         New module 'tanhf'.
3447         * lib/math.in.h (tanhf): New declaration.
3448         * lib/tanhf.c: New file.
3449         * m4/tanhf.m4: New file.
3450         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
3451         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
3452         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
3453         * modules/tanhf: New file.
3454         * tests/test-math-c++.cc: Check the declaration of tanhf.
3455         * doc/posix-functions/tanhf.texi: Mention the new module.
3456
3457         tanh: Use a .m4 file.
3458         * m4/tanh.m4: New file.
3459         * modules/tanh (Files): Add it.
3460         (configure.ac): Just invoke gl_FUNC_TANH.
3461
3462 2011-10-08  Bruno Haible  <bruno@clisp.org>
3463
3464         Tests for module 'coshf'.
3465         * modules/coshf-tests: New file.
3466         * tests/test-coshf.c: New file.
3467
3468         New module 'coshf'.
3469         * lib/math.in.h (coshf): New declaration.
3470         * lib/coshf.c: New file.
3471         * m4/coshf.m4: New file.
3472         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
3473         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
3474         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
3475         * modules/coshf: New file.
3476         * tests/test-math-c++.cc: Check the declaration of coshf.
3477         * doc/posix-functions/coshf.texi: Mention the new module.
3478
3479         cosh: Use a .m4 file.
3480         * m4/cosh.m4: New file.
3481         * modules/cosh (Files): Add it.
3482         (configure.ac): Just invoke gl_FUNC_COSH.
3483
3484 2011-10-08  Bruno Haible  <bruno@clisp.org>
3485
3486         Tests for module 'sinhf'.
3487         * modules/sinhf-tests: New file.
3488         * tests/test-sinhf.c: New file.
3489
3490         New module 'sinhf'.
3491         * lib/math.in.h (sinhf): New declaration.
3492         * lib/sinhf.c: New file.
3493         * m4/sinhf.m4: New file.
3494         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
3495         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
3496         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
3497         * modules/sinhf: New file.
3498         * tests/test-math-c++.cc: Check the declaration of sinhf.
3499         * doc/posix-functions/sinhf.texi: Mention the new module.
3500
3501         sinh: Use a .m4 file.
3502         * m4/sinh.m4: New file.
3503         * modules/sinh (Files): Add it.
3504         (configure.ac): Just invoke gl_FUNC_SINH.
3505
3506 2011-10-08  Bruno Haible  <bruno@clisp.org>
3507
3508         Tests for module 'atan2f'.
3509         * modules/atan2f-tests: New file.
3510         * tests/test-atan2f.c: New file.
3511
3512         New module 'atan2f'.
3513         * lib/math.in.h (atan2f): New declaration.
3514         * lib/atan2f.c: New file.
3515         * m4/atan2f.m4: New file.
3516         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
3517         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
3518         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
3519         * modules/atan2f: New file.
3520         * tests/test-math-c++.cc: Check the declaration of atan2f.
3521         * doc/posix-functions/atan2f.texi: Mention the new module.
3522
3523         atan2: Use a .m4 file.
3524         * m4/atan2.m4: New file.
3525         * modules/atan2 (Files): Add it.
3526         (configure.ac): Just invoke gl_FUNC_ATAN2.
3527
3528 2011-10-08  Bruno Haible  <bruno@clisp.org>
3529
3530         Tests for module 'atanf'.
3531         * modules/atanf-tests: New file.
3532         * tests/test-atanf.c: New file.
3533
3534         New module 'atanf'.
3535         * lib/math.in.h (atanf): New declaration.
3536         * lib/atanf.c: New file.
3537         * m4/atanf.m4: New file.
3538         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
3539         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
3540         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
3541         * modules/atanf: New file.
3542         * tests/test-math-c++.cc: Check the declaration of atanf.
3543         * doc/posix-functions/atanf.texi: Mention the new module.
3544
3545         atan: Use a .m4 file.
3546         * m4/atan.m4: New file.
3547         * modules/atan (Files): Add it.
3548         (configure.ac): Just invoke gl_FUNC_ATAN.
3549
3550 2011-10-08  Bruno Haible  <bruno@clisp.org>
3551
3552         Tests for module 'acosf'.
3553         * modules/acosf-tests: New file.
3554         * tests/test-acosf.c: New file.
3555
3556         New module 'acosf'.
3557         * lib/math.in.h (acosf): New declaration.
3558         * lib/acosf.c: New file.
3559         * m4/acosf.m4: New file.
3560         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
3561         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
3562         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
3563         * modules/acosf: New file.
3564         * tests/test-math-c++.cc: Check the declaration of acosf.
3565         * doc/posix-functions/acosf.texi: Mention the new module.
3566
3567         acos: Use a .m4 file.
3568         * m4/acos.m4: New file.
3569         * modules/acos (Files): Add it.
3570         (configure.ac): Just invoke gl_FUNC_ACOS.
3571
3572 2011-10-08  Bruno Haible  <bruno@clisp.org>
3573
3574         Tests for module 'asinf'.
3575         * modules/asinf-tests: New file.
3576         * tests/test-asinf.c: New file.
3577
3578         New module 'asinf'.
3579         * lib/math.in.h (asinf): New declaration.
3580         * lib/asinf.c: New file.
3581         * m4/asinf.m4: New file.
3582         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
3583         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
3584         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
3585         * modules/asinf: New file.
3586         * tests/test-math-c++.cc: Check the declaration of asinf.
3587         * doc/posix-functions/asinf.texi: Mention the new module.
3588
3589         asin: Use a .m4 file.
3590         * m4/asin.m4: New file.
3591         * modules/asin (Files): Add it.
3592         (configure.ac): Just invoke gl_FUNC_ASIN.
3593
3594 2011-10-08  Bruno Haible  <bruno@clisp.org>
3595
3596         Tests for module 'tanf'.
3597         * modules/tanf-tests: New file.
3598         * tests/test-tanf.c: New file.
3599
3600         New module 'tanf'.
3601         * lib/math.in.h (tanf): New declaration.
3602         * lib/tanf.c: New file.
3603         * m4/tanf.m4: New file.
3604         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
3605         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
3606         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
3607         * modules/tanf: New file.
3608         * tests/test-math-c++.cc: Check the declaration of tanf.
3609         * doc/posix-functions/tanf.texi: Mention the new module.
3610
3611         tan: Use a .m4 file.
3612         * m4/tan.m4: New file.
3613         * modules/tan (Files): Add it.
3614         (configure.ac): Just invoke gl_FUNC_TAN.
3615
3616 2011-10-08  Bruno Haible  <bruno@clisp.org>
3617
3618         Tests for module 'cosf'.
3619         * modules/cosf-tests: New file.
3620         * tests/test-cosf.c: New file.
3621
3622         New module 'cosf'.
3623         * lib/math.in.h (cosf): New declaration.
3624         * lib/cosf.c: New file.
3625         * m4/cosf.m4: New file.
3626         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
3627         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
3628         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
3629         * modules/cosf: New file.
3630         * tests/test-math-c++.cc: Check the declaration of cosf.
3631         * doc/posix-functions/cosf.texi: Mention the new module.
3632
3633         cos: Use a .m4 file.
3634         * m4/cos.m4: New file.
3635         * modules/cos (Files): Add it.
3636         (configure.ac): Just invoke gl_FUNC_COS.
3637
3638 2011-10-08  Bruno Haible  <bruno@clisp.org>
3639
3640         Tests for module 'sinf'.
3641         * modules/sinf-tests: New file.
3642         * tests/test-sinf.c: New file.
3643
3644         New module 'sinf'.
3645         * lib/math.in.h (sinf): New declaration.
3646         * lib/sinf.c: New file.
3647         * m4/sinf.m4: New file.
3648         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
3649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
3650         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
3651         * modules/sinf: New file.
3652         * tests/test-math-c++.cc: Check the declaration of sinf.
3653         * doc/posix-functions/sinf.texi: Mention the new module.
3654
3655         sin: Use a .m4 file.
3656         * m4/sin.m4: New file.
3657         * modules/sin (Files): Add it.
3658         (configure.ac): Just invoke gl_FUNC_SIN.
3659
3660 2011-10-08  Bruno Haible  <bruno@clisp.org>
3661
3662         Tests for module 'powf'.
3663         * modules/powf-tests: New file.
3664         * tests/test-powf.c: New file.
3665
3666         New module 'powf'.
3667         * lib/math.in.h (powf): New declaration.
3668         * lib/powf.c: New file.
3669         * m4/powf.m4: New file.
3670         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
3671         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
3672         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
3673         * modules/powf: New file.
3674         * tests/test-math-c++.cc: Check the declaration of powf.
3675         * doc/posix-functions/powf.texi: Mention the new module.
3676
3677         pow: Use a .m4 file.
3678         * m4/pow.m4: New file.
3679         * modules/pow (Files): Add it.
3680         (configure.ac): Just invoke gl_FUNC_POW.
3681
3682 2011-10-08  Bruno Haible  <bruno@clisp.org>
3683
3684         Tests for module 'log10f'.
3685         * modules/log10f-tests: New file.
3686         * tests/test-log10f.c: New file.
3687
3688         New module 'log10f'.
3689         * lib/math.in.h (log10f): New declaration.
3690         * lib/log10f.c: New file.
3691         * m4/log10f.m4: New file.
3692         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
3693         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
3694         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
3695         * modules/log10f: New file.
3696         * tests/test-math-c++.cc: Check the declaration of log10f.
3697         * doc/posix-functions/log10f.texi: Mention the new module.
3698
3699         log10: Use a .m4 file.
3700         * m4/log10.m4: New file.
3701         * modules/log10 (Files): Add it.
3702         (configure.ac): Just invoke gl_FUNC_LOG10.
3703
3704 2011-10-08  Bruno Haible  <bruno@clisp.org>
3705
3706         Tests for module 'logf'.
3707         * modules/logf-tests: New file.
3708         * tests/test-logf.c: New file.
3709
3710         New module 'logf'.
3711         * lib/math.in.h (logf): New declaration.
3712         * lib/logf.c: New file.
3713         * m4/logf.m4: New file.
3714         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
3715         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
3716         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
3717         * modules/logf: New file.
3718         * tests/test-math-c++.cc: Check the declaration of logf.
3719         * doc/posix-functions/logf.texi: Mention the new module.
3720
3721         log: Use a .m4 file.
3722         * m4/log.m4: New file.
3723         * modules/log (Files): Add it.
3724         (configure.ac): Just invoke gl_FUNC_LOG.
3725
3726 2011-10-08  Bruno Haible  <bruno@clisp.org>
3727
3728         Tests for module 'expf'.
3729         * modules/expf-tests: New file.
3730         * tests/test-expf.c: New file.
3731
3732         New module 'expf'.
3733         * lib/math.in.h (expf): New declaration.
3734         * lib/expf.c: New file.
3735         * m4/expf.m4: New file.
3736         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
3737         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
3738         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
3739         * modules/expf: New file.
3740         * tests/test-math-c++.cc: Check the declaration of expf.
3741         * doc/posix-functions/expf.texi: Mention the new module.
3742
3743         exp: Use a .m4 file.
3744         * m4/exp.m4: New file.
3745         * modules/exp (Files): Add it.
3746         (configure.ac): Just invoke gl_FUNC_EXP.
3747
3748 2011-10-08  Bruno Haible  <bruno@clisp.org>
3749
3750         Tests for module 'sqrtf'.
3751         * modules/sqrtf-tests: New file.
3752         * tests/test-sqrtf.c: New file.
3753
3754         New module 'sqrtf'.
3755         * lib/math.in.h (sqrtf): New declaration.
3756         * lib/sqrtf.c: New file.
3757         * m4/sqrtf.m4: New file.
3758         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
3759         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
3760         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
3761         * modules/sqrtf: New file.
3762         * tests/test-math-c++.cc: Check the declaration of sqrtf.
3763         * doc/posix-functions/sqrtf.texi: Mention the new module.
3764
3765 2011-10-08  Bruno Haible  <bruno@clisp.org>
3766
3767         Tests: Avoid link failures w.r.t. libintl.
3768         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
3769         $(LIBINTL).
3770         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
3771         $(LIBINTL).
3772         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
3773         against $(LIBINTL).
3774         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
3775         $(LIBINTL).
3776         * modules/openat-tests (Makefile.am): Link test-fchmodat against
3777         $(LIBINTL).
3778         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
3779
3780 2011-10-08  Bruno Haible  <bruno@clisp.org>
3781
3782         pow tests: Defeat compiler optimizations.
3783         * tests/test-pow.c (main): Assign arguments to x and y before use.
3784
3785 2011-10-08  Bruno Haible  <bruno@clisp.org>
3786
3787         gnulib-tool: Improve last commit.
3788         * gnulib-tool (func_modules_transitive_closure): Simplify code.
3789         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
3790         ignore dependencies that are not among the modules list.
3791
3792 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
3793
3794         gnulib-tool: don't follow dependencies to avoided modules
3795         This fixes a bug that is related to the previous one.
3796         * gnulib-tool (func_modules_transitive_closure)
3797         (func_emit_autoconf_snippets):
3798         Check whether a dependency is acceptable before using it.
3799         (--extract-dependencies): Report an error if --avoid is also used,
3800         since this combination of options is not yet supported.
3801
3802         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
3803         Problem reported by Peter Dyballa in
3804         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
3805         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
3806         when echoing "$condition".
3807
3808 2011-10-07  Bruno Haible  <bruno@clisp.org>
3809
3810         Fix documentation about math functions on MacOS X.
3811         * doc/posix-functions/exp2.texi: Don't say the function is missing on
3812         MacOS X 10.5.
3813         * doc/posix-functions/fdim.texi: Likewise.
3814         * doc/posix-functions/feclearexcept.texi: Likewise.
3815         * doc/posix-functions/fegetenv.texi: Likewise.
3816         * doc/posix-functions/fegetround.texi: Likewise.
3817         * doc/posix-functions/feholdexcept.texi: Likewise.
3818         * doc/posix-functions/feraiseexcept.texi: Likewise.
3819         * doc/posix-functions/fesetenv.texi: Likewise.
3820         * doc/posix-functions/fesetround.texi: Likewise.
3821         * doc/posix-functions/fetestexcept.texi: Likewise.
3822         * doc/posix-functions/feupdateenv.texi: Likewise.
3823         * doc/posix-functions/fmax.texi: Likewise.
3824         * doc/posix-functions/fmin.texi: Likewise.
3825         * doc/posix-functions/log2.texi: Likewise.
3826         * doc/posix-functions/modff.texi: Likewise.
3827         * doc/posix-functions/nan.texi: Likewise.
3828         * doc/posix-functions/nanf.texi: Likewise.
3829         * doc/posix-functions/nextafterf.texi: Likewise.
3830         * doc/posix-functions/remquo.texi: Likewise.
3831
3832 2011-10-07  Bruno Haible  <bruno@clisp.org>
3833
3834         modff: Drop assumption about library that defines modff.
3835         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
3836         AC_CHECK_FUNCS.
3837         * modules/modff (Files): Add m4/mathfunc.m4.
3838
3839 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
3840
3841         raise tests: Avoid a GCC warning.
3842         * tests/test-raise.c (handler): Use _Noreturn.
3843
3844 2011-10-07  Bruno Haible  <bruno@clisp.org>
3845
3846         Tests for module 'ldexpf'.
3847         * modules/ldexpf-tests: New file.
3848         * tests/test-ldexpf.c: New file.
3849
3850         New module 'ldexpf'.
3851         * lib/math.in.h (ldexpf): New declaration.
3852         * lib/ldexpf.c: New file.
3853         * m4/ldexpf.m4: New file.
3854         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
3855         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
3856         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
3857         * modules/ldexpf: New file.
3858         * tests/test-math-c++.cc: Check the declaration of ldexpf.
3859         * doc/posix-functions/ldexpf.texi: Mention the new module.
3860
3861 2011-10-06  Bruno Haible  <bruno@clisp.org>
3862
3863         frexpf: Work around problems on IRIX and mingw.
3864         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
3865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
3866         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
3867         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
3868         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
3869         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
3870         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
3871
3872 2011-10-06  Bruno Haible  <bruno@clisp.org>
3873
3874         fabsf: Drop assumption about library that defines fabsf.
3875         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
3876         AC_CHECK_FUNCS.
3877         * modules/fabsf (Files): Add m4/mathfunc.m4.
3878
3879 2011-10-06  Bruno Haible  <bruno@clisp.org>
3880
3881         frexpf: Drop assumption about library that defines frexpf.
3882         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
3883         'int *', 'float *', 'long double *', 'float', 'long double'.
3884         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
3885         AC_CHECK_FUNCS.
3886         * modules/frexpf (Files): Add m4/mathfunc.m4.
3887
3888         Tests for module 'frexpf'.
3889         * modules/frexpf-tests: New file.
3890         * tests/test-frexpf.c: New file.
3891
3892         New module 'frexpf'.
3893         * lib/math.in.h (frexpf): New declaration.
3894         * lib/frexpf.c: New file.
3895         * m4/frexpf.m4: New file.
3896         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
3897         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
3898         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
3899         * modules/frexpf: New file.
3900         * tests/test-math-c++.cc: Check the declaration of frexpf.
3901         * doc/posix-functions/frexpf.texi: Mention the new module.
3902
3903 2011-10-06  Bruno Haible  <bruno@clisp.org>
3904
3905         math: Sort function declarations of math.in.h.
3906         * lib/math.in.h (frexp, logb): Move declarations.
3907
3908 2011-10-05  Bruno Haible  <bruno@clisp.org>
3909
3910         Tests for module 'modff'.
3911         * modules/modff-tests: New file.
3912         * tests/test-modff.c: New file.
3913
3914         New module 'modff'.
3915         * lib/math.in.h (modff): New declaration.
3916         * lib/modff.c: New file.
3917         * m4/modff.m4: New file.
3918         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
3919         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
3920         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
3921         * modules/modff: New file.
3922         * tests/test-math-c++.cc: Check the declaration of modff.
3923         * doc/posix-functions/modff.texi: Mention the new module.
3924
3925         modf tests: Make test sharper.
3926         * tests/test-modf.c (main): Strengthen upper bound.
3927
3928         modf: Use a .m4 file.
3929         * m4/modf.m4: New file.
3930         * modules/modf (Files): Add it.
3931         (configure.ac): Just invoke gl_FUNC_MODF.
3932
3933 2011-10-05  Bruno Haible  <bruno@clisp.org>
3934
3935         Tests for module 'fmodf'.
3936         * modules/fmodf-tests: New file.
3937         * tests/test-fmodf.c: New file.
3938
3939         New module 'fmodf'.
3940         * lib/math.in.h (fmodf): New declaration.
3941         * lib/fmodf.c: New file.
3942         * m4/fmodf.m4: New file.
3943         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
3944         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
3945         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
3946         * modules/fmodf: New file.
3947         * tests/test-math-c++.cc: Check the declaration of fmodf.
3948         * doc/posix-functions/fmodf.texi: Mention the new module.
3949
3950         fmod: Use a .m4 file.
3951         * m4/fmod.m4: New file.
3952         * modules/fmod (Files): Add it.
3953         (configure.ac): Just invoke gl_FUNC_FMOD.
3954
3955 2011-10-05  Bruno Haible  <bruno@clisp.org>
3956
3957         Tests for module 'fabsf'.
3958         * modules/fabsf-tests: New file.
3959         * tests/test-fabsf.c: New file.
3960
3961         New module 'fabsf'.
3962         * lib/math.in.h (fabsf): New declaration.
3963         * lib/fabsf.c: New file.
3964         * m4/fabsf.m4: New file.
3965         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
3966         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
3967         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
3968         * modules/fabsf: New file.
3969         * tests/test-math-c++.cc: Check the declaration of fabsf.
3970         * doc/posix-functions/fabsf.texi: Mention the new module.
3971
3972         fabs: Use a .m4 file.
3973         * m4/fabs.m4: New file.
3974         * modules/fabs (Files): Add it.
3975         (configure.ac): Just invoke gl_FUNC_FABS.
3976
3977 2011-10-05  Jim Meyering  <meyering@redhat.com>
3978
3979         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
3980         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
3981         ls -lL regression introduced in coreutils-8.12, it does so at the
3982         cost of an additional stat call in the common case.  Besides, now
3983         that the kernel change that prompted commit 95f7c57f has been reverted
3984         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
3985         we have no use for commit 95f7c57f, "file-has-acl: use
3986         acl_extended_file_nofollow if available".
3987
3988 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
3989
3990         file-has-acl: revert unintended change in behavior of ls -L
3991         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
3992         derived from...
3993         (file_has_acl): ...code here.  Call it.
3994         This problem was introduced with 2011-07-22 commit 95f7c57f,
3995         "file-has-acl: use acl_extended_file_nofollow if available".
3996         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
3997
3998 2011-10-03  Bruno Haible  <bruno@clisp.org>
3999
4000         poll: Avoid link errors on MSVC.
4001         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
4002         * modules/poll (Depends-on): Add sockets.
4003         (Link): New section.
4004         * NEWS: Mention the change.
4005         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
4006         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
4007         $(LIB_POLL) instead of $(LIBSOCKET).
4008
4009 2011-10-03  Bruno Haible  <bruno@clisp.org>
4010
4011         sys_select tests: Fix link error on MSVC 9.
4012         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
4013         with $(LIB_SELECT) instead of $(LIBSOCKET).
4014
4015 2011-10-03  Bruno Haible  <bruno@clisp.org>
4016
4017         sys_select: Fix compilation error on mingw.
4018         * lib/sys_select.in.h: On native Windows, include <io.h>.
4019
4020 2011-10-03  Bruno Haible  <bruno@clisp.org>
4021
4022         wmemset: Support for MSVC.
4023         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
4024         whether wmemset() exists.
4025
4026 2011-10-03  Bruno Haible  <bruno@clisp.org>
4027
4028         wmemmove: Support for MSVC.
4029         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
4030         whether wmemmove() exists.
4031
4032 2011-10-03  Bruno Haible  <bruno@clisp.org>
4033
4034         wmemcpy: Support for MSVC.
4035         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
4036         whether wmemcpy() exists.
4037
4038 2011-10-03  Bruno Haible  <bruno@clisp.org>
4039
4040         wmemcmp: Support for MSVC.
4041         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
4042         whether wmemcmp() exists.
4043
4044 2011-10-03  Bruno Haible  <bruno@clisp.org>
4045
4046         wmemchr: Support for MSVC.
4047         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
4048         whether wmemchr() exists.
4049
4050 2011-10-03  Bruno Haible  <bruno@clisp.org>
4051
4052         glthread/*, strsignal: Support for MSVC.
4053         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
4054         including <winsock.h> on MSVC 9.
4055         * lib/glthread/lock.h: Likewise.
4056         * lib/glthread/thread.h: Likewise.
4057         * lib/glthread/tls.h: Likewise.
4058         * lib/glthread/yield.h: Likewise.
4059         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
4060         if HAVE_UNISTD_H is false.
4061         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
4062
4063 2011-10-03  Bruno Haible  <bruno@clisp.org>
4064
4065         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
4066         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
4067         Set to 100000.
4068
4069 2011-10-03  Bruno Haible  <bruno@clisp.org>
4070
4071         acl: Fix specification.
4072         * lib/file-has-acl.c (file_has_acl): Fix specification.
4073
4074 2011-10-03  Bruno Haible  <bruno@clisp.org>
4075
4076         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
4077         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
4078         (compute_curr_prefix, shared_library_fullname,
4079         find_shared_library_fullname, get_shared_library_fullname, relocate):
4080         Use it together with PIC && INSTALLDIR.
4081         Reported by <jojelino@gmail.com>
4082         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
4083
4084 2011-10-01  Jim Meyering  <meyering@redhat.com>
4085
4086         maint.mk: adjust a release-related rule not to require use of gzip
4087         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
4088         Instead, check each file in $(DIST_ARCHIVES).  This is better for
4089         projects that build only .tar.xz files.  Also fix an erroneous test.
4090
4091         test-linkat: don't leave behind a temporary file
4092         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
4093         Otherwise, coreutils' "make distcheck" would fail with this:
4094           Only in /c/cu/tests/torture/coreutils/test/\
4095             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
4096           make[2]: *** [my-distcheck] Error 1
4097
4098         float, math: add omitted file
4099         * lib/itold.c: Add file, required for yesterday's float change.
4100
4101 2011-10-01  Bruno Haible  <bruno@clisp.org>
4102
4103         isinf: Fix for OpenBSD/x86.
4104         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
4105         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
4106         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
4107
4108 2011-10-01  Bruno Haible  <bruno@clisp.org>
4109
4110         isfinite: Fix syntax error in configure test.
4111         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
4112
4113         isfinite: Fix typo.
4114         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
4115         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
4116
4117 2011-10-01  Bruno Haible  <bruno@clisp.org>
4118
4119         nonblocking tests: Fix test failure on Linux/IA-64.
4120         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
4121         Set to 270000.
4122
4123 2011-10-01  Bruno Haible  <bruno@clisp.org>
4124
4125         mkfifoat tests: Fix a test failure on mingw.
4126         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
4127         with error ENOSYS.
4128
4129 2011-09-30  Bruno Haible  <bruno@clisp.org>
4130
4131         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
4132         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
4133         'long double'. Set REPLACE_ITOLD.
4134         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
4135         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
4136         * lib/itold.c: New file.
4137         * modules/float (Files): Add lib/itold.c.
4138         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
4139         (Makefile.am): Substitute REPLACE_ITOLD.
4140         * modules/math (Depends-on): Add float.
4141         (Makefile.am): Substitute REPLACE_ITOLD.
4142         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
4143         * doc/posix-headers/math.texi: Likewise.
4144         * doc/posix-functions/logl.texi: Likewise.
4145
4146 2011-09-30  Bruno Haible  <bruno@clisp.org>
4147
4148         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
4149         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
4150         Set to 140000.
4151
4152 2011-09-30  Bruno Haible  <bruno@clisp.org>
4153
4154         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
4155         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
4156         invocation, say "right after AC_PROG_CC_STDC", not "right after
4157         AC_PROG_CC".
4158         Reported by Gary V. Vaughan <gary@gnu.org>.
4159
4160 2011-09-30  Bruno Haible  <bruno@clisp.org>
4161
4162         Centralize C99 requirement.
4163         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
4164         * modules/stdarg (configure.ac-early): Invoke it instead of
4165         AC_PROG_CC_STDC.
4166         Reported by Gary V. Vaughan and Paul Eggert.
4167
4168 2011-09-29  Bruno Haible  <bruno@clisp.org>
4169
4170         float: Fix LDBL_MAX value on Linux/PowerPC.
4171         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
4172         on Linux/PowerPC.
4173         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
4174         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
4175         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
4176         platform.
4177         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
4178
4179 2011-09-29  Bruno Haible  <bruno@clisp.org>
4180
4181         doc: Improve doc about gl_EARLY.
4182         * doc/gnulib-tool.texi (Initial import): Mention where to place an
4183         AC_PROG_CC_STDC invocation.
4184         Reported by Gary V. Vaughan <gary@gnu.org>.
4185
4186 2011-09-28  Bruno Haible  <bruno@clisp.org>
4187
4188         fgetc, fputc, fread, fwrite tests: Fix link error.
4189         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
4190         on non-MSVC platforms.
4191         * tests/test-fputc.c (main): Likewise.
4192         * tests/test-fread.c (main): Likewise.
4193         * tests/test-fwrite.c (main): Likewise.
4194         Reported by Jim Meyering.
4195
4196 2011-09-27  Bruno Haible  <bruno@clisp.org>
4197
4198         fputc, fwrite tests: Avoid test failure on MSVC.
4199         * tests/test-fgetc.c: Include msvc-inval.h.
4200         (main): Invoke gl_msvc_inval_ensure_handler.
4201         * tests/test-fputc.c: Include msvc-inval.h.
4202         (main): Invoke gl_msvc_inval_ensure_handler.
4203         * tests/test-fread.c: Include msvc-inval.h.
4204         (main): Invoke gl_msvc_inval_ensure_handler.
4205         * tests/test-fwrite.c: Include msvc-inval.h.
4206         (main): Invoke gl_msvc_inval_ensure_handler.
4207         * modules/fgetc-tests (Depends-on): Add msvc-inval.
4208         * modules/fputc-tests (Depends-on): Likewise.
4209         * modules/fread-tests (Depends-on): Likewise.
4210         * modules/fwrite-tests (Depends-on): Likewise.
4211
4212 2011-09-27  Bruno Haible  <bruno@clisp.org>
4213
4214         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
4215         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
4216         (raise): Remove older, duplicated declaration.
4217         (_gl_raise_SIGPIPE): New declaration.
4218         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
4219         (rpl_raise): Remove function.
4220         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
4221         a gnulib-defined SIGPIPE here.
4222         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
4223         'sigprocmask' has detected missing signal-blocking and the module
4224         'sigpipe' is enabled.
4225         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4226
4227 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
4228
4229         base64-tests: avoid memory leak
4230         * tests/test-base64.c (main): Plug memory leak.
4231
4232         base32: new module
4233         * modules/base32: New module.
4234         * lib/base32.c: New file.
4235         * lib/base32.h: Likewise.
4236         * m4/base32.m4: Likewise.
4237         * modules/base32-tests: New test.
4238         * tests/test-base32.c: Likewise.
4239         * MODULES.html.sh (Misc): Mention it.
4240
4241 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4242
4243         gnulib: use more-standard license notice wording
4244         * gnulib-tool (func_emit_copyright_notice): When emitting a
4245         license notice into a file, use the standard wording as suggested
4246         by the current information for GNU maintainers, except say "file"
4247         rather than "program".  The new wording gives a license version
4248         number, which addresses an issue raised by Glenn Morris in
4249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
4250         * m4/onceonly.m4: Use that same wording here, too.
4251
4252         dup2: minor simplification
4253         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
4254         as lib/dup2.c no longer uses 'inline'.
4255
4256 2011-09-25  Bruno Haible  <bruno@clisp.org>
4257
4258         strings: Fix compilation error on MSVC.
4259         * lib/strings.in.h: Include <stddef.h> for size_t.
4260
4261 2011-09-25  Bruno Haible  <bruno@clisp.org>
4262
4263         fflush et al.: Document limitation on MSVC.
4264         * doc/posix-functions/fflush.texi: Document possible crash in handling
4265         mode other than DEFAULT_HANDLING.
4266         * doc/posix-functions/fgetc.texi: Likewise.
4267         * doc/posix-functions/fputc.texi: Likewise.
4268         * doc/posix-functions/fread.texi: Likewise.
4269         * doc/posix-functions/fwrite.texi: Likewise.
4270
4271 2011-09-25  Bruno Haible  <bruno@clisp.org>
4272
4273         msvc-inval: Allow three invalid parameter handling modes.
4274         * lib/msvc-inval.h: Don't include <stdlib.h> here.
4275         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
4276         macros.
4277         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
4278         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
4279         SANE_LIBRARY_HANDLING as a no-op.
4280         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
4281         <stdlib.h>.
4282         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
4283
4284 2011-09-25  Bruno Haible  <bruno@clisp.org>
4285
4286         msvc-inval: Make handler multithread-safe.
4287         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
4288         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
4289         declarations.
4290         (gl_msvc_inval_current): New declaration.
4291         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4292         Operate on the structure returned by gl_msvc_inval_current().
4293         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
4294         Remove varaiables.
4295         (tls_index, tls_initialized): New variables.
4296         (not_per_thread): New variable.
4297         (gl_msvc_inval_current): New function.
4298         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
4299         returned by gl_msvc_inval_current().
4300
4301 2011-09-25  Bruno Haible  <bruno@clisp.org>
4302
4303         msvc-inval: Install handler globally.
4304         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
4305         !_MSC_VER.
4306         (gl_msvc_invalid_parameter_handler): Remove declaration.
4307         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
4308         declarations.
4309         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4310         Install the handler globally, don't uninstall it.
4311         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
4312         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
4313         currently valid, call RaiseException instead.
4314         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
4315         for !_MSC_VER.
4316
4317 2011-09-25  Bruno Haible  <bruno@clisp.org>
4318
4319         strerror_r-posix: Fix for MSVC 9.
4320         * lib/strerror_r.c (local_snprintf): New function.
4321         (snprintf): Define to local_snprintf, not to _snprintf.
4322
4323 2011-09-25  Bruno Haible  <bruno@clisp.org>
4324
4325         ftruncate: Support for MSVC 9.
4326         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
4327         (chsize_nothrow): New function.
4328         (chsize): Redefine as a macro.
4329         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
4330         * modules/ftruncate (Depends-on): Add msvc-inval.
4331
4332 2011-09-25  Bruno Haible  <bruno@clisp.org>
4333
4334         New module 'fstat'.
4335         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
4336         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
4337         * lib/fchdir.c (rpl_fstat): Remove function.
4338         * m4/fstat.m4: New file.
4339         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
4340         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
4341         declared.
4342         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
4343         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
4344         * modules/fstat: New file.
4345         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
4346         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
4347         is set.
4348         * doc/posix-functions/fstat.texi: Mention the new module and the
4349         problem on MSVC.
4350         * NEWS: Mention the change.
4351         * modules/acl (Depends-on): Add fstat.
4352         * modules/chdir-safer (Depends-on): Likewise.
4353         * modules/chown (Depends-on): Likewise.
4354         * modules/copy-file (Depends-on): Likewise.
4355         * modules/fchdir (Depends-on): Likewise.
4356         * modules/fdopendir (Depends-on): Likewise.
4357         * modules/fopen (Depends-on): Likewise.
4358         * modules/fts (Depends-on): Likewise.
4359         * modules/getcwd (Depends-on): Likewise.
4360         * modules/isapipe (Depends-on): Likewise.
4361         * modules/linkat (Depends-on): Likewise.
4362         * modules/lseek (Depends-on): Likewise.
4363         * modules/mkdir-p (Depends-on): Likewise.
4364         * modules/open (Depends-on): Likewise.
4365         * modules/openat (Depends-on): Likewise.
4366         * modules/read-file (Depends-on): Likewise.
4367         * modules/renameat (Depends-on): Likewise.
4368         * modules/utimens (Depends-on): Likewise.
4369
4370 2011-09-25  Bruno Haible  <bruno@clisp.org>
4371
4372         linkat: Fix compilation on MSVC 9.
4373         * lib/linkat.c: Don't include <stdint.h>.
4374
4375 2011-09-25  Bruno Haible  <bruno@clisp.org>
4376
4377         fclose: Support for MSVC 9.
4378         * lib/fclose.c: Include msvc-inval.h.
4379         (fclose_nothrow): New function.
4380         (rpl_fclose): Use it.
4381         * modules/fclose (Depends-on): Add msvc-inval.
4382         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
4383
4384 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
4385
4386         dup2: minor simplifications
4387         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
4388         that it's a performance win.
4389         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
4390         ! defined __CYGWIN__)" to "ifdef F_GETFL".
4391
4392 2011-09-24  Jim Meyering  <meyering@redhat.com>
4393
4394         test-futimens: avoid a warning from gcc -Wshadow
4395         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
4396         to avoid a shadowing warning.
4397
4398 2011-09-24  Bruno Haible  <bruno@clisp.org>
4399
4400         fdopen: Support for MSVC 9.
4401         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
4402         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
4403         * lib/fdopen.c: Include msvc-inval.h.
4404         (fdopen_nothrow): New function.
4405         (rpl_fdopen): Use it.
4406         * modules/fdopen (Depends-on): Add msvc-inval.
4407         * modules/fclose-tests (Depends-on): Add fdopen.
4408         * modules/fflush-tests (Depends-on): Likewise.
4409         * modules/fgetc-tests (Depends-on): Likewise.
4410         * modules/fputc-tests (Depends-on): Likewise.
4411         * modules/fread-tests (Depends-on): Likewise.
4412         * modules/freopen-tests (Depends-on): Likewise.
4413         * modules/fseeko-tests (Depends-on): Likewise.
4414         * modules/ftello-tests (Depends-on): Likewise.
4415         * modules/fwrite-tests  (Depends-on): Likewise.
4416         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
4417
4418 2011-09-24  Bruno Haible  <bruno@clisp.org>
4419
4420         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
4421         * modules/fgetc-tests (Depends-on): Add unistd.
4422         * modules/fputc-tests (Depends-on): Likewise.
4423         * modules/fread-tests (Depends-on): Likewise.
4424         * modules/fwrite-tests (Depends-on): Likewise.
4425
4426 2011-09-24  Bruno Haible  <bruno@clisp.org>
4427
4428         dup: Simplify autoconf test.
4429         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
4430         on gl_MSVC_INVAL's result.
4431
4432 2011-09-24  Bruno Haible  <bruno@clisp.org>
4433
4434         Tests for function fwrite().
4435         * modules/fwrite-tests: New file.
4436         * tests/test-fwrite.c: New file.
4437         * modules/stdio-tests (Depends-on): Add fwrite-tests.
4438
4439         Tests for function fread().
4440         * modules/fread-tests: New file.
4441         * tests/test-fread.c: New file.
4442         * modules/stdio-tests (Depends-on): Add fread-tests.
4443
4444         Activate fputc tests.
4445         * modules/stdio-tests (Depends-on): Add fputc-tests.
4446
4447         Enhance fgetc, fputc tests.
4448         * tests/test-fgetc.c (main): Also test the stream's error indicator.
4449         * tests/test-fputc.c (main): Likewise.
4450
4451 2011-09-24  Bruno Haible  <bruno@clisp.org>
4452
4453         write: Support for MSVC 9.
4454         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4455         is not 1.
4456         * lib/write.c (write_nothrow): New function.
4457         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
4458         not 1. Use write_nothrow.
4459         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
4460         invalid parameter handler.
4461         (gl_PREREQ_WRITE): New macro.
4462         * modules/write (Depends-on): Add msvc-inval.
4463         (configure.ac): Invoke gl_PREREQ_WRITE.
4464         * doc/posix-functions/write.texi: Mention the problem on MSVC.
4465
4466 2011-09-24  Bruno Haible  <bruno@clisp.org>
4467
4468         read: Fix last commit.
4469         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
4470
4471 2011-09-24  Bruno Haible  <bruno@clisp.org>
4472
4473         dup2: Fix last commit.
4474         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
4475         (rpl_dup2): Disable fcntl workaround on native Windows.
4476
4477         sigprocmask: Make code safer.
4478         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
4479         section that changes macro definitions for this compilation unit.
4480
4481 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
4482
4483         dup2: clarify by coalescing Windows-specific material
4484         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
4485         "msvc-nothrow.h"' to the Windows-specific section, so that the
4486         Emacs source need not contain these include files.
4487         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
4488         Windows-specific fixes into this function rather than just the
4489         nothrow fix, as this shortens and clarifies the code.  Always
4490         define as a function, as that's a bit cleaner than having it be
4491         sometimes a function and sometimes a macro.
4492         (rpl_dup2): Move the Windows-specific stuff out of here and into
4493         ms_windows_dup2.  Don't protect the Haiku-related fix with
4494         "#if !defined __linux__", as the same code also works around
4495         a Linux kernel bug, and it doesn't add any system calls on any
4496         platform.  Add comment about FreeBSD 6.1.
4497
4498         sigprocmask: move #include directive
4499         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
4500         Windows-specific section, so that the Emacs source need not
4501         contain msvc-inval.h.
4502
4503 2011-09-23  Bruno Haible  <bruno@clisp.org>
4504
4505         read: Support for MSVC 9.
4506         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4507         is not 1.
4508         * lib/read.c (read_nothrow): New function.
4509         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
4510         read_nothrow.
4511         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
4512         invalid parameter handler.
4513         (gl_PREREQ_READ): New macro.
4514         * modules/read (Depends-on): Add msvc-inval.
4515         (configure.ac): Invoke gl_PREREQ_READ.
4516         * doc/posix-functions/read.texi: Mention the problem on MSVC.
4517
4518 2011-09-23  Bruno Haible  <bruno@clisp.org>
4519
4520         close: Support for MSVC 9.
4521         * lib/close.c: Include <errno.h>, msvc-inval.h.
4522         (close_nothrow): New function.
4523         (rpl_close): Use it.
4524         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
4525         invalid parameter handler.
4526         * modules/close (Depends-on): Add msvc-inval.
4527         * modules/dup2-tests (Depends-on): Add close.
4528         * modules/dup3-tests (Depends-on): Likewise.
4529         * modules/fcntl-tests (Depends-on): Likewise.
4530         * modules/spawn-pipe-tests (Depends-on): Likewise.
4531         * modules/unistd-safer-tests (Depends-on): Likewise.
4532         * doc/posix-functions/close.texi: Mention the problem on MSVC.
4533
4534 2011-09-23  Bruno Haible  <bruno@clisp.org>
4535
4536         New module 'dup'.
4537         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
4538         Allow replacement.
4539         * lib/dup.c: New file.
4540         * lib/fchdir.c (rpl_dup): Remove function.
4541         * m4/dup.m4: New file.
4542         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
4543         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
4544         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
4545         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
4546         * modules/dup: New file.
4547         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
4548         'dup' module is in use.
4549         * modules/fdopendir (Depends-on): Add dup.
4550         * modules/fdutimensat-tests (Depends-on): Likewise.
4551         * modules/fts (Depends-on): Likewise.
4552         * modules/futimens-tests (Depends-on): Likewise.
4553         * modules/posix_spawnp-tests (Depends-on): Likewise.
4554         * modules/unistd-safer-tests (Depends-on): Likewise.
4555         * modules/utimens-tests (Depends-on): Likewise.
4556         * doc/posix-functions/dup.texi: Mention the new module and the problem
4557         on MSVC.
4558
4559 2011-09-23  Bruno Haible  <bruno@clisp.org>
4560
4561         getdtablesize: Support for MSVC 9.
4562         * lib/getdtablesize.c: Include msvc-inval.h.
4563         (_setmaxstdio_nothrow): New function.
4564         (_setmaxstdio): Redefine it.
4565         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
4566         * modules/getdtablesize (Depends-on): Add msvc-inval.
4567         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
4568
4569 2011-09-23  Bruno Haible  <bruno@clisp.org>
4570
4571         signal-h: Rename from signal.
4572         * modules/signal-h: Renamed from modules/signal.
4573         * modules/pthread_sigmask (Depends-on): Update.
4574         * modules/raise (Depends-on): Likewise.
4575         * modules/sigaction (Depends-on): Likewise.
4576         * modules/sigpipe (Depends-on): Likewise.
4577         * modules/sigprocmask (Depends-on): Likewise.
4578         * modules/sys_select (Depends-on): Likewise.
4579         * modules/signal-h-tests: Renamed from modules/signal-tests.
4580         (Files, Depends-on, Makefile.am): Update.
4581         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
4582         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
4583         (Files, Makefile.am): Update.
4584         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
4585         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
4586         * modules/signal: New placeholder file.
4587         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
4588         * doc/posix-headers/signal.texi: Update.
4589         * NEWS: Mention the change.
4590
4591 2011-09-23  Bruno Haible  <bruno@clisp.org>
4592
4593         sigprocmask: Avoid crashes through signal() on MSVC 9.
4594         * lib/sigprocmask.c: Include msvc-inval.h.
4595         (signal_nothrow): New function.
4596         (signal): Redefine it.
4597         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
4598         * modules/sigprocmask (Depends-on): Add msvc-inval.
4599         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
4600
4601 2011-09-23  Bruno Haible  <bruno@clisp.org>
4602
4603         Tests for module 'raise'.
4604         * modules/raise-tests: New file.
4605         * tests/test-raise.c: New file.
4606
4607         raise: Support for MSVC.
4608         * lib/signal.in.h (raise): New declaration.
4609         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
4610         for native Windows platforms.
4611         * m4/raise.m4: New file.
4612         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
4613         HAVE_RAISE, REPLACE_RAISE.
4614         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
4615         REPLACE_RAISE.
4616         * modules/raise (Status, Notice): Remove fields.
4617         (Files): Add m4/raise.m4.
4618         (Depends-on): Add signal, msvc-inval.
4619         (configure.ac): Use the common idioms.
4620         (Maintainer): Add me.
4621         * tests/test-signal-c++.cc: Check the signature of raise.
4622         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
4623
4624 2011-09-23  Bruno Haible  <bruno@clisp.org>
4625
4626         pipe2: Fix compilation on pre-C99 compilers.
4627         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
4628
4629 2011-09-23  Bruno Haible  <bruno@clisp.org>
4630
4631         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
4632         * lib/msvc-nothrow.h: New file.
4633         * lib/msvc-nothrow.c: New file.
4634         * m4/msvc-nothrow.m4: New file.
4635         * modules/msvc-nothrow: New file.
4636         * lib/dup2.c: Include msvc-nothrow.h.
4637         (rpl_dup2): No need to protect _get_osfhandle call here.
4638         * lib/accept4.c: Include msvc-nothrow.h.
4639         * lib/error.c: Likewise.
4640         * lib/fcntl.c: Likewise.
4641         * lib/lseek.c: Likewise.
4642         * lib/nonblocking.c: Likewise.
4643         * lib/poll.c: Likewise.
4644         * lib/read.c: Likewise.
4645         * lib/select.c: Likewise.
4646         * lib/sockets.h: Likewise.
4647         * lib/sockets.c: Likewise.
4648         * lib/stdio-read.c: Likewise.
4649         * lib/stdio-write.c: Likewise.
4650         * lib/write.c: Likewise.
4651         * lib/w32sock.h: Likewise.
4652         * lib/w32spawn.h: Likewise.
4653         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
4654         * lib/fsync.c: Likewise.
4655         * lib/isapipe.c: Likewise.
4656         * modules/dup2 (Depends-on): Add msvc-nothrow.
4657         * modules/accept4 (Depends-on): Likewise.
4658         * modules/error (Depends-on): Likewise.
4659         * modules/fcntl (Depends-on): Likewise.
4660         * modules/lseek (Depends-on): Likewise.
4661         * modules/nonblocking (Depends-on): Likewise.
4662         * modules/poll (Depends-on): Likewise.
4663         * modules/read (Depends-on): Likewise.
4664         * modules/select (Depends-on): Likewise.
4665         * modules/sockets (Depends-on): Likewise.
4666         * modules/sigpipe (Depends-on): Likewise.
4667         * modules/write (Depends-on): Likewise.
4668         * modules/accept (Depends-on): Likewise.
4669         * modules/bind (Depends-on): Likewise.
4670         * modules/connect (Depends-on): Likewise.
4671         * modules/gethostname (Depends-on): Likewise.
4672         * modules/getpeername (Depends-on): Likewise.
4673         * modules/getsockname (Depends-on): Likewise.
4674         * modules/getsockopt (Depends-on): Likewise.
4675         * modules/ioctl (Depends-on): Likewise.
4676         * modules/listen (Depends-on): Likewise.
4677         * modules/recv (Depends-on): Likewise.
4678         * modules/recvfrom (Depends-on): Likewise.
4679         * modules/send (Depends-on): Likewise.
4680         * modules/sendto (Depends-on): Likewise.
4681         * modules/setsockopt (Depends-on): Likewise.
4682         * modules/shutdown (Depends-on): Likewise.
4683         * modules/socket (Depends-on): Likewise.
4684         * modules/execute (Depends-on): Likewise.
4685         * modules/spawn-pipe (Depends-on): Likewise.
4686         * modules/flock (Depends-on): Likewise.
4687         * modules/fsync (Depends-on): Likewise.
4688         * modules/isapipe (Depends-on): Likewise.
4689         * tests/test-cloexec.c: Include msvc-nothrow.h.
4690         * tests/test-dup-safer.c: Likewise.
4691         * tests/test-dup2.c: Likewise.
4692         * tests/test-dup3.c: Likewise.
4693         * tests/test-fcntl.c: Likewise.
4694         * tests/test-pipe.c: Likewise.
4695         * tests/test-pipe2.c: Likewise.
4696         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
4697         * modules/unistd-safer-tests (Depends-on): Likewise.
4698         * modules/dup2-tests (Depends-on): Likewise.
4699         * modules/dup3-tests (Depends-on): Likewise.
4700         * modules/fcntl-tests (Depends-on): Likewise.
4701         * modules/pipe-posix-tests (Depends-on): Likewise.
4702         * modules/pipe2-tests (Depends-on): Likewise.
4703
4704 2011-09-23  Bruno Haible  <bruno@clisp.org>
4705
4706         dup2: Make code more maintainable.
4707         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
4708         (rpl_dup2): Use it.
4709         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
4710         * modules/dup2 (configure.ac): Invoke it.
4711         Reported by Paul Eggert.
4712
4713 2011-09-23  Bruno Haible  <bruno@clisp.org>
4714
4715         msvc-inval: Fix compilation error.
4716         * lib/msvc-inval.h: Include <excpt.h>.
4717
4718 2011-09-23  Bruno Haible  <bruno@clisp.org>
4719
4720         mkdir: Tweak for MSVC 9.
4721         * lib/sys_stat.in.h: Update comments.
4722         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
4723
4724         Tests for module 'chdir'.
4725         * modules/chdir-tests: New file.
4726         * tests/test-chdir.c: New file.
4727
4728         New module 'chdir'.
4729         * modules/chdir: New file.
4730         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
4731         (chdir): New declaration.
4732         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
4733         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
4734         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
4735         * tests/test-unistd-c++.cc: Check signature of chdir.
4736         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
4737         * modules/chdir-long (Depends-on): Add chdir.
4738         * modules/fchdir (Depends-on): Likewise.
4739         * modules/rename (Depends-on): Likewise.
4740         * modules/savewd (Depends-on): Likewise.
4741
4742         rmdir: Support for mingw, MSVC 9.
4743         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
4744         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
4745
4746         getcwd: Tweak for MSVC 9.
4747         * lib/unistd.in.h: Update comments.
4748         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
4749
4750 2011-09-22  Bruno Haible  <bruno@clisp.org>
4751
4752         strerror_r-posix: Avoid a link error on MSVC.
4753         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
4754         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
4755
4756 2011-09-22  Bruno Haible  <bruno@clisp.org>
4757
4758         select: Avoid link errors on MSVC.
4759         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
4760         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
4761         * modules/pselect (Link): Likewise.
4762         * NEWS: Mention the change.
4763         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
4764         test-select-stdin against $(LIB_SELECT).
4765         * modules/pselect-tests (Makefile.am): Link test-pselect against
4766         $(LIB_SELECT).
4767
4768 2011-09-22  Bruno Haible  <bruno@clisp.org>
4769
4770         select: Avoid compilation error on MSVC.
4771         * lib/select.c: Don't include <stdbool.h>.
4772
4773 2011-09-21  Bruno Haible  <bruno@clisp.org>
4774
4775         Consolidate all uses of PATH_MAX in *.m4 files.
4776         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
4777         macros.
4778         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
4779         and gl_PATHMAX_SNIPPET.
4780         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4781         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4782         * modules/chdir-long (Files): Add m4/pathmax.m4.
4783         * modules/getcwd (Files): Likewise.
4784
4785 2011-09-21  Bruno Haible  <bruno@clisp.org>
4786
4787         ftruncate: Un-deprecate, concentrate on Win32 support.
4788         * modules/ftruncate (Status, Notice): Remove sections.
4789         (Depends-on): Add largefile.
4790         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
4791         non-mingw platforms.
4792         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
4793         include <io.h>.
4794         * modules/perror-tests (Depends-on): Add ftruncate.
4795         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
4796         'ftruncate' module.
4797
4798 2011-09-21  Bruno Haible  <bruno@clisp.org>
4799
4800         Add dependencies to new dirent related modules.
4801         * modules/opendir (Depends-on): Add closedir.
4802         * modules/getcwd (Depends-on): Add opendir, closedir.
4803         * modules/dirent-safer-tests (Depends-on): Likewise.
4804         * modules/fdopendir-tests (Depends-on): Likewise.
4805         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
4806         * modules/renameat-tests (Depends-on): Likewise.
4807
4808 2011-09-21  Bruno Haible  <bruno@clisp.org>
4809
4810         opendir: Avoid compilation error on mingw.
4811         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
4812         * modules/opendir (Depends-on): Add unistd.
4813
4814 2011-09-21  Bruno Haible  <bruno@clisp.org>
4815
4816         ftruncate tests: Avoid a test failure on mingw.
4817         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
4818
4819 2011-09-21  Bruno Haible  <bruno@clisp.org>
4820
4821         select tests: Avoid test failures on OSF/1 5.1 and mingw.
4822         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
4823         native Windows.
4824
4825 2011-09-21  Bruno Haible  <bruno@clisp.org>
4826
4827         New module 'fdopen'.
4828         * lib/stdio.in.h (fdopen): New declaration.
4829         * lib/fdopen.c: New file.
4830         * m4/fdopen.m4: New file.
4831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
4832         REPLACE_FDOPEN.
4833         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
4834         REPLACE_FDOPEN.
4835         * modules/fdopen: New file.
4836         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
4837         * tests/test-stdio-c++.cc: Check signature of fdopen.
4838         * doc/posix-functions/fdopen.texi: Mention the new module.
4839
4840 2011-09-21  Bruno Haible  <bruno@clisp.org>
4841
4842         unlockpt tests: Avoid test failure on NetBSD 5.1.
4843         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
4844         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
4845
4846 2011-09-21  Bruno Haible  <bruno@clisp.org>
4847
4848         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
4849         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
4850         * tests/test-getlogin_r.c (main): Likewise.
4851
4852 2011-09-20  Bruno Haible  <bruno@clisp.org>
4853
4854         time tests: Don't require pid_t.
4855         * doc/posix-headers/time.texi: Revert last change.
4856         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
4857         * tests/test-time.c: Comment out the check for pid_t.
4858
4859 2011-09-20  Bruno Haible  <bruno@clisp.org>
4860
4861         fsync tests: Avoid a test failure on mingw.
4862         * tests/test-fsync.c (main): Allow a failure with EIO.
4863
4864 2011-09-20  Bruno Haible  <bruno@clisp.org>
4865
4866         euidaccess: Update comments.
4867         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
4868
4869 2011-09-20  Bruno Haible  <bruno@clisp.org>
4870
4871         Ensure EBADF returns for socket functions on mingw.
4872         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
4873         descriptor is invalid.
4874         * lib/bind.c (rpl_bind): Likewise.
4875         * lib/connect.c (rpl_connect): Likewise.
4876         * lib/getpeername.c (rpl_getpeername): Likewise.
4877         * lib/getsockname.c (rpl_getsockname): Likewise.
4878         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4879         * lib/listen.c (rpl_listen): Likewise.
4880         * lib/recv.c (rpl_recv): Likewise.
4881         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4882         * lib/send.c (rpl_send): Likewise.
4883         * lib/sendto.c (rpl_sendto): Likewise.
4884         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4885         * lib/shutdown.c (rpl_shutdown): Likewise.
4886
4887 2011-09-20  Bruno Haible  <bruno@clisp.org>
4888
4889         select tests: EBADF tests.
4890         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
4891         test_bad_fd): New functions.
4892         (test_function): Invoke also test_bad_fd.
4893
4894 2011-09-20  Bruno Haible  <bruno@clisp.org>
4895
4896         Tests for module 'posix_spawn_file_actions_addopen.
4897         * modules/posix_spawn_file_actions_addopen-tests: New file.
4898         * tests/test-posix_spawn_file_actions_addopen.c: New file.
4899
4900         Tests for module 'posix_spawn_file_actions_adddup2'.
4901         * modules/posix_spawn_file_actions_adddup2-tests: New file.
4902         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
4903
4904         Tests for module 'posix_spawn_file_actions_addclose'.
4905         * modules/posix_spawn_file_actions_addclose-tests: New file.
4906         * tests/test-posix_spawn_file_actions_addclose.c: New file.
4907
4908 2011-09-20  Bruno Haible  <bruno@clisp.org>
4909
4910         Tests for module 'unlockpt'.
4911         * modules/unlockpt-tests: New file.
4912         * tests/test-unlockpt.c: New file.
4913         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
4914
4915         Tests for module 'grantpt'.
4916         * modules/grantpt-tests: New file.
4917         * tests/test-grantpt.c: New file.
4918         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
4919
4920 2011-09-20  Bruno Haible  <bruno@clisp.org>
4921
4922         freopen tests: EBADF tests.
4923         * tests/test-freopen.c: Include errno.h, unistd.h.
4924         (main): Add tests for EBADF, commented out for the moment.
4925
4926         fclose tests: EBADF tests.
4927         * tests/test-fclose.c (main): Add tests for EBADF.
4928
4929         fflush tests: EBADF tests.
4930         * tests/test-fflush.c: Include errno.h, macros.h.
4931         (main): Add tests for EBADF.
4932
4933         ftello tests: EBADF tests.
4934         * tests/test-ftello4.sh: New file.
4935         * tests/test-ftello4.c: New file.
4936         * modules/ftello-tests (Files): Add them.
4937         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
4938
4939         fseeko tests: EBADF tests.
4940         * tests/test-fseeko4.sh: New file.
4941         * tests/test-fseeko4.c: New file.
4942         * modules/fseeko-tests (Files): Add them.
4943         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
4944
4945         Tests for function fputc().
4946         * modules/fputc-tests: New file.
4947         * tests/test-fputc.c: New file.
4948         * modules/stdio-tests (Depends-on): Add fputc-tests.
4949
4950         Tests for function fgetc().
4951         * modules/fgetc-tests: New file.
4952         * tests/test-fgetc.c: New file.
4953         * modules/stdio-tests (Depends-on): Add fgetc-tests.
4954
4955         Tests for function fdopen().
4956         * modules/fdopen-tests: New file.
4957         * tests/test-fdopen.c: New file.
4958         * modules/stdio-tests (Depends-on): Add fdopen-tests.
4959
4960         Tests for module 'vdprintf'.
4961         * modules/vdprintf-tests: New file.
4962         * tests/test-vdprintf.c: New file.
4963
4964         Tests for module 'dprintf'.
4965         * modules/dprintf-tests: New file.
4966         * tests/test-dprintf.c: New file.
4967
4968 2011-09-20  Bruno Haible  <bruno@clisp.org>
4969
4970         Tests for module 'ioctl'.
4971         * modules/ioctl-tests: New file.
4972         * tests/test-ioctl.c: New file.
4973
4974 2011-09-20  Bruno Haible  <bruno@clisp.org>
4975
4976         fcntl tests: EBADF tests.
4977         * tests/test-fcntl.c (main): Add more tests for EBADF.
4978
4979 2011-09-20  Bruno Haible  <bruno@clisp.org>
4980
4981         utimensat tests: EBADF tests.
4982         * tests/test-utimensat.c (main): Add tests for EBADF.
4983
4984         renameat tests: EBADF tests.
4985         * tests/test-renameat.c (main): Add tests for EBADF.
4986
4987         mkfifoat tests: EBADF tests.
4988         * tests/test-mkfifoat.c (main): Add tests for EBADF.
4989
4990         readlinkat tests: EBADF tests.
4991         * tests/test-readlinkat.c (main): Add tests for EBADF.
4992
4993         symlinkat tests: EBADF tests.
4994         * tests/test-symlinkat.c (main): Add tests for EBADF.
4995
4996         linkat tests: EBADF tests.
4997         * tests/test-linkat.c (main): Add tests for EBADF.
4998
4999         Tests for module 'faccessat'.
5000         * modules/faccessat-tests: New file.
5001         * tests/test-faccessat.c: New file.
5002
5003         fdopendir tests: EBADF tests.
5004         * tests/test-fdopendir.c (main): Add more tests for EBADF.
5005
5006         openat tests: EBADF tests.
5007         * tests/test-fchownat.c (main): Add tests for EBADF.
5008         * tests/test-fstatat.c (main): Likewise.
5009         * tests/test-mkdirat.c (main): Likewise.
5010         * tests/test-openat.c (main): Likewise.
5011         * tests/test-unlinkat.c (main): Likewise.
5012         * tests/test-fchmodat.c: New file.
5013         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
5014         (Makefile.am): Also run 'test-fchmodat'.
5015
5016 2011-09-20  Bruno Haible  <bruno@clisp.org>
5017
5018         utimens, futimens, fdutimensat tests: EBADF tests.
5019         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
5020
5021         Tests for function fstat().
5022         * modules/fstat-tests: New file.
5023         * tests/test-fstat.c: New file.
5024         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
5025
5026 2011-09-20  Bruno Haible  <bruno@clisp.org>
5027
5028         test-ttyname_r tests: EBADF tests.
5029         * tests/test-ttyname_r.c (main): Add tests for EBADF.
5030
5031         Tests for module 'isatty'.
5032         * modules/isatty-tests: New file.
5033         * tests/test-isatty.c: New file.
5034
5035         Tests for module 'write'.
5036         * modules/write-tests: New file.
5037         * tests/test-write.c: New file.
5038
5039         Tests for module 'read'.
5040         * modules/read-tests: New file.
5041         * tests/test-read.c: New file.
5042
5043         pwrite tests: EBADF tests.
5044         * tests/test-pwrite.c (main): Add tests for EBADF.
5045
5046         pread tests: EBADF tests.
5047         * tests/test-pread.c (main): Add tests for EBADF.
5048
5049         lseek tests: EBADF tests.
5050         * tests/test-lseek.c (main): Add more tests for EBADF.
5051
5052         Tests for module 'ftruncate'.
5053         * modules/ftruncate-tests: New file.
5054         * tests/test-ftruncate.sh: New file.
5055         * tests/test-ftruncate.c: New file.
5056
5057         fsync tests: EBADF tests.
5058         * tests/test-fsync.c (main): Add more tests for EBADF.
5059
5060         fdatasync tests: EBADF tests.
5061         * tests/test-fdatasync.c (main): Add more tests for EBADF.
5062
5063         Tests for module 'fchown'.
5064         * modules/fchown-tests: New file.
5065         * tests/test-fchown.c: New file.
5066
5067         Tests for module 'fchmod'.
5068         * modules/fchmod-tests: New file.
5069         * tests/test-fchmod.c: New file.
5070
5071         fchdir tests: EBADF tests.
5072         * tests/test-fchdir.c (main): Add more tests for EBADF.
5073
5074         dup2 tests: EBADF tests.
5075         * tests/test-dup2.c (main): Add more tests for EBADF.
5076
5077         Tests for module 'dup'.
5078         * modules/dup-tests: New file.
5079         * tests/test-dup.c: New file.
5080
5081         Tests for module 'close'.
5082         * modules/close-tests: New file.
5083         * tests/test-close.c: New file.
5084
5085 2011-09-20  Bruno Haible  <bruno@clisp.org>
5086
5087         Tests for module 'shutdown'.
5088         * modules/shutdown-tests: New file.
5089         * tests/test-shutdown.c: New file.
5090
5091         Tests for module 'setsockopt'.
5092         * modules/setsockopt-tests: New file.
5093         * tests/test-setsockopt.c: New file.
5094
5095         Tests for module 'sendto'.
5096         * modules/sendto-tests: New file.
5097         * tests/test-sendto.c: New file.
5098
5099         Tests for module 'send'.
5100         * modules/send-tests: New file.
5101         * tests/test-send.c: New file.
5102
5103         Tests for module 'recvfrom'.
5104         * modules/recvfrom-tests: New file.
5105         * tests/test-recvfrom.c: New file.
5106
5107         Tests for module 'recv'.
5108         * modules/recv-tests: New file.
5109         * tests/test-recv.c: New file.
5110
5111         Tests for module 'listen'.
5112         * modules/listen-tests: New file.
5113         * tests/test-listen.c: New file.
5114
5115         Tests for module 'getsockopt'.
5116         * modules/getsockopt-tests: New file.
5117         * tests/test-getsockopt.c: New file.
5118
5119         Tests for module 'getsockname'.
5120         * modules/getsockname-tests: New file.
5121         * tests/test-getsockname.c: New file.
5122
5123         Tests for module 'getpeername'.
5124         * modules/getpeername-tests: New file.
5125         * tests/test-getpeername.c: New file.
5126
5127         Tests for module 'connect'.
5128         * modules/connect-tests: New file.
5129         * tests/test-connect.c: New file.
5130
5131         Tests for module 'bind'.
5132         * modules/bind-tests: New file.
5133         * tests/test-bind.c: New file.
5134
5135         accept4 tests: Fix for native Windows.
5136         * tests/test-accept4.c: Include sockets.h.
5137         (main): Invoke gl_sockets_startup.
5138         * modules/accept4-tests (Depends-on): Add sockets.
5139
5140         accept tests: Fix for native Windows.
5141         * tests/test-accept.c: Include sockets.h.
5142         (main): Invoke gl_sockets_startup.
5143         * modules/accept-tests (Depends-on): Add sockets.
5144
5145 2011-09-19  Bruno Haible  <bruno@clisp.org>
5146
5147         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
5148         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
5149         do...while(0).
5150         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
5151         Suggested by Paul Eggert.
5152
5153 2011-09-19  Bruno Haible  <bruno@clisp.org>
5154
5155         sched: Ensure pid_t is defined.
5156         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
5157         not define pid_t.
5158         * lib/sched.in.h: Include <sys/types.h>.
5159         * doc/posix-headers/sched.texi: Mention the pid_t problem.
5160         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5161
5162 2011-09-19  Bruno Haible  <bruno@clisp.org>
5163
5164         msvc-inval: Ensure the entire expansion is a single statement.
5165         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
5166         of braces.
5167
5168 2011-09-19  Jim Meyering  <meyering@redhat.com>
5169
5170         tests: use printf, not echo in init.sh's warn_ function
5171         * tests/init.sh (warn_): Use printf, not echo.  The latter would
5172         misbehave when given strings containing a backslash or starting
5173         with e.g., -n.  James Youngman suggested setting IFS.
5174
5175 2011-09-19  Eric Blake  <eblake@redhat.com>
5176
5177         futimens: enhance test
5178         * tests/test-futimens.h (test_futimens): Also check for EBADF on
5179         closed non-negative fd.
5180
5181         date: accept 'hence' as opposite of 'ago'
5182         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
5183         * tests/test-parse-datetime.c (main): Enhance test.
5184         Suggested by Jesse Wilson.
5185
5186 2011-09-19  Jim Meyering  <meyering@redhat.com>
5187
5188         getcwd: don't fail in a deep directory on a system without openat
5189         Before this change, getcwd would fail when called from a directory
5190         of depth PATH_MAX / 3 or greater.  That was due to the fact that
5191         the non-openat implementation used "..", "../..", "../../..", etc.
5192         to access ancestor directories.  With too many, that string would
5193         be longer than PATH_MAX.
5194         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
5195         using gnulib's openat replacement.
5196         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
5197         we're using the replacement function.
5198
5199 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
5200
5201         maint.mk: avoid warnings from perl about missing files
5202         * top/maint.mk (def_sym_regex): Ignore files listed in
5203         $(gl_other_headers_) that do not exist, say because a project
5204         does not use a corresponding module.
5205
5206 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
5207
5208         stat: use pathmax.h only if needed
5209         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
5210         This is better for Emacs, which does not have a mingw port and
5211         therefore can avoid the pathmax module.
5212
5213         utimens: remove dependency on dup2
5214         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
5215         to work around the Linux kernel bug.
5216         * modules/utimens (Depends-on): Remove dup2.
5217
5218 2011-09-18  Bruno Haible  <bruno@clisp.org>
5219
5220         inet_ntop, inet_pton: Look for it also in libresolv.
5221         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
5222         libnsl, search for it in libresolv.
5223         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5224         Needed on Solaris 7.
5225
5226 2011-09-18  Bruno Haible  <bruno@clisp.org>
5227
5228         accept, accept4 tests: Avoid link error on Solaris.
5229         * modules/accept-tests (Makefile.am): Link test-accept against
5230         $(LIBSOCKET).
5231         * modules/accept4-tests (Makefile.am): Link test-accept4 against
5232         $(LIBSOCKET).
5233
5234         accept4: Avoid link error on Solaris.
5235         * modules/accept4 (Link): New section.
5236
5237         socket functions: Avoid link errors on Solaris.
5238         * modules/accept (Depends-on): Add socketlib.
5239         (Link): New section.
5240         * modules/bind (Depends-on): Add socketlib.
5241         (Link): New section.
5242         * modules/connect (Depends-on): Add socketlib.
5243         (Link): New section.
5244         * modules/getpeername (Depends-on): Add socketlib.
5245         (Link): New section.
5246         * modules/getsockname (Depends-on): Add socketlib.
5247         (Link): New section.
5248         * modules/getsockopt (Depends-on): Add socketlib.
5249         (Link): New section.
5250         * modules/listen (Depends-on): Add socketlib.
5251         (Link): New section.
5252         * modules/recv (Depends-on): Add socketlib.
5253         (Link): New section.
5254         * modules/recvfrom (Depends-on): Add socketlib.
5255         (Link): New section.
5256         * modules/send (Depends-on): Add socketlib.
5257         (Link): New section.
5258         * modules/sendto (Depends-on): Add socketlib.
5259         (Link): New section.
5260         * modules/setsockopt (Depends-on): Add socketlib.
5261         (Link): New section.
5262         * modules/shutdown (Depends-on): Add socketlib.
5263         (Link): New section.
5264         * modules/socket (Depends-on): Add socketlib.
5265         (Link): New section.
5266
5267 2011-09-18  Bruno Haible  <bruno@clisp.org>
5268
5269         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
5270         * tests/test-ptsname.c (main): Terminate the test if it takes longer
5271         than 5 seconds.
5272         * modules/ptsname-tests (configure.ac): Test for alarm.
5273
5274 2011-09-18  Bruno Haible  <bruno@clisp.org>
5275
5276         posix_spawn_file_actions_add*: Fix module dependencies.
5277         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
5278         posix_spawn_file_actions_init.
5279         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
5280         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
5281
5282 2011-09-18  Bruno Haible  <bruno@clisp.org>
5283
5284         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
5285         * tests/test-rename.h (test_rename): Allow error code EEXIST.
5286         * tests/test-renameat.c (main): Likewise.
5287
5288 2011-09-18  Bruno Haible  <bruno@clisp.org>
5289
5290         Tests for module 'accept4'.
5291         * modules/accept4-tests: New file.
5292         * tests/test-accept4.c: New file.
5293
5294 2011-09-18  Bruno Haible  <bruno@clisp.org>
5295
5296         Tests for module 'accept'.
5297         * modules/accept-tests: New file.
5298         * tests/test-accept.c: New file.
5299
5300 2011-09-18  Bruno Haible  <bruno@clisp.org>
5301
5302         dup2: Support for MSVC.
5303         * lib/dup2.c: Include msvc-inval.h.
5304         (rpl_dup2): Handle invalid parameter notifications during dup2 and
5305         _get_osfhandle calls.
5306         * modules/dup2 (Depends-on): Add msvc-inval.
5307         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
5308
5309         New module 'msvc-inval'.
5310         * lib/msvc-inval.h: New file.
5311         * lib/msvc-inval.c: New file.
5312         * m4/msvc-inval.m4: New file.
5313         * modules/msvc-inval: New file.
5314
5315 2011-09-17  Bruno Haible  <bruno@clisp.org>
5316
5317         Tests for module 'pclose'.
5318         * modules/pclose-tests: New file.
5319
5320         New module 'pclose'.
5321         * lib/stdio.in.h (pclose): New declaration.
5322         * lib/pclose.c: New file.
5323         * m4/pclose.m4: New file.
5324         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
5325         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
5326         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
5327         * modules/pclose: New file.
5328         * modules/popen-tests (Depends-on): Add pclose.
5329         * modules/popen-safer-tests (Depends-on): Likewise.
5330         * doc/posix-functions/pclose.texi: Mention the new module.
5331
5332 2011-09-17  Bruno Haible  <bruno@clisp.org>
5333
5334         popen: Support for MSVC.
5335         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
5336         * lib/popen.c (popen): Provide alternate definition for native Windows.
5337         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
5338         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
5339         * modules/popen (Depends-on, configure.ac): Update condition.
5340         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
5341         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
5342         fixed.
5343
5344 2011-09-17  Bruno Haible  <bruno@clisp.org>
5345
5346         isnanl, isnand, isnanf: Work around MSVC bug.
5347         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
5348
5349 2011-09-17  Bruno Haible  <bruno@clisp.org>
5350
5351         sys_socket tests: Fix recent mistake.
5352         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
5353
5354 2011-09-17  Bruno Haible  <bruno@clisp.org>
5355
5356         putenv: Support for MSVC.
5357         * modules/putenv (Depends-on): Add environ.
5358         * lib/putenv.c (environ): Disable declaration.
5359         * lib/unistd.in.h: Update comment.
5360
5361 2011-09-17  Bruno Haible  <bruno@clisp.org>
5362
5363         math: Avoid macro redefinition warnings on MSVC.
5364         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
5365         Undefine before redefining.
5366
5367 2011-09-17  Bruno Haible  <bruno@clisp.org>
5368
5369         doc: Mention functions which are declared as macros.
5370         * doc/posix-functions/*[fl].texi: Mention that some functions are
5371         defined as macros with arguments only.
5372
5373 2011-09-17  Bruno Haible  <bruno@clisp.org>
5374
5375         Add dependencies to new dirent related modules.
5376         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
5377         * modules/fts (Depends-on): Likewise.
5378         * modules/glob (Depends-on): Likewise.
5379         * modules/savedir (Depends-on): Likewise.
5380         * modules/scandir (Depends-on): Likewise.
5381         * modules/dirent-safer (Depends-on): Add opendir, closedir.
5382         * modules/fdopendir (Depends-on): Add opendir.
5383
5384 2011-09-17  Bruno Haible  <bruno@clisp.org>
5385
5386         inet_pton: Support for MSVC on Windows Vista or newer.
5387         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
5388         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
5389         HAVE_DECL_INET_PTON is defined.
5390         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5391         On platforms with <winsock2.h>, test whether inet_pton is declared in
5392         <ws2tcpip.h>. If so, arrange to replace it.
5393         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5394         REPLACE_INET_PTON.
5395         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
5396         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
5397         (Depends-on, configure.ac): Update condition.
5398         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
5399
5400 2011-09-17  Bruno Haible  <bruno@clisp.org>
5401
5402         inet_ntop: Support for MSVC on Windows Vista or newer.
5403         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
5404         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
5405         HAVE_DECL_INET_NTOP is defined.
5406         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5407         On platforms with <winsock2.h>, test whether inet_ntop is declared in
5408         <ws2tcpip.h>. If so, arrange to replace it.
5409         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5410         REPLACE_INET_NTOP.
5411         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
5412         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
5413         (Depends-on, configure.ac): Update condition.
5414         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
5415
5416 2011-09-16  Eric Blake  <eblake@redhat.com>
5417
5418         test-fsync: yet another enhancement
5419         * tests/test-fsync.c (main): Also test behavior on read-only text
5420         file.
5421
5422 2011-09-16  Bruno Haible  <bruno@clisp.org>
5423
5424         Enhance fsync, fdatasync tests.
5425         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
5426         * tests/test-fdatasync.c (main): Likewise.
5427
5428 2011-09-16  Bruno Haible  <bruno@clisp.org>
5429
5430         Support for MSVC compiler: Ensure mode_t gets defined.
5431         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
5432         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5433         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5434         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
5435         * tests/test-fcntl-h.c: Check that mode_t is defined.
5436         * tests/test-sys_stat.c: Likewise.
5437         * tests/test-sys_types.c: Likewise.
5438         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
5439         * doc/posix-headers/sys_stat.texi: Likewise.
5440         * doc/posix-headers/sys_types.texi: Likewise.
5441
5442 2011-09-16  Bruno Haible  <bruno@clisp.org>
5443
5444         sys_stat: Support for MSVC.
5445         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
5446         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
5447         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
5448         MSVC.
5449
5450 2011-09-16  Bruno Haible  <bruno@clisp.org>
5451
5452         Support for MSVC compiler: Ensure off_t gets defined.
5453         * lib/unistd.in.h: Include <sys/types.h>.
5454         * tests/test-fcntl-h.c: Check that off_t is defined.
5455         * tests/test-sys_stat.c: Likewise.
5456         * tests/test-sys_types.c: Likewise.
5457
5458 2011-09-16  Eric Blake  <eblake@redhat.com>
5459
5460         fdatasync: port to Solaris
5461         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
5462         * modules/fdatasync (Link): Document it.
5463         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
5464
5465         fdatasync: port to MacOS X 10.7
5466         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
5467         declared.
5468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
5469         * modules/unistd (Makefile.am): Substitute it.
5470         * lib/unistd.in.h (fdatasync): Declare on MacOS.
5471         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
5472
5473         fdatasync: minor improvements
5474         * modules/fdatasync (Depends-on): Add condition for fsync.
5475         * lib/fdatasync.c (fdatasync): Add comment.
5476         * tests/test-unistd-c++.cc: Test fdatasync.
5477
5478         unistd: update refs to newer POSIX
5479         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
5480         Suggested by Bruno Haible.
5481
5482         fdatasync: new module
5483         * modules/fsync (Description): Document difference to fdatasync.
5484         * modules/fdatasync: New module.
5485         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
5486         * lib/fdatasync.c (fdatasync): Likewise.
5487         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
5488         defaults.
5489         * modules/unistd (Makefile.am): Set witnesses.
5490         * lib/unistd.in.h (fdatasync): Declare.
5491         * MODULES.html.sh: Document it.
5492         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
5493         * modules/fdatasync-tests: New test.
5494         * tests/test-fdatasync.c: Likewise.
5495
5496 2011-09-16  Eric Blake  <eblake@redhat.com>
5497
5498         test-fsync: enhance tests
5499         * modules/fsync-tests (Depends-on): Add errno, for mingw.
5500         * tests/test-fsync.c (main): Enhance test.
5501
5502 2011-09-15  Bruno Haible  <bruno@clisp.org>
5503
5504         Support for MSVC compiler: Ensure ssize_t gets defined.
5505         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
5506         * doc/posix-headers/stdio.texi: Likewise.
5507         * modules/stdio (Depends-on): Add ssize_t.
5508         * modules/sys_socket (Depends-on): Likewise.
5509         * modules/sys_types (Depends-on): Likewise.
5510         * modules/sys_uio (Depends-on): Likewise.
5511         * modules/unistd (Depends-on): Likewise.
5512         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
5513         * tests/test-sys_types.c: Check that ssize_t is defined.
5514
5515 2011-09-14  Bruno Haible  <bruno@clisp.org>
5516
5517         Avoid using #, the m4 comment starter character, near brackets.
5518         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
5519         delimiter character in sed expressions.
5520         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5521         Suggested by Eric Blake.
5522
5523         Properly quote AC_CHECK_DECLS' 4th argument.
5524         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
5525         argument.
5526         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5527         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5528         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5529         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5530         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5531         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
5532         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
5533         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
5534         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
5535         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5536         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
5537         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5538         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5539         * m4/isinf.m4 (gl_ISINF): Likewise.
5540         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5541         * m4/readutmp.m4 (gl_READUTMP): Likewise.
5542         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5543         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5544         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5545         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5546         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5547         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5548         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
5549         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5550         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5551         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5552         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
5553         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5554         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5555         Reported by Eric Blake.
5556
5557         Properly quote AC_CHECK_DECL's 4th argument.
5558         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
5559         argument.
5560         * m4/argp.m4 (gl_ARGP): Likewise.
5561         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5562         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5563         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5564         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5565         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
5566         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
5567         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5568         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5569         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5570         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5571         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5572         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5573         Reported by Eric Blake.
5574
5575 2011-09-14  Eric Blake  <eblake@redhat.com>
5576
5577         opendir: avoid compile warning
5578         * lib/opendir.c (includes): Always include errno.h.
5579         Reported by Tatsuro MATSUOKA.
5580
5581 2011-09-14  Jim Meyering  <meyering@redhat.com>
5582
5583         maint.mk: sc_tight_scope: propagate failure from sub-make
5584         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
5585         Reported by Martin von Gagern.
5586
5587 2011-09-13  Bruno Haible  <bruno@clisp.org>
5588
5589         tempname: Support for MSVC.
5590         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
5591         MSVC.
5592         * modules/tempname (Depends-on): Add fcntl-h.
5593
5594 2011-09-13  Bruno Haible  <bruno@clisp.org>
5595
5596         sys_time: Support for MSVC.
5597         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
5598         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
5599         include <winsock2.h>.
5600         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
5601         function declarations that collide with POSIX.
5602         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
5603         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5604
5605 2011-09-13  Bruno Haible  <bruno@clisp.org>
5606
5607         stat: Support for MSVC.
5608         * lib/stat.c: Include pathmax.h.
5609         * modules/stat (Depends-on): Add pathmax.
5610
5611         pathmax: Support for native Windows.
5612         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
5613
5614 2011-09-12  Bruno Haible  <bruno@clisp.org>
5615
5616         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
5617         * lib/dirent.in.h (struct dirent): New type.
5618         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
5619         DT_WHT): New macros.
5620         (DIR): New type.
5621         (opendir, closedir): Declare only if the module 'opendir' is enabled.
5622         (readdir, rewinddir): New declarations.
5623         * lib/dirent-private.h: New file.
5624         * lib/opendir.c: New file.
5625         * lib/readdir.c: New file.
5626         * lib/rewinddir.c: New file.
5627         * lib/closedir.c: New file.
5628         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
5629         * m4/opendir.m4: New file.
5630         * m4/readdir.m4: New file.
5631         * m4/rewinddir.m4: New file.
5632         * m4/closedir.m4: New file.
5633         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
5634         REPLACE_CLOSEDIR here.
5635         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
5636         readdir, rewinddir are declared.
5637         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
5638         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
5639         HAVE_REWINDDIR, HAVE_CLOSEDIR.
5640         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
5641         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
5642         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
5643         * modules/opendir: New file.
5644         * modules/readdir: New file.
5645         * modules/rewinddir: New file.
5646         * modules/closedir: New file.
5647         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
5648         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
5649         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
5650         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
5651         * NEWS: Mention the 'fchdir' change.
5652
5653 2011-09-11  Bruno Haible  <bruno@clisp.org>
5654
5655         asm-underscore.m4: Support for MSVC.
5656         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
5657         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
5658
5659 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
5660
5661         Doc about crypt functions.
5662         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5663         needing for _GNU_SOURCE to get crypt.
5664         * doc/posix-functions/encrypt.texi: Likewise.
5665         * doc/posix-functions/setkey.texi: Likewise.
5666
5667 2011-09-11  Bruno Haible  <bruno@clisp.org>
5668
5669         doc: Update regarding MSVC 9.
5670         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
5671         tested".
5672         * doc/posix-functions/*.texi: Update with info about MSVC 9.
5673         * doc/posix-headers/*.texi: Likewise.
5674         * doc/pastposix-functions/*.texi: Likewise.
5675         * doc/glibc-functions/*.texi: Likewise.
5676         * doc/glibc-headers/*.texi: Likewise.
5677
5678 2011-09-11  Bruno Haible  <bruno@clisp.org>
5679
5680         unistd et al.: Don't assume <unistd.h> exists.
5681         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
5682         does not exist.
5683         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
5684         exist. But include <stdlib.h>.
5685         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
5686         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
5687         symlink() does not exist.
5688         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
5689         include <io.h> instead.
5690         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
5691         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
5692         include <direct.h> instead.
5693         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5694         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5695         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
5696         <io.h> instead.
5697         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
5698         correctly if the system does not have hard links.
5699         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
5700         <direct.h> instead.
5701         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
5702         it when looking for function declarations.
5703         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
5704         <direct.h> and <io.h> instead.
5705         * doc/posix-headers/unistd.texi: More details about MSVC problem.
5706
5707 2011-09-11  Bruno Haible  <bruno@clisp.org>
5708
5709         strcase: Support for MSVC.
5710         * modules/strcase (Status, Notice): Remove obsoletion mark.
5711         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
5712         * doc/posix-functions/strncasecmp.texi: Likewise.
5713
5714         strings: Don't assume <strings.h> exists.
5715         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
5716         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
5717         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
5718         * doc/posix-headers/strings.texi: Mention the MSVC problem.
5719
5720 2011-09-11  Bruno Haible  <bruno@clisp.org>
5721
5722         dirent: Don't assume <dirent.h> exists.
5723         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
5724         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
5725         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
5726         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
5727
5728 2011-09-11  Bruno Haible  <bruno@clisp.org>
5729
5730         Fix wint_t on MSVC.
5731         * lib/wchar.in.h (wint_t): On MSVC, override it.
5732         * lib/wctype.in.h (wint_t): Likewise.
5733         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
5734         MSVC.
5735         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
5736         * doc/posix-headers/wctype.texi: Likewise.
5737
5738 2011-09-11  Bruno Haible  <bruno@clisp.org>
5739
5740         sys_types: Fix typo.
5741         * lib/sys_types.in.h: Fix typo in comment.
5742         Reported by Paul Eggert.
5743
5744         Support for MSVC compiler: Ensure size_t gets defined.
5745         * modules/strings (Depends-on): Add 'sys_types'.
5746         * modules/sys_uio (Depends-on): Likewise.
5747         * lib/sys_uio.in.h: Update comment.
5748
5749         C++ tests for module 'sys_types'.
5750         * modules/sys_types-c++-tests: New file.
5751         * tests/test-sys_types-c++.cc: New file.
5752
5753         Tests for module 'sys_types'.
5754         * modules/sys_types-tests: New file.
5755         * tests/test-sys_types.c: New file.
5756
5757         New module 'sys_types'.
5758         * lib/sys_types.in.h: New file.
5759         * m4/sys_types_h.m4: New file.
5760         * modules/sys_types: New file.
5761         * doc/posix-headers/sys_types.texi: Mention the new module and the
5762         size_t problem on MSVC 9.
5763
5764 2011-09-11  Bruno Haible  <bruno@clisp.org>
5765
5766         Support for MSVC compiler: Avoid division by a literal 0.
5767         * lib/math.in.h (NAN): Define through a function call also on MSVC.
5768         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
5769         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
5770         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
5771         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
5772         * tests/infinity.h: New file.
5773         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
5774         on MSVC.
5775         * tests/test-ceilf1.c: Include infinity.h.
5776         (main): Use Infinityf.
5777         * tests/test-ceil1.c: Include infinity.h.
5778         (main): Use Infinityd.
5779         * tests/test-ceill.c: Include infinity.h.
5780         (main): Use Infinityl.
5781         * tests/test-dprintf-posix.c: Include infinity.h.
5782         (test_function): Use Infinityd.
5783         * tests/test-floorf1.c: Include infinity.h.
5784         (main): Use Infinityf.
5785         * tests/test-floor1.c: Include infinity.h.
5786         (main): Use Infinityd.
5787         * tests/test-floorl.c: Include infinity.h.
5788         (main): Use Infinityl.
5789         * tests/test-fprintf-posix.c: Include infinity.h.
5790         (test_function): Use Infinityd.
5791         * tests/test-frexp.c: Include infinity.h.
5792         (main): Use Infinityd.
5793         * tests/test-frexpl.c: Include infinity.h.
5794         (main): Use Infinityl.
5795         * tests/test-isfinite.c: Include infinity.h.
5796         (test_isfinitef): Use Infinityf.
5797         (test_isfinited): Use Infinityd.
5798         (test_isfinitel): Use Infinityl.
5799         * tests/test-isinf.c: Include infinity.h.
5800         (test_isinff): Use Infinityf.
5801         (test_isinfd): Use Infinityd.
5802         (test_isinfl): Use Infinityl.
5803         * tests/test-isnan.c: Include infinity.h.
5804         (test_float): Use Infinityf.
5805         (test_double): Use Infinityd.
5806         (test_long_double): Use Infinityl.
5807         * tests/test-isnanf.h: Include infinity.h.
5808         (main): Use Infinityf.
5809         * tests/test-isnand.h: Include infinity.h.
5810         (main): Use Infinityd.
5811         * tests/test-isnanl.h: Include infinity.h.
5812         (main): Use Infinityl.
5813         * tests/test-ldexpl.c: Include infinity.h.
5814         (main): Use Infinityl.
5815         * tests/test-printf-posix.h: Include infinity.h.
5816         (test_function): Use Infinityd.
5817         * tests/test-roundf1.c: Include infinity.h.
5818         (main): Use Infinityf.
5819         * tests/test-round1.c: Include infinity.h.
5820         (main): Use Infinityd.
5821         * tests/test-roundl.c: Include infinity.h.
5822         (main): Use Infinityl.
5823         * tests/test-signbit.c: Include infinity.h.
5824         (test_signbitf): Use Infinityf.
5825         (test_signbitd): Use Infinityd.
5826         (test_signbitl): Use Infinityl.
5827         * tests/test-snprintf-posix.h: Include infinity.h.
5828         (test_function): Use Infinityd, Infinityl.
5829         * tests/test-sprintf-posix.h: Include infinity.h.
5830         (test_function): Use Infinityd, Infinityl.
5831         * tests/test-truncf1.c: Include infinity.h.
5832         (main): Use Infinityf.
5833         * tests/test-trunc1.c: Include infinity.h.
5834         (main): Use Infinityd.
5835         * tests/test-truncl.c: Include infinity.h.
5836         (main): Use Infinityl.
5837         * tests/test-vasnprintf-posix.c: Include infinity.h.
5838         (test_function): Use Infinityd, Infinityl.
5839         * tests/test-vasprintf-posix.c: Include infinity.h.
5840         (test_function): Use Infinityd, Infinityl.
5841         * modules/ceilf-tests (Files): Add tests/infinity.h.
5842         * modules/ceil-tests (Files): Likewise.
5843         * modules/ceill-tests (Files): Likewise.
5844         * modules/dprintf-posix-tests (Files): Likewise.
5845         * modules/floorf-tests (Files): Likewise.
5846         * modules/floor-tests (Files): Likewise.
5847         * modules/floorl-tests (Files): Likewise.
5848         * modules/fprintf-posix-tests (Files): Likewise.
5849         * modules/frexp-tests (Files): Likewise.
5850         * modules/frexp-nolibm-tests (Files): Likewise.
5851         * modules/frexpl-tests (Files): Likewise.
5852         * modules/frexpl-nolibm-tests (Files): Likewise.
5853         * modules/isfinite-tests (Files): Likewise.
5854         * modules/isinf-tests (Files): Likewise.
5855         * modules/isnan-tests (Files): Likewise.
5856         * modules/isnanf-tests (Files): Likewise.
5857         * modules/isnanf-nolibm-tests (Files): Likewise.
5858         * modules/isnand-tests (Files): Likewise.
5859         * modules/isnand-nolibm-tests (Files): Likewise.
5860         * modules/isnanl-tests (Files): Likewise.
5861         * modules/isnanl-nolibm-tests (Files): Likewise.
5862         * modules/ldexpl-tests (Files): Likewise.
5863         * modules/printf-posix-tests (Files): Likewise.
5864         * modules/roundf-tests (Files): Likewise.
5865         * modules/round-tests (Files): Likewise.
5866         * modules/roundl-tests (Files): Likewise.
5867         * modules/signbit-tests (Files): Likewise.
5868         * modules/snprintf-posix-tests (Files): Likewise.
5869         * modules/sprintf-posix-tests (Files): Likewise.
5870         * modules/truncf-tests (Files): Likewise.
5871         * modules/trunc-tests (Files): Likewise.
5872         * modules/truncl-tests (Files): Likewise.
5873         * modules/vasnprintf-posix-tests (Files): Likewise.
5874         * modules/vasprintf-posix-tests (Files): Likewise.
5875         * modules/vdprintf-posix-tests (Files): Likewise.
5876         * modules/vfprintf-posix-tests (Files): Likewise.
5877         * modules/vprintf-posix-tests (Files): Likewise.
5878         * modules/vsnprintf-posix-tests (Files): Likewise.
5879         * modules/vsprintf-posix-tests (Files): Likewise.
5880         * modules/xprintf-posix-tests (Files): Likewise.
5881
5882 2011-09-11  Bruno Haible  <bruno@clisp.org>
5883
5884         Ensure pid_t gets defined.
5885         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
5886         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5887         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5888         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5889         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5890         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5891         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
5892         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5893         * tests/test-fcntl-h.c: Check that pid_t is defined.
5894         * tests/test-sched.c: Likewise.
5895         * tests/test-termios.c: Likewise.
5896         * tests/test-time.c: Likewise.
5897         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
5898         * doc/posix-headers/signal.texi: Likewise.
5899         * doc/posix-headers/sys_types.texi: Likewise.
5900         * doc/posix-headers/time.texi: Likewise.
5901
5902 2011-09-11  Bruno Haible  <bruno@clisp.org>
5903
5904         acl: Fix compilation on Solaris 10 (older version).
5905         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
5906         of ACE_EVERYONE.
5907         * lib/set-mode-acl.c (qset_acl): Likewise.
5908         Reported by Christian Jullien <eligis@orange.fr>.
5909
5910 2011-09-10  Bruno Haible  <bruno@clisp.org>
5911
5912         iconv, unsetenv: Add support for MSVC compiler.
5913         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
5914         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
5915
5916 2011-09-10  Bruno Haible  <bruno@clisp.org>
5917
5918         *printf: Add support for MSVC compiler.
5919         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
5920         handles the exception caused by the %n directive. When cross-compiling,
5921         guess no on native Windows.
5922         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5923         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
5924         emulate it through vsnprintf.
5925         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
5926         * doc/posix-functions/dprintf.texi: Update documentation regarding
5927         MSVC 9.
5928         * doc/posix-functions/fprintf.texi: Likewise.
5929         * doc/posix-functions/printf.texi: Likewise.
5930         * doc/posix-functions/snprintf.texi: Likewise.
5931         * doc/posix-functions/sprintf.texi: Likewise.
5932         * doc/posix-functions/swprintf.texi: Likewise.
5933         * doc/posix-functions/vdprintf.texi: Likewise.
5934         * doc/posix-functions/vfprintf.texi: Likewise.
5935         * doc/posix-functions/vprintf.texi: Likewise.
5936         * doc/posix-functions/vsnprintf.texi: Likewise.
5937         * doc/posix-functions/vsprintf.texi: Likewise.
5938         * doc/glibc-functions/asprintf.texi: Likewise.
5939         * doc/glibc-functions/obstack_printf.texi: Likewise.
5940         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5941         * doc/glibc-functions/vasprintf.texi: Likewise.
5942
5943 2011-09-10  Bruno Haible  <bruno@clisp.org>
5944
5945         nocrash: Add support for native Windows.
5946         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
5947
5948 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
5949             Bruno Haible  <bruno@clisp.org>
5950
5951         absolute-header, include-next: Add support for MSVC compiler.
5952         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
5953         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
5954         directory separator in #line directives.
5955         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
5956         recognize also backslash as directory separator in #line directives.
5957
5958 2011-09-08  Jim Meyering  <meyering@redhat.com>
5959
5960         maint.mk: mark the post-release commit log with "maint: " prefix
5961         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
5962         one-line commit-log summary.
5963
5964 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
5965             Bruno Haible  <bruno@clisp.org>
5966
5967         Doc about crypt functions.
5968         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
5969         systems.
5970         * doc/posix-functions/encrypt.texi: Likewise.
5971         * doc/posix-functions/setkey.texi: Likewise.
5972
5973 2011-09-08  Simon Josefsson  <simon@josefsson.org>
5974
5975         * lib/gc.h: Fix copyright header.
5976
5977 2011-09-07  Bruno Haible  <bruno@clisp.org>
5978
5979         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
5980         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
5981         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
5982
5983 2011-09-07  Bruno Haible  <bruno@clisp.org>
5984
5985         openat: Work around compilation error with OSF/1 5.1 DTK cc.
5986         * lib/fopen.c: Use different syntax for include of <stdio.h>.
5987         * lib/freopen.c: Likewise.
5988         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
5989         * lib/lstat.c: Likewise.
5990         * lib/stat.c: Likewise.
5991         * lib/open.c: Use different syntax for include of <fcntl.h>.
5992         * lib/openat.c: Include fcntl.h again, explicitly.
5993
5994 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
5995
5996         parse-datetime: document the newly accepted format
5997         * doc/parse-datetime.texi (Combined date and time of day items):
5998         New section.
5999
6000 2011-09-06  Bruno Haible  <bruno@clisp.org>
6001
6002         acl: Fix a test failure on newer Solaris 10 with ZFS.
6003         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
6004         ENOSYS as no ACL.
6005         Reported by Jim Meyering.
6006
6007 2011-09-06  Bruno Haible  <bruno@clisp.org>
6008
6009         acl: Update for AIX >= 5.3 with NFS.
6010         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
6011         ENOSYS as no ACL.
6012
6013         acl: Fix a test failure on AIX >= 5.3 with NFS.
6014         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
6015         as no ACL.
6016
6017 2011-09-06  Bruno Haible  <bruno@clisp.org>
6018
6019         acl: Fix a test failure on IRIX 6.5 with NFS.
6020         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
6021         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
6022         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
6023         * lib/copy-acl.c (qcopy_acl): Likewise.
6024
6025 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
6026
6027         openat: port to AIX 7.1 with large files
6028         AIX 7.1 does a "#define openat open64at" if large files are in use,
6029         so we can't simply #undef openat.  Use the orig_openat trick (similar
6030         to orig_open in lib/open.c) to work around the problem.  Problem
6031         reported by Kevin Brott for GNU tar, in the thread containing
6032         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
6033         * lib/openat.c (__need_system_fcntl_h): Define first.
6034         Include <fcntl.h> and <sys/types.h> before undefining.
6035         (orig_openat) [HAVE_OPENAT]: New inline function.
6036         (openat) [HAVE_OPENAT]: Do not undef.
6037         (rpl_openat): Use orig_openat, not openat.
6038
6039 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
6040             Bruno Haible  <bruno@clisp.org>
6041
6042         acl: Avoid errors on NonStop Kernel.
6043         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
6044         ENOTSUP errors.
6045
6046 2011-09-05  Bruno Haible  <bruno@clisp.org>
6047
6048         acl: Clean up Solaris code.
6049         * lib/acl-internal.h: Remove no-op #if.
6050         * lib/file-has-acl.c: Likewise.
6051         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
6052         * lib/copy-acl.c (qcopy_acl): Likewise.
6053
6054 2011-09-05  Bruno Haible  <bruno@clisp.org>
6055
6056         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
6057         binaries built on the original Solaris 10.
6058         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
6059         trivial.
6060
6061 2011-09-05  Bruno Haible  <bruno@clisp.org>
6062
6063         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
6064         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
6065         10.
6066         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
6067         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
6068         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
6069         instead of acl_get, facl_get, acl_set, facl_set.
6070
6071 2011-09-05  Bruno Haible  <bruno@clisp.org>
6072
6073         copy-file: Try unit tests on more file systems.
6074         * tests/test-copy-file-1.sh: New file.
6075         * tests/test-copy-file-2.sh: New file.
6076         * modules/copy-file-tests (Files): Add them.
6077         (Makefile.am): Add them to TESTS.
6078
6079         acl: Try unit tests on more file systems.
6080         * tests/test-file-has-acl-1.sh: New file.
6081         * tests/test-file-has-acl-2.sh: New file.
6082         * tests/test-set-mode-acl-1.sh: New file.
6083         * tests/test-set-mode-acl-2.sh: New file.
6084         * tests/test-copy-acl-1.sh: New file.
6085         * tests/test-copy-acl-2.sh: New file.
6086         * modules/acl-tests (Files): Add them.
6087         (Makefile.am): Add them to TESTS.
6088
6089 2011-09-04  Bruno Haible  <bruno@clisp.org>
6090
6091         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
6092         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
6093         10.
6094         (OLD_ALLOW, OLD_DENY): New macros.
6095         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
6096         ACE_ACCESS_ALLOWED_ACE_TYPE.
6097         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
6098         ACE_ACCESS_DENIED_ACE_TYPE.
6099         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
6100         (NEW_ACE_EXECUTE): Fix value.
6101         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
6102         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
6103         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
6104         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
6105         NEW_ACE_SYNCHRONIZE): New macros.
6106         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
6107         instead of acl_fromtext, acl_set, facl_set.
6108         Fixes a coreutils/tests/cp/perm failure.
6109
6110 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
6111
6112         openat: test for fstatat (..., 0) bug
6113         Further testing with tar suggests that fstatat (..., 0)
6114         does not work in general, on AIX 7.1; see
6115         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
6116         So, give up entirely on AIX 7.1's fstatat, and fall back on our
6117         replacement fstatat (which is what older AIX releases were using
6118         anyway).
6119         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
6120         use is now changed to orig_fstatat.  This was probably the right
6121         thing to do anyway.
6122         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
6123         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
6124         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
6125         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
6126         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
6127         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
6128         if the bug is found.
6129
6130         openat: test for fstatat (AT_FDCWD, ..., 0) bug
6131         This tests for another fstatat bug on AIX 7.1:
6132         fstatat (AT_FDCWD, ..., 0) does not work.  See
6133         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
6134         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
6135         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
6136         (rpl_fstatat): Adjust so that it works around either (or both)
6137         bugs if present.
6138         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
6139
6140 2011-09-03  Karl Berry  <karl@gnu.org>
6141
6142         * doc/regex.texi (Character Class Operators): Avoid literal ":"
6143         in index entries.
6144
6145 2011-09-02  Bruno Haible  <bruno@clisp.org>
6146
6147         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
6148         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
6149         values of AR, ARFLAGS, RANLIB.
6150         Reported by John W. Eaton <jwe@gnu.org> for Octave.
6151
6152 2011-09-02  Bruno Haible  <bruno@clisp.org>
6153
6154         Find 'ar' program that fits with --host argument.
6155         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
6156
6157 2011-09-02  Bruno Haible  <bruno@clisp.org>
6158
6159         tests: init.sh: Support any non-GNU diff.
6160         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
6161         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
6162         Solaris 8.
6163
6164 2011-09-02  Bruno Haible  <bruno@clisp.org>
6165
6166         tests: init.sh: work also with any non-GNU diff that supports -u
6167         * tests/init.sh: Relax check for diff -u support.
6168         Rather than checking for GNU diff via --version, simply check
6169         for support for -u itself.  Useful at least on OpenBSD 4.9,
6170         AIX 7.1, IRIX 6.5, and Solaris 10.
6171
6172 2011-09-01  Bruno Haible  <bruno@clisp.org>
6173
6174         strtoimax, strtoumax: Document problem on HP-UX 11.
6175         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
6176         * doc/posix-functions/strtoumax.texi: Likewise.
6177
6178 2011-09-01  Bruno Haible  <bruno@clisp.org>
6179
6180         strtoumax: Avoid link error on OSF/1 with DTK cc.
6181         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
6182         defined as a function.
6183         * modules/strtoumax (Depends-on, configure.ac): Test only whether
6184         strtoumax is defined, not whether it is declared.
6185
6186 2011-09-01  Bruno Haible  <bruno@clisp.org>
6187
6188         strtoimax: Avoid link error on OSF/1 with DTK cc.
6189         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
6190         defined as a function.
6191         * modules/strtoimax (Depends-on, configure.ac): Test only whether
6192         strtoimax is defined, not whether it is declared.
6193
6194 2011-09-01  Bruno Haible  <bruno@clisp.org>
6195
6196         imaxdiv: Avoid link error on OSF/1 with DTK cc.
6197         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
6198         as a function.
6199         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
6200         whether it is declared.
6201
6202 2011-09-01  Bruno Haible  <bruno@clisp.org>
6203
6204         imaxabs: Avoid link error on OSF/1 with DTK cc.
6205         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
6206         as a function.
6207         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
6208         whether it is declared.
6209
6210 2011-09-01  Bruno Haible  <bruno@clisp.org>
6211
6212         Tests for module 'strtoumax'.
6213         * modules/strtoumax-tests: New file.
6214         * tests/test-strtoumax.c: New file.
6215
6216         Tests for module 'strtoimax'.
6217         * modules/strtoimax-tests: New file.
6218         * tests/test-strtoimax.c: New file.
6219
6220         Tests for module 'imaxdiv'.
6221         * modules/imaxdiv-tests: New file.
6222         * tests/test-imaxdiv.c: New file.
6223
6224         Tests for module 'imaxabs'.
6225         * modules/imaxabs-tests: New file.
6226         * tests/test-imaxabs.c: New file.
6227
6228 2011-09-01  Bruno Haible  <bruno@clisp.org>
6229
6230         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
6231         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
6232         pthread_create.
6233
6234 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6235
6236         openat: work around AIX 7.1 fstatat issue
6237         This should fix the problem that was not properly fixed
6238         in the previous change, dated 2011-08-30.
6239         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
6240         __need_system_stat_h defined.
6241         (orig_fstatat) [HAVE_FSTATAT]: New function.
6242         (rpl_fstatat): Go back to the old way of doing things,
6243         except call orig_fstatat instead of fstatat.
6244         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
6245         Remove unnecessary check whether fstatat fills in st_size etc.
6246
6247 2011-09-01  Bruno Haible  <bruno@clisp.org>
6248
6249         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
6250         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
6251         just include the system's header.
6252
6253 2011-08-31  Jim Meyering  <meyering@redhat.com>
6254
6255         tests: avoid spurious assertion failure in test-float.c on ppc64
6256         * tests/test-float.c (test_long_double): Comment out an assertion,
6257         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
6258         with gcc-4.4.4.
6259
6260         maint: indent with spaces, not TABs
6261         I need to get in the habit of running gnulib's "make check".
6262         Both of these would have been caught.
6263         * m4/largefile.m4: Indent with spaces, not TABs.
6264         * lib/parse-datetime.y (iso_8601_time): Likewise.
6265         Spotted by Pádraig Brady.
6266
6267         test-parse-datetime.c: accommodate a relatively strict gcc warning
6268         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
6269         to avoid a warning from gcc's -Werror=missing-declarations.
6270         Insert a few spaces-before-funcall-parenthesis.
6271
6272 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
6273
6274         parse-datetime: accept ISO 8601 date and time rep with "T" separator
6275         The parser now accepts ISO 8601 date-time strings with "T" as the
6276         separator.  It has long parsed dates like "2004-02-29 16:21:42"
6277         with a space between the date and time strings.  Now it also parses
6278         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
6279         variants like "2004-02-29T16:21:42.333-07:00"
6280         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
6281         of day representation using the 'T' separator character.
6282         * doc/parse-datetime.texi (General date syntax): replace use of
6283         deprecated --iso-8601 option with --rfc-3339 in example of date
6284         command output formats that can be parsed.
6285         * tests/test-parse-datetime.c (tm_diff): New function, taken from
6286         lib/parse-datetime.y.
6287         (gmt_offset): New function.
6288         (main): Add additional test cases to validate ISO8601 extended
6289         date and time of day parsing.
6290
6291 2011-08-31  Bruno Haible  <bruno@clisp.org>
6292
6293         freopen: Documentation.
6294         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
6295         name.
6296         Reported by Claudio Bley <claudio.bley@gmail.com>.
6297
6298 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
6299
6300         freopen: Don't crash if the filename argument is NULL.
6301         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
6302         NULL.
6303
6304 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
6305
6306         openat: work around AIX 7.1 fstatat bug
6307         Problem reported by Kevin Brott for GNU tar, in the thread containing
6308         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
6309         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
6310         FSTATAT_ST_SIZE_ETC_BROKEN.
6311         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
6312         rpl_fstatat.
6313         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
6314         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
6315         AC_CHECK_FUNCS_ONCE for fstatat.
6316         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
6317         fchmodat, mkdirat, openat and unlinkat.
6318
6319 2011-08-30  Bruno Haible  <bruno@clisp.org>
6320
6321         Avoid endless recursions if config.h includes some header files.
6322         * lib/fopen.c (__need_FILE): Define already before including config.h.
6323         * lib/freopen.c (__need_FILE): Likewise.
6324         * lib/open.c (__need_system_fcntl_h): Likewise.
6325         * lib/stat.c (__need_system_sys_stat_h): Likewise.
6326         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
6327         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6328
6329 2011-08-25  Karl Berry  <karl@gnu.org>
6330
6331         * config/srclist.txt (ylwrap): new try.
6332         * build-aux/ylwrap: new file.
6333
6334 2011-08-23  Bruno Haible  <bruno@clisp.org>
6335
6336         tmpdir: Use a good default directory on native Windows.
6337         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
6338         (P_tmpdir): Default to _P_tmpdir on native Windows.
6339         (path_search): On native Windows, try the value returned by GetTempPath
6340         before trying P_tmpdir.
6341         * modules/tmpdir (Depends-on): Add pathmax.
6342         Suggested by John Darrington <john@darrington.wattle.id.au>.
6343
6344 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
6345
6346         doc: fix typo in README-release
6347         * top/README-release: Capitalize first word of a sentence.
6348
6349 2011-08-19  Jim Meyering  <meyering@redhat.com>
6350
6351         fts: do not exhaust memory when processing million-entry directories
6352         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
6353         directory would require about 256*N bytes of memory.  Thus, it was
6354         easy to construct a directory too large to be processed by any of
6355         those tools.  With this change, fts' maximum memory utilization is
6356         now limited to around 30MB.
6357         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
6358         (fts_read): When we've processed the final entry (i.e., when
6359         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
6360         using the parent entry to read any remaining entries.  Dispatch
6361         depending on what fts_build returns:
6362         - NULL+stop, aka failure: stop
6363         - NULL otherwise: move up in the dir hierarchy
6364         - non-NULL: handle this new entry
6365         (fts_build): Declare and use new local, continue_readdir.
6366         Prepare to be called from fts_read, when the entries
6367         from a partially-read directory have just been exhausted.
6368         In that case, we'll skip the opendir and instead use the parent's
6369         fts_dirp and derive dir_fd from that.
6370         Finally, in the readdir loop, if we read max_entries entries,
6371         exit the loop ensuring *not* to call closedir.  This is required
6372         so that fts_dirp can be reused on a subsequent call.
6373         Prompted by Ben England's report of memory exhaustion in find
6374         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
6375
6376         maint: fts: move decl of `dp' down into while loop; split a long line
6377         * lib/fts.c (fts_build): No semantic change.
6378
6379         fts: add/use new struct member, fts_dirp
6380         We are about to use this to manage any directory with
6381         too many entries to read all of them into memory at once.
6382         To do that, we'll need to save the DIR* pointer in each
6383         affected FTSENT struct.
6384         * lib/fts_.h: Include <dirent.h>.
6385         (struct FTSENT) [fts_dirp]: New member.
6386         * lib/fts.c (closedir_and_clear): Define.
6387         Use it in place of closedir so that we are sure to
6388         clear the new fts_dirp member when done with it.
6389         (fts_alloc): Initialize the new member.
6390         (fts_lfree): Free, if needed.
6391
6392         maint: fts: give __opendir2 a new parameter and rename
6393         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
6394         than surreptitiously using sole caller's "dir_fd".
6395         (fts_opendir): Rename from __opendir2.
6396
6397         maint: fts.c: remove __opendir2's now-unused parameter, oflag
6398         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
6399
6400         maint: fts.c: correct off-by-one indentation
6401         * lib/fts.c (fts_build): Correct indentation, change style
6402         of a couple of block comments, and bracing style.
6403
6404         maint: fts.c: move __opendir2 #define "up" out of function body
6405         * lib/fts.c (__opendir2): Move "up".  No semantic change.
6406
6407         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
6408         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
6409         out for a long time and besides was useful only on BSD systems.
6410
6411 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6412
6413         regex: port to Stratus OpenVOS
6414         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
6415         define to empty, rather than attempting nonportable optimizations.
6416         Problem reported by Paul Green in:
6417         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
6418         and fix suggested by Eric Blake in:
6419         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
6420
6421 2011-08-17  Eric Blake  <eblake@redhat.com>
6422
6423         getcwd: fix test failures on mingw
6424         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
6425         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
6426         test if long directory cannot be created, and allow mingw errno.
6427
6428         getcwd-lgpl: fix m4 to match relaxed test for BSD
6429         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
6430         (gl_FUNC_GETCWD_SIGNATURE): New macro.
6431         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
6432         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
6433         signature problem.
6434
6435         getcwd: fix compilation on mingw64
6436         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
6437         getcwd.
6438         Reported by Marc-André Lureau.
6439
6440         pipe2: silence compiler warning
6441         * lib/pipe2.c (pipe2): Hide label if it is not used.
6442
6443 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
6444
6445         relocatable-prog: fix link error
6446         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
6447         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
6448         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
6449         into modules/relocatable-lib without noticing that
6450         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
6451         also needs to build relocatable.c.
6452
6453 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6454
6455         getaddrinfo: fix sh typo in gai_strerrorA decl checking
6456         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
6457         shell code: it contained a 'break' that was not in a loop.
6458         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
6459         via a shell-language loop; this may have been true in old Autoconf
6460         versions, but it's not true in Autoconf 2.68.  I found this bug
6461         when testing coreutils git on Solaris 8, whose shell complains
6462         about the syntax error.
6463
6464 2011-08-12  Simon Josefsson  <simon@josefsson.org>
6465
6466         * lib/base64.c: Fix comment to reference RFC 4648.
6467         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
6468         <gvtulder@gmail.com>.
6469
6470 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
6471
6472         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
6473
6474         po/Makefile.in.in: fix make -q problem
6475         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
6476         rule, since there's no file named 'check-macro-version' and its
6477         use as a file breaks make -q.
6478         (all): Don't depend on check-macro-version.
6479         (CHECK_MACRO_VERSION): New macro.
6480         (stamp-po): Use it.
6481
6482         configmake: fix make -q problem
6483         * modules/configmake (configmake.h): Update configmake.h's time stamp
6484         even if the file does not change.  Otherwise, 'make -q' fails.
6485         Problem reported by Simon Josefsson in
6486         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
6487
6488 2011-08-11  Jim Meyering  <meyering@redhat.com>
6489
6490         git-version-gen: correct the advice in a comment
6491         * build-aux/git-version-gen: Correct comment.
6492         Don't recommend to list .tarball-version in .gitignore.
6493
6494 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6495
6496         base64: fix off-by-one buffer size bug
6497         Problem and (trivial) fix reported by Gijs van Tulder in
6498         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
6499         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
6500         * tests/test-base64.c (main): Catch the bug.
6501
6502 2011-08-10  Eric Blake  <eblake@redhat.com>
6503
6504         closein: correct comments
6505         * lib/closein.c (close_stdin): Improve comments.
6506
6507 2011-08-09  Bruno Haible  <bruno@clisp.org>
6508
6509         More tests for 'fseeko'.
6510         * tests/test-fseeko3.c: New file, from Eric Blake.
6511         * tests/test-fseeko3.sh: New file.
6512         * modules/fseeko-tests (Files): Add them.
6513         (TESTS): Add test-fseeko3.sh.
6514         (check_PROGRAMS): Add test-fseeko3.
6515
6516 2011-08-09  Eric Blake  <eblake@redhat.com>
6517
6518         fseeko: remove unneeded hack
6519         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
6520
6521         fseeko: fix bug on glibc
6522         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
6523         Reported by John W. Eaton.
6524
6525 2011-08-08  Bruno Haible  <bruno@clisp.org>
6526
6527         unictype/base: Fix interoperability with preinstalled libunistring.
6528         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
6529         Reported by Simon Josefsson.
6530
6531 2011-08-08  Bruno Haible  <bruno@clisp.org>
6532
6533         iswblank: Detect declaration correctly.
6534         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
6535         AC_CHECK_DECLS invocation.
6536
6537 2011-08-08  Bruno Haible  <bruno@clisp.org>
6538
6539         tcgetsid: Detect declaration correctly.
6540         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
6541         AC_CHECK_DECLS invocation.
6542         Reported by Simon Josefsson.
6543
6544 2011-08-08  Eric Blake  <eblake@redhat.com>
6545
6546         largefile: fix typo that regressed large file support
6547         * modules/largefile (configure.ac-early): Fix section name.
6548
6549 2011-08-06  Karl Berry  <karl@gnu.org>
6550
6551         * MODULES.html.sh (func_all_files): _Noreturn is no longer
6552         a separate module.
6553
6554 2011-08-05  Simon Josefsson  <simon@josefsson.org>
6555
6556         openat: Fix warnings and commens when building unlinkat.c on Hurd.
6557         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
6558         get prototype for free.
6559
6560 2011-08-04  Bruno Haible  <bruno@clisp.org>
6561
6562         Tests for module 'pathmax'.
6563         * modules/pathmax-tests: New file.
6564         * tests/test-pathmax.c: New file.
6565
6566         canonicalize-lgpl: Support larger filenames on the Hurd.
6567         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
6568         Reported by Paul Eggert.
6569
6570         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
6571         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
6572         * lib/chdir-long.h: Include pathmax.h.
6573         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
6574         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
6575         (PATH_MAX): Remove code that is done by pathmax.h.
6576         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
6577         * lib/tmpfile.c: Add a comment.
6578         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
6579         * modules/chdir-long (Depends-on): Add pathmax.
6580         * modules/getcwd (Depends-on): Add pathmax.
6581         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
6582         is not defined.
6583         * doc/posix-headers/limits.texi: Mention the pathmax module.
6584         * NEWS: Mention the change.
6585
6586 2011-08-02  Bruno Haible  <bruno@clisp.org>
6587
6588         pthread_sigmask: Actually use results of gl_THREADLIB.
6589         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
6590         gl_THREADLIB, not gl_[]THREADLIB.
6591         Reported by Eric Blake.
6592
6593 2011-08-02  Jim Meyering  <meyering@redhat.com>
6594
6595         maint.mk: relax the default _gl_TS_function_match regexp
6596         * top/maint.mk (_gl_TS_function_match): Don't require at least one
6597         space between function name and "(" in an "extern" declaration.
6598         That would fail to match a decl with no space there: extern void foo();
6599
6600 2011-07-31  Iain Nicol  <iain@thenicols.net>
6601
6602         git-version-gen: document that EXTRA_DIST must include .version
6603         * build-aux/git-version-gen: In the how-to-use comment, document
6604         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
6605         will fail when run from an unpacked distribution tarball.
6606
6607 2011-08-01  Bruno Haible  <bruno@clisp.org>
6608
6609         wctype-h: Fix last change.
6610         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
6611         REPLACE_TOWLOWER to 0.
6612         Reported by Sam Steingold <sds@gnu.org>.
6613
6614 2011-07-31  Bruno Haible  <bruno@clisp.org>
6615
6616         frexpl: Update autoconf test.
6617         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
6618         according to changes of 2011-06-20.
6619
6620 2011-07-31  Bruno Haible  <bruno@clisp.org>
6621
6622         sys_utsname: Add support for Minix.
6623         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
6624         <sys/utsname.h>.
6625         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6626         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
6627
6628 2011-07-31  Bruno Haible  <bruno@clisp.org>
6629
6630         strings: Add support for Minix.
6631         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
6632         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6633         * doc/posix-headers/strings.texi: Document the Minix problem.
6634
6635 2011-07-31  Bruno Haible  <bruno@clisp.org>
6636
6637         wctype-h: Add support for Minix.
6638         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
6639         REPLACE_TOWLOWER.
6640         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
6641         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
6642         REPLACE_ISWCNTRL.
6643
6644 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
6645
6646         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
6647         This is a performance improvement for 64-bit hosts: it causes the
6648         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
6649
6650 2011-07-31  Bruno Haible  <bruno@clisp.org>
6651
6652         stdioext: Add support for Minix.
6653         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
6654         * lib/fpurge.c (fpurge): Likewise.
6655         * lib/freadahead.c (freadahead): Likewise.
6656         * lib/freadable.c (freadable): Likewise.
6657         * lib/freading.c (freading): Likewise.
6658         * lib/freadptr.c (freadptr): Likewise.
6659         * lib/freadseek.c (freadptrinc): Likewise.
6660         * lib/fseeko.c (rpl_fseeko): Likewise.
6661         * lib/fseterr.c (fseterr): Likewise.
6662         * lib/fwritable.c (fwritable): Likewise.
6663         * lib/fwriting.c (fwriting): Likewise.
6664         * lib/fflush.c (clear_ungetc_buffer): Update comment.
6665         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
6666
6667 2011-07-31  Bruno Haible  <bruno@clisp.org>
6668
6669         errno: Port to Minix.
6670         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
6671         ECONNABORTED are defined.
6672         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
6673         GNULIB_defined_ECONNABORTED): New macros.
6674         * lib/strerror-override.h (strerror_override): Test also
6675         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
6676         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
6677         ECONNABORTED.
6678         * doc/posix-headers/errno.texi: Mention the Minix problem.
6679
6680 2011-07-31  Bruno Haible  <bruno@clisp.org>
6681
6682         Work around declaration collisions on Minix.
6683         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
6684         defined, set REPLACE_MBSINIT.
6685         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
6686         defined, set REPLACE_MBRTOWC.
6687         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
6688         set REPLACE_MBRLEN.
6689         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
6690         defined, set REPLACE_MBSRTOWCS.
6691         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
6692         defined, set REPLACE_WCRTOMB.
6693         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
6694         defined, set REPLACE_WCSRTOMBS.
6695
6696 2011-07-31  Bruno Haible  <bruno@clisp.org>
6697
6698         Add support for Minix with ACK compiler.
6699         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
6700         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
6701         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
6702
6703 2011-07-31  Bruno Haible  <bruno@clisp.org>
6704
6705         Documentation about Minix.
6706         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
6707         * doc/glibc-headers/*.texi: Likewise.
6708         * doc/posix-functions/*.texi: Likewise.
6709         * doc/glibc-functions/*.texi: Likewise.
6710
6711 2011-07-31  Bruno Haible  <bruno@clisp.org>
6712
6713         snippet/warn-on-use: Fix indentation.
6714         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
6715
6716 2011-07-25  Jim Meyering  <meyering@redhat.com>
6717
6718         tests: test-update-copyright.sh: remove unnecessary "rm" commands
6719         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
6720         commands.
6721
6722 2011-07-27  Jim Meyering  <meyering@redhat.com>
6723
6724         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
6725         * top/maint.mk (gl_extract_significant_defines_): Now that
6726         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
6727         gnulib/lib/signal.in.h, and now that we recommend to
6728         define-if-undefined those two symbols in application code,
6729         we must filter them out of the "significant" list.
6730         This avoids a "make syntax-check" failure in coreutils.
6731
6732 2011-07-26  Eric Blake  <eblake@redhat.com>
6733
6734         warnings: add comments about previous patch
6735         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
6736         * m4/include_next.m4: Likewise.
6737         * m4/warn-on-use.m4: Likewise.
6738         * m4/warnings.m4: Likewise, and simplify use.
6739         Suggested by Stefano Lattarini.
6740
6741         include-next, warnings: support older autoconf
6742         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
6743         AS_VAR_PUSHDEF in a way that works with older autoconf.
6744         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
6745         Reported by Daniel P. Berrange.
6746
6747 2011-07-25  Bruno Haible  <bruno@clisp.org>
6748
6749         fseek, ftell: Fix doc.
6750         * doc/posix-functions/fseek.texi: Reword statement about
6751         AC_SYS_LARGEFILE.
6752         * doc/posix-functions/ftell.texi: Likewise.
6753
6754 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6755             Bruno Haible  <bruno@clisp.org>
6756
6757         Add dependencies to the 'largefile' module.
6758         * modules/fopen (Depends-on): Add 'largefile'.
6759         * modules/freopen (Depends-on): Likewise.
6760         * modules/fseeko (Depends-on): Likewise.
6761         * modules/ftello (Depends-on): Likewise.
6762         * modules/glob (Depends-on): Likewise.
6763         * modules/lseek (Depends-on): Likewise.
6764         * modules/lstat (Depends-on): Likewise.
6765         * modules/mkostemp (Depends-on): Likewise.
6766         * modules/mkostemps (Depends-on): Likewise.
6767         * modules/mkstemp (Depends-on): Likewise.
6768         * modules/mkstemps (Depends-on): Likewise.
6769         * modules/open (Depends-on): Likewise.
6770         * modules/openat (Depends-on): Likewise.
6771         * modules/pread (Depends-on): Likewise.
6772         * modules/pwrite (Depends-on): Likewise.
6773         * modules/scandir (Depends-on): Likewise.
6774         * modules/stat (Depends-on): Likewise.
6775         * modules/tmpfile (Depends-on): Likewise.
6776         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
6777         since the containing module now depends on the largefile module.
6778         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
6779         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
6780         off_t is fixed by gnulib.
6781         * doc/posix-functions/freopen.texi: Likewise.
6782         * doc/posix-functions/fseeko.texi: Likewise.
6783         * doc/posix-functions/fstatat.texi: Likewise.
6784         * doc/posix-functions/ftello.texi: Likewise.
6785         * doc/posix-functions/glob.texi: Likewise.
6786         * doc/posix-functions/lseek.texi: Likewise.
6787         * doc/posix-functions/lstat.texi: Likewise.
6788         * doc/posix-functions/mkstemp.texi: Likewise.
6789         * doc/posix-functions/open.texi: Likewise.
6790         * doc/posix-functions/openat.texi: Likewise.
6791         * doc/posix-functions/pread.texi: Likewise.
6792         * doc/posix-functions/pwrite.texi: Likewise.
6793         * doc/posix-functions/scandir.texi: Likewise.
6794         * doc/posix-functions/stat.texi: Likewise.
6795         * doc/posix-functions/tmpfile.texi: Likewise.
6796         * doc/glibc-functions/mkostemp.texi: Likewise.
6797         * doc/glibc-functions/mkostemps.texi: Likewise.
6798         * doc/glibc-functions/mkstemps.texi: Likewise.
6799
6800 2011-07-25  Bruno Haible  <bruno@clisp.org>
6801
6802         fcntl: Move AC_LIBOBJ invocation to module description.
6803         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
6804         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
6805
6806         fcntl: Remove call-in from fchdir.m4.
6807         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
6808         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
6809
6810         dup3: Remove potential call-in from fchdir.m4.
6811         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
6812         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
6813
6814         dup2: Move AC_LIBOBJ invocation to module description.
6815         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
6816         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
6817         Don't invoke AC_LIBOBJ.
6818         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
6819
6820         dup2: Remove call-in from fchdir.m4.
6821         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
6822         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
6823
6824         fclose: Move AC_LIBOBJ invocation to module description.
6825         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
6826         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
6827         to 1.
6828         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
6829
6830         fclose: Remove call-in from close.m4.
6831         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
6832         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
6833
6834         close: Move AC_LIBOBJ invocation to module description.
6835         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
6836         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
6837         1.
6838         * modules/close (configure.ac): Invoke AC_LIBOBJ.
6839
6840         close: Remove call-in from fchdir.m4.
6841         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
6842         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
6843
6844         open: Move AC_LIBOBJ invocation to module description.
6845         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
6846         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
6847         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
6848
6849         open: Remove call-in from fchdir.m4.
6850         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
6851         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
6852
6853         fchdir: Start to remove gl_REPLACE_* idiom.
6854         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
6855         (gl_FUNC_FCHDIR): Invoke it.
6856
6857 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6858
6859         * lib/ftell.c (ftell): Comment out cast.
6860
6861         close: use gl_REPLACE_FCLOSE only if defined
6862         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
6863         is defined.  The close module doesn't depend on the fclose module
6864         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
6865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
6866         I reproduced the problem with "./gnulib-tool --test close sys_socket".
6867
6868 2011-07-24  Jim Meyering  <meyering@redhat.com>
6869
6870         test-select.h: avoid warning when using gcc's -Wmissing-declarations
6871         * tests/test-select.h (test_function): Declare as "static".
6872
6873 2011-07-24  Bruno Haible  <bruno@clisp.org>
6874
6875         doc: Mention the effects of AC_SYS_LARGEFILE.
6876         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
6877         on this function.
6878         * doc/posix-functions/aio_error.texi: Likewise.
6879         * doc/posix-functions/aio_fsync.texi: Likewise.
6880         * doc/posix-functions/aio_read.texi: Likewise.
6881         * doc/posix-functions/aio_return.texi: Likewise.
6882         * doc/posix-functions/aio_suspend.texi: Likewise.
6883         * doc/posix-functions/aio_write.texi: Likewise.
6884         * doc/posix-functions/fgetpos.texi: Likewise.
6885         * doc/posix-functions/fopen.texi: Likewise.
6886         * doc/posix-functions/freopen.texi: Likewise.
6887         * doc/posix-functions/fsetpos.texi: Likewise.
6888         * doc/posix-functions/fstatvfs.texi: Likewise.
6889         * doc/posix-functions/ftruncate.texi: Likewise.
6890         * doc/posix-functions/ftw.texi: Likewise.
6891         * doc/posix-functions/getrlimit.texi: Likewise.
6892         * doc/posix-functions/glob.texi: Likewise.
6893         * doc/posix-functions/lio_listio.texi: Likewise.
6894         * doc/posix-functions/lockf.texi: Likewise.
6895         * doc/posix-functions/mkstemp.texi: Likewise.
6896         * doc/posix-functions/mmap.texi: Likewise.
6897         * doc/posix-functions/nftw.texi: Likewise.
6898         * doc/posix-functions/openat.texi: Likewise.
6899         * doc/posix-functions/opendir.texi: Likewise.
6900         * doc/posix-functions/posix_fadvise.texi: Likewise.
6901         * doc/posix-functions/posix_fallocate.texi: Likewise.
6902         * doc/posix-functions/pread.texi: Likewise.
6903         * doc/posix-functions/pwrite.texi: Likewise.
6904         * doc/posix-functions/readdir.texi: Likewise.
6905         * doc/posix-functions/readdir_r.texi: Likewise.
6906         * doc/posix-functions/rewinddir.texi: Likewise.
6907         * doc/posix-functions/scandir.texi: Likewise.
6908         * doc/posix-functions/seekdir.texi: Likewise.
6909         * doc/posix-functions/setrlimit.texi: Likewise.
6910         * doc/posix-functions/statvfs.texi: Likewise.
6911         * doc/posix-functions/telldir.texi: Likewise.
6912         * doc/posix-functions/tmpfile.texi: Likewise.
6913         * doc/posix-functions/truncate.texi: Likewise.
6914         * doc/glibc-functions/fallocate.texi: Likewise.
6915         * doc/glibc-functions/fstatfs.texi: Likewise.
6916         * doc/glibc-functions/fts_children.texi: Likewise.
6917         * doc/glibc-functions/fts_read.texi: Likewise.
6918         * doc/glibc-functions/getdirentries.texi: Likewise.
6919         * doc/glibc-functions/mkostemp.texi: Likewise.
6920         * doc/glibc-functions/mkostemps.texi: Likewise.
6921         * doc/glibc-functions/mkstemps.texi: Likewise.
6922         * doc/glibc-functions/preadv.texi: Likewise.
6923         * doc/glibc-functions/pwritev.texi: Likewise.
6924         * doc/glibc-functions/sendfile.texi: Likewise.
6925         * doc/glibc-functions/statfs.texi: Likewise.
6926
6927 2011-07-24  Bruno Haible  <bruno@clisp.org>
6928
6929         doc: Fix typo.
6930         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
6931
6932 2011-07-24  Bruno Haible  <bruno@clisp.org>
6933
6934         doc: Mention fsusage.
6935         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
6936
6937 2011-07-24  Bruno Haible  <bruno@clisp.org>
6938
6939         doc: Mention new glibc headers and functions.
6940         * doc/glibc-headers/gshadow.texi: New file.
6941         * doc/glibc-functions/endsgent.texi: New file.
6942         * doc/glibc-functions/fgetsgent.texi: New file.
6943         * doc/glibc-functions/fgetsgent_r.texi: New file.
6944         * doc/glibc-functions/getsgent.texi: New file.
6945         * doc/glibc-functions/getsgent_r.texi: New file.
6946         * doc/glibc-functions/getsgnam.texi: New file.
6947         * doc/glibc-functions/getsgnam_r.texi: New file.
6948         * doc/glibc-functions/putsgent.texi: New file.
6949         * doc/glibc-functions/setsgent.texi: New file.
6950         * doc/glibc-functions/sgetsgent.texi: New file.
6951         * doc/glibc-functions/sgetsgent_r.texi: New file.
6952         * doc/glibc-functions/malloc_info.texi: New file.
6953         * doc/glibc-functions/preadv.texi: New file.
6954         * doc/glibc-functions/pwritev.texi: New file.
6955         * doc/glibc-functions/register_printf_modifier.texi: New file.
6956         * doc/glibc-functions/register_printf_specifier.texi: New file.
6957         * doc/glibc-functions/register_printf_type.texi: New file.
6958         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
6959         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
6960         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
6961         * doc/glibc-functions/pthread_getname_np.texi: New file.
6962         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
6963         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
6964         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
6965         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
6966         * doc/glibc-functions/pthread_setname_np.texi: New file.
6967         * doc/glibc-functions/pthread_sigqueue.texi: New file.
6968         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
6969         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
6970         * doc/glibc-functions/qsort_r.texi: New file.
6971         * doc/glibc-functions/quick_exit.texi: New file.
6972         * doc/glibc-functions/syncfs.texi: New file.
6973         * doc/gnulib.texi: Include them.
6974         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
6975         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
6976         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
6977         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
6978         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
6979         * doc/glibc-functions/execvpe.texi: Likewise.
6980
6981 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6982
6983         ftell: don't include <unistd.h>
6984         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
6985         guaranteed to define off_t, and the ftell module depends on the
6986         stdio module.
6987
6988         ftell: do not assume wraparound signed arithmetic
6989         * lib/ftell.c: Include <limits.h>.
6990         (ftell): Don't assume wraparound signed arithmetic.
6991
6992 2011-07-24  Bruno Haible  <bruno@clisp.org>
6993
6994         close: No longer depend on module 'fclose'.
6995         * modules/close (Depends-on): Remove fclose.
6996         * NEWS: Mention the change.
6997         Suggested by Sam Steingold <sds@gnu.org>.
6998
6999 2011-07-24  Bruno Haible  <bruno@clisp.org>
7000
7001         fsusage: Enable large volume support on AIX >= 5.2.
7002         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
7003         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
7004         instead of STAT_STATVFS.
7005         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
7006
7007         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
7008         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
7009         f_blocks field only on MacOS X.
7010
7011         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
7012         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
7013         * modules/fsusage (Depends-on): Add largefile.
7014
7015 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7016
7017         * README: Modernize discussion of signed integers.
7018         Assuming overflow wraparound is no longer safe.
7019         Mention ones' complement and signed magnitude.
7020
7021 2011-07-22  Bruno Haible  <bruno@clisp.org>
7022
7023         select tests, pselect tests: Refactor.
7024         * tests/test-select.h: New file, extracted from tests/test-select.c.
7025         (select_fn): New type.
7026         (test, do_select, do_select_nowait, do_select_wait, test_tty,
7027         test_connect_first, test_accept_first, test_pair, test_socket_pair,
7028         test_pipe): Add my_select argument.
7029         (test_function): Renamed from main. Add my_select argument.
7030         * tests/test-select.c: Move most code to tests/test-select.h. Include
7031         test-select.h.
7032         * modules/select-tests (Files): Add tests/test-select.h.
7033         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
7034         (my_select, main): New functions.
7035         * modules/pselect-tests (Files): Add tests/test-select.h,
7036         tests/macros.h, tests/signature.h.
7037         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
7038         (configure.ac): Check for <sys/wait.h>.
7039
7040 2011-07-22  Bruno Haible  <bruno@clisp.org>
7041
7042         sys_select tests: Check the signature of FD_*.
7043         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
7044         signature tests from here...
7045         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
7046         here.
7047         * modules/sys_select-tests (Files): Add tests/signature.h.
7048
7049 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
7050
7051         largefile: new module, replacing large-inode
7052         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
7053         * MODULES.html.sh: Add largefile, remove large-inode.
7054         * modules/largefile, m4/largefile.m4: New files.
7055         * modules/large-inode, m4/large-inode.m4: Remove.
7056
7057         fsusage: port to MacOS X 10.7 with 4 TiB file systems
7058         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
7059         implementations that use only 32 bits to count blocks.
7060         On typical hosts with 1024-byte blocks, this fails with file
7061         systems as small as 4 TiB.  Problem reported by Herb Wartens
7062         <http://debbugs.gnu.org/9140> and this should also fix a similar
7063         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
7064
7065         large-inode: New module
7066         * MODULES.html.sh: Add it.
7067         * modules/large-inode, m4/large-inode.m4: New files.
7068
7069         extensions: Enable extensions on MacOS X 10.5 and later.
7070         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
7071
7072 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
7073
7074         file-has-acl: use acl_extended_file_nofollow if available
7075         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
7076         (acl_extended_file): New macro.
7077         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
7078         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
7079
7080 2011-07-21  Bruno Haible  <bruno@clisp.org>
7081
7082         Declare system functions in a way that works with C++.
7083         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
7084         declare fdopendir as extern "C".
7085         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
7086         declare frexpl as extern "C".
7087         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
7088         declare gai_strerror as extern "C".
7089         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
7090         programs, declare gai_strerror as extern "C".
7091         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
7092         declare getlogin_r as extern "C".
7093         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
7094         as extern "C".
7095         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
7096         declare ldexpl as extern "C".
7097         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
7098         as extern "C".
7099         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
7100         program, declare getmntinfo as extern "C".
7101         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
7102         stpncpy as extern "C".
7103         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
7104         program, declare __xpg_strerror_r as extern "C".
7105         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
7106         strndup as extern "C".
7107         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
7108         declare memset and bzero as extern "C".
7109         Reported by Sam Steingold <sds@gnu.org>.
7110
7111 2011-07-12  Jim Meyering  <meyering@redhat.com>
7112
7113         maint.mk: prohibit inclusion of "verify.h" without use
7114         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
7115
7116 2011-07-19  Pádraig Brady  <P@draigBrady.com>
7117
7118         timer-time: A new module to check for timer_settime()
7119         * m4/timer_time.m4: Check for the posix function.
7120         * modules/timer-time: Add the new module.
7121         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
7122         Mention it.
7123
7124 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
7125             Bruno Haible  <bruno@clisp.org>
7126
7127         pthread_sigmask: assume POSIX threads if --avoid=threadlib
7128         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
7129         not defined, assume POSIX threads and look for pthread_sigmask in
7130         $LIBS, without changing $CPPFLAGS.
7131
7132 2011-07-19  Bruno Haible  <bruno@clisp.org>
7133
7134         strstr: Update cross-compilation guess.
7135         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
7136         CPUs, guess no, in view of glibc
7137         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
7138         Suggested by Eric Blake. Reported by Reuben Thomas.
7139
7140 2011-07-19  Pádraig Brady  <P@draigBrady.com>
7141
7142         getopt-gnu: suppress core dumps from detection code
7143         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
7144         to suppress core dumps that may well occur on glibc systems.
7145         * modules/getopt-gnu: Depend on nocrash.
7146
7147 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7148
7149         pthread_sigmask: ensure usleep is declared
7150         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
7151         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
7152
7153 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
7154
7155         doc: Document NonStop portability issues.
7156         * doc/posix-functions/sigaction.texi (sigaction):
7157         * doc/posix-headers/signal.texi (signal.h):
7158         Document NonStop.  See Joachim Schmitz in
7159         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
7160
7161 2011-07-15  Bruno Haible  <bruno@clisp.org>
7162
7163         ffsl, ffsll: Avoid unportable behaviour.
7164         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
7165
7166 2011-07-15  Bruno Haible  <bruno@clisp.org>
7167
7168         ffs: More tests.
7169         * tests/test-ffs.c (NBITS): New macro.
7170         (main): Add more tests.
7171         * tests/test-ffsl.c (NBITS): New macro.
7172         (main): Add more tests.
7173         * tests/test-ffsll.c (NBITS): New macro.
7174         (main): Add more tests.
7175
7176 2011-07-15  Eric Blake  <eblake@redhat.com>
7177
7178         ffsl, ffsll: new modules
7179         * modules/ffsl: New file.
7180         * modules/ffsll: Likewise.
7181         * m4/ffsl.m4: Likewise.
7182         * m4/ffsll.m4: Likewise.
7183         * lib/ffsl.c: Likewise.
7184         * lib/ffsl.h: Likewise.
7185         * lib/ffsll.c: Likewise.
7186         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
7187         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
7188         * modules/string (Makefile.am): Substitute witnesses.
7189         * lib/strings.in.h (ffsl, ffsll): Declare.
7190         * modules/ffsl-tests: New test file.
7191         * modules/ffsll-tests: Likewise.
7192         * tests/test-ffsl.c: Likewise.
7193         * tests/test-ffsll.c: Likewise.
7194         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7195         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
7196         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
7197
7198         ffs: fix m4 prerequisite
7199         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
7200
7201         ffs: avoid undefined behavior
7202         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
7203         * tests/test-ffs.c (naive, main): Avoid signed shifts.
7204         Reported by Bruno Haible.
7205
7206 2011-07-12  Bruno Haible  <bruno@clisp.org>
7207
7208         pthread_sigmask: Rely on module 'threadlib'.
7209         * modules/pthread_sigmask (Depends-on): Add threadlib.
7210         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
7211         is defined.
7212
7213 2011-07-12  Bruno Haible  <bruno@clisp.org>
7214
7215         regex: Depend on module 'strcase'.
7216         * modules/regex (Depends-on): Add strcase, for strcasecmp().
7217
7218 2011-07-12  Jim Meyering  <meyering@redhat.com>
7219
7220         warn-on-use: fix typo in file name
7221         * modules/snippet/warn-on-use (Files): Correct file name:
7222         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
7223
7224 2011-07-12  Bruno Haible  <bruno@clisp.org>
7225
7226         strings: Document module.
7227         * doc/posix-headers/strings.texi: Mention module 'strings'.
7228
7229 2011-07-12  Bruno Haible  <bruno@clisp.org>
7230
7231         Rename module '_Noreturn' to 'snippet/_Noreturn'.
7232         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
7233         (Files, Makefile.am): Update.
7234         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
7235         * modules/stdlib (Depends-on): Update.
7236
7237 2011-07-12  Bruno Haible  <bruno@clisp.org>
7238
7239         * NEWS: Mention the changes.
7240
7241         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
7242         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
7243         (Files, Makefile.am): Update.
7244         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
7245         * modules/arpa_inet (Depends-on): Update.
7246         * modules/ctype (Depends-on): Update.
7247         * modules/dirent (Depends-on): Update.
7248         * modules/fcntl-h (Depends-on): Update.
7249         * modules/glob (Depends-on): Update.
7250         * modules/iconv-h (Depends-on): Update.
7251         * modules/inttypes-incomplete (Depends-on): Update.
7252         * modules/langinfo (Depends-on): Update.
7253         * modules/locale (Depends-on): Update.
7254         * modules/math (Depends-on): Update.
7255         * modules/netdb (Depends-on): Update.
7256         * modules/poll-h (Depends-on): Update.
7257         * modules/pty (Depends-on): Update.
7258         * modules/search (Depends-on): Update.
7259         * modules/signal (Depends-on): Update.
7260         * modules/spawn (Depends-on): Update.
7261         * modules/stdio (Depends-on): Update.
7262         * modules/stdlib (Depends-on): Update.
7263         * modules/string (Depends-on): Update.
7264         * modules/strings (Depends-on): Update.
7265         * modules/sys_file (Depends-on): Update.
7266         * modules/sys_ioctl (Depends-on): Update.
7267         * modules/sys_select (Depends-on): Update.
7268         * modules/sys_socket (Depends-on): Update.
7269         * modules/sys_stat (Depends-on): Update.
7270         * modules/sys_time (Depends-on): Update.
7271         * modules/sys_times (Depends-on): Update.
7272         * modules/sys_utsname (Depends-on): Update.
7273         * modules/sys_wait (Depends-on): Update.
7274         * modules/termios (Depends-on): Update.
7275         * modules/time (Depends-on): Update.
7276         * modules/unistd (Depends-on): Update.
7277         * modules/wchar (Depends-on): Update.
7278         * modules/wctype-h (Depends-on): Update.
7279         * MODULES.html.sh (Support for building libraries and executables):
7280         Update.
7281
7282         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
7283         * modules/snippet/unused-parameter: Renamed from
7284         modules/unused-parameter.
7285         (Files, Makefile.am): Update.
7286         * build-aux/snippet/unused-parameter.h: Renamed from
7287         build-aux/unused-parameter.h.
7288         * modules/selinux-h (Depends-on): Update.
7289         * modules/unistr/base (Depends-on): Update.
7290         * MODULES.html.sh (Core language properties): Update.
7291
7292         Rename module 'link-warning' to 'snippet/link-warning'.
7293         * modules/snippet/link-warning: Renamed from modules/link-warning.
7294         (Files, Makefile.am): Update.
7295         * build-aux/snippet/link-warning.h: Renamed from
7296         build-aux/link-warning.h.
7297         * MODULES.html.sh (Support for building libraries and executables):
7298         Update.
7299
7300         Rename module 'c++defs' to 'snippet/c++defs'.
7301         * modules/snippet/c++defs: Renamed from modules/c++defs.
7302         (Files, Makefile.am): Update.
7303         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
7304         * modules/arpa_inet (Depends-on): Update.
7305         * modules/ctype (Depends-on): Update.
7306         * modules/dirent (Depends-on): Update.
7307         * modules/fcntl-h (Depends-on): Update.
7308         * modules/glob (Depends-on): Update.
7309         * modules/iconv-h (Depends-on): Update.
7310         * modules/langinfo (Depends-on): Update.
7311         * modules/locale (Depends-on): Update.
7312         * modules/math (Depends-on): Update.
7313         * modules/netdb (Depends-on): Update.
7314         * modules/poll-h (Depends-on): Update.
7315         * modules/pty (Depends-on): Update.
7316         * modules/search (Depends-on): Update.
7317         * modules/signal (Depends-on): Update.
7318         * modules/spawn (Depends-on): Update.
7319         * modules/stdio (Depends-on): Update.
7320         * modules/stdlib (Depends-on): Update.
7321         * modules/string (Depends-on): Update.
7322         * modules/strings (Depends-on): Update.
7323         * modules/sys_ioctl (Depends-on): Update.
7324         * modules/sys_select (Depends-on): Update.
7325         * modules/sys_socket (Depends-on): Update.
7326         * modules/sys_stat (Depends-on): Update.
7327         * modules/sys_time (Depends-on): Update.
7328         * modules/sys_wait (Depends-on): Update.
7329         * modules/termios (Depends-on): Update.
7330         * modules/time (Depends-on): Update.
7331         * modules/unistd (Depends-on): Update.
7332         * modules/wchar (Depends-on): Update.
7333         * modules/wctype-h (Depends-on): Update.
7334
7335         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
7336         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
7337         (Files, Makefile.am): Update.
7338         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
7339         * modules/argv-iter (Depends-on): Update.
7340         * modules/arpa_inet (Depends-on): Update.
7341         * modules/dirent (Depends-on): Update.
7342         * modules/fcntl-h (Depends-on): Update.
7343         * modules/fnmatch (Depends-on): Update.
7344         * modules/getopt-posix (Depends-on): Update.
7345         * modules/glob (Depends-on): Update.
7346         * modules/iconv-h (Depends-on): Update.
7347         * modules/inttypes-incomplete (Depends-on): Update.
7348         * modules/locale (Depends-on): Update.
7349         * modules/math (Depends-on): Update.
7350         * modules/netdb (Depends-on): Update.
7351         * modules/search (Depends-on): Update.
7352         * modules/signal (Depends-on): Update.
7353         * modules/spawn (Depends-on): Update.
7354         * modules/stdio (Depends-on): Update.
7355         * modules/stdlib (Depends-on): Update.
7356         * modules/string (Depends-on): Update.
7357         * modules/strings (Depends-on): Update.
7358         * modules/sys_socket (Depends-on): Update.
7359         * modules/sys_stat (Depends-on): Update.
7360         * modules/sys_time (Depends-on): Update.
7361         * modules/sys_times (Depends-on): Update.
7362         * modules/sys_utsname (Depends-on): Update.
7363         * modules/time (Depends-on): Update.
7364         * modules/unistd (Depends-on): Update.
7365         * modules/wchar (Depends-on): Update.
7366         * MODULES.html.sh (Support for building libraries and executables):
7367         Update.
7368
7369 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7370
7371         Improvements on _Noreturn and related modules.
7372
7373         modules/_Exit-tests: test _Noreturn too
7374         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
7375         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
7376         (main): Use them.
7377
7378         stdnoreturn, stdnoreturn-tests: remove modules
7379         They're not needed here and a bit premature for use elsewhere.  See
7380         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
7381         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7382         * tests/test-stdnoreturn.c: Remove files.
7383         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
7384         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
7385         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
7386         and using noreturn.
7387         * modules/openat, modules/sigpipe-die, modules/xalloc:
7388         * modules/xmemdup0, modules/xstrtol:
7389         Remove dependency on stdnoreturn.
7390
7391         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
7392         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
7393         Reparenthesize to avoid GCC warning.
7394         Support Microsoft's syntax.
7395         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
7396
7397         _Noreturn-tests: remove module
7398         * modules/_Noreturn-tests: Remove.
7399         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
7400         * tests/test-_Noreturn.c: Remove.
7401         * tests/test-stdnoreturn.c: Merge from the old
7402         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
7403
7404 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7405
7406         _Noreturn, stdnoreturn, and related modules.
7407
7408         * top/maint.mk: Adjust to new noreturn support.
7409         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
7410         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
7411
7412         xalloc: use stdnoreturn.h
7413         * lib/xalloc.h: Include <stdnoreturn.h>.
7414         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7415         * modules/xalloc (Depends-on): Add stdnoreturn.
7416
7417         xstrtol: use stdnoreturn.h
7418         * lib/xstrtol.h: Include <stdnoreturn.h>.
7419         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7420         * modules/xstrtol (Depends-on): Add stdnoreturn.
7421
7422         xmemdup0: use stdnoreturn.h
7423         * lib/xmemdup0.h: Include <stdnoreturn.h>.
7424         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7425         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
7426
7427         sigpipe-die: use stdnoreturn.h
7428         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
7429         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7430         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
7431
7432         openat: use stdnoreturn.h
7433         * lib/openat.h: Include <stdnoreturn.h>.
7434         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7435         * modules/openat (Depends-on): Add stdnoreturn.
7436
7437         * lib/openat-die.c (openat_save_fail): Modernize comment.
7438
7439         * lib/xalloc-die.c (xalloc_die): Modernize comment.
7440
7441         * lib/glthread/thread.h: Modernize comment.
7442
7443         obstack: use _Noreturn
7444         * lib/obstack.c (__attribute__): Remove macro.
7445         (print_and_abort): Use _Noreturn.
7446
7447         c-stack: use _Noreturn
7448         * lib/c-stack.c (die, overflow_handler, segv_handler):
7449         Use _Noreturn rather than __attribute__((noreturn)).
7450
7451         argmatch-tests, exclude_tests: use _Noreturn
7452         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
7453         Remove.
7454         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
7455
7456         stdlib: use _Noreturn
7457         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
7458         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
7459         * modules/stdlib (Depends-on): Add _Noreturn.
7460         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
7461
7462         stdnoreturn-tests: new module
7463         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
7464
7465         stdnoreturn: new module
7466         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
7467         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
7468
7469         _Noreturn-tests: new module
7470         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
7471
7472         _Noreturn: new module
7473         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
7474         New section, mentioning it.
7475         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
7476
7477         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
7478
7479 2011-07-11  Eric Blake  <eblake@redhat.com>
7480
7481         ffs: new module
7482         * modules/ffs: New file.
7483         * m4/ffs.m4: Likewise.
7484         * lib/ffs.c: Likewise.
7485         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
7486         * modules/strings (Makefile.am): Substitute witness.
7487         (Depends-on): Add c++defs.
7488         * lib/strings.in.h (ffs): Declare.
7489         * modules/ffs-tests: New test file.
7490         * tests/test-ffs.c: Test new module.
7491         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7492         * doc/posix-functions/ffs.texi (ffs): Likewise.
7493
7494         regex: avoid compiler warning
7495         * lib/regex.c (includes): Include <strings.h>, for use of
7496         strcasecmp in regcomp.c.
7497         Reported by Joachim Schmitz.
7498
7499 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7500
7501         stdint: respect system's intmax_t if INTMAX_MAX
7502         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
7503         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
7504         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
7505         long but int64_t is long long, and where we will clash with the
7506         system intmax_t if we override it.  See
7507         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
7508         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
7509         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
7510         similarly for UINTMAX_C.
7511
7512 2011-07-08  Bruno Haible  <bruno@clisp.org>
7513
7514         pthread_sigmask tests: Avoid a compiler warning.
7515         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
7516         non-zero.
7517
7518         sigprocmask tests: A better way to avoid a compiler warning.
7519         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
7520         (main): Complain if system() returns non-zero.
7521         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
7522
7523 2011-07-08  Bruno Haible  <bruno@clisp.org>
7524
7525         pthread_sigmask: Work around IRIX bug.
7526         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
7527         bug.
7528         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
7529         there may be unblocked pending signals.
7530         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
7531
7532 2011-07-08  Bruno Haible  <bruno@clisp.org>
7533
7534         pthread_sigmask: Work around Cygwin bug.
7535         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
7536         bug.
7537         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
7538         the system's pthread_sigmask function.
7539         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
7540
7541 2011-07-08  Bruno Haible  <bruno@clisp.org>
7542
7543         pthread_sigmask: Work around bug in single-threaded implementation.
7544         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
7545         FreeBSD, HP-UX, Solaris bug.
7546         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
7547         * lib/pthread_sigmask.c: Include <stddef.h>.
7548         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
7549         the system's pthread_sigmask function.
7550         * modules/pthread_sigmask (configure.ac): Invoke
7551         gl_PREREQ_PTHREAD_SIGMASK.
7552         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
7553         HP-UX, Solaris.
7554
7555 2011-07-08  Eric Blake  <eblake@redhat.com>
7556
7557         test-sigprocmask: avoid compiler warning
7558         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
7559         * tests/test-sigprocmask.c (main): Use it to silence warning.
7560         Reported by Jim Meyering.
7561
7562         test-snprintf: avoid compiler warning
7563         * tests/test-snprintf.c (main): Avoid shadowed declaration.
7564         * tests/test-vsnprintf.c (main): Likewise.
7565         Reported by Jim Meyering.
7566
7567 2011-07-08  Bruno Haible  <bruno@clisp.org>
7568
7569         Tests for module 'pthread_sigmask'.
7570         * modules/pthread_sigmask-tests: New file.
7571         * tests/test-pthread_sigmask1.c: New file, based on
7572         tests/test-sigprocmask.c.
7573         * tests/test-pthread_sigmask2.c: New file.
7574
7575 2011-07-08  Jim Meyering  <meyering@redhat.com>
7576
7577         test-getopt.h: avoid warning about an unused variable
7578         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
7579
7580 2011-07-07  Jim Meyering  <meyering@redhat.com>
7581
7582         maint: reduce list of files exempt from sc_prohibit_leading_TABs
7583         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
7584         now that it no longer contains leading TABs.
7585         Remove unused "url=FIXME" statement.
7586
7587 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7588
7589         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
7590         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7591         When gl_THREADLIB is not in use, assume that the POSIX sematics
7592         are desired.  This is better for Emacs, which uses POSIX semantics
7593         on GNUish and/or POSIXish platforms, and does not use threads at
7594         all otherwise.
7595
7596         pthread_sigmask: fix typo when testing for libraries
7597         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7598         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
7599
7600 2011-07-08  Eric Blake  <eblake@redhat.com>
7601
7602         fts: introduce FTS_NOATIME
7603         * lib/fts_.h (FTS_NOATIME): New bit flag.
7604         (FTS_OPTIONMASK): Adjust.
7605         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
7606         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
7607
7608 2011-07-08  Bruno Haible  <bruno@clisp.org>
7609
7610         Tests for module 'thread'.
7611         * modules/thread-tests: New file.
7612         * tests/test-thread_self.c: New file.
7613         * tests/test-thread_create.cc: New file.
7614
7615 2011-07-08  Bruno Haible  <bruno@clisp.org>
7616
7617         thread: Avoid gcc warnings when using gl_thread_self().
7618         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
7619         'void *'.
7620         (gl_thread_self_pointer): Update.
7621
7622 2011-07-07  Bruno Haible  <bruno@clisp.org>
7623
7624         signal-c++-tests: Check declaration of pthread_sigmask.
7625         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
7626         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
7627         $(LIB_PTHREAD_SIGMASK).
7628
7629 2011-07-07  Bruno Haible  <bruno@clisp.org>
7630
7631         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
7632         * lib/signal.in.h (pthread_sigmask): Override if
7633         REPLACE_PTHREAD_SIGMASK is 1.
7634         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7635         REPLACE_PTHREAD_SIGMASK.
7636         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
7637         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
7638         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
7639         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7640         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
7641
7642 2011-07-07  Bruno Haible  <bruno@clisp.org>
7643
7644         pthread_sigmask: Ensure declaration in <signal.h>.
7645         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
7646         include <pthread.h>.
7647         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
7648         problem.
7649
7650 2011-07-07  Bruno Haible  <bruno@clisp.org>
7651
7652         pthread_sigmask: Document the module.
7653         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
7654
7655 2011-07-07  Bruno Haible  <bruno@clisp.org>
7656
7657         pthread_sigmask: Follow gnulib conventions.
7658         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
7659         gl_PTHREAD_SIGMASK.
7660         * modules/pthread_sigmask (configure.ac): Update.
7661
7662 2011-07-07  Bruno Haible  <bruno@clisp.org>
7663
7664         pthread_sigmask: Make declaration C++ safe.
7665         * lib/signal.in.h: In two special conditions, just do an #include_next.
7666         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7667         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
7668         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7669         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7670         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
7671         not REPLACE_PTHREAD_MASK.
7672         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
7673         not REPLACE_PTHREAD_MASK.
7674         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7675
7676 2011-07-07  Bruno Haible  <bruno@clisp.org>
7677
7678         pthread_sigmask: Fix return value.
7679         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
7680         * lib/pthread_sigmask.c: New file.
7681         * modules/pthread_sigmask (Files): Add it.
7682         (configure.ac): Invoke AC_LIBOBJ.
7683
7684 2011-07-07  Eric Blake  <eblake@redhat.com>
7685
7686         getopt: more portable argv creation
7687         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
7688         const, use char arrays rather than strings.
7689         Suggested by Paul Eggert.
7690
7691 2011-07-07  Bruno Haible  <bruno@clisp.org>
7692
7693         Tests for module 'sigprocmask'.
7694         * modules/sigprocmask-tests: New file.
7695         * tests/test-sigprocmask.c: New file.
7696
7697 2011-07-07  Bruno Haible  <bruno@clisp.org>
7698
7699         float tests: Tweak.
7700         * tests/test-float.c (main): Tweak skip message.
7701
7702 2011-07-07  Eric Blake  <eblake@redhat.com>
7703
7704         getopt: avoid compiler warning during configure
7705         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
7706         assigning string literals to non-const pointer.
7707
7708         getopt-gnu: avoid crash in glibc getopt
7709         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
7710         * tests/test-getopt.h (test_getopt): Enhance test.
7711         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7712         * doc/posix-functions/getopt.texi (getopt): Document it.
7713         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7714         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7715         Likewise.
7716
7717 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
7718
7719         getopt: handle W; without long options in getopt [BZ #12922]
7720         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
7721         but no long options are defined, just return 'W'.
7722
7723 2011-07-07  Bruno Haible  <bruno@clisp.org>
7724
7725         Avoid literal tabs.
7726         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
7727         variable containing a tab instead of a literal tab.
7728         Reported by Jim Meyering.
7729
7730 2011-07-07  Bruno Haible  <bruno@clisp.org>
7731
7732         Comments.
7733         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
7734
7735 2011-07-06  Bruno Haible  <bruno@clisp.org>
7736
7737         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
7738         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
7739         <winsock2.h>.
7740         (rpl_fd_isset, FD_ISSET): New definitions, copied from
7741         lib/sys_socket.in.h.
7742         (close, gethostname): Hide declarations from <winsock2.h>.
7743         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7744         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
7745         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
7746         (select): Don't override if gnulib's <sys/select.h> was already
7747         included.
7748         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7749         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7750         setsockopt, shutdown, select): Tweak indentation.
7751
7752 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7753
7754         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
7755         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
7756         in an application that does not use the sys_select module.
7757
7758 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
7759
7760         poll: do not return 0 on timeout=-1
7761         * lib/poll.c: Loop with yield if no events occured
7762
7763 2011-07-06  Eric Blake  <eblake@redhat.com>
7764
7765         pthread_sigmask: always replace when not using pthread
7766         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
7767         replacement when using some threading other than pthread.  Fix
7768         logic bug.
7769
7770 2011-07-06  Bruno Haible  <bruno@clisp.org>
7771
7772         Comments.
7773         * m4/printf.m4: Update comments about mingw.
7774
7775 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7776
7777         sys_select: define sigset_t more portably
7778         * lib/sys_select.in.h: Always include <sys/types.h>, since
7779         we now need sigset_t and mingw defines it there.
7780         Include <signal.h> before split inclusion guard, to avoid
7781         mishaps on Solaris, whose <signal.h> eventually includes us.
7782         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
7783         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
7784         which come from ...
7785         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7786         gl_CHECK_TYPE_SIGSET_T.
7787         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
7788         does the real work.
7789         * modules/sys_select (Depends-on): Add 'signal'.
7790
7791         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
7792         Suggested by Bruno Haible.
7793
7794         pselect: Use pthread_sigmask, not sigprocmask.
7795         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
7796         multithreaded apps better than sigprocmask does.
7797         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
7798         sigprocmask directly.
7799
7800 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7801
7802         * lib/pselect.c (pselect): Use plain name, without "rpl_".
7803         Don't #undef,  since we don't need any underlying pselect.
7804         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
7805         (Depends-on): Add select.
7806         (Link): Add $(LIBSOCKET).
7807         These changes suggested by Bruno Haible.
7808
7809         pselect: document better
7810         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7811         * doc/posix-functions/pselect.texi (pselect): Document new module.
7812
7813         pthread_sigmask: new module
7814         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7815         * doc/posix-functions/pthread_sigmask.texi: Document new module.
7816         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
7817         This is done only as a macro; I don't know how well that'll
7818         work for C++.  Move <sys/types.h> include before the include_next,
7819         to avoid mishap on Solaris.
7820         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
7821         * modules/signal (Makefile.am): Substitute the check's results.
7822         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
7823
7824         test-pselect: new module
7825         * modules/pselect-tests, tests/test-pselect.c: New files.
7826         * tests/test-select.c, tests/test-sys_select-c++.cc:
7827         If TEST_PSELECT is defined, test pselect instead of testing select.
7828
7829         * tests/test-sys_select.c (sigset_t): Test for it, too.
7830         Suggested by Bruno Haible.
7831
7832 2011-07-05  Eric Blake  <eblake@redhat.com>
7833
7834         snprintf: guarantee %1$d, for libintl
7835         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
7836         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
7837         * doc/posix-functions/snprintf.texi (snprintf): Update.
7838         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7839         * tests/test-snprintf.c (main): Enhance test.
7840         * tests/test-vsnprintf.c (main): Likewise.
7841
7842 2011-07-05  Jim Meyering  <meyering@redhat.com>
7843
7844         maint: exempt stdio-read.c and stdio-write.c from the cppi check
7845         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
7846         per Bruno's request, to accommodate this idiom (no space after "#")
7847         even when the function is inside an #if block:
7848         char *
7849         gets (char *s)
7850         #undef gets
7851         {
7852           ...
7853         }
7854
7855 2011-07-04  Jim Meyering  <meyering@redhat.com>
7856
7857         maint: indent with spaces, not TABs, and add a rule to check this
7858         * tests/test-userspec.c: Indent with spaces, not TABs.
7859         * tests/test-argp.c: Likewise.
7860         * tests/test-c-stack2.sh: Likewise.
7861         * tests/test-parse-duration.sh: Likewise
7862         * m4/strtod.m4: Likewise.
7863         * m4/alloca.m4: Likewise.
7864         * m4/pselect.m4: Likewise.
7865         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
7866
7867 2011-07-03  Jim Meyering  <meyering@redhat.com>
7868
7869         maint.mk: correct omissions in prohibit_argmatch_without_use check
7870         This rule would mistakenly report that argmatch.h is included without
7871         use even when both the argmatch and invalid_arg macro were used.
7872         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
7873         of argmatch and invalid_arg.
7874
7875 2011-07-03  Bruno Haible  <bruno@clisp.org>
7876
7877         Comments about EINTR.
7878         * lib/safe-read.h: Explain the purpose of this module.
7879         * lib/safe-write.h: Likewise.
7880         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
7881         module.
7882         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
7883         module.
7884         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7885
7886 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7887
7888         xnanosleep: Rewrite to use new dtotimespec module.
7889         It has the conversion code that used to be in xnanosleep.
7890         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
7891         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
7892         (TIME_T_MAX): Remove.
7893         (xnanosleep): Rewrite in terms of dtotimespec.
7894         * modules/xnanosleep (Depends-on): Add dtotimespec.
7895         Remove intprops, stdbool.
7896
7897         timespec-add, timespec-sub: new modules
7898         * lib/timespec.h (timespec_add, timespec_sub): New decls.
7899         * lib/timespec-add.c, lib/timespec-sub.c:
7900         * modules/timespec-add, modules/timespec-sub: New files.
7901
7902         dtotimespec: new module
7903         * lib/timespec.h (dtotimespec): New decl.
7904         * lib/dtotimespec.c, modules/dtotimespec: New files.
7905
7906         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
7907
7908         pselect: new module
7909         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
7910         (pselect): New decls.
7911         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
7912         since the standard pselect decl uses 'restrict'.
7913         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
7914         HAVE_PSELECT, REPLACE_PSELECT.
7915         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
7916         HAVE_PSELECT, REPLACE_PSELECT.
7917         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
7918
7919         sys_select: don't depend on sys_socket
7920         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
7921         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
7922         This fix works on GNU and GNU-like platforms, but has not been tested
7923         on native Windows.
7924         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
7925         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
7926         gl_HEADER_SYS_SOCKET.
7927         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
7928         gl_PREREQ_SYS_H_WINSOCK2.
7929
7930 2011-06-29  Eric Blake  <eblake@redhat.com>
7931
7932         pipe2: fix C89 compile problem
7933         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
7934         Reported by Bruno Haible.
7935
7936         pipe, pipe2: don't corrupt fd on error
7937         * lib/pipe.c (pipe): Leave fd unchanged on error.
7938         * lib/pipe2.c (pipe2): Likewise.
7939         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
7940         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7941
7942 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
7943
7944         mmap-anon: do not use regular expressions inadvertently
7945         * m4/mmap-anon.m4: Remove trailing period from strings sought
7946         in the output.
7947
7948 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7949
7950         nanosleep: fix integer overflow problem
7951         * lib/nanosleep.c (my_usleep): Don't assume signed integer
7952         arithmetic wraps around on overflow.
7953
7954         nanosleep: simplify carrying
7955         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
7956         first call to the underyling nanosleep, not for the last one.
7957         This doesn't fix any bugs, but it simplifies the computation of
7958         the remaining delay.  Found while auditing integer overflow issues.
7959
7960         dup2: remove test for existence of fcntl
7961         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
7962         "#if HAVE_FCNTL", in the configure-time test program.
7963         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
7964         and therefore speeds up "configure" a bit.  Found while
7965         adding the dup2 module to Emacs.
7966
7967 2011-06-24  Eric Blake  <eblake@redhat.com>
7968
7969         maint.mk: enhance useless header checks
7970         * top/maint.mk (_sc_header_without_use): Check both include
7971         styles.
7972         (sc_prohibit_assert_without_use)
7973         (sc_prohibit_close_stream_without_use)
7974         (sc_prohibit_getopt_without_use)
7975         (sc_prohibit_quotearg_without_use)
7976         (sc_prohibit_quote_without_use)
7977         (sc_prohibit_long_options_without_use)
7978         (sc_prohibit_inttostr_without_use)
7979         (sc_prohibit_ignore_value_without_use)
7980         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
7981         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
7982         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
7983         (sc_prohibit_hash_pjw_without_use)
7984         (sc_prohibit_safe_read_without_use)
7985         (sc_prohibit_argmatch_without_use)
7986         (sc_prohibit_canonicalize_without_use)
7987         (sc_prohibit_root_dev_ino_without_use)
7988         (sc_prohibit_openat_without_use)
7989         (sc_prohibit_c_ctype_without_use)
7990         (sc_prohibit_signal_without_use)
7991         (sc_prohibit_stdio--_without_use)
7992         (sc_prohibit_stdio-safer_without_use)
7993         (sc_prohibit_strings_without_use)
7994         (sc_prohibit_intprops_without_use)
7995         (sc_prohibit_stddef_without_use)
7996         (sc_prohibit_xfreopen_without_use): Update clients.
7997
7998 2011-06-24  Jim Meyering  <meyering@redhat.com>
7999
8000         syntax-check: keep one maint.mk rule in sync with its header
8001         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
8002         of the bug Eric has just fixed, with today's commit 25e4c2ec.
8003         I prefer to avoid temporary files here, so use <(...), but that
8004         is not supported by /bin/sh, so...
8005         (SHELL): Define to /bin/bash.
8006
8007 2011-06-24  Eric Blake  <eblake@redhat.com>
8008
8009         maint.mk: update sc_prohibit_intprops_without_use
8010         * top/maint.mk (_intprops_names): Match recent changes.
8011
8012 2011-06-24  Bruno Haible  <bruno@clisp.org>
8013
8014         strerror-override: No-op tweak.
8015         * lib/strerror-override.h (strerror_override): Reorder conditions,
8016         for consistency with lib/strerror-override.c.
8017
8018 2011-06-23  Eric Blake  <eblake@redhat.com>
8019
8020         maint.mk: test further PATH_MAX issues
8021         * top/maint.mk (sc_prohibit_path_max_array): Rename...
8022         (sc_prohibit_path_max_allocation): ...and also test alloca.
8023         Suggested by Jim Meyering.
8024
8025 2011-06-22  Eric Blake  <eblake@redhat.com>
8026
8027         maint.mk: add syntax-check to avoid char[PATH_MAX]
8028         * top/maint.mk (sc_prohibit_path_max_array): New rule.
8029
8030         stat: be robust to PATH_MAX definition
8031         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
8032         * modules/stat (Depends-on): Add verify.
8033
8034         link: work around IRIX bug
8035         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
8036         * lib/link.c (rpl_link): Work around it.
8037         * tests/test-link.h (test_link): Enhance test.
8038         * doc/posix-functions/link.texi (link): Document the bug.
8039
8040         getopt: silence clang warning
8041         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
8042         dereference.
8043         Reported by Gustavo Martin Domato.
8044
8045 2011-06-22  Jim Meyering  <meyering@redhat.com>
8046
8047         bootstrap: do not insert a blank line into each .gitignore file
8048         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
8049
8050 2011-06-21  Eric Blake  <eblake@redhat.com>
8051
8052         perror: test for output mismatch
8053         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
8054         perror on IRIX.
8055
8056         strerror_r: fix OpenBSD behavior on out-of-range
8057         * lib/strerror_r.c (strerror_r): Always use maximal string.
8058         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8059
8060         strerror_r: fix OpenBSD behavior on 0
8061         * lib/strerror-override.c (strerror_override): Also override 0
8062         when needed.
8063         * lib/strerror-override.h (strerror_override): Likewise.
8064         * lib/strerror.c (strerror): Simplify, now that 0 override is done
8065         earlier.
8066         * lib/strerror_r.c (strerror_r): Likewise.
8067         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
8068         behavior...
8069         (gl_FUNC_STRERROR_0): ...into new macro.
8070         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
8071         is overridden.
8072         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
8073         * modules/strerror-override (Files): Add strerror.m4.
8074         (configure.ac): Also provide override for 0 when needed.
8075         * doc/posix-functions/strerror.texi (strerror): Document this.
8076         * doc/posix-functions/perror.texi (perror): Likewise.
8077
8078         perror: adjust array size
8079         * modules/perror (Depends-on): Add strerror-override.
8080         * lib/perror.c (perror): Use it to avoid magic number.
8081
8082         strerror-override: reduce size
8083         * lib/strerror-override.c (strerror_override): Use fewer lines.
8084
8085 2011-06-20  Bruno Haible  <bruno@clisp.org>
8086
8087         pathmax: Ensure correct value for PATH_MAX on HP-UX.
8088         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
8089
8090 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
8091
8092         alloca: port to compilers that can optimize like GCC 4.6.0
8093         * lib/alloca.c (find_stack_direction): New signature, taken from
8094         Autoconf git.  This works with GCC 4.6.0.  This code should never
8095         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
8096         be used with other compilers that optimize as well as GCC 4.6.0 does.
8097         (alloca): Adjust to new signature.
8098         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
8099         New macro, which patches Autoconf in a similar way.
8100
8101         c-stack: stop worrying about stack direction
8102         * lib/c-stack.c (find_stack_direction): Remove.
8103         (segv_handler): Don't worry about stack direction growth, as it's
8104         too much of a pain to configure this correctly, given how compilers
8105         are optimizing-away our stack-growth detection code.  Instead, assume
8106         that any access to just before or just after the stack is OK.
8107         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
8108         Don't require AC_FUNC_ALLOCA; no longer needed.
8109
8110 2011-06-20  Eric Blake  <eblake@redhat.com>
8111
8112         test-stat: don't allocate PATH_MAX bytes
8113         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
8114         PATH_MAX-sized buffer.
8115         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
8116         * modules/stat-tests (Depends-on): Likewise.
8117         * tests/test-fstatat.c (includes): Drop pathmax.h.
8118         * tests/test-stat.c (includes): Likewise.
8119         Reported by Bruno Haible.
8120
8121 2011-06-20  Bruno Haible  <bruno@clisp.org>
8122
8123         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
8124         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
8125         * lib/float.c: New file.
8126         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
8127         REPLACE_FLOAT_LDBL.
8128         * modules/float (Files): Add lib/float.c.
8129         (configure.ac): Invoke AC_LIBOBJ.
8130         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
8131
8132 2011-06-20  Bruno Haible  <bruno@clisp.org>
8133
8134         Tests for module 'float'.
8135         * modules/float-tests: New file.
8136         * tests/test-float.c: New file.
8137
8138 2011-06-19  Bruno Haible  <bruno@clisp.org>
8139
8140         isinf: Coding style.
8141         * lib/isinf.c: Use GNU coding style.
8142
8143 2011-06-19  Bruno Haible  <bruno@clisp.org>
8144
8145         linkat test: Avoid test failure on AIX 7.1.
8146         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
8147         * tests/test-link.h (test_link): Likewise.
8148
8149 2011-06-19  Bruno Haible  <bruno@clisp.org>
8150
8151         pread test: Avoid test failure on OpenBSD 4.9.
8152         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
8153
8154 2011-06-19  Bruno Haible  <bruno@clisp.org>
8155
8156         sprintf-posix: Fix test failure on AIX 7.1.
8157         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
8158         * doc/posix-functions/dprintf.texi: Mention limited precision problem
8159         on AIX.
8160         * doc/posix-functions/fprintf.texi: Likewise.
8161         * doc/posix-functions/printf.texi: Likewise.
8162         * doc/posix-functions/snprintf.texi: Likewise.
8163         * doc/posix-functions/sprintf.texi: Likewise.
8164         * doc/posix-functions/vdprintf.texi: Likewise.
8165         * doc/posix-functions/vfprintf.texi: Likewise.
8166         * doc/posix-functions/vprintf.texi: Likewise.
8167         * doc/posix-functions/vsnprintf.texi: Likewise.
8168         * doc/posix-functions/vsprintf.texi: Likewise.
8169
8170 2011-06-19  Bruno Haible  <bruno@clisp.org>
8171
8172         roundl-ieee: Fix test failure on AIX 7.1.
8173         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
8174         * doc/posix-functions/roundl.texi: Mention problem with negative
8175         arguments.
8176
8177 2011-06-19  Bruno Haible  <bruno@clisp.org>
8178
8179         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8180         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
8181         * doc/posix-functions/round.texi: Mention problem with negative
8182         arguments.
8183         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
8184
8185 2011-06-19  Bruno Haible  <bruno@clisp.org>
8186
8187         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8188         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
8189         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
8190         * doc/posix-functions/roundf.texi: Mention problem with negative
8191         arguments.
8192         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
8193
8194 2011-06-19  Bruno Haible  <bruno@clisp.org>
8195
8196         ceilf-ieee: Work around bug on MacOS X 10.5.
8197         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
8198
8199         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
8200         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
8201         IEEE compliant, avoid compiler optimizations.
8202         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
8203         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8204         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
8205         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8206         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8207         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8208         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8209         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8210         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8211         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8212
8213 2011-06-19  Bruno Haible  <bruno@clisp.org>
8214
8215         ceilf-ieee: Work around bug on AIX 7.1.
8216         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
8217         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
8218
8219 2011-06-19  Bruno Haible  <bruno@clisp.org>
8220
8221         ceil-ieee: Work around bug on AIX 7.1.
8222         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
8223         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
8224
8225 2011-06-18  Bruno Haible  <bruno@clisp.org>
8226
8227         fsync test: Avoid test failure on MacOS X and AIX.
8228         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
8229         EINVAL.
8230
8231 2011-06-18  Bruno Haible  <bruno@clisp.org>
8232
8233         openat, fdopendir tests: Fix link errors.
8234         * modules/openat-tests (Depends-on): Add progname.
8235         * modules/fdopendir-tests (Depends-on): Likewise.
8236         * tests/test-fchownat.c: Include progname.h.
8237         (main): Call set_program_name.
8238         * tests/test-fstatat.c: Include progname.h.
8239         (main): Call set_program_name.
8240         * tests/test-mkdirat.c: Include progname.h.
8241         (main): Call set_program_name.
8242         * tests/test-openat.c: Include progname.h.
8243         (main): Call set_program_name.
8244         * tests/test-unlinkat.c: Include progname.h.
8245         (main): Call set_program_name.
8246         * tests/test-fdopendir.c: Include progname.h.
8247         (main): Call set_program_name.
8248
8249 2011-06-18  Bruno Haible  <bruno@clisp.org>
8250
8251         Doc update.
8252         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
8253         HP-UX.
8254         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
8255
8256 2011-06-18  Bruno Haible  <bruno@clisp.org>
8257
8258         getcwd tests: Avoid compilation error on HP-UX 11.31.
8259         * modules/getcwd-tests (Depends-on): Add pathmax.
8260         * tests/test-getcwd.c: Include pathmax.h.
8261
8262 2011-06-18  Bruno Haible  <bruno@clisp.org>
8263
8264         isfinite, isinf: Fix link error on AIX 6 and 7.
8265         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
8266         needed, also test the macro with a 'float' argument.
8267         * m4/isinf.m4 (gl_ISINF): Likewise.
8268
8269 2011-06-18  Bruno Haible  <bruno@clisp.org>
8270
8271         getloadavg: Don't clobber LIBS. Regression from previous commit.
8272         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
8273         AC_CHECK_LIB from here...
8274         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
8275         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
8276         gl_func_getloadavg_done.
8277         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8278
8279 2011-06-18  Bruno Haible  <bruno@clisp.org>
8280
8281         clean-temp: Improve documentation.
8282         * lib/clean-temp.h: Explain better how to use this module.
8283         Reported by John Darrington <john@darrington.wattle.id.au>.
8284
8285 2011-06-17  Bruno Haible  <bruno@clisp.org>
8286
8287         pread, pwrite: Avoid cc warning on AIX.
8288         * lib/unistd.in.h (pread): Undefine before defining as a macro.
8289         (pwrite): Likewise.
8290
8291 2011-06-17  Bruno Haible  <bruno@clisp.org>
8292
8293         spawn-pipe tests: Fix link error.
8294         * tests/test-spawn-pipe-child.c: Undefine fprintf.
8295         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8296
8297 2011-06-17  Bruno Haible  <bruno@clisp.org>
8298
8299         Tests: Remove unnecessary dependency.
8300         * modules/canonicalize-tests (Depends-on): Remove progname.
8301         * modules/chown-tests (Depends-on): Likewise.
8302         * modules/dirname-tests (Depends-on): Likewise.
8303         * modules/fdopendir-tests (Depends-on): Likewise.
8304         * modules/fdutimensat-tests (Depends-on): Likewise.
8305         * modules/hash-tests (Depends-on): Likewise.
8306         * modules/lchown-tests (Depends-on): Likewise.
8307         * modules/linkat-tests (Depends-on): Likewise.
8308         * modules/renameat-tests (Depends-on): Likewise.
8309         * modules/spawn-pipe-tests (Depends-on): Likewise.
8310         * modules/utimensat-tests (Depends-on): Likewise.
8311
8312 2011-06-17  Bruno Haible  <bruno@clisp.org>
8313
8314         spawn-pipe tests: Fix link error.
8315         * tests/test-spawn-pipe-child.c: Undefine fflush.
8316
8317 2011-06-17  Bruno Haible  <bruno@clisp.org>
8318
8319         Fix tests link errors.
8320         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
8321         * modules/chown-tests (Makefile.am): Don't link test-chown with
8322         LIBINTL.
8323         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
8324         LIBINTL.
8325         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
8326         LIBINTL.
8327         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
8328         LIBINTL.
8329
8330 2011-06-16  Bruno Haible  <bruno@clisp.org>
8331
8332         crypto/gc-sha1: Fix recent regression.
8333         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
8334         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
8335
8336         crypto/gc-md5: Fix recent regression.
8337         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
8338
8339         crypto/gc-md4: Fix recent regression.
8340         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
8341         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
8342
8343         crypto/gc-arctwo: Fix recent regression.
8344         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
8345         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
8346
8347         crypto/gc-rijndael: Fix recent regression.
8348         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
8349         (configure.ac): Invoke AC_LIBOBJ here.
8350         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
8351         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8352
8353         crypto/gc-hmac-sha1: Fix recent regression.
8354         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
8355         (configure.ac): Invoke AC_LIBOBJ here.
8356         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
8357         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8358
8359         crypto/gc-hmac-md5: Fix recent regression.
8360         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
8361         (configure.ac): Invoke AC_LIBOBJ here.
8362         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
8363         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8364
8365         crypto/gc-des: Fix recent regression.
8366         * modules/crypto/gc-des (Files): Remove m4/des.m4.
8367         (configure.ac): Invoke AC_LIBOBJ here.
8368         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
8369         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8370
8371         crypto/gc-arcfour: Fix recent regression.
8372         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
8373         (configure.ac): Invoke AC_LIBOBJ here.
8374         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
8375         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8376
8377 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
8378
8379         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
8380         After the 2011-05-21 change, this macro requires
8381         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
8382         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
8383
8384 2011-06-16  Bruno Haible  <bruno@clisp.org>
8385
8386         fprintftime: Move AC_LIBOBJ invocations to module description.
8387         * m4/fprintftime.m4: Remove file.
8388         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
8389         (configure.ac): Remove gl_FPRINTFTIME call.
8390         (Makefile.am): Augment lib_SOURCES.
8391         Reported by Jim Meyering.
8392
8393 2011-06-16  Bruno Haible  <bruno@clisp.org>
8394
8395         tmpfile-safer: Finish 2011-05-23 commit.
8396         * m4/stdio-safer.m4: Really remove file.
8397         Reported by Jim Meyering.
8398
8399 2011-06-16  Bruno Haible  <bruno@clisp.org>
8400
8401         syntax-check: Fix typo.
8402         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
8403         printf-posix.m4.
8404         Reported by Jim Meyering.
8405
8406 2011-06-13  Jim Meyering  <meyering@redhat.com>
8407
8408         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
8409         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
8410
8411 2011-05-23  Bruno Haible  <bruno@clisp.org>
8412
8413         yesno: Move AC_LIBOBJ invocations to module description.
8414         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
8415         * modules/yesno (Makefile.am): Augment lib_SOURCES.
8416
8417 2011-05-23  Bruno Haible  <bruno@clisp.org>
8418
8419         xstrtol: Move AC_LIBOBJ invocations to module description.
8420         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
8421         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
8422
8423 2011-05-23  Bruno Haible  <bruno@clisp.org>
8424
8425         xstrtold: Move AC_LIBOBJ invocations to module description.
8426         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
8427         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
8428
8429 2011-05-23  Bruno Haible  <bruno@clisp.org>
8430
8431         xstrtod: Move AC_LIBOBJ invocations to module description.
8432         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
8433         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
8434
8435 2011-05-23  Bruno Haible  <bruno@clisp.org>
8436
8437         xnanosleep: Move AC_LIBOBJ invocations to module description.
8438         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
8439         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
8440
8441 2011-05-23  Bruno Haible  <bruno@clisp.org>
8442
8443         xgetcwd: Move AC_LIBOBJ invocations to module description.
8444         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
8445         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
8446
8447 2011-05-23  Bruno Haible  <bruno@clisp.org>
8448
8449         xalloc: Move AC_LIBOBJ invocations to module description.
8450         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
8451         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
8452
8453 2011-05-23  Bruno Haible  <bruno@clisp.org>
8454
8455         write-any-file: Move AC_LIBOBJ invocations to module description.
8456         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
8457         invocation.
8458         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
8459
8460 2011-05-23  Bruno Haible  <bruno@clisp.org>
8461
8462         utimens: Move AC_LIBOBJ invocations to module description.
8463         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
8464         * modules/utimens (Makefile.am): Augment lib_SOURCES.
8465
8466 2011-05-23  Bruno Haible  <bruno@clisp.org>
8467
8468         utimecmp: Move AC_LIBOBJ invocations to module description.
8469         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
8470         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
8471
8472 2011-05-23  Bruno Haible  <bruno@clisp.org>
8473
8474         userspec: Move AC_LIBOBJ invocations to module description.
8475         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
8476         * modules/userspec (Makefile.am): Augment lib_SOURCES.
8477
8478 2011-05-23  Bruno Haible  <bruno@clisp.org>
8479
8480         unlinkdir: Move AC_LIBOBJ invocations to module description.
8481         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
8482         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
8483
8484 2011-05-23  Bruno Haible  <bruno@clisp.org>
8485
8486         unistd-safer: Move AC_LIBOBJ invocations to module description.
8487         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
8488         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
8489
8490 2011-05-23  Bruno Haible  <bruno@clisp.org>
8491
8492         tempname: Move AC_LIBOBJ invocations to module description.
8493         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
8494         * modules/tempname (Makefile.am): Augment lib_SOURCES.
8495
8496 2011-05-23  Bruno Haible  <bruno@clisp.org>
8497
8498         strftime: Move AC_LIBOBJ invocations to module description.
8499         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
8500         * modules/strftime (Makefile.am): Augment lib_SOURCES.
8501
8502 2011-05-23  Bruno Haible  <bruno@clisp.org>
8503
8504         stdlib-safer: Move AC_LIBOBJ invocations to module description.
8505         * m4/stdlib-safer.m4: Remove file.
8506         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
8507         (configure.ac): Remove gl_STDLIB_SAFER call.
8508         (Makefile.am): Augment lib_SOURCES.
8509
8510 2011-05-23  Bruno Haible  <bruno@clisp.org>
8511
8512         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
8513         * m4/stdio-safer.m4: Remove file.
8514         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
8515         (configure.ac): Remove gl_TMPFILE_SAFER call.
8516         (Makefile.am): Augment lib_SOURCES.
8517
8518 2011-05-23  Bruno Haible  <bruno@clisp.org>
8519
8520         popen-safer: Move AC_LIBOBJ invocations to module description.
8521         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
8522         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
8523         (configure.ac): Remove gl_POPEN_SAFER call.
8524         (Makefile.am): Augment lib_SOURCES.
8525
8526 2011-05-23  Bruno Haible  <bruno@clisp.org>
8527
8528         freopen-safer: Move AC_LIBOBJ invocations to module description.
8529         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
8530         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
8531         (configure.ac): Remove gl_FREOPEN_SAFER call.
8532         (Makefile.am): Augment lib_SOURCES.
8533
8534 2011-05-23  Bruno Haible  <bruno@clisp.org>
8535
8536         fopen-safer: Move AC_LIBOBJ invocations to module description.
8537         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
8538         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
8539         (configure.ac): Remove gl_FOPEN_SAFER call.
8540         (Makefile.am): Augment lib_SOURCES.
8541
8542 2011-05-23  Bruno Haible  <bruno@clisp.org>
8543
8544         crypto/sha512: Move AC_LIBOBJ invocations to module description.
8545         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
8546         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
8547
8548 2011-05-23  Bruno Haible  <bruno@clisp.org>
8549
8550         crypto/sha256: Move AC_LIBOBJ invocations to module description.
8551         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
8552         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
8553
8554 2011-05-23  Bruno Haible  <bruno@clisp.org>
8555
8556         crypto/sha1: Move AC_LIBOBJ invocations to module description.
8557         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
8558         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
8559
8560 2011-05-23  Bruno Haible  <bruno@clisp.org>
8561
8562         settime: Move AC_LIBOBJ invocations to module description.
8563         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
8564         * modules/settime (Makefile.am): Augment lib_SOURCES.
8565
8566 2011-05-23  Bruno Haible  <bruno@clisp.org>
8567
8568         savedir: Move AC_LIBOBJ invocations to module description.
8569         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
8570         * modules/savedir (Makefile.am): Augment lib_SOURCES.
8571
8572 2011-05-23  Bruno Haible  <bruno@clisp.org>
8573
8574         save-cwd: Move AC_LIBOBJ invocations to module description.
8575         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
8576         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
8577
8578 2011-05-23  Bruno Haible  <bruno@clisp.org>
8579
8580         same: Move AC_LIBOBJ invocations to module description.
8581         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
8582         * modules/same (Makefile.am): Augment lib_SOURCES.
8583
8584 2011-05-23  Bruno Haible  <bruno@clisp.org>
8585
8586         safe-write: Move AC_LIBOBJ invocations to module description.
8587         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
8588         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
8589         instead of gl_SAFE_WRITE.
8590         (Makefile.am): Augment lib_SOURCES.
8591
8592 2011-05-23  Bruno Haible  <bruno@clisp.org>
8593
8594         safe-read: Move AC_LIBOBJ invocations to module description.
8595         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
8596         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
8597         of gl_SAFE_READ.
8598         (Makefile.am): Augment lib_SOURCES.
8599
8600 2011-05-23  Bruno Haible  <bruno@clisp.org>
8601
8602         safe-alloc: Move AC_LIBOBJ invocations to module description.
8603         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
8604         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
8605
8606 2011-05-23  Bruno Haible  <bruno@clisp.org>
8607
8608         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
8609         * m4/rijndael.m4: Remove file.
8610         * modules/crypto/rijndael (Files): Remove it.
8611         (configure.ac): Remove gl_RIJNDAEL call.
8612         (Makefile.am): Augment lib_SOURCES.
8613
8614 2011-05-23  Bruno Haible  <bruno@clisp.org>
8615
8616         readtokens: Move AC_LIBOBJ invocations to module description.
8617         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
8618         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
8619
8620 2011-05-23  Bruno Haible  <bruno@clisp.org>
8621
8622         read-file: Move AC_LIBOBJ invocations to module description.
8623         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
8624         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
8625         of gl_FUNC_READ_FILE.
8626         (Makefile.am): Augment lib_SOURCES.
8627
8628 2011-05-23  Bruno Haible  <bruno@clisp.org>
8629
8630         quotearg: Move AC_LIBOBJ invocations to module description.
8631         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
8632         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
8633
8634 2011-05-23  Bruno Haible  <bruno@clisp.org>
8635
8636         quote: Move AC_LIBOBJ invocations to module description.
8637         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
8638         * modules/quote (Makefile.am): Augment lib_SOURCES.
8639
8640 2011-05-23  Bruno Haible  <bruno@clisp.org>
8641
8642         posixver: Move AC_LIBOBJ invocations to module description.
8643         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
8644         * modules/posixver (Makefile.am): Augment lib_SOURCES.
8645
8646 2011-05-23  Bruno Haible  <bruno@clisp.org>
8647
8648         posixtm: Move AC_LIBOBJ invocations to module description.
8649         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
8650         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
8651
8652 2011-05-23  Bruno Haible  <bruno@clisp.org>
8653
8654         physmem: Move AC_LIBOBJ invocations to module description.
8655         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
8656         * modules/physmem (Makefile.am): Augment lib_SOURCES.
8657
8658 2011-05-23  Bruno Haible  <bruno@clisp.org>
8659
8660         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
8661         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
8662         invocation.
8663         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
8664
8665 2011-05-23  Bruno Haible  <bruno@clisp.org>
8666
8667         mpsort: Move AC_LIBOBJ invocations to module description.
8668         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
8669         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
8670
8671 2011-05-23  Bruno Haible  <bruno@clisp.org>
8672
8673         modechange: Move AC_LIBOBJ invocations to module description.
8674         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
8675         * modules/modechange (Makefile.am): Augment lib_SOURCES.
8676
8677 2011-05-23  Bruno Haible  <bruno@clisp.org>
8678
8679         mkdir-p: Move AC_LIBOBJ invocations to module description.
8680         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
8681         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
8682
8683 2011-05-23  Bruno Haible  <bruno@clisp.org>
8684
8685         mkancesdirs: Move AC_LIBOBJ invocations to module description.
8686         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
8687         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
8688
8689 2011-05-23  Bruno Haible  <bruno@clisp.org>
8690
8691         mgetgroups: Move AC_LIBOBJ invocations to module description.
8692         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
8693         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
8694
8695 2011-05-23  Bruno Haible  <bruno@clisp.org>
8696
8697         memxor: Move AC_LIBOBJ invocations to module description.
8698         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
8699         * modules/memxor (Makefile.am): Augment lib_SOURCES.
8700
8701 2011-05-23  Bruno Haible  <bruno@clisp.org>
8702
8703         memcoll: Move AC_LIBOBJ invocations to module description.
8704         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
8705         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
8706
8707 2011-05-23  Bruno Haible  <bruno@clisp.org>
8708
8709         memcasecmp: Move AC_LIBOBJ invocations to module description.
8710         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
8711         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
8712
8713 2011-05-23  Bruno Haible  <bruno@clisp.org>
8714
8715         crypto/md5: Move AC_LIBOBJ invocations to module description.
8716         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
8717         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
8718
8719 2011-05-23  Bruno Haible  <bruno@clisp.org>
8720
8721         crypto/md4: Move AC_LIBOBJ invocations to module description.
8722         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
8723         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
8724
8725 2011-05-23  Bruno Haible  <bruno@clisp.org>
8726
8727         crypto/md2: Move AC_LIBOBJ invocations to module description.
8728         * m4/md2.m4: Remove file.
8729         * modules/crypto/md2 (Files): Remove it.
8730         (configure.ac): Remove gl_MD2 call.
8731         (Makefile.am): Augment lib_SOURCES.
8732
8733 2011-05-23  Bruno Haible  <bruno@clisp.org>
8734
8735         long-options: Move AC_LIBOBJ invocations to module description.
8736         * m4/long-options.m4: Remove file.
8737         * modules/long-options (Files): Remove it.
8738         (configure.ac): Remove gl_LONG_OPTIONS call.
8739         (Makefile.am): Augment lib_SOURCES.
8740
8741 2011-05-23  Bruno Haible  <bruno@clisp.org>
8742
8743         i-ring: Move AC_LIBOBJ invocations to module description.
8744         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
8745         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
8746
8747 2011-05-23  Bruno Haible  <bruno@clisp.org>
8748
8749         idcache: Move AC_LIBOBJ invocations to module description.
8750         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
8751         * modules/idcache (Makefile.am): Augment lib_SOURCES.
8752
8753 2011-05-23  Bruno Haible  <bruno@clisp.org>
8754
8755         human: Move AC_LIBOBJ invocations to module description.
8756         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
8757         * modules/human (Makefile.am): Augment lib_SOURCES.
8758
8759 2011-05-23  Bruno Haible  <bruno@clisp.org>
8760
8761         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
8762         * m4/hmac-sha1.m4: Remove file.
8763         * modules/crypto/hmac-sha1 (Files): Remove it.
8764         (configure.ac): Remove gl_HMAC_SHA1 call.
8765         (Makefile.am): Augment lib_SOURCES.
8766
8767 2011-05-23  Bruno Haible  <bruno@clisp.org>
8768
8769         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
8770         * m4/hmac-md5.m4: Remove file.
8771         * modules/crypto/hmac-md5 (Files): Remove it.
8772         (configure.ac): Remove gl_HMAC_MD5 call.
8773         (Makefile.am): Augment lib_SOURCES.
8774
8775 2011-05-23  Bruno Haible  <bruno@clisp.org>
8776
8777         hash: Move AC_LIBOBJ invocations to module description.
8778         * m4/hash.m4: Remove file.
8779         * modules/hash (Files): Remove it.
8780         (configure.ac): Remove gl_HASH call.
8781         (Makefile.am): Augment lib_SOURCES.
8782
8783 2011-05-23  Bruno Haible  <bruno@clisp.org>
8784
8785         hard-locale: Move AC_LIBOBJ invocations to module description.
8786         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
8787         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
8788
8789 2011-05-23  Bruno Haible  <bruno@clisp.org>
8790
8791         getugroups: Move AC_LIBOBJ invocations to module description.
8792         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
8793         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
8794
8795 2011-05-23  Bruno Haible  <bruno@clisp.org>
8796
8797         gettime: Move AC_LIBOBJ invocations to module description.
8798         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
8799         * modules/gettime (Makefile.am): Augment lib_SOURCES.
8800
8801 2011-05-23  Bruno Haible  <bruno@clisp.org>
8802
8803         getndelim2: Move AC_LIBOBJ invocations to module description.
8804         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
8805         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
8806
8807 2011-05-23  Bruno Haible  <bruno@clisp.org>
8808
8809         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
8810         * m4/gc-pbkdf2-sha1.m4: Remove file.
8811         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
8812         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
8813         (Makefile.am): Augment lib_SOURCES.
8814
8815 2011-05-23  Bruno Haible  <bruno@clisp.org>
8816
8817         fts: Move AC_LIBOBJ invocations to module description.
8818         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
8819         * modules/fts (configure.ac): ... to here.
8820
8821 2011-05-23  Bruno Haible  <bruno@clisp.org>
8822
8823         file-type: Move AC_LIBOBJ invocations to module description.
8824         * m4/file-type.m4: Remove file.
8825         * modules/file-type (Files): Remove it.
8826         (configure.ac): Remove gl_FILE_TYPE call.
8827         (Makefile.am): Augment lib_SOURCES.
8828
8829 2011-05-23  Bruno Haible  <bruno@clisp.org>
8830
8831         filenamecat*: Respect rules for use of AC_LIBOBJ.
8832         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
8833         Remove AC_LIBOBJ invocation.
8834         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
8835         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
8836
8837 2011-05-23  Bruno Haible  <bruno@clisp.org>
8838
8839         filemode: Move AC_LIBOBJ invocations to module description.
8840         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
8841         * modules/filemode (Makefile.am): Augment lib_SOURCES.
8842
8843 2011-05-23  Bruno Haible  <bruno@clisp.org>
8844
8845         openat-safer: Move AC_LIBOBJ invocations to module description.
8846         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
8847         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
8848
8849 2011-05-23  Bruno Haible  <bruno@clisp.org>
8850
8851         fcntl-safer: Move AC_LIBOBJ invocations to module description.
8852         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
8853         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
8854
8855 2011-05-23  Bruno Haible  <bruno@clisp.org>
8856
8857         exclude: Move AC_LIBOBJ invocations to module description.
8858         * m4/exclude.m4: Remove file.
8859         * modules/exclude (Files): Remove it.
8860         (configure.ac): Remove gl_EXCLUDE call.
8861         (Makefile.am): Augment lib_SOURCES.
8862
8863 2011-05-23  Bruno Haible  <bruno@clisp.org>
8864
8865         dirname*: Respect rules for use of AC_LIBOBJ.
8866         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
8867         invocations.
8868         * modules/dirname (Makefile.am): Augment lib_SOURCES.
8869         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
8870
8871 2011-05-23  Bruno Haible  <bruno@clisp.org>
8872
8873         dirent-safer: Move AC_LIBOBJ invocations to module description.
8874         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
8875         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
8876
8877 2011-05-23  Bruno Haible  <bruno@clisp.org>
8878
8879         crypto/des: Move AC_LIBOBJ invocations to module description.
8880         * m4/des.m4: Remove file.
8881         * modules/crypto/des (Files): Remove it.
8882         (configure.ac): Remove gl_DES call.
8883         (Makefile.am): Augment lib_SOURCES.
8884
8885 2011-05-23  Bruno Haible  <bruno@clisp.org>
8886
8887         cycle-check: Move AC_LIBOBJ invocations to module description.
8888         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
8889         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
8890
8891 2011-05-23  Bruno Haible  <bruno@clisp.org>
8892
8893         c-strtold: Move AC_LIBOBJ invocations to module description.
8894         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
8895         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
8896
8897 2011-05-23  Bruno Haible  <bruno@clisp.org>
8898
8899         c-strtod: Move AC_LIBOBJ invocations to module description.
8900         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
8901         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
8902
8903 2011-05-23  Bruno Haible  <bruno@clisp.org>
8904
8905         crc: Move AC_LIBOBJ invocations to module description.
8906         * m4/crc.m4: Remove file.
8907         * modules/crc (Files): Remove it.
8908         (configure.ac): Remove gl_CRC call.
8909         (Makefile.am): Augment lib_SOURCES.
8910
8911 2011-05-23  Bruno Haible  <bruno@clisp.org>
8912
8913         close-stream: Move AC_LIBOBJ invocations to module description.
8914         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
8915         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
8916
8917 2011-05-23  Bruno Haible  <bruno@clisp.org>
8918
8919         closeout: Move AC_LIBOBJ invocations to module description.
8920         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
8921         * modules/closeout (Makefile.am): Augment lib_SOURCES.
8922
8923 2011-05-23  Bruno Haible  <bruno@clisp.org>
8924
8925         closein: Move AC_LIBOBJ invocations to module description.
8926         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
8927         * modules/closein (Makefile.am): Augment lib_SOURCES.
8928
8929 2011-05-23  Bruno Haible  <bruno@clisp.org>
8930
8931         cloexec: Move AC_LIBOBJ invocations to module description.
8932         * m4/cloexec.m4: Remove file.
8933         * modules/cloexec (Files): Remove it.
8934         (configure.ac): Remove gl_CLOEXEC call.
8935         (Makefile.am): Augment lib_SOURCES.
8936
8937 2011-05-23  Bruno Haible  <bruno@clisp.org>
8938
8939         check-version: Move AC_LIBOBJ invocations to module description.
8940         * m4/check-version.m4: Remove file.
8941         * modules/check-version (Files): Remove it.
8942         (configure.ac): Remove gl_CHECK_VERSION call.
8943         (Makefile.am): Augment lib_SOURCES.
8944
8945 2011-05-23  Bruno Haible  <bruno@clisp.org>
8946
8947         chdir-safer: Move AC_LIBOBJ invocations to module description.
8948         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
8949         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
8950
8951 2011-05-23  Bruno Haible  <bruno@clisp.org>
8952
8953         canonicalize: Move AC_LIBOBJ invocations to module description.
8954         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
8955         AC_LIBOBJ invocation.
8956         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
8957
8958 2011-05-23  Bruno Haible  <bruno@clisp.org>
8959
8960         canon-host: Move AC_LIBOBJ invocations to module description.
8961         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
8962         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
8963         instead of gl_CANON_HOST.
8964         (Makefile.am): Augment lib_SOURCES.
8965
8966 2011-05-23  Bruno Haible  <bruno@clisp.org>
8967
8968         backupfile: Move AC_LIBOBJ invocations to module description.
8969         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
8970         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
8971
8972 2011-05-23  Bruno Haible  <bruno@clisp.org>
8973
8974         argmatch: Move AC_LIBOBJ invocations to module description.
8975         * m4/argmatch.m4: Remove file.
8976         * modules/argmatch (Files): Remove it.
8977         (configure.ac): Remove gl_ARGMATCH call.
8978         (Makefile.am): Augment lib_SOURCES.
8979
8980 2011-05-23  Bruno Haible  <bruno@clisp.org>
8981
8982         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
8983         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
8984         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
8985
8986 2011-05-23  Bruno Haible  <bruno@clisp.org>
8987
8988         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
8989         * m4/arcfour.m4: Remove file.
8990         * modules/crypto/arcfour (Files): Remove it.
8991         (configure.ac): Remove gl_ARCFOUR call.
8992         (Makefile.am): Augment lib_SOURCES.
8993
8994 2011-05-22  Bruno Haible  <bruno@clisp.org>
8995
8996         write: Move AC_LIBOBJ invocations to module description.
8997         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
8998         * modules/write (configure.ac): ... to here.
8999
9000 2011-05-22  Bruno Haible  <bruno@clisp.org>
9001
9002         wmemset: Move AC_LIBOBJ invocations to module description.
9003         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
9004         here...
9005         * modules/wmemset (configure.ac): ... to here.
9006
9007 2011-05-22  Bruno Haible  <bruno@clisp.org>
9008
9009         wmemmove: Move AC_LIBOBJ invocations to module description.
9010         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
9011         here...
9012         * modules/wmemmove (configure.ac): ... to here.
9013
9014 2011-05-22  Bruno Haible  <bruno@clisp.org>
9015
9016         wmemcpy: Move AC_LIBOBJ invocations to module description.
9017         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
9018         here...
9019         * modules/wmemcpy (configure.ac): ... to here.
9020
9021 2011-05-22  Bruno Haible  <bruno@clisp.org>
9022
9023         wmemcmp: Move AC_LIBOBJ invocations to module description.
9024         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
9025         here...
9026         * modules/wmemcmp (configure.ac): ... to here.
9027
9028 2011-05-22  Bruno Haible  <bruno@clisp.org>
9029
9030         wmemchr: Move AC_LIBOBJ invocations to module description.
9031         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
9032         here...
9033         * modules/wmemchr (configure.ac): ... to here.
9034
9035 2011-05-22  Bruno Haible  <bruno@clisp.org>
9036
9037         wcswidth: Move AC_LIBOBJ invocations to module description.
9038         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
9039         here...
9040         * modules/wcswidth (configure.ac): ... to here.
9041
9042 2011-05-22  Bruno Haible  <bruno@clisp.org>
9043
9044         wcwidth: Respect rules for use of AC_LIBOBJ.
9045         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
9046         invocation from here...
9047         * modules/wcwidth (configure.ac): ... to here.
9048         (Depends-on): Update conditions.
9049
9050 2011-05-22  Bruno Haible  <bruno@clisp.org>
9051
9052         wctype: Move AC_LIBOBJ invocations to module description.
9053         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
9054         invocation from here...
9055         * modules/wctype (configure.ac): ... to here.
9056         (Depends-on): Update conditions.
9057
9058 2011-05-22  Bruno Haible  <bruno@clisp.org>
9059
9060         wctrans: Move AC_LIBOBJ invocations to module description.
9061         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
9062         invocation from here...
9063         * modules/wctrans (configure.ac): ... to here.
9064
9065 2011-05-22  Bruno Haible  <bruno@clisp.org>
9066
9067         wctomb: Move AC_LIBOBJ invocations to module description.
9068         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
9069         invocations from here...
9070         * modules/wctomb (configure.ac): ... to here.
9071
9072 2011-05-22  Bruno Haible  <bruno@clisp.org>
9073
9074         wctob: Move AC_LIBOBJ invocations to module description.
9075         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
9076         gl_PREREQ_WCTOB invocations from here...
9077         * modules/wctob (configure.ac): ... to here.
9078         (Depends-on): Update conditions.
9079
9080 2011-05-22  Bruno Haible  <bruno@clisp.org>
9081
9082         wcsxfrm: Move AC_LIBOBJ invocations to module description.
9083         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
9084         here...
9085         * modules/wcsxfrm (configure.ac): ... to here.
9086
9087 2011-05-22  Bruno Haible  <bruno@clisp.org>
9088
9089         wcstok: Move AC_LIBOBJ invocations to module description.
9090         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
9091         * modules/wcstok (configure.ac): ... to here.
9092
9093 2011-05-22  Bruno Haible  <bruno@clisp.org>
9094
9095         wcsstr: Move AC_LIBOBJ invocations to module description.
9096         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
9097         * modules/wcsstr (configure.ac): ... to here.
9098
9099 2011-05-22  Bruno Haible  <bruno@clisp.org>
9100
9101         wcsspn: Move AC_LIBOBJ invocations to module description.
9102         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
9103         * modules/wcsspn (configure.ac): ... to here.
9104
9105 2011-05-22  Bruno Haible  <bruno@clisp.org>
9106
9107         wcsrtombs: Move AC_LIBOBJ invocations to module description.
9108         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
9109         gl_PREREQ_WCSRTOMBS invocations from here...
9110         * modules/wcsrtombs (configure.ac): ... to here.
9111
9112 2011-05-22  Bruno Haible  <bruno@clisp.org>
9113
9114         wcsrchr: Move AC_LIBOBJ invocations to module description.
9115         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
9116         here...
9117         * modules/wcsrchr (configure.ac): ... to here.
9118
9119 2011-05-22  Bruno Haible  <bruno@clisp.org>
9120
9121         wcspbrk: Move AC_LIBOBJ invocations to module description.
9122         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
9123         here...
9124         * modules/wcspbrk (configure.ac): ... to here.
9125
9126 2011-05-22  Bruno Haible  <bruno@clisp.org>
9127
9128         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
9129         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
9130         gl_PREREQ_WCSNRTOMBS invocations from here...
9131         * modules/wcsnrtombs (configure.ac): ... to here.
9132
9133 2011-05-22  Bruno Haible  <bruno@clisp.org>
9134
9135         wcsnlen: Move AC_LIBOBJ invocations to module description.
9136         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
9137         here...
9138         * modules/wcsnlen (configure.ac): ... to here.
9139
9140 2011-05-22  Bruno Haible  <bruno@clisp.org>
9141
9142         wcsncpy: Move AC_LIBOBJ invocations to module description.
9143         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
9144         here...
9145         * modules/wcsncpy (configure.ac): ... to here.
9146
9147 2011-05-22  Bruno Haible  <bruno@clisp.org>
9148
9149         wcsncmp: Move AC_LIBOBJ invocations to module description.
9150         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
9151         here...
9152         * modules/wcsncmp (configure.ac): ... to here.
9153
9154 2011-05-22  Bruno Haible  <bruno@clisp.org>
9155
9156         wcsncat: Move AC_LIBOBJ invocations to module description.
9157         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
9158         here...
9159         * modules/wcsncat (configure.ac): ... to here.
9160
9161 2011-05-22  Bruno Haible  <bruno@clisp.org>
9162
9163         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
9164         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
9165         from here...
9166         * modules/wcsncasecmp (configure.ac): ... to here.
9167
9168 2011-05-22  Bruno Haible  <bruno@clisp.org>
9169
9170         wcslen: Move AC_LIBOBJ invocations to module description.
9171         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
9172         * modules/wcslen (configure.ac): ... to here.
9173
9174 2011-05-22  Bruno Haible  <bruno@clisp.org>
9175
9176         wcsdup: Move AC_LIBOBJ invocations to module description.
9177         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
9178         * modules/wcsdup (configure.ac): ... to here.
9179
9180 2011-05-22  Bruno Haible  <bruno@clisp.org>
9181
9182         wcscspn: Move AC_LIBOBJ invocations to module description.
9183         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
9184         here...
9185         * modules/wcscspn (configure.ac): ... to here.
9186
9187 2011-05-22  Bruno Haible  <bruno@clisp.org>
9188
9189         wcscpy: Move AC_LIBOBJ invocations to module description.
9190         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
9191         * modules/wcscpy (configure.ac): ... to here.
9192
9193 2011-05-22  Bruno Haible  <bruno@clisp.org>
9194
9195         wcscoll: Move AC_LIBOBJ invocations to module description.
9196         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
9197         here...
9198         * modules/wcscoll (configure.ac): ... to here.
9199
9200 2011-05-22  Bruno Haible  <bruno@clisp.org>
9201
9202         wcscmp: Move AC_LIBOBJ invocations to module description.
9203         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
9204         * modules/wcscmp (configure.ac): ... to here.
9205
9206 2011-05-22  Bruno Haible  <bruno@clisp.org>
9207
9208         wcschr: Move AC_LIBOBJ invocations to module description.
9209         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
9210         * modules/wcschr (configure.ac): ... to here.
9211
9212 2011-05-22  Bruno Haible  <bruno@clisp.org>
9213
9214         wcscat: Move AC_LIBOBJ invocations to module description.
9215         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
9216         * modules/wcscat (configure.ac): ... to here.
9217
9218 2011-05-22  Bruno Haible  <bruno@clisp.org>
9219
9220         wcscasecmp: Move AC_LIBOBJ invocations to module description.
9221         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
9222         here...
9223         * modules/wcscasecmp (configure.ac): ... to here.
9224
9225 2011-05-22  Bruno Haible  <bruno@clisp.org>
9226
9227         wcrtomb: Move AC_LIBOBJ invocations to module description.
9228         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
9229         invocations from here...
9230         * modules/wcrtomb (configure.ac): ... to here.
9231
9232 2011-05-22  Bruno Haible  <bruno@clisp.org>
9233
9234         wcpncpy: Move AC_LIBOBJ invocations to module description.
9235         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
9236         here...
9237         * modules/wcpncpy (configure.ac): ... to here.
9238
9239 2011-05-22  Bruno Haible  <bruno@clisp.org>
9240
9241         wcpcpy: Move AC_LIBOBJ invocations to module description.
9242         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
9243         * modules/wcpcpy (configure.ac): ... to here.
9244
9245 2011-05-22  Bruno Haible  <bruno@clisp.org>
9246
9247         waitpid: Move AC_LIBOBJ invocations to module description.
9248         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
9249         invocation from here...
9250         * modules/waitpid (configure.ac): ... to here.
9251
9252 2011-05-22  Bruno Haible  <bruno@clisp.org>
9253
9254         utimensat: Move AC_LIBOBJ invocations to module description.
9255         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
9256         here...
9257         * modules/utimensat (configure.ac): ... to here.
9258
9259 2011-05-22  Bruno Haible  <bruno@clisp.org>
9260
9261         usleep: Move AC_LIBOBJ invocations to module description.
9262         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
9263         here...
9264         * modules/usleep (configure.ac): ... to here.
9265
9266 2011-05-22  Bruno Haible  <bruno@clisp.org>
9267
9268         unlockpt: Move AC_LIBOBJ invocations to module description.
9269         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
9270         gl_PREREQ_UNLOCKPT invocations from here...
9271         * modules/unlockpt (configure.ac): ... to here.
9272
9273 2011-05-22  Bruno Haible  <bruno@clisp.org>
9274
9275         unlink: Respect rules for use of AC_LIBOBJ.
9276         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
9277         * modules/unlink (configure.ac): ... to here.
9278
9279 2011-05-22  Bruno Haible  <bruno@clisp.org>
9280
9281         uname: Move AC_LIBOBJ invocations to module description.
9282         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
9283         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
9284         here...
9285         * modules/uname (configure.ac): ... to here.
9286
9287 2011-05-22  Bruno Haible  <bruno@clisp.org>
9288
9289         ttyname_r: Move AC_LIBOBJ invocations to module description.
9290         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
9291         gl_PREREQ_TTYNAME_R invocations from here...
9292         * modules/ttyname_r (configure.ac): ... to here.
9293
9294 2011-05-22  Bruno Haible  <bruno@clisp.org>
9295
9296         tsearch: Move AC_LIBOBJ invocations to module description.
9297         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
9298         invocations from here...
9299         * modules/tsearch (configure.ac): ... to here.
9300
9301 2011-05-22  Bruno Haible  <bruno@clisp.org>
9302
9303         towctrans: Move AC_LIBOBJ invocations to module description.
9304         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
9305         AC_LIBOBJ invocation from here...
9306         * modules/towctrans (configure.ac): ... to here.
9307
9308 2011-05-22  Bruno Haible  <bruno@clisp.org>
9309
9310         tmpfile: Move AC_LIBOBJ invocations to module description.
9311         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
9312         invocations from here...
9313         * modules/tmpfile (configure.ac): ... to here.
9314
9315 2011-05-22  Bruno Haible  <bruno@clisp.org>
9316
9317         times: Move AC_LIBOBJ invocations to module description.
9318         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
9319         * modules/times (configure.ac): ... to here.
9320
9321 2011-05-22  Bruno Haible  <bruno@clisp.org>
9322
9323         time_r: Move AC_LIBOBJ invocations to module description.
9324         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
9325         invocations from here...
9326         * modules/time_r (configure.ac): ... to here.
9327
9328 2011-05-22  Bruno Haible  <bruno@clisp.org>
9329
9330         timegm: Move AC_LIBOBJ invocations to module description.
9331         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
9332         invocations from here...
9333         * modules/timegm (configure.ac): ... to here.
9334
9335 2011-05-22  Bruno Haible  <bruno@clisp.org>
9336
9337         tcgetsid: Move AC_LIBOBJ invocations to module description.
9338         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
9339         and gl_PREREQ_TCGETSID invocations from here...
9340         * modules/tcgetsid (configure.ac): ... to here.
9341         (Depends-on): Update conditions.
9342
9343 2011-05-22  Bruno Haible  <bruno@clisp.org>
9344
9345         symlinkat: Move AC_LIBOBJ invocations to module description.
9346         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
9347         here...
9348         * modules/symlinkat (configure.ac): ... to here.
9349
9350 2011-05-22  Bruno Haible  <bruno@clisp.org>
9351
9352         symlink: Move AC_LIBOBJ invocations to module description.
9353         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
9354         here...
9355         * modules/symlink (configure.ac): ... to here.
9356
9357 2011-05-22  Bruno Haible  <bruno@clisp.org>
9358
9359         strverscmp: Move AC_LIBOBJ invocations to module description.
9360         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
9361         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
9362         from here...
9363         * modules/strverscmp (configure.ac): ... to here.
9364
9365 2011-05-22  Bruno Haible  <bruno@clisp.org>
9366
9367         strtok_r: Move AC_LIBOBJ invocations to module description.
9368         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
9369         and gl_PREREQ_STRTOK_R invocations from here...
9370         * modules/strtok_r (configure.ac): ... to here.
9371         (Depends-on): Update conditions.
9372
9373 2011-05-22  Bruno Haible  <bruno@clisp.org>
9374
9375         strtoumax: Move AC_LIBOBJ invocations to module description.
9376         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
9377         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
9378         from here...
9379         * modules/strtoumax (configure.ac): ... to here.
9380
9381 2011-05-22  Bruno Haible  <bruno@clisp.org>
9382
9383         strtoimax: Move AC_LIBOBJ invocations to module description.
9384         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
9385         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
9386         from here...
9387         * modules/strtoimax (configure.ac): ... to here.
9388
9389 2011-05-22  Bruno Haible  <bruno@clisp.org>
9390
9391         strtoull: Move AC_LIBOBJ invocations to module description.
9392         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
9393         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
9394         from here...
9395         * modules/strtoull (configure.ac): ... to here.
9396
9397 2011-05-22  Bruno Haible  <bruno@clisp.org>
9398
9399         strtoll: Move AC_LIBOBJ invocations to module description.
9400         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
9401         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
9402         here...
9403         * modules/strtoll (configure.ac): ... to here.
9404
9405 2011-05-22  Bruno Haible  <bruno@clisp.org>
9406
9407         strtoul: Move AC_LIBOBJ invocations to module description.
9408         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
9409         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9410         * modules/strtoul (configure.ac): ... to here.
9411
9412 2011-05-22  Bruno Haible  <bruno@clisp.org>
9413
9414         strtol: Move AC_LIBOBJ invocations to module description.
9415         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
9416         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9417         * modules/strtol (configure.ac): ... to here.
9418
9419 2011-05-22  Bruno Haible  <bruno@clisp.org>
9420
9421         strtod: Move AC_LIBOBJ invocations to module description.
9422         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
9423         invocations from here...
9424         * modules/strtod (configure.ac): ... to here.
9425
9426 2011-05-22  Bruno Haible  <bruno@clisp.org>
9427
9428         strstr*: Move AC_LIBOBJ invocations to module description.
9429         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
9430         invocations from here...
9431         * modules/strstr-simple (configure.ac): ... to here.
9432         * modules/strstr (configure.ac): ... and here.
9433
9434 2011-05-22  Bruno Haible  <bruno@clisp.org>
9435
9436         strsignal: Move AC_LIBOBJ invocations to module description.
9437         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
9438         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
9439         * modules/strsignal (configure.ac): ... to here.
9440         (Depends-on): Update conditions.
9441
9442 2011-05-22  Bruno Haible  <bruno@clisp.org>
9443
9444         strsep: Move AC_LIBOBJ invocations to module description.
9445         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
9446         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
9447         here...
9448         * modules/strsep (configure.ac): ... to here.
9449
9450 2011-05-22  Bruno Haible  <bruno@clisp.org>
9451
9452         strptime: Move AC_LIBOBJ invocations to module description.
9453         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
9454         gl_PREREQ_STRPTIME invocations from here...
9455         * modules/strptime (configure.ac): ... to here.
9456
9457 2011-05-22  Bruno Haible  <bruno@clisp.org>
9458
9459         strpbrk: Move AC_LIBOBJ invocations to module description.
9460         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
9461         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
9462         here...
9463         * modules/strpbrk (configure.ac): ... to here.
9464
9465 2011-05-22  Bruno Haible  <bruno@clisp.org>
9466
9467         strnlen: Move AC_LIBOBJ invocations to module description.
9468         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
9469         invocations from here...
9470         * modules/strnlen (configure.ac): ... to here.
9471
9472 2011-05-22  Bruno Haible  <bruno@clisp.org>
9473
9474         strndup: Move AC_LIBOBJ invocations to module description.
9475         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
9476         invocations from here...
9477         * modules/strndup (configure.ac): ... to here.
9478         (Depends-on): Update conditions.
9479
9480 2011-05-22  Bruno Haible  <bruno@clisp.org>
9481
9482         strncat: Move AC_LIBOBJ invocations to module description.
9483         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
9484         invocations from here...
9485         * modules/strncat (configure.ac): ... to here.
9486
9487 2011-05-22  Bruno Haible  <bruno@clisp.org>
9488
9489         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
9490         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
9491         invocations from here...
9492         * modules/strdup (configure.ac): ... to here.
9493         * modules/strdup-posix (configure.ac): ... and here.
9494
9495 2011-05-22  Bruno Haible  <bruno@clisp.org>
9496
9497         strcspn: Move AC_LIBOBJ invocations to module description.
9498         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
9499         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
9500         here...
9501         * modules/strcspn (configure.ac): ... to here.
9502
9503 2011-05-22  Bruno Haible  <bruno@clisp.org>
9504
9505         strchrnul: Move AC_LIBOBJ invocations to module description.
9506         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
9507         gl_PREREQ_STRCHRNUL invocations from here...
9508         * modules/strchrnul (configure.ac): ... to here.
9509
9510 2011-05-22  Bruno Haible  <bruno@clisp.org>
9511
9512         strcasestr*: Move AC_LIBOBJ invocations to module description.
9513         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9514         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
9515         * modules/strcasestr-simple (configure.ac): ... to here.
9516         * modules/strcasestr (configure.ac): ... and here.
9517
9518 2011-05-22  Bruno Haible  <bruno@clisp.org>
9519
9520         strcase: Move AC_LIBOBJ invocations to module description.
9521         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
9522         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
9523         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
9524         gl_PREREQ_STRNCASECMP invocations from here...
9525         * modules/strcase (configure.ac): ... to here.
9526
9527 2011-05-22  Bruno Haible  <bruno@clisp.org>
9528
9529         stpncpy: Move AC_LIBOBJ invocations to module description.
9530         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
9531         here...
9532         * modules/stpncpy (configure.ac): ... to here.
9533
9534 2011-05-22  Bruno Haible  <bruno@clisp.org>
9535
9536         stpcpy: Move AC_LIBOBJ invocations to module description.
9537         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
9538         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
9539         here...
9540         * modules/stpcpy (configure.ac): ... to here.
9541
9542 2011-05-21  Bruno Haible  <bruno@clisp.org>
9543
9544         stat: Move AC_LIBOBJ invocations to module description.
9545         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
9546         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
9547         here...
9548         * modules/stat (configure.ac): ... to here.
9549
9550 2011-05-21  Bruno Haible  <bruno@clisp.org>
9551
9552         sleep: Move AC_LIBOBJ invocations to module description.
9553         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
9554         * modules/sleep (configure.ac): ... to here.
9555
9556 2011-05-21  Bruno Haible  <bruno@clisp.org>
9557
9558         signbit: Move AC_LIBOBJ invocations to module description.
9559         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
9560         * modules/signbit (configure.ac): ... to here.
9561
9562 2011-05-21  Bruno Haible  <bruno@clisp.org>
9563
9564         sigprocmask: Move AC_LIBOBJ invocations to module description.
9565         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
9566         gl_PREREQ_SIGPROMASK invocations from here...
9567         * modules/sigprocmask (configure.ac): ... to here.
9568
9569 2011-05-21  Bruno Haible  <bruno@clisp.org>
9570
9571         sigaction: Move AC_LIBOBJ invocations to module description.
9572         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
9573         gl_PREREQ_SIGACTION invocations from here...
9574         * modules/sigaction (configure.ac): ... to here.
9575
9576 2011-05-21  Bruno Haible  <bruno@clisp.org>
9577
9578         sig2str: Move AC_LIBOBJ invocations to module description.
9579         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
9580         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
9581         here...
9582         * modules/sig2str (configure.ac): ... to here.
9583
9584 2011-05-21  Bruno Haible  <bruno@clisp.org>
9585
9586         setlocale: Move AC_LIBOBJ invocations to module description.
9587         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
9588         gl_PREREQ_SETLOCALE invocations from here...
9589         * modules/setlocale (configure.ac): ... to here.
9590
9591 2011-05-21  Bruno Haible  <bruno@clisp.org>
9592
9593         unsetenv: Move AC_LIBOBJ invocations to module description.
9594         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
9595         and gl_PREREQ_UNSETENV invocations from here...
9596         * modules/unsetenv (configure.ac): ... to here.
9597         (Depends-on): Update.
9598
9599 2011-05-21  Bruno Haible  <bruno@clisp.org>
9600
9601         setenv: Move AC_LIBOBJ invocations to module description.
9602         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
9603         here...
9604         * modules/setenv (configure.ac): ... to here.
9605
9606 2011-05-21  Bruno Haible  <bruno@clisp.org>
9607
9608         selinux-h: Move AC_LIBOBJ invocations to module description.
9609         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
9610         AC_LIBOBJ invocation from here...
9611         * modules/selinux-h (configure.ac): ... to here.
9612
9613 2011-05-21  Bruno Haible  <bruno@clisp.org>
9614
9615         select: Respect rules for use of AC_LIBOBJ.
9616         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
9617         here...
9618         * modules/select (configure.ac): ... to here.
9619
9620 2011-05-21  Bruno Haible  <bruno@clisp.org>
9621
9622         scandir: Move AC_LIBOBJ invocations to module description.
9623         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
9624         invocations from here...
9625         * modules/scandir (configure.ac): ... to here.
9626
9627 2011-05-21  Bruno Haible  <bruno@clisp.org>
9628
9629         rpmatch: Move AC_LIBOBJ invocations to module description.
9630         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
9631         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
9632         here...
9633         * modules/rpmatch (configure.ac): ... to here.
9634
9635 2011-05-21  Bruno Haible  <bruno@clisp.org>
9636
9637         rmdir: Respect rules for use of AC_LIBOBJ.
9638         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
9639         * modules/rmdir (configure.ac): ... to here.
9640
9641 2011-05-21  Bruno Haible  <bruno@clisp.org>
9642
9643         renameat: Move AC_LIBOBJ invocations to module description.
9644         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
9645         here...
9646         * modules/renameat (configure.ac): ... to here.
9647
9648 2011-05-21  Bruno Haible  <bruno@clisp.org>
9649
9650         rename: Respect rules for use of AC_LIBOBJ.
9651         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
9652         here...
9653         * modules/rename (configure.ac): ... to here.
9654
9655 2011-05-21  Bruno Haible  <bruno@clisp.org>
9656
9657         remove: Move AC_LIBOBJ invocations to module description.
9658         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
9659         here...
9660         * modules/remove (configure.ac): ... to here.
9661
9662 2011-05-21  Bruno Haible  <bruno@clisp.org>
9663
9664         relocatable-lib: Move AC_LIBOBJ invocations to module description.
9665         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
9666         macro.
9667         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
9668         * modules/relocatable-lib (configure.ac): ... to here.
9669         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9670         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
9671
9672 2011-05-21  Bruno Haible  <bruno@clisp.org>
9673
9674         relocatable-prog: Move AC_LIBOBJ invocations to module description.
9675         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
9676         here...
9677         * modules/relocatable-prog (configure.ac): ... to here.
9678
9679 2011-05-21  Bruno Haible  <bruno@clisp.org>
9680
9681         regex: Move AC_LIBOBJ invocations to module description.
9682         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
9683         invocations from here...
9684         * modules/regex (configure.ac): ... to here.
9685
9686 2011-05-21  Bruno Haible  <bruno@clisp.org>
9687
9688         realloc-*: Move AC_LIBOBJ invocations to module description.
9689         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
9690         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
9691         AC_LIBOBJ invocations from here...
9692         * modules/realloc-gnu (configure.ac): ... to here.
9693         * modules/realloc-posix (configure.ac): ... and here.
9694
9695 2011-05-21  Bruno Haible  <bruno@clisp.org>
9696
9697         readutmp: Move AC_LIBOBJ invocations to module description.
9698         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
9699         * modules/readutmp (configure.ac): ... to here.
9700
9701 2011-05-21  Bruno Haible  <bruno@clisp.org>
9702
9703         readlinkat: Move AC_LIBOBJ invocations to module description.
9704         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
9705         here...
9706         * modules/readlinkat (configure.ac): ... to here.
9707
9708 2011-05-21  Bruno Haible  <bruno@clisp.org>
9709
9710         readlink: Move AC_LIBOBJ invocations to module description.
9711         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
9712         gl_PREREQ_READLINK invocations from here...
9713         * modules/readlink (configure.ac): ... to here.
9714
9715 2011-05-21  Bruno Haible  <bruno@clisp.org>
9716
9717         readline: Move AC_LIBOBJ invocations to module description.
9718         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
9719         gl_PREREQ_READLINE invocations from here...
9720         * modules/readline (configure.ac): ... to here.
9721
9722 2011-05-21  Bruno Haible  <bruno@clisp.org>
9723
9724         read: Move AC_LIBOBJ invocations to module description.
9725         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
9726         * modules/read (configure.ac): ... to here.
9727
9728 2011-05-21  Bruno Haible  <bruno@clisp.org>
9729
9730         rawmemchr: Move AC_LIBOBJ invocations to module description.
9731         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
9732         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
9733         from here...
9734         * modules/rawmemchr (configure.ac): ... to here.
9735
9736 2011-05-21  Bruno Haible  <bruno@clisp.org>
9737
9738         random_r: Move AC_LIBOBJ invocations to module description.
9739         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
9740         gl_PREREQ_RANDOM_R invocations from here...
9741         * modules/random_r (configure.ac): ... to here.
9742
9743 2011-05-21  Bruno Haible  <bruno@clisp.org>
9744
9745         pwrite: Move AC_LIBOBJ invocations to module description.
9746         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
9747         * modules/pwrite (configure.ac): ... to here.
9748
9749 2011-05-21  Bruno Haible  <bruno@clisp.org>
9750
9751         putenv: Move AC_LIBOBJ invocations to module description.
9752         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
9753         * modules/putenv (configure.ac): ... to here.
9754
9755 2011-05-21  Bruno Haible  <bruno@clisp.org>
9756
9757         login_tty: Move AC_LIBOBJ invocations to module description.
9758         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
9759         * modules/login_tty (configure.ac): ... to here.
9760
9761 2011-05-21  Bruno Haible  <bruno@clisp.org>
9762
9763         openpty: Move AC_LIBOBJ invocations to module description.
9764         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
9765         * modules/openpty (configure.ac): ... to here.
9766
9767 2011-05-21  Bruno Haible  <bruno@clisp.org>
9768
9769         forkpty: Move AC_LIBOBJ invocations to module description.
9770         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
9771         * modules/forkpty (configure.ac): ... to here.
9772
9773 2011-05-21  Bruno Haible  <bruno@clisp.org>
9774
9775         ptsname: Move AC_LIBOBJ invocations to module description.
9776         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
9777         invocations from here...
9778         * modules/ptsname (configure.ac): ... to here.
9779
9780 2011-05-21  Bruno Haible  <bruno@clisp.org>
9781
9782         pread: Move AC_LIBOBJ invocations to module description.
9783         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
9784         * modules/pread (configure.ac): ... to here.
9785
9786 2011-05-21  Bruno Haible  <bruno@clisp.org>
9787
9788         posix_spawn*: Move AC_LIBOBJ invocations to module description.
9789         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
9790         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
9791         * modules/posix_spawn (configure.ac): ... to here.
9792         * modules/posix_spawnp (configure.ac): ... and here.
9793
9794 2011-05-21  Bruno Haible  <bruno@clisp.org>
9795
9796         popen: Move AC_LIBOBJ invocations to module description.
9797         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
9798         invocations from here...
9799         * modules/popen (configure.ac): ... to here.
9800
9801 2011-05-21  Bruno Haible  <bruno@clisp.org>
9802
9803         poll: Move AC_LIBOBJ invocations to module description.
9804         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
9805         invocations from here...
9806         * modules/poll (configure.ac): ... to here.
9807
9808 2011-05-21  Bruno Haible  <bruno@clisp.org>
9809
9810         pipe-posix: Move AC_LIBOBJ invocations to module description.
9811         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
9812         * modules/pipe-posix (configure.ac): ... to here.
9813
9814 2011-05-21  Bruno Haible  <bruno@clisp.org>
9815
9816         openat: Respect rules for use of AC_LIBOBJ.
9817         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
9818         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9819         * modules/openat (configure.ac): ... to here.
9820
9821 2011-05-21  Bruno Haible  <bruno@clisp.org>
9822
9823         obstack-printf*: Move AC_LIBOBJ invocations to module description.
9824         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
9825         invocation from here...
9826         * modules/obstack-printf (configure.ac): ... to here.
9827         * modules/obstack-printf-posix (configure.ac): ... and here.
9828
9829 2011-05-21  Bruno Haible  <bruno@clisp.org>
9830
9831         nl_langinfo: Move AC_LIBOBJ invocations to module description.
9832         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
9833         from here...
9834         * modules/nl_langinfo (configure.ac): ... to here.
9835
9836 2011-05-21  Bruno Haible  <bruno@clisp.org>
9837
9838         nanosleep: Move AC_LIBOBJ invocations to module description.
9839         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
9840         gl_PREREQ_NANOSLEEP invocations from here...
9841         * modules/nanosleep (configure.ac): ... to here.
9842
9843 2011-05-21  Bruno Haible  <bruno@clisp.org>
9844
9845         mountlist: Move AC_LIBOBJ invocations to module description.
9846         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
9847         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
9848         * modules/mountlist (configure.ac): ... to here.
9849
9850 2011-05-21  Bruno Haible  <bruno@clisp.org>
9851
9852         mktime: Respect rules for use of AC_LIBOBJ.
9853         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
9854         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
9855         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
9856         (gl_FUNC_MKTIME_INTERNAL): ... and here...
9857         * modules/mktime (configure.ac): ... to here.
9858         * modules/mktime-internal (configure.ac): ... and here.
9859         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
9860
9861 2011-05-21  Bruno Haible  <bruno@clisp.org>
9862
9863         mkstemps: Move AC_LIBOBJ invocations to module description.
9864         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
9865         here...
9866         * modules/mkstemps (configure.ac): ... to here.
9867
9868 2011-05-21  Bruno Haible  <bruno@clisp.org>
9869
9870         mkstemp: Move AC_LIBOBJ invocations to module description.
9871         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
9872         gl_PREREQ_MKSTEMP invocations from here...
9873         * modules/mkstemp (configure.ac): ... to here.
9874
9875 2011-05-21  Bruno Haible  <bruno@clisp.org>
9876
9877         mkostemps: Move AC_LIBOBJ invocations to module description.
9878         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
9879         here...
9880         * modules/mkostemps (configure.ac): ... to here.
9881
9882 2011-05-21  Bruno Haible  <bruno@clisp.org>
9883
9884         mkostemp: Move AC_LIBOBJ invocations to module description.
9885         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
9886         gl_PREREQ_MKOSTEMP invocations from here...
9887         * modules/mkostemp (configure.ac): ... to here.
9888
9889 2011-05-21  Bruno Haible  <bruno@clisp.org>
9890
9891         mknod: Move AC_LIBOBJ invocations to module description.
9892         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
9893         * modules/mknod (configure.ac): ... to here.
9894
9895 2011-05-21  Bruno Haible  <bruno@clisp.org>
9896
9897         mkfifoat: Move AC_LIBOBJ invocations to module description.
9898         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
9899         here...
9900         * modules/mkfifoat (configure.ac): ... to here.
9901
9902 2011-05-21  Bruno Haible  <bruno@clisp.org>
9903
9904         mkfifo: Respect rules for use of AC_LIBOBJ.
9905         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
9906         here...
9907         * modules/mkfifo (configure.ac): ... to here.
9908
9909 2011-05-21  Bruno Haible  <bruno@clisp.org>
9910
9911         mkdtemp: Move AC_LIBOBJ invocations to module description.
9912         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
9913         invocations from here...
9914         * modules/mkdtemp (configure.ac): ... to here.
9915
9916 2011-05-21  Bruno Haible  <bruno@clisp.org>
9917
9918         mkdir: Move AC_LIBOBJ invocations to module description.
9919         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
9920         * modules/mkdir (configure.ac): ... to here.
9921
9922 2011-05-21  Bruno Haible  <bruno@clisp.org>
9923
9924         memset: Move AC_LIBOBJ invocations to module description.
9925         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
9926         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
9927         here...
9928         * modules/memset (configure.ac): ... to here.
9929
9930 2011-05-21  Bruno Haible  <bruno@clisp.org>
9931
9932         memrchr: Move AC_LIBOBJ invocations to module description.
9933         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
9934         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
9935         here...
9936         * modules/memrchr (configure.ac): ... to here.
9937
9938 2011-05-21  Bruno Haible  <bruno@clisp.org>
9939
9940         mempcpy: Move AC_LIBOBJ invocations to module description.
9941         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
9942         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
9943         here...
9944         * modules/mempcpy (configure.ac): ... to here.
9945
9946 2011-05-21  Bruno Haible  <bruno@clisp.org>
9947
9948         memmove: Move AC_LIBOBJ invocations to module description.
9949         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
9950         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
9951         here...
9952         * modules/memmove (configure.ac): ... to here.
9953
9954 2011-05-21  Bruno Haible  <bruno@clisp.org>
9955
9956         memmem*: Move AC_LIBOBJ invocations to module description.
9957         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
9958         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
9959         here...
9960         (gl_FUNC_MEMMEM): ... and here...
9961         * modules/memmem-simple (configure.ac): ... to here.
9962         * modules/memmem (configure.ac): ... and here.
9963
9964 2011-05-21  Bruno Haible  <bruno@clisp.org>
9965
9966         memcpy: Move AC_LIBOBJ invocations to module description.
9967         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
9968         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
9969         here...
9970         * modules/memcpy (configure.ac): ... to here.
9971
9972 2011-05-21  Bruno Haible  <bruno@clisp.org>
9973
9974         memcmp: Simplify autoconf macro.
9975         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
9976         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
9977         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
9978
9979 2011-05-21  Bruno Haible  <bruno@clisp.org>
9980
9981         memcmp: Move AC_LIBOBJ invocations to module description.
9982         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
9983         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
9984         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
9985         * modules/memcmp (configure.ac): ... to here.
9986         (Depends-on): Update conditions.
9987
9988 2011-05-21  Bruno Haible  <bruno@clisp.org>
9989
9990         memchr: Respect rules for use of AC_LIBOBJ.
9991         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
9992         invocations from here...
9993         * modules/memchr (configure.ac): ... to here.
9994
9995 2011-05-21  Bruno Haible  <bruno@clisp.org>
9996
9997         mbtowc: Move AC_LIBOBJ invocations to module description.
9998         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
9999         invocations from here...
10000         * modules/mbtowc (configure.ac): ... to here.
10001
10002 2011-05-21  Bruno Haible  <bruno@clisp.org>
10003
10004         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
10005         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
10006         gl_PREREQ_MBSRTOWCS invocations from here...
10007         * modules/mbsrtowcs (configure.ac): ... to here.
10008
10009 2011-05-21  Bruno Haible  <bruno@clisp.org>
10010
10011         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
10012         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
10013         gl_PREREQ_MBSNRTOWCS invocations from here...
10014         * modules/mbsnrtowcs (configure.ac): ... to here.
10015
10016 2011-05-21  Bruno Haible  <bruno@clisp.org>
10017
10018         mbsinit: Move AC_LIBOBJ invocations to module description.
10019         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
10020         invocations from here...
10021         * modules/mbsinit (configure.ac): ... to here.
10022
10023 2011-05-21  Bruno Haible  <bruno@clisp.org>
10024
10025         mbrlen: Move AC_LIBOBJ invocations to module description.
10026         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
10027         invocations from here...
10028         * modules/mbrlen (configure.ac): ... to here.
10029
10030 2011-05-21  Bruno Haible  <bruno@clisp.org>
10031
10032         mbrtowc: Respect rules for use of AC_LIBOBJ.
10033         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
10034         invocations from here...
10035         * modules/mbrtowc (configure.ac): ... to here.
10036
10037 2011-05-21  Bruno Haible  <bruno@clisp.org>
10038
10039         malloc-*: Move AC_LIBOBJ invocations to module description.
10040         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
10041         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
10042         AC_LIBOBJ invocations from here...
10043         * modules/malloc-gnu (configure.ac): ... to here.
10044         * modules/malloc-posix (configure.ac): ... and here.
10045
10046 2011-05-21  Bruno Haible  <bruno@clisp.org>
10047
10048         lstat, openat: Respect rules for use of AC_LIBOBJ.
10049         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
10050         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
10051         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
10052         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
10053         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
10054         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
10055         here.
10056         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
10057
10058 2011-05-21  Bruno Haible  <bruno@clisp.org>
10059
10060         lseek: Move AC_LIBOBJ invocations to module description.
10061         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
10062         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10063         * modules/lseek (configure.ac): ... to here.
10064
10065 2011-05-21  Bruno Haible  <bruno@clisp.org>
10066
10067         linkat: Move AC_LIBOBJ invocations to module description.
10068         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
10069         here...
10070         * modules/linkat (configure.ac): ... to here.
10071
10072 2011-05-21  Bruno Haible  <bruno@clisp.org>
10073
10074         link: Respect rules for use of AC_LIBOBJ.
10075         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
10076         * modules/link (configure.ac): ... to here.
10077
10078 2011-05-21  Bruno Haible  <bruno@clisp.org>
10079
10080         lchown: Move AC_LIBOBJ invocations to module description.
10081         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10082         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10083         * modules/lchown (configure.ac): ... to here.
10084
10085 2011-05-21  Bruno Haible  <bruno@clisp.org>
10086
10087         iswctype: Move AC_LIBOBJ invocations to module description.
10088         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
10089         here...
10090         * modules/iswctype (configure.ac): ... to here.
10091
10092 2011-05-21  Bruno Haible  <bruno@clisp.org>
10093
10094         iswblank: Move AC_LIBOBJ invocations to module description.
10095         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
10096         here...
10097         * modules/iswblank (configure.ac): ... to here.
10098
10099 2011-05-21  Bruno Haible  <bruno@clisp.org>
10100
10101         atanl: Move AC_LIBOBJ invocations to module description.
10102         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
10103         * modules/atanl (configure.ac): ... to here.
10104
10105 2011-05-21  Bruno Haible  <bruno@clisp.org>
10106
10107         acosl: Move AC_LIBOBJ invocations to module description.
10108         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
10109         * modules/acosl (configure.ac): ... to here.
10110
10111 2011-05-21  Bruno Haible  <bruno@clisp.org>
10112
10113         asinl: Respect rules for use of AC_LIBOBJ.
10114         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
10115         * modules/asinl (configure.ac): ... to here.
10116
10117 2011-05-21  Bruno Haible  <bruno@clisp.org>
10118
10119         tanl: Move AC_LIBOBJ invocations to module description.
10120         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
10121         * modules/tanl (configure.ac): ... to here.
10122
10123 2011-05-21  Bruno Haible  <bruno@clisp.org>
10124
10125         cosl: Move AC_LIBOBJ invocations to module description.
10126         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
10127         * modules/cosl (configure.ac): ... to here.
10128
10129 2011-05-21  Bruno Haible  <bruno@clisp.org>
10130
10131         sinl: Move AC_LIBOBJ invocations to module description.
10132         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
10133         * modules/sinl (configure.ac): ... to here.
10134
10135 2011-05-21  Bruno Haible  <bruno@clisp.org>
10136
10137         logl: Move AC_LIBOBJ invocations to module description.
10138         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
10139         * modules/logl (configure.ac): ... to here.
10140
10141 2011-05-21  Bruno Haible  <bruno@clisp.org>
10142
10143         expl: Move AC_LIBOBJ invocations to module description.
10144         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
10145         * modules/expl (configure.ac): ... to here.
10146
10147 2011-05-21  Bruno Haible  <bruno@clisp.org>
10148
10149         roundl: Move AC_LIBOBJ invocations to module description.
10150         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
10151         * modules/roundl (configure.ac): ... to here.
10152
10153 2011-05-21  Bruno Haible  <bruno@clisp.org>
10154
10155         round: Move AC_LIBOBJ invocations to module description.
10156         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
10157         * modules/round (configure.ac): ... to here.
10158
10159 2011-05-21  Bruno Haible  <bruno@clisp.org>
10160
10161         roundf: Move AC_LIBOBJ invocations to module description.
10162         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
10163         * modules/roundf (configure.ac): ... to here.
10164
10165 2011-05-21  Bruno Haible  <bruno@clisp.org>
10166
10167         truncl: Move AC_LIBOBJ invocations to module description.
10168         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
10169         * modules/truncl (configure.ac): ... to here.
10170
10171 2011-05-21  Bruno Haible  <bruno@clisp.org>
10172
10173         trunc: Move AC_LIBOBJ invocations to module description.
10174         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
10175         * modules/trunc (configure.ac): ... to here.
10176
10177 2011-05-21  Bruno Haible  <bruno@clisp.org>
10178
10179         truncf: Move AC_LIBOBJ invocations to module description.
10180         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
10181         * modules/truncf (configure.ac): ... to here.
10182
10183 2011-05-21  Bruno Haible  <bruno@clisp.org>
10184
10185         ceill: Move AC_LIBOBJ invocations to module description.
10186         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
10187         * modules/ceill (configure.ac): ... to here.
10188
10189 2011-05-21  Bruno Haible  <bruno@clisp.org>
10190
10191         ceil: Move AC_LIBOBJ invocations to module description.
10192         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
10193         * modules/ceil (configure.ac): ... to here.
10194
10195 2011-05-21  Bruno Haible  <bruno@clisp.org>
10196
10197         ceilf: Move AC_LIBOBJ invocations to module description.
10198         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
10199         * modules/ceilf (configure.ac): ... to here.
10200
10201 2011-05-21  Bruno Haible  <bruno@clisp.org>
10202
10203         floorl: Respect rules for use of AC_LIBOBJ.
10204         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
10205         * modules/floorl (configure.ac): ... to here.
10206
10207 2011-05-21  Bruno Haible  <bruno@clisp.org>
10208
10209         floor: Respect rules for use of AC_LIBOBJ.
10210         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
10211         * modules/floor (configure.ac): ... to here.
10212
10213 2011-05-21  Bruno Haible  <bruno@clisp.org>
10214
10215         floorf: Move AC_LIBOBJ invocations to module description.
10216         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
10217         * modules/floorf (configure.ac): ... to here.
10218
10219 2011-05-20  Bruno Haible  <bruno@clisp.org>
10220
10221         sqrtl: Respect rules for use of AC_LIBOBJ.
10222         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
10223         * modules/sqrtl (configure.ac): ... to here.
10224
10225 2011-05-20  Bruno Haible  <bruno@clisp.org>
10226
10227         ldexpl: Respect rules for use of AC_LIBOBJ.
10228         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
10229         * modules/ldexpl (configure.ac): ... to here.
10230
10231 2011-05-20  Bruno Haible  <bruno@clisp.org>
10232
10233         frexpl*: Respect rules for use of AC_LIBOBJ.
10234         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
10235         invocation from here...
10236         * modules/frexpl (configure.ac): ... to here.
10237         * modules/frexpl-nolibm (configure.ac): ... and here.
10238
10239 2011-05-20  Bruno Haible  <bruno@clisp.org>
10240
10241         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
10242         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
10243         invocation from here...
10244         * modules/frexp (configure.ac): ... to here.
10245         * modules/frexp-nolibm (configure.ac): ... and here.
10246
10247 2011-05-20  Bruno Haible  <bruno@clisp.org>
10248
10249         isnan: Respect rules for use of AC_LIBOBJ.
10250         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
10251         invocations here.
10252         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
10253         REPLACE_ISNAN.
10254         * modules/isnand (configure.ac): Likewise.
10255         * modules/isnanl (configure.ac): Likewise.
10256
10257 2011-05-20  Bruno Haible  <bruno@clisp.org>
10258
10259         isnanl*: Respect rules for use of AC_LIBOBJ.
10260         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
10261         invocation from here...
10262         * modules/isnanl (configure.ac): ... to here.
10263         * modules/isnanl-nolibm (configure.ac): ... and here.
10264
10265 2011-05-20  Bruno Haible  <bruno@clisp.org>
10266
10267         isnand*: Move AC_LIBOBJ invocations to module description.
10268         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
10269         invocation from here...
10270         * modules/isnand (configure.ac): ... to here.
10271         * modules/isnand-nolibm (configure.ac): ... and here.
10272
10273 2011-05-20  Bruno Haible  <bruno@clisp.org>
10274
10275         isnanf*: Move AC_LIBOBJ invocations to module description.
10276         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
10277         invocation from here...
10278         * modules/isnanf (configure.ac): ... to here.
10279         * modules/isnanf-nolibm (configure.ac): ... and here.
10280
10281 2011-05-20  Bruno Haible  <bruno@clisp.org>
10282
10283         isnan*: Separate the AC_LIBOBJ invocations.
10284         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
10285         AC_LIBOBJ invocation.
10286         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
10287         here.
10288         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
10289         AC_LIBOBJ invocation.
10290         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
10291         here.
10292         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
10293         AC_LIBOBJ invocation.
10294         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
10295         here.
10296         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
10297
10298 2011-05-08  Bruno Haible  <bruno@clisp.org>
10299
10300         isinf: Move AC_LIBOBJ invocations to module description.
10301         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
10302         * modules/isinf (configure.ac): ... to here.
10303
10304 2011-05-08  Bruno Haible  <bruno@clisp.org>
10305
10306         isfinite: Move AC_LIBOBJ invocations to module description.
10307         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
10308         * modules/isfinite (configure.ac): ... to here.
10309
10310 2011-05-08  Bruno Haible  <bruno@clisp.org>
10311
10312         isblank: Move AC_LIBOBJ invocations to module description.
10313         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
10314         here...
10315         * modules/isblank (configure.ac): ... to here.
10316
10317 2011-05-08  Bruno Haible  <bruno@clisp.org>
10318
10319         isapipe: Move AC_LIBOBJ invocations to module description.
10320         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
10321         gl_PREREQ_ISAPIPE invocations from here...
10322         * modules/isapipe (configure.ac): ... to here.
10323         (Depends-on): Update condition.
10324
10325 2011-05-08  Bruno Haible  <bruno@clisp.org>
10326
10327         ioctl: Move AC_LIBOBJ invocations to module description.
10328         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
10329         invocations from here...
10330         * modules/ioctl (configure.ac): ... to here.
10331         (Depends-on): Update condition.
10332
10333 2011-05-08  Bruno Haible  <bruno@clisp.org>
10334
10335         imaxdiv: Move AC_LIBOBJ invocations to module description.
10336         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
10337         invocations from here...
10338         * modules/imaxdiv (configure.ac): ... to here.
10339
10340 2011-05-08  Bruno Haible  <bruno@clisp.org>
10341
10342         imaxabs: Move AC_LIBOBJ invocations to module description.
10343         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
10344         invocations from here...
10345         * modules/imaxabs (configure.ac): ... to here.
10346
10347 2011-05-08  Bruno Haible  <bruno@clisp.org>
10348
10349         getaddrinfo: Move AC_LIBOBJ invocations to module description.
10350         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
10351         AC_LIBOBJ invocations from here...
10352         * modules/getaddrinfo (configure.ac): ... to here.
10353         (Depends-on): Add conditions.
10354
10355 2011-05-08  Bruno Haible  <bruno@clisp.org>
10356
10357         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10358         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
10359         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10360         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
10361         (gl_PREREQ_INET_PTON): ... from here.
10362         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
10363         gl_PREREQ_INET_PTON here.
10364         (Depends-on): Update condition.
10365
10366 2011-05-08  Bruno Haible  <bruno@clisp.org>
10367
10368         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10369         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
10370         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10371         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
10372         (gl_PREREQ_INET_NTOP): ... from here.
10373         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
10374         gl_PREREQ_INET_NTOP here.
10375         (Depends-on): Update condition.
10376
10377 2011-05-08  Bruno Haible  <bruno@clisp.org>
10378
10379         iconv_open: Move AC_LIBOBJ invocations to module description.
10380         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
10381         AC_LIBOBJ invocations from here...
10382         * modules/iconv_open (configure.ac): ... to here.
10383
10384 2011-05-08  Bruno Haible  <bruno@clisp.org>
10385
10386         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
10387         If module 'iconv_open' is among the main modules and module
10388         'iconv_open-utf' is among the tests dependencies, then
10389         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
10390         return the special iconv_t values. Therefore iconv() and iconv_close()
10391         must support these special iconv_t values, already in lib, not only in
10392         tests.
10393         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
10394         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
10395         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
10396         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
10397         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
10398         (Depends-on): Add the dependencies of iconv_open-utf.
10399         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
10400         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
10401         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
10402
10403 2011-05-08  Bruno Haible  <bruno@clisp.org>
10404
10405         group-member: Move AC_LIBOBJ invocations to module description.
10406         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
10407         gl_PREREQ_GROUP_MEMBER invocations from here...
10408         * modules/group-member (configure.ac): ... to here.
10409
10410 2011-05-08  Bruno Haible  <bruno@clisp.org>
10411
10412         grantpt: Move AC_LIBOBJ invocations to module description.
10413         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
10414         invocations from here...
10415         * modules/grantpt (configure.ac): ... to here.
10416
10417 2011-05-08  Bruno Haible  <bruno@clisp.org>
10418
10419         glob: Move AC_LIBOBJ invocations to module description.
10420         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
10421         from here...
10422         * modules/glob (configure.ac): ... to here.
10423
10424 2011-05-08  Bruno Haible  <bruno@clisp.org>
10425
10426         getusershell: Move AC_LIBOBJ invocations to module description.
10427         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
10428         Move AC_LIBOBJ invocation from here...
10429         * modules/getusershell (configure.ac): ... to here.
10430         (Depends-on): Update condition.
10431
10432 2011-05-08  Bruno Haible  <bruno@clisp.org>
10433
10434         gettimeofday: Move AC_LIBOBJ invocations to module description.
10435         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
10436         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
10437         gl_PREREQ_GETTIMEOFDAY invocations from here...
10438         * modules/gettimeofday (configure.ac): ... to here.
10439
10440 2011-05-08  Bruno Haible  <bruno@clisp.org>
10441
10442         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
10443         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
10444         just gl_FUNC_TZSET.
10445         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
10446         (gl_FUNC_TZSET_CLOBBER): Remove actions.
10447         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
10448         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
10449
10450 2011-05-08  Bruno Haible  <bruno@clisp.org>
10451
10452         getsubopt: Move AC_LIBOBJ invocations to module description.
10453         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
10454         gl_PREREQ_GETSUBOPT invocations from here...
10455         * modules/getsubopt (configure.ac): ... to here.
10456
10457 2011-05-08  Bruno Haible  <bruno@clisp.org>
10458
10459         getpass-gnu: Move AC_LIBOBJ invocations to module description.
10460         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
10461         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
10462         * modules/getpass-gnu (configure.ac): ... to here.
10463
10464 2011-05-08  Bruno Haible  <bruno@clisp.org>
10465
10466         getpass: Move AC_LIBOBJ invocations to module description.
10467         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
10468         gl_PREREQ_GETPASS invocations from here...
10469         * modules/getpass (configure.ac): ... to here.
10470
10471 2011-05-08  Bruno Haible  <bruno@clisp.org>
10472
10473         getpagesize: Move AC_LIBOBJ invocations to module description.
10474         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
10475         from here...
10476         * modules/getpagesize (configure.ac): ... to here.
10477
10478 2011-05-08  Bruno Haible  <bruno@clisp.org>
10479
10480         getopt: Move AC_LIBOBJ invocations to module description.
10481         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
10482         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
10483         invocations from here...
10484         * modules/getopt-gnu (configure.ac): ... to here.
10485         * modules/getopt-posix (configure.ac): ... and here.
10486         (Depends-on): Update condition.
10487
10488 2011-05-08  Bruno Haible  <bruno@clisp.org>
10489
10490         getopt, argp: Respect rules for use of AC_LIBOBJ.
10491         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
10492         (gl_REPLACE_GETOPT_ALWAYS): New macro.
10493         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
10494         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
10495
10496 2011-05-08  Bruno Haible  <bruno@clisp.org>
10497
10498         getlogin_r: Move AC_LIBOBJ invocations to module description.
10499         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
10500         gl_PREREQ_GETLOGIN_R invocations from here...
10501         * modules/getlogin_r (configure.ac): ... to here.
10502
10503 2011-05-08  Bruno Haible  <bruno@clisp.org>
10504
10505         getlogin: Move AC_LIBOBJ invocations to module description.
10506         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
10507         here...
10508         * modules/getlogin (configure.ac): ... to here.
10509
10510 2011-05-08  Bruno Haible  <bruno@clisp.org>
10511
10512         getloadavg: Move AC_LIBOBJ invocations to module description.
10513         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
10514         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
10515         * modules/getloadavg (configure.ac): ... to here.
10516
10517 2011-05-08  Bruno Haible  <bruno@clisp.org>
10518
10519         gethrxtime: Move AC_LIBOBJ invocations to module description.
10520         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
10521         LIB_GETHRXTIME from here...
10522         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
10523         invocations from here...
10524         * modules/gethrxtime (configure.ac): ... to here.
10525
10526 2011-05-08  Bruno Haible  <bruno@clisp.org>
10527
10528         gethostname: Move AC_LIBOBJ invocations to module description.
10529         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
10530         gl_PREREQ_GETHOSTNAME invocations from here...
10531         * modules/gethostname (configure.ac): ... to here.
10532
10533 2011-05-08  Bruno Haible  <bruno@clisp.org>
10534
10535         getgroups: Move AC_LIBOBJ invocations to module description.
10536         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
10537         here...
10538         * modules/getgroups (configure.ac): ... to here.
10539
10540 2011-05-08  Bruno Haible  <bruno@clisp.org>
10541
10542         getdtablesize: Move AC_LIBOBJ invocations to module description.
10543         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
10544         invocation from here...
10545         * modules/getdtablesize (configure.ac): ... to here.
10546
10547 2011-05-08  Bruno Haible  <bruno@clisp.org>
10548
10549         getdomainname: Move AC_LIBOBJ invocations to module description.
10550         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
10551         gl_PREREQ_GETDOMAINNAME invocations from here...
10552         * modules/getdomainname (configure.ac): ... to here.
10553
10554 2011-05-08  Bruno Haible  <bruno@clisp.org>
10555
10556         getline: Move AC_LIBOBJ invocations to module description.
10557         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
10558         invocations from here...
10559         * modules/getline (configure.ac): ... to here.
10560
10561 2011-05-08  Bruno Haible  <bruno@clisp.org>
10562
10563         getline: Simplify.
10564         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
10565         It's already handled through the module dependency.
10566
10567 2011-05-08  Bruno Haible  <bruno@clisp.org>
10568
10569         getdelim: Move AC_LIBOBJ invocations to module description.
10570         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
10571         and gl_PREREQ_GETDELIM invocations from here...
10572         * modules/getdelim (configure.ac): ... to here.
10573         (Depends-on): Fix condition.
10574
10575 2011-05-08  Bruno Haible  <bruno@clisp.org>
10576
10577         getcwd: Move AC_LIBOBJ invocations to module description.
10578         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
10579         invocations from here...
10580         * modules/getcwd (configure.ac): ... to here.
10581
10582 2011-05-08  Bruno Haible  <bruno@clisp.org>
10583
10584         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
10585         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
10586         here...
10587         * modules/getcwd-lgpl (configure.ac): ... to here.
10588
10589 2011-05-07  Bruno Haible  <bruno@clisp.org>
10590
10591         crypto/gc: Move AC_LIBOBJ invocations to module description.
10592         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
10593         * modules/crypto/gc (configure.ac): ... to here.
10594
10595 2011-05-07  Bruno Haible  <bruno@clisp.org>
10596
10597         fwriting: Move AC_LIBOBJ invocations to module description.
10598         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
10599         here...
10600         * modules/fwriting (configure.ac): ... to here.
10601
10602 2011-05-07  Bruno Haible  <bruno@clisp.org>
10603
10604         fwritable: Move AC_LIBOBJ invocations to module description.
10605         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
10606         here...
10607         * modules/fwritable (configure.ac): ... to here.
10608
10609 2011-05-07  Bruno Haible  <bruno@clisp.org>
10610
10611         futimens: Move AC_LIBOBJ invocations to module description.
10612         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
10613         here...
10614         * modules/futimens (configure.ac): ... to here.
10615
10616 2011-05-07  Bruno Haible  <bruno@clisp.org>
10617
10618         ftruncate: Move AC_LIBOBJ invocations to module description.
10619         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
10620         gl_PREREQ_FTRUNCATE invocations from here...
10621         * modules/ftruncate (configure.ac): ... to here.
10622
10623 2011-05-07  Bruno Haible  <bruno@clisp.org>
10624
10625         fsync: Move AC_LIBOBJ invocations to module description.
10626         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
10627         invocations from here...
10628         * modules/fsync (configure.ac): ... to here.
10629
10630 2011-05-07  Bruno Haible  <bruno@clisp.org>
10631
10632         fsusage: Move AC_LIBOBJ invocations to module description.
10633         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
10634         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
10635         * modules/fsusage (configure.ac): ... to here.
10636
10637 2011-05-07  Bruno Haible  <bruno@clisp.org>
10638
10639         freopen: Move AC_LIBOBJ invocations to module description.
10640         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
10641         invocations from here...
10642         * modules/freopen (configure.ac): ... to here.
10643
10644 2011-05-07  Bruno Haible  <bruno@clisp.org>
10645
10646         free: Move AC_LIBOBJ invocations to module description.
10647         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
10648         invocations from here...
10649         * modules/free (configure.ac): ... to here.
10650
10651 2011-05-07  Bruno Haible  <bruno@clisp.org>
10652
10653         freadable: Move AC_LIBOBJ invocations to module description.
10654         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
10655         here...
10656         * modules/freadable (configure.ac): ... to here.
10657
10658 2011-05-07  Bruno Haible  <bruno@clisp.org>
10659
10660         fpurge: Move AC_LIBOBJ invocations to module description.
10661         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
10662         invocations from here...
10663         * modules/fpurge (configure.ac): ... to here.
10664
10665 2011-05-07  Bruno Haible  <bruno@clisp.org>
10666
10667         fpending: Move AC_LIBOBJ invocations to module description.
10668         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
10669         gl_FUNC_FPENDING.
10670         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
10671         invocations from here...
10672         * modules/fpending (configure.ac): ... to here.
10673
10674 2011-05-07  Bruno Haible  <bruno@clisp.org>
10675
10676         fopen: Move AC_LIBOBJ invocations to module description.
10677         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
10678         invocations from here...
10679         * modules/fopen (configure.ac): ... to here.
10680
10681 2011-05-07  Bruno Haible  <bruno@clisp.org>
10682
10683         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
10684         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
10685         gl_FUNC_FNMATCH_POSIX.
10686         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
10687         invocations from here...
10688         * modules/fnmatch (configure.ac): ... to here.
10689         * modules/fnmatch-gnu (configure.ac): ... and here.
10690
10691 2011-05-07  Bruno Haible  <bruno@clisp.org>
10692
10693         flock: Move AC_LIBOBJ invocations to module description.
10694         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
10695         invocations from here...
10696         * modules/flock (configure.ac): ... to here.
10697
10698 2011-05-07  Bruno Haible  <bruno@clisp.org>
10699
10700         fileblocks: Move AC_LIBOBJ invocations to module description.
10701         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
10702         gl_PREREQ_FILEBLOCKS invocations from here...
10703         * modules/fileblocks (configure.ac): ... to here.
10704
10705 2011-05-06  Bruno Haible  <bruno@clisp.org>
10706
10707         fflush: Move AC_LIBOBJ invocations to module description.
10708         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
10709         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
10710         invocations from here...
10711         * modules/fflush (configure.ac): ... to here.
10712
10713 2011-05-06  Bruno Haible  <bruno@clisp.org>
10714
10715         fdopendir: Move AC_LIBOBJ invocations to module description.
10716         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
10717         here...
10718         * modules/fdopendir (configure.ac): ... to here.
10719         (Depends-on): Improve conditions.
10720
10721 2011-05-06  Bruno Haible  <bruno@clisp.org>
10722
10723         _Exit: Move AC_LIBOBJ invocations to module description.
10724         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
10725         invocations from here...
10726         * modules/_Exit (configure.ac): ... to here.
10727
10728 2011-05-21  Bruno Haible  <bruno@clisp.org>
10729
10730         euidaccess: Respect rules for use of AC_LIBOBJ.
10731         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10732         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
10733         from here...
10734         * modules/euidaccess (configure.ac): ... to here.
10735
10736 2011-05-06  Bruno Haible  <bruno@clisp.org>
10737
10738         error: Move AC_LIBOBJ invocations to module description.
10739         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
10740         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
10741         invocations from here...
10742         * modules/error (configure.ac): ... to here.
10743
10744 2011-05-06  Bruno Haible  <bruno@clisp.org>
10745
10746         duplocale: Move AC_LIBOBJ invocations to module description.
10747         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
10748         gl_PREREQ_DUPLOCALE invocations from here...
10749         * modules/duplocale (configure.ac): ... to here.
10750
10751 2011-05-05  Bruno Haible  <bruno@clisp.org>
10752
10753         dirfd: Move AC_LIBOBJ invocations to module description.
10754         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
10755         gl_FUNC_DIRFD.
10756         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
10757         here...
10758         * modules/dirfd (configure.ac): ... to here.
10759         (Depends-on): Fix condition.
10760
10761 2011-05-05  Bruno Haible  <bruno@clisp.org>
10762
10763         chown: Respect rules for use of AC_LIBOBJ.
10764         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
10765         * modules/chown (configure.ac): ... to here.
10766
10767 2011-05-05  Bruno Haible  <bruno@clisp.org>
10768
10769         chdir-long: Move AC_LIBOBJ invocations to module description.
10770         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
10771         gl_PREREQ_CHDIR_LONG invocations from here...
10772         * modules/chdir-long (configure.ac): ... to here.
10773
10774 2011-05-05  Bruno Haible  <bruno@clisp.org>
10775
10776         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
10777         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
10778         from here...
10779         * modules/canonicalize-lgpl (configure.ac): ... to here.
10780
10781 2011-05-05  Bruno Haible  <bruno@clisp.org>
10782
10783         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
10784         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
10785         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
10786         REPLACE_CALLOC.
10787         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
10788         * modules/calloc-gnu (configure.ac): Likewise.
10789
10790 2011-05-05  Bruno Haible  <bruno@clisp.org>
10791
10792         btowc: Move AC_LIBOBJ invocations to module description.
10793         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
10794         invocations from here...
10795         * modules/btowc (configure.ac): ... to here.
10796
10797 2011-05-21  Bruno Haible  <bruno@clisp.org>
10798
10799         atexit: Move AC_LIBOBJ invocations to module description.
10800         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
10801         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
10802         here...
10803         * modules/atexit (configure.ac): ... to here.
10804
10805 2011-05-05  Bruno Haible  <bruno@clisp.org>
10806
10807         atoll: Move AC_LIBOBJ invocations to module description.
10808         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
10809         invocations from here...
10810         * modules/atoll (configure.ac): ... to here.
10811
10812 2011-05-05  Bruno Haible  <bruno@clisp.org>
10813
10814         argz: Move AC_LIBOBJ invocations to module description.
10815         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
10816         * modules/argz (configure.ac): ... to here.
10817
10818 2011-05-05  Bruno Haible  <bruno@clisp.org>
10819
10820         alphasort: Move AC_LIBOBJ invocations to module description.
10821         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
10822         gl_PREREQ_ALPHASORT invocations from here...
10823         * modules/alphasort (configure.ac): ... to here.
10824
10825 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10826
10827         verify: new macro verify_expr; verify_true deprecated
10828         * NEWS: Mention this.
10829         * doc/verify.texi (Compile-time Assertions): Document this.
10830         * lib/verify.h (verify_true): Deprecate.
10831         (verify_expr): New macro.
10832         * tests/test-verify.c (function): Test verify_expr.
10833
10834 2011-06-14  Jim Meyering  <meyering@redhat.com>
10835
10836         init.sh: give more portable redirection-related advice in a comment
10837         * tests/init.sh (stderr_fileno_): Update the advice in comments.
10838         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
10839         for lots of discussion.  Stefano Lattarini suggested the solution
10840         of putting "9>&2" after the command.  Reported by Bruno Haible.
10841
10842 2011-06-13  Bruno Haible  <bruno@clisp.org>
10843
10844         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
10845         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
10846         'none'.
10847
10848 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10849
10850         ftoastr: use strtof only if HAVE_STRTOF
10851         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
10852         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
10853         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
10854         * modules/ftoastr (configure.ac): Check for strtof.
10855
10856 2011-06-13  Bruno Haible  <bruno@clisp.org>
10857
10858         gnulib-tool: Addendum to 2011-06-08 commit.
10859         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
10860         and --witness-c-macro have been given, augment AM_CPPFLAGS.
10861
10862 2011-06-13  Bruno Haible  <bruno@clisp.org>
10863
10864         fseeko: Provide a non-inline replacement of fseek().
10865         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
10866         * modules/fseeko (Depends-on): Add fseek.
10867         * modules/fseek (License): Change to LGPLv2+.
10868
10869 2011-06-13  Bruno Haible  <bruno@clisp.org>
10870
10871         ftello: Provide a non-inline replacement of ftell().
10872         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
10873         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
10874         not have ftello() (such as on mingw).
10875         * modules/ftello (Depends-on): Add ftell.
10876         * modules/ftell (License): Change to LGPLv2+.
10877
10878 2011-05-07  Bruno Haible  <bruno@clisp.org>
10879
10880         ftell: Move AC_LIBOBJ invocations to module description.
10881         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
10882         * modules/ftell (configure.ac): ... to here.
10883
10884 2011-05-07  Bruno Haible  <bruno@clisp.org>
10885
10886         ftello: Respect rules for use of AC_LIBOBJ.
10887         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
10888         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
10889         here...
10890         * modules/ftello (configure.ac): ... to here.
10891
10892 2011-05-07  Bruno Haible  <bruno@clisp.org>
10893
10894         fseeko: Simplify.
10895         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
10896         (gl_FUNC_FSEEKO): Inline it here.
10897
10898 2011-05-07  Bruno Haible  <bruno@clisp.org>
10899
10900         fseek: Move AC_LIBOBJ invocations to module description.
10901         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
10902         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10903         * modules/fseek (configure.ac): ... to here.
10904
10905 2011-05-07  Bruno Haible  <bruno@clisp.org>
10906
10907         fseek: Respect rules for use of AC_LIBOBJ.
10908         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
10909         here...
10910         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
10911
10912 2011-05-07  Bruno Haible  <bruno@clisp.org>
10913
10914         fseeko: Respect rules for use of AC_LIBOBJ.
10915         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
10916         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
10917         here...
10918         * modules/fseeko (configure.ac): ... to here.
10919
10920 2011-06-13  Bruno Haible  <bruno@clisp.org>
10921
10922         gnulib-tool: Allow comments in the 'Depends-on' section.
10923         * doc/gnulib.texi (Module description): Mention comment syntax in the
10924         Depends-on section.
10925         * gnulib-tool (func_get_dependencies): Filter out comment lines.
10926
10927 2011-06-13  Bruno Haible  <bruno@clisp.org>
10928
10929         file-set.h: guard __attibute__ use, now that it's not always defined
10930         * lib/file-set.h (record_file): Use __attribute__ only with compiler
10931         versions that support it.  This fixes a coreutils build failure with
10932         the vendor cc on HP-UX 11.31.
10933
10934 2011-06-12  Bruno Haible  <bruno@clisp.org>
10935
10936         acl: Add support for HP-UX >= 11.11 JFS ACLs.
10937         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
10938         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
10939         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
10940         (acl, aclsort): New declarations.
10941         (aclv_nontrivial): New declaration.
10942         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
10943         (file_has_acl): Read also the second kind of HP-UX ACLs.
10944         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
10945         kind of HP-UX ACLs if the first kind fails.
10946         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
10947         second kind of HP-UX ACLs.
10948         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
10949         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
10950         agree.
10951         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10952         hpuxjfs.
10953         Handle hpuxjfs.
10954         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10955         hpuxjfs.
10956         Handle hpuxjfs.
10957         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10958         (func_test_same_acls): Use both lsacl and getacl.
10959         Handle hpuxjfs.
10960         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10961         (func_test_same_acls): Use both lsacl and getacl.
10962         Handle hpuxjfs.
10963
10964 2011-06-12  Bruno Haible  <bruno@clisp.org>
10965
10966         acl: Complete the 2010-08-10 fix.
10967         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
10968         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
10969         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
10970         explicitly.
10971         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
10972         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
10973
10974 2011-06-12  Bruno Haible  <bruno@clisp.org>
10975
10976         spawn-pipe tests: Comments.
10977         * tests/test-spawn-pipe-child.c (main): Update comment.
10978         Reported by James Youngman <jay@gnu.org>.
10979
10980 2011-06-11  James Youngman  <jay@gnu.org>
10981
10982         New module 'stat-size'.
10983         * modules/stat-size: New module.  Provides macros for accessing
10984         file size information in instances of struct stat.  Depends on the
10985         fileblocks module because it calls st_blocks.
10986         * lib/stat-size.h: New file, adapted from coreutils' system.h.
10987         * doc/gnulib.texi: Include stat-size.texi.
10988         * doc/stat-size.texi: Documentation for this module.
10989         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
10990         * m4/fileblocks.m4: Mention that stat-size depends on the call to
10991         AC_STRUCT_ST_BLOCKS.
10992
10993 2011-06-09  Bruno Haible  <bruno@clisp.org>
10994
10995         thread: Support pthreads-win32.
10996         * lib/glthread/thread.h (gl_thread_self): Define differently on
10997         pthreads-win32.
10998         (gl_null_thread): New declaration.
10999         (gl_thread_self_pointer): New macro.
11000         * lib/glthread/thread.c (gl_null_thread): New constant.
11001         * tests/test-lock.c: Use gl_thread_self_pointer instead of
11002         gl_thread_self.
11003         * tests/test-tls.c: Likewise.
11004         Suggested by Paul Eggert. Reported by Eric Blake.
11005
11006 2011-06-09  Bruno Haible  <bruno@clisp.org>
11007
11008         thread: Fix confusion between NULL and 0.
11009         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
11010         Reported by Paul Eggert.
11011
11012 2011-06-09  Bruno Haible  <bruno@clisp.org>
11013
11014         spawn-pipe tests: Avoid test failure on HP-UX 11.
11015         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
11016         is closed.
11017
11018 2011-06-09  Bruno Haible  <bruno@clisp.org>
11019
11020         acl tests: Fix compilation error on HP-UX 11.
11021         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
11022
11023 2011-06-09  Bruno Haible  <bruno@clisp.org>
11024
11025         rmdir: Avoid test failure on HP-UX 10.20.
11026         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
11027         EEXIST.
11028
11029 2011-06-08  Eric Blake  <eblake@redhat.com>
11030
11031         perror: fix test on mingw
11032         * modules/perror-tests (Depends-on): Add dup2.
11033
11034         strerror_r-posix: fix on MacOS
11035         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
11036         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
11037         logic bug.
11038         * lib/strerror_r.c (strerror_r): Fix the bug.
11039         * lib/strerror.c (strerror): Likewise.
11040         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11041         problem.
11042         * doc/posix-functions/strerror.texi (strerror): Likewise.
11043         * doc/posix-functions/perror.texi (perror): Likewise.
11044         * tests/test-strerror.c (main): Enhance test.
11045         * tests/test-strerror_r.c (main): Likewise.
11046
11047 2011-06-08  Bruno Haible  <bruno@clisp.org>
11048
11049         gnulib-tool: Better isolation between different gnulib-tool invocations.
11050         * gnulib-tool: New option --witness-c-macro.
11051         (witness_c_macro): New variable.
11052         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
11053         AM_CPPFLAGS define it as a C macro.
11054         (func_emit_tests_Makefile_am): Likewise.
11055         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
11056         read it from there.
11057         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
11058         m4_define, not AC_DEFUN.
11059         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
11060         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
11061         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
11062         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
11063         s|...|...|, to substitute the values of the GNULIB_* module indicator
11064         variables.
11065         * modules/dirent (Makefile.am): Likewise.
11066         * modules/fcntl-h (Makefile.am): Likewise.
11067         * modules/iconv-h (Makefile.am): Likewise.
11068         * modules/langinfo (Makefile.am): Likewise.
11069         * modules/locale (Makefile.am): Likewise.
11070         * modules/math (Makefile.am): Likewise.
11071         * modules/netdb (Makefile.am): Likewise.
11072         * modules/poll-h (Makefile.am): Likewise.
11073         * modules/pty (Makefile.am): Likewise.
11074         * modules/search (Makefile.am): Likewise.
11075         * modules/signal (Makefile.am): Likewise.
11076         * modules/spawn (Makefile.am): Likewise.
11077         * modules/stdio (Makefile.am): Likewise.
11078         * modules/stdlib (Makefile.am): Likewise.
11079         * modules/string (Makefile.am): Likewise.
11080         * modules/sys_ioctl (Makefile.am): Likewise.
11081         * modules/sys_select (Makefile.am): Likewise.
11082         * modules/sys_socket (Makefile.am): Likewise.
11083         * modules/sys_stat (Makefile.am): Likewise.
11084         * modules/sys_times (Makefile.am): Likewise.
11085         * modules/sys_utsname (Makefile.am): Likewise.
11086         * modules/sys_wait (Makefile.am): Likewise.
11087         * modules/termios (Makefile.am): Likewise.
11088         * modules/time (Makefile.am): Likewise.
11089         * modules/unistd (Makefile.am): Likewise.
11090         * modules/wchar (Makefile.am): Likewise.
11091
11092 2011-06-08  Eric Blake  <eblake@redhat.com>
11093
11094         strerror: simplify replacement
11095         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
11096         * modules/strerror (configure.ac): No prereqs needed here...
11097         * modules/strerror-override (configure.ac): ...but this needs it.
11098         (Files): Add file for needed prereq macro.
11099
11100 2011-06-08  Bruno Haible  <bruno@clisp.org>
11101
11102         strerror_r-posix: Tweaks.
11103         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
11104         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
11105         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
11106         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
11107         (gl_FUNC_STRERROR_R): ... to here.
11108         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
11109
11110 2011-06-07  Eric Blake  <eblake@redhat.com>
11111
11112         perror: document fixed bugs
11113         * doc/posix-functions/perror.texi (perror): Document recent
11114         patches.
11115
11116 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
11117
11118         stat-time: get_stat_birthtime failure is better-defined
11119         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
11120         return a timestamp whose tv_sec and tv_nsec values are both -1.
11121         Previously, the spec said only that the tv_nsec value was negative.
11122         This upward-compatible change simplifies GNU tar a bit.
11123
11124 2011-06-07  Eric Blake  <eblake@redhat.com>
11125
11126         strerror_r-posix: work around cygwin 1.7.9
11127         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
11128         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
11129         bug without replacing strerror_r.
11130         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
11131         strerror_r is buggy, but without requiring strerror_r compilation.
11132         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
11133
11134         test-perror: relax test to ignore cygwin bug
11135         * tests/test-perror2.c (main): Relax test on requiring detection
11136         of stream errors, and use unbuffered stream.
11137         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
11138         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
11139         * doc/posix-functions/fputc.texi (fputc): Likewise.
11140         * doc/posix-functions/fputs.texi (fputs): Likewise.
11141         * doc/posix-functions/fputws.texi (fputws): Likewise.
11142         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
11143         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
11144         * doc/posix-functions/getopt.texi (getopt): Likewise.
11145         * doc/posix-functions/perror.texi (perror): Likewise.
11146         * doc/posix-functions/printf.texi (printf): Likewise.
11147         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
11148         * doc/posix-functions/psignal.texi (psignal): Likewise.
11149         * doc/posix-functions/putc.texi (putc): Likewise.
11150         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
11151         Likewise.
11152         * doc/posix-functions/putchar.texi (putchar): Likewise.
11153         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
11154         Likewise.
11155         * doc/posix-functions/puts.texi (puts): Likewise.
11156         * doc/posix-functions/putwc.texi (putwc): Likewise.
11157         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
11158         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
11159         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11160         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
11161         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11162         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
11163         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11164         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
11165
11166 2011-05-22  Bruno Haible  <bruno@clisp.org>
11167
11168         strerror: Move AC_LIBOBJ invocations to module description.
11169         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
11170         gl_PREREQ_STRERROR invocations from here...
11171         * modules/strerror (configure.ac): ... to here.
11172
11173 2011-05-21  Bruno Haible  <bruno@clisp.org>
11174
11175         perror: Use common idiom.
11176         * modules/perror (configure.ac): Reorder statements.
11177
11178 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11179
11180         tests: fix usage message in 'mktempd_'
11181         * tests/init.sh (mktempd_): In the usage message, use literal
11182         'mktempd_', not '$ME' (which is even undefined), as the name of
11183         the subroutine.
11184
11185 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11186
11187         tests init: new function 'fatal_', for hard errors
11188         Before this patch, the only way offered by tests/init.sh to
11189         properly signal a hard error was the `framework_failure_'
11190         function.  But the error message issued by that function,
11191         as its name would suggest, refers to a set-up failure in the
11192         testsuite, while hard errors can obviously also be due to
11193         other reasons.  The best way to fix this inconsistency is to
11194         introduce a new function with a more general error message.
11195         * tests/init.sh (fatal_): New function.
11196
11197 2011-06-06  Eric Blake  <eblake@redhat.com>
11198
11199         canonicalize-lgpl: use common idiom
11200         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
11201         over newer POSIX -Rf.
11202         Reported by Bruno Haible.
11203
11204         canonicalize-lgpl: work around AIX realpath bug
11205         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
11206         * doc/posix-functions/realpath.texi (realpath): Document it.
11207         Reported by Bruno Haible.
11208
11209         strerror: work around FreeBSD bug
11210         * lib/strerror.c (strerror): Special case 0.
11211         Reported by Bruno Haible.
11212
11213         strerror-override: avoid bloating errno module
11214         * modules/errno (Files, configure.ac): Move replacement strings...
11215         * modules/strerror-override: ...to new module.
11216         * modules/strerror (Depends-on): Add strerror-override.
11217         * modules/strerror_r-posix (Depends-on): Likewise.
11218         * MODULES.html.sh: Document new module.
11219         Reported by Bruno Haible.
11220
11221 2011-06-06  Bruno Haible  <bruno@clisp.org>
11222
11223         spawn-pipe tests: Rename program.
11224         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
11225         * tests/test-spawn-pipe-child.c: Update comment.
11226         * tests/test-spawn-pipe.sh: Update.
11227         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
11228
11229         spawn-pipe tests: Link the child program only against libc.
11230         * tests/test-spawn-pipe-child.c: New file, extracted from
11231         tests/test-spawn-pipe.c.
11232         (main): Expect only one argument.
11233         (is_open): New function, copied from tests/test-pipe.c.
11234         * tests/test-spawn-pipe.c: Don't include <errno.h>.
11235         (child_main): Remove function.
11236         (test_pipe): Pass only one argument to the child program.
11237         (main): Remove child process code. Expect the child program's name as
11238         first argument.
11239         * tests/test-spawn-pipe.sh: Pass the child program's name as first
11240         argument.
11241         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
11242         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
11243         test-spawn-pipe-child against no libraries.
11244
11245 2011-06-06  Bruno Haible  <bruno@clisp.org>
11246
11247         careadlinkat: Avoid mismatch between ssize_t and int.
11248         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
11249         * lib/careadlinkat.c (careadlinkatcwd): Define always.
11250
11251 2011-06-06  Jim Meyering  <meyering@redhat.com>
11252
11253         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
11254         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
11255         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
11256
11257 2011-06-05  Bruno Haible  <bruno@clisp.org>
11258
11259         ansi-c++-opt: Interoperability with libtool.
11260         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
11261         set the variable to "no", not to ":".
11262         * NEWS: Mention the change.
11263
11264 2011-06-05  Bruno Haible  <bruno@clisp.org>
11265
11266         acl: Fix test failure on AIX 7.
11267         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
11268         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
11269
11270 2011-06-05  Bruno Haible  <bruno@clisp.org>
11271
11272         pipe-filter-ii: Fix test failure on AIX and IRIX.
11273         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
11274         with EAGAIN, retry with a smaller buffer size.
11275
11276 2011-06-05  Bruno Haible  <bruno@clisp.org>
11277
11278         localename: Fix link dependencies.
11279         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
11280         * modules/localename-tests (Makefile.am): Link test-localename with
11281         $(LIBTHREAD).
11282
11283 2011-06-05  Bruno Haible  <bruno@clisp.org>
11284
11285         error: Avoid gcc warning.
11286         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
11287
11288 2011-06-05  Bruno Haible  <bruno@clisp.org>
11289
11290         unsetenv: Avoid gcc warning.
11291         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
11292
11293 2011-06-05  Bruno Haible  <bruno@clisp.org>
11294
11295         setenv: Avoid gcc warning.
11296         * lib/setenv.c (setenv): Provide declaration if system lacks it.
11297
11298 2011-06-05  Bruno Haible  <bruno@clisp.org>
11299
11300         sys_select: Ensure memset is declared also on AIX 7.
11301         * lib/sys_select.in.h: Include <string.h> also on AIX.
11302         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
11303         self-contained also on AIX 7.1.
11304
11305 2011-06-04  Jim Meyering  <meyering@redhat.com>
11306
11307         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
11308         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
11309         function name, "error".
11310         (_gl_translatable_diag_func_re): New configurable variable.
11311
11312 2011-06-04  Bruno Haible  <bruno@clisp.org>
11313
11314         getopt: Avoid gcc warning.
11315         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
11316
11317 2011-06-04  Bruno Haible  <bruno@clisp.org>
11318
11319         strerror_r: Fix comments.
11320         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
11321         commit.
11322
11323 2011-06-04  Bruno Haible  <bruno@clisp.org>
11324
11325         perror: Fix compilation error.
11326         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
11327         Undefine fprintf, not sprintf.
11328         * modules/perror (Depends-on): Remove intprops, verify.
11329
11330 2011-06-04  Bruno Haible  <bruno@clisp.org>
11331
11332         setlocale: Enable replacement on Cygwin 1.5.
11333         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
11334         Cygwin 1.5.x.
11335         * doc/posix-functions/setlocale.texi: Mention that the problem with the
11336         LC_CTYPE category also exists on Cygwin 1.5.x.
11337
11338 2011-06-04  Bruno Haible  <bruno@clisp.org>
11339
11340         strerror-override: Don't disable symbol renamings.
11341         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
11342         * lib/strerror-override.c: Include config.h.
11343         (strerror_override): Don't undefine.
11344
11345 2011-06-03  Bruno Haible  <bruno@clisp.org>
11346
11347         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
11348         * lib/localename.h: Update copyright header.
11349         * lib/localename.c: Likewise.
11350         * lib/relocatable.h: Likewise.
11351         * lib/relocatable.c: Likewise.
11352
11353 2011-06-02  Bruno Haible  <bruno@clisp.org>
11354
11355         doc: Fix a module name.
11356         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
11357
11358 2011-06-02  Bruno Haible  <bruno@clisp.org>
11359
11360         pipe2: Remove dependency on 'nonblocking' module.
11361         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
11362         O_NONBLOCK is defined by gnulib.
11363         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
11364         is zero.
11365         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
11366         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
11367         defined by gnulib.
11368         (get_nonblocking_flag): New function.
11369         (main): Test O_NONBLOCK flag only if it is nonzero.
11370         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
11371
11372 2011-06-03  Jim Meyering  <meyering@redhat.com>
11373
11374         maint: three new prohibit-header-without-use rules
11375         Prohibit use of cloexec.h, posixver.h, same.h without use.
11376         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
11377         (sc_prohibit_posixver_without_use): Likewise.
11378         (sc_prohibit_same_without_use): Likewise.
11379
11380 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11381
11382         allocator: 'die' routine is now given requested size
11383         * lib/allocator.h (struct allocator.die): New size arg.
11384         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
11385         If the actual problem is an ssize_t limitation, not a size_t or
11386         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
11387
11388 2011-06-01  Eric Blake  <eblake@redhat.com>
11389
11390         strerror: drop strerror_r dependency
11391         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
11392         * lib/strerror-override.c (strerror_override): ...to new file.
11393         * lib/strerror-override.h: Add prototype.
11394         * lib/strerror-impl.h: Delete.
11395         * lib/strerror.c (strerror): New implementation.
11396         * modules/errno (Files): Add new files.
11397         (configure.ac): Compile new file as appropriate.
11398         * modules/strerror (Files): Drop unused file.
11399         (Depends-on): Drop strerror_r-posix.
11400         * MODULES.html.sh: Document strerror_r-posix.
11401         Requested by Sam Steingold.
11402
11403         perror: call strerror_r directly
11404         * modules/perror (Files): Drop strerror-impl.h.
11405         * lib/perror.c (perror): Use our own stack buffer, rather than
11406         calling a wrapper that uses static storage.
11407         * doc/posix-functions/perror.texi (perror): Document a limitation
11408         of our replacement.
11409
11410         strerror_r: fix includes for FreeBSD
11411         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
11412         since we use abort on some platforms.
11413         Reported by Matthias Bolte.
11414
11415 2011-05-31  Bruno Haible  <bruno@clisp.org>
11416
11417         Fix link errors in tests: openat-die uses gettext-h.
11418         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
11419         against $(LIBINTL).
11420         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
11421         against $(LIBINTL).
11422         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
11423         $(LIBINTL).
11424         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
11425         against $(LIBINTL).
11426         * modules/linkat-tests (Makefile.am): Link test-linkat against
11427         $(LIBINTL).
11428         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
11429         $(LIBINTL).
11430         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
11431         against $(LIBINTL).
11432         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
11433         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
11434         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
11435         $(LIBINTL).
11436         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
11437         $(LIBINTL).
11438         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
11439         $(LIBINTL).
11440         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11441
11442 2011-05-31  Bruno Haible  <bruno@clisp.org>
11443
11444         Fix link errors in tests: wait-process uses gettext-h.
11445         * modules/nonblocking-pipe-tests (Makefile.am): Set
11446         test_nonblocking_pipe_main_LDADD.
11447         * modules/nonblocking-socket-tests (Makefile.am): Link
11448         test-nonblocking-socket-main against $(LIBINTL).
11449         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11450
11451 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
11452
11453         assert-h: work around 'verify' incompatibility
11454         * lib/verify.h: Use @...@ directives, not ifdef.
11455         * modules/assert-h (assert.h): Implement the directives.
11456         (assert.h): Substitute the symbol-prefix more consistently.
11457
11458 2011-05-29  Jim Meyering  <meyering@redhat.com>
11459
11460         trim: remove three superfluous assignments
11461         * lib/trim.c (trim2): Remove three superfluous assignments
11462         and correct brace positioning.
11463
11464 2011-05-29  Bruno Haible  <bruno@clisp.org>
11465
11466         wctype-h: Avoid namespace pollution on Solaris 2.6.
11467         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
11468         identifiers.
11469         * doc/posix-headers/wctype.texi: Mention the problem.
11470         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11471
11472 2011-05-28  Jim Meyering  <meyering@redhat.com>
11473
11474         parse-datetime.y: accommodate -Wstrict-overflow
11475         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
11476         placate -Wstrict-overflow.
11477
11478         trim: avoid a warning from -O2 -Wstrict-overflow
11479         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
11480
11481 2011-05-29  Bruno Haible  <bruno@clisp.org>
11482
11483         gnulib-tool: Fix bug in yesterday's commit.
11484         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
11485         twice.
11486
11487 2011-05-29  Bruno Haible  <bruno@clisp.org>
11488
11489         Allow multiple gnulib generated include files to be combined.
11490         * gnulib-tool (func_compute_include_guard_prefix): New function.
11491         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
11492         ${gl_include_guard_prefix} references.
11493         (func_import, func_create_testdir): Invoke
11494         func_compute_include_guard_prefix.
11495         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
11496         * lib/ctype.in.h: Likewise.
11497         * lib/dirent.in.h: Likewise.
11498         * lib/errno.in.h: Likewise.
11499         * lib/fcntl.in.h: Likewise.
11500         * lib/float.in.h: Likewise.
11501         * lib/getopt.in.h: Likewise.
11502         * lib/iconv.in.h: Likewise.
11503         * lib/langinfo.in.h: Likewise.
11504         * lib/locale.in.h: Likewise.
11505         * lib/math.in.h: Likewise.
11506         * lib/netdb.in.h: Likewise.
11507         * lib/netinet_in.in.h: Likewise.
11508         * lib/poll.in.h: Likewise.
11509         * lib/pthread.in.h: Likewise.
11510         * lib/pty.in.h: Likewise.
11511         * lib/sched.in.h: Likewise.
11512         * lib/se-selinux.in.h: Likewise.
11513         * lib/search.in.h: Likewise.
11514         * lib/signal.in.h: Likewise.
11515         * lib/spawn.in.h: Likewise.
11516         * lib/stdarg.in.h: Likewise.
11517         * lib/stddef.in.h: Likewise.
11518         * lib/stdint.in.h: Likewise.
11519         * lib/stdio.in.h: Likewise.
11520         * lib/stdlib.in.h: Likewise.
11521         * lib/string.in.h: Likewise.
11522         * lib/strings.in.h: Likewise.
11523         * lib/sys_file.in.h: Likewise.
11524         * lib/sys_ioctl.in.h: Likewise.
11525         * lib/sys_select.in.h: Likewise.
11526         * lib/sys_socket.in.h: Likewise.
11527         * lib/sys_stat.in.h: Likewise.
11528         * lib/sys_time.in.h: Likewise.
11529         * lib/sys_times.in.h: Likewise.
11530         * lib/sys_uio.in.h: Likewise.
11531         * lib/sys_utsname.in.h: Likewise.
11532         * lib/sys_wait.in.h: Likewise.
11533         * lib/sysexits.in.h: Likewise.
11534         * lib/termios.in.h: Likewise.
11535         * lib/time.in.h: Likewise.
11536         * lib/unistd.in.h: Likewise.
11537         * lib/wchar.in.h: Likewise.
11538         * lib/wctype.in.h: Likewise.
11539         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
11540         * modules/ctype (Makefile.am): Likewise.
11541         * modules/dirent (Makefile.am): Likewise.
11542         * modules/errno (Makefile.am): Likewise.
11543         * modules/fcntl-h (Makefile.am): Likewise.
11544         * modules/float (Makefile.am): Likewise.
11545         * modules/getopt-posix (Makefile.am): Likewise.
11546         * modules/iconv-h (Makefile.am): Likewise.
11547         * modules/langinfo (Makefile.am): Likewise.
11548         * modules/locale (Makefile.am): Likewise.
11549         * modules/math (Makefile.am): Likewise.
11550         * modules/netdb (Makefile.am): Likewise.
11551         * modules/netinet_in (Makefile.am): Likewise.
11552         * modules/poll-h (Makefile.am): Likewise.
11553         * modules/pthread (Makefile.am): Likewise.
11554         * modules/pty (Makefile.am): Likewise.
11555         * modules/sched (Makefile.am): Likewise.
11556         * modules/search (Makefile.am): Likewise.
11557         * modules/selinux-h (Makefile.am): Likewise.
11558         * modules/signal (Makefile.am): Likewise.
11559         * modules/spawn (Makefile.am): Likewise.
11560         * modules/stdarg (Makefile.am): Likewise.
11561         * modules/stddef (Makefile.am): Likewise.
11562         * modules/stdint (Makefile.am): Likewise.
11563         * modules/stdio (Makefile.am): Likewise.
11564         * modules/stdlib (Makefile.am): Likewise.
11565         * modules/string (Makefile.am): Likewise.
11566         * modules/strings (Makefile.am): Likewise.
11567         * modules/sys_file (Makefile.am): Likewise.
11568         * modules/sys_ioctl (Makefile.am): Likewise.
11569         * modules/sys_select (Makefile.am): Likewise.
11570         * modules/sys_socket (Makefile.am): Likewise.
11571         * modules/sys_stat (Makefile.am): Likewise.
11572         * modules/sys_time (Makefile.am): Likewise.
11573         * modules/sys_times (Makefile.am): Likewise.
11574         * modules/sys_uio (Makefile.am): Likewise.
11575         * modules/sys_utsname (Makefile.am): Likewise.
11576         * modules/sys_wait (Makefile.am): Likewise.
11577         * modules/sysexits (Makefile.am): Likewise.
11578         * modules/termios (Makefile.am): Likewise.
11579         * modules/time (Makefile.am): Likewise.
11580         * modules/unistd (Makefile.am): Likewise.
11581         * modules/wchar (Makefile.am): Likewise.
11582         * modules/wctype-h (Makefile.am): Likewise.
11583         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
11584
11585 2011-05-29  Bruno Haible  <bruno@clisp.org>
11586
11587         assert-h: Allow multiple gnulib generated replacements to coexist.
11588         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
11589
11590 2011-05-29  Bruno Haible  <bruno@clisp.org>
11591
11592         argp: Allow coexistence with strerror_r-posix module.
11593         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
11594         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
11595         by gnulib's <string.h> replacement), assume it has the POSIX signature,
11596         not the glibc signature.
11597
11598 2011-05-28  Bruno Haible  <bruno@clisp.org>
11599
11600         gnulib-tool: Alternative structure of testdirs, similar to --import.
11601         * gnulib-tool: New option --single-configure.
11602         (func_usage): Document it.
11603         (single_configure): New variable.
11604         (func_modules_transitive_closure_separately,
11605         func_modules_transitive_closure_separately,
11606         func_determine_use_libtests, func_modules_add_dummy_separately,
11607         func_modules_to_filelist_separately): New functions, extracted from
11608         func_import.
11609         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
11610         (func_import): Use the new functions.
11611         (func_create_testdir): Set final_modules. Handle $single_configure =
11612         true case.
11613
11614 2011-05-28  Bruno Haible  <bruno@clisp.org>
11615
11616         getloadavg: Remove an unreliable safety check.
11617         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
11618         getloadavg.c is in place.
11619         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
11620         Reported by Sam Steingold <sds@gnu.org>.
11621
11622 2011-05-28  Bruno Haible  <bruno@clisp.org>
11623
11624         doc: Cleanup yet another file produced by texinfo.tex.
11625         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
11626
11627 2011-05-28  Bruno Haible  <bruno@clisp.org>
11628
11629         Finish the conditional dependencies mechanism.
11630         * gnulib-tool: New option --no-conditional-dependencies.
11631         (func_usage): Document it. Don't mark --conditional-dependencies as
11632         experimental.
11633         (cond_dependencies): The possible values can now be true, false, empty.
11634         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
11635         (func_import): Store setting in gnulib-cache.m4 and read it from there.
11636         * doc/gnulib-tool.texi (Conditional dependencies): New section.
11637
11638 2011-05-28  Bruno Haible  <bruno@clisp.org>
11639
11640         doc: Use a recent texinfo.tex.
11641         * doc/Makefile (tex_opts): New variable.
11642         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
11643
11644 2011-05-28  Jim Meyering  <meyering@redhat.com>
11645
11646         intprops.h: adjust comment to match code change
11647         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
11648         only once, it *may* have side effects.  Also fix an unrelated typo.
11649         (_GL_INT_SIGNED): Likewise.
11650
11651 2011-05-26  Simon Josefsson  <simon@josefsson.org>
11652
11653         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
11654
11655 2011-05-26  Bruno Haible  <bruno@clisp.org>
11656
11657         mbsrchr: Avoid collision with system function on Interix.
11658         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
11659         Reported by Markus Duft <mduft@gentoo.org>.
11660
11661 2011-05-15  James Youngman  <jay@gnu.org>
11662
11663         getopt: for ambiguous options, enumerate the possibilities.
11664         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
11665         the ambiguous options when an ambiguous prefix is given. This was
11666         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
11667         glibc change was
11668         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
11669
11670 2011-05-25  Eric Blake  <eblake@redhat.com>
11671
11672         getcwd: work around mingw bug
11673         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
11674         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11675         Reported by Matthias Bolte.
11676
11677 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11678
11679         test-intprops: disable -Wtype-limits diagnostics
11680         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
11681         diagnostics.  Otherwise, the integer overflow macros generate many
11682         diagnostics.  Reported by Jim Meyering in
11683         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11684
11685         intprops: shorten, to pacify gcc -Woverlength-strings
11686         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
11687         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
11688         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
11689         likely to run afoul of C compiler limits for string constant lengths.
11690         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11691
11692 2011-05-24  Eric Blake  <eblake@redhat.com>
11693
11694         docs: document recently fixed glibc printf bug
11695         * doc/posix-functions/fprintf.texi (fprintf): Document it.
11696         * doc/posix-functions/printf.texi (printf): Likewise.
11697         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11698         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11699
11700         closein-tests: convert to init.sh
11701         * modules/closein-tests (Files): Add init.sh
11702         * tests/test-closein.sh Use it.
11703
11704         yesno-tests: convert to init.sh
11705         * modules/yesno-tests (Files): Add init.sh.
11706         * tests/test-yesno.sh: Use it.
11707
11708         atexit-tests: ensure reliable exit status
11709         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
11710         Reported by Bruno Haible.
11711
11712 2011-05-24  Bruno Haible  <bruno@clisp.org>
11713
11714         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
11715         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
11716         gl_PREREQ_STRERROR_R invocations from here...
11717         * modules/strerror_r-posix (configure.ac): ... to here.
11718
11719 2011-05-24  Eric Blake  <eblake@redhat.com>
11720
11721         strerror_r: fix missing header
11722         * lib/strerror_r.c: Avoid compiler warning about snprintf.
11723
11724         strerror_r: fix AIX test failures
11725         * lib/strerror_r.c (strerror_r): Convert silent truncation to
11726         ERANGE failure.
11727
11728         strerror_r: fix Solaris test failures
11729         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
11730         failures.
11731         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11732
11733         strerror_r: enforce POSIX recommendations
11734         * lib/strerror_r.c (safe_copy): New helper method.
11735         (strerror_r): Guarantee a non-empty string.
11736         * tests/test-strerror_r.c (main): Enhance tests to incorporate
11737         recent POSIX rulings and to match our strerror guarantees.
11738         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11739
11740 2011-05-24  Jim Meyering  <meyering@redhat.com>
11741
11742         test-perror2.c: avoid warning about unused variable
11743         * tests/test-perror2.c (main): Remove declaration of unused "fp".
11744
11745 2011-05-24  Eric Blake  <eblake@redhat.com>
11746
11747         perror: avoid spurious test failure on HP-UX
11748         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
11749
11750         tests: fix logic bug in init.sh
11751         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
11752         shell.
11753
11754 2011-05-24  Jim Meyering  <meyering@redhat.com>
11755
11756         utimensat: do not reference an out-of-scope buffer
11757         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
11758         declared in an inner scope, yet "times" would be dereferenced outside
11759         the scope in which "ts" was valid.
11760         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
11761         of ts[2] "out/up", so that the use of aliased "times" (via
11762         "times = ts;") does not end up referencing an out-of-scope "ts"
11763
11764         opendir-safer.c: don't clobber errno; don't close negative FD
11765         * lib/opendir-safer.c (opendir_safer):
11766         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
11767         file descriptor, and more importantly, don't clobber the
11768         offending errno value with EINVAL.  Before, upon failure
11769         of dup_safer, we would pass the negative file descriptor to
11770         fdopendir, which would clobber errno.
11771
11772 2011-05-23  Bruno Haible  <bruno@clisp.org>
11773
11774         idcache: Fix module description.
11775         * modules/idcache (Include): Set to "idcache.h".
11776
11777 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11778
11779         gnulib-tool: fix portability problem with MacOS sed
11780         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
11781         before the "}".  Problem reported by Leo in
11782         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
11783         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
11784         sed_extract_condition1, sed_extract_condition2.
11785
11786 2011-05-23  Bruno Haible  <bruno@clisp.org>
11787
11788         hash: Simplify autoconf macro.
11789         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
11790
11791 2011-05-23  Bruno Haible  <bruno@clisp.org>
11792
11793         getugroups: Fix module description.
11794         * modules/getugroups (Include): Set to "getugroups.h".
11795
11796 2011-05-23  Bruno Haible  <bruno@clisp.org>
11797
11798         linkat: Simplify autoconf macro.
11799         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
11800
11801 2011-05-23  Bruno Haible  <bruno@clisp.org>
11802             Eric Blake  <eblake@redhat.com>
11803
11804         linkat, renameat: Update dependencies.
11805         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
11806         * modules/linkat (Depends-on): Likewise. Remove also readlink,
11807         symlinkat.
11808
11809 2011-05-23  Jim Meyering  <meyering@redhat.com>
11810
11811         maint.mk: more tight_scope improvements
11812         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
11813         (_gl_TS_headers): Define only in if-0'd block.
11814         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
11815         sometimes we must *not* use it.  Adjust uses accordingly.
11816         (sc_tight_scope): Use much simpler grep-based test to determine
11817         whether we skip this rule.
11818
11819         maint.mk: generalize/improve the tight-scope rule
11820         * top/maint.mk: Emit a warning when the test is skipped.
11821         (_gl_TS_dir): Add $(srcdir)/ prefix.
11822         (_gl_TS_function_match): Simplify, rather than trying
11823         to enumerate common types.  Otherwise, it would fail to match an
11824         "extern unsigned char const *" declaration in idutils.
11825         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
11826         a way to support use of that type of macro.
11827         (_gl_TS_var_match): Simplify regexp.
11828         (_gl_TS_obj_files): New configurable variable.
11829         (_gl_TS_headers): Likewise.
11830
11831 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11832
11833         verify: fix bug when gnulib <assert.h> is also included
11834         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
11835         is defined, not if _GL_STATIC_ASSERT_H is not defined.
11836         Perhaps there's a better way, but this fixes the immediate problem.
11837         Problem reported by Bruno Haible in
11838         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
11839
11840 2011-05-22  Bruno Haible  <bruno@clisp.org>
11841
11842         xgetcwd: Simplify autoconf macro.
11843         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
11844
11845 2011-05-22  Bruno Haible  <bruno@clisp.org>
11846
11847         New module 'mktime-internal'.
11848         * modules/mktime-internal: New file.
11849         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
11850         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
11851         mktime_internal as a C macro if libc has __mktime_internal.
11852         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
11853         conditions.
11854         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
11855
11856 2011-05-22  Bruno Haible  <bruno@clisp.org>
11857
11858         timegm: Correct mktime replacement statements.
11859         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
11860         defining mktime as a C macro. This completes a 2009-07-28 commit.
11861
11862 2011-05-22  Bruno Haible  <bruno@clisp.org>
11863
11864         timegm: Simplify autoconf macro.
11865         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
11866
11867 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11868
11869         clock-time: change to LGPLv2+.
11870         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
11871         BSD-like but we have no mark for that; this is good enough for now.
11872
11873 2011-05-21  Bruno Haible  <bruno@clisp.org>
11874
11875         strerror_r: Fix comments.
11876         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
11877
11878 2011-05-21  Bruno Haible  <bruno@clisp.org>
11879
11880         relocatable-prog-wrapper: Fix possible link error.
11881         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
11882         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
11883         (gl_FUNC_SETENV): ... to here.
11884         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
11885         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
11886
11887 2011-05-21  Bruno Haible  <bruno@clisp.org>
11888
11889         relocatable-prog-wrapper: Assume strerror() exists.
11890         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
11891         m4/strerror.m4.
11892         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
11893         * lib/relocwrapper.c: Remove mention of strerror module.
11894         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
11895         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
11896         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
11897         C macro.
11898
11899 2011-05-21  Bruno Haible  <bruno@clisp.org>
11900
11901         select: Simplify replacement idiom.
11902         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
11903         Win32 platforms.
11904         * lib/sys_select.in.h (select): Simplify accordingly.
11905         * modules/select (Depends-on): Likewise.
11906
11907 2011-05-21  Bruno Haible  <bruno@clisp.org>
11908
11909         mkdir-p: Simplify autoconf macro.
11910         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
11911         gl_FUNC_LCHOWN.
11912
11913 2011-05-21  Eric Blake  <eblake@redhat.com>
11914
11915         strerror_r: avoid clobbering strerror on cygwin
11916         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
11917         fall back instead to sys_errlist.
11918         * modules/strerror (configure.ac): Add witness.
11919         * tests/test-strerror_r.c (main): Enhance test.
11920         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11921         * tests/test-perror2.c (main): Free memory before exit.
11922
11923 2011-05-21  Bruno Haible  <bruno@clisp.org>
11924
11925         mkdtemp: Use gnulib naming conventions.
11926         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
11927         * modules/mkdtemp (configure.ac): Update.
11928
11929 2011-05-20  Eric Blake  <eblake@redhat.com>
11930
11931         strerror_r: avoid corrupting errno on Solaris
11932         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
11933         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11934
11935         strerror_r: avoid compiler warning
11936         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
11937
11938         strerror_r: simplify AIX code
11939         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
11940
11941         test-perror: avoid spurious failure on FreeBSD
11942         * modules/perror-tests (Depends-on): Add strerror, now that
11943         strerror_r no longer pulls it in.
11944
11945 2011-05-20  Bruno Haible  <bruno@clisp.org>
11946
11947         strerror_r-posix: Remove unused dependencies.
11948         * modules/strerror_r-posix (Depends-on): Remove strerror.
11949         Reported by Eric Blake.
11950
11951 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11952
11953         intprops: remove assumption about A|B representation
11954         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
11955         is a valid integer if both A and B are.  Although this is true for
11956         all known practical hosts, the C standard doesn't guarantee it,
11957         and the code need not assume it.  Also, this change may work around
11958         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
11959         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
11960
11961 2011-05-20  Eric Blake  <eblake@redhat.com>
11962
11963         perror: work around FreeBSD bug
11964         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
11965         is broken.  Move AC_LIBOBJ...
11966         * modules/perror (configure.ac): Here.
11967         * doc/posix-functions/perror.texi (perror): Document this.
11968         * tests/test-perror2.c (main): Enhance test.
11969
11970         test-perror: check for strerror interactions
11971         * tests/macros.h (STREQ): Add macro.
11972         * modules/perror-tests (Files): Add second test.
11973         * tests/test-perror2.c (main): New file.
11974         * doc/posix-functions/perror.texi (perror): Document glibc bug.
11975
11976         test-perror: rewrite to use init script
11977         * modules/perror-tests (Files): Add init.sh.
11978         * tests/test-perror.sh: Use temporary directory.
11979
11980 2011-05-20  Jim Meyering  <meyering@redhat.com>
11981
11982         maint: replace misused "a" with "an"
11983         * doc/intprops.texi: "a integer"
11984         * doc/regex.texi: "a explanation"
11985         * lib/alignof.h: "a object"
11986         * lib/argmatch.h: "a explanation"
11987         * lib/argp-help.c: "a option" and "a OPTION_DOC"
11988         * lib/stdint.in.h: "a integer"
11989         * lib/userspec.c: "a owner"
11990         * doc/gnulib.texi: Fix "a idea", and reword.
11991
11992 2011-05-19  Jim Meyering  <meyering@redhat.com>
11993
11994         maint: correct misuse of "a" and "an"
11995         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
11996         * lib/argp-help.c: "an docum...": s/an/a/
11997         * lib/argp-parse.c: "An vector": s/An/A/
11998         * lib/execute.c: "an native": s/an/a/
11999         * lib/spawn-pipe.c: Likewise.
12000         * lib/gc.h: "an Gc_rc": s/an/a/
12001         * lib/unigbrk.in.h: "an grapheme": s/an/a/
12002         * lib/fts.c: "an stat.st_dev": s/an/a/
12003
12004 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12005
12006         intprops-tests: work around HP-UX 11.23 cc bug with constants
12007         * tests/test-intprops.c (VERIFY): New macro.
12008         (main): Use it, instead of verify, to work around the compiler bug; see
12009         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12010
12011         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
12012         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
12013         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
12014         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
12015         (_GL_REMAINDER_OVERFLOW): Use it.
12016
12017         intprops-tests: revert unsigned part of previous change
12018         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
12019         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
12020         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
12021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
12022
12023 2011-05-19  Bruno Haible  <bruno@clisp.org>
12024
12025         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
12026         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
12027         strerror_r() returned without filling the buffer.
12028         Reported by Eric Blake.
12029
12030 2011-05-19  Eric Blake  <eblake@redhat.com>
12031
12032         strerror_r: guarantee unchanged errno
12033         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
12034         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
12035         failure.
12036         * tests/test-strerror_r.c (main): Enhance test.
12037
12038 2011-05-19  Bruno Haible  <bruno@clisp.org>
12039
12040         strerror_r: Reorder #if blocks.
12041         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
12042         for consistency with the previous commit.
12043
12044 2011-05-19  Bruno Haible  <bruno@clisp.org>
12045
12046         perror: Avoid clobbering the strerror buffer when possible.
12047         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
12048         * lib/strerror.c: Include it.
12049         * modules/strerror (Files): Add lib/strerror-impl.h.
12050         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
12051         (my_strerror): New function, defined through lib/strerror-impl.h.
12052         (perror): Use it instead of strerror.
12053         * modules/perror (Files): Add lib/strerror-impl.h.
12054         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
12055
12056 2011-05-19  Eric Blake  <eblake@redhat.com>
12057
12058         strerror_r: fix on newer cygwin
12059         * lib/strerror_r.c (strerror_r): Cygwin now has
12060         __xpg_strerror_r, use it.
12061
12062 2011-05-19  Bruno Haible  <bruno@clisp.org>
12063
12064         strerror_r: Avoid clobbering the strerror buffer when possible.
12065         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
12066         (sys_nerr, sys_errlist): New declarations.
12067         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
12068         HP-UX, native Win32, IRIX, and 32-bit Solaris.
12069         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
12070
12071 2011-05-19  Bruno Haible  <bruno@clisp.org>
12072
12073         strerror_r: Fix test failure on mingw.
12074         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
12075         EXTEND_STRERROR_R.
12076         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
12077         macros from errno.in.h instead.
12078
12079 2011-05-19  Eric Blake  <eblake@redhat.com>
12080
12081         strerror: relax test for Solaris
12082         * tests/test-strerror.c (main): Permit Solaris behavior.
12083         * tests/test-strerror_r.c (main): Likewise.
12084
12085         strerror: enforce POSIX ruling on strerror(0)
12086         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
12087         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12088         * lib/strerror_r.c (rpl_strerror_r): Work around it.
12089         * doc/posix-functions/strerror.texi (strerror): Document it.
12090         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
12091         * tests/test-strerror.c (main): Strengthen test.
12092         * tests/test-strerror_r.c (main): Likewise.
12093
12094 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12095
12096         intprop-tests: port to older and more-pedantic compilers
12097         * modules/intprops-tests (Files): Add tests/macros.h.
12098         * tests/test-intprops.c: Include macros.h.
12099         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
12100         it's no longer documented to expand to an integer constant expression.
12101         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
12102         argument is floating point, as it's no longer documented to expand
12103         to an integer constant expression in that case.
12104         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
12105         compiler bugs reported by Bruno Haible.  See
12106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12107         (U0, U1): New constants, to work around the same bugs.  Also,
12108         in tests, use e.g., "(unsigned int) 39" rather than "39u".
12109
12110         intprops: work around C compiler bugs
12111         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
12112         bug in Sun C 5.11 2010/08/13 and other compilers; see
12113         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12114
12115         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
12116         * doc/intprops.texi (Integer Type Determination): Fix
12117         documentation for TYPE_IS_INTEGER: it returns an constant
12118         expression, not an integer constant expression.  Fix doc for
12119         TYPE_SIGNED: it returns an integer constant expression only if its
12120         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
12121         hardly worth documented that way....)
12122
12123 2011-05-18  Bruno Haible  <bruno@clisp.org>
12124
12125         strerror_r: Avoid clobbering the strerror buffer when possible.
12126         * lib/strerror_r.c (strerror_r): Merge the three implementations.
12127         Handle gnulib defined errno values here. When strerror() returns NULL
12128         or an empty string, return EINVAL.
12129         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
12130         gnulib defined errno values here.
12131         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
12132
12133 2011-05-18  Eric Blake  <eblake@redhat.com>
12134
12135         fnmatch: avoid compiler warning
12136         * lib/fnmatch_loop.c (FCT): Use correct type.
12137         Reported by Matthias Bolte.
12138
12139 2011-05-13  Jim Meyering  <meyering@redhat.com>
12140
12141         maint.mk: three new prohibit_<HDR>_without_use rules
12142         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
12143         (sc_prohibit_stdio-safer_without_use): Likewise.
12144         (sc_prohibit_xfreopen_without_use): Likewise.
12145
12146 2011-05-17  Jim Meyering  <meyering@redhat.com>
12147
12148         announce-gen: fail if the NEWS delta is empty
12149         If there's nothing noteworthy in NEWS, then either you forgot
12150         or you shouldn't be releasing.
12151         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
12152
12153 2011-05-17  Pádraig Brady <P@draigBrady.com>
12154
12155         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
12156         reserved symbols starting with double underscore from the check.
12157
12158 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12159
12160         intprops: add doc
12161         * doc/intprops.texi: New file, documenting intprops.
12162         * doc/gnulib.texi (Particular Modules): Include it.
12163
12164         verify: add doc to gnulib manual and fix example
12165         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
12166         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
12167         (Compile-time Assertions): Fix example so it can't overflow.
12168
12169 2011-05-17  Jim Meyering  <meyering@redhat.com>
12170
12171         warnings.m4: don't usurp save_CPPFLAGS variable name
12172         * m4/warnings.m4: Prefix local temporary variable name with gl_.
12173
12174         doc: fix typo
12175         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
12176
12177 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12178             Bruno Haible  <bruno@clisp.org>
12179
12180         doc: Tweak recent change.
12181         * README (Portability guidelines): Tweak new text.
12182         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
12183         Interix 6.1.
12184
12185 2011-05-16  Eric Blake  <eblake@redhat.com>
12186
12187         inttypes: avoid autoconf warning
12188         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
12189         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12190
12191 2011-05-16  Sam Steingold <sds@gnu.org>
12192         and Eric Blake  <eblake@redhat.com>
12193
12194         vc-list-files: accept multiple directory operands
12195         * build-aux/vc-list-files: Iterate over all remaining operands.
12196
12197 2011-05-16  Bruno Haible  <bruno@clisp.org>
12198
12199         Fix confusion regarding deprecated modules.
12200         * modules/calloc (Status, Notice): Mark module as deprecated, not
12201         obsolete.
12202         * modules/fnmatch-posix (Status, Notice): Likewise.
12203         * modules/getdate (Status, Notice): Likewise.
12204         * modules/getopt (Status, Notice): Likewise.
12205         * modules/malloc (Status, Notice): Likewise.
12206         * modules/pipe (Status, Notice): Likewise.
12207         * modules/realloc (Status, Notice): Likewise.
12208         * modules/rename-dest-slash (Status, Notice): Likewise.
12209         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
12210         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
12211         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
12212         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
12213         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
12214
12215 2011-05-16  Bruno Haible  <bruno@clisp.org>
12216
12217         doc: List the target platforms.
12218         * doc/gnulib-intro.texi (Target Platforms): New section.
12219         * doc/gnulib.texi (Introduction): Update menu.
12220         * README (Portability guidelines): Refer to the new section. Update
12221         statement about oldest supported environment. Remove rationale why
12222         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
12223         unportable C89 function.
12224         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
12225         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
12226
12227 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12228
12229         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
12230
12231 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
12232
12233         intprops-tests: new module
12234         * modules/intprops-tests, tests/test-intprops.c: New files.
12235
12236         intprops: add safe, portable integer overflow checking
12237         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
12238         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
12239         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
12240         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
12241         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
12242         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
12243         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
12244         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
12245         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
12246         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
12247         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
12248
12249 2011-05-12  James Youngman  <jay@gnu.org>
12250
12251         Add a test for glibc's Bugzilla bug #12378.
12252         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
12253         doesn't allow the literal matching of a lone "[" (which is
12254         required by POSIX).
12255         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
12256
12257 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12258
12259         Sync glibc change fixing Bugzilla bug #12378.
12260         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
12261         beginning and fall back to matching as normal character if the
12262         string ends before the matching ']' is found.  This is what POSIX
12263         requires.
12264
12265 2011-05-13  Eric Blake  <eblake@redhat.com>
12266
12267         getcwd-lgpl: relax test for FreeBSD
12268         * doc/posix-functions/getcwd.texi (getcwd): Document portability
12269         issue.
12270         * tests/test-getcwd-lgpl.c (main): Relax test.
12271         Reported by Matthias Bolte.
12272
12273 2011-05-11  Eric Blake  <eblake@redhat.com>
12274
12275         test-fflush: silence compiler warning
12276         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
12277
12278 2011-05-11  Bruno Haible  <bruno@clisp.org>
12279
12280         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
12281         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
12282         * modules/canonicalize (Depends-on): Add 'nocrash'.
12283         * modules/canonicalize-lgpl (Depends-on): Likewise.
12284         * doc/posix-functions/realpath.texi: Update platforms list.
12285         Reported by Ryan Schmidt <ryandesign@macports.org>.
12286
12287 2011-05-11  Bruno Haible  <bruno@clisp.org>
12288
12289         group-member: Declare function in <unistd.h>.
12290         * lib/unistd.in.h (group_member): New declaration.
12291         * lib/group-member.h: Remove file.
12292         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
12293         * tests/test-unistd-c++.cc: Check signature of group_member.
12294         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
12295         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
12296         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
12297         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
12298         HAVE_GROUP_MEMBER.
12299         * modules/group-member (Files): Remove lib/group-member.h.
12300         (Depends-on): Add unistd. Specify conditions.
12301         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12302         (Include): Change to <unistd.h>.
12303         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
12304         HAVE_GROUP_MEMBER.
12305         * NEWS: Mention the change.
12306         * lib/euidaccess.c: Don't include group-member.h.
12307
12308 2011-05-11  Bruno Haible  <bruno@clisp.org>
12309
12310         group-member: Document module.
12311         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
12312         module.
12313
12314 2011-05-11  Bruno Haible  <bruno@clisp.org>
12315
12316         fclose: Fix mistake earlier today.
12317         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
12318
12319 2011-05-11  Eric Blake  <eblake@redhat.com>
12320
12321         fclose: preserve fflush errors
12322         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
12323         Reported by Jim Meyering.
12324
12325         bootstrap: support a prereq of 'rpcgen -' on RHEL5
12326         * build-aux/bootstrap (check_versions): When no specific version
12327         is required, merely check that the app produces an exit status
12328         that indicates its existence.
12329
12330         maint.mk: drop redundant check
12331         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
12332         the same but better.
12333
12334 2011-05-11  Bruno Haible  <bruno@clisp.org>
12335
12336         fclose: Fix possible link error.
12337         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
12338         unregister_shadow_fd. Improve comments.
12339         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
12340         Eric Blake.
12341
12342 2011-05-11  Jim Meyering  <meyering@redhat.com>
12343
12344         maint.mk: improve "can not" detection and generalize rule name
12345         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
12346         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
12347         Use the same technique as in sc_prohibit_doubled_word, so that
12348         we recognize "can not" also when the words are separated by a newline.
12349         Suggested by Eric Blake.
12350         (perl_filename_lineno_text_): Define.  Factored out of...
12351         (prohibit_doubled_word_): ...here.  Use the new definition.
12352         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
12353         (prohibit_undesirable_word_seq_RE_): New overridable variable.
12354         (ignore_undesirable_word_sequence_RE_): New overridable variable.
12355
12356 2011-05-10  Eric Blake  <eblake@redhat.com>
12357
12358         fclose: avoid double close race when possible
12359         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
12360         all but WINDOWS_SOCKETS.
12361
12362 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
12363
12364         openat: correct new comment
12365         * lib/openat-proc.c (openat_proc_name): Correct the comment.
12366
12367 2011-05-10  Jim Meyering  <meyering@redhat.com>
12368
12369         openat: add comments
12370         * lib/openat-proc.c (openat_proc_name): Add comments,
12371         mostly from Eric Blake.
12372
12373 2011-05-09  Eric Blake  <eblake@redhat.com>
12374
12375         openat: reduce syscalls in first probe of /proc
12376         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
12377         be a directory.  Simplify the probe for .. bugs.
12378         * modules/openat (Depends-on): Drop same-inode.
12379         Reported by Bastien ROUCARIES.
12380
12381 2011-05-09  Jim Meyering  <meyering@redhat.com>
12382
12383         maint.mk: change semantics/name of tight_scope variables
12384         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
12385         Rename variables to align with semantics that make them more useful.
12386
12387         maint.mk: tweak new rule's name not to impinge
12388         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
12389         (sc_tight_scope): Use new rule name rather than $@-0.
12390
12391         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
12392         * top/maint.mk (sc_tight_scope): New rule.
12393         (sc_tight_scope-0): New rule, ifdef'd out.
12394         (_gl_TS_dir): Default.
12395         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
12396         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
12397
12398 2011-05-09  Simon Josefsson  <simon@josefsson.org>
12399
12400         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
12401         Haible <bruno@clisp.org>.
12402
12403 2011-05-08  Bruno Haible  <bruno@clisp.org>
12404
12405         Comments.
12406         * m4/isnanf.m4: Add comment.
12407         * m4/isnanl.m4: Likewise.
12408
12409 2011-05-08  Bruno Haible  <bruno@clisp.org>
12410
12411         glob: Remove obsolete macro.
12412         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
12413
12414 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12415
12416         intprops: Sun C 5.11 supports __typeof__
12417         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
12418         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
12419         which is new.
12420         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
12421
12422         intprops: switch to usual gnulib indenting and naming
12423         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
12424         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
12425
12426         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
12427
12428 2011-05-08  Jim Meyering  <meyering@redhat.com>
12429
12430         maint.mk: suppress "Entering/Leaving directory" diag in announcement
12431         * top/maint.mk (release-prep): Use make's --no-print-directory
12432         option when generating the announcement.  This eliminates the
12433         pesky "make[2]: Entering/Leaving directory" diagnostics in the
12434         generated announcement template.
12435
12436 2011-05-08  Bruno Haible  <bruno@clisp.org>
12437
12438         tzset: Fix gettimeofday wrapper on Solaris 2.6.
12439         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
12440         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
12441
12442 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
12443
12444         ignore-value, verify: Omit include files from lib_SOURCES.
12445         * modules/ignore-value, modules/verify (Makefile.am):
12446         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
12447         that leads Automake to duplicate use of am__objects_... variables
12448         in Makefile.in.  See
12449         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
12450
12451 2011-05-07  Bruno Haible  <bruno@clisp.org>
12452
12453         fclose: Simplify autoconf macro.
12454         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
12455         defined.
12456
12457 2011-05-07  Bruno Haible  <bruno@clisp.org>
12458
12459         canonicalize-lgpl: Fix autoconf macro ordering bug.
12460         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
12461         gl_STDLIB_H_DEFAULTS.
12462
12463 2011-05-06  Eric Blake  <eblake@redhat.com>
12464
12465         maintainer-makefile: make sc_po_check easier to tune
12466         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
12467         to probe for strings, such as an alternate location for gnulib.
12468
12469         fclose: guarantee behavior on seekable stdin
12470         * modules/fclose (Depends-on): Add fflush.
12471         * doc/posix-functions/fclose.texi (fclose): Document this.
12472         * tests/test-fclose.c (main): Make test for this unconditional.
12473
12474 2011-05-06  Bruno Haible  <bruno@clisp.org>
12475
12476         fflush, fpurge: Relicense under LGPLv2+.
12477         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
12478         * modules/fpurge (License): Likewise.
12479         With permission from Eric Blake and Jim Meyering.
12480         Suggested by Eric Blake.
12481
12482 2011-05-06  Karl Berry  <karl@gnu.org>
12483
12484         * MODULES.html.sh (func_all_modules): remove exit.
12485
12486 2011-05-06  Jim Meyering  <meyering@redhat.com>
12487
12488         maint.mk: use info-gnu@ as the default only for a stable release
12489         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
12490         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
12491         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
12492         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
12493
12494 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12495
12496         assert-h: new module, which supports C1X-style static_assert
12497         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
12498         * lib/verify.h: Revamp so that this can be copied into assert.h,
12499         while retaining the ability to use it standalone as before.
12500         Rename private identifiers so as not to encroach on the
12501         standard C namespace, since this is now used by assert.h.
12502         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
12503         the old verify_true.
12504         (_GL_VERIFY_TRUE): New macro, with much of the contents of
12505         the old verify_true.  Use _GL_VERIFY_TYPE.
12506         (_GL_VERIFY): New macro, with much of the contents of the old verify.
12507         (static_assert): New macro, if _GL_STATIC_ASSERT_H
12508         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
12509         defined when this file is copied into the replacement assert.h.
12510         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
12511         and _Static_assert is not built in.
12512         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
12513         defined, and use the new macros mentioned above.
12514         * doc/posix-headers/assert.texi: Document this.
12515
12516 2011-05-05  Bruno Haible  <bruno@clisp.org>
12517
12518         fclose, fflush: Respect rules for use of AC_LIBOBJ.
12519         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
12520         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
12521         gl_REPLACE_FCLOSE here.
12522         * modules/fflush (Depends-on): Remove fclose.
12523         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
12524         combination with module 'fclose'.
12525
12526 2011-05-05  Bruno Haible  <bruno@clisp.org>
12527
12528         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
12529         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
12530         gl_FUNC_FFLUSH.
12531         (gl_FUNC_FFLUSH): Use it.
12532         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
12533         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
12534         gl_REPLACE_FSEEKO here.
12535
12536 2011-05-05  Bruno Haible  <bruno@clisp.org>
12537
12538         tzset: Relicense under LGPL.
12539         * modules/tzset (License): Change to LGPL.
12540         No agreement needed; it's a no-op.
12541
12542         strtoimax, strtoumax: Relicense under LGPL.
12543         * modules/strtoimax (License): Change to LGPL.
12544         * modules/strtoumax (License): Likewise.
12545         With permission from Jim Meyering, Paul Eggert:
12546         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
12547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
12548
12549         getgroups: Relicense under LGPL.
12550         * modules/getgroups (License): Change to LGPL.
12551         With permission from Jim Meyering, Paul Eggert, Eric Blake:
12552         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12555
12556         nanosleep: Relicense under LGPL.
12557         * modules/nanosleep (License): Change to LGPL.
12558         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
12559         Haible:
12560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12561         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12562         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12564
12565         futimens: Relicense under LGPL.
12566         * modules/futimens (License): Change to LGPL.
12567         With permission from Eric Blake:
12568         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12569
12570         fflush: Relicense under LGPL.
12571         * modules/fflush (License): Change to LGPL.
12572         With permission from Eric Blake, Bruno Haible, Jim Meyering:
12573         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12574         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12575         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
12576
12577         tmpfile: Relicense under LGPL.
12578         * modules/tmpfile (License): Change to LGPL.
12579         With permission from Ben Pfaff:
12580         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12581
12582         isfinite: Relicense under LGPL.
12583         * modules/isfinite (License): Change to LGPL.
12584         With permission from Ben Pfaff, Bruno Haible:
12585         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12586         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
12587
12588         acosl..tanl: Relicense under LGPL.
12589         * modules/acosl (License): Change to LGPL.
12590         * modules/asinl (License): Likewise.
12591         * modules/atanl (License): Likewise.
12592         * modules/cosl (License): Likewise.
12593         * modules/expl (License): Likewise.
12594         * modules/logl (License): Likewise.
12595         * modules/sinl (License): Likewise.
12596         * modules/sqrtl (License): Likewise.
12597         * modules/tanl (License): Likewise.
12598         Source code originally from glibc and Paolo Bonzini. Agreements:
12599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
12600         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
12601
12602 2011-05-05  Bruno Haible  <bruno@clisp.org>
12603
12604         signal: Define sighandler_t.
12605         * lib/signal.in.h (sighandler_t): New type.
12606         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
12607         whether sighandler_t is defined.
12608         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
12609         * modules/signal (Depends-on): Add extensions.
12610         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
12611         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
12612         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
12613
12614 2011-05-05  Eric Blake  <eblake@redhat.com>
12615
12616         maint: remove useless REPLACE_*_H macros
12617         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
12618         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12619         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12620         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
12621         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12622         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12623         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
12624         * m4/btowc.m4: Update callers.
12625         * m4/dirfd.m4: Likewise.
12626         * m4/duplocale.m4: Likewise.
12627         * m4/fchdir.m4: Likewise.
12628         * m4/fdopendir.m4: Likewise.
12629         * m4/inet_ntop.m4: Likewise.
12630         * m4/inet_pton.m4: Likewise.
12631         * m4/ioctl.m4: Likewise.
12632         * m4/mbrlen.m4: Likewise.
12633         * m4/mbrtowc.m4: Likewise.
12634         * m4/mbsinit.m4: Likewise.
12635         * m4/mbsnrtowcs.m4: Likewise.
12636         * m4/mbsrtowcs.m4: Likewise.
12637         * m4/poll.m4: Likewise.
12638         * m4/setlocale.m4: Likewise.
12639         * m4/wcrtomb.m4: Likewise.
12640         * m4/wcsnrtombs.m4: Likewise.
12641         * m4/wcsrtombs.m4: Likewise.
12642         * m4/wctob.m4: Likewise.
12643         * m4/wcwidth.m4: Likewise.
12644         * modules/posix_spawn: Likewise.
12645         * modules/posix_spawn_file_actions_addclose: Likewise.
12646         * modules/posix_spawn_file_actions_adddup2: Likewise.
12647         * modules/posix_spawn_file_actions_addopen: Likewise.
12648         * modules/posix_spawn_file_actions_destroy: Likewise.
12649         * modules/posix_spawn_file_actions_init: Likewise.
12650         * modules/posix_spawnattr_destroy: Likewise.
12651         * modules/posix_spawnattr_getflags: Likewise.
12652         * modules/posix_spawnattr_getpgroup: Likewise.
12653         * modules/posix_spawnattr_getschedparam: Likewise.
12654         * modules/posix_spawnattr_getschedpolicy: Likewise.
12655         * modules/posix_spawnattr_getsigdefault: Likewise.
12656         * modules/posix_spawnattr_getsigmask: Likewise.
12657         * modules/posix_spawnattr_init: Likewise.
12658         * modules/posix_spawnattr_setflags: Likewise.
12659         * modules/posix_spawnattr_setpgroup: Likewise.
12660         * modules/posix_spawnattr_setschedparam: Likewise.
12661         * modules/posix_spawnattr_setschedpolicy: Likewise.
12662         * modules/posix_spawnattr_setsigdefault: Likewise.
12663         * modules/posix_spawnattr_setsigmask: Likewise.
12664         * modules/posix_spawnp: Likewise.
12665
12666 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
12667
12668         Add option to do-release-commit-and-tag to specify branch.
12669         * build-aux/do-release-commit-and-tag: Add --branch.
12670
12671 2011-05-03  Bruno Haible  <bruno@clisp.org>
12672
12673         Avoid unnecessary compilation units, through conditional dependencies.
12674         * modules/accept (Depends-on): Add conditions to the dependencies.
12675         * modules/acosl (Depends-on): Likewise.
12676         * modules/argz (Depends-on): Likewise.
12677         * modules/asinl (Depends-on): Likewise.
12678         * modules/atanl (Depends-on): Likewise.
12679         * modules/atoll (Depends-on): Likewise.
12680         * modules/bind (Depends-on): Likewise.
12681         * modules/btowc (Depends-on): Likewise.
12682         * modules/canonicalize-lgpl (Depends-on): Likewise.
12683         * modules/ceil (Depends-on): Likewise.
12684         * modules/ceilf (Depends-on): Likewise.
12685         * modules/ceill (Depends-on): Likewise.
12686         * modules/chdir-long (Depends-on): Likewise.
12687         * modules/chown (Depends-on): Likewise.
12688         * modules/close (Depends-on): Likewise.
12689         * modules/connect (Depends-on): Likewise.
12690         * modules/cosl (Depends-on): Likewise.
12691         * modules/dirfd (Depends-on): Likewise.
12692         * modules/dprintf (Depends-on): Likewise.
12693         * modules/dprintf-posix (Depends-on): Likewise.
12694         * modules/error (Depends-on): Likewise.
12695         * modules/euidaccess (Depends-on): Likewise.
12696         * modules/expl (Depends-on): Likewise.
12697         * modules/faccessat (Depends-on): Likewise.
12698         * modules/fchdir (Depends-on): Likewise.
12699         * modules/fclose (Depends-on): Likewise.
12700         * modules/fcntl (Depends-on): Likewise.
12701         * modules/fdopendir (Depends-on): Likewise.
12702         * modules/fflush (Depends-on): Likewise.
12703         * modules/floor (Depends-on): Likewise.
12704         * modules/floorf (Depends-on): Likewise.
12705         * modules/floorl (Depends-on): Likewise.
12706         * modules/fnmatch (Depends-on): Likewise.
12707         * modules/fopen (Depends-on): Likewise.
12708         * modules/fprintf-posix (Depends-on): Likewise.
12709         * modules/frexp (Depends-on): Likewise.
12710         * modules/frexp-nolibm (Depends-on): Likewise.
12711         * modules/frexpl (Depends-on): Likewise.
12712         * modules/frexpl-nolibm (Depends-on): Likewise.
12713         * modules/fseek (Depends-on): Likewise.
12714         * modules/fsusage (Depends-on): Likewise.
12715         * modules/ftell (Depends-on): Likewise.
12716         * modules/ftello (Depends-on): Likewise.
12717         * modules/futimens (Depends-on): Likewise.
12718         * modules/getcwd (Depends-on): Likewise.
12719         * modules/getcwd-lgpl (Depends-on): Likewise.
12720         * modules/getdelim (Depends-on): Likewise.
12721         * modules/getdomainname (Depends-on): Likewise.
12722         * modules/getgroups (Depends-on): Likewise.
12723         * modules/gethostname (Depends-on): Likewise.
12724         * modules/getline (Depends-on): Likewise.
12725         * modules/getlogin_r (Depends-on): Likewise.
12726         * modules/getopt-posix (Depends-on): Likewise.
12727         * modules/getpeername (Depends-on): Likewise.
12728         * modules/getsockname (Depends-on): Likewise.
12729         * modules/getsockopt (Depends-on): Likewise.
12730         * modules/getsubopt (Depends-on): Likewise.
12731         * modules/getusershell (Depends-on): Likewise.
12732         * modules/glob (Depends-on): Likewise.
12733         * modules/grantpt (Depends-on): Likewise.
12734         * modules/iconv_open (Depends-on): Likewise.
12735         * modules/iconv_open-utf (Depends-on): Likewise.
12736         * modules/inet_ntop (Depends-on): Likewise.
12737         * modules/inet_pton (Depends-on): Likewise.
12738         * modules/ioctl (Depends-on): Likewise.
12739         * modules/isapipe (Depends-on): Likewise.
12740         * modules/isfinite (Depends-on): Likewise.
12741         * modules/isinf (Depends-on): Likewise.
12742         * modules/lchown (Depends-on): Likewise.
12743         * modules/ldexpl (Depends-on): Likewise.
12744         * modules/link (Depends-on): Likewise.
12745         * modules/linkat (Depends-on): Likewise.
12746         * modules/listen (Depends-on): Likewise.
12747         * modules/logl (Depends-on): Likewise.
12748         * modules/lstat (Depends-on): Likewise.
12749         * modules/mbrlen (Depends-on): Likewise.
12750         * modules/mbrtowc (Depends-on): Likewise.
12751         * modules/mbsinit (Depends-on): Likewise.
12752         * modules/mbsnrtowcs (Depends-on): Likewise.
12753         * modules/mbsrtowcs (Depends-on): Likewise.
12754         * modules/mbtowc (Depends-on): Likewise.
12755         * modules/memcmp (Depends-on): Likewise.
12756         * modules/mkdir (Depends-on): Likewise.
12757         * modules/mkdtemp (Depends-on): Likewise.
12758         * modules/mkfifo (Depends-on): Likewise.
12759         * modules/mkfifoat (Depends-on): Likewise.
12760         * modules/mknod (Depends-on): Likewise.
12761         * modules/mkostemp (Depends-on): Likewise.
12762         * modules/mkostemps (Depends-on): Likewise.
12763         * modules/mkstemp (Depends-on): Likewise.
12764         * modules/mkstemps (Depends-on): Likewise.
12765         * modules/mktime (Depends-on): Likewise.
12766         * modules/nanosleep (Depends-on): Likewise.
12767         * modules/open (Depends-on): Likewise.
12768         * modules/openat (Depends-on): Likewise.
12769         * modules/perror (Depends-on): Likewise.
12770         * modules/poll (Depends-on): Likewise.
12771         * modules/popen (Depends-on): Likewise.
12772         * modules/posix_spawn (Depends-on): Likewise.
12773         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
12774         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12775         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12776         * modules/posix_spawnp (Depends-on): Likewise.
12777         * modules/pread (Depends-on): Likewise.
12778         * modules/printf-posix (Depends-on): Likewise.
12779         * modules/ptsname (Depends-on): Likewise.
12780         * modules/putenv (Depends-on): Likewise.
12781         * modules/pwrite (Depends-on): Likewise.
12782         * modules/readline (Depends-on): Likewise.
12783         * modules/readlink (Depends-on): Likewise.
12784         * modules/readlinkat (Depends-on): Likewise.
12785         * modules/recv (Depends-on): Likewise.
12786         * modules/recvfrom (Depends-on): Likewise.
12787         * modules/regex (Depends-on): Likewise.
12788         * modules/remove (Depends-on): Likewise.
12789         * modules/rename (Depends-on): Likewise.
12790         * modules/renameat (Depends-on): Likewise.
12791         * modules/rmdir (Depends-on): Likewise.
12792         * modules/round (Depends-on): Likewise.
12793         * modules/roundf (Depends-on): Likewise.
12794         * modules/roundl (Depends-on): Likewise.
12795         * modules/rpmatch (Depends-on): Likewise.
12796         * modules/select (Depends-on): Likewise.
12797         * modules/send (Depends-on): Likewise.
12798         * modules/sendto (Depends-on): Likewise.
12799         * modules/setenv (Depends-on): Likewise.
12800         * modules/setlocale (Depends-on): Likewise.
12801         * modules/setsockopt (Depends-on): Likewise.
12802         * modules/shutdown (Depends-on): Likewise.
12803         * modules/sigaction (Depends-on): Likewise.
12804         * modules/signbit (Depends-on): Likewise.
12805         * modules/sigprocmask (Depends-on): Likewise.
12806         * modules/sinl (Depends-on): Likewise.
12807         * modules/sleep (Depends-on): Likewise.
12808         * modules/snprintf (Depends-on): Likewise.
12809         * modules/snprintf-posix (Depends-on): Likewise.
12810         * modules/socket (Depends-on): Likewise.
12811         * modules/sprintf-posix (Depends-on): Likewise.
12812         * modules/sqrtl (Depends-on): Likewise.
12813         * modules/stat (Depends-on): Likewise.
12814         * modules/strchrnul (Depends-on): Likewise.
12815         * modules/strdup-posix (Depends-on): Likewise.
12816         * modules/strerror (Depends-on): Likewise.
12817         * modules/strerror_r-posix (Depends-on): Likewise.
12818         * modules/strndup (Depends-on): Likewise.
12819         * modules/strnlen (Depends-on): Likewise.
12820         * modules/strptime (Depends-on): Likewise.
12821         * modules/strsep (Depends-on): Likewise.
12822         * modules/strsignal (Depends-on): Likewise.
12823         * modules/strstr-simple (Depends-on): Likewise.
12824         * modules/strtod (Depends-on): Likewise.
12825         * modules/strtoimax (Depends-on): Likewise.
12826         * modules/strtok_r (Depends-on): Likewise.
12827         * modules/strtoumax (Depends-on): Likewise.
12828         * modules/symlink (Depends-on): Likewise.
12829         * modules/symlinkat (Depends-on): Likewise.
12830         * modules/tanl (Depends-on): Likewise.
12831         * modules/tcgetsid (Depends-on): Likewise.
12832         * modules/tmpfile (Depends-on): Likewise.
12833         * modules/trunc (Depends-on): Likewise.
12834         * modules/truncf (Depends-on): Likewise.
12835         * modules/truncl (Depends-on): Likewise.
12836         * modules/uname (Depends-on): Likewise.
12837         * modules/unlink (Depends-on): Likewise.
12838         * modules/unlockpt (Depends-on): Likewise.
12839         * modules/unsetenv (Depends-on): Likewise.
12840         * modules/usleep (Depends-on): Likewise.
12841         * modules/utimensat (Depends-on): Likewise.
12842         * modules/vasprintf (Depends-on): Likewise.
12843         * modules/vdprintf (Depends-on): Likewise.
12844         * modules/vdprintf-posix (Depends-on): Likewise.
12845         * modules/vfprintf-posix (Depends-on): Likewise.
12846         * modules/vprintf-posix (Depends-on): Likewise.
12847         * modules/vsnprintf (Depends-on): Likewise.
12848         * modules/vsnprintf-posix (Depends-on): Likewise.
12849         * modules/vsprintf-posix (Depends-on): Likewise.
12850         * modules/wcrtomb (Depends-on): Likewise.
12851         * modules/wcscasecmp (Depends-on): Likewise.
12852         * modules/wcscspn (Depends-on): Likewise.
12853         * modules/wcsdup (Depends-on): Likewise.
12854         * modules/wcsncasecmp (Depends-on): Likewise.
12855         * modules/wcsnrtombs (Depends-on): Likewise.
12856         * modules/wcspbrk (Depends-on): Likewise.
12857         * modules/wcsrtombs (Depends-on): Likewise.
12858         * modules/wcsspn (Depends-on): Likewise.
12859         * modules/wcsstr (Depends-on): Likewise.
12860         * modules/wcstok (Depends-on): Likewise.
12861         * modules/wcswidth (Depends-on): Likewise.
12862         * modules/wctob (Depends-on): Likewise.
12863         * modules/wctomb (Depends-on): Likewise.
12864         * modules/wctype (Depends-on): Likewise.
12865         * modules/wcwidth (Depends-on): Likewise.
12866         * modules/write (Depends-on): Likewise.
12867
12868 2011-05-03  Bruno Haible  <bruno@clisp.org>
12869
12870         Support for conditional dependencies.
12871         * doc/gnulib.texi (Module description): Document the syntax of
12872         conditional dependencies.
12873         * gnulib-tool: New option --conditional-dependencies.
12874         (func_usage): Document it.
12875         (cond_dependencies): New variable.
12876         (func_get_automake_snippet_conditional,
12877         func_get_automake_snippet_unconditional): New functions, extracted from
12878         func_get_automake_snippet.
12879         (func_get_automake_snippet): Use them.
12880         (sed_first_32_chars): New variable.
12881         (func_module_shellfunc_name): New function.
12882         (func_module_shellvar_name): New function.
12883         (func_module_conditional_name): New function.
12884         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
12885         func_cond_module_condition): New functions.
12886         (func_modules_transitive_closure): Add support for conditional
12887         dependencies.
12888         (func_emit_lib_Makefile_am): For a conditional module, enclose the
12889         conditional automake snippet in an automake conditional.
12890         (func_emit_autoconf_snippets): Emit shell functions that contain the
12891         code for conditional modules.
12892         (func_import, func_create_testdir): Update specification.
12893
12894 2011-05-03  Eric Blake  <eblake@redhat.com>
12895
12896         test-getaddrinfo: report error information
12897         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
12898
12899 2011-05-03  Jim Meyering  <meyering@redhat.com>
12900
12901         bootstrap: avoid build failure when $GZIP is set
12902         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
12903         program name.  If defined at all, it is supposed to list gzip options.
12904         Reported by Alan Curry in http://debbugs.gnu.org/8609
12905
12906 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
12907
12908         readme-release: new module with release instructions
12909         * modules/readme-release: New module.
12910         * top/README-release: New file, from coreutils, grep, diffutils.
12911         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12912
12913 2011-05-02  Eric Blake  <eblake@redhat.com>
12914
12915         fflush: also replace fclose when fixing fflush
12916         * modules/fflush (Depends-on): Add fclose.
12917         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
12918         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
12919         memstreams with no backing fd.
12920         * doc/posix-functions/fclose.texi (fclose): Document the use of
12921         fflush module to fix the bug.
12922         * tests/test-fclose.c (main): Relax test when fclose is used in
12923         isolation.
12924
12925         fclose: add some tests
12926         * modules/fclose-tests: New test module.
12927         * tests/test-fclose.c: New file.
12928         * doc/posix-functions/fclose.texi (fclose): Document the bug.
12929
12930         fclose: reduced dependencies
12931         * modules/fclose (Depends-on): Switch from fflush/fseeko to
12932         simpler lseek.
12933         * lib/fclose.c (rpl_fclose): Likewise.
12934         Reported by Simon Josefsson.
12935
12936         exit: drop remaining clients
12937         * modules/argmatch (Depends-on): Replace exit with stdlib.
12938         * modules/copy-file (Depends-on): Likewise.
12939         * modules/execute (Depends-on): Likewise.
12940         * modules/exitfail (Depends-on): Likewise.
12941         * modules/obstack (Depends-on): Likewise.
12942         * modules/pagealign_alloc (Depends-on): Likewise.
12943         * modules/pipe-filter-gi (Depends-on): Likewise.
12944         * modules/pipe-filter-ii (Depends-on): Likewise.
12945         * modules/savewd (Depends-on): Likewise.
12946         * modules/spawn-pipe (Depends-on): Likewise.
12947         * modules/wait-process (Depends-on): Likewise.
12948         * modules/xsetenv (Depends-on): Likewise.
12949         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
12950         * modules/git-merge-changelog (Depends-on): Likewise.
12951         * modules/long-options (Depends-on): Likewise.
12952         * modules/pt_chown (Depends-on): Likewise.
12953         * modules/sysexits (Depends-on): Likewise.
12954
12955         freading: relax license from LGPLv3+ to LGPLv2+
12956         * modules/freading (License): Relax LGPL version.
12957
12958 2011-05-02  Bruno Haible  <bruno@clisp.org>
12959
12960         fchdir: Remove unused dependencies.
12961         * modules/fchdir (Depends-on): Remove include_next.
12962
12963 2011-05-02  Bruno Haible  <bruno@clisp.org>
12964
12965         gnulib-tool: Refactor.
12966         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
12967         from func_emit_autoconf_snippets.
12968         (func_emit_autoconf_snippets): Use it.
12969
12970 2011-05-02  Simon Josefsson  <simon@josefsson.org>
12971
12972         * NEWS: Document removal of 'exit'.
12973         * modules/exit: Remove file.
12974
12975 2011-05-01  Bruno Haible  <bruno@clisp.org>
12976
12977         Update DEPENDENCIES.
12978         * DEPENDENCIES (gettext): Recommend the newest release.
12979         Reported by Simon Josefsson.
12980
12981 2011-05-01  Bruno Haible  <bruno@clisp.org>
12982
12983         gnulib-tool: Reduce code duplication.
12984         * gnulib-tool (func_emit_autoconf_snippets): New function.
12985         (func_import, func_create_testdir): Use it.
12986
12987 2011-04-30  Eric Blake  <eblake@redhat.com>
12988
12989         fclose: don't fail on non-seekable input stream
12990         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
12991         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
12992         since fflush is allowed to fail in that case.
12993
12994 2011-04-30  Bruno Haible  <bruno@clisp.org>
12995
12996         dup3: cleanup
12997         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
12998
12999 2011-04-30  Bruno Haible  <bruno@clisp.org>
13000
13001         netdb: Make it work in C++ mode.
13002         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
13003         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
13004         module.
13005         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
13006         gl_MODULE_INDICATOR_FOR_TESTS.
13007         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
13008         * modules/netdb-c++-tests: New file.
13009         * tests/test-netdb-c++.cc: New file.
13010
13011 2011-04-30  Bruno Haible  <bruno@clisp.org>
13012
13013         New modules 'vfscanf', 'vscanf'.
13014         * modules/vfscanf: New file.
13015         * modules/vscanf: New file.
13016         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
13017         here.
13018         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
13019         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
13020
13021 2011-04-30  Bruno Haible  <bruno@clisp.org>
13022
13023         passfd: Add comments.
13024         * lib/passfd.c: Add comments about platforms.
13025
13026 2011-04-30  Bruno Haible  <bruno@clisp.org>
13027
13028         sys_uio: Make <sys/uio.h> self-contained.
13029         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
13030         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
13031
13032 2011-04-30  Bruno Haible  <bruno@clisp.org>
13033
13034         sys_socket: Ensure 'struct iovec' definition.
13035         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
13036         <sys/socket.h>.
13037         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
13038
13039 2011-04-30  Bruno Haible  <bruno@clisp.org>
13040
13041         sys_uio: Protect definition of 'struct iovec'.
13042         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
13043         it as a C struct.
13044
13045 2011-04-30  Bruno Haible  <bruno@clisp.org>
13046
13047         manywarnings: fix indentation
13048         * m4/manywarnings.m4: Indent by 2 spaces consistently.
13049
13050 2011-04-30  Pádraig Brady <P@draigBrady.com>
13051
13052         manywarnings: add -Wno-missing-field-initializers if needed.
13053         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
13054         option if it's needed to allow initialization with { 0, }
13055
13056 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
13057
13058         announce-gen: cosmetic improvement
13059         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
13060
13061 2011-04-29  Jim Meyering  <meyering@redhat.com>
13062
13063         vc-list-files: indent with spaces, not TABs
13064         * build-aux/vc-list-files: Convert leading TABs to spaces,
13065         to match the style of most other files in gnulib.
13066
13067         announce-gen: indent with spaces, not TABs
13068         * build-aux/announce-gen: Convert all TABs to spaces, to match
13069         the style of most other files in gnulib.
13070
13071 2011-04-29  Eric Blake  <eblake@redhat.com>
13072
13073         quotearg: avoid uninitialized variable use
13074         * lib/quotearg.c (quoting_options_from_style): Initialize
13075         remaining fields, and ensure that custom styles are only used via
13076         quoting_options rather than quoting_style.
13077
13078 2011-04-29  Jim Meyering  <meyering@redhat.com>
13079
13080         maint.mk: remove unused VC-tag variable
13081         * top/maint.mk (VC-tag): Remove unused variable.
13082
13083 2011-04-29  Bruno Haible  <bruno@clisp.org>
13084
13085         netdb: fix gai_strerror replacements
13086         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
13087         * modules/netdb: Substitute it.
13088
13089 2011-04-29  Jim Meyering  <meyering@redhat.com>
13090
13091         test-getcwd.c: avoid new set-but-not-used warning
13092         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
13093         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
13094         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
13095         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
13096
13097         test-hash.c: avoid a new shadowing warning
13098         * tests/test-hash.c (main): Don't shadow "dup".
13099
13100 2011-04-28  Eric Blake  <eblake@redhat.com>
13101
13102         getaddrinfo: fix gai_strerror signature
13103         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
13104         and work around mingw with UNICODE defined.
13105         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
13106         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
13107         * modules/netdb (Makefile.am): Substitute it.
13108         * lib/netdb.in.h (gai_strerror): Declare replacement.
13109         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
13110         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
13111         the fix.
13112
13113         getsockopt: avoid compiler warning
13114         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
13115         Reported by Matthias Bolte.
13116
13117         tests: drop unused link dependency
13118         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
13119         * modules/dirent-safer-tests (Makefile.am): Likewise.
13120         * modules/fdopendir-tests (Makefile.am): Likewise.
13121         * modules/mkfifoat-tests (Makefile.am): Likewise.
13122         * modules/openat-safer-tests (Makefile.am): Likewise.
13123         * modules/openat-tests (Makefile.am): Likewise.
13124         * modules/readlinkat-tests (Makefile.am): Likewise.
13125         * modules/symlinkat-tests (Makefile.am): Likewise.
13126         * modules/linkat-tests (Makefile.am): Likewise.
13127         (Depends-on): Switch to filenamecat-lgpl.
13128         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
13129         LIBINTL.
13130         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
13131         * tests/test-linkat.c (main): Don't require xalloc.
13132
13133         hash, mgetgroups: drop xalloc dependency
13134         * lib/hash.c (includes): Adjust includes.
13135         * lib/mgetgroups.c (includes): Likewise.
13136         (xgetgroups): Move...
13137         * lib/xgetgroups.c: ...to new file.
13138         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
13139         * modules/xgetgroups: New file, split from...
13140         * modules/mgetgroups: ...here.
13141         (Depends-on): Add xalloc-oversized.
13142         * modules/hash (Depends-on): Likewise.
13143         * modules/hash-tests (Depends-on): Drop xalloc.
13144         (test_hash_LDADD): Drop unused library.
13145         * tests/test-hash.c (main): Break xalloc dependency.
13146         (includes): Drop unused include.
13147
13148         xalloc-oversized: new module
13149         * modules/xalloc-oversized: New module.
13150         * modules/xalloc (Depends-on): Add it.
13151         * lib/xalloc.h (xalloc_oversized): Move...
13152         * lib/xalloc-oversized.h: ...into new file.
13153
13154         utimecmp: drop dependency on xmalloc
13155         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
13156         due to memory pressure.
13157         * modules/utimecmp (Depends-on): Drop xalloc.
13158
13159 2011-04-27  Eric Blake  <eblake@redhat.com>
13160
13161         getcwd: fix mingw bugs
13162         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
13163         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
13164         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
13165
13166 2011-04-27  Bruno Haible  <bruno@clisp.org>
13167
13168         mkstemps: Ensure declaration on MacOS X 10.5.
13169         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
13170         * doc/glibc-functions/mkstemps.texi: Document header file problem on
13171         MacOS X.
13172
13173 2011-04-27  Bruno Haible  <bruno@clisp.org>
13174
13175         mkstemp: More documentation.
13176         * doc/posix-functions/mkstemp.texi: Document header file problem on
13177         MacOS X.
13178
13179 2011-04-27  Bruno Haible  <bruno@clisp.org>
13180
13181         mkstemp: Tweak configure message when cross-compiling.
13182         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
13183         result as a guess.
13184
13185 2011-04-27  Bruno Haible  <bruno@clisp.org>
13186
13187         clean-temp: Clarify what it does.
13188         * lib/clean-temp.h: Add more comments.
13189         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
13190         module.
13191         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
13192         * doc/glibc-functions/mkstemps.texi: Likewise.
13193         * doc/glibc-functions/mkostemps.texi: Likewise.
13194
13195 2011-04-27  Eric Blake  <eblake@redhat.com>
13196
13197         fchdir: avoid extra chdir and fix test
13198         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
13199         getcwd-lgpl.
13200         * lib/fchdir.c (get_name): Any absolute name will do; it does not
13201         have to be canonical.
13202         (canonicalize_file_name): Drop unused macro.
13203         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
13204
13205         filenamecat-lgpl: fix licence
13206         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
13207         when it was first created.
13208
13209         linkat, renameat: add missing dependency
13210         * modules/linkat (Depends-on): Require getcwd-lgpl.
13211         * modules/renameat (Depends-on): Likewise.
13212
13213         tests: reduce dependencies
13214         * tests/test-linkat.c (main): Use lighter-weight getcwd.
13215         * tests/test-renameat.c (main): Likewise.
13216         * modules/linkat-tests (Depends-on): Relax dependency.
13217         * modules/renameat-tests (Depends-on): Likewise.
13218         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
13219         dependency explicit.
13220
13221         save-cwd: reduce default dependency
13222         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
13223         * lib/save-cwd.c: Update comments.
13224         * NEWS: Document the semantic change.
13225
13226         getcwd: enhance tests
13227         * tests/test-getcwd-lgpl.c: New file, taken from...
13228         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
13229         repeat long path stress tests from m4 probe.
13230         * modules/getcwd-lgpl-tests: New module.
13231         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
13232         * m4/getcwd-abort-bug.m4: Update comment.
13233         * m4/getcwd-path-max.m4: Likewise.
13234
13235         getcwd-lgpl: new module
13236         * modules/getcwd-lgpl: New module.
13237         * lib/getcwd-lgpl.c: New file.
13238         * doc/posix-functions/getcwd.texi (getcwd): Document it.
13239         * MODULES.html.sh (lacking POSIX:2008): Likewise.
13240         * modules/getcwd (configure.ac): Set C witness.
13241         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
13242
13243         getcwd: tweak comments
13244         * m4/getcwd-abort-bug.m4: Fix comments.
13245         * m4/getcwd-path-max.m4: Likewise.
13246         * m4/getcwd.m4: Likewise.
13247
13248 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13249         and Eric Blake  <eblake@redhat.com>
13250
13251         mkstemp: replace if system version uses wrong permissions
13252         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
13253         read/write mode bits set in file created by mkstemp.
13254         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
13255
13256 2011-04-27  Eric Blake  <eblake@redhat.com>
13257
13258         passfd: avoid compiler warning
13259         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
13260         Reported by Laine Stump.
13261
13262 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
13263
13264         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
13265         required by the NetBSD (and perhaps other 4.4BSD derived) join.
13266
13267 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13268         and Eric Blake  <eblake@redhat.com>
13269
13270         mkstemp: mention clean-temp module
13271         * lib/mkstemp.c: Add comment.
13272         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
13273
13274 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
13275
13276         inttypes: also provide default values for 32-bit tests
13277         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
13278         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
13279
13280 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13281
13282         strtoumax: remove dependency on strtoimax
13283         This is like the strtoull change of yesterday.
13284         * modules/strtoumax (Files): Add lib/strtoimax.c.
13285         (Depends-on): Remove strtoimax and add verify.
13286
13287         inttypes-incomplete: new module
13288         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
13289         all but the PRI* and SCN* parts of gl_INTTYPES_H.
13290         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
13291         of gl_INTTYPES_H.
13292         (gl_INTTYPES_H): Rewrite in terms of these new macros.
13293         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
13294         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
13295         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
13296         * modules/strtoumax, modules/xstrtol (Depends-on):
13297         Depend on inttypes-incomplete, not inttypes.
13298         * modules/inttypes-incomplete: New module, containing the contents
13299         of the old modules/inttypes module, except that the Files: section
13300         omits m4/inttypes-pri.m4, and the configure.ac section invokes
13301         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
13302         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
13303         (Depends-on): Depend only on inttypes-incomplete.
13304         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
13305
13306         inttypes: omit now-redundant strtoimax and strtoumax work
13307         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
13308         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
13309
13310         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
13311         This supports apps that need pointers to strtoimax and strtoumax,
13312         and ports to HP-UX 11.00 64.bit, which has macros that expand to
13313         nonexistent functions.  See
13314         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
13315         et seq.
13316         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
13317         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
13318         a macro.
13319         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13320
13321 2011-04-25  Simon Josefsson  <simon@josefsson.org>
13322
13323         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
13324
13325 2011-04-25  Bruno Haible  <bruno@clisp.org>
13326
13327         strtol, strtoul: Mark modules as obsolete.
13328         * modules/strtol (Status, Notice): New sections.
13329         * modules/strtoul (Status, Notice): New sections.
13330
13331 2011-04-25  Bruno Haible  <bruno@clisp.org>
13332
13333         strtod: Remove check for strtod, unless supporting old platforms.
13334         * modules/strtod-obsolete: New file.
13335         * m4/strtod-obsolete.m4: New file.
13336         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
13337         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
13338         * modules/strtod (Depends-on): Add strtod-obsolete.
13339         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
13340
13341 2011-04-25  Bruno Haible  <bruno@clisp.org>
13342
13343         strcase: Make module obsolete.
13344         * modules/strcase (Status, Notice): New sections.
13345
13346 2011-04-25  Bruno Haible  <bruno@clisp.org>
13347
13348         dup2: Remove check for dup2, unless supporting old obsolete platforms.
13349         * modules/dup2-obsolete: New file.
13350         * m4/dup2-obsolete.m4: New file.
13351         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
13352         gl_FUNC_DUP2_OBSOLETE is not also defined.
13353         * modules/dup2 (Depends-on): Add dup2-obsolete.
13354         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
13355
13356 2011-04-25  Bruno Haible  <bruno@clisp.org>
13357
13358         strnlen: Avoid memchr related link error on old obsolete platforms.
13359         * modules/memchr-obsolete: New file.
13360         * m4/memchr-obsolete.m4: New file.
13361         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
13362         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
13363         * modules/memchr (Depends-on): Add memchr-obsolete.
13364         * modules/strnlen (Depends-on): Likewise.
13365         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
13366
13367 2011-04-25  Jim Meyering  <meyering@redhat.com>
13368
13369         maint.mk: makefile_at_at_check extend and clean up
13370         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
13371         in addition to */Makefile.am.
13372         Exempt legitimate uses of @VAR@ notation, e.g.,
13373         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
13374         Remove obsolete coreutils-specific comment.
13375         Prompted by discussion here:
13376         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
13377
13378 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13379
13380         strtoul: remove dependency on strtol
13381         This is so that 'configure' need not check for strtol merely because
13382         the application needs strtoul.
13383         * modules/strtoul (Files): Add lib/strtol.c.
13384         (Depends-on): Remove strtol.
13385
13386         strtoull: remove dependency on strtoul
13387         This is like the strtoll change.
13388         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
13389         (Depends-on): Remove strtoul.
13390
13391         strtoll: remove dependency on strtol
13392         This is so that 'configure' need not check for strtol merely because
13393         the application needs strtoll.
13394         * modules/strtoll (Files): Add lib/strtol.c.
13395         (Depends-on): Remove strtol.
13396
13397 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13398
13399         inttypes: Move some configure check to module 'imaxdiv'.
13400         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
13401         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
13402         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
13403
13404 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13405
13406         inttypes: Move some configure check to module 'imaxabs'.
13407         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
13408         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
13409         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
13410
13411 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13412
13413         inttypes: Remove configure tests that are not needed since 2009-12-31.
13414         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
13415         gl_cv_header_working_inttypes_h.
13416
13417 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13418
13419         * modules/strnlen (Depends-on): Remove memchr.
13420         The strnlen implementation doesn't need the memchr module's fixes; see
13421         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
13422
13423         strtol: remove dependency on wchar
13424         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
13425         * modules/strtol (Depends-on): Remove wchar.
13426
13427 2011-04-21  Eric Blake  <eblake@redhat.com>
13428
13429         passfd: fix test regression on Linux
13430         * modules/passfd-tests (configure.ac): Correct socketpair check.
13431
13432         passfd: speed up configure and drop unused code
13433         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
13434         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
13435         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
13436         Instead of probing at configure for unix_scm_rights_bsd44_way,
13437         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
13438         check to a struct member probe.
13439         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
13440         (sendfd, recvfd): Update preprocessor checks.
13441         * modules/passfd (Files): Reflect rename, and drop unused file.
13442         (Depends-on): Drop unused dependency.
13443
13444         passfd: allow compilation on mingw
13445         * modules/sys_socket (Depends-on): Add sys_uio.
13446         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
13447         iovec and a minimal struct msghdr.
13448         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
13449         * tests/test-sys_socket.c (main): Enhance test.
13450         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
13451         guaranteed to provide what we need.
13452         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
13453         * modules/passfd-tests (Depends-on): Add sys_wait.
13454         * tests/test-passfd.c (main): Skip test on mingw, for now.
13455         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
13456         partial 'struct msghdr' implementation.
13457
13458         sys_uio: new module
13459         * modules/sys_uio: New module.
13460         * modules/sys_uio-tests: Likewise.
13461         * lib/sys_uio.in.h: New file.
13462         * m4/sys_uio_h.m4: Likewise.
13463         * tests/test-sys_uio.c: Likewise.
13464         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
13465         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
13466
13467 2011-04-20  Jim Meyering  <meyering@redhat.com>
13468
13469         useless-if-before-free: avoid false-positive
13470         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
13471         disjunct so that it too requires a terminating ";".  Without that,
13472         this script would identify as useless one statement from gcc that
13473         was not:
13474           if (aligned_ptr)
13475             free (((void **) aligned_ptr) [-1]);
13476
13477 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
13478
13479         doc: update users.txt.
13480         * users.txt: Add barcode.
13481
13482 2011-04-19  Bruno Haible  <bruno@clisp.org>
13483
13484         ioctl: Remove link dependency on native Windows.
13485         * lib/fd-hook.h: Renamed from lib/close-hook.h.
13486         (gl_close_fn, gl_ioctl_fn): New types.
13487         (struct fd_hook): Renamed from struct close_hook. Change type of
13488         private_close_fn field. Add private_ioctl_fn field.
13489         (close_hook_fn): Add parameter for primary close method.
13490         (execute_close_hooks, execute_all_close_hooks): Likewise.
13491         (ioctl_hook_fn): New type.
13492         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
13493         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13494         argument.
13495         (unregister_fd_hook): Renamed from unregister_close_hook.
13496         * lib/fd-hook.c: Renamed from lib/close-hook.c.
13497         Don't include <unistd.h>.
13498         (close): Remove undef.
13499         (anchor): Update.
13500         (execute_close_hooks): Add argument for primary close method.
13501         (execute_all_close_hooks): Likewise.
13502         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
13503         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13504         argument. Allow each argument to be NULL.
13505         (unregister_fd_hook): Renamed from unregister_close_hook.
13506         * lib/close.c (rpl_close): Pass 'close' function pointer to
13507         execute_all_close_hooks.
13508         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
13509         (primary_ioctl): New function.
13510         (ioctl): Don't call ioctlsocket here. Instead, call
13511         execute_all_ioctl_hooks.
13512         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
13513         close method.
13514         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
13515         (fd_sockets_hook): Renamed from close_sockets_hook.
13516         (gl_sockets_startup, gl_sockets_cleanup): Update.
13517         * modules/fd-hook: Renamed from modules/close-hook. Update.
13518         * modules/close (Depends-on): Add fd-hook, remove close-hook.
13519         * modules/sockets (Depends-on): Likewise.
13520         * modules/ioctl (Depends-on): Add fd-hook.
13521         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
13522         GNULIB_SOCKET.
13523
13524 2011-04-19  Bruno Haible  <bruno@clisp.org>
13525
13526         Move the support of O_NONBLOCK in open() to the 'open' module.
13527         * modules/nonblocking (Depends-on): Remove 'open'.
13528         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
13529         gl_cv_have_open_O_NONBLOCK.
13530         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
13531         O_NONBLOCK support.
13532         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
13533
13534 2011-04-17  Bruno Haible  <bruno@clisp.org>
13535
13536         pipe2: Simplify code.
13537         * lib/pipe2.c (pipe2): Reduce code duplication.
13538
13539 2011-04-17  Bruno Haible  <bruno@clisp.org>
13540
13541         nonblocking: Add comment.
13542         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
13543
13544 2011-04-17  Bruno Haible  <bruno@clisp.org>
13545
13546         nonblocking: Add tests for sockets.
13547         * tests/test-nonblocking-socket.sh: New file.
13548         * tests/test-nonblocking-socket-main.c: New file.
13549         * tests/test-nonblocking-socket-child.c: New file.
13550         * tests/test-nonblocking-socket.h: New file.
13551         * tests/socket-server.h: New file.
13552         * tests/socket-client.h: New file.
13553         * modules/nonblocking-socket-tests: New file.
13554         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
13555
13556 2011-04-17  Bruno Haible  <bruno@clisp.org>
13557
13558         nonblocking: Add tests for pipes.
13559         * tests/test-nonblocking-pipe.sh: New file.
13560         * tests/test-nonblocking-pipe-main.c: New file.
13561         * tests/test-nonblocking-pipe-child.c: New file.
13562         * tests/test-nonblocking-pipe.h: New file.
13563         * tests/test-nonblocking-writer.h: New file.
13564         * tests/test-nonblocking-reader.h: New file.
13565         * tests/test-nonblocking-misc.h: New file.
13566         * modules/nonblocking-pipe-tests: New file.
13567         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
13568
13569 2011-04-16  Bruno Haible  <bruno@clisp.org>
13570
13571         gettext: Clarify the needed programmer actions.
13572         * modules/gettext (Notice): New field.
13573         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13574
13575 2011-04-16  Bruno Haible  <bruno@clisp.org>
13576
13577         strchrnul: Tweak last commit.
13578         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
13579         bug.
13580         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
13581         as in _GL_FUNCDECL_SYS.
13582         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
13583         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
13584
13585 2011-04-15  Eric Blake  <eblake@redhat.com>
13586
13587         strchrnul: work around cygwin bug
13588         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
13589         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
13590         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
13591         * modules/string (Makefile.am): Substitute it.
13592         * lib/string.in.h (strchrnul): Use it.
13593
13594 2011-04-15  Bruno Haible  <bruno@clisp.org>
13595
13596         Don't require lib/stdio-write.c when only module 'stdio' is used.
13597         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
13598         invocation.
13599         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
13600
13601 2011-04-14  Bruno Haible  <bruno@clisp.org>
13602
13603         Support non-blocking pipe I/O in read() on native Windows.
13604         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
13605         (read): New declaration.
13606         * lib/read.c: New file.
13607         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
13608         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
13609         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
13610         vscanf): New declarations.
13611         * lib/stdio-read.c: New file.
13612         * m4/read.m4: New file.
13613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
13614         REPLACE_READ.
13615         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
13616         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13617         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
13618         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
13619         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
13620         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13621         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13622         * modules/read: New file.
13623         * modules/nonblocking (Files): Add lib/stdio-read.c.
13624         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
13625         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
13626         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13627         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13628         * modules/pread (Depends-on): Add read.
13629         * modules/safe-read (Depends-on): Likewise.
13630         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
13631         gets, scanf, vfscanf, vscanf): Verify signatures.
13632         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
13633         problem with non-blocking pipes.
13634         * doc/posix-functions/fgetc.texi: Likewise.
13635         * doc/posix-functions/fgets.texi: Likewise.
13636         * doc/posix-functions/fread.texi: Likewise.
13637         * doc/posix-functions/fscanf.texi: Likewise.
13638         * doc/posix-functions/getc.texi: Likewise.
13639         * doc/posix-functions/getchar.texi: Likewise.
13640         * doc/posix-functions/gets.texi: Likewise.
13641         * doc/posix-functions/scanf.texi: Likewise.
13642         * doc/posix-functions/vfscanf.texi: Likewise.
13643         * doc/posix-functions/vscanf.texi: Likewise.
13644
13645 2011-04-14  Bruno Haible  <bruno@clisp.org>
13646
13647         Support non-blocking pipe I/O in write() on native Windows.
13648         * lib/write.c (rpl_write): Split a write request that failed merely
13649         because the byte count was larger than the pipe buffer's size.
13650         * doc/posix-functions/write.texi: Mention the problem with large byte
13651         counts.
13652
13653 2011-04-14  Bruno Haible  <bruno@clisp.org>
13654
13655         wchar: Ensure that wchar_t gets defined on uClibc.
13656         * lib/wchar.in.h: On uClibc, include <stddef.h>.
13657         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
13658
13659 2011-04-13  Bruno Haible  <bruno@clisp.org>
13660
13661         safe-write, full-read: Avoid unnecessary compilation units.
13662         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
13663         (Depends-on): Remove safe-read. Add ssize_t.
13664         * modules/full-read (Files): Add lib/full-write.c.
13665         (Depends-on): Add full-write.
13666
13667 2011-04-13  Bruno Haible  <bruno@clisp.org>
13668
13669         Support non-blocking pipe I/O and SIGPIPE in pwrite().
13670         * modules/pwrite (Depends-on): Add 'write'.
13671
13672 2011-04-13  Bruno Haible  <bruno@clisp.org>
13673
13674         Support non-blocking pipe I/O in write() on native Windows.
13675         * lib/unistd.in.h (write): Enable replacement also if
13676         GNULIB_UNISTD_H_NONBLOCKING is 1.
13677         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
13678         (rpl_write): When failing to write on a non-blocking pipe, change
13679         errno from ENOSPC to EAGAIN.
13680         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
13681         putchar, puts, vfprintf, vprintf): Enable replacement also if
13682         GNULIB_STDIO_H_NONBLOCKING is 1.
13683         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
13684         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
13685         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
13686         CALL_WITH_SIGPIPE_EMULATION.
13687         (CALL_WITH_SIGPIPE_EMULATION): Use them.
13688         * m4/nonblocking.m4: New file.
13689         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
13690         for non-blocking I/O support.
13691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13692         GNULIB_UNISTD_H_NONBLOCKING.
13693         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
13694         required for non-blocking I/O support.
13695         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
13696         * modules/nonblocking (Files): Add m4/nonblocking.m4,
13697         lib/stdio-write.c, m4/asm-underscore.m4.
13698         (Depends-on): Add stdio, unistd.
13699         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
13700         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
13701         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
13702         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
13703         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
13704         problem with non-blocking pipes.
13705         * doc/posix-functions/fputc.texi: Likewise.
13706         * doc/posix-functions/fputs.texi: Likewise.
13707         * doc/posix-functions/fwrite.texi: Likewise.
13708         * doc/posix-functions/printf.texi: Likewise.
13709         * doc/posix-functions/putc.texi: Likewise.
13710         * doc/posix-functions/putchar.texi: Likewise.
13711         * doc/posix-functions/puts.texi: Likewise.
13712         * doc/posix-functions/vfprintf.texi: Likewise.
13713         * doc/posix-functions/vprintf.texi: Likewise.
13714         * doc/posix-functions/write.texi: Likewise.
13715
13716 2011-04-10  Jim Meyering  <meyering@redhat.com>
13717
13718         maint.mk: prohibit doubled words
13719         Detect them also when they're separated by a newline.
13720         There are 3 ways to customize it:
13721           - disable the test on a per file basis, as usual with rules using
13722             $(VC_LIST_EXCEPT)
13723           - replace the default doubled-word-selecting regexp (affects all files)
13724           - ignore a particular file-vs-doubled-word match
13725         I nearly used that last one to ignore the "is is" match in
13726         coreutils' NEWS file, since the text was "ls -is is ..."
13727         To do that, I would have added this line to cfg.mk:
13728           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
13729         but it would have ignored any "is is" match in NEWS.
13730         Low probability, but still...
13731         Instead, I changed the text, slightly:
13732           -  ls -is is now consistent with ls -lis in ignoring values returned
13733           +  "ls -is" is now consistent with ls -lis in ignoring values returned
13734         * top/maint.mk (prohibit_double_word_RE_): Provide default.
13735         (prohibit_doubled_word_): Define.
13736         (sc_prohibit_doubled_word): New rule.
13737         (sc_prohibit_the_the): Remove.  Subsumed by the above.
13738
13739 2011-04-10  Jim Meyering  <meyering@redhat.com>
13740
13741         maint: fix doubled-word typo in comment
13742         * m4/gethostname.m4: s/is is/it is/
13743         * m4/getdomainname.m4: Likewise.
13744
13745 2011-04-10  Jim Meyering  <meyering@redhat.com>
13746
13747         maint: remove doubled word: s/it it/it/
13748         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
13749
13750 2011-04-10  Jim Meyering  <meyering@redhat.com>
13751
13752         maint.mk: remove useless semicolon and backslash
13753         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
13754         semicolon and backslash.
13755
13756 2011-04-10  Bruno Haible  <bruno@clisp.org>
13757
13758         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
13759         * modules/stdint-tests (Depends-on): Add wchar.
13760
13761 2011-04-10  Jim Meyering  <meyering@redhat.com>
13762
13763         maint: remove doubled words in comments, e.g., s/a a/a/
13764         * lib/strptime.c (day_of_the_week): s/the the/the/
13765         * tests/test-chown.h (test_chown): s/a a/a/
13766
13767         test-chown.h: correct a cast
13768         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
13769         when the destination is a stat.st_gid.
13770
13771 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
13772
13773         getaddrinfo: Fix test for sa_len member.
13774         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
13775         include <sys/types.h> before <sys/socket.h>.
13776
13777 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13778
13779         maint: change "can not" to "cannot"
13780         * doc/posix-functions/iconv.texi (iconv): This one crossed line
13781         boundaries.
13782
13783 2011-04-09  Jim Meyering  <meyering@redhat.com>
13784
13785         maint: change "a a" to "a"
13786         * tests/test-lchown.h (test_lchown): s/a a/a/
13787
13788         maint.mk: prohibit \<the the\>
13789         * top/maint.mk (sc_prohibit_the_the): New rule.
13790
13791         maint: fix "the the" in comment
13792         * lib/count-one-bits.h: s/the the/the/
13793
13794         maint: change "can not" to "cannot"
13795         But do not change the occurrences in maintain.texi or in
13796         build-aux/po/Makefile.in.in, which I presume comes from gettext.
13797         * doc/gnulib-tool.texi: s/can not/cannot/
13798         * doc/posix-functions/accept.texi (accept): Likewise.
13799         * doc/posix-functions/socket.texi (socket): Likewise.
13800         * lib/mbrtowc.c: Likewise.
13801
13802         maint.mk: prohibit use of "can not"
13803         * top/maint.mk (sc_prohibit_can_not): New rule.
13804         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
13805
13806 2011-04-09  Bruno Haible  <bruno@clisp.org>
13807
13808         careadlinkat: Guard against misuse of careadlinkatcwd.
13809         * lib/careadlinkat.c: Include <stdlib.h>.
13810         (careadlinkatcwd): Check that the fd argument is as expected.
13811
13812 2011-04-09  Bruno Haible  <bruno@clisp.org>
13813
13814         careadlinkat: Use common coding style.
13815         * lib/careadlinkat.c: Move gnulib includes after system includes.
13816
13817 2011-04-09  Bruno Haible  <bruno@clisp.org>
13818
13819         careadlinkat: Clarify specification.
13820         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
13821         (careadlinkatcwd): Add comment.
13822         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
13823
13824 2011-04-09  Bruno Haible  <bruno@clisp.org>
13825
13826         areadlinkat: Avoid link error on many platforms.
13827         * modules/areadlinkat (Depends-on): Add areadlink.
13828
13829 2011-04-09  Bruno Haible  <bruno@clisp.org>
13830
13831         allocator, careadlinkat: Fix double-inclusion guard.
13832         * lib/allocator.h: Fix double-inclusion guard.
13833         * lib/careadlinkat.h: Likewise.
13834
13835 2011-04-09  Bruno Haible  <bruno@clisp.org>
13836
13837         relocatable-prog-wrapper: Update after module 'areadlink' changed.
13838         * lib/relocwrapper.c: Update dependencies hierarchy.
13839         * build-aux/install-reloc: Update list of files to be compiled.
13840         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
13841         lib/allocator.[hc].
13842
13843 2011-04-08  Eric Blake  <eblake@redhat.com>
13844
13845         strftime: silence gnulib-tool warning
13846         * modules/strftime-tests (Depends-on): Drop automatic dependency.
13847
13848 2011-04-08  Bruno Haible  <bruno@clisp.org>
13849
13850         verify: Fix syntax error with GCC 4.6 in C++ mode.
13851         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
13852         (HAVE_STATIC_ASSERT): New macro.
13853         (verify_true, verify): Use 'static_assert' if it is supported and
13854         '_Static_assert' is not supported.
13855
13856 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13857
13858         allocator: New module.
13859         * modules/allocator, lib/allocator.c: New files.
13860         * lib/allocator.h (stdlib_allocator): New decl.
13861         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
13862         Remove.  Do not include <stdlib.h>.
13863         (careadlinkat): Use stdlib_allocator instead of rolling our own.
13864         * modules/careadlinkat (Files): Remove lib/allocator.h.
13865         (Depends-on): Add allocator.
13866
13867         stdlib: let modules use system malloc, realloc
13868         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
13869         if !_GL_USE_STDLIB_ALLOC.
13870         (malloc, realloc): Limit this change to a smaller scope.
13871
13872         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
13873         (malloc, realloc): Don't #undef; no longer needed.
13874         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13875         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13876         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13877         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13878         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13879         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13880         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13881         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13882
13883         careadlinkat: rename members to avoid problem
13884         * lib/allocator.h (struct allocator): Rename members from
13885         malloc/realloc to allocate/reallocate, to avoid problems if malloc
13886         and realloc are #define'd.  Reported by Eric Blake in
13887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
13888         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
13889
13890 2011-04-08  Eric Blake  <eblake@redhat.com>
13891
13892         nonblocking: reduce dependency
13893         * tests/test-nonblocking.c: Only test sockets when in use.
13894         * modules/nonblocking-tests (Depends-on): Drop socket.
13895         (Makefile.am): Link even if sockets are not present.
13896         * modules/pipe2-tests (Makefile.am): Likewise.
13897         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
13898
13899         pipe2: fix O_NONBLOCK support on mingw
13900         * modules/pipe2 (Depends-on): Add nonblocking.
13901         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
13902         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
13903         * tests/test-nonblocking.c (main): Likewise.
13904         * modules/pipe2-tests (Makefile.am): Avoid link failure.
13905
13906         fcntl-h: fix O_ACCMODE on cygwin
13907         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
13908         * lib/fcntl.in.h (O_ACCMODE): Fix it.
13909
13910         pipe-filter: drop O_NONBLOCK workarounds
13911         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
13912         * modules/pipe-filter-ii (Depends-on): Likewise.
13913         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
13914
13915         nonblocking: provide O_NONBLOCK for mingw
13916         * modules/nonblocking (Depends-on): Add open.
13917         (configure.ac): Set new witness macro.
13918         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
13919         * modules/fcntl-h (Makefile.am): Substitute it.
13920         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
13921         nonblocking module is in use.
13922         * lib/nonblocking.c: Adjust portability test.
13923         * lib/open.c (open): Don't let native open see gnulib flag.
13924         * tests/test-fcntl-h.c (main): Enhance test.
13925         * tests/test-open.h (test_open): Likewise.
13926         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
13927
13928         careadlinkat: fix compilation error on mingw
13929         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
13930         within struct allocator.
13931
13932 2011-04-06  Eric Blake  <eblake@redhat.com>
13933
13934         binary-io: relicense under LGPLv2+
13935         * modules/binary-io (License): Relax to LGPLv2+.
13936         Requested for libvirt, and required by pipe2.
13937
13938 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
13939
13940         verify: use _Static_assert if available
13941         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
13942         (verify_true, verify): Use it if available.  This generates better
13943         diagnostics with GCC 4.6.0 and later.
13944
13945 2011-04-05  Bruno Haible  <bruno@clisp.org>
13946
13947         Remove leftover generated .h files after config.status changed.
13948
13949         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
13950         GL_GENERATE_ALLOCA_H.
13951         * modules/alloca-opt (Makefile.am): Remove alloca.h if
13952         GL_GENERATE_ALLOCA_H evaluates to false.
13953
13954         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
13955         GL_GENERATE_ARGZ_H.
13956         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
13957         evaluates to false.
13958
13959         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
13960         GL_GENERATE_BYTESWAP_H.
13961         * modules/byteswap (Makefile.am): Remove byteswap.h if
13962         GL_GENERATE_BYTESWAP_H evaluates to false.
13963
13964         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
13965         GL_GENERATE_ERRNO_H.
13966         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
13967         evaluates to false.
13968
13969         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
13970         GL_GENERATE_FLOAT_H.
13971         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
13972         evaluates to false.
13973
13974         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
13975         GL_GENERATE_FNMATCH_H.
13976         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
13977         GL_GENERATE_FNMATCH_H evaluates to false.
13978
13979         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
13980         GL_GENERATE_GLOB_H.
13981         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
13982         evaluates to false.
13983
13984         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
13985         automake conditional GL_GENERATE_ICONV_H.
13986         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
13987         evaluates to false.
13988
13989         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
13990         GL_GENERATE_NETINET_IN_H.
13991         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
13992         GL_GENERATE_NETINET_IN_H evaluates to false.
13993
13994         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
13995         conditional GL_GENERATE_PTHREAD_H.
13996         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
13997         * modules/pthread (Makefile.am): Remove pthread.h if
13998         GL_GENERATE_PTHREAD_H evaluates to false.
13999
14000         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
14001         GL_GENERATE_SCHED_H.
14002         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
14003         evaluates to false.
14004
14005         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
14006         conditional GL_GENERATE_SELINUX_CONTEXT_H.
14007         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
14008         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
14009
14010         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
14011         GL_GENERATE_STDARG_H.
14012         * modules/stdarg (Makefile.am): Remove stdarg.h if
14013         GL_GENERATE_STDARG_H evaluates to false.
14014
14015         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
14016         GL_GENERATE_STDBOOL_H.
14017         * modules/stdbool (Makefile.am): Remove stdbool.h if
14018         GL_GENERATE_STDBOOL_H evaluates to false.
14019
14020         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
14021         conditional GL_GENERATE_STDDEF_H.
14022         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
14023         * modules/stddef (Makefile.am): Remove stddef.h if
14024         GL_GENERATE_STDDEF_H evaluates to false.
14025
14026         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
14027         GL_GENERATE_STDINT_H.
14028         * modules/stdint (Makefile.am): Remove stdint.h if
14029         GL_GENERATE_STDINT_H evaluates to false.
14030
14031         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
14032         GL_GENERATE_SYSEXITS_H.
14033         * modules/sysexits (Makefile.am): Remove sysexits.h if
14034         GL_GENERATE_SYSEXITS_H evaluates to false.
14035
14036         Reported by Karl Berry and Ralf Wildenhues.
14037
14038 2011-04-05  Bruno Haible  <bruno@clisp.org>
14039
14040         Ensure to rebuild generated .h files when config.status has changed.
14041         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
14042         config.status.
14043         * modules/ctype (Makefile.am): Likewise.
14044         * modules/dirent (Makefile.am): Likewise.
14045         * modules/errno (Makefile.am): Likewise.
14046         * modules/fcntl-h (Makefile.am): Likewise.
14047         * modules/float (Makefile.am): Likewise.
14048         * modules/getopt-posix (Makefile.am): Likewise.
14049         * modules/glob (Makefile.am): Likewise.
14050         * modules/iconv-h (Makefile.am): Likewise.
14051         * modules/inttypes (Makefile.am): Likewise.
14052         * modules/langinfo (Makefile.am): Likewise.
14053         * modules/locale (Makefile.am): Likewise.
14054         * modules/math (Makefile.am): Likewise.
14055         * modules/netdb (Makefile.am): Likewise.
14056         * modules/netinet_in (Makefile.am): Likewise.
14057         * modules/poll-h (Makefile.am): Likewise.
14058         * modules/pthread (Makefile.am): Likewise.
14059         * modules/pty (Makefile.am): Likewise.
14060         * modules/sched (Makefile.am): Likewise.
14061         * modules/search (Makefile.am): Likewise.
14062         * modules/selinux-h (Makefile.am): Likewise.
14063         * modules/signal (Makefile.am): Likewise.
14064         * modules/spawn (Makefile.am): Likewise.
14065         * modules/stdarg (Makefile.am): Likewise.
14066         * modules/stdbool (Makefile.am): Likewise.
14067         * modules/stddef (Makefile.am): Likewise.
14068         * modules/stdint (Makefile.am): Likewise.
14069         * modules/stdio (Makefile.am): Likewise.
14070         * modules/stdlib (Makefile.am): Likewise.
14071         * modules/string (Makefile.am): Likewise.
14072         * modules/strings (Makefile.am): Likewise.
14073         * modules/sys_file (Makefile.am): Likewise.
14074         * modules/sys_ioctl (Makefile.am): Likewise.
14075         * modules/sys_select (Makefile.am): Likewise.
14076         * modules/sys_socket (Makefile.am): Likewise.
14077         * modules/sys_stat (Makefile.am): Likewise.
14078         * modules/sys_time (Makefile.am): Likewise.
14079         * modules/sys_times (Makefile.am): Likewise.
14080         * modules/sys_utsname (Makefile.am): Likewise.
14081         * modules/sys_wait (Makefile.am): Likewise.
14082         * modules/sysexits (Makefile.am): Likewise.
14083         * modules/termios (Makefile.am): Likewise.
14084         * modules/time (Makefile.am): Likewise.
14085         * modules/unistd (Makefile.am): Likewise.
14086         * modules/wchar (Makefile.am): Likewise.
14087         * modules/wctype-h (Makefile.am): Likewise.
14088         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
14089
14090 2011-04-05  Bruno Haible  <bruno@clisp.org>
14091
14092         pipe2: Relicense under LGPLv2+.
14093         * modules/pipe2 (License): Change to LGPLv2+.
14094         Requested by Eric Blake, for libvirt.
14095
14096 2011-04-05  Bruce Korb  <bkorb@gnu.org>
14097
14098         bootstrap: compute gnulib_extra_files after updating build_aux
14099         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
14100         change build_aux or also supply gnulib_extra_files.  Handle correctly.
14101
14102 2011-04-05  Eric Blake  <eblake@redhat.com>
14103
14104         bootstrap: preserve git whitelist item sorting
14105         * build-aux/bootstrap (sort_patterns): New function.
14106         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
14107
14108 2011-04-05  Simon Josefsson  <simon@josefsson.org>
14109
14110         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
14111         sc_space_tab check.
14112
14113 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
14114
14115         areadlink, areadlinkat: rewrite in terms of careadlinkat
14116         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
14117         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
14118         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
14119         (malloc, realloc): Remove #undefs.
14120         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
14121         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
14122         readlink, ssize_t, stdint, unistd.
14123         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
14124         areadlink, stdint.
14125
14126         careadlinkat: new module
14127         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
14128         * modules/careadlinkat: New files, written by me with
14129         a review and feedback from Ben Pfaff in
14130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
14131
14132 2011-04-01  Bruno Haible  <bruno@clisp.org>
14133
14134         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
14135         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
14136         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
14137         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
14138         Reported by Bruce Korb <bruce.korb@gmail.com>.
14139
14140 2011-04-01  Bruno Haible  <bruno@clisp.org>
14141
14142         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
14143         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
14144         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
14145         * modules/wcpcpy (Depends-on): Add extensions.
14146         * modules/wcpncpy (Depends-on): Likewise.
14147         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
14148         systems.
14149         * doc/posix-functions/wcpncpy.texi: Likewise.
14150         * doc/posix-functions/wcwidth.texi: Likewise.
14151
14152 2011-03-31  Eric Blake  <eblake@redhat.com>
14153
14154         nonblocking: fix mingw test failures
14155         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
14156         non-blocking flag on regular file.
14157         (get_nonblocking_flag): Set errno on invalid fd.
14158         * tests/test-nonblocking.c (main): Avoid test failure on
14159         directories if fchdir is not active.
14160         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
14161
14162 2011-03-31  Bruno Haible  <bruno@clisp.org>
14163
14164         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
14165         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
14166         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
14167         Reported by Simon Josefsson <simon@josefsson.org>.
14168
14169 2011-03-31  Bruno Haible  <bruno@clisp.org>
14170         and Eric Blake  <eblake@redhat.com>
14171
14172         nonblocking: new module
14173         * modules/nonblocking: New module.
14174         * modules/nonblocking-tests: Likewise.
14175         * lib/nonblocking.h: New file.
14176         * lib/nonblocking.c: Likewise.
14177         * tests/test-nonblocking.c: New test.
14178         * lib/ioctl.c (ioctl) [mingw]: Update comment.
14179
14180 2011-03-30  Bruno Haible  <bruno@clisp.org>
14181
14182         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
14183         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
14184         instead of 'printf' format for GCC >= 4.4.
14185         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
14186         (fprintf, printf, vfprintf, vprintf): Declare with
14187         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
14188         the system's vfprintf() function.
14189         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
14190
14191 2011-03-30  Eric Blake  <eblake@redhat.com>
14192
14193         passfd: fix scoping bug
14194         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
14195         before sendmsg/recvmsg.
14196
14197         passfd: standardize coding conventions
14198         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
14199         can be learned at compile time.
14200         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
14201         ifdefs.
14202         (sendfd, recvfd): Follow gnulib code conventions.
14203
14204         passfd: fix incorrect sendmsg arguments
14205         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
14206         incorrect msg_controllen value.
14207         * modules/passfd-tests (Depends-on): Check for alarm.
14208         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
14209         Reported by Bastien ROUCARIES.
14210
14211 2011-03-30  Bruno Haible  <bruno@clisp.org>
14212
14213         c-strcasestr: Relicense under LGPLv2+.
14214         * modules/c-strcasestr (License): Change to LGPLv2+.
14215         Requested by Eric Blake, for libvirt.
14216
14217 2011-03-30  Simon Josefsson  <simon@josefsson.org>
14218
14219         * users.txt: Add libidn2.  Fix libtasn1 link.
14220
14221 2011-03-30  Jim Meyering  <meyering@redhat.com>
14222
14223         tests: readlink* ("",... fails with EINVAL on newer kernels
14224         readlink and readlinkat have typically failed with ENOENT for
14225         the invalid, empty file name,  "".  However, with the advent
14226         of linux-2.6.39, they fail with EINVAL.
14227         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
14228         when operating on the empty file name.
14229         * tests/test-readlink.h (test_readlink): Likewise.
14230
14231 2011-03-29  Bruno Haible  <bruno@clisp.org>
14232
14233         Relicense some modules under LGPLv2+, for libidn2.
14234         * modules/array-mergesort (License): Change to LGPLv2+.
14235         * modules/c-strcaseeq (License): Likewise.
14236         * modules/striconveh (License): Likewise.
14237         * modules/striconveha (License): Likewise.
14238         * modules/uniconv/base (License): Likewise.
14239         * modules/uniconv/u8-conv-from-enc (License): Likewise.
14240         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
14241         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
14242         * modules/unictype/base (License): Likewise.
14243         * modules/unictype/bidiclass-of (License): Likewise.
14244         * modules/unictype/category-M (License): Likewise.
14245         * modules/unictype/category-none (License): Likewise.
14246         * modules/unictype/category-of (License): Likewise.
14247         * modules/unictype/category-test (License): Likewise.
14248         * modules/unictype/category-test-withtable (License): Likewise.
14249         * modules/unictype/combining-class (License): Likewise.
14250         * modules/unictype/joiningtype-of (License): Likewise.
14251         * modules/unictype/scripts (License): Likewise.
14252         * modules/uninorm/base (License): Likewise.
14253         * modules/uninorm/canonical-decomposition (License): Likewise.
14254         * modules/uninorm/composition (License): Likewise.
14255         * modules/uninorm/decompose-internal (License): Likewise.
14256         * modules/uninorm/decomposition-table (License): Likewise.
14257         * modules/uninorm/nfc (License): Likewise.
14258         * modules/uninorm/nfd (License): Likewise.
14259         * modules/uninorm/u32-normalize (License): Likewise.
14260         * modules/unistr/base (License): Likewise.
14261         * modules/unistr/u32-cpy (License): Likewise.
14262         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
14263         * modules/unistr/u32-to-u8 (License): Likewise.
14264         * modules/unistr/u32-uctomb (License): Likewise.
14265         * modules/unistr/u8-check (License): Likewise.
14266         * modules/unistr/u8-mblen (License): Likewise.
14267         * modules/unistr/u8-mbtouc (License): Likewise.
14268         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
14269         * modules/unistr/u8-mbtoucr (License): Likewise.
14270         * modules/unistr/u8-prev (License): Likewise.
14271         * modules/unistr/u8-strlen (License): Likewise.
14272         * modules/unistr/u8-to-u32 (License): Likewise.
14273         * modules/unistr/u8-uctomb (License): Likewise.
14274         * modules/unitypes (License): Likewise.
14275         Requested by Simon Josefsson.
14276
14277 2011-03-29  Simon Josefsson  <simon@josefsson.org>
14278
14279         lib-symbol-visibility: Add a notice.
14280         * modules/lib-symbol-visibility (Notice): New field.
14281
14282 2011-03-29  Bruno Haible  <bruno@clisp.org>
14283
14284         getaddrinfo: Doc fix.
14285         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
14286         section "fixed in Gnulib".
14287
14288 2011-03-28  Simon Josefsson  <simon@josefsson.org>
14289
14290         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
14291         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
14292
14293 2011-03-26  Bruno Haible  <bruno@clisp.org>
14294
14295         unictype/property-byname: Reduce the number of load-time relocations.
14296         * lib/unictype/pr_byname.c: Include <stdlib.h>.
14297         (UC_PROPERTY_INDEX_*): New enumeration values.
14298         (uc_property_byname): Convert an index from the lookup table to an
14299         uc_property_t.
14300         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
14301         values.
14302
14303 2011-03-26  Bruno Haible  <bruno@clisp.org>
14304
14305         unictype/property-byname: Allow omitted word separators and aliases.
14306         * lib/unictype/pr_byname.gperf: Add property names without word
14307         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
14308         for 'space'.
14309
14310 2011-03-26  Bruno Haible  <bruno@clisp.org>
14311
14312         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
14313         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
14314         also hyphens to space.
14315         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
14316         without spaces.
14317         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
14318
14319 2011-03-26  Bruno Haible  <bruno@clisp.org>
14320
14321         unictype/joiningtype-byname: Recognize long names as well.
14322         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
14323         a long name.
14324         * lib/unictype/joiningtype_byname.c: Include <string.h>,
14325         unictype/joiningtype_byname.h.
14326         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
14327         * lib/unictype/joiningtype_byname.gperf: New file.
14328         * modules/unictype/joiningtype-byname (Files): Add
14329         lib/unictype/joiningtype_byname.gperf.
14330         (Depends-on): Add gperf.
14331         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
14332         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
14333         long names.
14334
14335         Tests for module 'unictype/joiningtype-longname'.
14336         * modules/unictype/joiningtype-longname-tests: New file.
14337         * tests/unictype/test-joiningtype_longname.c: New file.
14338
14339         New module 'unictype/joiningtype-longname'.
14340         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
14341         * lib/unictype/joiningtype_longname.c: New file.
14342         * modules/unictype/joiningtype-longname: New file.
14343         * modules/unictype/joiningtype-all (Depends-on): Add
14344         unictype/joiningtype-longname.
14345
14346 2011-03-26  Bruno Haible  <bruno@clisp.org>
14347
14348         unictype/bidiclass-byname: Recognize long names as well.
14349         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
14350         name.
14351         * lib/unictype/bidi_byname.c: Include <string.h>,
14352         unictype/bidi_byname.h.
14353         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
14354         * lib/unictype/bidi_byname.gperf: New file.
14355         * modules/unictype/bidiclass-byname (Files): Add
14356         lib/unictype/bidi_byname.gperf.
14357         (Depends-on): Add gperf.
14358         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
14359         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
14360         long names.
14361
14362         Tests for module 'unictype/bidiclass-longname'.
14363         * modules/unictype/bidiclass-longname-tests: New file.
14364         * tests/unictype/test-bidi_longname.c: New file.
14365
14366         New module 'unictype/bidiclass-longname'.
14367         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
14368         * lib/unictype/bidi_longname.c: New file.
14369         * modules/unictype/bidiclass-longname: New file.
14370         * modules/unictype/bidiclass-all (Depends-on): Add
14371         unictype/bidiclass-longname.
14372
14373 2011-03-26  Bruno Haible  <bruno@clisp.org>
14374
14375         unictype/bidi*: Rename modules.
14376         * modules/unictype/bidiclass-all: Renamed from
14377         modules/unictype/bidicategory-all.
14378         * modules/unictype/bidiclass-name: Renamed from
14379         modules/unictype/bidiclass-name.
14380         (Description): Update.
14381         * modules/unictype/bidiclass-name-tests: Renamed from
14382         modules/unictype/bidicategory-name-tests.
14383         * modules/unictype/bidiclass-byname: Renamed from
14384         modules/unictype/bidicategory-byname.
14385         (Description): Update.
14386         * modules/unictype/bidiclass-byname-tests: Renamed from
14387         modules/unictype/bidicategory-byname-tests.
14388         * modules/unictype/bidiclass-of: Renamed from
14389         modules/unictype/bidicategory-of.
14390         (Description): Update.
14391         * modules/unictype/bidiclass-of-tests: Renamed from
14392         modules/unictype/bidicategory-of-tests.
14393         * modules/unictype/bidiclass-test: Renamed from
14394         modules/unictype/bidicategory-test.
14395         (Description): Update.
14396         * modules/unictype/bidiclass-test-tests: Renamed from
14397         modules/unictype/bidicategory-test-tests.
14398         * modules/unictype/bidicategory-all: New file, a simple redirection.
14399         * modules/unictype/bidicategory-name: Likewise.
14400         * modules/unictype/bidicategory-byname: Likewise.
14401         * modules/unictype/bidicategory-of: Likewise.
14402         * modules/unictype/bidicategory-test: Likewise.
14403         * modules/unictype/property-bidi-* (Dependencies): Update.
14404         * lib/unictype/bidi_*.c: Update comment.
14405
14406 2011-03-26  Bruno Haible  <bruno@clisp.org>
14407
14408         unictype/bidi*: Rename functions, part 2.
14409         * modules/unictype/bidicategory-name (configure.ac): Update required
14410         libunistring version.
14411         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
14412
14413 2011-03-25  Bruno Haible  <bruno@clisp.org>
14414
14415         New module 'unictype/combining-class-all'.
14416         * modules/unictype/combining-class-all: New file.
14417
14418         Tests for module 'unictype/combining-class-byname'.
14419         * modules/unictype/combining-class-byname-tests: New file.
14420         * tests/unictype/test-combiningclass_byname.c: New file.
14421
14422         New module 'unictype/combining-class-byname'.
14423         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
14424         * lib/unictype/combiningclass_byname.c: New file.
14425         * lib/unictype/combiningclass_byname.gperf: New file.
14426         * modules/unictype/combining-class-byname: New file.
14427
14428         Tests for module 'unictype/combining-class-longname'.
14429         * modules/unictype/combining-class-longname-tests: New file.
14430         * tests/unictype/test-combiningclass_longname.c: New file.
14431
14432         New module 'unictype/combining-class-longname'.
14433         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
14434         * lib/unictype/combiningclass_longname.c: New file.
14435         * modules/unictype/combining-class-longname: New file.
14436
14437         Tests for module 'unictype/combining-class-name'.
14438         * modules/unictype/combining-class-name-tests: New file.
14439         * tests/unictype/test-combiningclass_name.c: New file.
14440
14441         New module 'unictype/combining-class-name'.
14442         * lib/unictype.in.h (uc_combining_class_name): New declaration.
14443         * lib/unictype/combiningclass_name.c: New file.
14444         * modules/unictype/combining-class-name: New file.
14445
14446 2011-03-25  Bruno Haible  <bruno@clisp.org>
14447
14448         unictype/combining-class: Rename source files.
14449         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
14450         of unictype/combining.h.
14451         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
14452         Update.
14453         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
14454         * modules/unictype/combining-class (Description): Fix.
14455         (Files, Makefile.am): Update.
14456         * tests/unictype/test-combiningclass.c: Renamed from
14457         tests/unictype/test-combining.c.
14458         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
14459
14460 2011-03-25  Bruno Haible  <bruno@clisp.org>
14461
14462         unictype: Update list of canonical combining classes.
14463         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
14464
14465 2011-03-25  Bruno Haible  <bruno@clisp.org>
14466
14467         unictype/category-byname: Recognize long names as well.
14468         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
14469         a long name.
14470         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
14471         unictype/categ_byname.h.
14472         (UC_CATEGORY_INDEX_*): New enumeration values.
14473         (uc_general_category_byname): Use uc_general_category_lookup and
14474         convert from index to value.
14475         * lib/unictype/categ_byname.gperf: New file.
14476         * modules/unictype/category-byname (Files): Add
14477         lib/unictype/categ_byname.gperf.
14478         (Depends-on): Add gperf.
14479         (Makefile.am): Add rule for generating unictype/categ_byname.h.
14480         * tests/unictype/test-categ_byname.c (main): Test the recognition of
14481         long names.
14482
14483         Tests for module 'unictype/category-longname'.
14484         * modules/unictype/category-longname-tests: New file.
14485         * tests/unictype/test-categ_longname.c: New file.
14486
14487         New module 'unictype/category-longname'.
14488         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
14489         * lib/unictype/categ_longname.c: New file.
14490         * modules/unictype/category-longname: New file.
14491         * modules/unictype/category-all (Depends-on): Add it.
14492
14493 2011-03-25  Bruno Haible  <bruno@clisp.org>
14494
14495         Tests for module 'unictype/category-LC'.
14496         * modules/unictype/category-LC-tests: New file.
14497         * tests/unictype/test-categ_LC.c: New file, automatically generated.
14498
14499         New module 'unictype/category-LC'.
14500         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
14501         (UC_CATEGORY_LC): New declaration.
14502         (UC_CASED_LETTER): New macro.
14503         * lib/gen-uni-tables.c (is_category_LC): New function.
14504         (output_categories): Also handle category LC.
14505         (UC_CATEGORY_MASK_LC): New enumeration value.
14506         (general_category_byname): Also handle category LC.
14507         * lib/unictype/categ_LC.c: New file.
14508         * lib/unictype/categ_LC.h: New file, automatically generated.
14509         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
14510         category LC.
14511         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
14512         * modules/unictype/category-LC: New file.
14513         * modules/unictype/category-byname (Depends-on): Add
14514         unictype/category-LC.
14515         * modules/unictype/category-all (Depends-on): Likewise.
14516
14517 2011-03-25  Eric Blake  <eblake@redhat.com>
14518
14519         xmalloc: revert yesterday's regression
14520         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
14521         realloc's underlying behavior (allowing allocation of zero-size
14522         objects, especially if malloc-gnu is also in use).
14523
14524 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
14525
14526         maint.mk: add missing version to VC-tag
14527         * top/maint.mk: git tag was missing actual tag name; add it.
14528
14529         valgrind: do leak checking, and exit with code 1 on error (not 0)
14530         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
14531         to VALGRIND.
14532
14533 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
14534
14535         posix-modules: say what it does.
14536         * posix-modules: Add a line to the --help output saying what it does.
14537
14538 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14539
14540         xmalloc: Do not leak if underlying realloc is C99 compatible.
14541         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
14542         This avoids a leak on C99-based systems.  See
14543         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
14544
14545 2011-03-24  Eric Blake  <eblake@redhat.com>
14546
14547         realloc: document portability problem
14548         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
14549         passing 0 size to realloc.
14550
14551 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
14552
14553         doc: update users.txt
14554         * users.txt: Add cvsps, tmpwatch
14555
14556 2011-03-23  Matt Rice  <ratmice@gmail.com>
14557
14558         doc: update users.txt
14559         * users.txt: Add gdb.
14560
14561 2011-03-23  Jim Meyering  <meyering@redhat.com>
14562
14563         doc: update users.txt
14564         Looking through matches up to the following URL (there are still
14565         several more pages), I found several projects that use gnulib:
14566         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
14567         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
14568         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
14569
14570 2011-03-22  Bruno Haible  <bruno@clisp.org>
14571
14572         unictype/bidi*: Rename functions.
14573         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
14574         uc_bidi_class, uc_is_bidi_class): New declarations.
14575         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
14576         uc_bidi_category_byname.
14577         (uc_bidi_category_byname): New function.
14578         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
14579         u_bidi_category_name.
14580         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
14581         (uc_bidi_category_name): New function.
14582         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
14583         uc_bidi_category.
14584         (uc_bidi_category): New function.
14585         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
14586         uc_is_bidi_category. Invoke uc_bidi_class.
14587         (uc_is_bidi_category): New function.
14588         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
14589         instead of uc_bidi_category_byname.
14590         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
14591         instead of uc_bidi_category_name.
14592         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
14593         uc_bidi_category.
14594         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
14595         instead of uc_is_bidi_category.
14596
14597 2011-03-21  Bruno Haible  <bruno@clisp.org>
14598
14599         New module 'unictype/joininggroup-all'.
14600         * modules/unictype/joininggroup-all: New file.
14601
14602         Tests for module 'unictype/joininggroup-of'.
14603         * modules/unictype/joininggroup-of-tests: New file.
14604         * tests/unictype/test-joininggroup_of.c: New file.
14605         * tests/unictype/test-joininggroup_of.h: New file, automatically
14606         generated by gen-uni-tables.
14607
14608         New module 'unictype/joininggroup-of'.
14609         * modules/unictype/joininggroup-of: New file.
14610         * lib/unictype/joininggroup_of.c: New file.
14611         * lib/unictype/joininggroup_of.h: New file, automatically generated by
14612         gen-uni-tables.
14613
14614         Tests for module 'unictype/joininggroup-byname'.
14615         * modules/unictype/joininggroup-byname-tests: New file.
14616         * tests/unictype/test-joininggroup_byname.c: New file.
14617
14618         New module 'unictype/joininggroup-byname'.
14619         * modules/unictype/joininggroup-byname: New file.
14620         * lib/unictype/joininggroup_byname.c: New file.
14621         * lib/unictype/joininggroup_byname.gperf: New file.
14622
14623         Tests for module 'unictype/joininggroup-name'.
14624         * modules/unictype/joininggroup-name-tests: New file.
14625         * tests/unictype/test-joininggroup_name.c: New file.
14626
14627         New module 'unictype/joininggroup-name'.
14628         * modules/unictype/joininggroup-name: New file.
14629         * lib/unictype/joininggroup_name.c: New file.
14630         * lib/unictype/joininggroup_name.h: New file.
14631
14632         New module 'unictype/joiningtype-all'.
14633         * modules/unictype/joiningtype-all: New file.
14634
14635         Tests for module 'unictype/joiningtype-of'.
14636         * modules/unictype/joiningtype-of-tests: New file.
14637         * tests/unictype/test-joiningtype_of.c: New file.
14638         * tests/unictype/test-joiningtype_of.h: New file, automatically
14639         generated by gen-uni-tables.
14640
14641         New module 'unictype/joiningtype-of'.
14642         * modules/unictype/joiningtype-of: New file.
14643         * lib/unictype/joiningtype_of.c: New file.
14644         * lib/unictype/joiningtype_of.h: New file, automatically generated by
14645         gen-uni-tables.
14646
14647         Tests for module 'unictype/joiningtype-byname'.
14648         * modules/unictype/joiningtype-byname-tests: New file.
14649         * tests/unictype/test-joiningtype_byname.c: New file.
14650
14651         New module 'unictype/joiningtype-byname'.
14652         * modules/unictype/joiningtype-byname: New file.
14653         * lib/unictype/joiningtype_byname.c: New file.
14654
14655         Tests for module 'unictype/joiningtype-name'.
14656         * modules/unictype/joiningtype-name-tests: New file.
14657         * tests/unictype/test-joiningtype_name.c: New file.
14658
14659         New module 'unictype/joiningtype-name'.
14660         * modules/unictype/joiningtype-name: New file.
14661         * lib/unictype/joiningtype_name.c: New file.
14662
14663         unictype: Add support for Arabic shaping properties.
14664         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
14665         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
14666         declarations.
14667         (UC_JOINING_GROUP_*): New enumeration values.
14668         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
14669         declarations.
14670         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
14671         (unicode_joining_type): New variable.
14672         (UC_JOINING_GROUP_*): New enumeration values.
14673         (unicode_joining_group): New variable.
14674         (fill_arabicshaping, joining_type_as_c_identifier,
14675         output_joining_type_test, output_joining_type,
14676         joining_group_as_c_identifier, output_joining_group_test,
14677         output_joining_group): New functions.
14678         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
14679         fill_arabicshaping and output_joining_type_test, output_joining_type,
14680         output_joining_group_test, output_joining_group.
14681         Reported by Simon Josefsson.
14682
14683 2011-03-21  Jim Meyering  <meyering@redhat.com>
14684
14685         strftime: fix a bug in yesterday's change
14686         * lib/strftime.c (add): Accommodate width's initial value of -1.
14687         Otherwise, nstrftime would copy uninitialized data into
14688         the result buffer.
14689
14690 2011-03-21  Jim Meyering  <meyering@redhat.com>
14691
14692         tests: add strftime-tests module
14693         * tests/test-strftime.c: New file.
14694         * modules/strftime-tests: New module.
14695
14696 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14697
14698         strftime: don't assume a byte count fits in 'int'
14699         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
14700         found this problem by static analysis, using gcc -Wstrict-overflow
14701         (GCC 4.5.2, x86-64).  This reported an optimization that depended
14702         on an integer overflow having undefined behavior, but it turns out
14703         that the argument is a size, which might not fit in 'int' anyway,
14704
14705 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14706
14707         stdio: don't require ignore_value around fwrite
14708
14709         This patch works around libc bug 11959
14710         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
14711         Without this patch, applications must often write
14712         ignore_value (fwrite (...)) even though the ignore_value is
14713         not helpful here.  It's common to write many objects, using
14714         fwrite/printf/etc., and then use ferror to detect output error.
14715
14716         I considered making this patch optional, but decided against it,
14717         because libc is obviously being inconsistent here: there is no
14718         reason libc should insist that user code must inspect fwrite
14719         return's value without also insisting that it inspect printf's,
14720         putchar's, etc.  If user code wants to have a strict style where
14721         all these functions' values are checked (so that ferror need not
14722         be checked), we could add support for that style in a new gnulib
14723         module, but in the meantime it's better to be consistent and to
14724         support common usage.
14725
14726         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
14727         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
14728         that we are compiling in checking mode, and if not C++, and
14729         if not already wrapping fwrite for some other reason.
14730         (fwrite): #define to rpl_fwrite if the latter is defined.
14731
14732 2011-03-20  Bruno Haible  <bruno@clisp.org>
14733
14734         verror: Fix compilation error introduced on 2011-02-13.
14735         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
14736         instead of __attribute__.
14737         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14738
14739 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14740             Bruno Haible  <bruno@clisp.org>
14741
14742         socklen: do not depend on sys_socket
14743         While trying to modify Emacs to use gnulib's socklen module,
14744         I discovered a circular dependency: socklen depends on sys_socket
14745         and vice versa.  Emacs can use socklen, but it does not need
14746         sys_socket because it has its own substitute for sys/socket.h.
14747         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
14748         gl_TYPE_SOCKLEN_T.
14749         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
14750         gl_PREREQ_SYS_H_SOCKET.
14751         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14752         gl_PREREQ_SYS_H_SOCKET.
14753         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
14754         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
14755         * modules/socklen (Depends-on): Do not depend on sys_socket.
14756         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
14757
14758 2011-03-20  Jim Meyering  <meyering@redhat.com>
14759
14760         maint.mk: sort file names *after* new transformation
14761         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
14762         prefix would have led to an unwarranted failure in GNU parted.
14763         Sort after that transformation.
14764
14765 2011-03-19  Jim Meyering  <meyering@redhat.com>
14766
14767         maint.mk: fix po-file syntax-check rule
14768         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
14769         Patch by Bruno Haible.
14770
14771 2011-03-19  Bruno Haible  <bruno@clisp.org>
14772
14773         socklen: Update comment.
14774         * m4/socklen.m4: Update comment about platforms.
14775
14776 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14777             Bruno Haible  <bruno@clisp.org>
14778
14779         inet_ntop, inet_pton: Simplify.
14780         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
14781         documented to provide socklen_t and we already depend on sys_socket.
14782         * modules/inet_pton (Depends-on): Likewise.
14783         * lib/arpa_inet.in.h: Adjust comment.
14784
14785 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14786             Bruno Haible  <bruno@clisp.org>
14787
14788         netdb: Simplify.
14789         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
14790         documented to provide socklen_t and we already depend on sys_socket.
14791         * lib/netdb.in.h: Adjust comment.
14792
14793 2011-03-19  Bruno Haible  <bruno@clisp.org>
14794
14795         sys_socket, netdb: Document problem with socklen_t.
14796         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
14797         platforms.
14798         * doc/posix-headers/netdb.texi: Likewise.
14799
14800 2011-03-18  Eric Blake  <eblake@redhat.com>
14801
14802         maint.mk: let po check work in VPATH build
14803         * top/maint.mk (po_file): Allow cfg.mk override.
14804         (sc_po_check): Allow VPATH use.
14805         Reported by Jiri Denemark.
14806
14807 2011-03-16  Jim Meyering  <meyering@redhat.com>
14808
14809         maint.mk: allow fine-grained syntax-check exclusion via Make variables
14810         Before, you would have had to create one .x-sc_ file per rule in order
14811         to exempt offending files.  Now, you may instead use a Make variable --
14812         usually defined in cfg.mk -- whose name identifies the affected rule.
14813         * top/maint.mk (_sc_excl): Define.
14814         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
14815         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
14816
14817 2011-03-13  Bruno Haible  <bruno@clisp.org>
14818
14819         ignore-value tests: Avoid warnings.
14820         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
14821         empty for gcc < 3.4.
14822
14823 2011-03-13  Bruno Haible  <bruno@clisp.org>
14824
14825         passfd: Fix link error on Solaris.
14826         * modules/passfd (Description): Correct.
14827         (Depends-on): Add socketlib.
14828         (Link): New section.
14829         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
14830
14831 2011-03-13  Bruno Haible  <bruno@clisp.org>
14832
14833         passfd: Fix link error on AIX 5.2.
14834         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
14835
14836 2011-03-13  Bruno Haible  <bruno@clisp.org>
14837
14838         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
14839         * lib/sys_socket.in.h: Include <stddef.h>.
14840         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
14841         CMSG_FIRSTHDR. Remove unused variable.
14842
14843 2011-03-13  Bruno Haible  <bruno@clisp.org>
14844
14845         passfd: Fix compilation error on OpenBSD.
14846         * lib/passfd.c: Include <sys/uio.h>.
14847
14848 2011-03-13  Bruno Haible  <bruno@clisp.org>
14849
14850         passfd test: Fix warnings.
14851         * tests/test-passfd.c: Include <sys/wait.h>.
14852         (main): Fix typo.
14853
14854 2011-03-13  Bruno Haible  <bruno@clisp.org>
14855
14856         passfd module, part 4, tweaks.
14857         * tests/test-passfd.c: Reorder includes.
14858         (main): Fix perror and printf calls.
14859
14860 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14861
14862         passfd module, part 4.
14863         * modules/passfd-tests: New file.
14864         * tests/test-passfd.c: New file.
14865
14866 2011-03-13  Jim Meyering  <meyering@redhat.com>
14867
14868         Makefile: rely on GNU make; derive syntax-check rule names
14869         Rather than requiring that each sc_ rule be listed as a dependent
14870         of "check", use features of GNU make to derive the list.
14871         * Makefile (syntax-check-rules): Define.
14872         (check): Depend on the new variable, not the hard-coded list.
14873
14874 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
14875             Bruno Haible  <bruno@clisp.org>
14876
14877         passfd module, part 3.
14878         * lib/passfd.h (recvfd): Add a flags argument.
14879         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
14880         (recvfd): Add a flags argument.
14881         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
14882         exists.
14883         * modules/passfd (Depends-on): Add cloexec.
14884         Suggested by Eric Blake.
14885
14886 2011-03-13  Bruno Haible  <bruno@clisp.org>
14887
14888         passfd module, part 2, tweaks.
14889         * modules/passfd (Files): Reorder.
14890         (Depends-on): Remove errno.
14891         (Include): Remove <sys/socket.h>, <sys/un.h>.
14892         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
14893         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
14894         specification header. Include <sys/socket.h> always. Don't include
14895         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
14896         (sendfd): Clarify that it sets errno when it fails.
14897         (recvfd): Fix specification.
14898
14899 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14900
14901         passfd module, part 2.
14902         * modules/passfd: New file.
14903         * lib/passfd.h: New file.
14904         * lib/passfd.c: New file.
14905
14906 2011-03-12  Bruno Haible  <bruno@clisp.org>
14907
14908         wcswidth, mbswidth: Avoid integer overflow.
14909         * lib/wcswidth.c: Include <limits.h>.
14910         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
14911         * lib/mbswidth.c: Include <limits.h>.
14912         (mbsnwidth): Avoid 'int' overflow.
14913         Reported by Jim Meyering.
14914
14915 2011-03-12  Bruno Haible  <bruno@clisp.org>
14916
14917         futimens, utimensat: Avoid endless recursion on Solaris 10.
14918         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
14919         Solaris.
14920         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
14921         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
14922
14923 2011-03-11  Jim Meyering  <meyering@redhat.com>
14924
14925         maint.mk: relax a regexp to accommodate other formatting styles
14926         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
14927         between "ngettext" and the following "(".
14928
14929 2011-03-11  Pádraig Brady <P@draigBrady.com>
14930
14931         maint.mk: suppress a false positive warning
14932         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
14933         diagnostics are marked with ngettext.
14934
14935 2011-03-10  Eric Blake  <eblake@redhat.com>
14936
14937         wchar: add explicit dependencies, for Tru64
14938         * modules/mbmemcasecoll (Depends-on): Add wchar.
14939         * modules/mbtowc (Depends-on): Likewise.
14940         * modules/vasnprintf (Depends-on): Likewise.
14941         * modules/unistdio/u-printf-args (Depends-on): Likewise.
14942         * modules/wctomb (Depends-on): Likewise.
14943         Reported by Peter O'Gorman.
14944
14945 2011-03-08  Bruno Haible  <bruno@clisp.org>
14946
14947         passfd module, part 1, tweaks.
14948         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
14949         Improve indentation. Improve AC_MSG_CHECKING messages.
14950         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
14951         gl_SOCKET_FAMILIES.
14952
14953 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14954
14955         passfd module, part 1.
14956         * m4/afunix.m4: New file.
14957         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
14958         sockets.
14959
14960 2011-03-08  Bruno Haible  <bruno@clisp.org>
14961
14962         regex-quote: New API.
14963         * lib/regex-quote.h: Include <stdbool.h>.
14964         (struct regex_quote_spec): New type.
14965         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14966         New declarations.
14967         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14968         'const struct regex_quote_spec *' argument.
14969         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
14970         (pcre_special): New constant.
14971         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14972         New functions.
14973         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14974         'const struct regex_quote_spec *' argument.
14975         * modules/regex-quote (Depends-on): Add stdbool.
14976         * tests/test-regex-quote.c (check): Update for new API. Add test for
14977         anchored results.
14978         * NEWS: Mention the API change.
14979         Reported by Reuben Thomas and Eric Blake.
14980
14981 2011-03-06  Bruno Haible  <bruno@clisp.org>
14982
14983         regex-quote: Fix creation of POSIX extended regular expressions.
14984         * lib/regex-quote.c (ere_special): Add grouping and alternation
14985         operators.
14986
14987 2011-03-05  Bruno Haible  <bruno@clisp.org>
14988
14989         doc: Improve doc regarding autopoint vs. gnulib.
14990         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
14991         disable autopoint while running autoreconf.
14992         Suggested by Ralf Wildenhues.
14993
14994 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14995
14996         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
14997         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
14998
14999 2011-03-03  Bruce Korb  <bkorb@gnu.org>
15000
15001         parse-duration: remove xalloc.h dependency
15002         * lib/parse-duration.c (parse_period): handle NULL return from
15003         strdup instead of calling xstrdup().
15004         * modules/parse-duration: remove "xalloc" dependency
15005
15006 2011-03-03  Matthew Booth  <mbooth@redhat.com>
15007
15008         bootstrap: honor m4_base when running aclocal
15009         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
15010
15011 2011-03-02  Jim Meyering  <meyering@redhat.com>
15012
15013         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
15014         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
15015         on request from Matt Booth.
15016
15017 2011-03-01  Eric Blake  <eblake@redhat.com>
15018
15019         test-link: work on Hurd
15020         * tests/test-link.h (test_link): Hurd rejects linking directories
15021         with EISDIR instead of the POSIX-mandated EPERM.
15022
15023 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
15024
15025         stdio: simplify by moving files to printf-posix, sigpipe
15026         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
15027         since this symbol is needed only if printf is replaced.
15028         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
15029         Require gl_ASM_SYMBOL_PREFIX.
15030         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
15031         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
15032         (Depends-on): Add 'raise'.
15033         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
15034         * modules/stdio (Files): Remove lib/stdio-write.c,
15035         m4/asm-underscore.m4.
15036         (Depends-on): Remove 'raise'.
15037
15038         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
15039         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
15040         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
15041         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
15042
15043 2011-02-28  Bruno Haible  <bruno@clisp.org>
15044
15045         localcharset: Assume ANSI C behaviour of free().
15046         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
15047         calling free().
15048         Suggested by Simon Josefsson <simon@josefsson.org>.
15049
15050 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
15051             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
15052             Bruno Haible  <bruno@clisp.org>  (tiny change)
15053
15054         On Cygwin, use /proc file system instead of win32 API.
15055         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
15056         Win32 file names.
15057         (DllMain): Simplify by removing Cygwin specific code.
15058         (find_shared_library_fullname): Use Linux specific implementation also
15059         for Cygwin.
15060         (get_shared_library_fullname): Update accordingly.
15061         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
15062         Win32 file names.
15063         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
15064         Cygwin specific code.
15065
15066 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
15067             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
15068
15069         Fix OpenMP flag detection for various Fortran compilers.
15070         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
15071         OpenMP-conditional compilation construct, to force compile
15072         failure with missing OpenMP flag.
15073         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
15074
15075 2011-02-25  Eric Blake  <eblake@redhat.com>
15076
15077         strstr: expand test coverage
15078         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
15079         compilation.
15080         * tests/test-memmem.c (main): Duplicate tests.
15081         * tests/test-strcasestr.c (main): Likewise.
15082         * tests/test-c-strcasestr.c (main): Likewise.
15083
15084 2011-02-25  Jim Meyering  <meyering@redhat.com>
15085
15086         maint.mk: detect missing-NL-at-EOF, too
15087         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
15088         it also detects when a file lacks a newline at EOF.
15089         (require_exactly_one_NL_at_EOF_): Renamed from
15090         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
15091         since people may well have .x-sc_... file names tied to the
15092         existing name.  Suggested by Eric Blake.
15093
15094 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15095
15096         dirname: move m4/dos.m4 functionality into lib/dosname.h
15097
15098         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
15099         extracts symbols from it, puts them into config.h; but it's much
15100         easier to use the symbols directly.  filename.h already does this,
15101         but it disagrees with dos.m4 in some respects.  This patch
15102         introduces a different include file dosname.h that packages up
15103         dos.m4, and then later we can work on merging filename.h and
15104         dosname.h.  Applications that need only the easy-to-configure
15105         symbols should consider including dosname.h rather than dirname.h.
15106         * NEWS: Mention incompatible changes.
15107         * m4/dos.m4: Remove.
15108         * lib/dosname.h, modules/dosname: New files.
15109         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
15110         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
15111         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
15112         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
15113         Include dosname.h, not dirname.h.
15114         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
15115         Include dosname.h, for definitions of symbols like ISSLASH
15116         that used to be in config.h.
15117         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
15118         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15119         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15120         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15121         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
15122         * modules/rmdir (Files): Likewise.
15123         * modules/stat (Files): Likewise.
15124         * modules/unlink (Files): Likewise.
15125         * modules/dirname-lgpl (Depends-on): Add dosname.
15126         * modules/lstat (Depends-on): Likewise.
15127         * modules/openat (Depends-on): Likewise.
15128         * modules/rmdir (Depends-on): Likewise.
15129         * modules/savewd (Depends-on): Likewise.
15130         * modules/stat (Depends-on): Likewise.
15131         * modules/unlink (Depends-on): Likewise.
15132         * modules/openat (Depends-on): Remove dirname-lgpl.
15133         * modules/savewd (Depends-on): Likewise.
15134         * tests/test-dirname.c: Do not use removed symbols like
15135         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
15136         the remaining symbols, e.g., ISSLASH ('\\').
15137
15138 2011-02-25  Eric Blake  <eblake@redhat.com>
15139
15140         strstr: revert patches that introduced bug and pessimization
15141         * lib/str-two-way.h: Add another reference.
15142         (two_way_short_needle, two_way_long_needle): Revert changes from
15143         2011-02-24; they pessimize search speed.
15144         (critical_factorization): Partially revert changes from
15145         2010-06-22; they violate the requirement that the left half of the
15146         needle be smaller than the period of the needle.
15147
15148 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15149
15150         filenamecat: remove unnecessary dependency on dirname-lgpl
15151         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
15152         is no direct dependency, just an indirect one via filenamecat-lgpl.
15153
15154         remove: remove unnecessary use of m4/dos.m4
15155         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
15156         * modules/remove (FILES): Remove m4/dos.m4.
15157
15158         * lib/openat-proc.c: Don't include dirname.h; not needed.
15159
15160         backupfile: remove unnecessary use of m4/dos.m4
15161         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
15162         of its symbols are used by the backupfile code.  backupfile.c does
15163         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
15164         for the rare case of programs that want all their backup file
15165         names to live within 8+3 limits, and dos.m4 doesn't address that.
15166         * modules/backupfile (Files): Remove m4/dos.m4.
15167
15168 2011-02-24  Jim Meyering  <meyering@redhat.com>
15169
15170         strstr: fix a bug whereby strstr would mistakenly return NULL
15171         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
15172         in period calculation.
15173         (two_way_long_needle): Likewise.
15174         The original problem was reported by Mike Stump in
15175         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
15176         Ralf Wildenhues provided the short needle and haystack.
15177         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
15178         Add a more involved test to trigger the bug in two_way_long_needle.
15179
15180 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15181
15182         gnulib-tool: remove use of bold display in help screen
15183         * gnulib-tool (func_usage): Do not use bold display anymore in the
15184         help screen.  That was just meant to be a temporary emphasis for a
15185         backward-incompatible change.
15186
15187 2011-02-23  Bruno Haible  <bruno@clisp.org>
15188
15189         Fix misindentation of preprocessor directives.
15190         * lib/argp-namefrob.h: Reindent preprocessor directives.
15191         * lib/getopt_int.h (struct _getopt_data): Likewise.
15192         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
15193         * lib/vasnprintf.c (decode_long_double): Likewise.
15194         * tests/test-argmatch.c: Insert blank lines, for clarity.
15195         * tests/test-exclude.c: Likewise.
15196
15197 2011-02-22  Bruno Haible  <bruno@clisp.org>
15198
15199         ioctl: Fix for MacOS X in 64-bit mode.
15200         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
15201         value.
15202         Suggested by Eric Blake.
15203         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
15204
15205 2011-02-22  Jim Meyering  <meyering@redhat.com>
15206
15207         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
15208         * Makefile (sc_cpp_indent_check): Don't limit the check to files
15209         in lib/.
15210
15211 2011-02-22  Eric Blake  <eblake@redhat.com>
15212
15213         maint: avoid any CDPATH issue
15214         * Makefile (sc_cpp_indent_check): Anchor cd argument.
15215
15216         maint: adjust cpp indentation for my modules, as well
15217         * Makefile (sc_cpp_indent_check): Add my name.
15218         * lib/fbufmode.c: Filter through cppi.
15219         * lib/fpurge.c: Likewise.
15220         * lib/freadable.c: Likewise.
15221         * lib/freading.c: Likewise.
15222         * lib/fwritable.c: Likewise.
15223         * lib/fwriting.c: Likewise.
15224         * lib/sigaction.c: Likewise.
15225
15226 2011-02-22  Jim Meyering  <meyering@redhat.com>
15227
15228         maint: adjust cpp indentation to reflect nesting depth
15229         I.e., in a block of code that begins with an unnested "#if",
15230         put one space between the "#" in column 1 and following token.
15231         For example,
15232         -#include <sys/vfs.h>
15233         +# include <sys/vfs.h>
15234         Do this only in .c files that are part of a module I maintain.
15235         * lib/linkat.c: Filter through cppi.
15236         * lib/nanosleep.c: Likewise.
15237         * lib/openat.c: Likewise.
15238         * lib/openat-die.c: Likewise.
15239         * lib/dup3.c: Likewise.
15240         * lib/fchownat.c: Likewise.
15241         * lib/flock.c: Likewise.
15242         * lib/fsync.c: Likewise.
15243         * lib/fts.c: Likewise.
15244         * lib/getpass.c: Likewise.
15245         * lib/gettimeofday.c: Likewise.
15246         * lib/userspec.c: Likewise.
15247         * Makefile (sc_cpp_indent_check): New rule, to check this.
15248
15249 2011-02-22  Bruno Haible  <bruno@clisp.org>
15250
15251         New module 'wctomb'.
15252         * lib/stdlib.in.h (wctomb): New declaration.
15253         * lib/wctomb.c: New file.
15254         * lib/wctomb-impl.h: New file.
15255         * m4/wctomb.m4: New file.
15256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
15257         REPLACE_WCTOMB.
15258         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
15259         REPLACE_WCTOMB.
15260         * modules/wctomb: New file.
15261         * tests/test-stdlib-c++.cc: Test signature of wctomb.
15262         * doc/posix-functions/wctomb.texi: Mention the new module.
15263         * modules/wctob (Depends-on): Add wctomb.
15264
15265 2011-02-22  Bruno Haible  <bruno@clisp.org>
15266
15267         New module 'mbtowc'.
15268         * lib/stdlib.in.h (mbtowc): New declaration.
15269         * lib/mbtowc.c: New file.
15270         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
15271         * m4/mbtowc.m4: New file.
15272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
15273         REPLACE_MBTOWC.
15274         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
15275         REPLACE_MBTOWC.
15276         * modules/mbtowc: New file.
15277         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
15278         * doc/posix-functions/mbtowc.texi: Mention the new module.
15279         * modules/btowc (Depends-on): Add mbtowc.
15280
15281 2011-02-22  Bruno Haible  <bruno@clisp.org>
15282
15283         wcrtomb: Add more tests for native Windows platforms.
15284         * tests/test-wcrtomb-w32-1.sh: New file.
15285         * tests/test-wcrtomb-w32-2.sh: New file.
15286         * tests/test-wcrtomb-w32-3.sh: New file.
15287         * tests/test-wcrtomb-w32-4.sh: New file.
15288         * tests/test-wcrtomb-w32-5.sh: New file.
15289         * tests/test-wcrtomb-w32.c: New file.
15290         * modules/wcrtomb-tests (Files): Add them.
15291         (Makefile.am): Arrange to run these tests.
15292         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
15293         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
15294
15295 2011-02-20  Bruno Haible  <bruno@clisp.org>
15296
15297         wcrtomb: Enhance test.
15298         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
15299
15300 2011-02-20  Bruno Haible  <bruno@clisp.org>
15301
15302         mbrtowc: Tiny optimization.
15303         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
15304
15305 2011-02-20  Jim Meyering  <meyering@redhat.com>
15306
15307         test-exclude.c: remove unmatched #endif
15308         * tests/test-exclude.c: Remove stray #endif, left over from
15309         the change of a week ago.
15310
15311 2011-02-19  Jim Meyering  <meyering@redhat.com>
15312
15313         git-version-gen: skip "-dirty" check when appropriate
15314         * build-aux/git-version-gen: Don't run any git commands when the
15315         version string comes from .tarball-version.  Prior to this, we
15316         would run git update-index --refresh even from a just-unpacked
15317         tarball directory, and that could affect a .git/ directory in a
15318         parent of the build directory.  Reported by Mike Frysinger.
15319
15320 2011-02-19  Bruno Haible  <bruno@clisp.org>
15321
15322         unictype/property-byname: Reduce the size of the 'data' segment.
15323         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
15324
15325 2011-02-19  Bruno Haible  <bruno@clisp.org>
15326
15327         unictype/scripts: Reduce the size of the 'data' segment.
15328         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
15329         '%pic'.
15330         * lib/unictype/scripts_byname.gperf: Regenerated.
15331
15332 2011-02-19  Bruno Haible  <bruno@clisp.org>
15333
15334         stdint: Update documentation.
15335         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
15336
15337 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15338
15339         stdint: omit redundant check for wchar.h
15340         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
15341         always tests whether wchar.h exists, so remove the now-redundant test.
15342
15343 2011-02-18  Bruno Haible  <bruno@clisp.org>
15344
15345         stdint: Cut dependency to module 'wchar'.
15346         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
15347         include the necessary prerequisites.
15348         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
15349         * modules/stdint (Depends-on): Remove wchar.
15350         (Makefile.am): Substitute HAVE_WCHAR_H.
15351         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
15352
15353 2011-02-18  Eric Blake  <eblake@redhat.com>
15354
15355         longlong: skip, rather than fail, on cross-compilation
15356         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
15357         when cross-compiling; regression from 2011-02-16.
15358
15359 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15360
15361         * NEWS: Mention 2011-02-08 change to stdlib.
15362
15363 2011-02-17  Bruno Haible  <bruno@clisp.org>
15364
15365         getloadavg: Add comments about platforms.
15366         * m4/getloadavg.m4: Add comment.
15367         * lib/getloadavg.c: Likewise.
15368
15369 2011-02-17  Bruno Haible  <bruno@clisp.org>
15370
15371         getloadavg: Fix link error on Solaris 2.6.
15372         * modules/getloadavg (Link): New section.
15373         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
15374         linking test-getloadavg.
15375         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
15376         getloadavg.
15377
15378 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15379
15380         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
15381         It was 'int', but this doesn't match the IRIX 6.5 manual.
15382         Suggested by Bruno Haible in
15383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
15384
15385 2011-02-17  Bruno Haible  <bruno@clisp.org>
15386
15387         havelib: Fix comments.
15388         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
15389         change.
15390
15391 2011-02-17  Bruno Haible  <bruno@clisp.org>
15392
15393         havelib: Update config.rpath.
15394         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
15395
15396 2011-02-17  Bruno Haible  <bruno@clisp.org>
15397
15398         getloadavg test: Add some plausibility checks.
15399         * tests/test-getloadavg.c (check_avg): Print a warning when the value
15400         is improbable.
15401
15402 2011-02-16  Eric Blake  <eblake@redhat.com>
15403
15404         maintainer-makefile: make syntax-check a no-op from tarballs
15405         * top/maint.mk (no-vc-detected): New rule.
15406         (local-checks-available): Use it to avoid hanging if someone tries
15407         'make syntax-check' from a tarball.  Also append to any non-syntax
15408         checks already defined in cfg.mk.
15409
15410 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15411
15412         longlong: tune, particularly for common case of c99
15413
15414         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
15415         or running anything if c99, or if unsigned long long int does not
15416         work.  In either case, we know the answer without further tests.
15417         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
15418         it at most once, and use its results for both long long int and
15419         unsigned long long int.  This is more likely to be efficient in
15420         the common case where the program wants to check for both long
15421         long int and unsigned long long int.
15422         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
15423         since the answer is already known.
15424
15425 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
15426
15427         getloadavg: set errno
15428         * lib/getloadavg.c: Set errno when returning -1.  If no other
15429         error number looks appropriate, set it to ENOSYS if the getloadavg
15430         looks like it can't possibly ever work, ENOTSUP otherwise.
15431         Suggested by Bruno Haible in
15432         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
15433
15434         getloadavg: trim unused parts and speed up 'configure'
15435         * NEWS: Document this.
15436         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
15437         always compiled if getloadavg is absent.
15438         Move test code to ...
15439         * tests/test-getloadavg.c: New file, containing previous
15440         contents of test from lib/getloadavg.c.  It also contains
15441         suggestions by Bruno Haible in
15442         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
15443         * modules/getloadavg-tests: New file.
15444         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
15445         Do tests in the same order as they're needed for getloadavg.c.
15446         Omit setgid-related tests that generate symbols KMEM_GROUP,
15447         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
15448         Do only the tests that are needed to see whether the system has
15449         getloadavg, moving the other tests into ...
15450         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
15451         NLIST_NAME_UNION; nobody should be using it.  Do not define
15452         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
15453         relevant, as the user of this module shouldn't care how getloadavg
15454         is implemented.
15455
15456         getloadavg: omit unused var
15457         * lib/getloadavg.c (getloadavg): Omit unused local variable.
15458
15459 2011-02-15  Jim Meyering  <meyering@redhat.com>
15460
15461         doc: update users.txt
15462         * users.txt: Update iwhd's URL.
15463
15464 2011-02-13  Bruno Haible  <bruno@clisp.org>
15465
15466         Consistent macro naming for macros that use GCC __attribute__.
15467         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
15468         _ATTRIBUTE_NONNULL_.
15469         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
15470         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
15471         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
15472         ATTRIBUTE_DEPRECATED.
15473         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
15474         ATTRIBUTE_NORETURN.
15475         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15476         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15477         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15478         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15479         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
15480         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
15481         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
15482         ATTRIBUTE_SENTINEL.
15483         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
15484         ATTRIBUTE_RETURN_CHECK.
15485         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
15486         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
15487         ATTRIBUTE_NORETURN.
15488         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
15489         Reported by Paul Eggert.
15490
15491 2011-02-13  Bruno Haible  <bruno@clisp.org>
15492
15493         Don't interfere with a program's definition of __attribute__.
15494         * lib/argp.h (__attribute__): Remove definition.
15495         (_GL_ATTRIBUTE_FORMAT): New macro.
15496         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
15497         * lib/argp-fmtstream.h (__attribute__): Remove definition.
15498         (_GL_ATTRIBUTE_FORMAT): New macro.
15499         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
15500         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
15501         GCC 3 or newer.
15502         * lib/error.h (__attribute__): Remove definition.
15503         (_GL_ATTRIBUTE_FORMAT): New macro.
15504         (error, error_at_line): Use it.
15505         * lib/hash.h (__attribute__): Remove definition.
15506         (ATTRIBUTE_WUR): Update definition. Define always.
15507         * lib/openat.h (__attribute__): Remove definition.
15508         (ATTRIBUTE_NORETURN): Update definition. Define always.
15509         * lib/sigpipe-die.h (__attribute__): Remove definition.
15510         (ATTRIBUTE_NORETURN): Update definition. Define always.
15511         * lib/vasnprintf.h (__attribute__): Remove definition.
15512         (_GL_ATTRIBUTE_FORMAT): New macro.
15513         (asnprintf, vasnprintf): Use it.
15514         * lib/xalloc.h (__attribute__): Remove definition.
15515         (ATTRIBUTE_NORETURN): Update definition. Define always.
15516         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
15517         * lib/xmemdup0.h (__attribute__): Remove definition.
15518         (ATTRIBUTE_NORETURN): Update definition. Define always.
15519         * lib/xprintf.h (__attribute__): Remove definition.
15520         (_GL_ATTRIBUTE_FORMAT): New macro.
15521         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
15522         * lib/xstrtol.h (__attribute__): Remove definition.
15523         (ATTRIBUTE_NORETURN): Update definition. Define always.
15524         * lib/xvasprintf.h (__attribute__): Remove definition.
15525         (_GL_ATTRIBUTE_FORMAT): New macro.
15526         (xasprintf, xvasprintf): Use it.
15527         * tests/test-argmatch.c (__attribute__): Remove definition.
15528         (ATTRIBUTE_NORETURN): Update definition. Define always.
15529         * tests/test-exclude.c (__attribute__): Remove definition.
15530         (ATTRIBUTE_NORETURN): Update definition. Define always.
15531         Reported by Paul Eggert.
15532
15533 2011-02-13  Bruno Haible  <bruno@clisp.org>
15534
15535         mbrtowc: Add more tests for native Windows platforms.
15536         * tests/test-mbrtowc-w32-1.sh: New file.
15537         * tests/test-mbrtowc-w32-2.sh: New file.
15538         * tests/test-mbrtowc-w32-3.sh: New file.
15539         * tests/test-mbrtowc-w32-4.sh: New file.
15540         * tests/test-mbrtowc-w32-5.sh: New file.
15541         * tests/test-mbrtowc-w32.c: New file.
15542         * modules/mbrtowc-tests (Files): Add them.
15543         (Makefile.am): Arrange to run these tests.
15544         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
15545         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
15546
15547 2011-02-13  Bruno Haible  <bruno@clisp.org>
15548
15549         mbrtowc: Work around native Windows bug.
15550         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
15551         guess when no suitable locale for testing was found.
15552         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
15553
15554 2011-02-13  Bruno Haible  <bruno@clisp.org>
15555
15556         mbsinit: Work around mingw bug.
15557         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
15558         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
15559         Windows.
15560         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
15561
15562 2011-02-13  Bruno Haible  <bruno@clisp.org>
15563
15564         mbsinit: Don't crash for a NULL argument.
15565         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
15566         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
15567
15568 2011-02-13  Bruno Haible  <bruno@clisp.org>
15569
15570         Don't interfere with a program's definition of __attribute__.
15571         * lib/stdio.in.h (__attribute__): Remove definition.
15572         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
15573         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
15574         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
15575         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
15576         * lib/string.in.h (__attribute__): Remove definition.
15577         Reported by Paul Eggert.
15578
15579 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15580
15581         stdlib: don't get in the way of non-GCC __attribute__
15582         See thread starting at
15583         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
15584         Revert previous stdlib change, installing the following instead:
15585         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
15586         to get in the way of a non-GCC compiler that supports __attribute__.
15587         (_GL_ATTRIBUTE_RETURN): New macro.
15588         (_Exit): Use it instead of __attribute__.
15589
15590 2011-02-12  Bruno Haible  <bruno@clisp.org>
15591
15592         quotearg test: Avoid test failure on mingw.
15593         * tests/test-quotearg.sh: Convert the locale identifier from native
15594         Windows syntax to Unix syntax.
15595
15596 2011-02-12  Bruno Haible  <bruno@clisp.org>
15597
15598         setlocale: Prefer gnulib's override over libintl's override.
15599         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
15600         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
15601         GNULIB_defined_setlocale is set.
15602
15603 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15604
15605         stdlib: support non-GCC __attribute__
15606
15607         Fix a serious and tricky problem encountered when attempting to
15608         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
15609         5.5, but it crashed due to memory corruption on Solaris 10 with
15610         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
15611         bits that are otherwise zero.  This tagging is optional inside
15612         Emacs but is preferred and is used when __attribute__ ((__aligned
15613         (8))) works, as it does with both recent-enough GCC and with Sun C
15614         5.11.  However, Sun C 5.11 is not GCC and does not #define
15615         __GNUC__ and __GNUC_MINOR__.
15616
15617         When I added the getloadavg module to Emacs, it brought in
15618         stdlib.in.h, which contained this fragment:
15619
15620            #ifndef __attribute__
15621            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
15622            #  define __attribute__(Spec)   /* empty */
15623            # endif
15624            #endif
15625
15626         When files that include <stdlib.h> were compiled with Sun C 5.11,
15627         the above code disabled __attribute__ ((__aligned (8))), which
15628         caused variables to not be properly aligned, which eventually led
15629         to the pointer corruption mentioned above.  (This was a bit hard
15630         to diagnose, unfortunately.)
15631
15632         Several "#define __attribute__(X) /* empty */" code snippets need
15633         to be eradicated from Gnulib to work with non-GCC compilers that
15634         support __attribute__.  The Autoconf way to do this is to test for
15635         each kind of attribute that we want support for, and selectively
15636         enable that in source code.
15637
15638         Fix this problem just for stdlib.h, by adding a test for the
15639         __noreturn__ attribute, and change stdlib.in.h to use that test
15640         when needed.  This technique can be easily generalized to the
15641         other *.in.h files and attributes, and a similar technique can be
15642         used for *.h and *.c files.  This patch is enough to solve the
15643         problem for Emacs + getloadavg, and I thought I'd publish it for
15644         feedback before undertaking further, similar fixes in other
15645         modules.
15646
15647         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
15648         because it's not needed for stdlib.h.  It merely substitutes the
15649         value directly into stdlib.h.  We may well need to #define it, or
15650         similar symbols, for other modules, but it's nice to also have an
15651         option to not #define it for applications like Emacs that do not
15652         need it.
15653
15654         * lib/stdlib.in.h (__attribute__): Do not #define.
15655         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
15656         be defined only if the _Exit module is also used.
15657         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
15658         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
15659         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
15660         platforms.
15661         * modules/_Exit (Files): Add m4/attribute.m4.
15662         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
15663         * m4/attribute.m4: New file.
15664
15665 2011-02-12  Bruno Haible  <bruno@clisp.org>
15666
15667         wcsrtombs: Work around bug on native Windows.
15668         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
15669         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
15670         instead of len.
15671         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
15672
15673 2011-02-12  Bruno Haible  <bruno@clisp.org>
15674
15675         mbsrtowcs: Work around bug on native Windows.
15676         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
15677         against mingw bug.
15678         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15679
15680 2011-02-12  Bruno Haible  <bruno@clisp.org>
15681
15682         Avoid setlocale bugs in tests.
15683         * modules/btowc (Dependencies): Add setlocale.
15684         * modules/c-strcase (Dependencies): Likewise.
15685         * modules/mbmemcasecmp (Dependencies): Likewise.
15686         * modules/mbmemcasecoll (Dependencies): Likewise.
15687         * modules/mbrtowc (Dependencies): Likewise.
15688         * modules/mbscasecmp (Dependencies): Likewise.
15689         * modules/mbscasestr (Dependencies): Likewise.
15690         * modules/mbschr (Dependencies): Likewise.
15691         * modules/mbscspn (Dependencies): Likewise.
15692         * modules/mbsinit (Dependencies): Likewise.
15693         * modules/mbsncasecmp (Dependencies): Likewise.
15694         * modules/mbsnrtowcs (Dependencies): Likewise.
15695         * modules/mbspbrk (Dependencies): Likewise.
15696         * modules/mbspcasecmp (Dependencies): Likewise.
15697         * modules/mbsrchr (Dependencies): Likewise.
15698         * modules/mbsrtowcs (Dependencies): Likewise.
15699         * modules/mbsspn (Dependencies): Likewise.
15700         * modules/mbsstr (Dependencies): Likewise.
15701         * modules/nl_langinfo (Dependencies): Likewise.
15702         * modules/quotearg (Dependencies): Likewise.
15703         * modules/unicase/locale-language (Dependencies): Likewise.
15704         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
15705         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
15706         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
15707         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
15708         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
15709         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
15710         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
15711         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
15712         * modules/vasnprintf-posix (Dependencies): Likewise.
15713         * modules/wcrtomb (Dependencies): Likewise.
15714         * modules/wcsnrtombs (Dependencies): Likewise.
15715         * modules/wcsrtombs (Dependencies): Likewise.
15716
15717 2011-02-12  Bruno Haible  <bruno@clisp.org>
15718
15719         setlocale: Workaround native Windows bug.
15720         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
15721         succeeds but sets LC_CTYPE to "C", report a failure.
15722         * tests/test-setlocale2.sh: New file.
15723         * tests/test-setlocale2.c: New file.
15724         * modules/setlocale-tests (Files): Add the new files.
15725         (Makefile.am): Enable test-setlocale2.sh test.
15726         * doc/posix-functions/setlocale.texi: Mention workaround.
15727
15728 2011-02-11  Bruno Haible  <bruno@clisp.org>
15729
15730         Tests for module 'setlocale'.
15731         * modules/setlocale-tests: New file.
15732         * tests/test-setlocale1.sh: New file.
15733         * tests/test-setlocale1.c: New file.
15734
15735         New module 'setlocale'.
15736         * lib/locale.in.h (setlocale): New declaration.
15737         * lib/setlocale.c: New file, based on
15738         gettext/gettext-runtime/intl/setlocale.c.
15739         * m4/setlocale.m4: New file.
15740         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
15741         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
15742         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
15743         REPLACE_SETLOCALE.
15744         * modules/setlocale: New file.
15745         * tests/test-locale-c++.cc: Test the declaration of setlocale.
15746         * doc/posix-functions/setlocale.texi: Mention the new module.
15747
15748 2011-02-11  Bruno Haible  <bruno@clisp.org>
15749
15750         Prepare for locale dependent tests on mingw.
15751         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
15752         because it has the wrong locale encoding.
15753         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
15754         French_France.1252 instead of "fr".
15755         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
15756         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
15757         because it has the wrong locale encoding.
15758         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
15759         native Windows, try Turkish_Turkey.65001.
15760         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
15761         Chinese_China.54936.
15762
15763         Prepare for locale dependent tests on mingw.
15764         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
15765         differently.
15766         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15767         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15768         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15769         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15770
15771 2011-02-11  Eric Blake  <eblake@redhat.com>
15772
15773         strptime: avoid compiler warnings
15774         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
15775         compiler warnings about dead code.
15776         Reported by Daniel P. Berrange.
15777
15778 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
15779
15780         doc: update users.txt
15781         * users.txt: Add rcs.
15782
15783 2011-02-10  John W. Eaton  <jwe@gnu.org>
15784
15785         doc: update users.txt
15786         * users.txt: Add octave.
15787
15788 2011-02-10  Jim Meyering  <meyering@redhat.com>
15789
15790         doc: update users.txt
15791         * users.txt: Add iwhd.
15792
15793 2011-02-09  Bruno Haible  <bruno@clisp.org>
15794
15795         gnulib-tool: Make copyright notice adjustment more robust.
15796         * gnulib-tool (func_import): In sed_transform_main_lib_file,
15797         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
15798         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
15799         License".
15800         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
15801
15802 2011-02-06  Bruno Haible  <bruno@clisp.org>
15803
15804         New module 'towctrans'.
15805         * modules/towctrans: New file.
15806         * lib/wctype.in.h (towctrans): New declaration.
15807         * lib/towctrans.c: New file.
15808         * lib/towctrans-impl.h: New file.
15809         * m4/towctrans.m4: New file.
15810         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
15811         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
15812         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
15813         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
15814         * doc/posix-functions/towctrans.texi: Mention the new module.
15815
15816 2011-02-06  Bruno Haible  <bruno@clisp.org>
15817
15818         New module 'wctrans'.
15819         * modules/wctrans: New file.
15820         * lib/wctype.in.h (wctrans): New declaration.
15821         * lib/wctrans.c: New file.
15822         * lib/wctrans-impl.h: New file.
15823         * m4/wctrans.m4: New file.
15824         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
15825         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
15826         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
15827         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
15828         * doc/posix-functions/wctrans.texi: Mention the new module.
15829
15830 2011-02-06  Bruno Haible  <bruno@clisp.org>
15831
15832         New module 'iswctype'.
15833         * modules/iswctype: New file.
15834         * lib/wctype.in.h (iswctype): New declaration.
15835         * lib/iswctype.c: New file.
15836         * lib/iswctype-impl.h: New file.
15837         * m4/iswctype.m4: New file.
15838         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
15839         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
15840         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
15841         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
15842         * doc/posix-functions/iswctype.texi: Mention the new module and the
15843         HP-UX 11.00 problem.
15844
15845 2011-02-06  Bruno Haible  <bruno@clisp.org>
15846
15847         New module 'wctype'.
15848         * modules/wctype: Change to represent the wctype() substitute.
15849         * lib/wctype.in.h (wctype): New declaration.
15850         * lib/wctype.c: New file.
15851         * lib/wctype-impl.h: New file.
15852         * m4/wctype.m4: New file.
15853         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
15854         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
15855         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
15856         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
15857         * doc/posix-functions/wctype.texi: Mention the new module and the
15858         HP-UX 11.00 problem.
15859
15860 2011-02-06  Bruno Haible  <bruno@clisp.org>
15861
15862         wctype-h: Ensure wctype_t and wctrans_t are defined.
15863         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
15864         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15865         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15866         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
15867         HAVE_WCTRANS_T.
15868         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
15869
15870 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15871
15872         flock: fix license typo
15873
15874         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
15875         omitted.
15876
15877 2011-02-08  Bruno Haible  <bruno@clisp.org>
15878
15879         Split large sed scripts, for HP-UX sed.
15880         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
15881         to avoid HP-UX limit of 99 commands, in the near future.
15882         * modules/stdlib (Makefile.am): Likewise.
15883         * modules/unistd (Makefile.am): Likewise.
15884         * modules/wchar (Makefile.am): Likewise.
15885         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15886         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
15887         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
15888
15889 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15890             Bruno Haible  <bruno@clisp.org>
15891
15892         stdlib: improve random_r modularization
15893         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
15894         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
15895         you also need the random_r module to get this material right.
15896         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
15897         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
15898         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
15899
15900 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15901
15902         stdlib: don't depend on stdint
15903         * lib/stdlib.in.h: Don't include <stdint.h> merely because
15904         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
15905         be independent of whether stdint.h is needed.
15906         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
15907         here, instead of ...
15908         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
15909         struct random_data should be using the random_r module, not just
15910         the stdlib module (which wouldn't make sense: what package needs
15911         just struct random_data without also needing random_r?).
15912         * modules/stdlib (Depends-on): Remove stdint.
15913
15914         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
15915         See the thread rooted at
15916         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
15917         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
15918         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
15919         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
15920         __VMS)); previously it was always included (via fcntl--.h).
15921         (getloadavg): Do not use c_strtod.  Instead, approximate it by
15922         hand; this is good enough for load averages.  Also, do not use
15923         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
15924         flags directly if available and don't bother otherwise.  (Packages
15925         that need the extra reliability should use the modules that define
15926         these flags on older platforms that lack them.)
15927         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
15928         fcntl-safer.
15929
15930 2011-02-08  Jim Meyering  <meyering@redhat.com>
15931
15932         di-set.h, ino-map.h: add multiple-inclusion guard
15933         Technically, the guard is required only for ino-map.h, due to its
15934         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
15935         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
15936         * lib/ino-map.h: Likewise.
15937
15938 2011-02-06  Bruno Haible  <bruno@clisp.org>
15939
15940         iswblank: Ensure declaration on glibc systems.
15941         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
15942         * modules/iswblank (Dependencies): Add 'extensions'.
15943         * doc/posix-functions/iswblank.texi: Document the glibc problem.
15944
15945 2011-02-06  Bruno Haible  <bruno@clisp.org>
15946
15947         New module 'iswblank'.
15948         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
15949         * modules/iswblank: New file.
15950         * modules/wctype-h (Files): Remove lib/iswblank.c.
15951         (Makefile.am): Substitute GNULIB_ISWBLANK.
15952         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
15953         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
15954         (gl_WCTYPE_H_DEFAULTS): New macro.
15955         (gl_WCTYPE_H): Require it. Remove iswblank related code.
15956         * modules/iswblank-tests: New file.
15957         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
15958         * tests/test-wctype-h.c (main): Remove iswblank tests.
15959         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
15960         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
15961         of 'wctype-h'.
15962         * NEWS: Mention the change.
15963         * modules/mbchar (Depends-on): Add iswblank.
15964
15965 2011-02-08  Bruno Haible  <bruno@clisp.org>
15966
15967         di-set tests: Refactor.
15968         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
15969         unnecessary includes.
15970         (ASSERT): Remove macro.
15971         (main): Make C90 compliant by avoiding variable declaration after
15972         statement.
15973         * modules/di-set-tests (Files): Add tests/macros.h.
15974
15975 2011-02-08  Bruno Haible  <bruno@clisp.org>
15976
15977         ino-map tests: Refactor.
15978         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
15979         unnecessary includes.
15980         (ASSERT): Remove macro.
15981         (main): Make C90 compliant by avoiding variable declaration after
15982         statement.
15983         * modules/ino-map-tests (Files): Add tests/macros.h.
15984
15985 2011-02-08  Jim Meyering  <meyering@redhat.com>
15986
15987         di-set: add "const" to a cast
15988         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
15989         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
15990
15991 2011-02-06  Bruno Haible  <bruno@clisp.org>
15992
15993         Rename module 'wctype' to 'wctype-h'.
15994         * modules/wctype-h: Renamed from modules/wctype.
15995         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
15996         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
15997         (Files, Depends-on, Makefile.am): Update.
15998         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
15999         (Files, Makefile.am): Update.
16000         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
16001         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
16002         * doc/posix-headers/wctype.texi: Update.
16003         * doc/posix-functions/iswalnum.texi: Update.
16004         * doc/posix-functions/iswalpha.texi: Update.
16005         * doc/posix-functions/iswblank.texi: Update.
16006         * doc/posix-functions/iswcntrl.texi: Update.
16007         * doc/posix-functions/iswdigit.texi: Update.
16008         * doc/posix-functions/iswgraph.texi: Update.
16009         * doc/posix-functions/iswlower.texi: Update.
16010         * doc/posix-functions/iswprint.texi: Update.
16011         * doc/posix-functions/iswpunct.texi: Update.
16012         * doc/posix-functions/iswspace.texi: Update.
16013         * doc/posix-functions/iswupper.texi: Update.
16014         * doc/posix-functions/iswxdigit.texi: Update.
16015         * doc/posix-functions/towlower.texi: Update.
16016         * doc/posix-functions/towupper.texi: Update.
16017         * NEWS: Mention the change.
16018         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
16019         * modules/mbchar (Dependencies): Likewise.
16020         * modules/mbswidth (Dependencies): Likewise.
16021         * modules/quotearg (Dependencies): Likewise.
16022         * modules/regex (Dependencies): Likewise.
16023         * modules/wcscasecmp (Dependencies): Likewise.
16024         * modules/wcsncasecmp (Dependencies): Likewise.
16025         * modules/wcwidth (Dependencies): Likewise.
16026
16027 2011-02-06  Bruno Haible  <bruno@clisp.org>
16028
16029         New module 'wcswidth'.
16030         * modules/wcswidth: New file.
16031         * lib/wchar.in.h (wcswidth): New declaration.
16032         * lib/wcswidth.c: New file.
16033         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
16034         * m4/wcswidth.m4: New file.
16035         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
16036         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
16037         REPLACE_WCSWIDTH.
16038         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
16039         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
16040         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
16041         * doc/posix-functions/wcswidth.texi: Mention the new module.
16042
16043 2011-02-06  Bruno Haible  <bruno@clisp.org>
16044
16045         New module 'wcstok'.
16046         * modules/wcstok: New file.
16047         * lib/wchar.in.h (wcstok): New declaration.
16048         * lib/wcstok.c: New file.
16049         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
16050         * m4/wcstok.m4: New file.
16051         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
16052         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
16053         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
16054         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
16055         * doc/posix-functions/wcstok.texi: Mention the new module.
16056
16057 2011-02-06  Bruno Haible  <bruno@clisp.org>
16058
16059         New module 'wcsstr'.
16060         * modules/wcsstr: New file.
16061         * lib/wchar.in.h (wcsstr): New declaration.
16062         * lib/wcsstr.c: New file.
16063         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
16064         * m4/wcsstr.m4: New file.
16065         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
16066         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
16067         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
16068         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
16069         * doc/posix-functions/wcsstr.texi: Mention the new module.
16070
16071 2011-02-06  Bruno Haible  <bruno@clisp.org>
16072
16073         New module 'wcspbrk'.
16074         * modules/wcspbrk: New file.
16075         * lib/wchar.in.h (wcspbrk): New declaration.
16076         * lib/wcspbrk.c: New file.
16077         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
16078         * m4/wcspbrk.m4: New file.
16079         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
16080         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
16081         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
16082         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
16083         * doc/posix-functions/wcspbrk.texi: Mention the new module.
16084
16085 2011-02-06  Bruno Haible  <bruno@clisp.org>
16086
16087         New module 'wcsspn'.
16088         * modules/wcsspn: New file.
16089         * lib/wchar.in.h (wcsspn): New declaration.
16090         * lib/wcsspn.c: New file.
16091         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
16092         * m4/wcsspn.m4: New file.
16093         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
16094         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
16095         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
16096         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
16097         * doc/posix-functions/wcsspn.texi: Mention the new module.
16098
16099 2011-02-06  Bruno Haible  <bruno@clisp.org>
16100
16101         New module 'wcscspn'.
16102         * modules/wcscspn: New file.
16103         * lib/wchar.in.h (wcscspn): New declaration.
16104         * lib/wcscspn.c: New file.
16105         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
16106         * m4/wcscspn.m4: New file.
16107         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
16108         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
16109         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
16110         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
16111         * doc/posix-functions/wcscspn.texi: Mention the new module.
16112
16113 2011-02-06  Bruno Haible  <bruno@clisp.org>
16114
16115         New module 'wcsrchr'.
16116         * modules/wcsrchr: New file.
16117         * lib/wchar.in.h (wcsrchr): New declaration.
16118         * lib/wcsrchr.c: New file.
16119         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
16120         * m4/wcsrchr.m4: New file.
16121         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
16122         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
16123         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
16124         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
16125         * doc/posix-functions/wcsrchr.texi: Mention the new module.
16126
16127 2011-02-06  Bruno Haible  <bruno@clisp.org>
16128
16129         New module 'wcschr'.
16130         * modules/wcschr: New file.
16131         * lib/wchar.in.h (wcschr): New declaration.
16132         * lib/wcschr.c: New file.
16133         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
16134         * m4/wcschr.m4: New file.
16135         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
16136         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
16137         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
16138         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
16139         * doc/posix-functions/wcschr.texi: Mention the new module.
16140
16141 2011-02-06  Bruno Haible  <bruno@clisp.org>
16142
16143         New module 'wcsdup'.
16144         * modules/wcsdup: New file.
16145         * lib/wchar.in.h (wcsdup): New declaration.
16146         * lib/wcsdup.c: New file.
16147         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
16148         * m4/wcsdup.m4: New file.
16149         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
16150         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
16151         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
16152         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
16153         * doc/posix-functions/wcsdup.texi: Mention the new module.
16154
16155 2011-02-06  Bruno Haible  <bruno@clisp.org>
16156
16157         New module 'wcsxfrm'.
16158         * modules/wcsxfrm: New file.
16159         * lib/wchar.in.h (wcsxfrm): New declaration.
16160         * lib/wcsxfrm.c: New file.
16161         * lib/wcsxfrm-impl.h: New file.
16162         * m4/wcsxfrm.m4: New file.
16163         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
16164         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
16165         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
16166         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
16167         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
16168
16169 2011-02-06  Bruno Haible  <bruno@clisp.org>
16170
16171         New module 'wcscoll'.
16172         * modules/wcscoll: New file.
16173         * lib/wchar.in.h (wcscoll): New declaration.
16174         * lib/wcscoll.c: New file.
16175         * lib/wcscoll-impl.h: New file.
16176         * m4/wcscoll.m4: New file.
16177         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
16178         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
16179         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
16180         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
16181         * doc/posix-functions/wcscoll.texi: Mention the new module.
16182
16183 2011-02-06  Bruno Haible  <bruno@clisp.org>
16184
16185         New module 'wcsncasecmp'.
16186         * modules/wcsncasecmp: New file.
16187         * lib/wchar.in.h (wcsncasecmp): New declaration.
16188         * lib/wcsncasecmp.c: New file.
16189         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
16190         * m4/wcsncasecmp.m4: New file.
16191         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
16192         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
16193         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
16194         HAVE_WCSNCASECMP.
16195         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
16196         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
16197
16198 2011-02-06  Bruno Haible  <bruno@clisp.org>
16199
16200         New module 'wcscasecmp'.
16201         * modules/wcscasecmp: New file.
16202         * lib/wchar.in.h (wcscasecmp): New declaration.
16203         * lib/wcscasecmp.c: New file.
16204         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
16205         * m4/wcscasecmp.m4: New file.
16206         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
16207         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
16208         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
16209         HAVE_WCSCASECMP.
16210         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
16211         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
16212
16213 2011-02-05  Bruno Haible  <bruno@clisp.org>
16214
16215         New module 'wcsncmp'.
16216         * modules/wcsncmp: New file.
16217         * lib/wchar.in.h (wcsncmp): New declaration.
16218         * lib/wcsncmp.c: New file.
16219         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
16220         * m4/wcsncmp.m4: New file.
16221         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
16222         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
16223         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
16224         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
16225         * doc/posix-functions/wcsncmp.texi: Mention the new module.
16226
16227 2011-02-05  Bruno Haible  <bruno@clisp.org>
16228
16229         New module 'wcscmp'.
16230         * modules/wcscmp: New file.
16231         * lib/wchar.in.h (wcscmp): New declaration.
16232         * lib/wcscmp.c: New file.
16233         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
16234         * m4/wcscmp.m4: New file.
16235         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
16236         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
16237         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
16238         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
16239         * doc/posix-functions/wcscmp.texi: Mention the new module.
16240
16241 2011-02-05  Bruno Haible  <bruno@clisp.org>
16242
16243         New module 'wcsncat'.
16244         * modules/wcsncat: New file.
16245         * lib/wchar.in.h (wcsncat): New declaration.
16246         * lib/wcsncat.c: New file.
16247         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
16248         * m4/wcsncat.m4: New file.
16249         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
16250         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
16251         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
16252         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
16253         * doc/posix-functions/wcsncat.texi: Mention the new module.
16254
16255 2011-02-05  Bruno Haible  <bruno@clisp.org>
16256
16257         New module 'wcscat'.
16258         * modules/wcscat: New file.
16259         * lib/wchar.in.h (wcscat): New declaration.
16260         * lib/wcscat.c: New file.
16261         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
16262         * m4/wcscat.m4: New file.
16263         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
16264         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
16265         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
16266         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
16267         * doc/posix-functions/wcscat.texi: Mention the new module.
16268
16269 2011-02-05  Bruno Haible  <bruno@clisp.org>
16270
16271         New module 'wcpncpy'.
16272         * modules/wcpncpy: New file.
16273         * lib/wchar.in.h (wcpncpy): New declaration.
16274         * lib/wcpncpy.c: New file.
16275         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
16276         * m4/wcpncpy.m4: New file.
16277         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
16278         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
16279         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
16280         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
16281         * doc/posix-functions/wcpncpy.texi: Mention the new module.
16282
16283 2011-02-05  Bruno Haible  <bruno@clisp.org>
16284
16285         New module 'wcsncpy'.
16286         * modules/wcsncpy: New file.
16287         * lib/wchar.in.h (wcsncpy): New declaration.
16288         * lib/wcsncpy.c: New file.
16289         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
16290         * m4/wcsncpy.m4: New file.
16291         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
16292         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
16293         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
16294         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
16295         * doc/posix-functions/wcsncpy.texi: Mention the new module.
16296
16297 2011-02-05  Bruno Haible  <bruno@clisp.org>
16298
16299         New module 'wcpcpy'.
16300         * modules/wcpcpy: New file.
16301         * lib/wchar.in.h (wcpcpy): New declaration.
16302         * lib/wcpcpy.c: New file.
16303         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
16304         * m4/wcpcpy.m4: New file.
16305         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
16306         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
16307         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
16308         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
16309         * doc/posix-functions/wcpcpy.texi: Mention the new module.
16310
16311 2011-02-05  Bruno Haible  <bruno@clisp.org>
16312
16313         New module 'wcscpy'.
16314         * modules/wcscpy: New file.
16315         * lib/wchar.in.h (wcscpy): New declaration.
16316         * lib/wcscpy.c: New file.
16317         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
16318         * m4/wcscpy.m4: New file.
16319         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
16320         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
16321         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
16322         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
16323         * doc/posix-functions/wcscpy.texi: Mention the new module.
16324
16325 2011-02-05  Bruno Haible  <bruno@clisp.org>
16326
16327         New module 'wcsnlen'.
16328         * modules/wcsnlen: New file.
16329         * lib/wchar.in.h (wcsnlen): New declaration.
16330         * lib/wcsnlen.c: New file.
16331         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
16332         * m4/wcsnlen.m4: New file.
16333         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
16334         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
16335         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
16336         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
16337         * doc/posix-functions/wcsnlen.texi: Mention the new module.
16338
16339 2011-02-05  Bruno Haible  <bruno@clisp.org>
16340
16341         New module 'wcslen'.
16342         * modules/wcslen: New file.
16343         * lib/wchar.in.h (wcslen): New declaration.
16344         * lib/wcslen.c: New file.
16345         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
16346         * m4/wcslen.m4: New file.
16347         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
16348         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
16349         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
16350         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
16351         * doc/posix-functions/wcslen.texi: Mention the new module.
16352
16353 2011-02-05  Bruno Haible  <bruno@clisp.org>
16354
16355         New module 'wmemset'.
16356         * modules/wmemset: New file.
16357         * lib/wchar.in.h (wmemset): New declaration.
16358         * lib/wmemset.c: New file.
16359         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
16360         * m4/wmemset.m4: New file.
16361         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
16362         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
16363         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
16364         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
16365         * doc/posix-functions/wmemset.texi: Mention the new module.
16366
16367 2011-02-05  Bruno Haible  <bruno@clisp.org>
16368
16369         New module 'wmemmove'.
16370         * modules/wmemmove: New file.
16371         * lib/wchar.in.h (wmemmove): New declaration.
16372         * lib/wmemmove.c: New file.
16373         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
16374         * m4/wmemmove.m4: New file.
16375         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
16376         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
16377         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
16378         HAVE_WMEMMOVE.
16379         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
16380         * doc/posix-functions/wmemmove.texi: Mention the new module.
16381
16382 2011-02-05  Bruno Haible  <bruno@clisp.org>
16383
16384         New module 'wmemcpy'.
16385         * modules/wmemcpy: New file.
16386         * lib/wchar.in.h (wmemcpy): New declaration.
16387         * lib/wmemcpy.c: New file.
16388         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
16389         * m4/wmemcpy.m4: New file.
16390         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
16391         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
16392         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
16393         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
16394         * doc/posix-functions/wmemcpy.texi: Mention the new module.
16395
16396 2011-02-05  Bruno Haible  <bruno@clisp.org>
16397
16398         New module 'wmemcmp'.
16399         * modules/wmemcmp: New file.
16400         * lib/wchar.in.h (wmemcmp): New declaration.
16401         * lib/wmemcmp.c: New file.
16402         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
16403         * m4/wmemcmp.m4: New file.
16404         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
16405         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
16406         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
16407         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
16408         * doc/posix-functions/wmemcmp.texi: Mention the new module.
16409
16410 2011-02-07  Jim Meyering  <meyering@redhat.com>
16411
16412         di-set, ino-map: new modules, from coreutils
16413         * lib/di-set.c: New file.
16414         * lib/di-set.h: Likewise.
16415         * lib/ino-map.c: Likewise.
16416         * lib/ino-map.h: Likewise.
16417         * modules/di-set: Likewise.
16418         * modules/di-set-tests: Likewise.
16419         * modules/ino-map: Likewise.
16420         * modules/ino-map-tests: Likewise.
16421         * tests/test-di-set.c: Likewise.
16422         * tests/test-ino-map.c: Likewise.
16423
16424 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
16425
16426         getloadavg: merge minor changes from Emacs
16427
16428         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
16429         (getloadavg): Use memset, not bzero.
16430
16431         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
16432         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16433         clash (bug#86).
16434
16435 2010-11-14  Bruno Haible  <bruno@clisp.org>
16436
16437         Allow multiple gnulib generated replacements to coexist.
16438         * lib/getopt.in.h (struct option): Avoid identical redefinition.
16439         * lib/inttypes.in.h (imaxdiv_t): Likewise.
16440         * lib/langinfo.in.h (nl_item): Likewise.
16441         * lib/math.in.h (_NaN, NAN): Likewise.
16442         * lib/netdb.in.h (struct addrinfo): Likewise.
16443         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
16444         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
16445         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
16446         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
16447         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
16448         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
16449         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
16450         pthread_mutexattr_init, pthread_mutexattr_settype,
16451         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
16452         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
16453         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
16454         pthread_spin_trylock, pthread_spin_unlock): Likewise.
16455         * lib/sched.in.h (struct sched_param): Likewise.
16456         * lib/se-selinux.in.h (security_class_t, security_context_t,
16457         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
16458         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
16459         lsetfilecon, fsetfilecon, security_check_context,
16460         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
16461         Likewise.
16462         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
16463         Likewise.
16464         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
16465         _gl_function_taking_int_returning_void_t, union sigval,
16466         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
16467         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
16468         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16469         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
16470         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
16471         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
16472         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
16473         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
16474         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
16475         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
16476         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
16477         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
16478         socklen_t, rpl_fd_isset): Likewise.
16479         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
16480         * lib/sys_time.in.h (struct timeval): Likewise.
16481         * lib/sys_times.in.h (struct tms): Likewise.
16482         * lib/sys_utsname.in.h (struct utsname):
16483         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
16484         * lib/unistd.in.h (getpagesize): Likewise.
16485         * lib/wchar.in.h (mbstate_t): Likewise.
16486         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
16487         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
16488         towlower, towupper): Likewise.
16489         Reported by Sam Steingold <sds@gnu.org>.
16490
16491 2011-02-05  Eric Blake  <eblake@redhat.com>
16492
16493         unsetenv: work around Haiku issues
16494         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
16495         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
16496
16497 2010-12-30  Bruce Korb  <bkorb@gnu.org>
16498
16499         libposix: avoid calling error() within libposix
16500         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
16501         is defined.
16502
16503 2011-02-05  Eric Blake  <eblake@redhat.com>
16504
16505         strerror_r-posix: port to cygwin
16506         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
16507         implementation.
16508         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
16509         * tests/test-strerror_r.c (main): Fix test.
16510         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16511         issue.
16512
16513 2011-02-05  Bruno Haible  <bruno@clisp.org>
16514
16515         New module 'wmemchr'.
16516         * modules/wmemchr: New file.
16517         * lib/wchar.in.h (wmemchr): New declaration.
16518         * lib/wmemchr.c: New file.
16519         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
16520         * m4/wmemchr.m4: New file.
16521         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
16522         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
16523         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
16524         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
16525         * doc/posix-functions/wmemchr.texi: Mention the new module.
16526
16527 2011-02-04  Eric Blake  <eblake@redhat.com>
16528
16529         fdopendir: detect FreeBSD bug
16530         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
16531         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
16532
16533 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16534
16535         stdbool: do not define HAVE_STDBOOL_H
16536         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
16537         AC_HEADER_STDBOOL.  All uses changed.  Do not define
16538         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
16539         imported from the latest Autoconf git.  It was motivated by Emacs,
16540         which uses gnulib but does not need HAVE_STDBOOL_H.
16541
16542 2011-02-04  Bruno Haible  <bruno@clisp.org>
16543
16544         wcsnrtombs: Prepare for new module wwcsnrtombs.
16545         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
16546         * lib/wcsnrtombs.c: Include it.
16547         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
16548
16549         wcsrtombs: Prepare for new module wwcsrtombs.
16550         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
16551         * lib/wcsrtombs.c: Include it.
16552         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
16553
16554         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
16555         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
16556         * lib/mbsnrtowcs.c: Include it.
16557         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
16558
16559         mbsrtowcs: Prepare for new module mbsrtowwcs.
16560         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
16561         * lib/mbsrtowcs.c: Include it.
16562         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
16563
16564 2011-02-04  Bruno Haible  <bruno@clisp.org>
16565
16566         vasnprintf: Reduce use of malloc for small format strings.
16567         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
16568         (arguments): Add room for the first 7 arguments.
16569         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
16570         (char_directives, u8_directives, u16_directives, u32_directives): Add
16571         room for the first 7 directives.
16572         * lib/printf-parse.c: Include <string.h>.
16573         (PRINTF_PARSE): Change memory handling code so that it uses the first
16574         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
16575         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
16576         Reported by Pádraig Brady <P@draigbrady.com>.
16577
16578 2011-01-31  Eric Blake  <eblake@redhat.com>
16579
16580         dup2: work around Haiku bug
16581         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
16582         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
16583         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16584         * tests/test-dup2.c (main): Enhance test.
16585
16586 2011-01-31  Simon Josefsson  <simon@josefsson.org>
16587
16588         doc: off_t is not available in eglibc 2.11.2 stdio.h.
16589         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
16590         declared by eglibc 2.11.2.
16591         * lib/stdio.in.h: Likewise.
16592
16593 2011-01-31  Eric Blake  <eblake@redhat.com>
16594
16595         ignore-value: add missing test dependency
16596         * tests/test-ignore-value.c: Revert previous change; stdio.h
16597         provides off_t.
16598         * modules/ignore-value-tests (Depends-on): Add missing dependency.
16599
16600 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16601
16602         mktime: clarify long_int width checking
16603         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
16604         the top level, to make it clearer that the assumption about
16605         long_int width is being checked.  See
16606         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
16607
16608 2011-01-30  Simon Josefsson  <simon@josefsson.org>
16609
16610         ignore-value: Fix self-test.
16611         * tests/test-ignore-value.c: Include sys/types.h for off_t.
16612
16613 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16614
16615         TYPE_MAXIMUM: avoid theoretically undefined behavior
16616         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
16617         negative number, which the C Standard says has undefined behavior.
16618         In practice this is not a problem, but might as well do it by the book.
16619         Reported by Rich Felker and Eric Blake; see
16620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
16621         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
16622         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16623         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16624         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
16625         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16626         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
16627
16628         mktime: #undef mktime before #defining it
16629         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
16630
16631         mktime: systematically normalize tm_isdst comparisons
16632         * lib/mktime.c (isdst_differ): New function.
16633         (__mktime_internal): Use it systematically for all isdst comparisons.
16634         This completes the fix for libc BZ #6723, and removes the need for
16635         normalizing tm_isdst.  See
16636         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
16637         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
16638
16639         mktime: fix some integer overflow issues and sidestep the rest
16640
16641         This was prompted by a bug report by Benjamin Lindner for MinGW
16642         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
16643         His bug is due to signed integer overflow (0 - INT_MIN), and I
16644         I scanned through mktime.c looking for other integer overflow
16645         problems, fixing all the bugs I found.
16646
16647         Although the C Standard says the resulting code is still not safe
16648         in the presence of integer overflow, in practice it should be good
16649         enough for all real-world two's-complement implementations, except
16650         for debugging environments that deliberately trap on integer
16651         overflow (e.g., gcc -ftrapv).
16652
16653         * lib/mktime.c (WRAPV): New macro.
16654         (SHR): Also check that long_int and time_t shift right in the
16655         usual way, before using the fast-but-unportable method.
16656         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
16657         used.  The code already assumed two's complement, so there's
16658         no need to test for alternatives.  All uses removed.
16659         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
16660         the C standard.  Problem reported by Rich Felker in
16661         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
16662         (twos_complement_arithmetic): Also check long_int and time_t.
16663         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
16664         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
16665         (__mktime_internal): Avoid integer overflow with unary subtraction
16666         in two instances where -1 - X is an adequate replacement for -X,
16667         since the calculations are approximate.
16668
16669 2011-01-29  Eric Blake  <eblake@redhat.com>
16670
16671         mktime: avoid infinite loop
16672         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
16673         type; behavior is still undefined but portable to all known targets.
16674         Reported by Rich Felker.
16675
16676 2011-01-29  Simon Josefsson  <simon@josefsson.org>
16677
16678         rename, unlink, same-inode: Relicense.
16679         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
16680         * modules/unlink (License): Likewise.
16681         * modules/same-inode (License): Likewise.
16682
16683 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16684
16685         mktime: avoid problems on NetBSD 5 / i386
16686         * lib/mktime.c (long_int): New type.  This works around a problem
16687         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
16688         but time_t is 64 bits, and where I expect the existing code is
16689         wrong in some cases.
16690         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
16691         (ydhms_diff): Bring back the compile-time check for wide-enough
16692         year and yday.
16693
16694         mktime: fix misspelling in comment
16695         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
16696         This merges all recent glibc changes of importance.
16697
16698 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16699
16700         move-if-change: cope with concurrent mv of identical file.
16701         * build-aux/move-if-change (CMPPROG): Accept environment
16702         variable as an override for `cmp'.
16703         (usage): Document CMPPROG.
16704         Adjust comparison to drop stdout.  Cope with failure of mv if
16705         the target file exists and is identical to the source, for
16706         parallel builds.
16707         Report from H.J. Lu against binutils in PR binutils/12283.
16708
16709 2011-01-28  Bruce Korb  <bkorb@gnu.org>
16710
16711         * users.txt: Mention sharutils.
16712
16713 2011-01-28  Simon Josefsson  <simon@josefsson.org>
16714
16715         * users.txt: Mention OATH Toolkit.
16716
16717 2011-01-27  Bruno Haible  <bruno@clisp.org>
16718
16719         Prepare for supporting FreeBSD 10.
16720         * build-aux/config.libpath: Remove handling of freebsd1*.
16721
16722 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
16723
16724         Prepare for supporting FreeBSD 10.
16725         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
16726         match FreeBSD 10.0.
16727
16728 2011-01-27  Bruno Haible  <bruno@clisp.org>
16729
16730         vma-iter, get-rusage-as: Add OpenBSD support.
16731         * modules/vma-iter (configure.ac): Test for mquery.
16732         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
16733         * lib/vma-iter.c: Include <sys/mman.h>.
16734         (vma_iterate): Add an implementation based on mquery().
16735         * lib/resource-ext.h (get_rusage_as): Update comments.
16736         * lib/get-rusage-as.c: Likewise.
16737         * lib/get-rusage-data.c: Likewise.
16738
16739 2011-01-26  Karl Berry  <karl@gnu.org>
16740
16741         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
16742         variables to make it easier to override the makeinfo program used.
16743
16744 2011-01-26  Eric Blake  <eblake@redhat.com>
16745
16746         fcntl: work around Haiku F_DUPFD bugs
16747         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
16748         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
16749         cloexec bit on duplication.
16750         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
16751
16752 2011-01-26  Bruno Haible  <bruno@clisp.org>
16753
16754         Enable memory leak tests on AIX.
16755         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
16756         * tests/test-fprintf-posix3.c (main): Likewise.
16757
16758 2011-01-26  Bruno Haible  <bruno@clisp.org>
16759
16760         Tests for module 'get-rusage-data'.
16761         * modules/get-rusage-data-tests: New file.
16762         * tests/test-get-rusage-data.c: New file.
16763
16764         New module 'get-rusage-data'.
16765         * lib/resource-ext.h (get_rusage_data): New declaration.
16766         * lib/get-rusage-data.c: New file.
16767         * modules/get-rusage-data: New file.
16768
16769 2011-01-25  Bruno Haible  <bruno@clisp.org>
16770
16771         get-rusage-as: Allow for easier testing.
16772         * lib/resource-ext.h (get_rusage_as): Add comment.
16773         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
16774         (main): New function for interactive testing.
16775
16776 2011-01-25  Bruno Haible  <bruno@clisp.org>
16777
16778         vma-iter: Treat Haiku like BeOS.
16779         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
16780         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
16781
16782 2011-01-25  Eric Blake  <eblake@redhat.com>
16783
16784         c-stack: fix regression on cygwin when libsigsegv is present
16785         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
16786
16787 2011-01-24  Bruno Haible  <bruno@clisp.org>
16788
16789         vma-iter: Avoid empty intervals.
16790         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
16791         on an empty interval.
16792
16793 2011-01-24  Jim Meyering  <meyering@redhat.com>
16794
16795         u64: remove unnecessary #include
16796         * lib/u64.h: Don't include <stddef.h>.  It was not used.
16797
16798 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16799
16800         Allow the user to avoid the HAVE_RAW_DECL_* macros.
16801         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16802
16803 2011-01-23  Bruno Haible  <bruno@clisp.org>
16804
16805         New module 'vma-iter'.
16806         * lib/vma-iter.h: New file.
16807         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
16808         * modules/vma-iter: New file.
16809         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
16810         for get_rusage_as_via_iterator.
16811         (vma_iterate_callback): New function.
16812         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
16813         * modules/get-rusage-as (Depends-on): Add vma-iter.
16814
16815 2011-01-23  Bruno Haible  <bruno@clisp.org>
16816
16817         uninorm: Tweak includes.
16818         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
16819         Reported by Jim Meyering.
16820
16821 2011-01-23  Bruno Haible  <bruno@clisp.org>
16822
16823         get-rusage-as: Improve on NetBSD.
16824         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
16825         /proc, like on FreeBSD.
16826
16827 2011-01-23  Jim Meyering  <meyering@redhat.com>
16828
16829         xreadlink.h: remove unnecessary #include
16830         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
16831
16832         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
16833         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
16834
16835 2011-01-23  Bruno Haible  <bruno@clisp.org>
16836
16837         get-rusage-as: Fix bug.
16838         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
16839         original limit when aborting the first loop.
16840
16841 2011-01-23  Bruno Haible  <bruno@clisp.org>
16842
16843         wctype: Ensure valid C syntax.
16844         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
16845         unconditionally, instead of gl_NEXT_HEADERS conditionally.
16846
16847 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16848
16849         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
16850         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
16851         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
16852         as they are needed only for configure's test case.
16853         This removes two unnecessary symbols from config.h.
16854
16855         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
16856         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
16857         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
16858         AC_CHECK_HEADERS_ONCE on a header that we also invoke
16859         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
16860         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
16861         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
16862         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
16863         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16864         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16865         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16866         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16867         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16868         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16869         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
16870         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16871         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16872         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16873
16874 2011-01-21  Eric Blake  <eblake@redhat.com>
16875
16876         maintainer-makefile: work with older git for submodule check
16877         * top/maint.mk (public-submodule-commit): Rewrite to avoid
16878         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
16879         Reported by Matthias Bolte.
16880
16881         bootstrap: minor portability fixes
16882         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
16883         (usage): Omit leading capital and trailing . on help phrases, per
16884         GNU Coding Standards.
16885         (check_versions, top level): Prefix messages with script name.
16886
16887 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
16888
16889         bootstrap: support --no-git option
16890         * build-aux/bootstrap: Add --no-git option, to be used when
16891         --gnulib-srcdir points to the exact desired checkout.
16892
16893 2011-01-21  Eric Blake  <eblake@redhat.com>
16894
16895         strerror_r-posix: work with glibc 2.13
16896         * lib/strerror_r.c (strerror_r): Fix return type.
16897
16898 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16899             Bruno Haible  <bruno@clisp.org>
16900
16901         uN_strstr: New unit tests.
16902         * modules/unistr/u8-strstr-tests: New file.
16903         * modules/unistr/u16-strstr-tests: New file.
16904         * modules/unistr/u32-strstr-tests: New file.
16905         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
16906         * tests/unistr/test-u8-strstr.c: New file.
16907         * tests/unistr/test-u16-strstr.c: New file.
16908         * tests/unistr/test-u32-strstr.c: New file.
16909
16910 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16911             Bruno Haible  <bruno@clisp.org>
16912
16913         Make uN_strstr functions O(n) worst-case.
16914         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
16915         16-bit and 32-bit unit cases, use the unibyte algorithm from
16916         lib/mbsstr.c.
16917         * lib/unistr/u8-strstr.c: Include <string.h>.
16918         (UNIT_IS_UINT8_T): New macro.
16919         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
16920         (U_STRLEN, U_STRNLEN): New macros.
16921         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
16922         (U_STRLEN, U_STRNLEN): New macros.
16923         * modules/unistr/u8-strstr (Depends-on): Add strstr.
16924         (configure.ac): Update required libunistring version.
16925         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
16926         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
16927         malloca.
16928         (configure.ac): Update required libunistring version.
16929         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
16930         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
16931         malloca.
16932         (configure.ac): Update required libunistring version.
16933
16934 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16935             Bruno Haible  <bruno@clisp.org>
16936
16937         Prepare for faster uN_strstr functions.
16938         * lib/str-kmp.h: Support definable UNITs.
16939         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
16940         needle_len argument.
16941         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
16942         * lib/mbscasestr.c (mbscasestr): Likewise.
16943
16944 2011-01-21  Pádraig Brady <P@draigBrady.com>
16945
16946         malloca-tests: make faster by unsetting MALLOC_PERTURB_
16947         * tests/test-malloca.c (main): Unset the environment variable
16948         to greatly speed up the test.
16949         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
16950         * modules/malloca-tests: Depend on unsetenv.
16951
16952 2011-01-21  Pádraig Brady <P@draigBrady.com>
16953
16954         ignore-value: remove stdint dependency
16955         * lib/ignore-value.h: Remove <stdint.h>
16956         * modules/ignore-value: Remove stdint dependency.
16957
16958 2011-01-21  Jim Meyering  <meyering@redhat.com>
16959
16960         maint.mk: adjust variable name to be consistent with other gl_ vars
16961         * top/maint.mk (gl_public_submodule_commit): Rename the variable
16962         to be lower case.
16963
16964 2011-01-20  Jim Meyering  <meyering@redhat.com>
16965
16966         maint.mk: make "check" depend on public-submodule-commit by default
16967         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
16968
16969 2011-01-20  Bruno Haible  <bruno@clisp.org>
16970
16971         mbfile, mbiter: Complete change from 2008-12-21.
16972         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
16973         * m4/mbiter.m4 (gl_MBITER): Likewise.
16974
16975 2011-01-20  Jim Meyering  <meyering@redhat.com>
16976
16977         init.sh: insert space between each function name and "()"
16978         * tests/init.sh: Make it a little easier to see that a function's
16979         name is "warn_", and not "warn" when looking at the first part of
16980         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
16981
16982 2011-01-20  Jim Meyering  <meyering@redhat.com>
16983
16984         mountlist: clean up code formatting
16985         * lib/mountlist.c (read_file_system_list): Split a long line,
16986         correct bracing style, use NULL in place of "(struct statfs *)0",
16987         don't parenthesize return value, add spaces around "=" and after
16988         ";-in-for-stmt".
16989
16990 2011-01-14  Markus Duft <mduft@gentoo.org>
16991
16992         mountlist: add support for Interix
16993         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
16994         Apply statvfs to all entries of /dev/fs.
16995         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
16996         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
16997
16998 2011-01-20  Jim Meyering  <meyering@redhat.com>
16999
17000         maint.mk: improve the public-submodule-commit rule
17001         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
17002         to suppress printing of its commands... unless V=1.
17003         Add git submodule's --quiet option to suppress printing of e.g.,
17004         "Entering gnulib" output.
17005         "cd" into $(srcdir) before running git submodule.
17006
17007 2011-01-20  Bruno Haible  <bruno@clisp.org>
17008
17009         include_next: Fix bug introduced on 2011-01-18.
17010         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
17011         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
17012         ac_cv_header_... variable if the second argument is not 'check'.
17013         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
17014         gl_NEXT_HEADERS_INTERNAL.
17015
17016 2011-01-20  Bruno Haible  <bruno@clisp.org>
17017
17018         Allow the user to avoid the GNULIB_TEST_* macros.
17019         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
17020         Suggested by Paul Eggert.
17021
17022 2011-01-14  Jim Meyering  <meyering@redhat.com>
17023
17024         bootstrap: avoid failure when there is no .gitmodules file
17025         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
17026         has been assigned to, even when its value is the empty string.
17027         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
17028         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
17029         Reported by John W. Eaton <jwe@gnu.org>.
17030
17031 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17032
17033         assume <ctype.h>, ..., <time.h> exist
17034         For years gnulib has been assuming the existence of the headers
17035         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
17036         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
17037         them, since they don't appear to be needed.
17038         * README (Portability guidelines): Document this.
17039         * lib/flock.c: Assume <fcntl.h> exists.
17040         * lib/regex_internal.h: Assume <locale.h> exists.
17041         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
17042         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
17043         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
17044         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
17045         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
17046         * m4/regex.m4 (gl_REGEX): Likewise.
17047         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
17048         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
17049         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
17050         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
17051         * tests/test-argp.c: Likewise.
17052         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
17053
17054         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
17055         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
17056         AA_APPLE_UNIVERSAL_BUILD.  See
17057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
17058         * NEWS: Document this.
17059
17060 2011-01-19  Eric Blake  <eblake@redhat.com>
17061
17062         c-stack: assume stack overflow if SA_SIGINFO unsupported
17063         * lib/c-stack.c (SIGACTION_WORKS): Rename...
17064         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
17065         sigaction will work.
17066         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
17067         behavior match Linux.
17068         * tests/test-c-stack.c (main): Prefer NULL for pointers.
17069
17070         stdbool-tests: accomodate Haiku
17071         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
17072
17073         binary-io: fix O_TEXT on Haiku
17074         * modules/binary-io (Depends-on): Add fcntl-h.
17075         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
17076         than blindly undefining O_TEXT.
17077         Reported by Scott McCreary.
17078
17079 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17080
17081         include_next: do not check for standard headers like stddef.h
17082
17083         I found this problem when modifying Emacs to use gnulib.
17084         I noticed that it added HAVE_STDDEF_H to config.h, even though
17085         gnulib always assumes <stddef.h> exists as per README and this
17086         symbol is unnecessary.
17087         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
17088         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
17089         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
17090         faster for headers like stddef.h that are known to exist.
17091         (gl_CHECK_NEXT_HEADERS): Use it.
17092         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
17093         rather than gl_CHECK_NEXT_HEADERS.
17094         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
17095         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
17096
17097 2011-01-18  Eric Blake  <eblake@redhat.com>
17098
17099         ansi-c++-opt: skip C++ dependency style if C++ is unused
17100         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
17101         tests when we know C++ compilation is not desired.
17102         Reported by Scott McCreary.
17103
17104 2011-01-18  Bruno Haible  <bruno@clisp.org>
17105
17106         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
17107         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
17108         (main): Perform test also when getrlimit and setrlimit don't exist or
17109         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
17110         limiting the address space size using setrlimit, compare the address
17111         space size before and after the the test.
17112         * tests/test-dprintf-posix2.c: Likewise.
17113         * tests/test-fprintf-posix3.sh: Update skip messages.
17114         * tests/test-dprintf-posix2.sh: Likewise.
17115         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
17116         * modules/dprintf-posix-tests (Depends-on): Likewise.
17117         Reported by Bruce Korb <bkorb@gnu.org> and
17118         Gary V. Vaughan <gary@gnu.org>.
17119
17120 2011-01-18  Bruno Haible  <bruno@clisp.org>
17121
17122         get-rusage-as: Improvement for Cygwin.
17123         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
17124         areas that are merely reserved.
17125
17126 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17127
17128         strftime: remove dependencies on multibyte modules
17129
17130         strftime depended on mbrlen, mbsinit, and wchar, but these modules
17131         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
17132         only if __osf__ is defined, and I suspect OSF doesn't need these
17133         other modules.  If my guess is wrong, we'll need to come up with a
17134         variant of strftime that doesn't need the multibyte modules.
17135
17136         I discovered this problem when attempting modify Emacs to use the
17137         strftime module.  With the previous gnulib, this caused Emacs to
17138         need 31 new files, ranging from lib/config.charset to
17139         m4/wint_t.m4.  This was overkill and I expect would be offputting
17140         to the Emacs maintainers.  After this change, only 6 new files are
17141         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
17142         stdbool.m4, and tm_gmtoff.m4.
17143
17144         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
17145         Suggested by Bruno Haible in
17146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
17147         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
17148         and do not check for wchar.h.
17149         * modules/strftime (Files): Remove m4/mbstate_t.m4.
17150         (Depends-on): Remove mbrlen, mbsinit, wchar.
17151
17152 2011-01-18  Bruno Haible  <bruno@clisp.org>
17153
17154         Tests for module 'get-rusage-as'.
17155         * modules/get-rusage-as-tests: New file.
17156         * tests/test-get-rusage-as.c: New file.
17157
17158         New module 'get-rusage-as'.
17159         * modules/get-rusage-as: New file.
17160         * lib/resource-ext.h: New file.
17161         * lib/get-rusage-as.c: New file.
17162
17163 2011-01-17  Eric Blake  <eblake@redhat.com>
17164
17165         sigaction: relax license from LGPLv3+ to LGPLv2+
17166         * modules/sigaction (License): Relax to LGPLv2+.
17167
17168 2011-01-14  Bruno Haible  <bruno@clisp.org>
17169
17170         filemode: Make function declarations usable in C++ mode.
17171         * lib/filemode.h: Enclose function declarations in extern "C" block.
17172         Reported by John W. Eaton <jwe@gnu.org>.
17173
17174 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
17175
17176         save-cwd: no longer include "xgetcwd.h"
17177         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
17178         This avoids a compilation failure in projects that use save-cwd
17179         without also using the xgetcwd module.
17180
17181 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17182
17183         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
17184         This is so that a program like Emacs, which needs only dtoastr,
17185         does not have to bother with distributing and compiling ftoastr
17186         and ldtoastr.
17187         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
17188         * modules/dtoastr, modules/ldtoastr: New files.
17189         * modules/ftoastr: Now works just for 'float'.
17190         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
17191         (Makefile.am): Remove ftoastr.h (not needed and no effect),
17192         dtoastr.c, ldtoastr.c.
17193
17194 2011-01-11  Jim Meyering  <meyering@redhat.com>
17195
17196         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
17197         There is no need to work around the lack of the fchdir function,
17198         since gnulib can now provide a replacement when required.
17199         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
17200         * modules/save-cwd (Depends-on): Add fchdir.
17201
17202 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17203
17204         openat, save-cwd: avoid xmalloc
17205
17206         This removes a direct (but undocumented) dependency of openat on
17207         xalloc, along with an indirect dependency via save-cwd.  It also
17208         removes a dependency of save-cwd on xgetcwd, and thereby
17209         indirectly on xalloc.  This change causes the openat substitute
17210         to fall back on save_cwd when memory is tight, and for save_cwd to
17211         fail instead of dying when memory is tight, but that's good enough.
17212         Problem and initial idea for fix reported by Bastien Roucaries in
17213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
17214
17215         * lib/openat-proc.c: Include stdlib.h (for malloc), not
17216         xalloc.h (for xmalloc).
17217         (openat_proc_name): Use malloc, not xmalloc.
17218         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
17219         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
17220
17221         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
17222         This avoids heap allocation for file names whose lengths are in
17223         the range 512..1023, with the upper bound increasing to at most
17224         4031 depending on the platform's PATH_MAX.  (We do not want
17225         pathmax.h here as it might supply a non-constant PATH_MAX.)
17226         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
17227         Perhaps they should be moved to malloca.h?
17228         (OPENAT_BUFFER_SIZE): Use them.
17229
17230 2011-01-10  Bruno Haible  <bruno@clisp.org>
17231
17232         doc: Update users.txt.
17233         * users.txt: Add recutils.
17234
17235 2011-01-09  Karl Berry  <karl@gnu.org>
17236
17237         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
17238
17239         * doc/configmake.texi: New file.
17240         * doc/gnulib.texi: Include it.
17241         * modules/configmake: Move documentation from here.
17242
17243 2011-01-09  Bruno Haible  <bruno@clisp.org>
17244
17245         Update to Unicode 6.0.0.
17246         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
17247         (get_lbp): Update for Unicode 6.0.0.
17248         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
17249         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
17250         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
17251         U+11001, U+11038..U+11046. Remove U+06DE.
17252         (uc_width): Fix bounds of planes.
17253         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17254         lib/uniwidth/width.c.
17255         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
17256         trailing whitespace removed.
17257         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
17258         without comments, but with the original copyright notice.
17259         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
17260         * lib/unicase/ignorable.h: Likewise.
17261         * lib/unicase/tocasefold.h: Likewise.
17262         * lib/unicase/tolower.h: Likewise.
17263         * lib/unicase/totitle.h: Likewise.
17264         * lib/unicase/toupper.h: Likewise.
17265         * lib/unictype/bidi_of.h: Likewise.
17266         * lib/unictype/blocks.h: Likewise.
17267         * lib/unictype/categ_C.h: Likewise.
17268         * lib/unictype/categ_Cn.h: Likewise.
17269         * lib/unictype/categ_L.h: Likewise.
17270         * lib/unictype/categ_Ll.h: Likewise.
17271         * lib/unictype/categ_Lm.h: Likewise.
17272         * lib/unictype/categ_Lo.h: Likewise.
17273         * lib/unictype/categ_Lu.h: Likewise.
17274         * lib/unictype/categ_M.h: Likewise.
17275         * lib/unictype/categ_Mc.h: Likewise.
17276         * lib/unictype/categ_Me.h: Likewise.
17277         * lib/unictype/categ_Mn.h: Likewise.
17278         * lib/unictype/categ_N.h: Likewise.
17279         * lib/unictype/categ_Nd.h: Likewise.
17280         * lib/unictype/categ_No.h: Likewise.
17281         * lib/unictype/categ_P.h: Likewise.
17282         * lib/unictype/categ_Po.h: Likewise.
17283         * lib/unictype/categ_S.h: Likewise.
17284         * lib/unictype/categ_Sc.h: Likewise.
17285         * lib/unictype/categ_Sk.h: Likewise.
17286         * lib/unictype/categ_Sm.h: Likewise.
17287         * lib/unictype/categ_So.h: Likewise.
17288         * lib/unictype/categ_of.h: Likewise.
17289         * lib/unictype/combining.h: Likewise.
17290         * lib/unictype/ctype_alnum.h: Likewise.
17291         * lib/unictype/ctype_alpha.h: Likewise.
17292         * lib/unictype/ctype_graph.h: Likewise.
17293         * lib/unictype/ctype_lower.h: Likewise.
17294         * lib/unictype/ctype_print.h: Likewise.
17295         * lib/unictype/ctype_punct.h: Likewise.
17296         * lib/unictype/ctype_upper.h: Likewise.
17297         * lib/unictype/decdigit.h: Likewise.
17298         * lib/unictype/digit.h: Likewise.
17299         * lib/unictype/numeric.h: Likewise.
17300         * lib/unictype/pr_alphabetic.h: Likewise.
17301         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17302         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17303         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17304         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17305         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17306         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17307         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17308         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17309         * lib/unictype/pr_case_ignorable.h: Likewise.
17310         * lib/unictype/pr_cased.h: Likewise.
17311         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
17312         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
17313         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
17314         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
17315         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
17316         * lib/unictype/pr_combining.h: Likewise.
17317         * lib/unictype/pr_composite.h: Likewise.
17318         * lib/unictype/pr_currency_symbol.h: Likewise.
17319         * lib/unictype/pr_decimal_digit.h: Likewise.
17320         * lib/unictype/pr_deprecated.h: Likewise.
17321         * lib/unictype/pr_format_control.h: Likewise.
17322         * lib/unictype/pr_grapheme_base.h: Likewise.
17323         * lib/unictype/pr_grapheme_extend.h: Likewise.
17324         * lib/unictype/pr_grapheme_link.h: Likewise.
17325         * lib/unictype/pr_id_continue.h: Likewise.
17326         * lib/unictype/pr_id_start.h: Likewise.
17327         * lib/unictype/pr_ideographic.h: Likewise.
17328         * lib/unictype/pr_lowercase.h: Likewise.
17329         * lib/unictype/pr_math.h: Likewise.
17330         * lib/unictype/pr_numeric.h: Likewise.
17331         * lib/unictype/pr_other_alphabetic.h: Likewise.
17332         * lib/unictype/pr_other_id_continue.h: Likewise.
17333         * lib/unictype/pr_other_math.h: Likewise.
17334         * lib/unictype/pr_punctuation.h: Likewise.
17335         * lib/unictype/pr_sentence_terminal.h: Likewise.
17336         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17337         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17338         * lib/unictype/pr_unified_ideograph.h: Likewise.
17339         * lib/unictype/pr_uppercase.h: Likewise.
17340         * lib/unictype/pr_xid_continue.h: Likewise.
17341         * lib/unictype/pr_xid_start.h: Likewise.
17342         * lib/unictype/scripts.h: Likewise.
17343         * lib/unictype/scripts_byname.gperf: Likewise.
17344         * lib/unictype/sy_java_ident.h: Likewise.
17345         * lib/unigbrk/gbrkprop.h: Likewise.
17346         * lib/unilbrk/lbrkprop1.h: Likewise.
17347         * lib/unilbrk/lbrkprop2.h: Likewise.
17348         * lib/uninorm/decomposition-table2.h: Likewise.
17349         * lib/uniwbrk/wbrkprop.h: Likewise.
17350         * tests/unicase/test-cased.c: Likewise.
17351         * tests/unicase/test-ignorable.c: Likewise.
17352         * tests/unicase/test-uc_tolower.c: Likewise.
17353         * tests/unicase/test-uc_totitle.c: Likewise.
17354         * tests/unicase/test-uc_toupper.c: Likewise.
17355         * tests/unictype/test-categ_C.c: Likewise.
17356         * tests/unictype/test-categ_Cn.c: Likewise.
17357         * tests/unictype/test-categ_L.c: Likewise.
17358         * tests/unictype/test-categ_Ll.c: Likewise.
17359         * tests/unictype/test-categ_Lm.c: Likewise.
17360         * tests/unictype/test-categ_Lo.c: Likewise.
17361         * tests/unictype/test-categ_Lu.c: Likewise.
17362         * tests/unictype/test-categ_M.c: Likewise.
17363         * tests/unictype/test-categ_Mc.c: Likewise.
17364         * tests/unictype/test-categ_Me.c: Likewise.
17365         * tests/unictype/test-categ_Mn.c: Likewise.
17366         * tests/unictype/test-categ_N.c: Likewise.
17367         * tests/unictype/test-categ_Nd.c: Likewise.
17368         * tests/unictype/test-categ_No.c: Likewise.
17369         * tests/unictype/test-categ_P.c: Likewise.
17370         * tests/unictype/test-categ_Po.c: Likewise.
17371         * tests/unictype/test-categ_S.c: Likewise.
17372         * tests/unictype/test-categ_Sc.c: Likewise.
17373         * tests/unictype/test-categ_Sk.c: Likewise.
17374         * tests/unictype/test-categ_Sm.c: Likewise.
17375         * tests/unictype/test-categ_So.c: Likewise.
17376         * tests/unictype/test-ctype_alnum.c: Likewise.
17377         * tests/unictype/test-ctype_alpha.c: Likewise.
17378         * tests/unictype/test-ctype_graph.c: Likewise.
17379         * tests/unictype/test-ctype_lower.c: Likewise.
17380         * tests/unictype/test-ctype_print.c: Likewise.
17381         * tests/unictype/test-ctype_punct.c: Likewise.
17382         * tests/unictype/test-ctype_upper.c: Likewise.
17383         * tests/unictype/test-decdigit.h: Likewise.
17384         * tests/unictype/test-digit.h: Likewise.
17385         * tests/unictype/test-numeric.h: Likewise.
17386         * tests/unictype/test-pr_alphabetic.c: Likewise.
17387         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17388         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
17389         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
17390         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17391         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17392         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17393         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17394         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17395         * tests/unictype/test-pr_case_ignorable.c: Likewise.
17396         * tests/unictype/test-pr_cased.c: Likewise.
17397         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
17398         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
17399         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
17400         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
17401         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
17402         * tests/unictype/test-pr_combining.c: Likewise.
17403         * tests/unictype/test-pr_composite.c: Likewise.
17404         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17405         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17406         * tests/unictype/test-pr_deprecated.c: Likewise.
17407         * tests/unictype/test-pr_format_control.c: Likewise.
17408         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17409         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17410         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17411         * tests/unictype/test-pr_id_continue.c: Likewise.
17412         * tests/unictype/test-pr_id_start.c: Likewise.
17413         * tests/unictype/test-pr_ideographic.c: Likewise.
17414         * tests/unictype/test-pr_lowercase.c: Likewise.
17415         * tests/unictype/test-pr_math.c: Likewise.
17416         * tests/unictype/test-pr_numeric.c: Likewise.
17417         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17418         * tests/unictype/test-pr_other_id_continue.c: Likewise.
17419         * tests/unictype/test-pr_other_math.c: Likewise.
17420         * tests/unictype/test-pr_punctuation.c: Likewise.
17421         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17422         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17423         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17424         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17425         * tests/unictype/test-pr_uppercase.c: Likewise.
17426         * tests/unictype/test-pr_xid_continue.c: Likewise.
17427         * tests/unictype/test-pr_xid_start.c: Likewise.
17428         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17429         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17430         changes.
17431         * lib/unictype/categ_Cc.h: Likewise.
17432         * lib/unictype/categ_Cf.h: Likewise.
17433         * lib/unictype/categ_Co.h: Likewise.
17434         * lib/unictype/categ_Cs.h: Likewise.
17435         * lib/unictype/categ_Lt.h: Likewise.
17436         * lib/unictype/categ_Nl.h: Likewise.
17437         * lib/unictype/categ_Pc.h: Likewise.
17438         * lib/unictype/categ_Pd.h: Likewise.
17439         * lib/unictype/categ_Pe.h: Likewise.
17440         * lib/unictype/categ_Pf.h: Likewise.
17441         * lib/unictype/categ_Pi.h: Likewise.
17442         * lib/unictype/categ_Ps.h: Likewise.
17443         * lib/unictype/categ_Z.h: Likewise.
17444         * lib/unictype/categ_Zl.h: Likewise.
17445         * lib/unictype/categ_Zp.h: Likewise.
17446         * lib/unictype/categ_Zs.h: Likewise.
17447         * lib/unictype/ctype_blank.h: Likewise.
17448         * lib/unictype/ctype_cntrl.h: Likewise.
17449         * lib/unictype/ctype_digit.h: Likewise.
17450         * lib/unictype/ctype_space.h: Likewise.
17451         * lib/unictype/ctype_xdigit.h: Likewise.
17452         * lib/unictype/mirror.h: Likewise.
17453         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17454         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17455         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17456         * lib/unictype/pr_bidi_control.h: Likewise.
17457         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17458         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17459         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17460         * lib/unictype/pr_bidi_pdf.h: Likewise.
17461         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17462         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17463         * lib/unictype/pr_dash.h: Likewise.
17464         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17465         * lib/unictype/pr_diacritic.h: Likewise.
17466         * lib/unictype/pr_extender.h: Likewise.
17467         * lib/unictype/pr_hex_digit.h: Likewise.
17468         * lib/unictype/pr_hyphen.h: Likewise.
17469         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17470         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17471         * lib/unictype/pr_ignorable_control.h: Likewise.
17472         * lib/unictype/pr_iso_control.h: Likewise.
17473         * lib/unictype/pr_join_control.h: Likewise.
17474         * lib/unictype/pr_left_of_pair.h: Likewise.
17475         * lib/unictype/pr_line_separator.h: Likewise.
17476         * lib/unictype/pr_logical_order_exception.h: Likewise.
17477         * lib/unictype/pr_non_break.h: Likewise.
17478         * lib/unictype/pr_not_a_character.h: Likewise.
17479         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17480         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17481         * lib/unictype/pr_other_id_start.h: Likewise.
17482         * lib/unictype/pr_other_lowercase.h: Likewise.
17483         * lib/unictype/pr_other_uppercase.h: Likewise.
17484         * lib/unictype/pr_paired_punctuation.h: Likewise.
17485         * lib/unictype/pr_paragraph_separator.h: Likewise.
17486         * lib/unictype/pr_pattern_syntax.h: Likewise.
17487         * lib/unictype/pr_pattern_white_space.h: Likewise.
17488         * lib/unictype/pr_private_use.h: Likewise.
17489         * lib/unictype/pr_quotation_mark.h: Likewise.
17490         * lib/unictype/pr_radical.h: Likewise.
17491         * lib/unictype/pr_soft_dotted.h: Likewise.
17492         * lib/unictype/pr_space.h: Likewise.
17493         * lib/unictype/pr_titlecase.h: Likewise.
17494         * lib/unictype/pr_variation_selector.h: Likewise.
17495         * lib/unictype/pr_white_space.h: Likewise.
17496         * lib/unictype/pr_zero_width.h: Likewise.
17497         * lib/unictype/sy_c_ident.h: Likewise.
17498         * lib/unictype/sy_c_whitespace.h: Likewise.
17499         * lib/unictype/sy_java_whitespace.h: Likewise.
17500         * lib/uninorm/composition-table.gperf: Likewise.
17501         * lib/uninorm/decomposition-table1.h: Likewise.
17502         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
17503         LB8.
17504         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17505         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17506         * modules/unictype/*: Bump version number of expected libunistring
17507         version.
17508
17509 2011-01-09  Bruno Haible  <bruno@clisp.org>
17510
17511         Update to Unicode 5.2.0.
17512         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
17513         trailing whitespace removed.
17514
17515 2011-01-09  Bruno Haible  <bruno@clisp.org>
17516
17517         New Unicode character properties, from Unicode 5.2.0.
17518         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
17519         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
17520         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
17521         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
17522         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
17523         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
17524         uc_is_property_cased, uc_is_property_case_ignorable,
17525         uc_is_property_changes_when_lowercased,
17526         uc_is_property_changes_when_uppercased,
17527         uc_is_property_changes_when_titlecased,
17528         uc_is_property_changes_when_casefolded,
17529         uc_is_property_changes_when_casemapped): New declarations.
17530         * lib/unictype/pr_byname.gperf: Add the new properties.
17531         * modules/unictype/property-byname (Depends-on): Depend on the new
17532         properties modules.
17533         * modules/unictype/property-all (Depends-on): Likewise.
17534         * MODULES.html.sh (Unicode string functions): Add
17535         unictype/property-case-ignorable, unictype/property-cased,
17536         unictype/property-changes-when-casefolded,
17537         unictype/property-changes-when-casemapped,
17538         unictype/property-changes-when-lowercased,
17539         unictype/property-changes-when-titlecased,
17540         unictype/property-changes-when-uppercased.
17541
17542         New module 'unictype/property-changes-when-casemapped'.
17543         * modules/unictype/property-changes-when-casemapped: New file.
17544         * lib/unictype/pr_changes_when_casemapped.c: New file.
17545         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
17546         generated by gen-uni-tables.
17547         * modules/unictype/property-changes-when-casemapped-tests: New file.
17548         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
17549         automatically generated by gen-uni-tables.
17550
17551         New module 'unictype/property-changes-when-casefolded'.
17552         * modules/unictype/property-changes-when-casefolded: New file.
17553         * lib/unictype/pr_changes_when_casefolded.c: New file.
17554         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
17555         generated by gen-uni-tables.
17556         * modules/unictype/property-changes-when-casefolded-tests: New file.
17557         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
17558         automatically generated by gen-uni-tables.
17559
17560         New module 'unictype/property-changes-when-titlecased'.
17561         * modules/unictype/property-changes-when-titlecased: New file.
17562         * lib/unictype/pr_changes_when_titlecased.c: New file.
17563         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
17564         generated by gen-uni-tables.
17565         * modules/unictype/property-changes-when-titlecased-tests: New file.
17566         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
17567         automatically generated by gen-uni-tables.
17568
17569         New module 'unictype/property-changes-when-uppercased'.
17570         * modules/unictype/property-changes-when-uppercased: New file.
17571         * lib/unictype/pr_changes_when_uppercased.c: New file.
17572         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
17573         generated by gen-uni-tables.
17574         * modules/unictype/property-changes-when-uppercased-tests: New file.
17575         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
17576         automatically generated by gen-uni-tables.
17577
17578         New module 'unictype/property-changes-when-lowercased'.
17579         * modules/unictype/property-changes-when-lowercased: New file.
17580         * lib/unictype/pr_changes_when_lowercased.c: New file.
17581         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
17582         generated by gen-uni-tables.
17583         * modules/unictype/property-changes-when-lowercased-tests: New file.
17584         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
17585         automatically generated by gen-uni-tables.
17586
17587         New module 'unictype/property-case-ignorable'.
17588         * modules/unictype/property-case-ignorable: New file.
17589         * lib/unictype/pr_case_ignorable.c: New file.
17590         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
17591         by gen-uni-tables.
17592         * modules/unictype/property-case-ignorable-tests: New file.
17593         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
17594         generated by gen-uni-tables.
17595
17596         New module 'unictype/property-cased'.
17597         * modules/unictype/property-cased: New file.
17598         * lib/unictype/pr_cased.c: New file.
17599         * lib/unictype/pr_cased.h: New file, automatically generated by
17600         gen-uni-tables.
17601         * modules/unictype/property-cased-tests: New file.
17602         * tests/unictype/test-pr_cased.c: New file, automatically generated by
17603         gen-uni-tables.
17604
17605 2011-01-09  Bruno Haible  <bruno@clisp.org>
17606
17607         Update to Unicode 5.2.0.
17608         * lib/gen-uni-tables.c (output_predicate, output_category,
17609         output_combclass, output_bidi_category, output_decimal_digit_test,
17610         output_decimal_digit, output_digit_test, output_digit,
17611         output_numeric_test, output_numeric, output_mirror, output_scripts,
17612         output_scripts_byname, output_blocks, output_ident_category): Fix
17613         comment header.
17614         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
17615         get_wbp.
17616         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
17617         items.
17618         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
17619         Changes_When_Lowercased, Changes_When_Uppercased,
17620         Changes_When_Titlecased, Changes_When_Casefolded,
17621         Changes_When_Casemapped.
17622         (is_property_alphabetic, is_property_default_ignorable_code_point):
17623         Update for Unicode 5.2.0.
17624         (is_property_cased, is_property_case_ignorable,
17625         is_property_changes_when_lowercased,
17626         is_property_changes_when_uppercased,
17627         is_property_changes_when_titlecased,
17628         is_property_changes_when_casefolded,
17629         is_property_changes_when_casemapped): New functions.
17630         (output_properties): Output also the properties cased, case_ignorable,
17631         changes_when_lowercased, changes_when_uppercased,
17632         changes_when_titlecased, changes_when_casefolded,
17633         changes_when_casemapped.
17634         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
17635         Unicode TR#11 revision 17 -> 19.
17636         (LBP_CP): New enumeration value.
17637         (LBP_*): Adjust values accordingly.
17638         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17639         TR#14 revision 22 -> 24.
17640         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
17641         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
17642         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17643         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
17644         is_WBP_MIDLETTER.
17645         (output_composition_tables): Allow for 24 bits instead of 16 bits in
17646         the code1 and code2 of each composition rule.
17647         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
17648         * lib/unicase/ignorable.h: Likewise.
17649         * lib/unicase/tocasefold.h: Likewise.
17650         * lib/unicase/tolower.h: Likewise.
17651         * lib/unicase/totitle.h: Likewise.
17652         * lib/unicase/toupper.h: Likewise.
17653         * lib/unictype/bidi_of.h: Likewise.
17654         * lib/unictype/blocks.h: Likewise.
17655         * lib/unictype/categ_C.h: Likewise.
17656         * lib/unictype/categ_Cf.h: Likewise.
17657         * lib/unictype/categ_Cn.h: Likewise.
17658         * lib/unictype/categ_L.h: Likewise.
17659         * lib/unictype/categ_Ll.h: Likewise.
17660         * lib/unictype/categ_Lm.h: Likewise.
17661         * lib/unictype/categ_Lo.h: Likewise.
17662         * lib/unictype/categ_Lu.h: Likewise.
17663         * lib/unictype/categ_M.h: Likewise.
17664         * lib/unictype/categ_Mc.h: Likewise.
17665         * lib/unictype/categ_Mn.h: Likewise.
17666         * lib/unictype/categ_N.h: Likewise.
17667         * lib/unictype/categ_Nd.h: Likewise.
17668         * lib/unictype/categ_Nl.h: Likewise.
17669         * lib/unictype/categ_No.h: Likewise.
17670         * lib/unictype/categ_P.h: Likewise.
17671         * lib/unictype/categ_Pd.h: Likewise.
17672         * lib/unictype/categ_Po.h: Likewise.
17673         * lib/unictype/categ_S.h: Likewise.
17674         * lib/unictype/categ_Sc.h: Likewise.
17675         * lib/unictype/categ_So.h: Likewise.
17676         * lib/unictype/categ_of.h: Likewise.
17677         * lib/unictype/combining.h: Likewise.
17678         * lib/unictype/ctype_alnum.h: Likewise.
17679         * lib/unictype/ctype_alpha.h: Likewise.
17680         * lib/unictype/ctype_graph.h: Likewise.
17681         * lib/unictype/ctype_lower.h: Likewise.
17682         * lib/unictype/ctype_print.h: Likewise.
17683         * lib/unictype/ctype_punct.h: Likewise.
17684         * lib/unictype/ctype_upper.h: Likewise.
17685         * lib/unictype/decdigit.h: Likewise.
17686         * lib/unictype/digit.h: Likewise.
17687         * lib/unictype/numeric.h: Likewise.
17688         * lib/unictype/pr_alphabetic.h: Likewise.
17689         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17690         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17691         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17692         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17693         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17694         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17695         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17696         * lib/unictype/pr_combining.h: Likewise.
17697         * lib/unictype/pr_composite.h: Likewise.
17698         * lib/unictype/pr_currency_symbol.h: Likewise.
17699         * lib/unictype/pr_dash.h: Likewise.
17700         * lib/unictype/pr_decimal_digit.h: Likewise.
17701         * lib/unictype/pr_deprecated.h: Likewise.
17702         * lib/unictype/pr_diacritic.h: Likewise.
17703         * lib/unictype/pr_extender.h: Likewise.
17704         * lib/unictype/pr_grapheme_base.h: Likewise.
17705         * lib/unictype/pr_grapheme_extend.h: Likewise.
17706         * lib/unictype/pr_grapheme_link.h: Likewise.
17707         * lib/unictype/pr_id_continue.h: Likewise.
17708         * lib/unictype/pr_id_start.h: Likewise.
17709         * lib/unictype/pr_ideographic.h: Likewise.
17710         * lib/unictype/pr_ignorable_control.h: Likewise.
17711         * lib/unictype/pr_logical_order_exception.h: Likewise.
17712         * lib/unictype/pr_lowercase.h: Likewise.
17713         * lib/unictype/pr_numeric.h: Likewise.
17714         * lib/unictype/pr_other_alphabetic.h: Likewise.
17715         * lib/unictype/pr_punctuation.h: Likewise.
17716         * lib/unictype/pr_sentence_terminal.h: Likewise.
17717         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17718         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17719         * lib/unictype/pr_unified_ideograph.h: Likewise.
17720         * lib/unictype/pr_uppercase.h: Likewise.
17721         * lib/unictype/pr_xid_continue.h: Likewise.
17722         * lib/unictype/pr_xid_start.h: Likewise.
17723         * lib/unictype/pr_zero_width.h: Likewise.
17724         * lib/unictype/scripts.h: Likewise.
17725         * lib/unictype/scripts_byname.gperf: Likewise.
17726         * lib/unictype/sy_java_ident.h: Likewise.
17727         * lib/unigbrk/gbrkprop.h: Likewise.
17728         * lib/unilbrk/lbrkprop1.h: Likewise.
17729         * lib/unilbrk/lbrkprop2.h: Likewise.
17730         * lib/unilbrk/lbrktables.h: Likewise.
17731         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
17732         LBP_CP. Implement rule LB30.
17733         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
17734         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
17735         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
17736         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
17737         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
17738         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
17739         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
17740         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
17741         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
17742         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
17743         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
17744         bits instead of 16 bits in the code1 and code2 of each composition
17745         rule.
17746         (uc_composition): Update for Unicode 5.2.0.
17747         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
17748         * lib/uninorm/decomposition-table2.h: Likewise.
17749         * lib/uniwbrk/wbrkprop.h: Likewise.
17750         * tests/unicase/test-cased.c: Likewise.
17751         * tests/unicase/test-ignorable.c: Likewise.
17752         * tests/unicase/test-uc_tolower.c: Likewise.
17753         * tests/unicase/test-uc_totitle.c: Likewise.
17754         * tests/unicase/test-uc_toupper.c: Likewise.
17755         * tests/unictype/test-categ_C.c: Likewise.
17756         * tests/unictype/test-categ_Cf.c: Likewise.
17757         * tests/unictype/test-categ_Cn.c: Likewise.
17758         * tests/unictype/test-categ_L.c: Likewise.
17759         * tests/unictype/test-categ_Ll.c: Likewise.
17760         * tests/unictype/test-categ_Lm.c: Likewise.
17761         * tests/unictype/test-categ_Lo.c: Likewise.
17762         * tests/unictype/test-categ_Lu.c: Likewise.
17763         * tests/unictype/test-categ_M.c: Likewise.
17764         * tests/unictype/test-categ_Mc.c: Likewise.
17765         * tests/unictype/test-categ_Mn.c: Likewise.
17766         * tests/unictype/test-categ_N.c: Likewise.
17767         * tests/unictype/test-categ_Nd.c: Likewise.
17768         * tests/unictype/test-categ_Nl.c: Likewise.
17769         * tests/unictype/test-categ_No.c: Likewise.
17770         * tests/unictype/test-categ_P.c: Likewise.
17771         * tests/unictype/test-categ_Pd.c: Likewise.
17772         * tests/unictype/test-categ_Po.c: Likewise.
17773         * tests/unictype/test-categ_S.c: Likewise.
17774         * tests/unictype/test-categ_Sc.c: Likewise.
17775         * tests/unictype/test-categ_So.c: Likewise.
17776         * tests/unictype/test-ctype_alnum.c: Likewise.
17777         * tests/unictype/test-ctype_alpha.c: Likewise.
17778         * tests/unictype/test-ctype_graph.c: Likewise.
17779         * tests/unictype/test-ctype_lower.c: Likewise.
17780         * tests/unictype/test-ctype_print.c: Likewise.
17781         * tests/unictype/test-ctype_punct.c: Likewise.
17782         * tests/unictype/test-ctype_upper.c: Likewise.
17783         * tests/unictype/test-decdigit.h: Likewise.
17784         * tests/unictype/test-digit.h: Likewise.
17785         * tests/unictype/test-numeric.h: Likewise.
17786         * tests/unictype/test-pr_alphabetic.c: Likewise.
17787         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17788         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17789         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17790         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17791         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17792         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17793         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17794         * tests/unictype/test-pr_combining.c: Likewise.
17795         * tests/unictype/test-pr_composite.c: Likewise.
17796         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17797         * tests/unictype/test-pr_dash.c: Likewise.
17798         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17799         * tests/unictype/test-pr_deprecated.c: Likewise.
17800         * tests/unictype/test-pr_diacritic.c: Likewise.
17801         * tests/unictype/test-pr_extender.c: Likewise.
17802         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17803         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17804         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17805         * tests/unictype/test-pr_id_continue.c: Likewise.
17806         * tests/unictype/test-pr_id_start.c: Likewise.
17807         * tests/unictype/test-pr_ideographic.c: Likewise.
17808         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17809         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17810         * tests/unictype/test-pr_lowercase.c: Likewise.
17811         * tests/unictype/test-pr_numeric.c: Likewise.
17812         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17813         * tests/unictype/test-pr_punctuation.c: Likewise.
17814         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17815         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17816         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17817         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17818         * tests/unictype/test-pr_uppercase.c: Likewise.
17819         * tests/unictype/test-pr_xid_continue.c: Likewise.
17820         * tests/unictype/test-pr_xid_start.c: Likewise.
17821         * tests/unictype/test-pr_zero_width.c: Likewise.
17822         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17823         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
17824         changed behaviour: line breaking is now disallowed between a letter
17825         or '=' and '('.
17826         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17827         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17828         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
17829         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
17830         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17831         lib/uniwidth/width.c.
17832         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
17833         without comments, but with the original copyright notice.
17834         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17835         changes.
17836         * lib/unictype/categ_Cc.h: Likewise.
17837         * lib/unictype/categ_Co.h: Likewise.
17838         * lib/unictype/categ_Cs.h: Likewise.
17839         * lib/unictype/categ_Lt.h: Likewise.
17840         * lib/unictype/categ_Me.h: Likewise.
17841         * lib/unictype/categ_Pc.h: Likewise.
17842         * lib/unictype/categ_Pe.h: Likewise.
17843         * lib/unictype/categ_Pf.h: Likewise.
17844         * lib/unictype/categ_Pi.h: Likewise.
17845         * lib/unictype/categ_Ps.h: Likewise.
17846         * lib/unictype/categ_Sk.h: Likewise.
17847         * lib/unictype/categ_Sm.h: Likewise.
17848         * lib/unictype/categ_Z.h: Likewise.
17849         * lib/unictype/categ_Zl.h: Likewise.
17850         * lib/unictype/categ_Zp.h: Likewise.
17851         * lib/unictype/categ_Zs.h: Likewise.
17852         * lib/unictype/ctype_blank.h: Likewise.
17853         * lib/unictype/ctype_cntrl.h: Likewise.
17854         * lib/unictype/ctype_digit.h: Likewise.
17855         * lib/unictype/ctype_space.h: Likewise.
17856         * lib/unictype/ctype_xdigit.h: Likewise.
17857         * lib/unictype/mirror.h: Likewise.
17858         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17859         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17860         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17861         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17862         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17863         * lib/unictype/pr_bidi_control.h: Likewise.
17864         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17865         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17866         * lib/unictype/pr_bidi_pdf.h: Likewise.
17867         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17868         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17869         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17870         * lib/unictype/pr_format_control.h: Likewise.
17871         * lib/unictype/pr_hex_digit.h: Likewise.
17872         * lib/unictype/pr_hyphen.h: Likewise.
17873         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17874         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17875         * lib/unictype/pr_iso_control.h: Likewise.
17876         * lib/unictype/pr_join_control.h: Likewise.
17877         * lib/unictype/pr_left_of_pair.h: Likewise.
17878         * lib/unictype/pr_line_separator.h: Likewise.
17879         * lib/unictype/pr_math.h: Likewise.
17880         * lib/unictype/pr_non_break.h: Likewise.
17881         * lib/unictype/pr_not_a_character.h: Likewise.
17882         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17883         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17884         * lib/unictype/pr_other_id_continue.h: Likewise.
17885         * lib/unictype/pr_other_id_start.h: Likewise.
17886         * lib/unictype/pr_other_lowercase.h: Likewise.
17887         * lib/unictype/pr_other_math.h: Likewise.
17888         * lib/unictype/pr_other_uppercase.h: Likewise.
17889         * lib/unictype/pr_paired_punctuation.h: Likewise.
17890         * lib/unictype/pr_paragraph_separator.h: Likewise.
17891         * lib/unictype/pr_pattern_syntax.h: Likewise.
17892         * lib/unictype/pr_pattern_white_space.h: Likewise.
17893         * lib/unictype/pr_private_use.h: Likewise.
17894         * lib/unictype/pr_quotation_mark.h: Likewise.
17895         * lib/unictype/pr_radical.h: Likewise.
17896         * lib/unictype/pr_soft_dotted.h: Likewise.
17897         * lib/unictype/pr_space.h: Likewise.
17898         * lib/unictype/pr_titlecase.h: Likewise.
17899         * lib/unictype/pr_variation_selector.h: Likewise.
17900         * lib/unictype/pr_white_space.h: Likewise.
17901         * lib/unictype/sy_c_ident.h: Likewise.
17902         * lib/unictype/sy_c_whitespace.h: Likewise.
17903         * lib/unictype/sy_java_whitespace.h: Likewise.
17904         * modules/uni*/*: Bump version number of expected libunistring version.
17905         Reported by Simon Josefsson.
17906
17907 2011-01-09  Karl Heuer  <kwzh@gnu.org>
17908
17909         useless-if-before-free: fix typo in --help and make the internal,
17910         automatic version date update process work once again.
17911         --help output contained a NUL character instead of the
17912         backslash-zero that was intended.  Also, the "must lie within
17913         the first 8 lines" line is on line 9, and hence not getting
17914         automatically updated.
17915         * build-aux/useless-if-before-free: Fix the former by adding a
17916         backslash, and the latter by condensing the three lines of what-it-does
17917         to a single line, leaving one line of slack for the future.
17918
17919 2011-01-09  Bruno Haible  <bruno@clisp.org>
17920
17921         uniwidth/width: Fix width of U+1D173..U+1D17A.
17922         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
17923         symbolic_width, output_width_property_test): New functions.
17924         (main): Invoke output_nonspacing_property, output_width_property_test.
17925         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
17926         U+1D173..U+1D17A.
17927         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
17928         1.
17929         * modules/uniwidth/*: Bump version number of expected libunistring
17930         version.
17931         * modules/unilbrk/*: Likewise.
17932
17933 2011-01-08  Bruno Haible  <bruno@clisp.org>
17934
17935         uninorm tests: Preserve copyright of Unicode data file.
17936         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
17937         Mention modifications.
17938
17939 2011-01-08  Bruno Haible  <bruno@clisp.org>
17940
17941         gen-uni-tables: Prepare for Unicode 5.2.0.
17942         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
17943         (debug_output_lbp, output_lbp): Update.
17944
17945 2011-01-08  Bruno Haible  <bruno@clisp.org>
17946
17947         unilbrk: Clarify gen-uni-tables.c code.
17948         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
17949         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
17950         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
17951
17952 2011-01-07  Bruno Haible  <bruno@clisp.org>
17953
17954         strtod: Restore errno when successfully parsing Infinity or NaN.
17955         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
17956         restore the original errno.
17957
17958 2011-01-07  Bruno Haible  <bruno@clisp.org>
17959
17960         remove test: Avoid failure on HP-UX 11.
17961         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
17962
17963 2011-01-07  Bruno Haible  <bruno@clisp.org>
17964
17965         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
17966         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
17967         error code.
17968
17969 2011-01-07  Pádraig Brady <P@draigBrady.com>
17970
17971         ignore-value: fixup comments, and add Eric Blake
17972         as an author since he rewrote the macros.
17973         * lib/ignore-value.h (ignore_value):  State that
17974         we now support aggregates.  Also specify exactly
17975         when the GCC warn_unused_result feature was added.
17976
17977 2011-01-06  Eric Blake  <eblake@redhat.com>
17978
17979         ignore-value: support aggregate types
17980         * lib/ignore-value.h (ignore_value): Provide separate gcc
17981         definition.
17982         * modules/ignore-value-tests: New test module.
17983         * tests/test-ignore-value.c: New test.
17984
17985         maint.mk: improve sc_prohibit_strcmp regex
17986         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
17987         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
17988         definition of STRNEQ.
17989
17990         signal: work around Haiku issue with SIGBUS
17991         * lib/siglist.h: Add comment.
17992         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
17993         strsignal's favoring of SIGSEGV.
17994         * tests/test-signal.c (main): Avoid test failure.
17995         * doc/posix-headers/signal.texi (signal.h): Document the issue.
17996         Reported by Scott McCreary.
17997
17998         maint.mk: add pre-release check to ensure submodule commits are public
17999         * top/maint.mk (public-submodule-commit): New rule.
18000         (submodule-checks): New variable.
18001         (alpha beta stable): Depend on the variable.
18002
18003 2011-01-05  Pádraig Brady <P@draigBrady.com>
18004         and Jim Meyering  <meyering@redhat.com>
18005
18006         ignore-value: make ignore_value more generic; deprecate ignore_ptr
18007         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
18008         (ATTRIBUTE_DEPRECATED): Define.
18009         (_ignore_case): New function.
18010         (ignore_value): New macro, to replace the old function.
18011         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
18012         * modules/ignore-value (Depends-on): Add stdint.
18013
18014 2011-01-04  Eric Blake  <eblake@redhat.com>
18015
18016         doc: regenerate INSTALL
18017         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
18018         @firstparagraphindent support, now that autoconf dropped it.
18019         (INSTALL_PRELUDE): Reinstate old macro.
18020         * doc/install.texi: Resync from autoconf.
18021         * doc/INSTALL: Reflect recent autoconf update.
18022         * doc/INSTALL.ISO: Likewise.
18023         * doc/INSTALL.UTF-8: Likewise.
18024         Reported by Karl Berry.
18025
18026 2011-01-04  Bruce Korb  <address@hidden>
18027
18028         git-version-gen: avoid a sub-shell
18029         * build-aux/git-version-gen: Redirect stderr in `...` via
18030         "exec 2>...", rather than via an added sub-shell.
18031
18032 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
18033
18034         git-version-gen: use (...) rather than sh -c '...'
18035         * build-aux/git-version-gen: Rather than hard-coding a shell's name
18036         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
18037
18038 2011-01-03  Jim Meyering  <meyering@redhat.com>
18039
18040         git-version-gen: convert leading TABs to spaces
18041         * build-aux/git-version-gen: Expand leading TABs.
18042
18043         git-version-gen: handle failed "git rev-list"
18044         * build-aux/git-version-gen: Rather than leaking a "fatal" error
18045         from git and proceeding as if it had succeeded but printed no SHA1
18046         checksums, suppress the diagnostic and handle the failure.
18047         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
18048
18049         git-version-gen: include command name in one more diagnostic
18050         * build-aux/git-version-gen: When the required .tarball-version file
18051         was missing or unreadable, you might see the diagnostic from "cat",
18052         but no trace of the name of the invoking script.  Now, you still see
18053         the diagnostic from cat, but also get one from "git-version-gen: ".
18054         Inspired by a patch from Bruce Korb.
18055
18056         update-copyright: adjust test to match changed code
18057         * tests/test-update-copyright.sh: Change test's expected output
18058         to match new actual output.
18059
18060 2011-01-02  Bruno Haible  <bruno@clisp.org>
18061
18062         getlogin_r: Avoid test failure on HP-UX 11.
18063         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
18064         ERANGE when the second argument is zero.
18065         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
18066         portability problem.
18067
18068 2011-01-02  Bruce Korb  <bkorb@gnu.org>
18069
18070         * build-aux/update-copyright: doc Simon's changes
18071
18072 2011-01-02  Simon Josefsson  <simon@josefsson.org>
18073
18074         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
18075         environment variable.
18076
18077 2011-01-02  Bruno Haible  <bruno@clisp.org>
18078
18079         unigbrk: Avoid gcc warnings.
18080         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
18081         unused variable.
18082         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
18083         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
18084         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
18085         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
18086         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
18087         Change type of first argument to 'const char *'.
18088         (main): Remove unused variable.
18089         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
18090         type of first argument to 'const char *'.
18091         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
18092         Likewise.
18093         (main): Change type of variable 's'.
18094         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
18095         to 'int'.
18096
18097 2011-01-02  Bruno Haible  <bruno@clisp.org>
18098
18099         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
18100         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
18101         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
18102         bug.
18103         * lib/pwrite.c: Undo 2010-12-31 patch.
18104         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
18105
18106 2011-01-02  Bruno Haible  <bruno@clisp.org>
18107
18108         pread: Fix test whether it works.
18109         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
18110
18111 2011-01-02  Bruno Haible  <bruno@clisp.org>
18112
18113         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
18114         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
18115         ends in "6". Don't require a specific month name. Try also the locale
18116         names found on HP-UX 11 and Solaris 7.
18117
18118 2011-01-02  Bruno Haible  <bruno@clisp.org>
18119
18120         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
18121         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
18122         C linkage.
18123         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
18124
18125 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18126
18127         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
18128         for consistency, since the "cluster" term is not used elsewhere.
18129         * lib/unigbrk.in.h: Update name.
18130         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
18131         * lib/unigbrk/u16-grapheme-next.c: Update name.
18132         * lib/unigbrk/u16-grapheme-prev.c: Update name.
18133         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
18134         * lib/unigbrk/u32-grapheme-next.c: Update name.
18135         * lib/unigbrk/u32-grapheme-prev.c: Update name.
18136         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
18137         * lib/unigbrk/u8-grapheme-next.c: Update name.
18138         * lib/unigbrk/u8-grapheme-prev.c: Update name.
18139         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
18140         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
18141         Suggested by Bruno Haible.
18142
18143 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18144
18145         Remove module 'u8-grapheme-len' as too redundant with
18146         'u8-grapheme-next'.
18147         * modules/unigbrk/u8-grapheme-len: Delete file.
18148         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
18149         * lib/unigbrk.in.h: Remove prototype for deleted function.
18150         * lib/unigbrk/u8-grapheme-len.c: Delete file.
18151         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
18152
18153         Remove module 'u16-grapheme-len' as too redundant with
18154         'u16-grapheme-next'.
18155         * modules/unigbrk/u16-grapheme-len: Delete file.
18156         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
18157         * lib/unigbrk.in.h: Remove prototype for deleted function.
18158         * lib/unigbrk/u16-grapheme-len.c: Delete file.
18159         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
18160
18161         Remove module 'u32-grapheme-len' as too redundant with
18162         'u32-grapheme-next'.
18163         * modules/unigbrk/u32-grapheme-len: Delete file.
18164         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
18165         * lib/unigbrk.in.h: Remove prototype for deleted function.
18166         * lib/unigbrk/u32-grapheme-len.c: Delete file.
18167         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
18168
18169         Suggested by Bruno Haible.
18170
18171 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18172
18173         * unigbrk.in.h: Fix typo: "ben" => "been".
18174         Reported by Bruno Haible.
18175
18176 2011-01-01  Jim Meyering  <meyering@redhat.com>
18177
18178         maint: update almost all copyright ranges to include 2011
18179         Run the new "make update-copyright" rule.
18180
18181 2011-01-01  Jim Meyering  <meyering@redhat.com>
18182
18183         maint: update-copyright: exempt doc/INSTALL*
18184         * Makefile (update-copyright): Also exclude doc/INSTALL*,
18185         since they are generated.  Suggested by Bruno Haible.
18186
18187 2011-01-01  Jim Meyering  <meyering@redhat.com>
18188
18189         maint: refine the update-copyright rule
18190         * Makefile (update-copyright): Also exclude any file that includes
18191         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
18192         code that merely generates the comment.
18193
18194 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18195
18196         New module 'u8-grapheme-len'.
18197         * modules/unigbrk/u8-grapheme-len: New file.
18198         * modules/unigbrk/u8-grapheme-len-tests: New file.
18199         * lib/unigbrk.in.h: Add prototype for new function.
18200         * lib/unigbrk/u8-grapheme-len.c: New file.
18201         * tests/unigbrk/test-u8-grapheme-len.c: New file.
18202
18203         New module 'u16-grapheme-len'.
18204         * modules/unigbrk/u16-grapheme-len: New file.
18205         * modules/unigbrk/u16-grapheme-len-tests: New file.
18206         * lib/unigbrk.in.h: Add prototype for new function.
18207         * lib/unigbrk/u16-grapheme-len.c: New file.
18208         * tests/unigbrk/test-u16-grapheme-len.c: New file.
18209
18210         New module 'u32-grapheme-len'.
18211         * modules/unigbrk/u32-grapheme-len: New file.
18212         * modules/unigbrk/u32-grapheme-len-tests: New file.
18213         * lib/unigbrk.in.h: Add prototype for new function.
18214         * lib/unigbrk/u32-grapheme-len.c: New file.
18215         * tests/unigbrk/test-u32-grapheme-len.c: New file.
18216
18217         New module 'u8-grapheme-next'.
18218         * modules/unigbrk/u8-grapheme-next: New file.
18219         * modules/unigbrk/u8-grapheme-next-tests: New file.
18220         * lib/unigbrk.in.h: Add prototype for new function.
18221         * lib/unigbrk/u8-grapheme-next.c: New file.
18222         * tests/unigbrk/test-u8-grapheme-next.c: New file.
18223
18224         New module 'u16-grapheme-next'.
18225         * modules/unigbrk/u16-grapheme-next: New file.
18226         * modules/unigbrk/u16-grapheme-next-tests: New file.
18227         * lib/unigbrk.in.h: Add prototype for new function.
18228         * lib/unigbrk/u16-grapheme-next.c: New file.
18229         * tests/unigbrk/test-u16-grapheme-next.c: New file.
18230
18231         New module 'u32-grapheme-next'.
18232         * modules/unigbrk/u32-grapheme-next: New file.
18233         * modules/unigbrk/u32-grapheme-next-tests: New file.
18234         * lib/unigbrk.in.h: Add prototype for new function.
18235         * lib/unigbrk/u32-grapheme-next.c: New file.
18236         * tests/unigbrk/test-u32-grapheme-next.c: New file.
18237
18238         New module 'u8-grapheme-prev'.
18239         * modules/unigbrk/u8-grapheme-prev: New file.
18240         * modules/unigbrk/u8-grapheme-prev-tests: New file.
18241         * lib/unigbrk.in.h: Add prototype for new function.
18242         * lib/unigbrk/u8-grapheme-prev.c: New file.
18243         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
18244
18245         New module 'u16-grapheme-prev'.
18246         * modules/unigbrk/u16-grapheme-prev: New file.
18247         * modules/unigbrk/u16-grapheme-prev-tests: New file.
18248         * lib/unigbrk.in.h: Add prototype for new function.
18249         * lib/unigbrk/u16-grapheme-prev.c: New file.
18250         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
18251
18252         New module 'u32-grapheme-prev'.
18253         * modules/unigbrk/u32-grapheme-prev: New file.
18254         * modules/unigbrk/u32-grapheme-prev-tests: New file.
18255         * lib/unigbrk.in.h: Add prototype for new function.
18256         * lib/unigbrk/u32-grapheme-prev.c: New file.
18257         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
18258
18259         New module 'u8-grapheme-breaks'.
18260         * modules/unigbrk/u8-grapheme-breaks: New file.
18261         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
18262         * lib/unigbrk.in.h: Add prototype for new function.
18263         * lib/unigbrk/u8-grapheme-breaks.c: New file.
18264         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
18265
18266         New module 'u16-grapheme-breaks'.
18267         * modules/unigbrk/u16-grapheme-breaks: New file.
18268         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
18269         * lib/unigbrk.in.h: Add prototype for new function.
18270         * lib/unigbrk/u16-grapheme-breaks.c: New file.
18271         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
18272
18273         New module 'u32-grapheme-breaks'.
18274         * modules/unigbrk/u32-grapheme-breaks: New file.
18275         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
18276         * lib/unigbrk.in.h: Add prototype for new function.
18277         * lib/unigbrk/u32-grapheme-breaks.c: New file.
18278         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
18279
18280         New module 'ulc-grapheme-breaks'.
18281         * modules/unigbrk/ulc-grapheme-breaks: New file.
18282         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
18283         * m4/locale-ar.m4: New file.
18284         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
18285         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
18286         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
18287
18288 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18289
18290         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
18291         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
18292         modified how this file was generated before I initially submitted
18293         the module, but failed to regenerate it.  This meant that several
18294         of the level2 entries were wrong.
18295         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
18296         Remove the division-by-2 that is folded into the table now that
18297         gbrkprop.h has been regenerated properly.  Now -1 entries are
18298         handled correctly.
18299
18300         New module 'unigbrk/uc-gbrk-prop-tests'.
18301         * modules/unigbrk/uc-gbrk-prop-tests: New file.
18302         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
18303         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
18304         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
18305
18306 2011-01-01  Bruno Haible  <bruno@clisp.org>
18307
18308         Avoid use of hexadecimal escapes.
18309         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
18310         instead of hexadecimal escapes.
18311
18312 2011-01-01  Jim Meyering  <meyering@redhat.com>
18313
18314         maint: new rule to update copyright year ranges
18315         * Makefile (update-copyright): New rule.
18316
18317         maint: indent with TABs in Makefile
18318         * Makefile: Expand leading sequences of spaces to TABs
18319
18320         version-etc: update the copyright year it reports
18321         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
18322
18323 2010-12-31  Bruno Haible  <bruno@clisp.org>
18324
18325         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
18326         * lib/isfinite.c (zerof, zerod, zerol): New variables.
18327         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
18328         zero.
18329
18330 2010-12-31  Bruno Haible  <bruno@clisp.org>
18331
18332         pwrite: Work around HP-UX 11.11 bug.
18333         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
18334         works and set REPLACE_PWRITE if not.
18335         * lib/pwrite.c (pwrite): Add an implementation that uses the system
18336         function.
18337         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
18338
18339 2010-12-31  Bruno Haible  <bruno@clisp.org>
18340
18341         pread: Work around HP-UX 11 bugs.
18342         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
18343         and set REPLACE_PREAD if not.
18344         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
18345
18346 2010-12-31  Eric Blake  <eblake@redhat.com>
18347
18348         nl_langinfo: fix YESEXPR on Irix 6.5
18349         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
18350         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
18351         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
18352         it.
18353
18354 2010-12-31  Bruno Haible  <bruno@clisp.org>
18355
18356         iconv: Document HP-UX 11 bug.
18357         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
18358
18359 2010-12-31  Bruno Haible  <bruno@clisp.org>
18360
18361         ldexpl: Fix link error on HP-UX 11.
18362         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
18363         LDEXPL_LIBM, using $ISNANL_LIBM.
18364
18365 2010-12-31  Eric Blake  <eblake@redhat.com>
18366
18367         ftello: avoid compilation failure with SunStudio c89
18368         * lib/ftello.c (ftello): Use lseek, not llseek.
18369
18370         tests: avoid failing coreutils tests on cygwin
18371         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
18372         (create_exe_shims_): Return 0 when skipping.
18373
18374 2010-12-31  Bruno Haible  <bruno@clisp.org>
18375
18376         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
18377         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
18378
18379 2010-12-31  Bruno Haible  <bruno@clisp.org>
18380
18381         waitpid: Fix link error in C++ mode.
18382         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
18383
18384 2010-12-31  Bruno Haible  <bruno@clisp.org>
18385
18386         isnan: Use GCC built-ins when possible.
18387         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
18388         __builtin_isnan.
18389         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
18390         (isnan): Define using GCC built-ins for GCC >= 4.0.
18391
18392 2010-12-31  Bruno Haible  <bruno@clisp.org>
18393
18394         isnand: Fix mistake.
18395         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
18396         __builtin_isnand.
18397
18398 2010-12-31  Bruno Haible  <bruno@clisp.org>
18399
18400         open: Avoid C++ error on HP-UX 11.
18401         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
18402
18403 2010-12-31  Bruno Haible  <bruno@clisp.org>
18404
18405         time_r: Add missing declarations on HP-UX 11.
18406         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
18407         instead of HAVE_LOCALTIME_R.
18408         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
18409         HAVE_LOCALTIME_R always.
18410         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
18411         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
18412         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
18413         HAVE_LOCALTIME_R.
18414         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
18415         * doc/posix-functions/localtime_r.texi: Likewise.
18416
18417 2010-12-29  Eric Blake  <eblake@redhat.com>
18418
18419         mountlist: tweak previous commit
18420         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
18421         Reported by Paul Eggert.
18422
18423         mountlist: fix local drive detection on cygwin
18424         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
18425         that works for cygwin.
18426
18427 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18428
18429         ftoastr, snprintf: ftoastr + snprintf module
18430         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
18431         since the snprintf module now should be good enough here.
18432         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
18433         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
18434         and gl_MODULE_INDICATOR([snprintf]), but the former enables
18435         GNULIB_SNPRINTF only for the test directory, and the latter
18436         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
18437         seems to suffice by itself.
18438
18439 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18440
18441         alloca: one step towards thread-safety
18442         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
18443         need for a static variable.  All callers changed.  This does not
18444         make the alloca replacement thread-safe, but it's one step.
18445
18446         tests: minor indenting change
18447         * tests/init.sh: Sync from coreutils housekeeping patch
18448         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
18449         to keep lines within 80 columns.
18450
18451 2010-12-28  Jim Meyering  <meyering@redhat.com>
18452
18453         regex: don't infloop on persistent failing calloc
18454         * lib/regexec.c (build_trtable): Return failure indication upon
18455         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18456         In glibc, this was fixed for version 2.13:
18457         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
18458
18459 2010-12-28  Bruno Haible  <bruno@clisp.org>
18460             Paul Eggert <eggert@cs.ucla.edu>
18461
18462         linkat: Make implementation robust against system behaviour variations.
18463         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
18464         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
18465         way, and to -2 if it needs a generic runtime test.
18466         * lib/linkat.c (solaris_optimized_link_immediate,
18467         solaris_optimized_link_follow): New functions.
18468         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
18469         (check_same_link): Use it.
18470
18471 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
18472
18473         New module 'unigbrk/base'.
18474         * modules/unigbrk/base: New file.
18475         * lib/unigbrk.in.h: New file.
18476
18477         New module 'unigbrk/uc-gbrk-prop'.
18478         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
18479         * modules/unigbrk/uc-gbrk-prop: New file.
18480         * lib/unigbrk/gbrkprop.h: New file.
18481         * lib/unigbrk/uc-gbrk-prop.c: New file.
18482
18483         New module 'unigbrk/uc-is-grapheme-break'.
18484         * modules/unigbrk/uc-is-grapheme-break: New file.
18485         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
18486         * lib/unigbrk/uc-is-grapheme-break.c: New file.
18487         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
18488         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
18489         * tests/unigbrk/GraphemeBreakTest.txt: New file.
18490
18491         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
18492
18493 2010-12-27  Bruno Haible  <bruno@clisp.org>
18494
18495         linkat test: Avoid failure on Solaris 11 2010-11.
18496         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
18497
18498 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18499
18500         utimens: work around glibc rounding bug on more platforms
18501         * lib/utimens.c (fdutimens): Work around rounding bug even if
18502         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
18503         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
18504
18505 2010-12-27  Bruno Haible  <bruno@clisp.org>
18506
18507         select tests: Improve comments.
18508         * tests/test-select.c (do_select): Add comments.
18509
18510 2010-12-27  Bruno Haible  <bruno@clisp.org>
18511
18512         select tests: Safer way of handling timeout.
18513         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
18514         at every invocation.
18515
18516 2010-12-27  Bruno Haible  <bruno@clisp.org>
18517
18518         select tests: Use 'bool' where appropriate.
18519         * tests/test-select.c (connect_to_socket): Change argument type to
18520         'bool'.
18521
18522 2010-12-27  Bruno Haible  <bruno@clisp.org>
18523
18524         select tests: Use existing modules.
18525         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
18526         (configure.ac): Don't test for unistd.h.
18527         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
18528         declared in <unistd.h>.
18529
18530 2010-12-27  Bruno Haible  <bruno@clisp.org>
18531
18532         mbrtowc: Work around a Solaris 7 bug.
18533         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
18534         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
18535         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
18536         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
18537         MBRTOWC_NULL_ARG1_BUG.
18538         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
18539         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
18540         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
18541         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
18542
18543 2010-12-27  Jim Meyering  <meyering@redhat.com>
18544
18545         read-file.c: tweak syntax
18546         * lib/read-file.c (fread_file): Remove space after "*" in function
18547         definitions.
18548
18549 2010-12-27  Bruno Haible  <bruno@clisp.org>
18550
18551         times test: Avoid gcc warnings on OSF/1.
18552         * tests/test-times.c (main): Cast printf arguments from clock_t to
18553         'long int'.
18554
18555 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18556
18557         utimens: work around glibc rounding bug on older Linux kernels
18558         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
18559         on Linux with a glibc whose utimes might not work, then work
18560         around a longstanding glibc bug involving rounding rather than
18561         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
18562         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18563
18564 2010-12-26  Bruno Haible  <bruno@clisp.org>
18565
18566         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
18567         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
18568         _GL_CXXALIAS_SYS.
18569         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18570
18571 2010-12-26  Bruno Haible  <bruno@clisp.org>
18572
18573         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
18574         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
18575         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18576         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
18577         looking for the declaration.
18578         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18579         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
18580         problem.
18581         * doc/posix-functions/inet_pton.texi: Likewise.
18582
18583 2010-12-26  Bruno Haible  <bruno@clisp.org>
18584
18585         arpa_inet: Use the common idioms with C++ support.
18586         * lib/arpa_inet.in.h: Include c++defs.h.
18587         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
18588         support.
18589         * modules/arpa_inet (Depends-on): Add c++defs.
18590         (Makefile.am): Substitute the contents of c++defs.h.
18591         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
18592         * modules/arpa_inet-c++-tests: New file.
18593         * tests/test-arpa_inet-c++.cc: New file.
18594
18595 2010-12-25  Bruno Haible  <bruno@clisp.org>
18596
18597         Fix more C++ link errors on Solaris 8.
18598         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
18599         $(LIB_EACCESS).
18600         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
18601         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
18602         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
18603         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
18604         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
18605
18606 2010-12-25  Bruno Haible  <bruno@clisp.org>
18607
18608         printf-posix: Fix link error when a non-GCC compiler is used.
18609         * lib/stdio.in.h (printf): When not using GCC, override printf
18610         correctly.
18611         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18612
18613 2010-12-25  Bruno Haible  <bruno@clisp.org>
18614
18615         strerror_r-posix: Update doc.
18616         * doc/posix-functions/strerror_r.texi: Update doc about the return
18617         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
18618
18619 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18620
18621         utimens: simplify the logic of the previous change
18622         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
18623         This should not affect whether the test succeeds or fails.
18624
18625         utimens: configure better on hosts with NFS clock skew
18626         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
18627         uses the clock of the local host.  It might use the clock of the
18628         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
18629         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18630
18631 2010-12-25  Bruno Haible  <bruno@clisp.org>
18632
18633         ptsname test: Avoid failure on Solaris.
18634         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
18635         open a pseudo-terminal; don't use BSD-style ptys.
18636         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
18637
18638 2010-12-25  Bruno Haible  <bruno@clisp.org>
18639
18640         ptsname: Avoid ERANGE failure on some systems.
18641         * lib/ptsname.c (buffer): Increase size.
18642
18643 2010-12-25  Bruno Haible  <bruno@clisp.org>
18644
18645         rename, renameat: Avoid test failures at NFS mounted locations.
18646         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
18647         so that subsequent mkdir calls succeed.
18648
18649 2010-12-25  Bruno Haible  <bruno@clisp.org>
18650
18651         iswblank: Fix C++ link error on Solaris 8.
18652         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
18653         _GL_FUNCDECL_SYS.
18654
18655 2010-12-25  Bruno Haible  <bruno@clisp.org>
18656
18657         unistd: Fix C++ link error on Solaris 8.
18658         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
18659
18660 2010-12-25  Bruno Haible  <bruno@clisp.org>
18661
18662         readlink doc: Mention an old glibc bug.
18663         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
18664
18665 2010-12-25  Bruno Haible  <bruno@clisp.org>
18666
18667         fcntl-h: Fix for use of C++ on glibc systems.
18668         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18669         also on glibc systems in C++ mode.
18670         Reported by Gary V. Vaughan <gary@gnu.org>.
18671
18672 2010-12-25  Bruno Haible  <bruno@clisp.org>
18673
18674         roundl-ieee: Make it work on OSF/1 5.1 with cc.
18675         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
18676
18677 2010-12-25  Bruno Haible  <bruno@clisp.org>
18678
18679         truncl-ieee: Make it work on OSF/1 5.1 with cc.
18680         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
18681         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18682         test whether truncl works according to ISO C 99 with IEC 60559.
18683         * m4/truncl-ieee.m4: New file.
18684         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
18685         m4/signbit.m4.
18686         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
18687
18688 2010-12-25  Bruno Haible  <bruno@clisp.org>
18689
18690         ceill-ieee: Make it work on OSF/1 5.1 with cc.
18691         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
18692         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
18693         test whether ceill works according to ISO C 99 with IEC 60559.
18694         * m4/ceill-ieee.m4: New file.
18695         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
18696         m4/signbit.m4.
18697         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
18698
18699 2010-12-25  Bruno Haible  <bruno@clisp.org>
18700
18701         Ensure all prerequisites of <wchar.h> are included.
18702         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
18703         before <wchar.h>.
18704         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18705         gl_MBRLEN_NUL_RETVAL): Likewise.
18706         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18707         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
18708         AC_FUNC_MBRTOWC): Likewise.
18709         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18710         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18711         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18712         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18713         Likewise.
18714         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18715         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
18716         (gl_WCHAR_H): Improve comments.
18717         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18718
18719 2010-12-25  Bruno Haible  <bruno@clisp.org>
18720
18721         strtok_r: Fix C syntax error in autoconf macro.
18722         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
18723         characters in test program.
18724
18725 2010-12-24  Bruno Haible  <bruno@clisp.org>
18726
18727         ceil, trunc, round: Fix gcc warnings.
18728         * lib/ceil.c (MIN): Undefine before redefining.
18729         * lib/trunc.c (MIN): Likewise.
18730         * lib/round.c (MIN): Likewise.
18731         Include <math.h> first.
18732
18733 2010-12-24  Bruno Haible  <bruno@clisp.org>
18734
18735         select tests: Avoid failures on OSF/1 5.1.
18736         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
18737         failure of closing the last socket; it may fail with ECONNRESET.
18738
18739 2010-12-24  Eric Blake  <eblake@redhat.com>
18740
18741         stdint: avoid HP-UX 10.20 preprocessor bug
18742         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
18743         than #if.
18744         * tests/test-floor2.c (main): Likewise.
18745         Reported by Peter O'Gorman.
18746
18747         pipe: make obsoletion transition easier
18748         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
18749         * modules/pipe (Files): Include revived file.
18750         (Include): Drop reference, to mirror getdate's behavior.
18751
18752 2010-12-24  Bruno Haible  <bruno@clisp.org>
18753
18754         sys_socket: Hide mismatch of declarations on NonStop Kernel.
18755         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
18756         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
18757         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18758
18759 2010-12-24  Bruno Haible  <bruno@clisp.org>
18760
18761         gethostname: Ensure declaration on NonStop Kernel.
18762         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
18763         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18764
18765 2010-12-24  Bruno Haible  <bruno@clisp.org>
18766
18767         sys_select: Ensure all necessary types on NonStop Kernel.
18768         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
18769         include <sys/time.h>.
18770         * doc/posix-headers/sys_select.texi: Mention that it's missing on
18771         NonStop Kernel.
18772         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18773
18774 2010-12-24  Bruno Haible  <bruno@clisp.org>
18775
18776         sys_select: Remove unneeded include.
18777         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
18778         have <sys/select.h>.
18779
18780 2010-12-24  Bruno Haible  <bruno@clisp.org>
18781
18782         gethostname: Provide a fallback for HOST_NAME_MAX.
18783         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
18784         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
18785         instead.
18786         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18787
18788 2010-12-24  Bruno Haible  <bruno@clisp.org>
18789
18790         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
18791         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
18792         (SA_RESTART): Likewise.
18793         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18794
18795 2010-12-24  Bruno Haible  <bruno@clisp.org>
18796
18797         signal: Define NSIG.
18798         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
18799         * tests/test-signal.c (nsig): New variable.
18800         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18801
18802 2010-12-24  Bruno Haible  <bruno@clisp.org>
18803
18804         rename, renameat: Avoid test failures on OSF/1 5.1.
18805         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
18806         alternative error codes.
18807         * tests/test-renameat.c (main): Likewise.
18808
18809 2010-12-24  Bruno Haible  <bruno@clisp.org>
18810
18811         *printf: Detect large precisions bug on Solaris 10/SPARC.
18812         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
18813         by Paul Eggert.
18814         * tests/test-snprintf-posix.h (test_function): Add this test code here
18815         too.
18816         * tests/test-sprintf-posix.h (test_function): Likewise.
18817         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18818         * tests/test-vasprintf-posix.c (test_function): Likewise.
18819         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
18820         around by gnulib.
18821         * doc/posix-functions/printf.texi: Likewise.
18822         * doc/posix-functions/snprintf.texi: Likewise.
18823         * doc/posix-functions/sprintf.texi: Likewise.
18824         * doc/posix-functions/vfprintf.texi: Likewise.
18825         * doc/posix-functions/vprintf.texi: Likewise.
18826         * doc/posix-functions/vsnprintf.texi: Likewise.
18827         * doc/posix-functions/vsprintf.texi: Likewise.
18828         * doc/posix-functions/dprintf.texi: Undo last commit.
18829         * doc/posix-functions/vdprintf.texi: Likewise.
18830
18831 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18832
18833         tests: port test-fdutimensat.c to Solaris 8
18834         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
18835         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
18836         On Solaris 8, it fails with errno == ENOSYS, because there is no
18837         futimens (so it can't use the fd), and there is no lutimens (so it
18838         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
18839
18840         vsnprintf: make more consistent with snprintf; doc fixes
18841
18842         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
18843         the byte count return problem was promoted from the snprintf-posix
18844         to the snprintf module.
18845         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18846         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
18847         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
18848         * tests/test-snprintf.c (main): Check the byte count returned.
18849         * tests/test-vsnprintf.c (main): Likewise.
18850
18851 2010-12-23  Eric Blake  <eblake@redhat.com>
18852
18853         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
18854         * modules/sigpipe (License): Relax license.
18855
18856 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18857
18858         doc: document Solaris printf bug with large float precisions
18859         * doc/posix-functions/dprintf.texi (dprintf):
18860         * doc/posix-functions/fprintf.texi (fprintf):
18861         * doc/posix-functions/printf.texi (printf):
18862         * doc/posix-functions/snprintf.texi (snprintf):
18863         * doc/posix-functions/sprintf.texi (sprintf):
18864         * doc/posix-functions/vdprintf.texi (vdprintf):
18865         * doc/posix-functions/vfprintf.texi (vfprintf):
18866         * doc/posix-functions/vprintf.texi (vprintf):
18867         * doc/posix-functions/vsnprintf.texi (vsnprintf):
18868         * doc/posix-functions/vsprintf.texi (vsprintf):
18869         Mention that these functions mishandle large floating point
18870         precisions on Solaris 10.  The same bug is also present in Solaris
18871         8, and I assume earlier.  This causes "cd gnulib-tests; make
18872         check" to fail on Solaris 8 (and I assume, later) when building
18873         the latest coreutils, in test-vasprintf-posix's call to
18874         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
18875         the wide flavors (e.g., wprintf) so this patch just updates the
18876         documentation for the narrow ones.
18877
18878         test-posixtm.c: add two tests
18879         * tests/test-posixtm.c: Add two tests, to highlight the
18880         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
18881         around this bug; this is merely to document it.
18882
18883 2010-12-22  Bruno Haible  <bruno@clisp.org>
18884
18885         getlogin_r: Work around portability problem on OSF/1.
18886         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
18887         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
18888         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
18889         test for a truncated result.
18890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
18891         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
18892         * modules/getlogin_r (Depends-on): Add memchr.
18893         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
18894
18895 2010-12-22  Bruno Haible  <bruno@clisp.org>
18896
18897         ptsname: Avoid test failure on OSF/1 5.1.
18898         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
18899         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
18900         (same_slave): New function.
18901         (main): Use it to compare ptsname's result with the expected file name.
18902
18903 2010-12-22  Bruno Haible  <bruno@clisp.org>
18904
18905         Port extended stdio modules to HP NonStop Kernel.
18906         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
18907         macros.
18908         * lib/fbufmode.c: Update comments.
18909         * lib/fflush.c: Likewise.
18910         * lib/fpurge.c: Likewise.
18911         * lib/freadable.c: Likewise.
18912         * lib/freadahead.c: Likewise.
18913         * lib/freading.c: Likewise.
18914         * lib/freadptr.c: Likewise.
18915         * lib/freadseek.c: Likewise.
18916         * lib/fseeko.c: Likewise.
18917         * lib/fseterr.c: Likewise.
18918         * lib/fwritable.c: Likewise.
18919         * lib/fwriting.c: Likewise.
18920         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18921
18922 2010-12-22  Bruno Haible  <bruno@clisp.org>
18923
18924         ttyname_r: Work around bug on OSF/1 5.1.
18925         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
18926         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
18927         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
18928         present.
18929         * lib/ttyname_r.c (ttyname_r): Update comments.
18930
18931 2010-12-22  Bruno Haible  <bruno@clisp.org>
18932
18933         round: Implement result sign according to IEEE 754.
18934         * lib/round.c (MIN, MINUS_ZERO): New macros.
18935         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
18936         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
18937         * tests/test-round-ieee.c (main): Likewise.
18938         * tests/test-roundl-ieee.c (main): Likewise.
18939
18940         trunc: Implement result sign according to IEEE 754.
18941         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
18942         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
18943         * tests/test-trunc2.c: Include minus-zero.h.
18944         (MINUS_ZERO): New macro.
18945         (trunc_reference): Keep in sync with lib/trunc.c.
18946         * tests/test-truncf2.c: Include minus-zero.h.
18947         (MINUS_ZERO): New macro.
18948         (truncf_reference): Keep in sync with lib/trunc.c.
18949         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
18950         * tests/test-trunc-ieee.c (main): Likewise.
18951         * tests/test-truncl-ieee.c (main): Likewise.
18952
18953         ceil: Implement result sign according to IEEE 754.
18954         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
18955         (FUNC): Return -0.0 for -1 < x < 0.
18956         * tests/test-ceil2.c: Include minus-zero.h.
18957         (MINUS_ZERO): New macro.
18958         (ceil_reference): Keep in sync with lib/ceil.c.
18959         * tests/test-ceilf2.c: Include minus-zero.h.
18960         (MINUS_ZERO): New macro.
18961         (ceilf_reference): Keep in sync with lib/ceil.c.
18962         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
18963         * tests/test-ceil-ieee.c (main): Likewise.
18964         * tests/test-ceill-ieee.c (main): Likewise.
18965
18966         floor: Implement result sign according to IEEE 754.
18967         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
18968         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
18969         * tests/test-floorf2.c (floorf_reference): Likewise.
18970         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
18971         * tests/test-floor-ieee.c (main): Likewise.
18972         * tests/test-floorl-ieee.c (main): Likewise.
18973
18974 2010-12-22  Bruno Haible  <bruno@clisp.org>
18975
18976         getaddrinfo: Update doc.
18977         * doc/posix-functions/gai_strerror.texi: Return type is also different
18978         on AIX and HP-UX.
18979
18980 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18981
18982         getaddrinfo, inet_ntop: Update doc for Solaris.
18983         * doc/posix-functions/gai_strerror.texi: Return type is also an
18984         issue on Solaris 9 and earlier.
18985         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
18986         on Solaris 10 and earlier.
18987
18988 2010-12-21  Bruno Haible  <bruno@clisp.org>
18989
18990         New module 'roundl-ieee'.
18991         * modules/roundl-ieee: New file.
18992         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
18993         test whether roundl works according to ISO C 99 with IEC 60559.
18994         * m4/roundl-ieee.m4: New file.
18995         * modules/roundl-ieee-tests: New file.
18996         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
18997         * tests/test-roundl.c (main): Remove signbit tests.
18998         * modules/roundl-tests (Depends-on): Remove signbit.
18999         * doc/posix-functions/roundl.texi: Mention the new module.
19000
19001 2010-12-21  Bruno Haible  <bruno@clisp.org>
19002
19003         New module 'truncl-ieee'.
19004         * modules/truncl-ieee: New file.
19005         * modules/truncl-ieee-tests: New file.
19006         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
19007         * tests/test-truncl.c (main): Remove signbit tests.
19008         * modules/truncl-tests (Depends-on): Remove signbit.
19009         * doc/posix-functions/truncl.texi: Mention the new module.
19010
19011 2010-12-21  Bruno Haible  <bruno@clisp.org>
19012
19013         New module 'ceill-ieee'.
19014         * modules/ceill-ieee: New file.
19015         * modules/ceill-ieee-tests: New file.
19016         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
19017         * tests/test-ceill.c (main): Remove signbit tests.
19018         * modules/ceill-tests (Depends-on): Remove signbit.
19019         * doc/posix-functions/ceill.texi: Mention the new module.
19020
19021 2010-12-21  Bruno Haible  <bruno@clisp.org>
19022
19023         New module 'floorl-ieee'.
19024         * modules/floorl-ieee: New file.
19025         * modules/floorl-ieee-tests: New file.
19026         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
19027         * tests/test-floorl.c (main): Remove signbit tests.
19028         * modules/floorl-tests (Depends-on): Remove signbit.
19029         * doc/posix-functions/floorl.texi: Mention the new module.
19030
19031 2010-12-21  Bruno Haible  <bruno@clisp.org>
19032
19033         New module 'round-ieee'.
19034         * modules/round-ieee: New file.
19035         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
19036         whether round works according to ISO C 99 with IEC 60559.
19037         * m4/round-ieee.m4: New file.
19038         * modules/round-ieee-tests: New file.
19039         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
19040         * tests/test-round1.c (main): Remove signbit tests.
19041         * modules/round-tests (Depends-on): Remove 'signbit'.
19042         * doc/posix-functions/round.texi: Mention the new module.
19043
19044 2010-12-21  Bruno Haible  <bruno@clisp.org>
19045
19046         New module 'trunc-ieee'.
19047         * modules/trunc-ieee: New file.
19048         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
19049         whether trunc works according to ISO C 99 with IEC 60559.
19050         * m4/trunc-ieee.m4: New file.
19051         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
19052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
19053         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
19054         * modules/trunc-ieee-tests: New file.
19055         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
19056         * tests/test-trunc1.c (main): Remove signbit tests.
19057         * modules/trunc-tests (Depends-on): Remove 'signbit'.
19058         * doc/posix-functions/trunc.texi: Mention the new module.
19059
19060 2010-12-21  Bruno Haible  <bruno@clisp.org>
19061
19062         New module 'ceil-ieee'.
19063         * modules/ceil-ieee: New file.
19064         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
19065         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
19066         ISO C 99 with IEC 60559.
19067         * m4/ceil-ieee.m4: New file.
19068         * modules/ceil (Files): Add lib/ceil.c.
19069         (Depends-on): Add 'float'.
19070         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19071         * lib/math.in.h (ceil): New declaration.
19072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
19073         REPLACE_CEIL.
19074         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
19075         * modules/ceil-ieee-tests: New file.
19076         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
19077         * tests/test-math-c++.cc: Check the signature of 'ceil'.
19078         * doc/posix-functions/ceil.texi: Mention the new module.
19079
19080 2010-12-21  Bruno Haible  <bruno@clisp.org>
19081
19082         New module 'floor-ieee'.
19083         * modules/floor-ieee: New file.
19084         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
19085         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
19086         ISO C 99 with IEC 60559.
19087         * m4/floor-ieee.m4: New file.
19088         * modules/floor (Files): Add lib/floor.c.
19089         (Depends-on): Add 'float'.
19090         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19091         * lib/math.in.h (floor): New declaration.
19092         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
19093         REPLACE_FLOOR.
19094         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
19095         * modules/floor-ieee-tests: New file.
19096         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
19097         * tests/test-math-c++.cc: Check the signature of 'floor'.
19098         * doc/posix-functions/floor.texi: Mention the new module.
19099
19100 2010-12-21  Bruno Haible  <bruno@clisp.org>
19101
19102         New module 'roundf-ieee'.
19103         * modules/roundf-ieee: New file.
19104         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
19105         test whether roundf works according to ISO C 99 with IEC 60559.
19106         * m4/roundf-ieee.m4: New file.
19107         * modules/roundf-ieee-tests: New file.
19108         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
19109         * tests/test-roundf1.c (main): Remove signbit tests.
19110         * modules/roundf-tests (Depends-on): Remove 'signbit'.
19111         * doc/posix-functions/roundf.texi: Mention the new module.
19112
19113 2010-12-21  Bruno Haible  <bruno@clisp.org>
19114
19115         New module 'truncf-ieee'.
19116         * modules/truncf-ieee: New file.
19117         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
19118         test whether truncf works according to ISO C 99 with IEC 60559.
19119         * m4/truncf-ieee.m4: New file.
19120         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
19121         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
19122         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
19123         * modules/truncf-ieee-tests: New file.
19124         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
19125         * tests/test-truncf1.c (main): Remove signbit tests.
19126         * modules/truncf-tests (Depends-on): Remove 'signbit'.
19127         * doc/posix-functions/truncf.texi: Mention the new module.
19128
19129 2010-12-21  Bruno Haible  <bruno@clisp.org>
19130
19131         New module 'ceilf-ieee'.
19132         * modules/ceilf-ieee: New file.
19133         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
19134         test whether ceilf works according to ISO C 99 with IEC 60559.
19135         * m4/ceilf-ieee.m4: New file.
19136         * modules/ceilf-ieee-tests: New file.
19137         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
19138         * tests/test-ceilf1.c (main): Remove signbit tests.
19139         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
19140         * doc/posix-functions/ceilf.texi: Mention the new module.
19141
19142 2010-12-21  Bruno Haible  <bruno@clisp.org>
19143
19144         New module 'floorf-ieee'.
19145         * modules/floorf-ieee: New file.
19146         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
19147         test whether floorf works according to ISO C 99 with IEC 60559.
19148         * m4/floorf-ieee.m4: New file.
19149         * modules/floorf-ieee-tests: New file.
19150         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
19151         * tests/test-floorf1.c (main): Remove signbit tests.
19152         * modules/floorf-tests (Depends-on): Remove 'signbit'.
19153         * doc/posix-functions/floorf.texi: Mention the new module.
19154
19155 2010-12-21  Bruno Haible  <bruno@clisp.org>
19156
19157         Support for minus zero in autoconf macros.
19158         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
19159         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
19160         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
19161         * tests/minus-zero.h: Update comments.
19162
19163 2010-12-21  Bruno Haible  <bruno@clisp.org>
19164
19165         Tests for module 'ceil'.
19166         * modules/ceil-tests: New file.
19167         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
19168         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
19169
19170 2010-12-21  Bruno Haible  <bruno@clisp.org>
19171
19172         Tests for module 'floor'.
19173         * modules/floor-tests: New file.
19174         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
19175         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
19176
19177 2010-12-21  Bruno Haible  <bruno@clisp.org>
19178
19179         math: Fix indentation.
19180         * lib/math.in.h (floorf): Fix indentation.
19181
19182 2010-12-21  Bruno Haible  <bruno@clisp.org>
19183
19184         Fix cross-compilation guesses on Solaris.
19185         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
19186         not match "solaris2.10".
19187         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19188         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
19189         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
19190
19191 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
19192
19193         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
19194         This fixes a problem observed with the latest coreutils snapshot
19195         that caused a test to fail on Solaris 8.  src/csplit.c's call
19196         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
19197         earlier, instead of returning the number of bytes that would have
19198         been generated; this causes csplit to incorrectly report memory
19199         exhaustion.
19200         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
19201         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
19202         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
19203         comments to match.
19204         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
19205         Fix typo in matching older versions of Solaris: "solaris2.10"
19206         is matched by the shell pattern "solaris2.[0-9]*".  This matters
19207         only for guessing while cross-compiling.
19208         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
19209
19210 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
19211
19212         ftoastr: fix comment again
19213         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19214         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
19215         Also, simplify example a bit by using flags = 0.
19216
19217 2010-12-20  Bruno Haible  <bruno@clisp.org>
19218
19219         round*, trunc*: Update documentation regarding glibc.
19220         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
19221         * doc/posix-functions/round.texi: Likewise.
19222         * doc/posix-functions/roundl.texi: Likewise.
19223         * doc/posix-functions/truncf.texi: Likewise.
19224         * doc/posix-functions/trunc.texi: Likewise.
19225         * doc/posix-functions/truncl.texi: Likewise.
19226
19227 2010-12-20  Bruno Haible  <bruno@clisp.org>
19228
19229         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
19230         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
19231         * doc/posix-functions/round.texi: Likewise.
19232         * doc/posix-functions/roundl.texi: Likewise.
19233
19234 2010-12-20  Bruno Haible  <bruno@clisp.org>
19235
19236         ttyname_r: Add missing declaration on HP-UX 11.
19237         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
19238         HAVE_TTYNAME_R.
19239         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
19240         declared. Set HAVE_TTYNAME_R always.
19241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19242         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
19243         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
19244         HAVE_TTYNAME_R.
19245         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
19246
19247 2010-12-20  Bruno Haible  <bruno@clisp.org>
19248
19249         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
19250         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
19251         * doc/posix-functions/getlogin_r.texi: Likewise.
19252         * tests/test-getlogin.c: Include <errno.h>.
19253         (main): Avoid test failure on HP-UX 11.11.
19254         * tests/test-getlogin_r.c (main): Likewise.
19255
19256 2010-12-20  Bruno Haible  <bruno@clisp.org>
19257
19258         getlogin_r: Add missing declaration on HP-UX 11.
19259         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
19260         declared also when it exists as a function.
19261         * doc/posix-functions/getlogin_r.texi: Document this workaround.
19262
19263 2010-12-20  Bruno Haible  <bruno@clisp.org>
19264
19265         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
19266         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
19267         through wcrtomb.
19268
19269 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19270
19271         ftoastr: fix comment
19272         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19273         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
19274
19275 2010-12-19  Bruno Haible  <bruno@clisp.org>
19276
19277         isnan: Ensure it is a macro.
19278         * lib/math.in.h (isnan): Define as a macro if not already a macro.
19279         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
19280         Solaris.
19281
19282 2010-12-19  Bruno Haible  <bruno@clisp.org>
19283
19284         ldexpl test: Fix link error on OSF/1 5.1.
19285         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
19286
19287 2010-12-19  Bruno Haible  <bruno@clisp.org>
19288
19289         wctype: Make it work in C++ mode on OSF/1 5.1.
19290         * lib/wctype.in.h (iswblank): Declare but not define here.
19291         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
19292         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
19293         * modules/wctype (Files): Add lib/iswblank.c.
19294
19295 2010-12-19  Bruno Haible  <bruno@clisp.org>
19296
19297         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
19298         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
19299         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
19300
19301 2010-12-19  Bruno Haible  <bruno@clisp.org>
19302
19303         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
19304         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
19305         _POSIX_PII_SOCKET.
19306         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
19307         * doc/posix-functions/recvfrom.texi: Likewise.
19308         * doc/posix-functions/send.texi: Likewise.
19309         * doc/posix-functions/sendto.texi: Likewise.
19310
19311 2010-12-19  Bruno Haible  <bruno@clisp.org>
19312
19313         tcgetsid: Add missing declaration on OSF/1 5.1.
19314         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
19315         HAVE_TCGETSID.
19316         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
19317         Don't set HAVE_TCGETSID.
19318         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
19319         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
19320         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
19321         HAVE_TCGETSID.
19322         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
19323
19324 2010-12-19  Bruno Haible  <bruno@clisp.org>
19325
19326         stdio: Fix problem with popen() declaration on OSF/1 5.1.
19327         * lib/stdio.in.h: During the include_next statement, let recursive
19328         includes of this file include only the system header file.
19329
19330 2010-12-19  Bruno Haible  <bruno@clisp.org>
19331
19332         iconv_open: Fix regression from 2010-12-04.
19333         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
19334         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
19335
19336 2010-12-19  Bruno Haible  <bruno@clisp.org>
19337
19338         stdbool test: Avoid a gcc warning.
19339         * tests/test-stdbool.c (main): Fail if e1 is false.
19340         Reported by Jim Meyering.
19341
19342 2010-12-19  Jim Meyering  <meyering@redhat.com>
19343
19344         setenv: restore to working order
19345         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
19346         mistakenly removed.
19347         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
19348         HAVE_SETENV.
19349         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
19350         HAVE_SETENV.
19351
19352 2010-12-19  Bruno Haible  <bruno@clisp.org>
19353
19354         Document some different function declarations on OSF/1 5.1.
19355         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
19356         * doc/posix-functions/inet_ntop.texi: Likewise.
19357         * doc/posix-functions/gethostname.texi: Likewise.
19358         * lib/unistd.in.h (gethostname): Update comment.
19359
19360 2010-12-19  Bruno Haible  <bruno@clisp.org>
19361
19362         doc: Mention vasprintf-posix module.
19363         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
19364         the 'vasprintf-posix' module.
19365         * doc/glibc-functions/vasprintf.texi: Likewise.
19366
19367 2010-12-19  Bruno Haible  <bruno@clisp.org>
19368
19369         unsetenv: Add missing declaration on OSF/1 5.1.
19370         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
19371         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
19372         Don't set HAVE_UNSETENV. In the test program, set _BSD.
19373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
19374         not HAVE_UNSETENV.
19375         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
19376         HAVE_UNSETENV.
19377         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
19378
19379 2010-12-19  Bruno Haible  <bruno@clisp.org>
19380
19381         setenv: Add missing declaration on OSF/1 5.1.
19382         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
19383         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
19384         declared. Don't set HAVE_SETENV.
19385         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
19386         not HAVE_SETENV.
19387         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
19388         HAVE_SETENV.
19389         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
19390
19391 2010-12-19  Bruno Haible  <bruno@clisp.org>
19392
19393         nl_langinfo tests: Avoid gcc warning.
19394         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
19395
19396 2010-12-19  Bruno Haible  <bruno@clisp.org>
19397
19398         mknod: Avoid error in C++ mode on OSF/1 with GCC.
19399         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
19400         _GL_CXXALIAS_SYS.
19401
19402 2010-12-19  Bruno Haible  <bruno@clisp.org>
19403
19404         stdbool: Relax test.
19405         * tests/test-stdbool.c (e): Don't require that casts from a variable's
19406         address to 'bool' work in static initializer, for compilers other than
19407         GCC.
19408
19409 2010-12-19  Bruno Haible  <bruno@clisp.org>
19410
19411         ftello: Add missing declaration on OSF/1 5.1.
19412         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
19413         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
19414         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
19415         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
19416         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
19417
19418 2010-12-19  Bruno Haible  <bruno@clisp.org>
19419
19420         fseeko: Add missing declaration on OSF/1 5.1.
19421         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
19422         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
19423         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
19424         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
19425         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
19426
19427 2010-12-19  Bruno Haible  <bruno@clisp.org>
19428
19429         fchdir: Add missing declaration on OSF/1 5.1.
19430         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
19431         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
19432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
19433         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
19434         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
19435
19436 2010-12-19  Bruno Haible  <bruno@clisp.org>
19437
19438         relocatable-prog-wrapper: Separate from relocatable-prog.
19439         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
19440         uninstall-relocwrapper rule here.
19441         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
19442         Reported by Ian Beckwith <ianb@erislabs.net>.
19443
19444 2010-12-19  Bruno Haible  <bruno@clisp.org>
19445
19446         unistr/u8-mbsnlen: Add missing dependency.
19447         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
19448         Reported by Ian Beckwith <ianb@erislabs.net>.
19449
19450 2010-12-19  Bruno Haible  <bruno@clisp.org>
19451
19452         iconv: Make it possible again to use this module without 'iconv-h'.
19453         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
19454         if it is not defined.
19455         Reported by Ian Beckwith <ianb@erislabs.net>.
19456
19457 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19458
19459         acl: port to Solaris 8 when copying from tmpfs to ufs
19460         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
19461         error number.  Problem observed on Solaris 8 with latest
19462         coreutils, with "mv A B", where A is on a tmpfs file system and B
19463         is on a ufs file system.  This caused coreutils' mv/part-symlink
19464         test to fail.
19465
19466         tests: set fail=0 at start
19467         * tests/init.sh (setup_): Move fail=0 initialization here ...
19468         (mktempd_): ... from here, so that tests can rely on fail being
19469         set to 0 initially.  This fixes a problem in coreutils; see:
19470         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
19471
19472 2010-12-18  Bruno Haible  <bruno@clisp.org>
19473
19474         memmem-simple: Stylistic changes.
19475         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
19476         Fix preprocessor directive indentation.
19477
19478 2010-12-15  Pádraig Brady <P@draigBrady.com>
19479
19480         memmem, memmem-simple: reorganize and expand empty needle check
19481         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
19482         functional checks to memmem-simple so that one has a fully functional
19483         memmem by using just this module.
19484         Restrict the performance only check to the memmem module.
19485         Also expand the empty needle check to ensure the correct
19486         pointer is returned, not just a non NULL pointer.
19487         * doc/glibc-functions/memmem.texi: Rearrange the portability
19488         documentation to correlate with the rearranged checks.
19489         Clarify exactly how the memmem and memmem-simple modules
19490         relate to each other.
19491
19492 2010-12-15  Pádraig Brady <P@draigBrady.com>
19493             Bruno Haible  <bruno@clisp.org>
19494
19495         Improve cross-compilation guesses for uClibc.
19496         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
19497         that uClibc does not have the glibc bug.
19498         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19499         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
19500
19501 2010-12-14  Eric Blake  <eblake@redhat.com>
19502
19503         configmake: provide fallbacks for oldest supported autotools
19504         * m4/configmake.m4: New file.
19505         * modules/configmake (Files): Ship it.
19506         (configure.ac): Use it to guarantee fallbacks.
19507
19508 2010-12-13  Pádraig Brady <P@draigBrady.com>
19509
19510         read-file: Improve handling of large files
19511         * lib/read-file.c (fread_file): Minimize realloc()s
19512         for regular files, and better manage sizes around SIZE_MAX.
19513
19514 2010-12-13  Eric Blake  <eblake@redhat.com>
19515
19516         cloexec, fcntl: relax license
19517         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
19518         consent from all contributors.
19519         * modules/fcntl (License): Likewise.
19520
19521 2010-12-10  Bruno Haible  <bruno@clisp.org>
19522
19523         Tests for module 'pipe-posix'.
19524         * modules/pipe-posix-tests: New file.
19525         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
19526
19527 2010-12-10  Bruno Haible  <bruno@clisp.org>
19528
19529         pipe-posix: Make it work in C++ mode.
19530         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
19531         (pipe): Use common idiom, not a macro definition.
19532         * lib/pipe.c: New file.
19533         * m4/pipe.m4: New file.
19534         * modules/pipe-posix (Description): Enhance.
19535         (Files): Add lib/pipe.c, m4/pipe.m4.
19536         (configure.ac): Invoke gl_FUNC_PIPE.
19537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
19538         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
19539         * tests/test-unistd-c++.cc: Check the signature of pipe.
19540
19541 2010-12-10  Bruno Haible  <bruno@clisp.org>
19542
19543         Rename module 'pipe' to 'spawn-pipe'.
19544         * modules/spawn-pipe: New file, renamed from modules/pipe.
19545         (Files, configure.ac, Makefile.am): Update.
19546         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
19547         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
19548         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
19549         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
19550         "spawn-pipe.h" instead of "pipe.h".
19551         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
19552         to gl_SPAWN_PIPE.
19553         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
19554         (Files, Makefile.am): Update.
19555         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
19556         Update.
19557         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
19558         Include "spawn-pipe.h" instead of "pipe.h".
19559         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
19560         * lib/javacomp.c: Likewise.
19561         * lib/javaversion.c: Likewise.
19562         * lib/pipe-filter-gi.c: Likewise.
19563         * lib/pipe-filter-ii.c: Likewise.
19564         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
19565         * modules/javacomp (Depends-on): Likewise.
19566         * modules/javaversion (Depends-on): Likewise.
19567         * modules/pipe-filter-gi (Depends-on): Likewise.
19568         * modules/pipe-filter-ii (Depends-on): Likewise.
19569         * MODULES.html.sh (Executing programs): Update.
19570         * NEWS: Mention the change.
19571
19572 2010-12-10  Eric Blake  <eblake@redhat.com>
19573
19574         pipe-posix: new module
19575         * modules/pipe-posix: New file.
19576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
19577         (gl_UNISTD_H): Check for declaration.
19578         * modules/unistd (Makefile.am): Substitute it.
19579         * lib/unistd.in.h (pipe): Provide it for mingw.
19580         * doc/posix-functions/pipe.texi (pipe): Update documentation.
19581         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
19582
19583 2010-12-07  Bruno Haible  <bruno@clisp.org>
19584
19585         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
19586         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
19587         u8_strcmp_gnu.
19588         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
19589
19590 2010-12-06  Bruno Haible  <bruno@clisp.org>
19591
19592         Update internal documentation.
19593         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
19594
19595 2010-12-04  Bruno Haible  <bruno@clisp.org>
19596
19597         Put more information about failed tests into the test return codes.
19598         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
19599         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
19600         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19601         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19602         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19603         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19604         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19605         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19606         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
19607         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19608         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
19609         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19610         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19611         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19612         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
19613         returns a bit mask.
19614         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19615         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
19616         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
19617         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19618         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19619         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19620         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19621         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19622         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19623         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19624         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19625         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19626         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19627         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19628         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19629         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19630         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
19631         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
19632         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19633         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
19634         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19635         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19636         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19637         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19638         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19639         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19640         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19641         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19642         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19643         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
19644         gl_PRINTF_PRECISION): Likewise.
19645         * m4/regex.m4 (gl_REGEX): Likewise.
19646         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19647         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19648         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
19649         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19650         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19651         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19652         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19653         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
19654         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19655         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19656         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19657         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19658         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19659         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19660         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19661         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19662         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19663         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19664         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19665         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
19666         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
19667         enumerated value.
19668         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
19669
19670 2010-12-04  Bruno Haible  <bruno@clisp.org>
19671
19672         Update for Solaris 11 2010-11.
19673         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
19674         Express, released in November 2010.
19675
19676 2010-12-04  Bruno Haible  <bruno@clisp.org>
19677
19678         nproc: Relax license.
19679         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
19680         and Paul Eggert.
19681         Requested by Ludovic Courtès <ludo@gnu.org>.
19682
19683 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19684
19685         utimecmp: fine-grained src to nearby coarse-grained dest
19686
19687         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
19688         and the source is on a file system with higher-resolution time
19689         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
19690         not work, and the time stamps are close together, the algorithm to
19691         determine the exact resolution from the read-back mtime was buggy:
19692         it had a "!=" where it should have had an "==".  This bug has been
19693         in the code ever since it was introduced to gnulib.
19694         Problem reported by Dan Jacobson in
19695         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
19696
19697 2010-11-30  Bruno Haible  <bruno@clisp.org>
19698
19699         strerror_r-posix: Fix autoconf test.
19700         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
19701
19702 2010-11-28  Bruno Haible  <bruno@clisp.org>
19703             Paul Eggert  <eggert@cs.ucla.edu>
19704
19705         Tests for module 'getdomainname'.
19706         * modules/getdomainname-tests: New file.
19707         * tests/test-getdomainname.c: New file, based on
19708         tests/test-gethostname.c.
19709
19710 2010-11-28  Bruno Haible  <bruno@clisp.org>
19711             Paul Eggert  <eggert@cs.ucla.edu>
19712
19713         getdomainname: Use the system function when possible.
19714         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
19715         (getdomainname): Replace if needed. Provide the declaration if it is
19716         missing. Don't use _GL_CXXALIAS_SYS_CAST.
19717         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
19718         (getdomainname): When the system has getdomainname, call the system
19719         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
19720         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19721         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
19722         found in libnsl. Look for the declaration also in <netdb.h>. Replace
19723         the function if its second argument is of type 'int' or if it is found
19724         in libnsl.
19725         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
19726         <sys/systeminfo.h> and sysinfo().
19727         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
19728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19729         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
19730         HAVE_GETDOMAINNAME.
19731         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
19732         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
19733         * doc/glibc-functions/getdomainname.texi: Document the problems with
19734         the getdomainname declaration.
19735
19736 2010-11-28  Bruno Haible  <bruno@clisp.org>
19737
19738         sys_socket: Ensure ss_family field on AIX.
19739         * lib/sys_socket.in.h (ss_family): New macro definition.
19740         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
19741         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
19742         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19743         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19744         * modules/sys_socket (Makefile.am): Substitute
19745         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19746         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
19747
19748 2010-11-27  Bruno Haible  <bruno@clisp.org>
19749
19750         readline: Improve configure output.
19751         * m4/readline.m4 (gl_FUNC_READLINE): Make the
19752         "checking for readline..." result understandable.
19753
19754 2010-11-27  Bruno Haible  <bruno@clisp.org>
19755
19756         *printf-posix: Detect a bug on Solaris 10/x86.
19757         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
19758         for floating-point output.
19759         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
19760         directive.
19761         * tests/test-snprintf-posix.h (test_function): Likewise.
19762         * tests/test-sprintf-posix.h (test_function): Likewise.
19763         * tests/test-vasprintf-posix.c (test_function): Likewise.
19764         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
19765         * doc/posix-functions/printf.texi: Likewise.
19766         * doc/posix-functions/snprintf.texi: Likewise.
19767         * doc/posix-functions/sprintf.texi: Likewise.
19768         * doc/posix-functions/vfprintf.texi: Likewise.
19769         * doc/posix-functions/vprintf.texi: Likewise.
19770         * doc/posix-functions/vsnprintf.texi: Likewise.
19771         * doc/posix-functions/vsprintf.texi: Likewise.
19772         * doc/glibc-functions/obstack_printf.texi: Likewise.
19773         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19774
19775 2010-11-27  Bruno Haible  <bruno@clisp.org>
19776
19777         Fix link error when module libunistring-optional is in use.
19778         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
19779         * modules/striconveha-tests (Makefile.am): Likewise.
19780
19781 2010-11-27  Bruno Haible  <bruno@clisp.org>
19782
19783         regex: Mention link dependencies.
19784         * modules/regex (Link): New section.
19785         * modules/rpmatch (Link): Likewise.
19786         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
19787
19788 2010-11-27  Bruno Haible  <bruno@clisp.org>
19789
19790         ftoastr: Fix compilation error on Solaris.
19791         * lib/ftoastr.c: Include <config.h>.
19792
19793 2010-11-27  Bruno Haible  <bruno@clisp.org>
19794
19795         getloadavg: Update documentation.
19796         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
19797
19798 2010-11-27  Bruno Haible  <bruno@clisp.org>
19799
19800         sys_socket: Fix test whether the functions are declared.
19801         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
19802         not <sys/select.h>.
19803
19804 2010-11-27  Bruno Haible  <bruno@clisp.org>
19805
19806         getpass: Make sure to get system declaration on some platforms.
19807         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
19808         gl_USE_SYSTEM_EXTENSIONS.
19809         * modules/getpass (Depends-on): Add extensions.
19810
19811 2010-11-26  Bruno Haible  <bruno@clisp.org>
19812
19813         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
19814         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
19815         'iconv' module is present.
19816         (ICONV_CONST): New macro.
19817         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
19818         ICONV_CONST.
19819         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
19820         set ICONV_CONST.
19821         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
19822         here.
19823         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
19824         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
19825         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
19826         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
19827         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
19828         present.
19829
19830 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19831
19832         ftoastr: comment fix
19833         * lib/ftoastr.c: "little" -> "little or no" in comment
19834
19835 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19836
19837         stdint: port to GCC 4.3 + OSX + Octave
19838         On this platform, stdint.h is buggy and defines int64_t to long
19839         long int.  The replacement defined it to long int, causing
19840         problems with C++ style name mangling.  Instead, trust the system
19841         definition if INT64_MAX is defined, and likewise for the unsigned
19842         variant.   Problem reported by Jarno Rajahalme in
19843         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
19844         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
19845         and don't mess with int64_t and INT64_MAX in this case.
19846         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
19847
19848 2010-11-24  Bruno Haible  <bruno@clisp.org>
19849
19850         doc: Corrections regarding MacOS X 10.4 and 10.5.
19851         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
19852         MacOS X.
19853         Reported by Simon Josefsson.
19854
19855 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
19856
19857         Uninstall ".bin" files installed by relocwrapper.
19858         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
19859         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
19860         unless it is already there.
19861
19862 2010-11-21  Bruno Haible  <bruno@clisp.org>
19863
19864         Update for NetBSD 5.0.
19865         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19866         NetBSD; the test fails on NetBSD 5.0.
19867         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19868         about NetBSD.
19869
19870 2010-11-21  Bruno Haible  <bruno@clisp.org>
19871
19872         Update for HP-UX 11.23 and HP-UX 11.31.
19873         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
19874         HP-UX.
19875
19876 2010-11-21  Bruno Haible  <bruno@clisp.org>
19877
19878         Update for MacOS X 10.5.
19879         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19880         MacOS X; the test fails on MacOS X 10.5.8.
19881         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19882         about MacOS X.
19883
19884 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
19885
19886         bootstrap: add bootstrap_sync option.
19887         See discussion at
19888         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
19889         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
19890         * build-aux/bootstrap: Accept --bootstrap-sync to update
19891         bootstrap if it is not identical to the local gnulib's
19892         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
19893         enable this by default.  Accept --no-bootstrap-sync to disable
19894         it.
19895
19896 2010-11-20  Bruno Haible  <bruno@clisp.org>
19897
19898         Ensure that <features.h> is included before __GLIBC__ is tested.
19899         * lib/printf-parse.h: Include <features.h>.
19900         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
19901         Reported by Mike Frysinger <vapier@gentoo.org>.
19902
19903         Ensure that <features.h> is included before __GLIBC__ is tested.
19904         * lib/wchar.in.h: Include <features.h>.
19905         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
19906         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
19907         Reported by Mike Frysinger <vapier@gentoo.org>.
19908
19909         Ensure that <features.h> is included before __GLIBC__ is tested.
19910         * lib/arpa_inet.in.h: Include <features.h>.
19911         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
19912         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
19913         Reported by Mike Frysinger <vapier@gentoo.org>.
19914
19915         Ensure that <features.h> is included before __GLIBC__ is tested.
19916         * build-aux/link-warning.h: Include <features.h>.
19917         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
19918         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
19919         Reported by Mike Frysinger <vapier@gentoo.org>.
19920
19921         Ensure that <features.h> is included before __GLIBC__ is tested.
19922         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
19923         Reported by Mike Frysinger <vapier@gentoo.org>.
19924
19925 2010-11-20  Bruno Haible  <bruno@clisp.org>
19926
19927         memmem: Fix autoconf test.
19928         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
19929
19930 2010-11-20  Bruno Haible  <bruno@clisp.org>
19931
19932         Port to uClibc.
19933         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
19934         * lib/fcntl.in.h: Likewise.
19935         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
19936         * lib/mbrtowc.c (mbrtowc): Likewise.
19937         * lib/relocatable.c (find_shared_library_fullname): Likewise.
19938         * lib/strerror_r.c: Likewise.
19939         * lib/unistr/u8-strnlen.c: Likewise.
19940         * lib/vasnprintf.c (decimal_point_char): Likewise.
19941         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19942         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19943         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19944         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
19945         * tests/test-sigaction.c (handler, main): Likewise.
19946         * lib/freading.h: Treat uClibc like a non-glibc platform.
19947         * lib/freading.c: Likewise.
19948         * lib/gettext.h: Likewise.
19949         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
19950         Likewise.
19951         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
19952         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19953         * lib/propername.c (proper_name_utf8): Likewise.
19954         * lib/spawn.in.h: Likewise.
19955         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
19956         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
19957         mem_cd_iconveh_internal): Likewise.
19958         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
19959         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19960         strstr, strcasestr): Likewise.
19961         * lib/unicodeio.c (unicode_to_mb): Likewise.
19962         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
19963         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
19964         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
19965         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
19966         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
19967         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
19968         * lib/unistr/u8-stpncpy.c: Likewise.
19969         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19970         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
19971         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19972         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19973         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
19974         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
19975         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
19976         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
19977         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19978         Likewise.
19979         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19980         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19981         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19982         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19983         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19984         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19985         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19986         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19987         * tests/test-getopt.h (OPTIND_MIN): Likewise.
19988         * tests/test-striconveha.c (main): Likewise.
19989         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19990         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
19991         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
19992         * doc/posix-functions/getline.texi: Likewise.
19993         Reported by Mike Frysinger <vapier@gentoo.org>.
19994
19995 2010-11-20  Bruno Haible  <bruno@clisp.org>
19996
19997         nproc: Fix condition.
19998         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
19999         HAVE_PTHREAD_AFFINITY_NP.
20000
20001 2010-11-20  Bruno Haible  <bruno@clisp.org>
20002
20003         Fix a comment.
20004         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
20005
20006 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
20007
20008         ftoastr: don't assume snprintf
20009         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
20010         Implement a subset of snprintf here, by using sprintf safely.
20011         * modules/ftoastr (Depends-on): Remove snprintf.
20012
20013 2010-11-19  Jim Meyering  <meyering@redhat.com>
20014
20015         test-rename.h: fix compilation failure
20016         * tests/test-rename.h (test_rename): Add omitted "}".
20017
20018 2010-11-17  Jim Meyering  <meyering@redhat.com>
20019
20020         maint.mk: add a URL discussing the no-@acronym policy
20021         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
20022
20023 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
20024
20025         ftoastr: depend on snprintf, improve comments
20026         * lib/ftoastr.c: Also mention Loitsch's draft.
20027         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
20028         needed in the current implementation, but it might simplify
20029         speeding up the code later.
20030         * modules/ftoastr: Depend on snprintf; this improves portability.
20031         Suggested by Bruno Haible in the same email.
20032
20033         ftoastr: port to hosts lacking strtof and strtold
20034         Problem reported by Bruno Haible in
20035         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
20036         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
20037         environment and strtold (and presumably strtof) are not available.
20038         * modules/ftoastr (Files): Add m4/c-strtod.m4.
20039         (configure.ac): Require gl_C99_STRTOLD.
20040
20041 2010-11-18  Bruno Haible  <bruno@clisp.org>
20042
20043         c-strtold: Avoid link error on AIX 7.
20044         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
20045         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
20046         (gl_C_STRTOLD): Test whether strtold_l exists.
20047         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20048
20049 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20050
20051         intprops: new macro INT_BITS_STRLEN_BOUND
20052         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
20053         ftoastr.h.  This exposes an internal of intprops.h that was formerly
20054         not exposed.  Also, it uses a slightly tighter bound than before;
20055         though this makes no practical difference, we might as well be as
20056         tight as we easily can.
20057
20058         ftoastr: new module, for lossless conversion of floats to short strings
20059         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
20060         * modules/ftoastr: New files.
20061
20062 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
20063
20064         bootstrap: port to Solaris sed
20065         * build-aux/bootstrap (get_version): Port to Solaris sed.
20066         See Ralf Wildenhues's note in
20067         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
20068
20069 2010-11-14  Jim Meyering  <meyering@redhat.com>
20070
20071         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
20072         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
20073         and move definition closer to sole use.
20074
20075 2010-11-13  Jim Meyering  <meyering@redhat.com>
20076
20077         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
20078         Now we require at least autoconf-2.59, which means the work-around
20079         is no longer needed.
20080         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
20081         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20082         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
20083         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
20084         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20085
20086 2010-11-13  Bruno Haible  <bruno@clisp.org>
20087
20088         rename, renameat: Avoid test failures at NFS mounted locations.
20089         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
20090         functions.
20091         (test_rename): Use assert_nonexistent.
20092         * tests/test-rename.c: Include <dirent.h>.
20093         * tests/test-renameat.c: Likewise.
20094         Reported by Gary V. Vaughan <gary@gnu.org>.
20095
20096         rename, renameat: Document Linux bug with NFS
20097         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
20098         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
20099         * doc/posix-functions/renameat.texi: Likewise.
20100         Suggested by Eric Blake.
20101
20102 2010-11-13  Bruno Haible  <bruno@clisp.org>
20103
20104         rename test: Add comments.
20105         * tests/test-rename.h (test_rename): Add structure and comments.
20106
20107 2010-11-13  Eric Blake  <eblake@redhat.com>
20108
20109         maintainer-makefile: cover a few more files
20110         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
20111         scripts generated within C files, for libvirt.
20112
20113 2010-11-13  Bruno Haible  <bruno@clisp.org>
20114
20115         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
20116         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
20117         character, return the number of bytes that belong together, not always
20118         1.
20119         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
20120         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
20121         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
20122         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
20123         number of bytes of an invalid character.
20124         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
20125         (main): Invoke it.
20126         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
20127         results.
20128         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
20129         malformed byte sequences.
20130         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
20131         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
20132         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
20133         Reported by Ben Pfaff and Paolo Bonzini.
20134
20135 2010-11-13  Bruno Haible  <bruno@clisp.org>
20136
20137         openat: Work around glibc bug with fchownat() and empty file names.
20138         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
20139         (gl_FUNC_FCHOWNAT): Invoke it.
20140         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
20141         * doc/posix-functions/fchownat.texi: Document the glibc bug.
20142         Reported by Gary V. Vaughan <gary@gnu.org>.
20143
20144 2010-11-13  Bruno Haible  <bruno@clisp.org>
20145
20146         openat: Ensure autoconf macro ordering.
20147         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
20148         gl_USE_SYSTEM_EXTENSIONS.
20149         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
20150
20151 2010-11-13  Bruno Haible  <bruno@clisp.org>
20152
20153         Update comments.
20154         * lib/unistr/u8-check.c: Update file name in comments.
20155         * lib/unistr/u8-mblen.c: Likewise.
20156         * lib/unistr/u8-prev.c: Likewise.
20157         * lib/unistr/u8-strmblen.c: Likewise.
20158         * lib/unistr/u8-strmbtouc.c: Likewise.
20159
20160 2010-11-13  Jim Meyering  <meyering@redhat.com>
20161
20162         tests: avoid test failure on Solaris 10 due to lack of PATH export
20163         * tests/test-update-copyright.sh: Don't forget to export PATH.
20164
20165         init.sh: ensure that IFS is defined, just in case...
20166         * tests/init.sh (setup_): Ensure that IFS is defined,
20167         so that saving and restoring it works as expected.  This
20168         appears to be useful at least for an old version of dash
20169         from a long time ago (RH 6).  See here for details:
20170         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
20171
20172         maint.mk: tighten "test a == b" check
20173         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
20174         test to files that contain something like #!/bin/sh.
20175         Without this, coreutils would get two false positives in
20176         the comments of C source files.
20177
20178 2010-11-12  Eric Blake  <eblake@redhat.com>
20179
20180         bootstrap: fix typo in previous attempt
20181         * build-aux/bootstrap (buildreq): Correct the grouping.
20182         Reported by Paul Eggert.
20183
20184         maintainer-makefile: prohibit test x == x
20185         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
20186         Based on a report by Matthias Bolte.
20187
20188         bootstrap: allow FreeBSD gzip
20189         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
20190         which has no '.' and goes to stderr.
20191         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
20192         Reported by Matthias Bolte.
20193
20194         maintainer-makefile: check for i18n setup
20195         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
20196         will likely work.
20197
20198 2010-11-12  Bruno Haible  <bruno@clisp.org>
20199
20200         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
20201         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
20202         * lib/nanosleep.c (nanosleep): Likewise.
20203
20204 2010-11-11  Bruno Haible  <bruno@clisp.org>
20205
20206         fcntl-h: Fix for use of C++ on glibc systems.
20207         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
20208         also on glibc systems in C++ mode.
20209         Reported by Gary V. Vaughan <gary@gnu.org>.
20210
20211 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20212
20213         mknod: avoid false failure with dash
20214         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
20215
20216 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20217
20218         unlink: Fix "is it should" typo in diagnostic.
20219         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
20220         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
20221
20222 2010-11-11  Bruno Haible  <bruno@clisp.org>
20223
20224         Tests for module 'strerror_r-posix'.
20225         * modules/strerror_r-posix-tests: New file.
20226         * tests/test-strerror_r.c: New file.
20227         * tests/test-string-c++.cc: Check the signature of strerror_r.
20228
20229         New module 'strerror_r-posix'.
20230         * lib/string.in.h (strerror_r): New declaration.
20231         * lib/strerror_r.c: New file.
20232         * m4/strerror_r.m4: New file.
20233         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
20234         of strerror_r.
20235         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
20236         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20237         * modules/strerror_r-posix: New file.
20238         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
20239         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20240         * doc/posix-functions/strerror_r.texi: Mention the new module and the
20241         portability problems.
20242
20243 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
20244
20245         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
20246         line is also considered for output. Quoted function name in shell
20247         command, so temporary files for functions like MyClass::operator()
20248         are removed correctly without errors.
20249
20250 2010-11-09  Bruno Haible  <bruno@clisp.org>
20251
20252         * doc/posix-functions/strerror.texi: List more failing platforms.
20253
20254         * doc/posix-functions/strerror.texi: Add a comment.
20255
20256 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20257
20258         fdopendir: fix bug on MacOS X when low on file descriptors
20259
20260         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
20261         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
20262         All callers changed.
20263         (fdopendir): Invoke save_cwd at the top level, not after using
20264         multiple dup() calls to use up file descriptors.  Then retry
20265         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
20266         less than the maximum number of open file descriptors, because
20267         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
20268         on Mac OS X 10.6.4 for tar 1.24
20269         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
20270         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
20271         and for tar 1.25
20272         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
20273
20274 2010-11-07  Bruno Haible  <bruno@clisp.org>
20275
20276         vasnprintf: Support I flag on glibc systems.
20277         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
20278         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
20279         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
20280         snprintf function.
20281         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
20282         glibc systems.
20283         * tests/test-vasnprintf-posix3.c: New file.
20284         * modules/vasnprintf-posix-tests (Files): Add it.
20285         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
20286
20287 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20288
20289         [html] Fix copy/paste bug: Use unique name for compiler warnings.
20290         * MODULES.html.sh: For compiler warnings, use name
20291         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
20292
20293 2010-11-05  Eric Blake  <eblake@redhat.com>
20294
20295         ceil, floor: avoid spurious failure with icc
20296         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
20297         [denormals-as-zero] when optimizing without -mieee-fp option.
20298         * tests/test-floorf2.c (floorf_reference): Likewise.
20299         * tests/test-ceilf1.c (dummy): New function.
20300         (main): Use it to outsmart icc's optimization.
20301         * tests/test-floorf1.c (dummy, main): Likewise.
20302
20303         tests: require working signbit
20304         * modules/ceilf-tests (Depends-on): Add signbit.
20305         * modules/ceill-tests (Depends-on): Likewise.
20306         * modules/floorf-tests (Depends-on): Likewise.
20307         * modules/floorl-tests (Depends-on): Likewise.
20308         * modules/round-tests (Depends-on): Likewise.
20309         * modules/roundf-tests (Depends-on): Likewise.
20310         * modules/roundl-tests (Depends-on): Likewise.
20311         * modules/trunc-tests (Depends-on): Likewise.
20312         * modules/truncf-tests (Depends-on): Likewise.
20313         * modules/truncl-tests (Depends-on): Likewise.
20314
20315         strtod: work around icc bug
20316         * lib/strtod.c (minus_zero): Define to working value.
20317         (strtod): Use it to avoid icc bug.
20318
20319         copysign: enhance tests
20320         * modules/copysign-tests (Files): Add minus-zero.h.
20321         * tests/test-copysign.c (main): Also test zeros.
20322
20323 2010-11-04  Eric Blake  <eblake@redhat.com>
20324
20325         ceil, floor, round, trunc: enhance tests of -0
20326         * tests/test-ceilf1.c (main): Ensure correct sign of result.
20327         * tests/test-ceill.c (main): Likewise.
20328         * tests/test-floorf1.c (main): Likewise.
20329         * tests/test-floorl.c (main): Likewise.
20330         * tests/test-round1.c (main): Likewise.
20331         * tests/test-roundf1.c (main): Likewise.
20332         * tests/test-roundl.c (main): Likewise.
20333         * tests/test-trunc1.c (main): Likewise.
20334         * tests/test-truncf1.c (main): Likewise.
20335         * tests/test-truncl.c (main): Likewise.
20336
20337 2010-11-04  Eric Blake  <eblake@redhat.com>
20338
20339         frexp, tests: work around ICC bug with -zero
20340         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
20341         works with more compilers.
20342         * tests/minus-zero.h: New file.
20343         * modules/ceilf-tests (Files): Include it.
20344         * modules/ceill-tests (Files): Likewise.
20345         * modules/floorf-tests (Files): Likewise.
20346         * modules/floorl-tests (Files): Likewise.
20347         * modules/frexp-nolibm-tests (Files): Likewise.
20348         * modules/frexp-tests (Files): Likewise.
20349         * modules/frexpl-nolibm-tests (Files): Likewise.
20350         * modules/frexpl-tests (Files): Likewise.
20351         * modules/isnan-tests (Files): Likewise.
20352         * modules/isnand-nolibm-tests (Files): Likewise.
20353         * modules/isnand-tests (Files): Likewise.
20354         * modules/isnanf-nolibm-tests (Files): Likewise.
20355         * modules/isnanf-tests (Files): Likewise.
20356         * modules/isnanl-nolibm-tests (Files): Likewise.
20357         * modules/isnanl-tests (Files): Likewise.
20358         * modules/round-tests (Files): Likewise.
20359         * modules/roundf-tests (Files): Likewise.
20360         * modules/roundl-tests (Files): Likewise.
20361         * modules/ldexpl-tests (Files): Likewise.
20362         * modules/signbit-tests (Files): Likewise.
20363         * modules/snprintf-posix-tests (Files): Likewise.
20364         * modules/sprintf-posix-tests (Files): Likewise.
20365         * modules/strtod-tests (Files): Likewise.
20366         * modules/trunc-tests (Files): Likewise.
20367         * modules/truncf-tests (Files): Likewise.
20368         * modules/truncl-tests (Files): Likewise.
20369         * modules/vsnprintf-posix-tests (Files): Likewise.
20370         * modules/vsprintf-posix-tests (Files): Likewise.
20371         * modules/vasnprintf-posix-tests (Files): Likewise.
20372         * modules/vasprintf-posix-tests (Files): Likewise.
20373         * tests/test-ceilf1.c (main): Use it.
20374         * tests/test-ceill.c (main): Likewise.
20375         * tests/test-floorf1.c (main): Likewise.
20376         * tests/test-floorl.c (main): Likewise.
20377         * tests/test-frexp.c (main): Likewise.
20378         * tests/test-frexpl.c (main): Likewise.
20379         * tests/test-isnan.c (main): Likewise.
20380         * tests/test-isnand.h (main): Likewise.
20381         * tests/test-isnanf.h (main): Likewise.
20382         * tests/test-isnanl.h (main): Likewise.
20383         * tests/test-ldexpl.c (main): Likewise.
20384         * tests/test-round.c (main): Likewise.
20385         * tests/test-roundf.c (main): Likewise.
20386         * tests/test-roundl.c (main): Likewise.
20387         * tests/test-signbit.c (test_signbitf, test_signbitd)
20388         (test_signbitl): Likewise.
20389         * tests/test-snprintf-posix.h (test_function): Likewise.
20390         * tests/test-sprintf-posix.h (test_function): Likewise.
20391         * tests/test-strtod.c (main): Likewise.
20392         * tests/test-trunc1.c (main): Likewise.
20393         * tests/test-truncf1.c (main): Likewise.
20394         * tests/test-truncl.c (main): Likewise.
20395
20396         isnanl: work around icc bug
20397         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
20398
20399 2010-11-03  Eric Blake  <eblake@redhat.com>
20400
20401         tests: fix compiler warnings
20402         * tests/test-getopt.h (test_getopt): Fix condition.
20403         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20404         * tests/test-pipe2.c (main): Likewise.
20405         * tests/test-quotearg-simple.c (main): Avoid icc warning.
20406
20407         utimens: fix broken m4 test
20408         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
20409
20410 2010-10-28  Bruno Haible  <bruno@clisp.org>
20411
20412         posix_spawn*, getdtablesize: Relax license.
20413         * modules/posix_spawn (License): Change to LGPLv2+.
20414         * modules/posix_spawnp (License): Likewise.
20415         * modules/posix_spawn-internal (License): Likewise.
20416         * modules/posix_spawnattr_init (License): Likewise.
20417         * modules/posix_spawnattr_getflags (License): Likewise.
20418         * modules/posix_spawnattr_setflags (License): Likewise.
20419         * modules/posix_spawnattr_getpgroup (License): Likewise.
20420         * modules/posix_spawnattr_setpgroup (License): Likewise.
20421         * modules/posix_spawnattr_getschedparam (License): Likewise.
20422         * modules/posix_spawnattr_setschedparam (License): Likewise.
20423         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
20424         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
20425         * modules/posix_spawnattr_getsigdefault (License): Likewise.
20426         * modules/posix_spawnattr_setsigdefault (License): Likewise.
20427         * modules/posix_spawnattr_getsigmask (License): Likewise.
20428         * modules/posix_spawnattr_setsigmask (License): Likewise.
20429         * modules/posix_spawnattr_destroy (License): Likewise.
20430         * modules/posix_spawn_file_actions_init (License): Likewise.
20431         * modules/posix_spawn_file_actions_addclose (License): Likewise.
20432         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
20433         * modules/posix_spawn_file_actions_addopen (License): Likewise.
20434         * modules/posix_spawn_file_actions_destroy (License): Likewise.
20435         * modules/getdtablesize (License): Likewise.
20436         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
20437
20438 2010-10-26  Bruno Haible  <bruno@clisp.org>
20439
20440         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
20441         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
20442         Cygwin and mingw.
20443         Suggested by Eric Blake.
20444
20445 2010-10-26  Bruno Haible  <bruno@clisp.org>
20446
20447         stdio: Work around compilation error due to renameat() on Solaris 10.
20448         * lib/stdio.in.h: Include <unistd.h> on Solaris.
20449         * lib/renameat.c: Don't include <unistd.h> here.
20450         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
20451         Reported by Paul Eggert and Eric Blake.
20452
20453 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
20454
20455         renameat: port to Solaris 10, which declares renameat in unistd.h
20456
20457         * lib/renameat.c: Include unistd.h before stdio.h, because
20458         Solaris 10 declares renameat in unistd.h.  Problem encountered
20459         when building GNU tar 1.24 on Solaris 10.
20460
20461 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20462
20463         fdopendir: fix C89 compilation
20464         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
20465         compilers.
20466
20467 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
20468
20469         inttostr: simplify by removing unnecessary redundancy
20470         * lib/anytostr.c: Don't include verify.h.
20471         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
20472         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
20473         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
20474         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
20475         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
20476         Likewise.
20477         * modules/inttostr (Depends-on): Remove 'verify'.
20478
20479 2010-10-23  Bruno Haible  <bruno@clisp.org>
20480
20481         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
20482         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
20483         Reported by Eric Blake.
20484
20485 2010-10-23  Bruno Haible  <bruno@clisp.org>
20486
20487         Tests: Fix LOCALE_JA on MirBSD 10.
20488         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
20489         to an UTF-8 locale.
20490         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
20491         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20492         Reported by Eric Blake.
20493
20494 2010-10-21  Bruno Haible  <bruno@clisp.org>
20495
20496         nl_langinfo test: Avoid test failure on NetBSD 5.
20497         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
20498         Reported by Eric Blake.
20499
20500 2010-10-21  Eric Blake  <eblake@redhat.com>
20501
20502         c-stack: work around libsigsegv 2.8 bug
20503         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
20504         overflow on at least PowerPC64.
20505
20506 2010-10-17  Bruno Haible  <bruno@clisp.org>
20507
20508         userspec: Drop redundant file.
20509         * modules/userspec (Files): Remove lib/inttostr.h.
20510
20511 2010-10-17  Bruno Haible  <bruno@clisp.org>
20512
20513         nl_langinfo tests: Silence some warnings.
20514         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
20515         Reported by Jim Meyering.
20516
20517 2010-10-17  Bruno Haible  <bruno@clisp.org>
20518
20519         Make use of GCC's attribute __alloc_size__.
20520         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
20521         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
20522         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
20523         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
20524         __alloc_size__.
20525         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20526         Suggested by Jim Meyering.
20527
20528 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
20529
20530         bootstrap: anchor .gitignore entries.
20531         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
20532         with...
20533         (insert_vc_ignore): ... this new function, which prepends `/' to
20534         all .gitignore entries before passing them to
20535         insert_sorted_if_absent.
20536
20537 2010-10-16  Bruno Haible  <bruno@clisp.org>
20538
20539         nextafter: Fix configure check.
20540         * modules/nextafter (configure.ac): Correct expected prototype.
20541
20542 2010-10-16  Bruno Haible  <bruno@clisp.org>
20543
20544         termios: Update documentation.
20545         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
20546
20547 2010-10-16  Bruno Haible  <bruno@clisp.org>
20548
20549         tests: Make them compile with TinyCC.
20550         * tests/test-strstr.c (main): Remove parentheses around array
20551         initializer.
20552
20553 2010-10-15  Eric Blake  <eblake@redhat.com>
20554
20555         ignore-value: make header idempotent
20556         * lib/ignore-value.h: Add double-inclusion guards.
20557         Reported by Stefan Berger.
20558
20559 2010-10-15  Jim Meyering  <meyering@redhat.com>
20560
20561         GNUmakefile: handle "stable" target, not "major"
20562         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
20563         lists in maint.mk and announce-gen.  Without this, "make stable"
20564         would fail to ensure that $(VERSION) is up to date.
20565
20566 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
20567
20568         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
20569         & co.
20570
20571 2010-10-14  Bruno Haible  <bruno@clisp.org>
20572
20573         vasnprintf: Don't set errno to 0.
20574         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
20575         block that sets it to 0.
20576         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
20577
20578 2010-10-14  Bruno Haible  <bruno@clisp.org>
20579
20580         socketlib: Fix.
20581         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
20582         gl_PREREQ_SYS_H_WINSOCK2.
20583         Reported by Ian Beckwith <ianb@erislabs.net>.
20584
20585 2010-10-13  Jim Meyering  <meyering@redhat.com>
20586
20587         test-select-stdin.c: avoid warn_unused_result warnings
20588         * tests/test-select-stdin.c: Include "macros.h".
20589         ASSERT that read and fflush succeed.
20590
20591 2010-10-13  Jim Meyering  <meyering@redhat.com>
20592
20593         git-version-gen: do require git-VC'd files in cwd
20594         * build-aux/git-version-gen: Reject a git version string
20595         if there are no commits associated with the current directory.
20596         This avoids an unlikely false-positive (unrelated dir whose parent
20597         repository also contains a tag matching v*), as pointed out
20598         by Giuseppe Scrivano in
20599         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
20600
20601 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20602
20603         argv-iter: omit nonconforming declaration
20604         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
20605         enum arg_iter_err declaration, which doesn't conform to C99.
20606         Solaris 10 cc warns about this.
20607
20608 2010-10-13  Eric Blake  <eblake@redhat.com>
20609
20610         termios: fix compilation on mingw
20611         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
20612         (gl_TERMIOS_H): Adjust it on mingw.
20613         * modules/termios (Makefile.am): Substitute new key.
20614         * lib/termios.in.h (includes): Make include_next conditional.
20615         * doc/posix-headers/termios.texi (termios.h): Update
20616         documentation.
20617         Reported by Daniel P. Berrange.
20618
20619 2010-10-13  Jim Meyering  <meyering@redhat.com>
20620
20621         git-version-gen: don't require that .git/ be in the current dir
20622         * build-aux/git-version-gen: Adjust this script so that it works
20623         when run from any working directory beneath the top-level .git/-
20624         containing directory.  Inspired by a patch from Giuseppe Scrivano,
20625         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
20626
20627         test-select: avoid warn_unused_result warnings
20628         * tests/test-select.c: Include "macros.h".
20629         ASSERT that each call to read, write, and pipe succeeds.
20630         While not technically required, also check each "close".
20631         * modules/select-tests (Files): Add tests/macros.h.
20632
20633         test-symlinkat: remove declaration of unused local
20634         * tests/test-symlinkat.c (main): Remove unused local, "buf".
20635
20636         test-inttostr: avoid shadowing warnings
20637         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
20638         and use malloc rather than the stack for the same reason as
20639         mentioned in the comment justifying the other allocation.
20640
20641 2010-10-11  Bruno Haible  <bruno@clisp.org>
20642
20643         stdlib: Allow multiple gnulib generated replacements to coexist.
20644         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
20645         Reported by Sam Steingold <sds@gnu.org>.
20646
20647 2010-10-11  Jim Meyering  <meyering@redhat.com>
20648
20649         fix a documentation typo
20650         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
20651
20652 2010-10-11  Eric Blake  <eblake@redhat.com>
20653
20654         futimens: work around Solaris 11 bug
20655         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
20656         * tests/test-futimens.h (test_futimens): Enhance, rather than
20657         weaken test.
20658         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20659
20660 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20661
20662         Indentation.
20663         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
20664         higher-level operators more to the left.
20665
20666 2010-10-11  Jim Meyering  <meyering@redhat.com>
20667
20668         test-futimens: avoid unwarranted test failure on Solaris 5.11
20669         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
20670         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20671         because it tries to dereference the NULL name argument.
20672
20673 2010-10-11  Bruno Haible  <bruno@clisp.org>
20674
20675         Indentation.
20676         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
20677         indentation.
20678
20679 2010-10-11  Jim Meyering  <meyering@redhat.com>
20680
20681         spawn.in.h: make indentation consistent with parentheses
20682         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
20683         Make indentation consistent with parentheses.
20684
20685 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
20686
20687         Fix mismatched parens in previous commit
20688         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
20689         parens.
20690
20691 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20692
20693         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
20694
20695         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
20696         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
20697         * lib/malloca.c: Include "verify.h".
20698         (verify1): Remove, replacing with a verify call.
20699         * lib/relocwrapper.c (verify1): Likewise.
20700         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
20701         Likewise.
20702         * modules/malloca (Depends-on): Add 'verify'.
20703         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
20704         * modules/vasnprintf (Depends-on): Add 'verify'.
20705         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20706         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20707         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20708         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20709         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20710         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20711         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20712
20713         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
20714
20715         Formerly the style was sometimes 2*X - 1, because the C standard
20716         was wrongly thought to disallow ?: in integral constant expressions.
20717         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
20718         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
20719         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20720         * lib/stdint.in.h (_verify_intmax_size): Likewise.
20721         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
20722         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
20723         verify that time_t cannot be floating.
20724
20725 2010-10-08  Eric Blake  <eblake@redhat.com>
20726
20727         time: enforce recent POSIX ruling that time_t is integral
20728         * lib/time.in.h (__time_t_must_be_integral): Detect any
20729         problematic systems, allowing the rest of gnulib to assume POSIX.
20730
20731 2010-10-08  Jim Meyering  <meyering@redhat.com>
20732
20733         fdopendir: fix a bug on systems lacking openat and /proc support
20734         OpenBSD 4.7 is one such system.  The most noticeable effect was
20735         failure of any application making nontrivial use of fts: rm, du,
20736         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
20737           ./rm: traversal failed: `a': Bad file descriptor
20738         Debugging that, you see that even though FD 6 was closed just
20739         prior to the opendir call in fd_clone_opendir, its resulting
20740         dir->dd_fd was 8, rather than the expected value of 6:
20741
20742         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
20743         93                close (fd);
20744         (gdb) n
20745         94                dir = fd_clone_opendir (dupfd);
20746         (gdb) n
20747         95                saved_errno = errno;
20748         (gdb) p dir->dd_fd
20749         $11 = 8
20750
20751         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
20752         The problem is that on OpenBSD, fd_clone_opendir has to resort
20753         to using the old-style save/restore CWD mechanism, due to its
20754         lack of openat/proc support, and *that* would steal the FD (6)
20755         that opendir was supposed to use.
20756
20757         The fix is to squirrel away the desired FD so that save_cwd uses a
20758         different one, and then free the dest FD right before calling opendir.
20759         That guarantees opendir will use the required file descriptor.
20760
20761         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
20762
20763 2010-10-08  Bruno Haible  <bruno@clisp.org>
20764
20765         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
20766         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
20767
20768 2010-10-08  Bruno Haible  <bruno@clisp.org>
20769
20770         nanosleep: Make replacement POSIX compliant.
20771         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
20772         is out of range.
20773         Reported by Jim Meyering.
20774
20775 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20776
20777         bootstrap: add hook for altering gnulib.mk, for Bison
20778         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
20779         the Bison bootstrapping process can rewrite file names and variables
20780         in this file before later parts of 'bootstrap' use the file.
20781         Bison wants to include lib/gnulib.mk from the top-level makefile,
20782         so it needs the file names in this file to be relative to the top
20783         level, not relative to lib; plus it needs variable names to be
20784         rewritten.
20785         (slurp): Use the new function.
20786
20787         bootstrap: reformat for readability
20788         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
20789
20790 2010-10-08  Eric Blake  <eblake@redhat.com>
20791
20792         docs: update cygwin progress
20793         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
20794         1.7.7.
20795         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
20796         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
20797         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
20798         * doc/posix-functions/carg.texi (carg): Likewise.
20799         * doc/posix-functions/cargf.texi (cargf): Likewise.
20800         * doc/posix-functions/casin.texi (casin): Likewise.
20801         * doc/posix-functions/casinf.texi (casinf): Likewise.
20802         * doc/posix-functions/casinh.texi (casinh): Likewise.
20803         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
20804         * doc/posix-functions/catan.texi (catan): Likewise.
20805         * doc/posix-functions/catanf.texi (catanf): Likewise.
20806         * doc/posix-functions/catanh.texi (catanh): Likewise.
20807         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
20808         * doc/posix-functions/ccos.texi (ccos): Likewise.
20809         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
20810         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
20811         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
20812         * doc/posix-functions/cexp.texi (cexp): Likewise.
20813         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
20814         * doc/posix-functions/cimag.texi (cimag): Likewise.
20815         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
20816         * doc/posix-functions/clog.texi (clog): Likewise.
20817         * doc/posix-functions/clogf.texi (clogf): Likewise.
20818         * doc/posix-functions/conj.texi (conj): Likewise.
20819         * doc/posix-functions/conjf.texi (conjf): Likewise.
20820         * doc/posix-functions/cpow.texi (cpow): Likewise.
20821         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
20822         * doc/posix-functions/cproj.texi (cproj): Likewise.
20823         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
20824         * doc/posix-functions/creal.texi (creal): Likewise.
20825         * doc/posix-functions/crealf.texi (crealf): Likewise.
20826         * doc/posix-functions/csin.texi (csin): Likewise.
20827         * doc/posix-functions/csinf.texi (csinf): Likewise.
20828         * doc/posix-functions/csinh.texi (csinh): Likewise.
20829         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
20830         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
20831         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
20832         * doc/posix-functions/ctan.texi (ctan): Likewise.
20833         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
20834         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
20835         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
20836         * doc/posix-headers/complex.texi (complex.h): Likewise.
20837
20838 2010-10-07  Jim Meyering  <meyering@redhat.com>
20839
20840         parse-datetime: avoid compilation failure on OpenBSD 4.7
20841         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
20842         This works around a compilation failure on OpenBSD 4.7:
20843         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
20844
20845 2010-10-07  Eric Blake  <eblake@redhat.com>
20846
20847         docs: update cygwin progress
20848         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
20849         1.7.6.
20850         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20851         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
20852         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
20853         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
20854         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
20855         Likewise.
20856         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
20857         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
20858         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
20859         Likewise.
20860         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
20861         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
20862         Likewise.
20863         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
20864         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
20865         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
20866         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
20867         Likewise.
20868         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
20869         Likewise.
20870         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
20871
20872         docs: update parse-datetime history
20873         * doc/parse-datetime.texi (Authors of parse_datetime): Better
20874         documentation of this function's history and alternatives.
20875
20876         cygwin: use more robust version check
20877         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
20878         exclude an eventual cygwin 1.9.1.
20879         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20880         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20881         (gl_FUNC_STRCASESTR): Likewise.
20882         Reported by Bruno Haible.
20883
20884 2010-10-06  Bruno Haible  <bruno@clisp.org>
20885
20886         string, sys_select: Avoid #including large headers unless necessary.
20887         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
20888         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
20889         OSF/1, BeOS, Haiku.
20890         Reported by Jim Meyering.
20891
20892 2010-10-05  Eric Blake  <eblake@redhat.com>
20893
20894         memmem, strstr, strcasestr: fix bug with long periodic needle
20895         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
20896         periodic needle having false positive.
20897         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
20898         and cygwin 1.7.7.
20899         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
20900         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20901         (gl_FUNC_STRCASESTR): Likewise.
20902         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20903         * tests/test-memmem.c (main): Expose the bug.
20904         * tests/test-strcasestr.c (main): Likewise.
20905         * tests/test-strstr.c (main): Likewise.
20906         * tests/test-c-strcasestr.c (main): Likewise.
20907         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
20908         * doc/posix-functions/strstr.texi (strstr): Likewise.
20909         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20910         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
20911
20912 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20913
20914         parse-datetime: do some more renaming
20915         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
20916         parse_datetime, not get_date.  Mention the renaming.
20917         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
20918         in comments.
20919         * m4/bison.m4: Likewise.
20920
20921 2010-10-05  Eric Blake  <eblake@redhat.com>
20922
20923         parse-datetime: better name than get_date
20924         * NEWS: Reword the deprecation notice.
20925         * modules/get_date: Rename to modules/parse-datetime.
20926         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
20927         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
20928         * lib/get_date.y: Rename to lib/parse-datetime.y.
20929         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
20930         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
20931         * doc/getdate.texi: Provide fallback wrapper.
20932         * lib/getdate.h: Move guts, and wrap...
20933         * lib/parse-datetime.h: ...new file.
20934         * lib/parse-datetime.y (get_date): Rename...
20935         (parse_datetime): ...to this.
20936         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
20937         (gl_PARSE_DATETIME): ...to this.
20938         * doc/posix-functions/getdate.texi (get_date): Provide fallback
20939         documentation.
20940         * modules/getdate (Files): Provide fallback docs and header.
20941         (Notice, Depends-on): Update references.
20942         * tests/test-parse-datetime.c: Likewise.
20943         * DEPENDENCIES: Likewise.
20944         * MODULES.html.sh (Date and time <time.h>): Likewise.
20945         * doc/parse-datetime.texi (Date input formats)
20946         (Authors of parse_datetime): Likewise.
20947         * modules/parse-datetime (Files, configure.ac, Makefile.am)
20948         (Include): Likewise.
20949         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
20950         * gnulib-tool: Likewise.
20951         * m4/bison.m4 (gl_BISON): Likewise.
20952         Suggested by Bruno Haible.
20953
20954 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20955
20956         more ports to Solaris tr, which needs [] around ranges
20957         * gnulib-tool: Solaris tr needs [] around ranges.
20958         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20959         * tests/test-pipe-filter-gi1.c (main): Likewise.
20960         * tests/test-pipe-filter-ii1.c (main): Likewise.
20961
20962 2010-10-05  Eric Blake  <eblake@redhat.com>
20963
20964         bootstrap: fix Solaris regression
20965         * build-aux/bootstrap (check_versions): Solaris tr still needs []
20966         around ranges.
20967         Reported by Pádraig Brady.
20968
20969         bootstrap: work with pkg-config
20970         * build-aux/bootstrap (check_versions): Also transliterate - in
20971         prerequisite name.
20972         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
20973         prerequisites that were already found, to avoid confusion.
20974         Reported by Justin Clift.
20975
20976         faccessat: remove unused wrappers
20977         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
20978         presence of these wrappers dragged in -lgen on Solaris.
20979         Reported by Clemens Brogi; fix suggested by Paul Eggert.
20980
20981 2010-10-05  Jim Meyering  <meyering@redhat.com>
20982
20983         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
20984         * Makefile (sc_pragma_columns): New syntax-check rule.
20985
20986 2010-10-04  Bruno Haible  <bruno@clisp.org>
20987
20988         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
20989         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
20990         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
20991         Reported by Bruce Korb and Eric Blake.
20992
20993 2010-10-04  Bruno Haible  <bruno@clisp.org>
20994
20995         threadlib: Make option --with-libpth-prefix work.
20996         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
20997         use $LIBPTH, not just -lpth.
20998
20999 2010-10-04  Bruno Haible  <bruno@clisp.org>
21000
21001         Avoid line length limitation from HP NonStop system header files.
21002         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
21003         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
21004         * lib/ctype.in.h: Likewise.
21005         * lib/dirent.in.h: Likewise.
21006         * lib/errno.in.h: Likewise.
21007         * lib/fcntl.in.h: Likewise.
21008         * lib/float.in.h: Likewise.
21009         * lib/getopt.in.h: Likewise.
21010         * lib/iconv.in.h: Likewise.
21011         * lib/inttypes.in.h: Likewise.
21012         * lib/langinfo.in.h: Likewise.
21013         * lib/locale.in.h: Likewise.
21014         * lib/math.in.h: Likewise.
21015         * lib/netdb.in.h: Likewise.
21016         * lib/netinet_in.in.h: Likewise.
21017         * lib/poll.in.h: Likewise.
21018         * lib/pthread.in.h: Likewise.
21019         * lib/pty.in.h: Likewise.
21020         * lib/sched.in.h: Likewise.
21021         * lib/se-selinux.in.h: Likewise.
21022         * lib/search.in.h: Likewise.
21023         * lib/signal.in.h: Likewise.
21024         * lib/spawn.in.h: Likewise.
21025         * lib/stdarg.in.h: Likewise.
21026         * lib/stddef.in.h: Likewise.
21027         * lib/stdint.in.h: Likewise.
21028         * lib/stdio.in.h: Likewise.
21029         * lib/stdlib.in.h: Likewise.
21030         * lib/string.in.h: Likewise.
21031         * lib/strings.in.h: Likewise.
21032         * lib/sys_file.in.h: Likewise.
21033         * lib/sys_ioctl.in.h: Likewise.
21034         * lib/sys_select.in.h: Likewise.
21035         * lib/sys_socket.in.h: Likewise.
21036         * lib/sys_stat.in.h: Likewise.
21037         * lib/sys_time.in.h: Likewise.
21038         * lib/sys_times.in.h: Likewise.
21039         * lib/sys_utsname.in.h: Likewise.
21040         * lib/sys_wait.in.h: Likewise.
21041         * lib/sysexits.in.h: Likewise.
21042         * lib/termios.in.h: Likewise.
21043         * lib/time.in.h: Likewise.
21044         * lib/unistd.in.h: Likewise.
21045         * lib/wchar.in.h: Likewise.
21046         * lib/wctype.in.h: Likewise.
21047         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
21048         * modules/ctype (Makefile.am): Likewise.
21049         * modules/dirent (Makefile.am): Likewise.
21050         * modules/errno (Makefile.am): Likewise.
21051         * modules/fcntl-h (Makefile.am): Likewise.
21052         * modules/float (Makefile.am): Likewise.
21053         * modules/getopt-posix (Makefile.am): Likewise.
21054         * modules/iconv-h (Makefile.am): Likewise.
21055         * modules/inttypes (Makefile.am): Likewise.
21056         * modules/langinfo (Makefile.am): Likewise.
21057         * modules/locale (Makefile.am): Likewise.
21058         * modules/math (Makefile.am): Likewise.
21059         * modules/netdb (Makefile.am): Likewise.
21060         * modules/netinet_in (Makefile.am): Likewise.
21061         * modules/poll-h (Makefile.am): Likewise.
21062         * modules/pthread (Makefile.am): Likewise.
21063         * modules/pty (Makefile.am): Likewise.
21064         * modules/sched (Makefile.am): Likewise.
21065         * modules/search (Makefile.am): Likewise.
21066         * modules/selinux-h (Makefile.am): Likewise.
21067         * modules/signal (Makefile.am): Likewise.
21068         * modules/spawn (Makefile.am): Likewise.
21069         * modules/stdarg (Makefile.am): Likewise.
21070         * modules/stddef (Makefile.am): Likewise.
21071         * modules/stdint (Makefile.am): Likewise.
21072         * modules/stdio (Makefile.am): Likewise.
21073         * modules/stdlib (Makefile.am): Likewise.
21074         * modules/string (Makefile.am): Likewise.
21075         * modules/strings (Makefile.am): Likewise.
21076         * modules/sys_file (Makefile.am): Likewise.
21077         * modules/sys_ioctl (Makefile.am): Likewise.
21078         * modules/sys_select (Makefile.am): Likewise.
21079         * modules/sys_socket (Makefile.am): Likewise.
21080         * modules/sys_stat (Makefile.am): Likewise.
21081         * modules/sys_time (Makefile.am): Likewise.
21082         * modules/sys_times (Makefile.am): Likewise.
21083         * modules/sys_utsname (Makefile.am): Likewise.
21084         * modules/sys_wait (Makefile.am): Likewise.
21085         * modules/sysexits (Makefile.am): Likewise.
21086         * modules/termios (Makefile.am): Likewise.
21087         * modules/time (Makefile.am): Likewise.
21088         * modules/unistd (Makefile.am): Likewise.
21089         * modules/wchar (Makefile.am): Likewise.
21090         * modules/wctype (Makefile.am): Likewise.
21091
21092 2010-10-04  Bruno Haible  <bruno@clisp.org>
21093
21094         read-file tests: Avoid a test failure on NonStop Kernel.
21095         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
21096         a regular file.
21097         Reported by Joachim Schmitz <schmitz@hp.com>.
21098
21099 2010-10-03  Bruno Haible  <bruno@clisp.org>
21100
21101         gnulib-tool: Fixes for --create-testdir with --libtool.
21102         * gnulib-tool (func_get_automake_snippet): Don't augment
21103         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
21104         an executable.
21105         (func_create_testdir): Handle module 'alloca' like func_import.
21106         Reported by Bruce Korb <bruce.korb@gmail.com>.
21107
21108 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
21109
21110         Avoid some lines longer than 80 characters.
21111         * lib/stdint.in.h: Break long comment lines.
21112         * lib/math.in.h: Likewise.
21113         (_GL_NUM_UINT_WORDS): New macro, for readability.
21114         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
21115         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
21116         * lib/stdlib.in.h: Likewise.
21117         * lib/spawn.in.h: Likewise.
21118         * lib/sys_socket.in.h: Update an URL.
21119         * lib/sys_stat.in.h: Break long line.
21120
21121 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
21122
21123         Improve pmccabe2html.
21124         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
21125         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
21126         when the sources change. Remove the line in the HTML about "Used
21127         ranges" (which implied that there might be other unused ranges),
21128         rename "Resume" to "Summary" (easier to understand for more users).
21129         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
21130         styles, and some unnecessary blank lines.
21131
21132 2010-10-03  Bruno Haible  <bruno@clisp.org>
21133             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
21134
21135         acl: Add support for ACLs on NonStop Kernel.
21136         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
21137         Check whether the function aclsort() exists.
21138         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
21139         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
21140         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21141         (acl_nontrivial [HAVE_ACLSORT]: New function.
21142         (file_has_acl): Implement for NonStop Kernel.
21143         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21144         (qset_acl): Implement for NonStop Kernel.
21145         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
21146         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21147         (main): Implement for NonStop Kernel.
21148         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
21149         Kernel. Handle this flavor.
21150         * tests/test-set-mode-acl.sh: Likewise.
21151         * tests/test-copy-acl.sh: Likewise.
21152         * tests/test-copy-file.sh: Likewise.
21153
21154 2010-10-03  Bruno Haible  <bruno@clisp.org>
21155
21156         Info about ACLs on NonStop Kernel.
21157         * doc/acl-resources.txt: Add info about NonStop Kernel.
21158         References by Joachim Schmitz <schmitz@hp.com>.
21159
21160 2010-10-02  Bruno Haible  <bruno@clisp.org>
21161
21162         Define missing EDQUOT on NonStop Kernel.
21163         * lib/errno.in.h (EDQUOT): Assign a value if missing.
21164         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
21165         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
21166         missing.
21167         * doc/posix-headers/errno.texi: Mention the NSK bug.
21168         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
21169         Reported by Joachim Schmitz <schmitz@hp.com>.
21170
21171 2010-10-02  Bruno Haible  <bruno@clisp.org>
21172
21173         Update doc for POSIX:2008.
21174         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
21175         Update URL of POSIX specification.
21176
21177 2010-10-02  Bruno Haible  <bruno@clisp.org>
21178
21179         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
21180         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
21181         from gnulib, not from Automake.
21182
21183 2010-10-02  Bruno Haible  <bruno@clisp.org>
21184
21185         New module 'system-posix'.
21186         * modules/system-posix: New file.
21187         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
21188         module is present.
21189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21190         GNULIB_SYSTEM_POSIX.
21191         * modules/stdlib (Depends-on): Remove sys_wait.
21192         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
21193         * doc/posix-functions/system.texi: Mention the new module.
21194         * doc/posix-headers/stdlib.texi: Likewise.
21195         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
21196         define test_sys_wait_macros to a no-op.
21197         Reported by Sam Steingold <sds@gnu.org>.
21198
21199 2010-09-30  Bruno Haible  <bruno@clisp.org>
21200
21201         More renaming from 'getdate' to 'get_date'.
21202         * doc/get_date.texi: Renamed from doc/getdate.texi.
21203         * modules/get_date (Files): Update.
21204         * MODULES.html.sh (Date and time <time.h>): Update.
21205         * DEPENDENCIES: Update.
21206         * gnulib-tool: Update comment.
21207         * m4/bison.m4 (gl_BISON): Likewise.
21208         * m4/get_date.m4 (gl_GET_DATE): Likewise.
21209
21210 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
21211
21212         bootstrap: support ACLOCAL_FLAGS during aclocal
21213         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
21214         can add additional -I dir for third-party .m4 files.
21215
21216 2010-09-30  Eric Blake  <eblake@redhat.com>
21217
21218         bootstrap: use glibtoolize on MacOS
21219         * build-aux/bootstrap (check_versions): Convert libtool into
21220         libtoolize.
21221         (tool search): Move libtool check earlier, and look for
21222         glibtoolize for MacOS.
21223         (gnulib_tool_options): Auto-add --libtool when appropriate.
21224         Reported by Justin Clift.
21225
21226         poll: fix typo that broke test on MacOS
21227         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
21228         Reported by Justin Clift.
21229
21230         getdate: rename to get_date
21231         Note: getdate.h is not renamed, to minimize client impact.
21232         * modules/getdate: Mark obsolete.  Move old contents...
21233         * modules/get_date: ...to new module name.
21234         * modules/getdate-tests: Move...
21235         * modules/get_date-tests: ...here.
21236         * m4/getdate.m4: Move...
21237         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
21238         * lib/getdate.y: Move...
21239         * lib/get_date.y: ...here.
21240         * tests/test-getdate.c: Move...
21241         * tests/test-get_date.c: ...here.
21242         * doc/posix-functions/getdate.texi (getdate): Update name.
21243         * NEWS: Mention the change.
21244
21245 2010-09-29  Bruno Haible  <bruno@clisp.org>
21246
21247         Separate the module 'waitpid' from the module 'sys_wait'.
21248         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
21249         present.
21250         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
21251         gl_MODULE_INDICATOR_FOR_TESTS.
21252         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
21253         * modules/sys_wait (Depends-on): Remove waitpid.
21254         (Makefile.am): Substitute GNULIB_WAITPID.
21255         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
21256         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
21257         signature only if the 'waitpid' module is present.
21258         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
21259         * NEWS: Mention the change.
21260         * modules/grantpt (Depends-on): Add waitpid.
21261         * modules/wait-process (Depends-on): Likewise.
21262
21263 2010-09-29  Bruno Haible  <bruno@clisp.org>
21264
21265         More tests for module 'sys_wait'.
21266         * modules/sys_wait-c++-tests: New file.
21267         * tests/test-sys_wait-c++.cc: New file.
21268         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
21269         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21270
21271 2010-09-29  Bruno Haible  <bruno@clisp.org>
21272
21273         New module 'waitpid'.
21274         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
21275         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
21276         Don't include <process.h>.
21277         (waitpid): Declare only, using modern idiom.
21278         * m4/waitpid.m4: New file.
21279         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
21280         * modules/waitpid: New file.
21281         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
21282         (Makefile.am): Update.
21283         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21284
21285 2010-09-28  Bruno Haible  <bruno@clisp.org>
21286
21287         poll: Assume ANSI C.
21288         * lib/poll.c (poll): Use an ANSI C declaration.
21289
21290 2010-09-28  Bruno Haible  <bruno@clisp.org>
21291
21292         poll-h: Create poll.h on all platforms.
21293         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
21294         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
21295         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
21296         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
21297         (gl_REPLACE_POLL_H): Don't set POLL_H.
21298         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
21299         * modules/poll-h (Depends-on): Add include_next.
21300         (Makefile.am): Create poll.h unconditionally. Substitute also
21301         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
21302
21303 2010-09-28  Bruno Haible  <bruno@clisp.org>
21304
21305         Tests for module 'poll-h'.
21306         * modules/poll-h-c++-tests: New file.
21307         * tests/test-poll-h-c++.cc: New file.
21308
21309         Tests for module 'poll-h'.
21310         * modules/poll-h-tests: New file.
21311         * tests/test-poll-h.c: New file.
21312
21313 2010-09-28  Bruno Haible  <bruno@clisp.org>
21314
21315         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
21316         * modules/poll-h (Depends-on): Add 'extensions'.
21317
21318 2010-09-28  Bruno Haible  <bruno@clisp.org>
21319
21320         New module 'poll-h'.
21321         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
21322         (poll): Use modern idiom.
21323         * modules/poll-h: New file.
21324         * modules/poll (Files): Remove lib/poll.in.h.
21325         (Depends-on): Add poll-h.
21326         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
21327         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
21328         * m4/poll_h.m4: New file.
21329         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
21330         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
21331         and invoke gl_REPLACE_POLL_H.
21332         * lib/poll.c: Use common idiom.
21333         * tests/test-poll.c: Likewise.
21334         * doc/posix-headers/poll.texi: Mention the poll-h module.
21335         Suggested by Eric Blake.
21336
21337 2010-09-26  Bruno Haible  <bruno@clisp.org>
21338
21339         sys_wait: Implement WSTOPSIG.
21340         * lib/sys_wait.in.h (WSTOPSIG): New macro.
21341         Reported by Simon Josefsson.
21342
21343 2010-09-26  Simon Josefsson  <simon@josefsson.org>
21344
21345         stdlib, sys_wait: Avoid compilation error on mingw.
21346         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
21347
21348 2010-09-26  Bruno Haible  <bruno@clisp.org>
21349
21350         stdlib tests: Avoid code duplication.
21351         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
21352         * modules/sys_wait-tests (Files): Likewise.
21353         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
21354         * tests/test-stdlib.c: Include test-sys_wait.h.
21355         (main): Invoke test_sys_wait_macros.
21356         * tests/test-sys_wait.c: Include test-sys_wait.h.
21357         (main): Invoke test_sys_wait_macros.
21358
21359 2010-09-25  Simon Josefsson  <simon@josefsson.org>
21360
21361         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
21362         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
21363         sure Windows sockets are working before calling getaddrinfo.
21364         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
21365         * doc/gnulib.texi (Windows sockets): Fix typo.
21366
21367 2010-09-25  Bruno Haible  <bruno@clisp.org>
21368
21369         Tests for module 'regex-quote'.
21370         * modules/regex-quote-tests: New file.
21371         * tests/test-regex-quote.c: New file.
21372
21373         New module 'regex-quote'.
21374         * lib/regex-quote.h: New file.
21375         * lib/regex-quote.c: New file.
21376         * modules/regex-quote: New file.
21377         Suggested by Reuben Thomas <rrt@sc3d.org>.
21378
21379 2010-09-24  Bruno Haible  <bruno@clisp.org>
21380
21381         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
21382         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
21383
21384 2010-09-23  Bruno Haible  <bruno@clisp.org>
21385
21386         setenv: Relax license.
21387         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
21388         Blake.
21389         Requested by Eric Blake.
21390
21391 2010-09-22  Bruno Haible  <bruno@clisp.org>
21392
21393         termios: Relax license.
21394         * modules/termios (License): Change to LGPLv2+.
21395         Requested by Eric Blake.
21396
21397 2010-09-22  Bruno Haible  <bruno@clisp.org>
21398
21399         threadlib: Allow the package to change the default to 'no'.
21400         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
21401         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
21402         Reported by Paul Eggert.
21403
21404 2010-09-22  Pádraig Brady  <P@draigbrady.com>
21405             Bruno Haible  <bruno@clisp.org>
21406
21407         Fix endless loop in mbmemcasecoll.
21408         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
21409         byte.
21410         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
21411
21412 2010-09-22  Bruno Haible  <bruno@clisp.org>
21413
21414         Tests for module 'memcoll'.
21415         * modules/memcoll-tests: New file.
21416         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
21417
21418         memcoll, xmemcoll: Clarify size vs. length.
21419         * modules/memcoll.c (memcoll0): Clarify specification.
21420         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
21421         passed to collate_error.
21422
21423 2010-09-22  Bruno Haible  <bruno@clisp.org>
21424
21425         Tests for module 'memcasecmp'.
21426         * modules/memcasecmp-tests: New file.
21427         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
21428
21429 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21430
21431         * lib/pthread.in.h: Add split double-inclusion guard, and include
21432         system <pthread.h> if there is one.  Use @@-style as in other
21433         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
21434         pthread.h doesn't.
21435         (pthread_mutexattr_destroy, pthread_mutexattr_init):
21436         (pthread_mutexattr_settype, pthread_mutex_trylock):
21437         New static inline functions, if there's no system <pthread.h>.
21438         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
21439         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
21440         Approximate with mutexes if the system lacks spinlocks, as in
21441         MacOS.
21442         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
21443         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
21444         @@-style.  Check for spinlocks separately.
21445         (gl_PTHREAD_DEFAULTS): New macro.
21446         * modules/pthread: Redo to use a more typical style for in.h files.
21447
21448 2010-09-21  Eric Blake  <eblake@redhat.com>
21449
21450         net_if: enhance tests
21451         * tests/test-net_if.c (main): Move signature checks earlier.
21452         Print failures to stderr.
21453         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
21454         Document the bug that we do not yet fix.
21455
21456 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21457
21458         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
21459         about gnulib, not GSS.
21460
21461 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21462
21463         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
21464         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
21465         for Emacs.
21466         * build-aux/pmccabe2html: Make Makefile.am example code more
21467         cut-and-paste friendly.
21468
21469 2010-09-21  Simon Josefsson  <simon@josefsson.org>
21470
21471         * tests/test-net_if.c: New file.
21472         * modules/net_if-tests: New file.
21473
21474 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21475
21476         pthread: add pthread_spin_destroy
21477         * lib/pthread.in.h (pthread_spin_destroy): New function.
21478
21479 2010-09-19  Bruno Haible  <bruno@clisp.org>
21480
21481         gnulib-tool: Fix --help output.
21482         * gnulib-tool (func_usage): Fix help message.
21483         Reported by Reuben Thomas <rrt@sc3d.org>.
21484
21485 2010-09-18  Jim Meyering  <meyering@redhat.com>
21486
21487         maint.mk: avoid unexpanded \n in two diagnostics
21488         * top/maint.mk (sc_prohibit_always_true_header_tests):
21489         Don't use a literal \n in a halt=... assignment.  It would not be
21490         expanded, and the two \n bytes would appear in the diagnostic output
21491         rather than the desired newline.  Use halt=$$(printf ... instead.
21492         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21493
21494 2010-09-18  Bruno Haible  <bruno@clisp.org>
21495
21496         netinet_in: Doc tweak.
21497         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
21498         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21499
21500 2010-09-18  Jim Meyering  <meyering@redhat.com>
21501
21502         init.sh: correct an outdated comment
21503         * tests/init.sh (create_exe_shims_):  s/function/alias/
21504
21505         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
21506         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
21507         a file named "*.exe" is removed between the glob expansion and the
21508         processing of that oddly named file.
21509
21510 2010-09-17  Eric Blake  <eblake@redhat.com>
21511
21512         mirbsd: add some more support
21513         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
21514         in BSD family.
21515         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
21516         devices as OpenBSD.
21517         * m4/host-os.m4 (mirbsd): Add MirBSD.
21518
21519         tests: fix unportable assumption on sys/wait.h
21520         * tests/test-sys_wait.c (main): Relax test.
21521         * tests/test-stdlib.c (main): Likewise.
21522
21523         init.sh: accomodate directory with no .exes
21524         * tests/init.sh: Accomodate directory containing only scripts.
21525
21526         tests: avoid compiler warning
21527         * tests/test-stdlib.c (main): Use the variable.
21528
21529         fdutimens, fdutimensat: update signature, again
21530         * lib/utimens.h (gl_futimens): Delete, and move signature...
21531         (fdutimens): ...here.
21532         (fdutimensat): Rearrange signature.
21533         (lutimensat): Rename variable for clarity.
21534         * lib/fdutimensat.c (fdutimensat): Update signature.
21535         * lib/utimens.c (fdutimens): Likewise.
21536         (gl_futimens): Delete.
21537         (utimens, lutimens): Update callers.
21538         * lib/futimens.c (futimens): Likewise.
21539         * tests/test-fdutimensat.c: Likewise.
21540         * tests/test-utimens.c: Likewise.
21541         * tests/test-futimens.h: Update comment.
21542         * NEWS: Mention this.
21543         Suggested by Paul Eggert.
21544
21545 2010-09-17  Bruno Haible  <bruno@clisp.org>
21546
21547         Take over the maintenance of some older macros from Autoconf.
21548         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
21549         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
21550         GNU Autoconf.
21551         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
21552         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
21553
21554 2010-09-17  Eric Blake  <eblake@redhat.com>
21555
21556         fdutimensat: drop atflag validation
21557         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
21558         with valid fd, to close a race scenario where futimens is
21559         unsupported and FILE was replaced by a symlink.
21560         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
21561         accordingly.
21562         Suggested by Paul Eggert.
21563
21564 2010-09-16  Bruno Haible  <bruno@clisp.org>
21565
21566         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
21567         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
21568
21569 2010-09-16  Bruno Haible  <bruno@clisp.org>
21570
21571         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
21572         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
21573         login_tty exists.
21574         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21575
21576 2010-09-16  Bruno Haible  <bruno@clisp.org>
21577
21578         login_tty: Make the replacement code work on BSD systems.
21579         * lib/login_tty.c: Include <sys/ioctl.h>.
21580         (login_tty): Use ioctl TIOCSCTTY when available.
21581         * modules/login_tty (Depends-on): Add sys_ioctl.
21582         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21583
21584 2010-09-16  Bruno Haible  <bruno@clisp.org>
21585
21586         login_tty: Stricter unit test.
21587         * modules/login_tty-tests (Depends-on): Add tcgetsid.
21588         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
21589         and tcgetsid() after login_tty.
21590         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21591
21592 2010-09-16  Bruno Haible  <bruno@clisp.org>
21593
21594         New module 'tcgetsid'.
21595         * lib/tcgetsid.c: New file.
21596         * m4/tcgetsid.m4: New file.
21597         * modules/tcgetsid: New file.
21598         * modules/termios (Depends-on): Add c++defs, warn-on-use.
21599         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
21600         GNULIB_TCGETSID, HAVE_TCGETSID.
21601         * lib/termios.in.h: Include <sys/types.h>.
21602         (tcgetsid): New declaration.
21603         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
21604         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
21605         * doc/posix-functions/tcgetsid.texi: Mention the new module.
21606         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
21607
21608 2010-09-16  Bruno Haible  <bruno@clisp.org>
21609
21610         Tests for module 'termios'.
21611         * modules/termios-c++-tests: New file.
21612         * modules/termios-tests: New file.
21613         * tests/test-termios-c++.cc: New file.
21614         * tests/test-termios.c: New file.
21615
21616         New module 'termios'.
21617         * modules/termios: New file.
21618         * lib/termios.in.h: New file.
21619         * m4/termios_h.m4: New file.
21620         * doc/posix-headers/termios.texi: Mention the new module.
21621
21622 2010-09-16  Eric Blake  <eblake@redhat.com>
21623
21624         fdutimensat: add an atflag parameter
21625         * lib/fdutimensat.c (fdutimensat): Add new parameter.
21626         * lib/utimens.h (fdutimensat): Update prototype.
21627         * tests/test-fdutimensat.c: Adjust test to match.
21628         * NEWS: Document the change.
21629         Suggested by Paul Eggert.
21630
21631 2010-09-16  Bruno Haible  <bruno@clisp.org>
21632
21633         Fix typos in comments.
21634         * lib/striconveh.h: Fix typo in comment.
21635         * lib/login_tty.c (login_tty): Likewise.
21636
21637 2010-09-15  Bruno Haible  <bruno@clisp.org>
21638
21639         stdlib: clarify MirBSD WEXITSTATUS bug
21640         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
21641         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21642
21643 2010-09-15  Eric Blake  <eblake@redhat.com>
21644
21645         stdlib: work around MirBSD WEXITSTATUS bug
21646         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
21647         * modules/stdlib (Depends-on): Add sys_wait.
21648         * tests/test-sys_wait.c (main): Enhance test.
21649         * tests/test-stdlib.c (main): Likewise.
21650         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
21651
21652         docs: mention MacOS issue with WEXITSTATUS(constant)
21653         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
21654         issue.
21655         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21656
21657         strnlen: add tests
21658         * modules/strnlen-tests: New file.
21659         * tests/test-strnlen.c: Likewise.
21660
21661 2010-09-14  Bruno Haible  <bruno@clisp.org>
21662
21663         unistr/base: Avoid link errors when module 'libunistring' is also used.
21664         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
21665         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
21666         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
21667         Declare also when HAVE_LIBUNISTRING is set.
21668         Reported by Pádraig Brady <P@draigbrady.com>.
21669
21670 2010-09-14  Eric Blake  <eblake@redhat.com>
21671
21672         test-rawmemchr: make more robust
21673         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
21674         (Depends-on, configure.ac): Add needed prerequisites to use it.
21675         * modules/memchr-tests (Files, Depends-on, configure.ac):
21676         Likewise, to avoid implicit reliance on memchr module prereqs.
21677         * tests/test-memchr.c (main): Ensure proper masking.
21678         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
21679         reads.
21680
21681         memchr: detect glibc Alpha bug
21682         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
21683         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
21684         Alpha.
21685         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
21686         * tests/test-memchr.c (main): Enhance test.
21687         Reported by Nelson H. F. Beebe.
21688
21689 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21690
21691         fts, getcwd, glob: audit for dirfd returning -1
21692         * lib/fts.c (opendir): Remove #define; no longer used.
21693         (opendirat): New arg PDIR_FD.  All callers changed.
21694         (fts_build, _opendir2): Use new opendirat to avoid the need for
21695         dirfd, or for checking whether dirfd returns a negative value.
21696         Don't use opendir; always use openat followed by fdopendir.
21697         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
21698         it.
21699         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
21700         returns -1 here.
21701         * modules/fts (Depends-on): Remove dirfd.
21702         * modules/getcwd (Depends-on): Likewise.
21703
21704 2010-09-13  Eric Blake  <eblake@redhat.com>
21705
21706         float: fix broken MirBSD header
21707         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
21708         * doc/posix-headers/float.texi (float.h): Document it.
21709
21710 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21711
21712         fts: use O_NOFOLLOW to avoid race condition when opening a directory
21713         * lib/fts.c (opendirat): New arg extra_flags.
21714         (__opendir2): Use it to avoid following symlinks when opening
21715         a directory, if symlinks are not supposed to be followed.  See
21716         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
21717
21718         fdopendir: preserve argument fd before returning
21719         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
21720         (fdopendir_with_dup, fd_clone_opendir): New static functions.
21721         (fdopendir): Use them, arranging for FD to be open to the same
21722         directory that it was when it started.  (It might be temporarily
21723         closed while fdopendir is running, so this not thread- or
21724         signal-safe.)  Be careful to do the right thing even when file
21725         descriptors are scarce and dup fails with errno == EMFILE.  See
21726         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
21727
21728 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
21729
21730         regex: Pass the system regex if its only problem is 32-bit regoff_t.
21731         * NEWS: Document change.
21732         * m4/regex.m4: Disable test for regoff_t size.
21733
21734 2010-09-13  Jim Meyering  <meyering@redhat.com>
21735
21736         fts: don't operate on an invalid file descriptor after failed dup
21737         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
21738         negative file descriptor.
21739
21740 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21741
21742         savedir: add streamsavedir, deprecate fdsavedir
21743         * NEWS: Mention deprecation of fdsavedir.
21744         * lib/savedir.c (streamsavedir): New extern function, whose name
21745         ends in "savedir" to be consistent with the others.  This differs
21746         from savedirstream in that it doesn't close its argument.  The
21747         next version of GNU tar will use this instead of fdsavedir, to
21748         avoid some race conditions and conserve file descriptors.
21749         (savedirstream): Reimplement as a wrapper around streamsavedir.
21750         (fdsavedir): Add a comment deprecating this function.  As far as
21751         I know, only GNU tar used it, and GNU tar doesn't need it any more.
21752         * lib/savedir.h (streamsavedir): New decl.
21753         (fdsavedir): Add a comment deprecating this.
21754
21755 2010-09-10  Bruno Haible  <bruno@clisp.org>
21756
21757         langinfo: Fix last commit.
21758         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
21759         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
21760         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21761
21762 2010-09-10  Bruno Haible  <bruno@clisp.org>
21763
21764         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
21765         * lib/progreloc.c (O_EXEC): Define fallback.
21766
21767 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21768
21769         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
21770         * NEWS: Document recent changes to fcntl-h.
21771         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
21772         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
21773         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
21774         Similarly for O_SEARCH; this last was already true, but not documented.
21775         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
21776         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
21777         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
21778         Likewise.
21779         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
21780         is zero, not whether it is defined.
21781         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
21782         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
21783         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
21784
21785 2010-09-10  Bruno Haible  <bruno@clisp.org>
21786
21787         langinfo, nl_langinfo: Fix for IRIX 5.3.
21788         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
21789         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
21790         HAVE_LANGINFO_YESEXPR.
21791         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
21792         HAVE_LANGINFO_YESEXPR.
21793         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
21794         HAVE_LANGINFO_T_FMT_AMPM is 0.
21795         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
21796         HAVE_LANGINFO_YESEXPR is 0.
21797         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
21798         NOEXPR.
21799         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
21800         * doc/posix-functions/nl_langinfo.texi: Likewise.
21801         Reported by Eric Blake.
21802
21803 2010-09-10  Bruno Haible  <bruno@clisp.org>
21804
21805         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
21806         * doc/glibc-functions/login_tty.texi: Mention the include file problem
21807         on FreeBSD 8.0 and OpenBSD 4.6.
21808         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
21809         * m4/pty_h.m4 (gl_PTY_H): Likewise.
21810         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
21811         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
21812         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
21813         ac_includes_default.
21814         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21815
21816 2010-09-09  Eric Blake  <eblake@redhat.com>
21817
21818         strsignal: work around NetBSD bug
21819         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
21820         * lib/string.in.h (includes): Likewise.
21821         * doc/posix-functions/strsignal.texi (strsignal): Document the
21822         bug.
21823         Reported by Nelson H. F. Beebe.
21824
21825         gnulib-tool: work with NetBSD /bin/sh
21826         * gnulib-tool (func_cache_var, func_cache_lookup_module)
21827         (func_get_description, func_get_comment, func_get_status)
21828         (func_get_notice, func_get_applicability, func_get_filelist)
21829         (func_get_dependencies, func_get_autoconf_early_snippet)
21830         (func_get_autoconf_snippet, func_get_automake_snippet)
21831         (func_get_include_directive, func_get_link_directive)
21832         (func_get_license, func_get_maintainer, func_import): Avoid
21833         shell syntax errors from parsing syntax extensions.
21834
21835 2010-09-09  Bruno Haible  <bruno@clisp.org>
21836
21837         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21838         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
21839         a reliable way to determine whether the 'alias' command works.
21840
21841 2010-09-08  Jim Meyering  <meyering@redhat.com>
21842
21843         init.sh: penalize a set-x-impaired shell; don't disqualify it
21844         * tests/init.sh: Too many shells corrupt application stderr when
21845         you set -x, so we can't afford to disqualify them, since at least
21846         on Irix-6.5, that would disqualify all bourne shells.
21847         Instead, use a two-pass approach.
21848         On the first pass, try to find a shell that meets the stricter
21849         condition that set -x does not corrupt stderr.
21850         If no shell meets the stricter condition, retest each candidate
21851         shell, but without that extra condition.  Finally, when
21852         VERBOSE=yes is requested and set -x might cause trouble, simply
21853         issue a warning and refrain from enabling debug output.
21854
21855 2010-09-08  Eric Blake  <eblake@redhat.com>
21856
21857         unsetenv: fix OpenBSD bug
21858         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
21859         * doc/posix-functions/unsetenv.texi (unsetenv): Update
21860         documentation.
21861         Reported by Jim Meyering.
21862
21863         strtod: work around IRIX 6.5 bug
21864         * lib/strtod.c (strtod): Reparse number on shorter string if
21865         exponent parse was invalid.
21866         * tests/test-strtod.c (main): Add check for "0x1p 2".
21867         Reported by Tom G. Christensen.
21868
21869         getopt: optimize previous patch
21870         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
21871         empty variable.  Speed up awk script.
21872         Reported by Paolo Bonzini.
21873
21874 2010-09-08  Jim Meyering  <meyering@redhat.com>
21875
21876         test.sh: disqualify shells for which set -x corrupts stderr
21877         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
21878         and OpenBSD 4.7.  They make it so with "set -x", environment settings
21879         appear in stderr output.  For example, this command:
21880             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
21881         prints "P=1" on those two systems:
21882
21883 2010-09-08  Bruno Haible  <bruno@clisp.org>
21884
21885         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21886         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
21887         commands, because some shells ignore redirections when there is an
21888         error in the command lookup.
21889         Reported by Eric Blake.
21890
21891 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
21892
21893         * lib/regex.h: Fix a mention of `regex_compile' (should be
21894         `re_compile_pattern').
21895         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
21896         (re_set_registers): Correct name of parameter in comment.
21897
21898         * doc/regex.texi: Add documentation for missing syntax flags.
21899         Remove commented-out documentation of defunct syntax option
21900         RE_NO_EMPTY_ALTS.
21901         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
21902         Add documentation of re_set_registers.
21903         Document trick to re-use a pattern buffer by setting fastmap manually.
21904         Update documentation of struct re_pattern_buffer per public members.
21905         Uncomment documentation of equivalence class operators and
21906         collating symbol operators, since they are now implemented,
21907         Explain leftmost-longest matching in relation to alternatives.
21908         Tidy documentation of substring matching.
21909         Remove POSIX documentation, which is done better in
21910         glibc, and refer the reader there. Keep BSD API documentation, as
21911         that is not readily available elsewhere.
21912
21913 2010-09-07  Eric Blake  <eblake@redhat.com>
21914
21915         getopt: handle POSIXLY_CORRECT set but not exported
21916         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
21917         export state of POSIXLY_CORRECT, due to bash set -o posix.
21918         Reported by Dustin J. Mitchell.
21919
21920 2010-09-05  Bruno Haible  <bruno@clisp.org>
21921
21922         gnulib-tool: Highlight the changed options.
21923         * gnulib-tool (func_usage): Display the --import, --add-import,
21924         --remove-import explanations in bold font.
21925
21926 2010-09-06  Karl Berry  <karl@gnu.org>
21927
21928         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
21929
21930 2010-09-05  Bruno Haible  <bruno@clisp.org>
21931
21932         uniwidth/width: Update comment.
21933         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
21934         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
21935
21936 2010-09-05  Bruno Haible  <bruno@clisp.org>
21937
21938         isinf, isnan: Relax license.
21939         * modules/isinf (License): Change from GPL to LGPL, with consent from
21940         Ben Pfaff.
21941         * modules/isnan (License): Likewise.
21942         Requested by Ludovic Courtès.
21943
21944 2010-09-04  Bruno Haible  <bruno@clisp.org>
21945
21946         gnulib-tool: Help migration from --import to --add-import or --update.
21947         * gnulib-tool: Emit a verbose error message when --import is used
21948         without any module name.
21949
21950 2010-09-04  Bruno Haible  <bruno@clisp.org>
21951
21952         Update doc about gnulib-tool.
21953         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
21954         'gnulib-tool --update' in more detail.
21955         Reported by Eric Blake.
21956
21957 2010-09-04  Bruno Haible  <bruno@clisp.org>
21958
21959         gnulib-tool: Change --import. New options --add/remove-import.
21960         * gnulib-tool: New options --add-import, --remove-import.
21961         (func_usage): Document them.
21962         (have_associative): Define always.
21963         (func_import): In import mode, don't merge the specified settings with
21964         the cached settings. Implement remove-import mode.
21965         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
21966         Explain when to use them versus --import.
21967         (Simple update): Use --add-import instead of --import.
21968         * NEWS: Mention the change.
21969
21970 2010-09-04  Bruno Haible  <bruno@clisp.org>
21971
21972         * doc/gnulib-tool.texi (Initial import): Update paragraph about
21973         separate gnulib.mk.
21974
21975 2010-09-04  Bruno Haible  <bruno@clisp.org>
21976
21977         gnulib-tool: Don't talk about CVS any more.
21978         * gnulib-tool (func_usage, func_import): Write "version control"
21979         instead of CVS.
21980
21981 2010-09-04  Jim Meyering  <meyering@redhat.com>
21982
21983         maint.mk: avoid obscure sc_copyright_check failure in coreutils
21984         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
21985         false positives (whose names may be ill-chosen) when searching
21986         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
21987         would cause a false-positive.
21988
21989         avoid coreutils "make distcheck" failure
21990         Coreutils tests with an absolute build directory name that contains
21991         a space.  Not quoting this directory name caused a failure.
21992         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
21993         * tests/test-vc-list-files-cvs.sh: Likewise.
21994
21995 2010-09-04  Bruno Haible  <bruno@clisp.org>
21996
21997         gnulib-tool: Avoid error when run in a package without Makefile.am.
21998         * gnulib-tool: When collecting the m4dirs in a package that does not
21999         have a Makefile.am, eliminate those directories that contain no
22000         gnulib-cache.m4. Fix expression that counts these directories.
22001
22002 2010-09-04  Bruno Haible  <bruno@clisp.org>
22003
22004         update-copyright test: Improve output when perl is missing or too old.
22005         * tests/test-update-copyright.sh: Move test of Perl version down after
22006         the test whether Perl exists. Provide an explanation relating Perl's
22007         error message to Automake's SKIP: message.
22008
22009 2010-09-04  Bruno Haible  <bruno@clisp.org>
22010
22011         Don't augment PATH in TESTS_ENVIRONMENT.
22012         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
22013         set abs_aux_dir instead of augmenting PATH.
22014         * modules/vc-list-files-tests (Makefile.am): Likewise.
22015         * tests/test-update-copyright.sh: Augment PATH here.
22016         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
22017         path_prepend_.
22018         * tests/test-vc-list-files-git.sh: Likewise.
22019
22020 2010-09-04  Jim Meyering  <meyering@redhat.com>
22021
22022         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
22023         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
22024
22025 2010-09-04  Bruno Haible  <bruno@clisp.org>
22026
22027         strdup: Fix compilation error in C++ mode.
22028         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
22029         the macro.
22030
22031 2010-09-04  Bruno Haible  <bruno@clisp.org>
22032
22033         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
22034         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
22035         macro into a function.
22036         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22037
22038 2010-09-04  Bruno Haible  <bruno@clisp.org>
22039
22040         Set PATH_SEPARATOR the same way autoconf does.
22041         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
22042         the value of PATH_SEPARATOR the same way autoconf-generated configure
22043         scripts do.
22044         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
22045         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22046
22047 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22048
22049         Set PATH_SEPARATOR the same way autoconf does.
22050         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
22051         the same way autoconf-generated configure scripts do.
22052         * posix-modules: Likewise.
22053
22054 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22055
22056         hash: fix safe_hasher const typo
22057         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
22058         const; otherwise, there is a type error later.
22059
22060 2010-09-02  Jim Meyering  <meyering@redhat.com>
22061
22062         test-update-copyright.sh: require perl 5.8.0
22063         * tests/test-update-copyright.sh: Require 5.8.0,
22064         which Tom G. Christensen has confirmed is adequate,
22065         while 5.6.1 is not.
22066
22067 2010-09-02  Eric Blake  <eblake@redhat.com>
22068
22069         tests: init.sh improvements for re-exec'ing with zsh
22070         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
22071         -vx through shell re-exec.
22072         Reported by Tom G. Christensen.
22073
22074         wctype: fix typo in previous commit
22075         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
22076         Reported by Ludovic Courtès.
22077
22078 2010-09-02  Jim Meyering  <meyering@redhat.com>
22079
22080         test-update-copyright.sh: skip test if Perl is too old
22081         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
22082         Reported by Tom G. Christensen.
22083
22084 2010-09-02  Bruno Haible  <bruno@clisp.org>
22085
22086         wctype: Avoid compilation error on IRIX 6.5.30.
22087         * lib/wctype.in.h (iswblank): Declare with a replacement if
22088         REPLACE_ISWBLANK is set.
22089         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
22090         declared. Set REPLACE_ISWBLANK.
22091         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
22092         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
22093         * doc/posix-headers/wctype.texi: Likewise.
22094         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22095
22096 2010-09-01  Bruno Haible  <bruno@clisp.org>
22097
22098         New module 'socketlib'.
22099         * modules/socketlib: New file.
22100         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
22101         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
22102         * modules/sockets (Depends-on): Add socketlib.
22103         Suggested by Sam Steingold <sds@gnu.org>.
22104
22105 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22106
22107         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
22108
22109         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
22110         when one needs search access to a directory but not read access.
22111         On systems where it is available, it works in some cases where
22112         O_RDONLY does not, namely on directories that are searchable but
22113         not readable, and which need only to be searchable.  If O_SEARCH
22114         is not available, fall back to the traditional method of using
22115         O_RDONLY.
22116
22117         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
22118         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
22119         when opening a directory that needs only to be searchable.
22120         * lib/chdir-safer.c (chdir_no_follow): Likewise.
22121         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
22122         * lib/openat-proc.c (openat_proc_name): Likewise.
22123         * lib/openat.c (openat_needs_fchdir): Likewise.
22124         * lib/save-cwd.c (save_cwd): Likewise.
22125         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
22126
22127 2010-08-28  Bruno Haible  <bruno@clisp.org>
22128
22129         New module 'host-cpu-c-abi'.
22130         * modules/host-cpu-c-abi: New file.
22131         * m4/host-cpu-c-abi.m4: New file, based on part of
22132         clisp/src/m4/general.m4.
22133         Requested by Sam Steingold <sds@gnu.org>.
22134
22135 2010-08-31  Eric Blake  <eblake@redhat.com>
22136         and Jim Meyering  <meyering@redhat.com>
22137
22138         hash: factor, and guard against misbehaving hasher function
22139         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
22140         of table->hasher's return value.  Also protect against a hash value
22141         so large that adding it to table->bucket results in a NULL pointer.
22142         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
22143         Use it in place of open-coded check-and-abort.
22144
22145 2010-08-30  Bruno Haible  <bruno@clisp.org>
22146
22147         hash: silence spurious clang warning
22148         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
22149         Reported by Eric Blake.
22150
22151 2010-08-30  Eric Blake  <eblake@redhat.com>
22152
22153         strstr, memmem, strcasestr: avoid leaked shell message
22154         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
22155         FreeBSD.
22156         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22157         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22158
22159         tests: silence clang warning
22160         * tests/test-malloca.c (do_allocation): Avoid dead store.
22161
22162 2010-08-29  Bruno Haible  <bruno@clisp.org>
22163
22164         gettext: Fix recent mistake.
22165         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
22166
22167 2010-08-29  Bruno Haible  <bruno@clisp.org>
22168
22169         selinux-h: Offer a --without-selinux option.
22170         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
22171         --without-selinux was specified, skip all tests and define
22172         HAVE_SELINUX_SELINUX_H to 0.
22173         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
22174         set LIB_SELINUX to empty.
22175         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
22176         gl_LIBSELINUX. If --without-selinux was specified, replace
22177         selinux/context.h.
22178         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
22179
22180 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22181             Bruno Haible  <bruno@clisp.org>
22182
22183         Make the module 'realloc-gnu' work again on AIX and OSF/1.
22184         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
22185         of HAVE_REALLOC.
22186         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
22187         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
22188         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
22189         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22190
22191 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22192             Bruno Haible  <bruno@clisp.org>
22193
22194         Make the module 'calloc-gnu' work again on AIX and OSF/1.
22195         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
22196         HAVE_CALLOC.
22197         * lib/xmalloc.c: Update accordingly.
22198         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
22199         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
22200         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
22201
22202 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22203             Bruno Haible  <bruno@clisp.org>
22204
22205         Make the module 'malloc-gnu' work again on AIX and OSF/1.
22206         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
22207         HAVE_MALLOC.
22208         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
22209         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
22210         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22211
22212 2010-08-29  Bruno Haible  <bruno@clisp.org>
22213
22214         Update modules list.
22215         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22216         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
22217         (String handling <string.h>): Add astrxfrm.
22218         (File system functions): Add readlinkat.
22219
22220 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22221
22222         Tests for module 'realloc-gnu'.
22223         * modules/realloc-gnu-tests: New file.
22224         * tests/test-realloc-gnu.c: New file.
22225
22226         Tests for module 'calloc-gnu'.
22227         * modules/calloc-gnu-tests: New file.
22228         * tests/test-calloc-gnu.c: New file.
22229
22230         Tests for module 'malloc-gnu'.
22231         * modules/malloc-gnu-tests: New file.
22232         * tests/test-malloc-gnu.c: New file.
22233
22234 2010-08-28  Bruno Haible  <bruno@clisp.org>
22235
22236         Rename module 'realloc' -> 'realloc-gnu'.
22237         * modules/realloc-gnu: New file, copied from modules/realloc.
22238         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
22239         obsolete.
22240         * modules/mgetgroups (Depends-on): Update.
22241         * doc/posix-functions/realloc.texi: Update.
22242         * NEWS: Mention the change.
22243
22244         Rename module 'calloc' -> 'calloc-gnu'.
22245         * modules/calloc-gnu: New file, copied from modules/calloc.
22246         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
22247         obsolete.
22248         * doc/posix-functions/calloc.texi: Update.
22249         * NEWS: Mention the change.
22250
22251         Rename module 'malloc' -> 'malloc-gnu'.
22252         * modules/malloc-gnu: New file, copied from modules/malloc.
22253         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
22254         obsolete.
22255         * modules/argp (Depends-on): Update.
22256         * modules/regex (Depends-on): Update.
22257         * doc/posix-functions/malloc.texi: Update.
22258         * NEWS: Mention the change.
22259
22260 2010-08-28  Eric Blake  <eblake@redhat.com>
22261
22262         pread, pwrite: add missing dependency
22263         * modules/pread (Depends-on): Add extensions.
22264         * modules/pwrite (Depends-on): Likewise.
22265
22266 2010-08-28  Bruno Haible  <bruno@clisp.org>
22267
22268         unistr/u*-strchr: Fix tests dependencies.
22269         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
22270         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
22271         Reported by Ian Beckwith <ianb@erislabs.net>.
22272
22273 2010-08-28  Bruno Haible  <bruno@clisp.org>
22274
22275         read-file: Don't occupy too much unused memory.
22276         * lib/read-file.c (fread_file): Shrink the buffer at the end.
22277
22278 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
22279             Eric Blake  <eblake@redhat.com>
22280             Bruno Haible  <bruno@clisp.org>
22281
22282         read-file: Avoid memory reallocations with regular files.
22283         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
22284         (fread_file): With regular files, use the remaining length as the
22285         initial buffer size.  Check against overflow.
22286         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
22287         sys_stat.
22288
22289 2010-08-28  Bruno Haible  <bruno@clisp.org>
22290
22291         ftello: Relax license.
22292         * modules/ftello (License): Relax to LGPLv2+.
22293         Reported by Eric Blake.
22294
22295 2010-08-28  Bruno Haible  <bruno@clisp.org>
22296
22297         Avoid relocwrapper link errors due to gnulib replacement functions.
22298         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
22299         function.
22300         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22301
22302 2010-08-28  Bruno Haible  <bruno@clisp.org>
22303
22304         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
22305         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
22306         defined.
22307         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
22308         Suggested by Eric Blake.
22309
22310 2010-08-28  Bruno Haible  <bruno@clisp.org>
22311
22312         sys_socket, netdb: Ensure socklen_t gets defined.
22313         * modules/sys_socket (Depends-on): Add socklen.
22314         * modules/netdb (Depends-on): Likewise.
22315         * modules/getaddrinfo (Depends-on): Remove socklen.
22316         * modules/getsockopt (Depends-on): Likewise.
22317         * modules/setsockopt (Depends-on): Likewise.
22318         * tests/test-sys_socket.c: Check that socklen_t is defined.
22319         * tests/test-netdb.c: Likewise.
22320         * m4/socklen.m4: Update comments.
22321         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22322
22323 2010-08-27  Eric Blake  <eblake@redhat.com>
22324
22325         login_tty: add missing dependency
22326         * modules/login_tty (Depends-on): Add pty.
22327
22328 2010-08-26  Eric Blake  <eblake@redhat.com>
22329
22330         lib-symbol-versions: fix m4 quoting
22331         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
22332         format for AC_LINK_IFELSE.
22333
22334         glob: fix compile test
22335         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
22336
22337         btowc: fix missing file
22338         * modules/btowc (Files): Also ship locale-fr.m4.
22339
22340         lseek: fix link test
22341         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
22342         AC_LINK_IFELSE.
22343
22344         include_next: silence autoconf 2.68 warning
22345         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
22346         AC_COMPILE_IFELSE as special.
22347         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
22348         autoconf < 2.68.
22349
22350         acl: fix compilation test
22351         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
22352         AC_COMPILE_IFELSE.
22353
22354 2010-08-26  Bruno Haible  <bruno@clisp.org>
22355
22356         Modernize AC_TRY_RUN invocations.
22357         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
22358         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22359         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
22360         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
22361         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22362         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22363         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22364         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22365         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22366         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22367         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22368         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22369         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22370         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22371         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22372         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22373         gl_MBRLEN_NUL_RETVAL): Likewise.
22374         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22375         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
22376         Likewise.
22377         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22378         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22379         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22380         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22381         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22382         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22383         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
22384         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22385         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
22386         Likewise.
22387         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22388         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22389         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22390         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22391         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22392         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22393         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22394         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
22395         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22396         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22397
22398 2010-08-26  Bruno Haible  <bruno@clisp.org>
22399
22400         Modernize AC_TRY_LINK invocations.
22401         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
22402         AC_TRY_LINK.
22403         * m4/argp.m4 (gl_ARGP): Likewise.
22404         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
22405         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22406         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
22407         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22408         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22409         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
22410         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
22411         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22412         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22413         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22414         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22415         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
22416         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
22417         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22418         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22419         * m4/hostent.m4 (gl_HOSTENT): Likewise.
22420         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22421         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
22422         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22423         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
22424         Likewise.
22425         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
22426         Likewise.
22427         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
22428         Likewise.
22429         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22430         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
22431         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
22432         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
22433         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
22434         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22435         * m4/servent.m4 (gl_SERVENT): Likewise.
22436         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22437         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
22438         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
22439         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
22440         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22441         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22442         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22443         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22444         * modules/tsearch-tests (configure.ac): Likewise.
22445
22446 2010-08-26  Bruno Haible  <bruno@clisp.org>
22447
22448         Modernize AC_TRY_COMPILE invocations.
22449         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
22450         AC_TRY_COMPILE.
22451         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
22452         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
22453         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22454         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22455         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22456         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22457         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22458         * m4/lock.m4 (gl_LOCK): Likewise.
22459         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
22460         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22461         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
22462         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22463         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22464         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
22465         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22466         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
22467         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22468         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22469         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22470         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22471         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
22472         extraneous semicolon.
22473
22474 2010-08-26  Jim Meyering  <meyering@redhat.com>
22475
22476         stat-time: relax license LGPL
22477         * modules/stat-time (License): Change from GPL to LGPL,
22478         with consent from all contributors, for use in libguile.
22479         Requested by Ludovic Courtès.
22480
22481 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
22482
22483         poll: return immediately on POLLHUP.
22484         * lib/poll.c (poll): Always set timeout before wait_timeout is
22485         computed.
22486
22487 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22488
22489         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
22490         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
22491         rmdir ("dir/.//"), unlinkat.
22492
22493 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22494
22495         stdbool: avoid spurious failure with modern xlc
22496         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22497
22498 2010-08-24  Bruno Haible  <bruno@clisp.org>
22499
22500         getloadavg: simplify code
22501         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
22502         gl_have_func. Update comments.
22503
22504 2010-08-24  Eric Blake  <eblake@redhat.com>
22505
22506         getloadavg: don't define SVR4 on cygwin
22507         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
22508         only define SVR4 when -lkvm is required.
22509         Reported by Yaakov Selkowitz.
22510
22511 2010-08-24  Bruno Haible  <bruno@clisp.org>
22512
22513         priv-set: fix comment
22514         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
22515
22516 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22517
22518         priv-set: fix comments
22519         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
22520         to match code, as suggested by David Bartley in:
22521         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
22522
22523 2010-08-23  Eric Blake  <eblake@redhat.com>
22524
22525         stdbool: avoid rejecting clang
22526         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22527         * tests/test-stdbool.c: Enable more tests if using the system
22528         <stdbool.h> instead of the gnulib replacement.
22529         (main): Move xlc bug test to a runtime test for all compilers.
22530         Reported by Anders Kaseorg.
22531
22532         argz: fix shell quoting issue
22533         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
22534         Reported by Charles Wilson.
22535
22536 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
22537             Erik Faye-Lund <kusmabite@gmail.com>
22538
22539         poll, select: handle ERROR_BROKEN_PIPE.
22540         * lib/poll.c (win32_compute_revents): Return POLLHUP when
22541         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22542         * lib/select.c (win32_compute_revents): Do not mark a pipe
22543         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22544
22545 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
22546
22547         fts: allow compilation with C++
22548         * lib/fts_.h: Specify extern "C" linkage with C++.
22549
22550 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22551
22552         Fix gnulib-tool sed script de-commentation for AIX sed.
22553         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
22554         sed.
22555
22556 2010-08-17  Eric Blake  <eblake@redhat.com>
22557
22558         test-stddef: test for (some) offsetof bugs
22559         * tests/test-stddef.c: Enhance test to ensure correct type of
22560         offsetof.
22561         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
22562         that we are not fixing at this time.
22563
22564 2010-08-15  Bruno Haible  <bruno@clisp.org>
22565
22566         stpncpy: Allow stpncpy to be defined as a macro.
22567         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
22568         if it's already correctly declared.
22569         * lib/string.in.h (stpncpy): Undefine before redefining.
22570         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
22571
22572 2010-08-14  Bruno Haible  <bruno@clisp.org>
22573
22574         Rename module 'memxfrm' to 'amemxfrm'.
22575         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
22576         (amemxfrm): Renamed from memxfrm.
22577         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
22578         (amemxfrm): Renamed from memxfrm.
22579         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
22580         * NEWS: Mention the change.
22581         * MODULES.html.sh (String handling <string.h>): Update.
22582         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
22583         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
22584         * lib/unicase/u16-casexfrm.c: Likewise.
22585         * lib/unicase/u32-casexfrm.c: Likewise.
22586         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
22587         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
22588         * lib/uninorm/u16-normxfrm.c: Likewise.
22589         * lib/uninorm/u32-normxfrm.c: Likewise.
22590         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
22591         memxfrm.
22592         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
22593         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
22594         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
22595         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
22596         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
22597         Suggested by Paul Eggert.
22598
22599 2010-08-14  Bruno Haible  <bruno@clisp.org>
22600
22601         Tests for module 'astrxfrm'.
22602         * modules/astrxfrm-tests: New file.
22603         * tests/test-astrxfrm.c: New file.
22604
22605         New module 'astrxfrm'.
22606         * lib/astrxfrm.h: New file.
22607         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
22608         * modules/astrxfrm: New file.
22609
22610 2010-08-14  Reuben Thomas <rrt@sc3d.org>
22611
22612         regex: Tweak doc.
22613         * doc/regex.texi (Overview): Don't mention regex.c.
22614         (GNU Regular Expression Compiling): Likewise.
22615         (Match-end-of-line Operator): Mention 'not_eol'.
22616
22617 2010-08-14  Brian Gough  <bjg@gnu.org>
22618             Bruno Haible  <bruno@clisp.org>
22619
22620         git-merge-changelog: add doc relating to use with bzr and hg.
22621         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
22622
22623 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
22624
22625         pthread: fix pthread.h creation for srcdir != builddir
22626         * modules/pthread (Makefile.am): Fix the rule to work also in a
22627         non-srcdir build.
22628
22629 2010-08-13  Karl Berry  <karl@gnu.org>
22630
22631         * doc/regex.texi (Predefined Syntaxes): @smallexample.
22632         * doc/posix-*/*: force line break before @url of POSIX
22633         specifications.
22634         Suggested by Werner Lemberg.
22635
22636 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22637
22638         strtod: fix const diagnostic
22639         * lib/strtod.c (strtod): Don't assign const char * to char *,
22640         as this elicits a warning from GCC when warnings are enabled.
22641
22642 2010-08-10  Pádraig Brady <P@draigbrady.com>
22643         and Eric Blake  <eblake@redhat.com>
22644
22645         copy-acl: ignore ENOTSUP on HP-UX
22646         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
22647         so that it is available for HP-UX.
22648         * lib/copy-acl.c (qcopy_acl): Use it.
22649         Reported by Patrick M. Callahan.
22650
22651 2010-08-10  Eric Blake  <eblake@redhat.com>
22652
22653         open, chown: relax license
22654         * modules/open (License): Change to LGPLv2+, with consent by all
22655         authors, for use in augeas.
22656         * modules/chown (License): Likewise.
22657         * modules/lchown (Likewise): Likewise.
22658         Requested by Adam Stokes.
22659
22660 2010-08-09  Karl Berry  <karl@gnu.org>
22661
22662         * build-aux/ar-lib: new file, import from Automake.
22663         * config/srclist.txt: autocheck for updates.
22664
22665 2010-08-09  Eric Blake  <eblake@redhat.com>
22666
22667         readlinkat: adjust client modules
22668         * modules/areadlinkat (Depends-on): Use readlinkat, not
22669         symlinkat.
22670         * modules/areadlinkat-with-size (Depends-on): Likewise.
22671
22672         mknod: be more vocal about danger of running tests as root
22673         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
22674         root, since that is just asking for problems.
22675         Suggested by Bruno Haible, based on a report by Rainer Tammer.
22676
22677         readlinkat: split into its own module
22678         * modules/symlinkat: Split readlinkat...
22679         * modules/readlinkat: ...into separate module.
22680         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
22681         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
22682         * lib/symlinkat.c (readlinkat): Move...
22683         * lib/readlinkat.c: ...into new file.
22684         * modules/symlinkat-tests: Split readlinkat test...
22685         * modules/readlinkat-tests: ...into separate module.
22686         * tests/test-symlinkat.c: Split...
22687         * tests/test-readlinkat.c: ...into new file.
22688         * NEWS: Document the split.
22689         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22690         * lib/unistd.in.h (readlinkat): Likewise.
22691         Suggested by Bruno Haible.
22692
22693 2010-08-08  Bruno Haible  <bruno@clisp.org>
22694
22695         memxfrm: Speed up.
22696         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
22697         that usually only one call to strxfrm is necessary for each string
22698         part.
22699         Reported by Paul Eggert <eggert@cs.ucla.edu>.
22700
22701 2010-08-07  Karl Berry  <karl@gnu.org>
22702
22703         * doc/posix-headers/limits.texi,
22704         * doc/posix-functions/malloc.texi,
22705         * doc/posix-functions/strsignal.texi: missing @item.
22706         * doc/ld-version-script.texi: spurious leading i.
22707         * doc/regex.texi (Interval Operators): no commas inside @var.
22708
22709 2010-08-01  Bruno Haible  <bruno@clisp.org>
22710
22711         Integrate the regex documentation.
22712         * doc/gnulib.texi: Define 'cn' index.
22713         (Regular expressions): New a chapter that includes regex.texi and
22714         regexprops-generic.texi.
22715         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
22716         syntax.
22717
22718         Whitespace cleanup.
22719         * doc/regex.texi: Remove trailing spaces.
22720
22721         Add regex documentation.
22722         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
22723         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
22724         Written by Kathy A. Hargreaves and Karl Berry.
22725
22726 2010-08-01  Bruno Haible  <bruno@clisp.org>
22727
22728         link: Update documentation.
22729         * doc/posix-functions/link.texi: Update regarding Solaris.
22730
22731 2010-07-31  Bruno Haible  <bruno@clisp.org>
22732
22733         Update modules list.
22734         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
22735         (String handling <string.h>): Add memcmp2, memxfrm.
22736         (Container data structures): Add xlist, xsublist, xoset.
22737         (Core language properties): Add alignof, unused-parameter.
22738         (Process control, Numeric conversion functions <stdlib.h>): Renamed
22739         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
22740         (Unibyte characters <ctype.h>): New section.
22741         (String handling <string.h>): New section.
22742         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
22743         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
22744         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
22745         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
22746         tan, tanh, tanl, y0, y1, yn.
22747         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
22748         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
22749         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
22750         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
22751         unlockpt, vdprintf, vdprintf-posix.
22752         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
22753         (File system functions): Add concat-filename, sys_file, sys_ioctl,
22754         xconcat-filename.
22755         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
22756         getdtablesize, pipe2, pipe2-safer.
22757         (Security): New section.
22758         (Networking functions): Add accept4.
22759         (Signal handling): Add sigpipe.
22760         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
22761         mbmemcasecoll.
22762         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
22763         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
22764         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
22765         pipe-filter-ii.
22766         (Misc): Add argp-version-etc, login_tty, parse-duration.
22767
22768 2010-07-31  Bruno Haible  <bruno@clisp.org>
22769
22770         Improve doc in MODULES.html.
22771         * modules/linkat (Description): Add the word "function".
22772         * modules/mkfifo (Description): Likewise.
22773         * modules/mknod (Description): Likewise.
22774         * modules/remove (Description): Likewise.
22775         * modules/renameat (Description): Likewise.
22776         * modules/stat (Description): Likewise.
22777         * modules/symlink (Description): Likewise.
22778         * modules/unlink (Description): Likewise.
22779
22780 2010-07-31  Bruno Haible  <bruno@clisp.org>
22781
22782         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
22783         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
22784         option --enable/disable-c++ instead of --enable/disable-cxx.
22785         * NEWS: Mention the change.
22786
22787 2010-07-31  Bruno Haible  <bruno@clisp.org>
22788
22789         readlink, areadlink: Relax test a bit.
22790         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
22791         alternative to ENOTDIR.
22792         * tests/test-areadlink.h (test_areadlink): Likewise.
22793         Reported by Rainer Tammer.
22794
22795 2010-07-31  Bruno Haible  <bruno@clisp.org>
22796
22797         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
22798         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
22799         character, perform the search using U_STRCHR.
22800         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
22801         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
22802         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
22803         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
22804         Suggested by Paolo Bonzini.
22805
22806 2010-07-31  Bruno Haible  <bruno@clisp.org>
22807
22808         unistr/u*-strstr: Fix dependencies.
22809         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
22810         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
22811         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
22812
22813 2010-07-31  Bruno Haible  <bruno@clisp.org>
22814
22815         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
22816         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
22817         the beginning of the loop.
22818         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
22819         cases in 'switch' statement.
22820
22821         unistr/u8-strchr: Fix several bugs.
22822         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
22823         the string. When not found, return NULL, not a pointer near the end.
22824
22825         More tests for unistr/u8-strchr.
22826         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
22827         that the function does not read past the first occurrence of the byte
22828         being searched.
22829         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
22830         * tests/unistr/test-u16-strchr.c (main): New function.
22831         * tests/unistr/test-u32-strchr.c (main): New function.
22832
22833 2010-07-31  Bruno Haible  <bruno@clisp.org>
22834
22835         posix-modules: Ignore backup files of documentation files.
22836         * posix-modules: grep only through files named *.texi.
22837
22838 2010-07-31  Bruno Haible  <bruno@clisp.org>
22839
22840         symlinkat: Fix documentation.
22841         * doc/posix-functions/readlinkat.texi: Fix module name.
22842
22843 2010-07-31  Bruno Haible  <bruno@clisp.org>
22844
22845         fchownat: Replace also when chown has the trailing slash bug.
22846         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
22847         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
22848         introduced on 2010-04-10.
22849         Reported by Rainer Tammer.
22850
22851 2010-07-31  Bruno Haible  <bruno@clisp.org>
22852
22853         linkat: Work around AIX 7.1 bug.
22854         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
22855         whether linkat handles trailing slash correctly. If not, replace linkat
22856         and define LINKAT_TRAILING_SLASH_BUG.
22857         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
22858         check whether (fd1,file1) points to a directory if file1 or file2 ends
22859         in a slash. Code taken from lib/link.c.
22860         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
22861         Reported by Rainer Tammer.
22862
22863 2010-07-31  Bruno Haible  <bruno@clisp.org>
22864
22865         Correctly determine whether pow is available in libc on AIX 7 with xlc.
22866         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
22867         This disables an xlc optimization that was causing wrong test results.
22868         Reported by Rainer Tammer.
22869
22870 2010-07-31  Bruno Haible  <bruno@clisp.org>
22871
22872         iconv: Work around AIX 6.1..7.1 bug.
22873         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
22874         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
22875         cross-compiling, guess no on all versions of AIX.
22876         Reported by Rainer Tammer.
22877
22878 2010-07-31  Bruno Haible  <bruno@clisp.org>
22879
22880         readlink: Relax test a bit.
22881         * tests/test-readlink.h (test_readlink): Allow different errno value
22882         when readlink is called with a file name that ends in / and refers to
22883         a file.
22884         Suggested by Eric Blake.
22885         Reported by Rainer Tammer.
22886
22887 2010-07-31  Bruno Haible  <bruno@clisp.org>
22888
22889         copysign: Does not require -lm on glibc systems.
22890         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
22891         gl_COMMON_DOUBLE_MATHFUNC.
22892         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
22893
22894 2010-07-31  Bruno Haible  <bruno@clisp.org>
22895
22896         duplocale: Work around AIX 7.1 bug.
22897         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
22898         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
22899         * lib/duplocale.c (rpl_duplocale): Update comment.
22900         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
22901         Reported by Rainer Tammer.
22902
22903 2010-07-30  Bruno Haible  <bruno@clisp.org>
22904
22905         dirfd: Avoid link error on AIX 7.1.
22906         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
22907         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
22908         exist, set REPLACE_DIRFD.
22909         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
22910         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
22911         * doc/posix-functions/dirfd.texi: Update.
22912         Reported by Rainer Tammer.
22913
22914 2010-07-30  Eric Blake  <eblake@redhat.com>
22915
22916         strtod: next round of AIX fixes
22917         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
22918         exponent.
22919         * tests/test-strtod.c (main): Enhance tests.
22920         * doc/posix-functions/strtod.texi (strtod): Document next bug.
22921         Reported by Rainer Tammer.
22922
22923         futimens: fix configure check
22924         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
22925         Reported by Bruno Haible.
22926
22927 2010-07-30  Bruno Haible  <bruno@clisp.org>
22928
22929         getline: Update regarding AIX.
22930         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
22931         Reported by Rainer Tammer.
22932
22933 2010-07-30  Bruno Haible  <bruno@clisp.org>
22934
22935         wcwidth: Drop replacement on AIX 7.
22936         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
22937         AIX 7.
22938         Reported by Rainer Tammer.
22939
22940 2010-07-30  Bruno Haible  <bruno@clisp.org>
22941
22942         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
22943         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
22944         a 'char *'.
22945         Reported by Rainer Tammer.
22946
22947 2010-07-30  Bruno Haible  <bruno@clisp.org>
22948
22949         unlink: Update regarding AIX.
22950         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
22951         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
22952         Reported by Rainer Tammer.
22953
22954 2010-07-30  Bruno Haible  <bruno@clisp.org>
22955
22956         symlink: Update regarding AIX.
22957         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
22958         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
22959         Reported by Rainer Tammer.
22960
22961 2010-07-30  Bruno Haible  <bruno@clisp.org>
22962
22963         strndup: Update regarding AIX.
22964         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
22965         AIX 7.
22966         Reported by Rainer Tammer.
22967
22968 2010-07-30  Bruno Haible  <bruno@clisp.org>
22969
22970         stat: Update regarding AIX.
22971         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
22972         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
22973         Reported by Rainer Tammer.
22974
22975 2010-07-30  Bruno Haible  <bruno@clisp.org>
22976
22977         truncl: Fix autoconf test.
22978         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
22979         whether truncl works.
22980         Reported by Rainer Tammer.
22981
22982 2010-07-30  Bruno Haible  <bruno@clisp.org>
22983
22984         round: Update regarding AIX.
22985         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
22986         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
22987         Reported by Rainer Tammer.
22988
22989 2010-07-30  Bruno Haible  <bruno@clisp.org>
22990
22991         rename: Update regarding AIX.
22992         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
22993         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
22994         Reported by Rainer Tammer.
22995
22996 2010-07-30  Bruno Haible  <bruno@clisp.org>
22997
22998         printf.m4: Update regarding AIX.
22999         * m4/printf.m4: Update comments regarding AIX.
23000         Reported by Rainer Tammer.
23001
23002 2010-07-30  Bruno Haible  <bruno@clisp.org>
23003
23004         iconv: Update regarding AIX.
23005         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
23006         AIX 7.
23007         Reported by Rainer Tammer.
23008
23009 2010-07-30  Bruno Haible  <bruno@clisp.org>
23010
23011         getopt: Update regarding AIX.
23012         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
23013         no on AIX.
23014         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
23015         Reported by Rainer Tammer.
23016
23017 2010-07-30  Bruno Haible  <bruno@clisp.org>
23018
23019         ldexpl; Update regarding AIX.
23020         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
23021         on AIX 7.
23022         Reported by Rainer Tammer.
23023
23024 2010-07-30  Bruno Haible  <bruno@clisp.org>
23025
23026         frexpl: Update regarding AIX.
23027         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
23028         on AIX 7.
23029         Reported by Rainer Tammer.
23030
23031 2010-07-30  Bruno Haible  <bruno@clisp.org>
23032
23033         open, fopen: Update regarding AIX.
23034         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
23035         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23036         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
23037         * doc/posix-functions/fopen.texi: Likewise.
23038         Reported by Rainer Tammer.
23039
23040 2010-07-30  Bruno Haible  <bruno@clisp.org>
23041
23042         chown: Update doc regarding AIX.
23043         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
23044         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
23045         Reported by Rainer Tammer.
23046
23047 2010-07-30  Eric Blake  <eblake@redhat.com>
23048
23049         strtod: fix bug in replacement function on AIX
23050         * lib/strtod.c (strtod): Special case broken "0x" parse in
23051         underlying strtod.
23052         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
23053         * doc/posix-functions/strtod.texi (strtod): Likewise.
23054         Reported by Rainer Tammer.
23055
23056 2010-07-30  Bruno Haible  <bruno@clisp.org>
23057
23058         mbrlen: Fix cross-compilation guess for AIX.
23059         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
23060         guess. Leftover from 2008-12-22.
23061
23062 2010-07-30  Bruno Haible  <bruno@clisp.org>
23063
23064         mbrtowc: Fix cross-compilation guess for AIX.
23065         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
23066         guess. Leftover from 2008-12-21.
23067
23068 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
23069
23070         init.sh: work around trap limitation of some shells
23071         * tests/init.sh (setup_): Move exit trap outside of shell function.
23072
23073 2010-07-29  Eric Blake  <eblake@redhat.com>
23074
23075         strtod: aid debugging
23076         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
23077         understanding why strtod is rejected.
23078
23079 2010-07-28  Bruno Haible  <bruno@clisp.org>
23080
23081         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
23082         * lib/unistr/u8-chr.c: Include <string.h>.
23083         * tests/unistr/test-u8-chr.c: Likewise.
23084         * tests/unistr/test-u16-chr.c: Likewise.
23085         * tests/unistr/test-u32-chr.c: Likewise.
23086         * tests/unistr/test-u8-strchr.c: Likewise.
23087         * tests/unistr/test-u16-strchr.c: Likewise.
23088         * tests/unistr/test-u32-strchr.c: Likewise.
23089         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
23090         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
23091         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
23092         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
23093
23094 2010-07-28  Bruno Haible  <bruno@clisp.org>
23095
23096         Use spaces for indentation, not tabs.
23097         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23098
23099 2010-07-27  Bruno Haible  <bruno@clisp.org>
23100
23101         mbspcasecmp: Fix function specification.
23102         * lib/string.in.h (mbspcasecmp): Fix specification comment.
23103         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
23104         Reported by Eric Blake <eblake@redhat.com>.
23105
23106 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
23107
23108         timespec: use cast and not conditional, as truncation isn't possible
23109         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
23110         instead of a conditional.  Comment about the situation in more detail.
23111         This undoes most of the 2009-10-29 patch.
23112
23113 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
23114
23115         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
23116         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
23117         * lib/unistr/u8-strchr.c: Likewise.
23118         * modules/unistr/u8-chr: Depend on memchr.
23119
23120         unistr/u*-strchr: add tests
23121         * modules/unistr/u8-strchr-tests: New file.
23122         * modules/unistr/u16-strchr-tests: New file.
23123         * modules/unistr/u32-strchr-tests: New file.
23124         * tests/unistr/test-strchr.h: New file.
23125         * tests/unistr/test-u8-strchr.c: New file.
23126         * tests/unistr/test-u16-strchr.c: New file.
23127         * tests/unistr/test-u32-strchr.c: New file.
23128
23129         unistr/u*-chr: test multibyte sequences more
23130         * tests/unistr/test-chr.h: Do complete testing of the characters in the
23131         test vector.
23132         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
23133         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
23134         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
23135
23136         unistr/u*-chr: test multibyte sequences
23137         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
23138
23139         unistr/u*-chr: prepare for multibyte tests
23140         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
23141         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
23142         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
23143         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
23144         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
23145         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
23146
23147 2010-07-18  Bruno Haible  <bruno@clisp.org>
23148
23149         unistr/u8-strchr: Optimize non-ASCII argument case.
23150         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
23151         because the first byte often matches anyway.
23152         Reported by Pádraig Brady <P@draigbrady.com>.
23153
23154 2010-07-15  Karl Berry  <karl@gnu.org>
23155
23156         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
23157
23158 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
23159
23160         getcwd: on Solaris, work better if ancestors are inaccessible
23161         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
23162         buffer and size, try again with a large buffer.  This works better
23163         on Solaris, since its getcwd succeeds even if the path to the root
23164         is inaccessible, and this is helpful in common cases such as .zfs
23165         hidden directories.  Problem reported by J Chapman Flack in
23166         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
23167         Use system getcwd if it's declared, not merely if it's partly
23168         working; use the partly-working test only to avoid needless effort
23169         if the system getcwd fails.
23170         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
23171         comment that was already obsolete and is now even more obsolete.
23172         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
23173         now might call strdup.
23174
23175 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
23176
23177         pthread: Add enough so that coreutils/src/sort.c compiles.
23178         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
23179         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
23180         gnulib. Include <sched.h> and <time.h>, as per POSIX.
23181         Include <sys/types.h>, in case it defines pthread_t.
23182         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
23183         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
23184         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
23185         (pthread_rwlockattr_t, pthread_spinlock_t):
23186         New typedefs, if HAVE_PTHREAD_T is not defined.
23187         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
23188         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
23189         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
23190         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
23191         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
23192         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
23193         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
23194         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
23195         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
23196         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
23197         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
23198         New macros.
23199         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
23200         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
23201         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
23202         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
23203         (pthread_spin_unlock): New dummy functions.
23204         (pthread_create): Return EAGAIN; don't set errno.
23205         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
23206         require AC_C_INLINE.
23207         * modules/pthread (Depends-on): Add sched, time.
23208         (pthread.h): Use AM_V_GEN.
23209
23210 2010-07-13  Bruno Haible  <bruno@clisp.org>
23211
23212         striconveh: Don't malloc memory if the result buffer is sufficient.
23213         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
23214         buffer if its size is sufficient.
23215         Reported by Ludovic Courtès <ludo@gnu.org>.
23216
23217 2010-07-13  Bruno Haible  <bruno@clisp.org>
23218
23219         strtod: Add safety check.
23220         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
23221
23222 2010-07-12  Bruno Haible  <bruno@clisp.org>
23223
23224         Unify tests that set gl_cv_func_ldexpl_no_libm.
23225         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
23226         gl_FUNC_LDEXPL.
23227         (gl_FUNC_LDEXPL): Invoke it.
23228         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23229
23230 2010-07-12  Bruno Haible  <bruno@clisp.org>
23231
23232         Unify tests that set gl_cv_func_ldexp_no_libm.
23233         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
23234         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
23235         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
23236         (configure.ac): Simply invoke gl_FUNC_LDEXP.
23237         * modules/strtod (Files): Add m4/ldexp.m4.
23238
23239 2010-07-12  Bruno Haible  <bruno@clisp.org>
23240
23241         Unify tests that set gl_cv_func_frexpl_no_libm.
23242         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
23243         gl_FUNC_FREXPL_NO_LIBM.
23244         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
23245         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23246
23247 2010-07-12  Bruno Haible  <bruno@clisp.org>
23248
23249         Unify tests that set gl_cv_func_frexp_no_libm.
23250         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
23251         gl_FUNC_FREXP_NO_LIBM.
23252         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
23253         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23254
23255 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23256
23257         memcoll: clarify sizes versus lengths, document better, and tweak perf
23258         * lib/memcoll.c (strcoll_loop, memcoll0):
23259         Improve quality of descriptive comments.  Name variables
23260         consistently as to whether they are lengths (which do not include
23261         terminating null) versus sizes (which do).
23262         * lib/xmemcoll.c (xmemcoll0): Likewise.
23263         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
23264         returned when s1size == 0; this is easier to compile and saves
23265         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
23266
23267 2010-07-12  Bruno Haible  <bruno@clisp.org>
23268
23269         Tests for module '_Exit'.
23270         * modules/_Exit-tests: New file.
23271         * tests/test-_Exit.sh: New file.
23272         * tests/test-_Exit.c: New file.
23273
23274         New module '_Exit'.
23275         * lib/stdlib.in.h (__attribute__): New macro.
23276         (_Exit): New declaration.
23277         * lib/_Exit.c: New file.
23278         * m4/_Exit.m4: New file.
23279         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
23280         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
23281         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
23282         * modules/_Exit: New file.
23283         * tests/test-stdlib-c++.cc (_Exit): Check signature.
23284         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
23285
23286 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23287
23288         strtod: make it more-accurate typically, and don't require libm
23289         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
23290         Include limits.h.  Don't include string.h.
23291         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
23292         (locale_isspace): New function, so that no casts are needed to
23293         check whether *s is a space.
23294         (ldexp): Provide an unused dummy if not available.
23295         (scale_radix_exp, parse_number, underlying_strtod): New functions.
23296         (strtod): Use them.  This implementation prefers to use the
23297         underlying strtod if available, falling back on our own code
23298         only to fix known bugs.  This is more likely to produce an
23299         accurate result.  Also, it avoids the use of libm functions.
23300         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
23301         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
23302         was absent, but it caused a test failure with coreutils.
23303         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
23304         with libm.
23305         * modules/strtod (Makefile.am, Link): libm is no longer needed.
23306         * modules/strtod-tests (Makefile.am): Likewise.
23307
23308 2010-07-11  Pádraig Brady  <P@draigBrady.com>
23309             Bruno Haible  <bruno@clisp.org>
23310
23311         unistr/u8-strchr: Optimize ASCII argument case.
23312         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
23313
23314 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23315
23316         (x)memcoll: minor tweaks
23317         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
23318         is after the type that it qualifies.
23319         (memcoll0): Likewise.
23320         * lib/memcoll.h (memcoll0): Likewise.
23321         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
23322         * lib/xmemcoll.h (xmemcoll0): Likewise.
23323         * lib/memcoll.c (memcoll0): Correct the comment.  This function
23324         differs from memcoll in that the NUL byte is part of the argument.
23325         Omit the abort-checks, as performance is a real issue here.  Plus,
23326         the checks were wrong anyway (an off-by-one error).  Omit local
23327         variable 'diff', as it's a bit clearer that way.
23328         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
23329         no longer needed.
23330
23331 2010-07-08  Chen Guo <chenguo4@yahoo.com>
23332
23333         (x)memcoll: speedup when input is known to be NUL delimited
23334         * lib/memcoll.c: Include stdlib.
23335         (memcoll0): New function.
23336         (strcoll_loop): New function, refactored for use in both memcoll
23337         and memcoll0.
23338         * lib/memcoll.h (memcoll0): Add prototype.
23339         * lib/xmemcoll.c (xmemcoll0): New function.
23340         (collate_error): New function, refactored for use in both xmemcoll
23341         and xmemcoll0.
23342         * lib/xmemcoll.h (xmemcoll0): Add prototype.
23343         * m4/memcoll.m4: add inline invocation.
23344
23345 2010-07-06  Pádraig Brady  <P@draigBrady.com>
23346
23347         * build-aux/bootstrap: Remove any local translations
23348         from the translation project synchronization directory,
23349         so that local only translations are not distributed.
23350
23351 2010-07-04  Bruno Haible  <bruno@clisp.org>
23352
23353         fsusage: Clarify which code applies to which platforms.
23354         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
23355         platform.
23356         * lib/fsusage.c (get_fs_usage): Likewise.
23357
23358 2010-07-04  Bruno Haible  <bruno@clisp.org>
23359
23360         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
23361         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
23362         Reported by Martin Lambers <marlam@marlam.de>.
23363
23364 2010-07-04  Jim Meyering  <meyering@redhat.com>
23365
23366         hash: once again explicitly disallow insertion of NULL
23367         * lib/hash.c (hash_insert0): Reinstate just-removed test:
23368         inserting a NULL pointer cannot work with these functions.
23369         Add a comment with details.
23370         This reverts part of the 2010-07-01 commit, 5bef1a35
23371         "hash: extend module to deal with non-pointer keys".
23372
23373 2010-07-01  Bruno Haible  <bruno@clisp.org>
23374
23375         stdbool: Update doc.
23376         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
23377         Info from Christian Weisgerber <naddy@mips.inka.de>.
23378
23379 2010-07-01  Jim Meyering  <meyering@redhat.com>
23380
23381         hash: extend module to deal with non-pointer keys
23382         * lib/hash.c (hash_insert0): New interface, much like hash_insert
23383         but that allows insertion of non-pointer entries.
23384         Do not disallow an ENTRY value of NULL.
23385         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
23386         * lib/hash.h (hash_insert0): Declare.
23387
23388 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23389
23390         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
23391         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
23392         not present (i.e. with autoconf 2.59 and when using gettextize, not
23393         gnulib), require AC_GNU_SOURCE instead.
23394
23395 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
23396
23397         idpriv-drop: Fix tests.
23398         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
23399         not to the test-idpriv-droptemp program.
23400
23401 2010-06-29  Bruno Haible  <bruno@clisp.org>
23402
23403         string: Fix syntax error with g++ 2.96.
23404         * lib/string.in.h (__pure__): Remove definition.
23405         (_GL_ATTRIBUTE_PURE): New macro.
23406         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
23407         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
23408         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23409
23410 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
23411
23412         unitypes: Fix bug introduced on 2010-05-18.
23413         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
23414
23415 2010-06-22  Eric Blake  <eblake@redhat.com>
23416
23417         memmem: slight optimization
23418         * lib/str-two-way.h (critical_factorization): Update comments.
23419         Reduce work during factorization phase.
23420         Reported by Carlos Bueno <carlos@bueno.org>.
23421
23422 2010-06-21  Bruno Haible  <bruno@clisp.org>
23423
23424         Fix HAVE_CALLOC_POSIX misnomer.
23425         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
23426         !HAVE_CALLOC_POSIX.
23427         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
23428         HAVE_CALLOC_POSIX.
23429         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
23430         instead of HAVE_CALLOC_POSIX.
23431         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
23432         HAVE_CALLOC_POSIX.
23433
23434         Use modern idiom for calloc() replacement.
23435         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
23436         AC_FUNC_CALLOC.
23437         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
23438         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
23439         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23440         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
23441         (gl_REPLACE_CALLOC): New macro.
23442
23443 2010-06-21  Bruno Haible  <bruno@clisp.org>
23444
23445         Fix HAVE_REALLOC_POSIX misnomer.
23446         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
23447         !HAVE_REALLOC_POSIX.
23448         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
23449         HAVE_REALLOC_POSIX.
23450         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
23451         instead of HAVE_REALLOC_POSIX.
23452         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
23453         HAVE_REALLOC_POSIX.
23454
23455         Use modern idiom for realloc() replacement.
23456         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
23457         AC_FUNC_REALLOC.
23458         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
23459         Autoconf's AC_FUNC_REALLOC.
23460         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23461         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
23462         (gl_REPLACE_REALLOC): New macro.
23463         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23464
23465 2010-06-21  Bruno Haible  <bruno@clisp.org>
23466
23467         Fix HAVE_MALLOC_POSIX misnomer.
23468         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
23469         !HAVE_MALLOC_POSIX.
23470         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
23471         HAVE_MALLOC_POSIX.
23472         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
23473         instead of HAVE_MALLOC_POSIX.
23474         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
23475         HAVE_MALLOC_POSIX.
23476
23477         Use modern idiom for malloc() replacement.
23478         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
23479         AC_FUNC_MALLOC.
23480         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
23481         Autoconf's AC_FUNC_MALLOC.
23482         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23483         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
23484         (gl_REPLACE_MALLOC): New macro.
23485         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23486
23487 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
23488
23489         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
23490         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
23491         This macro takes 3 arguments, not 4.
23492
23493 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
23494
23495         ipv6: fix detection under mingw
23496         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
23497         in6_addr.
23498
23499 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
23500
23501         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
23502         that strtod() works when cross-compiling to a glibc version known
23503         to work.
23504
23505 2010-06-15  Bruno Haible  <bruno@clisp.org>
23506
23507         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
23508
23509 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
23510
23511         select: Correct timeout.
23512         * lib/select.c (rpl_select): Compute wait_timeout correctly.
23513
23514 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23515
23516         git-version-gen: init shell var to avoid env var influence
23517         * build-aux/git-version-gen (v): Init shell var to empty.
23518
23519 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
23520
23521         priv-set: Don't assume that priv.h exists merely because getppriv does.
23522         See Jan Andersen's bug report about AIX 5L in
23523         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
23524         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
23525         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
23526         * lib/priv-set.h: Likewise.
23527         * tests/test-priv-set.c: Likewise.
23528
23529 2010-06-13  Bruno Haible  <bruno@clisp.org>
23530
23531         relocatable: Make it easier to test whether to install wrappers.
23532         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
23533         RELOCATABLE_VIA_WRAPPER.
23534
23535 2010-06-13  Bruno Haible  <bruno@clisp.org>
23536
23537         gnulib-tool: Display specified modules and dependencies differently.
23538         * gnulib-tool (func_show_module_list): New function.
23539         (func_import, func_create_testdir): Invoke it.
23540         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23541
23542 2010-06-13  Bruno Haible  <bruno@clisp.org>
23543
23544         gnulib-tool: Align code of func_import and func_create_testdir.
23545         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
23546         specified_modules.
23547
23548 2010-06-12  Jim Meyering  <meyering@redhat.com>
23549
23550         test-inttostr: avoid spurious failure on Solaris 9
23551         * tests/test-inttostr.c (main): Skip the test when snprintf fails
23552         to accept "%ju".  Reported by Bruno Haible.
23553
23554 2010-06-11  Jim Meyering  <meyering@redhat.com>
23555
23556         test-sys_socket: mark variables as used more readably
23557         * tests/test-sys_socket.c (main): Mark otherwise unused variables
23558         as "used" explicitly via (void) statement casts.  This is more
23559         readable than using them in an artificial return expression.
23560         Suggestion from Bruno Haible.
23561
23562 2010-06-11  Bruno Haible  <bruno@clisp.org>
23563
23564         Avoid some more warnings from "gcc -Wwrite-strings".
23565         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
23566         to 'const char *'.
23567         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
23568         * tests/test-c-strcasestr.c (main): Likewise.
23569         * tests/test-mbscasestr1.c (main): Likewise.
23570         * tests/test-mbscasestr2.c (main): Likewise.
23571         * tests/test-memmem.c (main): Likewise.
23572         * tests/test-strstr.c (main): Likewise.
23573         * tests/test-strcasestr.c (main): Likewise.
23574
23575 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23576
23577         init.sh: change framework_failure_ to fail with status 99, not 1
23578         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
23579         automake's parallel-tests rule that this is an unexpected failure,
23580         even if the test is listed in XFAIL_TESTS.
23581
23582 2010-06-11  Jim Meyering  <meyering@redhat.com>
23583
23584         test-inttostr: avoid warnings about 4-6KB literal strings
23585         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
23586         Include "macros.h", for its definition of ASSERT.
23587         (CK): s/assert/ASSERT/
23588         * modules/inttostr-tests (Files): Add macros.h.
23589
23590         init.sh: don't use $ME_ or skip_ before they are defined
23591         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
23592         their first uses.  Also hoist their companions: warn_, fail_,
23593         framework_failure_, $stderr_fileno.  Prompted by a patch from
23594         Stefano Lattarini.
23595
23596         test-sys_socket: avoid set-but-not-used warnings from gcc
23597         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
23598         avoid warning about set-but-not-used variables.
23599
23600         test-xvasprintf: avoid 'const' discard warnings
23601         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
23602         "const" when assigning from literal strings.
23603         (test_xasprintf): Add "void" in function argument list to placate
23604         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
23605
23606         tests: avoid compilation warnings in argmatch and exclude tests...
23607         in packages that define ARGMATCH_DIE_DECL, like coreutils.
23608         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
23609         Since it always exits, declare with the "noreturn" attribute.
23610         * tests/test-argmatch.c: Likewise.
23611
23612         tests: avoid 'const' discard warnings in mbsstr tests
23613         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
23614         * tests/test-mbsstr2.c (main): Likewise.
23615
23616         test-verify: avoid warning from gcc's -Wmissing-declarations
23617         * tests/test-verify.c (function): Declare to be static.
23618
23619         test-inttostr.c: include <string.h> for use of strcmp
23620         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
23621
23622         test-linkat: avoid failed assertion on "other" architectures
23623         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
23624         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
23625         sparc: https://bugs.launchpad.net/bugs/591968
23626
23627 2010-06-11  Jim Meyering  <meyering@redhat.com>
23628
23629         printf.m4: avoid autoconf's "Expanded Before Required" warning
23630         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
23631         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
23632         autoconf warning.
23633
23634 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
23635
23636         Replacement header templates are now named with ".in", not "_".
23637         * doc/gnulib-intro.texi: Correct.
23638
23639 2010-06-10  Jim Meyering  <meyering@redhat.com>
23640
23641         inttostr-tests: depend on snprintf, not snprintf-posix
23642         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
23643         snprintf-posix, to avoid this aclocal failure:
23644           missing file gnulib-tests/vasnprintf.c
23645           configure.ac:45: error: expected source file, required through \
23646           AC_LIBSOURCES, not found
23647
23648 2010-06-10  Jim Meyering  <meyering@redhat.com>
23649
23650         inttostr: add a new function, inttostr, and tests
23651         The namesake function was not available.  The existence of the
23652         template file, inttostr.c makes its addition nontrivial.
23653         * lib/anytostr.c: Rename from inttostr.c.
23654         (anytostr): Rename from inttostr.
23655         * lib/inttostr.c: New file.
23656         * modules/inttostr (Files): Add anytostr.c.
23657         (Makefile.am): Set lib_SOURCES instead of ...
23658         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
23659         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
23660         * lib/offtostr.c: Likewise.
23661         * lib/uinttostr.c: Likewise.
23662         * lib/umaxtostr.c: Likewise.
23663         * modules/inttostr-tests: New file.
23664         * tests/test-inttostr.c: New file.  Test these functions.
23665
23666 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
23667             Bruno Haible  <bruno@clisp.org>
23668
23669         Add "Extending Gnulib" chapter to manual.
23670         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
23671         chapter.
23672         (Extending Gnulib): New chapter.
23673         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
23674         chapter.
23675
23676 2010-06-09  Bruno Haible  <bruno@clisp.org>
23677
23678         Avoid relocwrapper link errors due to gnulib replacement functions.
23679         * lib/areadlink.c: Use the system's malloc, realloc functions.
23680         (areadlink): Set errno to ENOMEM explicitly.
23681         * modules/areadlink (Depends-on): Remove malloc-posix.
23682         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23683
23684 2010-06-09  Bruno Haible  <bruno@clisp.org>
23685
23686         Avoid relocwrapper link errors due to gnulib replacement functions.
23687         * lib/canonicalize-lgpl.c: Use the system's malloc function.
23688         * lib/malloca.c: Likewise.
23689         * lib/relocatable.c: Likewise.
23690         * lib/progreloc.c: Use the system's malloc, sprintf functions.
23691         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
23692         * lib/setenv.c: Use the system's malloc, realloc functions.
23693         * lib/strerror.c: Use the system's sprintf function.
23694         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23695
23696 2010-06-04  Bruno Haible  <bruno@clisp.org>
23697
23698         Prefer documented low-level autoconf macro names.
23699         * m4/lib-link.m4: Use m4_translit instead of translit.
23700         * m4/environ.m4: Likewise.
23701         * m4/mathfunc.m4: Likewise.
23702         * m4/onceonly.m4: Likewise.
23703         * m4/stdint.m4: Likewise.
23704         Suggested by Eric Blake.
23705
23706 2010-06-04  Martin Lambers  <marlam@marlam.de>
23707             Bruno Haible  <bruno@clisp.org>
23708
23709         havelib: Allow library names with '+' characters.
23710         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23711         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
23712
23713 2010-06-09  Bruno Haible  <bruno@clisp.org>
23714
23715         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
23716         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
23717         realloc failed.
23718
23719 2010-06-08  Peter Simons  <simons@cryp.to>
23720
23721         maint.mk: make the news-check rule more configurable
23722         * top/maint.mk (news-check-lines-spec): New variable.
23723         (news-check): Use "sed -n 1,10p" in place of "head".
23724
23725 2010-06-07  Jim Meyering  <meyering@redhat.com>
23726
23727         do-release-commit-and-tag: fix typo in --help
23728         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
23729
23730         regex: avoid new dead-code warning with gcc-4.6.0
23731         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
23732         if-block containing a while-loop.  It's been unused for at least
23733         5 years.
23734
23735 2010-06-05  Bruno Haible  <bruno@clisp.org>
23736
23737         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
23738         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
23739
23740 2010-06-04  Bruno Haible  <bruno@clisp.org>
23741
23742         Update to GNU gettext 0.18.1.
23743         * modules/gettext (configure.ac): Require gettext infrastructure from
23744         version 0.18.1.
23745
23746 2010-06-03  Bruno Haible  <bruno@clisp.org>
23747
23748         Don't use AC_LIBOBJ with file names in subdirectories.
23749         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
23750         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
23751         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
23752         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
23753         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
23754         gl_LIBUNISTRING_LIBSOURCE.
23755         (Makefile.am): Augment lib_SOURCES here, conditionally.
23756         * NEWS: Drop requirement for Automake option 'subdir-objects'.
23757
23758 2010-06-03  Bruno Haible  <bruno@clisp.org>
23759
23760         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
23761         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
23762         expansion does not end with a newline.
23763         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
23764         unnecessary newline.
23765
23766 2010-06-03  Bruno Haible  <bruno@clisp.org>
23767
23768         Reduce dependencies.
23769         * tests/test-quotearg.h: New file, extracted from
23770         tests/test-quotearg.c.
23771         * tests/test-quotearg-simple.c: New file, extracted from
23772         tests/test-quotearg.c.
23773         * tests/test-quotearg.c: Don't include <ctype.h>.
23774         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
23775         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
23776         use_quote_double_quotes, use_quotearg_colon): Moved to
23777         tests/test-quotearg.h.
23778         (results_g, flag_results, custom_quotes, custom_results): Moved
23779         to tests/test-quotearg-simple.c.
23780         (main): Moved the part that does not depend on gettext to
23781         tests/test-quotearg-simple.c. Return 77 if the test cannot be
23782         performed.
23783         * modules/quotearg-simple: New file.
23784         * modules/quotearg-simple-tests: New file.
23785         * modules/quotearg (Depends-on): Add quotearg-simple.
23786         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
23787         (Files): Add tests/test-quotearg.h.
23788         Reported by Paolo Bonzini.
23789
23790 2010-06-03  Bruno Haible  <bruno@clisp.org>
23791
23792         Reduce dependencies.
23793         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
23794
23795 2010-06-03  Bruno Haible  <bruno@clisp.org>
23796
23797         time: Undefine more broken macros.
23798         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
23799         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
23800         Reported by Eric Blake.
23801
23802 2010-06-03  Bruno Haible  <bruno@clisp.org>
23803
23804         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
23805         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
23806         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
23807         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
23808         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
23809         Reported by Ludovic Courtès <ludo@gnu.org>.
23810
23811 2010-06-02  Eric Blake  <eblake@redhat.com>
23812
23813         time: work with mingw + pthreads-win32 library
23814         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
23815         if timespec is defined only in pthread.h.
23816         * modules/time (Makefile.am): Substitute it.
23817         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
23818         <pthread.h>, when needed.
23819         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
23820         from the library.
23821
23822 2010-05-31  Bruno Haible  <bruno@clisp.org>
23823
23824         Avoid expanding two macros in the wrong order.
23825         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
23826         gl_LIBUNISTRING if it is defined.
23827         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
23828         autoconf >= 2.64.
23829         Reported by Ludovic Courtès <ludo@gnu.org>.
23830
23831 2010-05-27  Jim Meyering  <meyering@redhat.com>
23832
23833         maint.mk: also prohibit "#undef" of always-defined symbols
23834         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
23835         Allow more than one space before the symbol name.
23836         (sc_prohibit_always-defined_macros): Use grep's -E, now that
23837         the regexp uses alternation.
23838
23839 2010-05-26  Eric Blake  <eblake@redhat.com>
23840
23841         maint.mk: avoid echo -e
23842         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
23843         Convert all uses of echo -* to printf.
23844         Reported by Matthias Bolte.
23845
23846 2010-05-25  Bruno Haible  <bruno@clisp.org>
23847
23848         Update to GNU gettext 0.18, part 2.
23849         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
23850         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
23851
23852 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23853
23854         Add missing include in test-pwrite.c.
23855         * tests/test-pwrite.c: Include string.h, for strcmp.
23856
23857 2010-05-24  Bruno Haible  <bruno@clisp.org>
23858
23859         * NEWS: Mention requirement for Automake option 'subdir-objects'.
23860
23861 2010-05-24  Bruno Haible  <bruno@clisp.org>
23862
23863         Don't use conversion with transliteration in u{8,16,32}_strcoll.
23864         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
23865         iconveh_error argument.
23866         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
23867         U_STRCONV_TO_LOCALE.
23868         * lib/unistr/u16-strcoll.c: Likewise.
23869         * lib/unistr/u32-strcoll.c: Likewise.
23870         * modules/unistr/u8-strcoll (Depends-on): Add
23871         uniconv/u8-strconv-to-enc, localcharset. Remove
23872         uniconv/u8-strconv-to-locale.
23873         (configure.ac): Bump version number.
23874         * modules/unistr/u16-strcoll (Depends-on): Add
23875         uniconv/u16-strconv-to-enc, localcharset. Remove
23876         uniconv/u16-strconv-to-locale.
23877         (configure.ac): Bump version number.
23878         * modules/unistr/u32-strcoll (Depends-on): Add
23879         uniconv/u32-strconv-to-enc, localcharset. Remove
23880         uniconv/u32-strconv-to-locale.
23881         (configure.ac): Bump version number.
23882
23883 2010-05-24  Bruno Haible  <bruno@clisp.org>
23884
23885         Avoid a test failure on NetBSD 5.0.
23886         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
23887         an iconv() bug.
23888
23889 2010-05-24  Bruno Haible  <bruno@clisp.org>
23890
23891         Adjust #include directive style.
23892         * modules/regex (Includes): Recommend to write <regex.h>.
23893
23894 2010-05-24  Bruno Haible  <bruno@clisp.org>
23895
23896         regex: Don't require alloca.
23897         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
23898         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
23899         only inside if (0).
23900
23901 2010-05-23  Jim Meyering  <meyering@redhat.com>
23902
23903         test-renameat.c: include <sys/stat.h>
23904         * tests/test-renameat.c: Include <sys/stat.h>; required for
23905         definition of S_IS* macros.
23906
23907 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
23908
23909         Update maintainer documentation for 'relocatable-prog' module.
23910         * doc/relocatable-maint.texi: Update.
23911         Comments by Bruno Haible.
23912
23913 2010-05-23  Bruno Haible  <bruno@clisp.org>
23914
23915         git-merge-changelog: Enable --split-merged-entry by default.
23916         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
23917         (usage): Don't mention this option any more.
23918         Reported by Ralf Wildenhues.
23919
23920 2010-05-23  Jim Meyering  <meyering@redhat.com>
23921
23922         test-pwrite: do not leave behind a test file named "out"
23923         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
23924         The trivial-looking use of init.sh is really necessary.
23925         It ensures that the temporary file, "out", is created in
23926         a temporary directory, and removed upon termination.
23927         * tests/test-pwrite.sh: Re-add file.
23928         * modules/pwrite-tests: Reference it.
23929
23930 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23931
23932         Fix output redirection buglet in init.sh.
23933         * tests/init.sh: Fix redirection of stderr.
23934
23935 2010-05-20  Simon Josefsson  <simon@josefsson.org>
23936
23937         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
23938
23939 2010-05-17  Simon Josefsson  <simon@josefsson.org>
23940
23941         * modules/valgrind-tests: New file.
23942         * m4/valgrind-tests.m4: New file.
23943         * doc/valgrind-tests.texi: New file.
23944         * doc/gnulib.texi (Running self-tests under valgrind): New
23945         section.
23946
23947 2010-05-19  Bruno Haible  <bruno@clisp.org>
23948
23949         Clean up dead code in recent commit.
23950         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
23951         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
23952         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
23953         Suggested by Paolo Bonzini.
23954
23955 2010-05-19  Bruno Haible  <bruno@clisp.org>
23956
23957         Avoid valgrind error reports from libunistring.
23958         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
23959         * modules/libunistring (Files): Add it.
23960         * modules/libunistring-optional (Files): Likewise.
23961
23962 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
23963             Bruno Haible  <bruno@clisp.org>
23964
23965         New module 'libunistring-optional'.
23966         * modules/libunistring-optional: New file.
23967         * m4/libunistring-base.m4: New file.
23968         * m4/libunistring-optional.m4: New file.
23969         * lib/unicase.in.h: Renamed from lib/unicase.h.
23970         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
23971         * lib/unictype.in.h: Renamed from lib/unictype.h.
23972         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
23973         * lib/uniname.in.h: Renamed from lib/uniname.h.
23974         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
23975         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
23976         * lib/unistr.in.h: Renamed from lib/unistr.h.
23977         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
23978         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
23979         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
23980         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
23981         gl_LIBUNISTRING. If the library was found, determine the installed
23982         version and set LIBUNISTRING_VERSION.
23983         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
23984         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
23985         handle a configuration option --with-included-libunistring.
23986         * modules/libunistring (Files): Add m4/absolute-header.m4.
23987         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
23988         Add m4/libunistring-base.m4.
23989         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23990         (Makefile.am): Build unicase.h from unicase.in.h.
23991         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
23992         Add m4/libunistring-base.m4.
23993         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23994         (Makefile.am): Build uniconv.h from uniconv.in.h.
23995         * modules/unictype/base (Files): Use unictype.in.h instead of
23996         unictype.h. Add m4/libunistring-base.m4.
23997         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23998         (Makefile.am): Build unictype.h from unictype.in.h.
23999         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
24000         Add m4/libunistring-base.m4.
24001         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24002         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
24003         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
24004         Add m4/libunistring-base.m4.
24005         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24006         (Makefile.am): Build uniname.h from uniname.in.h.
24007         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
24008         Add m4/libunistring-base.m4.
24009         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24010         (Makefile.am): Build uninorm.h from uninorm.in.h.
24011         * modules/unistdio/base (Files): Use unistdio.in.h instead of
24012         unistdio.h. Add m4/libunistring-base.m4.
24013         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24014         (Makefile.am): Build unistdio.h from unistdio.in.h.
24015         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
24016         Add m4/libunistring-base.m4.
24017         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24018         (Makefile.am): Build unistr.h from unistr.in.h.
24019         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
24020         Add m4/libunistring-base.m4.
24021         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24022         (Makefile.am): Build unitypes.h from unitypes.in.h.
24023         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
24024         Add m4/libunistring-base.m4.
24025         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24026         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
24027         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
24028         uniwidth.h. Add m4/libunistring-base.m4.
24029         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24030         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
24031         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
24032         instead of augmenting lib_SOURCES.
24033         * modules/unicase/empty-suffix-context: Likewise.
24034         * modules/unicase/locale-language: Likewise.
24035         * modules/unicase/tolower: Likewise.
24036         * modules/unicase/totitle: Likewise.
24037         * modules/unicase/toupper: Likewise.
24038         * modules/unicase/u8-casecmp: Likewise.
24039         * modules/unicase/u8-casecoll: Likewise.
24040         * modules/unicase/u8-casefold: Likewise.
24041         * modules/unicase/u8-casexfrm: Likewise.
24042         * modules/unicase/u8-ct-casefold: Likewise.
24043         * modules/unicase/u8-ct-tolower: Likewise.
24044         * modules/unicase/u8-ct-totitle: Likewise.
24045         * modules/unicase/u8-ct-toupper: Likewise.
24046         * modules/unicase/u8-is-cased: Likewise.
24047         * modules/unicase/u8-is-casefolded: Likewise.
24048         * modules/unicase/u8-is-lowercase: Likewise.
24049         * modules/unicase/u8-is-titlecase: Likewise.
24050         * modules/unicase/u8-is-uppercase: Likewise.
24051         * modules/unicase/u8-prefix-context: Likewise.
24052         * modules/unicase/u8-suffix-context: Likewise.
24053         * modules/unicase/u8-tolower: Likewise.
24054         * modules/unicase/u8-totitle: Likewise.
24055         * modules/unicase/u8-toupper: Likewise.
24056         * modules/unicase/u16-casecmp: Likewise.
24057         * modules/unicase/u16-casecoll: Likewise.
24058         * modules/unicase/u16-casefold: Likewise.
24059         * modules/unicase/u16-casexfrm: Likewise.
24060         * modules/unicase/u16-ct-casefold: Likewise.
24061         * modules/unicase/u16-ct-tolower: Likewise.
24062         * modules/unicase/u16-ct-totitle: Likewise.
24063         * modules/unicase/u16-ct-toupper: Likewise.
24064         * modules/unicase/u16-is-cased: Likewise.
24065         * modules/unicase/u16-is-casefolded: Likewise.
24066         * modules/unicase/u16-is-lowercase: Likewise.
24067         * modules/unicase/u16-is-titlecase: Likewise.
24068         * modules/unicase/u16-is-uppercase: Likewise.
24069         * modules/unicase/u16-prefix-context: Likewise.
24070         * modules/unicase/u16-suffix-context: Likewise.
24071         * modules/unicase/u16-tolower: Likewise.
24072         * modules/unicase/u16-totitle: Likewise.
24073         * modules/unicase/u16-toupper: Likewise.
24074         * modules/unicase/u32-casecmp: Likewise.
24075         * modules/unicase/u32-casecoll: Likewise.
24076         * modules/unicase/u32-casefold: Likewise.
24077         * modules/unicase/u32-casexfrm: Likewise.
24078         * modules/unicase/u32-ct-casefold: Likewise.
24079         * modules/unicase/u32-ct-tolower: Likewise.
24080         * modules/unicase/u32-ct-totitle: Likewise.
24081         * modules/unicase/u32-ct-toupper: Likewise.
24082         * modules/unicase/u32-is-cased: Likewise.
24083         * modules/unicase/u32-is-casefolded: Likewise.
24084         * modules/unicase/u32-is-lowercase: Likewise.
24085         * modules/unicase/u32-is-titlecase: Likewise.
24086         * modules/unicase/u32-is-uppercase: Likewise.
24087         * modules/unicase/u32-prefix-context: Likewise.
24088         * modules/unicase/u32-suffix-context: Likewise.
24089         * modules/unicase/u32-tolower: Likewise.
24090         * modules/unicase/u32-totitle: Likewise.
24091         * modules/unicase/u32-toupper: Likewise.
24092         * modules/unicase/ulc-casecmp: Likewise.
24093         * modules/unicase/ulc-casecoll: Likewise.
24094         * modules/unicase/ulc-casexfrm: Likewise.
24095         * modules/uniconv/u8-conv-from-enc: Likewise.
24096         * modules/uniconv/u8-conv-to-enc: Likewise.
24097         * modules/uniconv/u8-strconv-from-enc: Likewise.
24098         * modules/uniconv/u8-strconv-from-locale: Likewise.
24099         * modules/uniconv/u8-strconv-to-enc: Likewise.
24100         * modules/uniconv/u8-strconv-to-locale: Likewise.
24101         * modules/uniconv/u16-conv-from-enc: Likewise.
24102         * modules/uniconv/u16-conv-to-enc: Likewise.
24103         * modules/uniconv/u16-strconv-from-enc: Likewise.
24104         * modules/uniconv/u16-strconv-from-locale: Likewise.
24105         * modules/uniconv/u16-strconv-to-enc: Likewise.
24106         * modules/uniconv/u16-strconv-to-locale: Likewise.
24107         * modules/uniconv/u32-conv-from-enc: Likewise.
24108         * modules/uniconv/u32-conv-to-enc: Likewise.
24109         * modules/uniconv/u32-strconv-from-enc: Likewise.
24110         * modules/uniconv/u32-strconv-from-locale: Likewise.
24111         * modules/uniconv/u32-strconv-to-enc: Likewise.
24112         * modules/uniconv/u32-strconv-to-locale: Likewise.
24113         * modules/unictype/bidicategory-byname: Likewise.
24114         * modules/unictype/bidicategory-name: Likewise.
24115         * modules/unictype/bidicategory-of: Likewise.
24116         * modules/unictype/bidicategory-test: Likewise.
24117         * modules/unictype/block-list: Likewise.
24118         * modules/unictype/block-test: Likewise.
24119         * modules/unictype/category-C: Likewise.
24120         * modules/unictype/category-Cc: Likewise.
24121         * modules/unictype/category-Cf: Likewise.
24122         * modules/unictype/category-Cn: Likewise.
24123         * modules/unictype/category-Co: Likewise.
24124         * modules/unictype/category-Cs: Likewise.
24125         * modules/unictype/category-L: Likewise.
24126         * modules/unictype/category-Ll: Likewise.
24127         * modules/unictype/category-Lm: Likewise.
24128         * modules/unictype/category-Lo: Likewise.
24129         * modules/unictype/category-Lt: Likewise.
24130         * modules/unictype/category-Lu: Likewise.
24131         * modules/unictype/category-M: Likewise.
24132         * modules/unictype/category-Mc: Likewise.
24133         * modules/unictype/category-Me: Likewise.
24134         * modules/unictype/category-Mn: Likewise.
24135         * modules/unictype/category-N: Likewise.
24136         * modules/unictype/category-Nd: Likewise.
24137         * modules/unictype/category-Nl: Likewise.
24138         * modules/unictype/category-No: Likewise.
24139         * modules/unictype/category-P: Likewise.
24140         * modules/unictype/category-Pc: Likewise.
24141         * modules/unictype/category-Pd: Likewise.
24142         * modules/unictype/category-Pe: Likewise.
24143         * modules/unictype/category-Pf: Likewise.
24144         * modules/unictype/category-Pi: Likewise.
24145         * modules/unictype/category-Po: Likewise.
24146         * modules/unictype/category-Ps: Likewise.
24147         * modules/unictype/category-S: Likewise.
24148         * modules/unictype/category-Sc: Likewise.
24149         * modules/unictype/category-Sk: Likewise.
24150         * modules/unictype/category-Sm: Likewise.
24151         * modules/unictype/category-So: Likewise.
24152         * modules/unictype/category-Z: Likewise.
24153         * modules/unictype/category-Zl: Likewise.
24154         * modules/unictype/category-Zp: Likewise.
24155         * modules/unictype/category-Zs: Likewise.
24156         * modules/unictype/category-and: Likewise.
24157         * modules/unictype/category-and-not: Likewise.
24158         * modules/unictype/category-byname: Likewise.
24159         * modules/unictype/category-name: Likewise.
24160         * modules/unictype/category-none: Likewise.
24161         * modules/unictype/category-of: Likewise.
24162         * modules/unictype/category-or: Likewise.
24163         * modules/unictype/category-test: Likewise.
24164         * modules/unictype/combining-class: Likewise.
24165         * modules/unictype/ctype-alnum: Likewise.
24166         * modules/unictype/ctype-alpha: Likewise.
24167         * modules/unictype/ctype-blank: Likewise.
24168         * modules/unictype/ctype-cntrl: Likewise.
24169         * modules/unictype/ctype-digit: Likewise.
24170         * modules/unictype/ctype-graph: Likewise.
24171         * modules/unictype/ctype-lower: Likewise.
24172         * modules/unictype/ctype-print: Likewise.
24173         * modules/unictype/ctype-punct: Likewise.
24174         * modules/unictype/ctype-space: Likewise.
24175         * modules/unictype/ctype-upper: Likewise.
24176         * modules/unictype/ctype-xdigit: Likewise.
24177         * modules/unictype/decimal-digit: Likewise.
24178         * modules/unictype/digit: Likewise.
24179         * modules/unictype/mirror: Likewise.
24180         * modules/unictype/numeric: Likewise.
24181         * modules/unictype/property-alphabetic: Likewise.
24182         * modules/unictype/property-ascii-hex-digit: Likewise.
24183         * modules/unictype/property-bidi-arabic-digit: Likewise.
24184         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
24185         * modules/unictype/property-bidi-block-separator: Likewise.
24186         * modules/unictype/property-bidi-boundary-neutral: Likewise.
24187         * modules/unictype/property-bidi-common-separator: Likewise.
24188         * modules/unictype/property-bidi-control: Likewise.
24189         * modules/unictype/property-bidi-embedding-or-override: Likewise.
24190         * modules/unictype/property-bidi-eur-num-separator: Likewise.
24191         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
24192         * modules/unictype/property-bidi-european-digit: Likewise.
24193         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
24194         * modules/unictype/property-bidi-left-to-right: Likewise.
24195         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
24196         * modules/unictype/property-bidi-other-neutral: Likewise.
24197         * modules/unictype/property-bidi-pdf: Likewise.
24198         * modules/unictype/property-bidi-segment-separator: Likewise.
24199         * modules/unictype/property-bidi-whitespace: Likewise.
24200         * modules/unictype/property-byname: Likewise.
24201         * modules/unictype/property-combining: Likewise.
24202         * modules/unictype/property-composite: Likewise.
24203         * modules/unictype/property-currency-symbol: Likewise.
24204         * modules/unictype/property-dash: Likewise.
24205         * modules/unictype/property-decimal-digit: Likewise.
24206         * modules/unictype/property-default-ignorable-code-point: Likewise.
24207         * modules/unictype/property-deprecated: Likewise.
24208         * modules/unictype/property-diacritic: Likewise.
24209         * modules/unictype/property-extender: Likewise.
24210         * modules/unictype/property-format-control: Likewise.
24211         * modules/unictype/property-grapheme-base: Likewise.
24212         * modules/unictype/property-grapheme-extend: Likewise.
24213         * modules/unictype/property-grapheme-link: Likewise.
24214         * modules/unictype/property-hex-digit: Likewise.
24215         * modules/unictype/property-hyphen: Likewise.
24216         * modules/unictype/property-id-continue: Likewise.
24217         * modules/unictype/property-id-start: Likewise.
24218         * modules/unictype/property-ideographic: Likewise.
24219         * modules/unictype/property-ids-binary-operator: Likewise.
24220         * modules/unictype/property-ids-trinary-operator: Likewise.
24221         * modules/unictype/property-ignorable-control: Likewise.
24222         * modules/unictype/property-iso-control: Likewise.
24223         * modules/unictype/property-join-control: Likewise.
24224         * modules/unictype/property-left-of-pair: Likewise.
24225         * modules/unictype/property-line-separator: Likewise.
24226         * modules/unictype/property-logical-order-exception: Likewise.
24227         * modules/unictype/property-lowercase: Likewise.
24228         * modules/unictype/property-math: Likewise.
24229         * modules/unictype/property-non-break: Likewise.
24230         * modules/unictype/property-not-a-character: Likewise.
24231         * modules/unictype/property-numeric: Likewise.
24232         * modules/unictype/property-other-alphabetic: Likewise.
24233         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
24234         * modules/unictype/property-other-grapheme-extend: Likewise.
24235         * modules/unictype/property-other-id-continue: Likewise.
24236         * modules/unictype/property-other-id-start: Likewise.
24237         * modules/unictype/property-other-lowercase: Likewise.
24238         * modules/unictype/property-other-math: Likewise.
24239         * modules/unictype/property-other-uppercase: Likewise.
24240         * modules/unictype/property-paired-punctuation: Likewise.
24241         * modules/unictype/property-paragraph-separator: Likewise.
24242         * modules/unictype/property-pattern-syntax: Likewise.
24243         * modules/unictype/property-pattern-white-space: Likewise.
24244         * modules/unictype/property-private-use: Likewise.
24245         * modules/unictype/property-punctuation: Likewise.
24246         * modules/unictype/property-quotation-mark: Likewise.
24247         * modules/unictype/property-radical: Likewise.
24248         * modules/unictype/property-sentence-terminal: Likewise.
24249         * modules/unictype/property-soft-dotted: Likewise.
24250         * modules/unictype/property-space: Likewise.
24251         * modules/unictype/property-terminal-punctuation: Likewise.
24252         * modules/unictype/property-test: Likewise.
24253         * modules/unictype/property-titlecase: Likewise.
24254         * modules/unictype/property-unassigned-code-value: Likewise.
24255         * modules/unictype/property-unified-ideograph: Likewise.
24256         * modules/unictype/property-uppercase: Likewise.
24257         * modules/unictype/property-variation-selector: Likewise.
24258         * modules/unictype/property-white-space: Likewise.
24259         * modules/unictype/property-xid-continue: Likewise.
24260         * modules/unictype/property-xid-start: Likewise.
24261         * modules/unictype/property-zero-width: Likewise.
24262         * modules/unictype/scripts: Likewise.
24263         * modules/unictype/syntax-c-ident: Likewise.
24264         * modules/unictype/syntax-c-whitespace: Likewise.
24265         * modules/unictype/syntax-java-ident: Likewise.
24266         * modules/unictype/syntax-java-whitespace: Likewise.
24267         * modules/unilbrk/u8-possible-linebreaks: Likewise.
24268         * modules/unilbrk/u8-width-linebreaks: Likewise.
24269         * modules/unilbrk/u16-possible-linebreaks: Likewise.
24270         * modules/unilbrk/u16-width-linebreaks: Likewise.
24271         * modules/unilbrk/u32-possible-linebreaks: Likewise.
24272         * modules/unilbrk/u32-width-linebreaks: Likewise.
24273         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
24274         * modules/unilbrk/ulc-width-linebreaks: Likewise.
24275         * modules/uniname/uniname: Likewise.
24276         * modules/uninorm/canonical-decomposition: Likewise.
24277         * modules/uninorm/composition: Likewise.
24278         * modules/uninorm/decomposing-form: Likewise.
24279         * modules/uninorm/decomposition: Likewise.
24280         * modules/uninorm/filter: Likewise.
24281         * modules/uninorm/nfc: Likewise.
24282         * modules/uninorm/nfd: Likewise.
24283         * modules/uninorm/nfkc: Likewise.
24284         * modules/uninorm/nfkd: Likewise.
24285         * modules/uninorm/u8-normalize: Likewise.
24286         * modules/uninorm/u8-normcmp: Likewise.
24287         * modules/uninorm/u8-normcoll: Likewise.
24288         * modules/uninorm/u8-normxfrm: Likewise.
24289         * modules/uninorm/u16-normalize: Likewise.
24290         * modules/uninorm/u16-normcmp: Likewise.
24291         * modules/uninorm/u16-normcoll: Likewise.
24292         * modules/uninorm/u16-normxfrm: Likewise.
24293         * modules/uninorm/u32-normalize: Likewise.
24294         * modules/uninorm/u32-normcmp: Likewise.
24295         * modules/uninorm/u32-normcoll: Likewise.
24296         * modules/uninorm/u32-normxfrm: Likewise.
24297         * modules/unistdio/u8-asnprintf: Likewise.
24298         * modules/unistdio/u8-asprintf: Likewise.
24299         * modules/unistdio/u8-snprintf: Likewise.
24300         * modules/unistdio/u8-sprintf: Likewise.
24301         * modules/unistdio/u8-u8-asnprintf: Likewise.
24302         * modules/unistdio/u8-u8-asprintf: Likewise.
24303         * modules/unistdio/u8-u8-snprintf: Likewise.
24304         * modules/unistdio/u8-u8-sprintf: Likewise.
24305         * modules/unistdio/u8-u8-vasnprintf: Likewise.
24306         * modules/unistdio/u8-u8-vasprintf: Likewise.
24307         * modules/unistdio/u8-u8-vsnprintf: Likewise.
24308         * modules/unistdio/u8-u8-vsprintf: Likewise.
24309         * modules/unistdio/u8-vasnprintf: Likewise.
24310         * modules/unistdio/u8-vasprintf: Likewise.
24311         * modules/unistdio/u8-vsnprintf: Likewise.
24312         * modules/unistdio/u8-vsprintf: Likewise.
24313         * modules/unistdio/u16-asnprintf: Likewise.
24314         * modules/unistdio/u16-asprintf: Likewise.
24315         * modules/unistdio/u16-snprintf: Likewise.
24316         * modules/unistdio/u16-sprintf: Likewise.
24317         * modules/unistdio/u16-u16-asnprintf: Likewise.
24318         * modules/unistdio/u16-u16-asprintf: Likewise.
24319         * modules/unistdio/u16-u16-snprintf: Likewise.
24320         * modules/unistdio/u16-u16-sprintf: Likewise.
24321         * modules/unistdio/u16-u16-vasnprintf: Likewise.
24322         * modules/unistdio/u16-u16-vasprintf: Likewise.
24323         * modules/unistdio/u16-u16-vsnprintf: Likewise.
24324         * modules/unistdio/u16-u16-vsprintf: Likewise.
24325         * modules/unistdio/u16-vasnprintf: Likewise.
24326         * modules/unistdio/u16-vasprintf: Likewise.
24327         * modules/unistdio/u16-vsnprintf: Likewise.
24328         * modules/unistdio/u16-vsprintf: Likewise.
24329         * modules/unistdio/u32-asnprintf: Likewise.
24330         * modules/unistdio/u32-asprintf: Likewise.
24331         * modules/unistdio/u32-snprintf: Likewise.
24332         * modules/unistdio/u32-sprintf: Likewise.
24333         * modules/unistdio/u32-u32-asnprintf: Likewise.
24334         * modules/unistdio/u32-u32-asprintf: Likewise.
24335         * modules/unistdio/u32-u32-snprintf: Likewise.
24336         * modules/unistdio/u32-u32-sprintf: Likewise.
24337         * modules/unistdio/u32-u32-vasnprintf: Likewise.
24338         * modules/unistdio/u32-u32-vasprintf: Likewise.
24339         * modules/unistdio/u32-u32-vsnprintf: Likewise.
24340         * modules/unistdio/u32-u32-vsprintf: Likewise.
24341         * modules/unistdio/u32-vasnprintf: Likewise.
24342         * modules/unistdio/u32-vasprintf: Likewise.
24343         * modules/unistdio/u32-vsnprintf: Likewise.
24344         * modules/unistdio/u32-vsprintf: Likewise.
24345         * modules/unistdio/ulc-asnprintf: Likewise.
24346         * modules/unistdio/ulc-asprintf: Likewise.
24347         * modules/unistdio/ulc-fprintf: Likewise.
24348         * modules/unistdio/ulc-snprintf: Likewise.
24349         * modules/unistdio/ulc-sprintf: Likewise.
24350         * modules/unistdio/ulc-vasnprintf: Likewise.
24351         * modules/unistdio/ulc-vasprintf: Likewise.
24352         * modules/unistdio/ulc-vfprintf: Likewise.
24353         * modules/unistdio/ulc-vsnprintf: Likewise.
24354         * modules/unistdio/ulc-vsprintf: Likewise.
24355         * modules/unistr/u8-check: Likewise.
24356         * modules/unistr/u8-chr: Likewise.
24357         * modules/unistr/u8-cmp: Likewise.
24358         * modules/unistr/u8-cmp2: Likewise.
24359         * modules/unistr/u8-cpy: Likewise.
24360         * modules/unistr/u8-cpy-alloc: Likewise.
24361         * modules/unistr/u8-endswith: Likewise.
24362         * modules/unistr/u8-mblen: Likewise.
24363         * modules/unistr/u8-mbsnlen: Likewise.
24364         * modules/unistr/u8-mbtouc: Likewise.
24365         * modules/unistr/u8-mbtouc-unsafe: Likewise.
24366         * modules/unistr/u8-mbtoucr: Likewise.
24367         * modules/unistr/u8-move: Likewise.
24368         * modules/unistr/u8-next: Likewise.
24369         * modules/unistr/u8-prev: Likewise.
24370         * modules/unistr/u8-set: Likewise.
24371         * modules/unistr/u8-startswith: Likewise.
24372         * modules/unistr/u8-stpcpy: Likewise.
24373         * modules/unistr/u8-stpncpy: Likewise.
24374         * modules/unistr/u8-strcat: Likewise.
24375         * modules/unistr/u8-strchr: Likewise.
24376         * modules/unistr/u8-strcmp: Likewise.
24377         * modules/unistr/u8-strcoll: Likewise.
24378         * modules/unistr/u8-strcpy: Likewise.
24379         * modules/unistr/u8-strcspn: Likewise.
24380         * modules/unistr/u8-strdup: Likewise.
24381         * modules/unistr/u8-strlen: Likewise.
24382         * modules/unistr/u8-strmblen: Likewise.
24383         * modules/unistr/u8-strmbtouc: Likewise.
24384         * modules/unistr/u8-strncat: Likewise.
24385         * modules/unistr/u8-strncmp: Likewise.
24386         * modules/unistr/u8-strncpy: Likewise.
24387         * modules/unistr/u8-strnlen: Likewise.
24388         * modules/unistr/u8-strpbrk: Likewise.
24389         * modules/unistr/u8-strrchr: Likewise.
24390         * modules/unistr/u8-strspn: Likewise.
24391         * modules/unistr/u8-strstr: Likewise.
24392         * modules/unistr/u8-strtok: Likewise.
24393         * modules/unistr/u8-to-u16: Likewise.
24394         * modules/unistr/u8-to-u32: Likewise.
24395         * modules/unistr/u8-uctomb: Likewise.
24396         * modules/unistr/u16-check: Likewise.
24397         * modules/unistr/u16-chr: Likewise.
24398         * modules/unistr/u16-cmp: Likewise.
24399         * modules/unistr/u16-cmp2: Likewise.
24400         * modules/unistr/u16-cpy: Likewise.
24401         * modules/unistr/u16-cpy-alloc: Likewise.
24402         * modules/unistr/u16-endswith: Likewise.
24403         * modules/unistr/u16-mblen: Likewise.
24404         * modules/unistr/u16-mbsnlen: Likewise.
24405         * modules/unistr/u16-mbtouc: Likewise.
24406         * modules/unistr/u16-mbtouc-unsafe: Likewise.
24407         * modules/unistr/u16-mbtoucr: Likewise.
24408         * modules/unistr/u16-move: Likewise.
24409         * modules/unistr/u16-next: Likewise.
24410         * modules/unistr/u16-prev: Likewise.
24411         * modules/unistr/u16-set: Likewise.
24412         * modules/unistr/u16-startswith: Likewise.
24413         * modules/unistr/u16-stpcpy: Likewise.
24414         * modules/unistr/u16-stpncpy: Likewise.
24415         * modules/unistr/u16-strcat: Likewise.
24416         * modules/unistr/u16-strchr: Likewise.
24417         * modules/unistr/u16-strcmp: Likewise.
24418         * modules/unistr/u16-strcoll: Likewise.
24419         * modules/unistr/u16-strcpy: Likewise.
24420         * modules/unistr/u16-strcspn: Likewise.
24421         * modules/unistr/u16-strdup: Likewise.
24422         * modules/unistr/u16-strlen: Likewise.
24423         * modules/unistr/u16-strmblen: Likewise.
24424         * modules/unistr/u16-strmbtouc: Likewise.
24425         * modules/unistr/u16-strncat: Likewise.
24426         * modules/unistr/u16-strncmp: Likewise.
24427         * modules/unistr/u16-strncpy: Likewise.
24428         * modules/unistr/u16-strnlen: Likewise.
24429         * modules/unistr/u16-strpbrk: Likewise.
24430         * modules/unistr/u16-strrchr: Likewise.
24431         * modules/unistr/u16-strspn: Likewise.
24432         * modules/unistr/u16-strstr: Likewise.
24433         * modules/unistr/u16-strtok: Likewise.
24434         * modules/unistr/u16-to-u32: Likewise.
24435         * modules/unistr/u16-to-u8: Likewise.
24436         * modules/unistr/u16-uctomb: Likewise.
24437         * modules/unistr/u32-check: Likewise.
24438         * modules/unistr/u32-chr: Likewise.
24439         * modules/unistr/u32-cmp: Likewise.
24440         * modules/unistr/u32-cmp2: Likewise.
24441         * modules/unistr/u32-cpy: Likewise.
24442         * modules/unistr/u32-cpy-alloc: Likewise.
24443         * modules/unistr/u32-endswith: Likewise.
24444         * modules/unistr/u32-mblen: Likewise.
24445         * modules/unistr/u32-mbsnlen: Likewise.
24446         * modules/unistr/u32-mbtouc: Likewise.
24447         * modules/unistr/u32-mbtouc-unsafe: Likewise.
24448         * modules/unistr/u32-mbtoucr: Likewise.
24449         * modules/unistr/u32-move: Likewise.
24450         * modules/unistr/u32-next: Likewise.
24451         * modules/unistr/u32-prev: Likewise.
24452         * modules/unistr/u32-set: Likewise.
24453         * modules/unistr/u32-startswith: Likewise.
24454         * modules/unistr/u32-stpcpy: Likewise.
24455         * modules/unistr/u32-stpncpy: Likewise.
24456         * modules/unistr/u32-strcat: Likewise.
24457         * modules/unistr/u32-strchr: Likewise.
24458         * modules/unistr/u32-strcmp: Likewise.
24459         * modules/unistr/u32-strcoll: Likewise.
24460         * modules/unistr/u32-strcpy: Likewise.
24461         * modules/unistr/u32-strcspn: Likewise.
24462         * modules/unistr/u32-strdup: Likewise.
24463         * modules/unistr/u32-strlen: Likewise.
24464         * modules/unistr/u32-strmblen: Likewise.
24465         * modules/unistr/u32-strmbtouc: Likewise.
24466         * modules/unistr/u32-strncat: Likewise.
24467         * modules/unistr/u32-strncmp: Likewise.
24468         * modules/unistr/u32-strncpy: Likewise.
24469         * modules/unistr/u32-strnlen: Likewise.
24470         * modules/unistr/u32-strpbrk: Likewise.
24471         * modules/unistr/u32-strrchr: Likewise.
24472         * modules/unistr/u32-strspn: Likewise.
24473         * modules/unistr/u32-strstr: Likewise.
24474         * modules/unistr/u32-strtok: Likewise.
24475         * modules/unistr/u32-to-u16: Likewise.
24476         * modules/unistr/u32-to-u8: Likewise.
24477         * modules/unistr/u32-uctomb: Likewise.
24478         * modules/uniwbrk/u8-wordbreaks: Likewise.
24479         * modules/uniwbrk/u16-wordbreaks: Likewise.
24480         * modules/uniwbrk/u32-wordbreaks: Likewise.
24481         * modules/uniwbrk/ulc-wordbreaks: Likewise.
24482         * modules/uniwbrk/wordbreak-property: Likewise.
24483         * modules/uniwidth/u8-strwidth: Likewise.
24484         * modules/uniwidth/u8-width: Likewise.
24485         * modules/uniwidth/u16-strwidth: Likewise.
24486         * modules/uniwidth/u16-width: Likewise.
24487         * modules/uniwidth/u32-strwidth: Likewise.
24488         * modules/uniwidth/u32-width: Likewise.
24489         * modules/uniwidth/width: Likewise.
24490         * modules/unicase/cased-tests (Makefile.am): Link all test programs
24491         with $(LIBUNISTRING).
24492         * modules/unicase/ignorable-tests: Likewise.
24493         * modules/unicase/locale-language-tests: Likewise.
24494         * modules/unicase/tolower-tests: Likewise.
24495         * modules/unicase/totitle-tests: Likewise.
24496         * modules/unicase/toupper-tests: Likewise.
24497         * modules/unicase/u8-casecmp-tests: Likewise.
24498         * modules/unicase/u8-casecoll-tests: Likewise.
24499         * modules/unicase/u8-casefold-tests: Likewise.
24500         * modules/unicase/u8-is-cased-tests: Likewise.
24501         * modules/unicase/u8-is-casefolded-tests: Likewise.
24502         * modules/unicase/u8-is-lowercase-tests: Likewise.
24503         * modules/unicase/u8-is-titlecase-tests: Likewise.
24504         * modules/unicase/u8-is-uppercase-tests: Likewise.
24505         * modules/unicase/u8-tolower-tests: Likewise.
24506         * modules/unicase/u8-totitle-tests: Likewise.
24507         * modules/unicase/u8-toupper-tests: Likewise.
24508         * modules/unicase/u16-casecmp-tests: Likewise.
24509         * modules/unicase/u16-casecoll-tests: Likewise.
24510         * modules/unicase/u16-casefold-tests: Likewise.
24511         * modules/unicase/u16-is-cased-tests: Likewise.
24512         * modules/unicase/u16-is-casefolded-tests: Likewise.
24513         * modules/unicase/u16-is-lowercase-tests: Likewise.
24514         * modules/unicase/u16-is-titlecase-tests: Likewise.
24515         * modules/unicase/u16-is-uppercase-tests: Likewise.
24516         * modules/unicase/u16-tolower-tests: Likewise.
24517         * modules/unicase/u16-totitle-tests: Likewise.
24518         * modules/unicase/u16-toupper-tests: Likewise.
24519         * modules/unicase/u32-casecmp-tests: Likewise.
24520         * modules/unicase/u32-casecoll-tests: Likewise.
24521         * modules/unicase/u32-casefold-tests: Likewise.
24522         * modules/unicase/u32-is-cased-tests: Likewise.
24523         * modules/unicase/u32-is-casefolded-tests: Likewise.
24524         * modules/unicase/u32-is-lowercase-tests: Likewise.
24525         * modules/unicase/u32-is-titlecase-tests: Likewise.
24526         * modules/unicase/u32-is-uppercase-tests: Likewise.
24527         * modules/unicase/u32-tolower-tests: Likewise.
24528         * modules/unicase/u32-totitle-tests: Likewise.
24529         * modules/unicase/u32-toupper-tests: Likewise.
24530         * modules/unicase/ulc-casecmp-tests: Likewise.
24531         * modules/unicase/ulc-casecoll-tests: Likewise.
24532         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
24533         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
24534         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
24535         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
24536         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
24537         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
24538         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
24539         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
24540         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
24541         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
24542         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
24543         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
24544         * modules/unictype/bidicategory-byname-tests: Likewise.
24545         * modules/unictype/bidicategory-name-tests: Likewise.
24546         * modules/unictype/bidicategory-of-tests: Likewise.
24547         * modules/unictype/bidicategory-test-tests: Likewise.
24548         * modules/unictype/block-list-tests: Likewise.
24549         * modules/unictype/block-of-tests: Likewise.
24550         * modules/unictype/block-test-tests: Likewise.
24551         * modules/unictype/category-C-tests: Likewise.
24552         * modules/unictype/category-Cc-tests: Likewise.
24553         * modules/unictype/category-Cf-tests: Likewise.
24554         * modules/unictype/category-Cn-tests: Likewise.
24555         * modules/unictype/category-Co-tests: Likewise.
24556         * modules/unictype/category-Cs-tests: Likewise.
24557         * modules/unictype/category-L-tests: Likewise.
24558         * modules/unictype/category-Ll-tests: Likewise.
24559         * modules/unictype/category-Lm-tests: Likewise.
24560         * modules/unictype/category-Lo-tests: Likewise.
24561         * modules/unictype/category-Lt-tests: Likewise.
24562         * modules/unictype/category-Lu-tests: Likewise.
24563         * modules/unictype/category-M-tests: Likewise.
24564         * modules/unictype/category-Mc-tests: Likewise.
24565         * modules/unictype/category-Me-tests: Likewise.
24566         * modules/unictype/category-Mn-tests: Likewise.
24567         * modules/unictype/category-N-tests: Likewise.
24568         * modules/unictype/category-Nd-tests: Likewise.
24569         * modules/unictype/category-Nl-tests: Likewise.
24570         * modules/unictype/category-No-tests: Likewise.
24571         * modules/unictype/category-P-tests: Likewise.
24572         * modules/unictype/category-Pc-tests: Likewise.
24573         * modules/unictype/category-Pd-tests: Likewise.
24574         * modules/unictype/category-Pe-tests: Likewise.
24575         * modules/unictype/category-Pf-tests: Likewise.
24576         * modules/unictype/category-Pi-tests: Likewise.
24577         * modules/unictype/category-Po-tests: Likewise.
24578         * modules/unictype/category-Ps-tests: Likewise.
24579         * modules/unictype/category-S-tests: Likewise.
24580         * modules/unictype/category-Sc-tests: Likewise.
24581         * modules/unictype/category-Sk-tests: Likewise.
24582         * modules/unictype/category-Sm-tests: Likewise.
24583         * modules/unictype/category-So-tests: Likewise.
24584         * modules/unictype/category-Z-tests: Likewise.
24585         * modules/unictype/category-Zl-tests: Likewise.
24586         * modules/unictype/category-Zp-tests: Likewise.
24587         * modules/unictype/category-Zs-tests: Likewise.
24588         * modules/unictype/category-and-not-tests: Likewise.
24589         * modules/unictype/category-and-tests: Likewise.
24590         * modules/unictype/category-byname-tests: Likewise.
24591         * modules/unictype/category-name-tests: Likewise.
24592         * modules/unictype/category-none-tests: Likewise.
24593         * modules/unictype/category-of-tests: Likewise.
24594         * modules/unictype/category-or-tests: Likewise.
24595         * modules/unictype/category-test-withtable-tests: Likewise.
24596         * modules/unictype/combining-class-tests: Likewise.
24597         * modules/unictype/ctype-alnum-tests: Likewise.
24598         * modules/unictype/ctype-alpha-tests: Likewise.
24599         * modules/unictype/ctype-blank-tests: Likewise.
24600         * modules/unictype/ctype-cntrl-tests: Likewise.
24601         * modules/unictype/ctype-digit-tests: Likewise.
24602         * modules/unictype/ctype-graph-tests: Likewise.
24603         * modules/unictype/ctype-lower-tests: Likewise.
24604         * modules/unictype/ctype-print-tests: Likewise.
24605         * modules/unictype/ctype-punct-tests: Likewise.
24606         * modules/unictype/ctype-space-tests: Likewise.
24607         * modules/unictype/ctype-upper-tests: Likewise.
24608         * modules/unictype/ctype-xdigit-tests: Likewise.
24609         * modules/unictype/decimal-digit-tests: Likewise.
24610         * modules/unictype/digit-tests: Likewise.
24611         * modules/unictype/mirror-tests: Likewise.
24612         * modules/unictype/numeric-tests: Likewise.
24613         * modules/unictype/property-alphabetic-tests: Likewise.
24614         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
24615         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
24616         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
24617         * modules/unictype/property-bidi-block-separator-tests: Likewise.
24618         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
24619         * modules/unictype/property-bidi-common-separator-tests: Likewise.
24620         * modules/unictype/property-bidi-control-tests: Likewise.
24621         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
24622         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
24623         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
24624         * modules/unictype/property-bidi-european-digit-tests: Likewise.
24625         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
24626         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
24627         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
24628         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
24629         * modules/unictype/property-bidi-pdf-tests: Likewise.
24630         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
24631         * modules/unictype/property-bidi-whitespace-tests: Likewise.
24632         * modules/unictype/property-byname-tests: Likewise.
24633         * modules/unictype/property-combining-tests: Likewise.
24634         * modules/unictype/property-composite-tests: Likewise.
24635         * modules/unictype/property-currency-symbol-tests: Likewise.
24636         * modules/unictype/property-dash-tests: Likewise.
24637         * modules/unictype/property-decimal-digit-tests: Likewise.
24638         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
24639         * modules/unictype/property-deprecated-tests: Likewise.
24640         * modules/unictype/property-diacritic-tests: Likewise.
24641         * modules/unictype/property-extender-tests: Likewise.
24642         * modules/unictype/property-format-control-tests: Likewise.
24643         * modules/unictype/property-grapheme-base-tests: Likewise.
24644         * modules/unictype/property-grapheme-extend-tests: Likewise.
24645         * modules/unictype/property-grapheme-link-tests: Likewise.
24646         * modules/unictype/property-hex-digit-tests: Likewise.
24647         * modules/unictype/property-hyphen-tests: Likewise.
24648         * modules/unictype/property-id-continue-tests: Likewise.
24649         * modules/unictype/property-id-start-tests: Likewise.
24650         * modules/unictype/property-ideographic-tests: Likewise.
24651         * modules/unictype/property-ids-binary-operator-tests: Likewise.
24652         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
24653         * modules/unictype/property-ignorable-control-tests: Likewise.
24654         * modules/unictype/property-iso-control-tests: Likewise.
24655         * modules/unictype/property-join-control-tests: Likewise.
24656         * modules/unictype/property-left-of-pair-tests: Likewise.
24657         * modules/unictype/property-line-separator-tests: Likewise.
24658         * modules/unictype/property-logical-order-exception-tests: Likewise.
24659         * modules/unictype/property-lowercase-tests: Likewise.
24660         * modules/unictype/property-math-tests: Likewise.
24661         * modules/unictype/property-non-break-tests: Likewise.
24662         * modules/unictype/property-not-a-character-tests: Likewise.
24663         * modules/unictype/property-numeric-tests: Likewise.
24664         * modules/unictype/property-other-alphabetic-tests: Likewise.
24665         * modules/unictype/property-other-default-ignorable-code-point-tests:
24666         Likewise.
24667         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
24668         * modules/unictype/property-other-id-continue-tests: Likewise.
24669         * modules/unictype/property-other-id-start-tests: Likewise.
24670         * modules/unictype/property-other-lowercase-tests: Likewise.
24671         * modules/unictype/property-other-math-tests: Likewise.
24672         * modules/unictype/property-other-uppercase-tests: Likewise.
24673         * modules/unictype/property-paired-punctuation-tests: Likewise.
24674         * modules/unictype/property-paragraph-separator-tests: Likewise.
24675         * modules/unictype/property-pattern-syntax-tests: Likewise.
24676         * modules/unictype/property-pattern-white-space-tests: Likewise.
24677         * modules/unictype/property-private-use-tests: Likewise.
24678         * modules/unictype/property-punctuation-tests: Likewise.
24679         * modules/unictype/property-quotation-mark-tests: Likewise.
24680         * modules/unictype/property-radical-tests: Likewise.
24681         * modules/unictype/property-sentence-terminal-tests: Likewise.
24682         * modules/unictype/property-soft-dotted-tests: Likewise.
24683         * modules/unictype/property-space-tests: Likewise.
24684         * modules/unictype/property-terminal-punctuation-tests: Likewise.
24685         * modules/unictype/property-test-tests: Likewise.
24686         * modules/unictype/property-titlecase-tests: Likewise.
24687         * modules/unictype/property-unassigned-code-value-tests: Likewise.
24688         * modules/unictype/property-unified-ideograph-tests: Likewise.
24689         * modules/unictype/property-uppercase-tests: Likewise.
24690         * modules/unictype/property-variation-selector-tests: Likewise.
24691         * modules/unictype/property-white-space-tests: Likewise.
24692         * modules/unictype/property-xid-continue-tests: Likewise.
24693         * modules/unictype/property-xid-start-tests: Likewise.
24694         * modules/unictype/property-zero-width-tests: Likewise.
24695         * modules/unictype/scripts-tests: Likewise.
24696         * modules/unictype/syntax-c-ident-tests: Likewise.
24697         * modules/unictype/syntax-c-whitespace-tests: Likewise.
24698         * modules/unictype/syntax-java-ident-tests: Likewise.
24699         * modules/unictype/syntax-java-whitespace-tests: Likewise.
24700         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
24701         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
24702         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
24703         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
24704         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
24705         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
24706         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
24707         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
24708         * modules/uniname/uniname-tests: Likewise.
24709         * modules/uninorm/canonical-decomposition-tests: Likewise.
24710         * modules/uninorm/compat-decomposition-tests: Likewise.
24711         * modules/uninorm/composition-tests: Likewise.
24712         * modules/uninorm/decomposing-form-tests: Likewise.
24713         * modules/uninorm/decomposition-tests: Likewise.
24714         * modules/uninorm/filter-tests: Likewise.
24715         * modules/uninorm/nfc-tests: Likewise.
24716         * modules/uninorm/nfd-tests: Likewise.
24717         * modules/uninorm/nfkc-tests: Likewise.
24718         * modules/uninorm/nfkd-tests: Likewise.
24719         * modules/uninorm/u8-normcmp-tests: Likewise.
24720         * modules/uninorm/u8-normcoll-tests: Likewise.
24721         * modules/uninorm/u16-normcmp-tests: Likewise.
24722         * modules/uninorm/u16-normcoll-tests: Likewise.
24723         * modules/uninorm/u32-normcmp-tests: Likewise.
24724         * modules/uninorm/u32-normcoll-tests: Likewise.
24725         * modules/unistdio/u8-asnprintf-tests: Likewise.
24726         * modules/unistdio/u8-vasnprintf-tests: Likewise.
24727         * modules/unistdio/u8-vasprintf-tests: Likewise.
24728         * modules/unistdio/u8-vsnprintf-tests: Likewise.
24729         * modules/unistdio/u8-vsprintf-tests: Likewise.
24730         * modules/unistdio/u16-asnprintf-tests: Likewise.
24731         * modules/unistdio/u16-vasnprintf-tests: Likewise.
24732         * modules/unistdio/u16-vasprintf-tests: Likewise.
24733         * modules/unistdio/u16-vsnprintf-tests: Likewise.
24734         * modules/unistdio/u16-vsprintf-tests: Likewise.
24735         * modules/unistdio/u32-asnprintf-tests: Likewise.
24736         * modules/unistdio/u32-vasnprintf-tests: Likewise.
24737         * modules/unistdio/u32-vasprintf-tests: Likewise.
24738         * modules/unistdio/u32-vsnprintf-tests: Likewise.
24739         * modules/unistdio/u32-vsprintf-tests: Likewise.
24740         * modules/unistdio/ulc-asnprintf-tests: Likewise.
24741         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
24742         * modules/unistdio/ulc-vasprintf-tests: Likewise.
24743         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
24744         * modules/unistdio/ulc-vsprintf-tests: Likewise.
24745         * modules/unistr/u8-check-tests: Likewise.
24746         * modules/unistr/u8-chr-tests: Likewise.
24747         * modules/unistr/u8-cmp-tests: Likewise.
24748         * modules/unistr/u8-cmp2-tests: Likewise.
24749         * modules/unistr/u8-cpy-alloc-tests: Likewise.
24750         * modules/unistr/u8-cpy-tests: Likewise.
24751         * modules/unistr/u8-mblen-tests: Likewise.
24752         * modules/unistr/u8-mbsnlen-tests: Likewise.
24753         * modules/unistr/u8-mbtouc-tests: Likewise.
24754         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
24755         * modules/unistr/u8-mbtoucr-tests: Likewise.
24756         * modules/unistr/u8-move-tests: Likewise.
24757         * modules/unistr/u8-next-tests: Likewise.
24758         * modules/unistr/u8-prev-tests: Likewise.
24759         * modules/unistr/u8-set-tests: Likewise.
24760         * modules/unistr/u8-stpcpy-tests: Likewise.
24761         * modules/unistr/u8-stpncpy-tests: Likewise.
24762         * modules/unistr/u8-strcat-tests: Likewise.
24763         * modules/unistr/u8-strcmp-tests: Likewise.
24764         * modules/unistr/u8-strcoll-tests: Likewise.
24765         * modules/unistr/u8-strcpy-tests: Likewise.
24766         * modules/unistr/u8-strdup-tests: Likewise.
24767         * modules/unistr/u8-strlen-tests: Likewise.
24768         * modules/unistr/u8-strmblen-tests: Likewise.
24769         * modules/unistr/u8-strmbtouc-tests: Likewise.
24770         * modules/unistr/u8-strncat-tests: Likewise.
24771         * modules/unistr/u8-strncmp-tests: Likewise.
24772         * modules/unistr/u8-strncpy-tests: Likewise.
24773         * modules/unistr/u8-strnlen-tests: Likewise.
24774         * modules/unistr/u8-to-u16-tests: Likewise.
24775         * modules/unistr/u8-to-u32-tests: Likewise.
24776         * modules/unistr/u8-uctomb-tests: Likewise.
24777         * modules/unistr/u16-check-tests: Likewise.
24778         * modules/unistr/u16-chr-tests: Likewise.
24779         * modules/unistr/u16-cmp-tests: Likewise.
24780         * modules/unistr/u16-cmp2-tests: Likewise.
24781         * modules/unistr/u16-cpy-alloc-tests: Likewise.
24782         * modules/unistr/u16-cpy-tests: Likewise.
24783         * modules/unistr/u16-mblen-tests: Likewise.
24784         * modules/unistr/u16-mbsnlen-tests: Likewise.
24785         * modules/unistr/u16-mbtouc-tests: Likewise.
24786         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
24787         * modules/unistr/u16-mbtoucr-tests: Likewise.
24788         * modules/unistr/u16-move-tests: Likewise.
24789         * modules/unistr/u16-next-tests: Likewise.
24790         * modules/unistr/u16-prev-tests: Likewise.
24791         * modules/unistr/u16-set-tests: Likewise.
24792         * modules/unistr/u16-stpcpy-tests: Likewise.
24793         * modules/unistr/u16-stpncpy-tests: Likewise.
24794         * modules/unistr/u16-strcat-tests: Likewise.
24795         * modules/unistr/u16-strcmp-tests: Likewise.
24796         * modules/unistr/u16-strcoll-tests: Likewise.
24797         * modules/unistr/u16-strcpy-tests: Likewise.
24798         * modules/unistr/u16-strdup-tests: Likewise.
24799         * modules/unistr/u16-strlen-tests: Likewise.
24800         * modules/unistr/u16-strmblen-tests: Likewise.
24801         * modules/unistr/u16-strmbtouc-tests: Likewise.
24802         * modules/unistr/u16-strncat-tests: Likewise.
24803         * modules/unistr/u16-strncmp-tests: Likewise.
24804         * modules/unistr/u16-strncpy-tests: Likewise.
24805         * modules/unistr/u16-strnlen-tests: Likewise.
24806         * modules/unistr/u16-to-u32-tests: Likewise.
24807         * modules/unistr/u16-to-u8-tests: Likewise.
24808         * modules/unistr/u16-uctomb-tests: Likewise.
24809         * modules/unistr/u32-check-tests: Likewise.
24810         * modules/unistr/u32-chr-tests: Likewise.
24811         * modules/unistr/u32-cmp-tests: Likewise.
24812         * modules/unistr/u32-cmp2-tests: Likewise.
24813         * modules/unistr/u32-cpy-alloc-tests: Likewise.
24814         * modules/unistr/u32-cpy-tests: Likewise.
24815         * modules/unistr/u32-mblen-tests: Likewise.
24816         * modules/unistr/u32-mbsnlen-tests: Likewise.
24817         * modules/unistr/u32-mbtouc-tests: Likewise.
24818         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
24819         * modules/unistr/u32-mbtoucr-tests: Likewise.
24820         * modules/unistr/u32-move-tests: Likewise.
24821         * modules/unistr/u32-next-tests: Likewise.
24822         * modules/unistr/u32-prev-tests: Likewise.
24823         * modules/unistr/u32-set-tests: Likewise.
24824         * modules/unistr/u32-stpcpy-tests: Likewise.
24825         * modules/unistr/u32-stpncpy-tests: Likewise.
24826         * modules/unistr/u32-strcat-tests: Likewise.
24827         * modules/unistr/u32-strcmp-tests: Likewise.
24828         * modules/unistr/u32-strcoll-tests: Likewise.
24829         * modules/unistr/u32-strcpy-tests: Likewise.
24830         * modules/unistr/u32-strdup-tests: Likewise.
24831         * modules/unistr/u32-strlen-tests: Likewise.
24832         * modules/unistr/u32-strmblen-tests: Likewise.
24833         * modules/unistr/u32-strmbtouc-tests: Likewise.
24834         * modules/unistr/u32-strncat-tests: Likewise.
24835         * modules/unistr/u32-strncmp-tests: Likewise.
24836         * modules/unistr/u32-strncpy-tests: Likewise.
24837         * modules/unistr/u32-strnlen-tests: Likewise.
24838         * modules/unistr/u32-to-u16-tests: Likewise.
24839         * modules/unistr/u32-to-u8-tests: Likewise.
24840         * modules/unistr/u32-uctomb-tests: Likewise.
24841         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
24842         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
24843         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
24844         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
24845         * modules/uniwidth/u8-strwidth-tests: Likewise.
24846         * modules/uniwidth/u8-width-tests: Likewise.
24847         * modules/uniwidth/u16-strwidth-tests: Likewise.
24848         * modules/uniwidth/u16-width-tests: Likewise.
24849         * modules/uniwidth/u32-strwidth-tests: Likewise.
24850         * modules/uniwidth/u32-width-tests: Likewise.
24851         * modules/uniwidth/width-tests: Likewise.
24852
24853 2010-05-18  Richard Jones  <rjones@redhat.com>
24854
24855         doc: users.txt: list hivex
24856         * users.txt: Add hivex.
24857
24858 2010-05-18  Richard Jones  <rjones@redhat.com>
24859
24860         doc: users.txt: list febootstrap
24861         * users.txt: Add febootstrap.
24862
24863 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
24864
24865         bootstrap: fix an error when gnulib is not used as a git submodule
24866         * build-aux/bootstrap (gnulib_path): If its length is zero then
24867         assign "gnulib" to it.
24868         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
24869
24870 2010-05-16  Bruno Haible  <bruno@clisp.org>
24871
24872         Avoid autoconf warnings about AM_ICONV.
24873         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
24874         2.64.
24875
24876 2010-05-16  Bruno Haible  <bruno@clisp.org>
24877
24878         absolute-header: Make the macro usable in more situations.
24879         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
24880         from gl_ABSOLUTE_HEADER.
24881         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
24882
24883 2010-05-16  James Youngman  <jay@gnu.org>
24884
24885         doc: update users.txt
24886         * users.txt: Add CSSC.
24887
24888 2010-05-16  Jim Meyering  <meyering@redhat.com>
24889
24890         init.sh: fix an error in the previous change; add more comments
24891         * tests/init.sh: Compare exit code in loop against 9, not 2.
24892         Patch by Bruno Haible.
24893         Make the two tests more similar by adding an empty "then" clause.
24894         Add comments.
24895
24896         init.sh: avoid unnecessary shell re-exec
24897         * tests/init.sh: Improve the re-exec-required check to first test the
24898         current shell.  If it passes the test, do not search for a shell that
24899         does pass, and do not re-exec.  This test is particularly contorted to
24900         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
24901         of $(...) evokes a syntax error and causes immediate shell exit with
24902         status 2.  Bruno Haible reported that the re-exec made it impossible
24903         to single-step through any init.sh-using script.
24904
24905 2010-05-16  Bruno Haible  <bruno@clisp.org>
24906
24907         Fix collision between gnulib's and libintl's printf replacements.
24908         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
24909         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
24910         (printf): When using GNU C, map the __printf__ function to rpl_printf
24911         via __asm__. When not using GNU C, define rpl_printf instead of
24912         __printf__.
24913         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
24914         commit.
24915         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
24916         commit.
24917         * m4/asm-underscore.m4: New file.
24918         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
24919         * modules/stdio (Files): Add m4/asm-underscore.m4.
24920         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
24921         Reported by Ben Pfaff.
24922
24923 2010-05-16  Bruno Haible  <bruno@clisp.org>
24924
24925         verify: Avoid skipping the test on openSUSE 11.0.
24926         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
24927
24928 2010-05-13  Bruno Haible  <bruno@clisp.org>
24929
24930         Avoid useless warnings from G++.
24931         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
24932         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
24933         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24934
24935 2010-05-11  Jim Meyering  <meyering@redhat.com>
24936
24937         maint.mk: tweak preceding change
24938         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
24939         regexps tighter by anchoring at EOL, and make the new group "shy"
24940         for slightly decreased overhead.
24941
24942 2010-05-11  Eric Blake  <eblake@redhat.com>
24943
24944         maint.mk: gnulib doesn't guarantee NSIG
24945         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
24946
24947 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24948
24949         test-pwrite.c: Remove unused variable declaration.
24950         * tests/test-pwrite.c (main): Remove read_buf declaration.
24951
24952         Remove useless test-pwrite.sh file.
24953         * tests/test-pwrite.sh: Delete file.
24954         * modules/pwrite-tests: Remove references.
24955         Reported by Bruno Haible.
24956
24957 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24958
24959         init.sh: fix a typo
24960         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
24961
24962 2010-05-10  Jim Meyering  <meyering@redhat.com>
24963
24964         maint.mk: avoid using a temporary file in the always-defined-macros check
24965         * top/maint.mk (.re-defmac): Remove rule.
24966         (gl_trap_): Remove definition.
24967         (sc_prohibit_always-defined_macros): Rewrite not to create and
24968         depend on a temporary file.  Instead, depend on GNU grep's ability
24969         to read a list of regular expressions from stdin when given "-f -".
24970
24971 2010-05-09  Bruno Haible  <bruno@clisp.org>
24972
24973         Update to GNU gettext 0.18, part 1.
24974         * m4/gettext.m4: Update to GNU gettext 0.18.
24975         * m4/intl.m4: Likewise.
24976         * m4/po.m4: Likewise.
24977         * modules/gettext (Files): Add m4/fcntl-o.m4.
24978         (configure.ac): Require gettext infrastructure from version 0.18.
24979
24980 2010-05-09  Jim Meyering  <meyering@redhat.com>
24981
24982         init.sh: enable MALLOC_PERTURB_
24983         * tests/init.sh: Enable glibc's malloc-perturbing option.
24984
24985         maint.mk: improve sc_cross_check_PATH_usage_in_tests
24986         With my recent change in init.sh from the two-line form:
24987             -#   : ${srcdir=.}
24988             -#   . "$srcdir/init.sh"; path_prepend_ .
24989             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
24990         I noticed that using the one-line form would cause this test
24991         to fail with a false-positive, or to stop working altogether,
24992         depending on whether help-version changed or all the tests did.
24993         * top/maint.mk (_hv_regex): Remove this definition.
24994         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
24995         (_hv_regex_strong): Use a stronger regex to check for conformance.
24996         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
24997         Give a separate diagnostic for lack of conforming use.
24998
24999         maint.mk: prohibit definition of symbols defined by gnulib
25000         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
25001         definition of symbols defined by gnulib.
25002
25003 2010-05-09  Bruno Haible  <bruno@clisp.org>
25004
25005         acl: Avoid test failure on Cygwin-hosted mingw.
25006         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
25007
25008 2010-05-09  Bruno Haible  <bruno@clisp.org>
25009
25010         error: Use system's fcntl function.
25011         * lib/error.c (fcntl): Undefine.
25012
25013 2010-05-09  Jim Meyering  <meyering@redhat.com>
25014
25015         verify: adjust formatting to be more consistent
25016         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
25017         argument-list '('s, and after one comma.
25018
25019 2010-05-09  Bruno Haible  <bruno@clisp.org>
25020
25021         error: More reliable output on mingw.
25022         * lib/error.c: Include <windows.h>.
25023         (is_open): New function.
25024         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
25025         defined.
25026
25027 2010-05-09  Bruno Haible  <bruno@clisp.org>
25028
25029         vasnprintf: Fix syntax errors in libintl build on mingw.
25030         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
25031         pad_ourselves and prec_ourselves after use.
25032
25033 2010-05-08  Bruno Haible  <bruno@clisp.org>
25034
25035         * lib/config.charset: Update comments for Cygwin 1.7.
25036         * lib/localcharset.c: Likewise.
25037
25038 2010-05-07  Jim Meyering  <meyering@redhat.com>
25039
25040         init.sh: improve comments
25041         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
25042         . "${srcdir=.}/init.sh"; path_prepend_ .
25043         Add a note about path_prepend_ and the alternative of using
25044         TESTS_ENVIRONMENT.
25045
25046 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25047
25048         exclude: Unescape hashed patterns in wildcard mode.
25049         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
25050         to the hash list.
25051         * tests/test-exclude8.sh: New test case.
25052         * modules/exclude-tests: Add new test.
25053
25054 2010-05-05  Eric Blake  <eblake@redhat.com>
25055
25056         verify: automate tests
25057         * modules/verify-tests: New module.
25058         * tests/test-verify.sh: New file.
25059         * tests/test-verify.c: Guard each negative test with a unique id.
25060         Also avoid warning about unused left hand of comma expressions.
25061
25062 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
25063
25064         Further improvements to verify.h, suggested by Eric Blake.
25065         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
25066         the GL_* versions, to avoid collision with OpenGL.
25067         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
25068         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
25069         than testing merely whether it's defined.
25070
25071         Modify verify.h to pacify gcc -Wredundant_decls.
25072         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
25073         These use the prefix "GL_" since they're likely to be useful elsewhere.
25074         We may need to break them out into a different .h file.
25075         (__COUNTER__): Define to 0 if the compiler doesn't support it.
25076         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
25077         of verify_function__.
25078
25079 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
25080
25081         Tests for module pwrite.
25082         * modules/pwrite-tests: New file.
25083         * tests/test-pwrite.sh: New file.
25084         * tests/test-pwrite.c: New file.
25085
25086         New module pwrite.
25087         * lib/unistd.in.h (pwrite): New declaration.
25088         * lib/pwrite.c: New file, from glibc with modifications.
25089         * m4/pwrite.m4: New file.
25090         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
25091         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
25092         REPLACE_PWRITE.
25093         * modules/pwrite: New file.
25094         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
25095         REPLACE_PWRITE.
25096         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
25097         * doc/posix-functions/pwrite.texi: Mention the new module.
25098
25099 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
25100
25101         pread: Update documentation.
25102         * doc/posix-functions/pread.texi: Mention the 'pread' module.
25103
25104 2010-05-04  Eric Blake  <eblake@redhat.com>
25105
25106         docs: update cygwin progress
25107         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
25108         this bug.
25109         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
25110         Added in cygwin 1.7.2.
25111         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
25112         Likewise.
25113         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
25114         Likewise.
25115         * doc/glibc-functions/dup3.texi (dup3): Likewise.
25116         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
25117         * doc/glibc-functions/accept4.texi (accept4): Likewise.
25118         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
25119         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
25120         Mention nproc module.
25121         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
25122         bug in cygwin 1.7.5 addition.
25123         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
25124         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
25125         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
25126         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
25127         1.7.5.
25128         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
25129         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
25130         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
25131         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
25132         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
25133         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
25134         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
25135         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
25136         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
25137         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
25138         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
25139         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
25140         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
25141         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
25142         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
25143         Likewise.
25144         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
25145         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
25146         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
25147         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
25148         Likewise.
25149         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
25150         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
25151         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
25152         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
25153         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
25154         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
25155         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
25156         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
25157         Likewise.
25158         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
25159         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
25160         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
25161         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
25162         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
25163         Likewise.
25164         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
25165         Likewise.
25166         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
25167         Likewise.
25168         * doc/glibc-functions/xdrrec_endofrecord.texi
25169         (xdrrec_endofrecord): Likewise.
25170         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
25171         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
25172         Likewise.
25173         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
25174         Likewise.
25175
25176 2010-05-04  Jim Meyering  <meyering@redhat.com>
25177
25178         gendocs.sh: make its "-s FILE" option more useful
25179         * build-aux/gendocs.sh: When honoring the -s FILE option, update
25180         $PACKAGE to reflect the probably-different basename of "FILE".
25181
25182 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
25183
25184         bootstrap: don't ignore download_po_files failure
25185         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
25186         failure.
25187
25188 2010-05-03  Jim Meyering  <meyering@redhat.com>
25189
25190         maint.mk: allow to pass options to gendocs.sh
25191         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
25192         (gendocs_options_): New overridable variable.
25193
25194         gnu-web-doc-update: don't ignore configure or build failure
25195         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
25196
25197         announce-gen: backslash-escape '@'s in --help output
25198         * build-aux/announce-gen: Fix syntax errors.
25199
25200         maint.mk, announce-gen: allow project-specific announcement mail headers
25201         * top/maint.mk (translation_project_): Define default.
25202         (announcement_Cc_, announcement_mail_headers_): Likewise.
25203         (announcement): Invoke announce-gen with new --mail-headers option.
25204         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
25205
25206         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
25207         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
25208         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
25209         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
25210         line in the "err2" output file when running "make check" in verbose
25211         mode (i.e., with set -x enabled).
25212
25213 2010-05-03  Bruno Haible  <bruno@clisp.org>
25214
25215         wctob: Fix for weird platforms.
25216         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
25217         argument value.
25218
25219 2010-05-03  Jim Meyering  <meyering@redhat.com>
25220
25221         maint.mk: prohibit unwarranted use of <strings.h>
25222         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
25223         strings.h in a file that does not also use strcasecmp, strncasecmp,
25224         ffs or ffsll.
25225
25226         maint.mk: remove obsolete comments
25227         * top/maint.mk: Remove stale, commented-out rules.
25228
25229 2010-05-02  Bruno Haible  <bruno@clisp.org>
25230
25231         wcwidth: Declare also when it's aliased.
25232         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
25233         macro.
25234
25235 2010-05-02  Bruno Haible  <bruno@clisp.org>
25236
25237         Fix regression from 2010-04-25.
25238         * gnulib-tool (func_modules_transitive_closure): Check the status of
25239         all modules, not only of the tests that are of the form foo-tests where
25240         foo is a module.
25241
25242 2010-05-02  Bruno Haible  <bruno@clisp.org>
25243
25244         wctob: Work around nasty Cygwin 1.7.2 bug.
25245         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
25246         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
25247
25248 2010-05-01  Bruno Haible  <bruno@clisp.org>
25249
25250         fpurge: Sharper test.
25251         * tests/test-fpurge.c (main): Add one more ftell check.
25252         * modules/fpurge-tests (Depends-on): Add ftell.
25253         Suggested by Eric Blake.
25254
25255 2010-05-01  Bruno Haible  <bruno@clisp.org>
25256
25257         ftello: Another test.
25258         * tests/test-ftello3.c: New file.
25259         * modules/ftello-tests (Files): Add it.
25260         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25261         MOSTLYCLEANFILES.
25262
25263         ftell: Another test.
25264         * tests/test-ftell3.c: New file.
25265         * modules/ftell-tests (Files): Add it.
25266         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25267         MOSTLYCLEANFILES.
25268
25269 2010-05-01  Bruno Haible  <bruno@clisp.org>
25270
25271         ftell, ftello: Work around Solaris bug.
25272         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
25273         * lib/ftello.c: Include stdio-impl.h.
25274         (ftello): On Solaris, when _IOWRT is set, compute the result without
25275         looking at _IOREAD.
25276         * modules/ftello (Files): Add lib/stdio-impl.h.
25277         * doc/posix-functions/ftell.texi: Mention Solaris bug.
25278         * doc/posix-functions/ftello.texi: Likewise.
25279         Reported by Eric Blake.
25280
25281 2010-05-01  Bruno Haible  <bruno@clisp.org>
25282
25283         freading: Adapt to special meaning of _IOREAD flag on Solaris.
25284         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
25285         the _IOWRT flag is also set.
25286
25287 2010-05-01  Bruno Haible  <bruno@clisp.org>
25288
25289         Fix doc about a HP-UX stdio bug.
25290         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
25291         * doc/posix-functions/ftello.texi: Likewise.
25292
25293 2010-05-01  Bruno Haible  <bruno@clisp.org>
25294
25295         lseek test: Fix failure on Solaris.
25296         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
25297         output.
25298
25299 2010-04-30  Jim Meyering  <meyering@redhat.com>
25300
25301         bootstrap: don't ignore failure to generate po*/Makevars
25302         * build-aux/bootstrap (with_gettext): Don't ignore failure
25303         to create po/Makevars or runtime-po/Makevars.
25304
25305 2010-04-29  Eric Blake  <eblake@redhat.com>
25306
25307         headers: relax license to LGPLv2+
25308         * modules/fcntl-h (License): Relax license.
25309         * modules/getopt-posix (License): Likewise.
25310         * modules/locale (License): Likewise.
25311         * modules/math (License): Likewise.
25312         * modules/pty (License): Likewise.
25313         * modules/sched (License): Likewise.
25314         * modules/search (License): Likewise.
25315         * modules/spawn (License): Likewise.
25316         * modules/stdarg (License): Likewise.
25317         * modules/sysexits (License): Likewise.
25318
25319 2010-04-29  Jim Meyering  <meyering@redhat.com>
25320
25321         inttypes: relax license to LGPLv2+
25322         * modules/inttypes (License): Relax license.
25323
25324 2010-04-29  Simon Josefsson  <simon@josefsson.org>
25325
25326         * top/maint.mk (indent): Run twice to produce idempotent results.
25327
25328 2010-04-28  Bruno Haible  <bruno@clisp.org>
25329
25330         getdate: Generate getdate.c in the source directory.
25331         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
25332         MOSTLYCLEANFILES.
25333         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
25334
25335 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
25336
25337         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
25338         is not declared as a const *; avoid warnings in that case.
25339
25340 2010-04-28  Eric Blake  <eblake@redhat.com>
25341
25342         canonicalize-lgpl: avoid compiler warning
25343         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
25344         declaration' / 'extraneous semicolon' warning with some compilers.
25345         Reported by Andreas Gruenbacher.
25346
25347 2010-04-28  Jim Meyering  <meyering@redhat.com>
25348
25349         init.sh: ensure a more reliable exit status when exiting via trap
25350         * tests/init.sh (setup_): Don't rely on $? in signal handler.
25351         Inspired by patches from Dmitry V. Levin.
25352         Also trap on signal 3 (SIGQUIT).
25353
25354 2010-04-27  Bruno Haible  <bruno@clisp.org>
25355
25356         Update doc about utimes().
25357         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
25358         'utimens' module.
25359         Reported by Andreas Gruenbacher <agruen@suse.de>.
25360
25361 2010-04-27  Eric Blake  <eblake@redhat.com>
25362
25363         full-read, full-write: relax license
25364         * modules/full-read (License): Drop to LGPLv2+.
25365         * modules/full-write (License): Likewise.
25366         * modules/safe-read (License): Likewise.
25367         * modules/safe-write (License): Likewise.
25368
25369         pthread: mention library for linking
25370         * modules/pthread (Link): Mention $(LIB_PTHREAD).
25371
25372 2010-04-27  Jim Meyering  <meyering@redhat.com>
25373
25374         maint.mk: fix a bug introduced in last change
25375         * top/maint.mk (gl_assured_headers_): Now that all names are on
25376         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
25377         is not anchored to end of word, it should be adequate.
25378
25379         maint.mk: avoid side-effect in latest syntax-check
25380         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
25381         to run commands via $(shell...), and hence to incur cost only when
25382         the new rule is actually run.
25383
25384         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
25385         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
25386         and use that to create a regexp used to detect all #if HAVE_..._H uses.
25387         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
25388         (gl_assured_headers_, az_, AZ_): Define.
25389         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
25390
25391 2010-04-26  Jim Meyering  <jim@meyering.net>
25392             Bruno Haible  <bruno@clisp.org>
25393
25394         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
25395         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
25396         Prompted by an exchange with Gilles Espinasse.
25397
25398 2010-04-26  Jim Meyering  <meyering@redhat.com>
25399
25400         git-version-gen: aesthetic tweak
25401         * build-aux/git-version-gen: Use "$nl" rather than a literal,
25402         so that the command remains on a single line.
25403
25404 2010-04-26  Eric Blake  <eblake@redhat.com>
25405
25406         git-version-gen: allow use on EBCDIC hosts
25407         * build-aux/git-version-gen (dirty): Use literal rather than tying
25408         ourselves to ascii.
25409         Reported by Steve Goetze.
25410
25411 2010-04-25  Bruno Haible  <bruno@clisp.org>
25412
25413         netdb: Add support for GNULIB_POSIXCHECK.
25414         * lib/netdb.in.h: Include warn-on-use.h.
25415         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
25416         functions are used when GNULIB_POSIXCHECK is defined and the
25417         getaddrinfo module is not in use.
25418         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
25419         freeaddrinfo, gai_strerror, getnameinfo are declared.
25420         * modules/netdb (Depends-on): Add warn-on-use.
25421         (Makefile.am): Include warn-on-use.h in netdb.h.
25422
25423 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
25424
25425         build: avoid "make check" failure without .git/ directory
25426         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
25427         there is no .git/ directory.
25428
25429 2010-04-25  Bruno Haible  <bruno@clisp.org>
25430
25431         ptsname: Fix misuse of ttyname_r.
25432         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
25433         of errno.
25434
25435 2010-04-25  Bruno Haible  <bruno@clisp.org>
25436
25437         ttyname_r: Make it work on Solaris 10.
25438         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
25439         if the system function has the POSIX declaration. Test whether the
25440         function fails if the buffer is less than 128 bytes large.
25441         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
25442         system's ttyname_r function. Provide a reasonably large buffer.
25443         * modules/ttyname_r (Depends-on): Add extensions.
25444         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
25445
25446 2010-04-25  Bruno Haible  <bruno@clisp.org>
25447
25448         Use the 'extensions' module for some more functions on Solaris.
25449         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
25450         module.
25451         * doc/posix-functions/ctime_r.texi: Likewise.
25452         * doc/posix-functions/getgrgid_r.texi: Likewise.
25453         * doc/posix-functions/getgrnam_r.texi: Likewise.
25454         * doc/posix-functions/getpwnam_r.texi: Likewise.
25455         * doc/posix-functions/getpwuid_r.texi: Likewise.
25456         * doc/posix-functions/readdir_r.texi: Likewise.
25457         * doc/posix-functions/sigwait.texi: Likewise.
25458         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
25459         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
25460
25461 2010-04-25  Bruno Haible  <bruno@clisp.org>
25462
25463         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
25464         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
25465         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
25466         * lib/ttyname_r.c: Include <limits.h>.
25467         (ttyname_r): Define using the system's ttyname_r function, if it exists
25468         and not on Solaris.
25469         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
25470         set.
25471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
25472         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
25473         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
25474         Reported by Simon Josefsson.
25475
25476 2010-04-25  Bruno Haible  <bruno@clisp.org>
25477
25478         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
25479         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
25480         * doc/posix-functions/ctime_r.texi: Likewise.
25481         * doc/posix-functions/getgrgid_r.texi: Likewise.
25482         * doc/posix-functions/getgrnam_r.texi: Likewise.
25483         * doc/posix-functions/getlogin_r.texi: Likewise.
25484         * doc/posix-functions/getpwnam_r.texi: Likewise.
25485         * doc/posix-functions/getpwuid_r.texi: Likewise.
25486         * doc/posix-functions/readdir_r.texi: Likewise.
25487         * doc/posix-functions/sigwait.texi: Likewise.
25488         * doc/posix-functions/ttyname_r.texi: Likewise.
25489         Reported by Simon Josefsson.
25490
25491 2010-04-25  Bruno Haible  <bruno@clisp.org>
25492
25493         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
25494         * gnulib-tool (func_usage): Document that --with-*-tests options apply
25495         also to --create-testdir.
25496         (func_acceptable): Don't consider the status of *-tests modules here.
25497         (func_modules_transitive_closure): Consider it here, before including a
25498         test module.
25499         (func_import, func_create_testdir): Set inc_all_direct_tests,
25500         inc_all_indirect_tests.
25501         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
25502         --create-testdir and --create-megatestdir.
25503
25504 2010-04-25  Bruno Haible  <bruno@clisp.org>
25505
25506         gnulib-tool: Add --without-*-tests options.
25507         * gnulib-tool (func_usage): Document the --without-*-tests options.
25508         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
25509         excl_unportable_tests): New variables.
25510         Fail if they are specified with --import or --update.
25511         (func_acceptable): Respect the excl_*_tests variables.
25512         (func_import): Set the excl_*_tests variables to empty.
25513
25514 2010-04-25  Simon Josefsson  <simon@josefsson.org>
25515             Bruno Haible  <bruno@clisp.org>
25516
25517         Work around a MacOS X 10.4 bug with openpty.
25518         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
25519         * tests/test-openpty.c (main): Close the master side explicitly.
25520
25521 2010-04-25  Bruno Haible  <bruno@clisp.org>
25522
25523         strnlen: Fix a C++ test error on MacOS X and Solaris.
25524         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
25525         the function is not declared.
25526         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
25527         Simon Josefsson.
25528
25529 2010-04-24  Bruno Haible  <bruno@clisp.org>
25530
25531         Avoid a gcc warning.
25532         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
25533         of correct type for %08lx directive.
25534         Reported by Eric Blake.
25535
25536 2010-04-24  Bruno Haible  <bruno@clisp.org>
25537
25538         vasnprintf: Correct errno value in case of out-of-memory.
25539         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
25540         or sprintf. Use the errno value from SNPRINTF or sprintf.
25541         Reported by Ian Beckwith <ianb@erislabs.net>.
25542
25543 2010-04-24  Bruno Haible  <bruno@clisp.org>
25544
25545         ansi-c++-opt: Find correct compiler when cross-compiling.
25546         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
25547         AC_CHECK_PROGS.
25548         Reported by Simon Josefsson.
25549
25550 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
25551
25552         vc-list-files: Add support for subversion
25553         * build-aux/vc-list-files: Use "svn list" to generate the list of
25554         files controlled by subversion.
25555
25556 2010-04-23  Jim Meyering  <meyering@redhat.com>
25557
25558         vc-list-files tests: convert to use init.sh
25559         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
25560         path_prepend_.
25561         Use Exit, not exit.
25562         Use skip_ rather than open coding it.
25563         Remove trap set-up and compare definitions.
25564         * tests/test-vc-list-files-git.sh: Likewise.
25565         * modules/vc-list-files-tests (Files): Add tests/init.sh.
25566
25567 2010-04-22  Simon Josefsson  <simon@josefsson.org>
25568
25569         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
25570         backup files.
25571
25572 2010-04-21  Simon Josefsson  <simon@josefsson.org>
25573
25574         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
25575
25576 2010-04-20  Eric Blake  <eblake@redhat.com>
25577
25578         tests: be robust to ignored SIGPIPE
25579         * tests/test-select-in.sh: Consume all output.
25580         * tests/test-lseek.sh: Check correct exit status, while avoiding
25581         EPIPE.
25582
25583 2010-04-20  Simon Josefsson  <simon@josefsson.org>
25584             Bruno Haible  <bruno@clisp.org>
25585
25586         visibility: Don't use -fvisibility if it leads to a warning.
25587         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
25588         yes, don't pretend that visibility works if it leads to a warning.
25589         Reported by Mike Gran <spk121@yahoo.com>.
25590
25591 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
25592
25593         * build-aux/bootstrap: Use "git -h" for testing for supported options
25594         instead of "git --help".  The short-form option only shows a summary,
25595         and doesn't layout the full man page.  Grep for the full option name
25596         in the summary, too.
25597
25598 2010-04-19  Bruno Haible  <bruno@clisp.org>
25599
25600         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
25601         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
25602         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
25603         mention of RELOCATABLE_STRIP.
25604         Reported by Sylvain Beucler <beuc@beuc.net>.
25605
25606 2010-04-19  Bruno Haible  <bruno@clisp.org>
25607
25608         * lib/diffseq.h: Fix typo in comment.
25609         Reported by Eric Blake.
25610
25611 2010-04-19  Bruno Haible  <bruno@clisp.org>
25612
25613         ioctl: Move autoconf macro to a .m4 file.
25614         * m4/ioctl.m4: New file, extracted from modules/ioctl.
25615         * modules/ioctl (Files): Add it.
25616         (configure.ac): Simply invoke gl_FUNC_IOCTL.
25617         Reported by Ian Beckwith <ianb@erislabs.net>.
25618
25619 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
25620             Bruno Haible  <bruno@clisp.org>
25621
25622         diffseq: Accommodate use-case with abstract arrays.
25623         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
25624         is not defined.
25625         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
25626         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
25627
25628 2010-04-18  Bruno Haible  <bruno@clisp.org>
25629
25630         * doc/posix-headers/stdbool.texi: More precise wording.
25631
25632 2010-04-17  Jim Meyering  <meyering@redhat.com>
25633
25634         maint.mk: use gnu-style indentation in an embedded perl script
25635         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
25636         Rename variable: s/two/last_two_bytes/
25637
25638 2010-04-16  Eric Blake  <eblake@redhat.com>
25639
25640         test-stdbool: skip test that fails with Solaris CC
25641         * tests/test-stdbool.c (f): Skip test that causes compilation
25642         error under buggy C++ compiler.
25643         * lib/stdbool.in.h: Document the limitation.
25644         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
25645
25646         setenv: allow compilation with C++
25647         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
25648         register keyword.
25649
25650         stdint: allow test to pass with C++
25651         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
25652
25653         getopt: allow compilation with C++
25654         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
25655         struct.
25656         * lib/getopt.c (_getopt_internal_r): Use correct type.
25657         Reported by Dagobert Michelson, via Joel E. Denny.
25658
25659 2010-04-16  Bruno Haible  <bruno@clisp.org>
25660
25661         Override netdb.h always.
25662         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
25663         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
25664         Reported by Ludovic Courtès <ludo@gnu.org>.
25665
25666 2010-04-15  Bruno Haible  <bruno@clisp.org>
25667
25668         openpty: Fix mistake from 2010-03-21.
25669         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
25670         Reported by Simon Josefsson.
25671
25672 2010-04-15  Eric Blake  <eblake@redhat.com>
25673
25674         test-forkpty: fix expected signature
25675         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
25676         Reported by Simon Josefsson.
25677
25678 2010-04-15  Jim Meyering  <meyering@redhat.com>
25679
25680         maint.mk: texinfo_suffix_re_: correct the default regexp
25681         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
25682
25683         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
25684         make it configurable via texinfo_suffix_re_.
25685
25686 2010-04-14  Eric Blake  <eblake@redhat.com>
25687
25688         strtok_r: relax license to LGPLv2+
25689         * modules/strtok_r (License): Relax license.
25690         Reported by Matthias Bolte.
25691
25692 2010-04-14  Simon Josefsson  <simon@josefsson.org>
25693
25694         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
25695         version 1.4.4 by default instead of requiring the libgcrypt
25696         version used during build.  This makes it possible to use the
25697         application with older but still binary compatible libgcrypt
25698         versions.
25699
25700 2010-04-13  Eric Blake  <eblake@redhat.com>
25701
25702         getopt-gnu: match recent glibc fixes and posix ruling
25703         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
25704         '+' handling, when requesting extensions.
25705         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
25706         'W;' handling.
25707         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
25708         * doc/posix-functions/getopt.texi (getopt): Document this.
25709         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25710         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25711         Likewise.
25712
25713         getopt: merge bug fixes from glibc
25714         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
25715         diagnostics.  Honor '+:' correctly.  Reject ';'.
25716
25717         getopt-posix: detect MacOS bug
25718         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
25719         optind when missing a required argument.
25720         * doc/posix-functions/getopt.texi (getopt): Document the bug.
25721         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25722         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25723         Likewise.
25724
25725         getopt-posix: avoid spurious failure on Solaris
25726         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
25727         an indicator that setting optind=1 is sufficient for reset.
25728
25729         getopt-posix: avoid spurious failure on FreeBSD
25730         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
25731         in POSIX mode, since the m4 test uses it.
25732
25733         gnulib-tool: silence warning on BSD sh
25734         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
25735
25736 2010-04-13  Jim Meyering  <meyering@redhat.com>
25737
25738         doc: users.txt: GNU patch now uses gnulib
25739         * users.txt: Add patch.
25740
25741 2010-04-12  Jim Meyering  <meyering@redhat.com>
25742
25743         maint.mk: generate more concise timing data for syntax-check rules
25744         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
25745         " done" from each line that reports a syntax-check test duration.
25746
25747 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25748
25749         git-version-gen: use "git update-index..." rather than "git status"
25750         * build-aux/git-version-gen: Use git update-index --refresh, not
25751         "git status".  With some versions of git, "git status" would fail
25752         to update the index and result in an unwarranted "-dirty" suffix.
25753
25754 2010-04-11  Jim Meyering  <meyering@redhat.com>
25755
25756         openat: correct formatting (no semantic change)
25757         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
25758         Suggested by Bruno Haible.
25759
25760 2010-04-11  Bruno Haible  <bruno@clisp.org>
25761
25762         Stricter declaration checking in testdirs.
25763         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25764         If for_tests is true, augment AM_CPPFLAGS to define
25765         GNULIB_STRICT_CHECKING.
25766         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
25767         GNULIB_STRICT_CHECKING is defined, verify that the function is
25768         declared.
25769
25770 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
25771             Bruno Haible  <bruno@clisp.org>
25772
25773         libunistring: Improve configure output.
25774         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
25775         Don't say "consider installing GNU libunistring" when checking again
25776         with libiconv.
25777
25778 2010-04-11  Bruno Haible  <bruno@clisp.org>
25779
25780         libunistring: Correct value of $LTLIBUNISTRING.
25781         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
25782         correct the value of $LTLIBUNISTRING.
25783
25784 2010-04-11  Bruno Haible  <bruno@clisp.org>
25785
25786         havelib: Add static libraries to LIBS in the right order.
25787         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
25788         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
25789
25790 2010-04-11  Bruno Haible  <bruno@clisp.org>
25791
25792         libunistring: Detect libunistring also when it depends on libiconv.
25793         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
25794         the second AC_LIB_HAVE_LINKFLAGS invocation.
25795
25796 2010-04-11  James Youngman  <jay@gnu.org>
25797
25798         close-stream: declare local scalars to be "const"
25799         * lib/close-stream.c (close_stream): Make boolean variables const
25800         to document the fact that we set but do not change them.
25801
25802 2010-04-11  Bruno Haible  <bruno@clisp.org>
25803
25804         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
25805
25806 2010-04-11  Jim Meyering  <meyering@redhat.com>
25807
25808         maint.mk: don't include dist-check.mk
25809         * top/maint.mk: Remove bogus include directive.
25810
25811         maint.mk: improve empty-line-at-EOF check
25812         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
25813         solution, rather than tail+Perl-based one.  The latter would read
25814         a few kilobytes from the end of each file, and did not handle empty
25815         files properly.
25816
25817         maint.mk: print the elapsed time for each syntax-check rule
25818         * top/maint.mk (sc_m_rules_): Save start time in a file.
25819         (sc_z_rules_): New rules: remove temp file and print elapsed time.
25820         (local-check): Interpose the .z rules
25821
25822 2010-04-11  Jim Meyering  <meyering@redhat.com>
25823
25824         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
25825         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
25826         empty file with one that ends in an empty line.
25827
25828 2010-04-10  Bruno Haible  <bruno@clisp.org>
25829
25830         mkdir: Make it work on mingw64.
25831         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
25832         * lib/mkdir.c: Update comment.
25833         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
25834
25835 2010-04-10  Bruno Haible  <bruno@clisp.org>
25836
25837         Don't override improved macro from newer autoconf.
25838         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
25839         autoconf >= 2.62.
25840         Reported by Joel E. Denny <jdenny@clemson.edu>.
25841
25842 2010-04-10  Jim Meyering  <meyering@redhat.com>
25843
25844         maint.mk: new syntax-check rule: prohibit empty lines at end of file
25845         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
25846
25847         maint.mk: correct a diagnostic
25848         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
25849         in diagnostic; now use $prohibit.
25850
25851 2010-04-10  Bruno Haible  <address@hidden>
25852
25853         fchownat: Fix a C++ test error on Solaris 8.
25854         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
25855         the function does not exist.
25856
25857 2010-04-10  Bruno Haible  <bruno@clisp.org>
25858
25859         vasnprintf: Add more tests.
25860         * tests/test-vasnprintf-posix.c: Include <errno.h>.
25861         (test_function): Test converting an invalid wide string.
25862
25863         vasnprintf: Correct handling of unconvertible wide string arguments.
25864         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
25865         VASNPRINTF.
25866         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
25867         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
25868         smaller than the expected maximum need for the directive. Set errno to
25869         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
25870         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
25871         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
25872         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
25873         * modules/vasnprintf (Files): Add m4/printf.m4.
25874         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25875
25876 2010-04-10  Bruno Haible  <bruno@clisp.org>
25877
25878         vasnprintf: Fix crash in %ls directive.
25879         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
25880         string is passed as argument to %ls, with no precision and no width.
25881         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25882
25883 2010-04-10  Bruno Haible  <bruno@clisp.org>
25884
25885         vasnprintf: Fix multiple test failures on mingw.
25886         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
25887         _snprintf, or snwprintf, not _snwprintf.
25888
25889 2010-04-10  Bruno Haible  <bruno@clisp.org>
25890
25891         write: Fix a C++ test error on mingw.
25892         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
25893
25894 2010-04-10  Bruno Haible  <bruno@clisp.org>
25895
25896         vasnprintf test: Reduce code duplication.
25897         * tests/test-vasnprintf.c (test_function): New function, extracted from
25898         test_vasnprintf.
25899         (test_vasnprintf, test_asnprintf): Invoke it.
25900
25901 2010-04-10  Bruno Haible  <bruno@clisp.org>
25902
25903         strnlen: Fix warning in C++ mode on MacOS X.
25904         * lib/string.in.h (strnlen): Use the modern idiom.
25905         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
25906         defining strnlen as a macro already in <config.h>.
25907         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25908         REPLACE_STRNLEN.
25909         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
25910         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25911
25912 2010-04-08  James Youngman  <jay@gnu.org>
25913
25914         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
25915         the example.
25916
25917 2010-04-09  Jim Meyering  <meyering@redhat.com>
25918
25919         maint.mk: print better diagnostic when there is no $(_hv_file)
25920         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
25921         announce that when $(_hv_file) (aka help-version) does not exist.
25922
25923         init.sh: run tr in the "C" locale to avoid multibyte interpretation
25924         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
25925         not try to interpret its random input bytes.  Jarno Rajahalme reported
25926         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
25927         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
25928         (mktempd_): Likewise, just in case.
25929
25930         ftruncate: add two years to projected module removal date: 2012
25931         * m4/ftruncate.m4: Adjust comments.
25932
25933         ftruncate: mark module as obsolete; even MinGW provides it, now
25934         * modules/ftruncate (Status): Obsolete.
25935         (Notice): Say that.
25936         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
25937         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
25938
25939 2010-04-08  Bruno Haible  <bruno@clisp.org>
25940
25941         Fix side effects from tests-related modules.
25942         * modules/dprintf-posix (Comment): New section.
25943         * modules/fprintf-posix (Comment): Likewise.
25944         * modules/obstack-printf-posix (Comment): Likewise.
25945         * modules/printf-posix (Comment): Likewise.
25946         * modules/snprintf-posix (Comment): Likewise.
25947         * modules/sprintf-posix (Comment): Likewise.
25948         * modules/vasnprintf-posix (Comment): Likewise.
25949         * modules/vasprintf-posix (Comment): Likewise.
25950         * modules/vdprintf-posix (Comment): Likewise.
25951         * modules/vfprintf-posix (Comment): Likewise.
25952         * modules/vprintf-posix (Comment): Likewise.
25953         * modules/vsnprintf-posix (Comment): Likewise.
25954         * modules/vsprintf-posix (Comment): Likewise.
25955         * modules/xprintf-posix (Comment): Likewise.
25956         * modules/xvasprintf-posix (Comment): Likewise.
25957         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
25958         * modules/floorf-tests (Depends-on): Likewise.
25959         * modules/round-tests (Depends-on): Likewise.
25960         * modules/roundf-tests (Depends-on): Likewise.
25961         * modules/trunc-tests (Depends-on): Likewise.
25962         * modules/truncf-tests (Depends-on): Likewise.
25963         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
25964         'fprintf-posix' module is not present.
25965         * tests/test-floorf2.c (check): Likewise.
25966         * tests/test-trunc2.c (check): Likewise.
25967         * tests/test-truncf2.c (check): Likewise.
25968         * tests/test-round2.c (equal): Likewise.
25969         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25970
25971 2010-04-07  Karl Berry  <karl@gnu.org>
25972
25973         * config/srclist.txt,
25974         * config/srclistvars.sh,
25975         * config/srclist-update: doc fixes.
25976
25977 2010-04-07  Jim Meyering  <meyering@redhat.com>
25978
25979         maint.mk: add a PATH crosschecking syntax-check rule
25980         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
25981         Useful if you use a test like the one in help-version (coreutils,
25982         diffutils, grep, gzip) that ensures $(VERSION) matches what is
25983         printed by prog --version.
25984
25985 2010-04-06  Bruno Haible  <bruno@clisp.org>
25986
25987         Fix link error on mingw.
25988         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
25989         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
25990
25991 2010-04-06  Bruno Haible  <bruno@clisp.org>
25992
25993         Assume rmdir exists.
25994         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
25995
25996 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
25997
25998         doc: update users.txt
25999         * users.txt: Add gcal.
26000
26001 2010-04-06  Jim Meyering  <meyering@redhat.com>
26002
26003         init.sh: simply unset TMPDIR rather than risking env -i
26004         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
26005         although it probably works fine on all Unix-based systems, some
26006         systems (Cygwin?) cannot tolerate a totally cleared environment.
26007         Suggestion from Eric Blake.
26008
26009 2010-04-06  Jim Meyering  <meyering@redhat.com>
26010
26011         init.sh: portability fix: use env's POSIX-specified -i option not -u
26012         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
26013         than unportable env -u.  Solaris 5.11's env lacks support for -u.
26014
26015 2010-04-05  Bruno Haible  <bruno@clisp.org>
26016
26017         btowc: Work around Cygwin 1.7.2 bug.
26018         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
26019         does not map NUL to 0.
26020         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
26021
26022 2010-04-05  Bruno Haible  <bruno@clisp.org>
26023
26024         Make the multithread modules work on Cygwin 1.7.2.
26025         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
26026         imported symbols can be declared weak, so that it returns "no" on
26027         Cygwin 1.7.2.
26028
26029 2010-04-05  Bruno Haible  <bruno@clisp.org>
26030
26031         Use the module 'strncat'.
26032         * modules/unistr/u8-strncat (Depends-on): Add strncat.
26033
26034         Tests for module 'strncat'.
26035         * modules/strncat-tests: New file.
26036         * tests/test-strncat.c: New file.
26037
26038         New module 'strncat'.
26039         * lib/string.in.h (strncat): New declaration.
26040         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
26041         * m4/strncat.m4: New file, based on m4/memchr.m4.
26042         * modules/strncat: New file.
26043         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
26044         is declared.
26045         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
26046         REPLACE_STRNCAT.
26047         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
26048         REPLACE_STRNCAT.
26049         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
26050         module.
26051         * tests/test-string-c++.cc: Check signature of strncat.
26052
26053 2010-04-05  Jim Meyering  <meyering@redhat.com>
26054
26055         xstrtoumax-tests: convert to use init.sh
26056         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
26057         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26058         Use Exit, not exit.
26059         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26060
26061         xstrtoimax-tests: convert to use init.sh
26062         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
26063         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26064         Use Exit, not exit.
26065         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26066
26067 2010-04-05  Bruno Haible  <bruno@clisp.org>
26068
26069         sys_socket: Avoid #define replacements in C++ mode.
26070         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
26071         warning to the function if possible, rather than #defining the symbol
26072         to a dysfunctional alias.
26073
26074 2010-04-05  Bruno Haible  <bruno@clisp.org>
26075
26076         fseeko: Fix C++ test error on mingw.
26077         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
26078         gl_FUNC_FSEEKO.
26079         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
26080         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
26081         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
26082         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
26083
26084 2010-04-05  Bruno Haible  <bruno@clisp.org>
26085
26086         duplocale: Improve test output.
26087         * tests/test-duplocale.c (main): Print reason for skipped test.
26088
26089 2010-04-05  Bruno Haible  <bruno@clisp.org>
26090
26091         Assume rmdir exists.
26092         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
26093         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
26094
26095 2010-04-05  Bruno Haible  <bruno@clisp.org>
26096
26097         Fix link error on Solaris 8 with cc.
26098         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
26099
26100 2010-04-05  Bruno Haible  <bruno@clisp.org>
26101
26102         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26103         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
26104
26105 2010-04-05  Bruno Haible  <bruno@clisp.org>
26106
26107         vasprintf: Update documentation.
26108         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
26109
26110 2010-04-05  Bruno Haible  <bruno@clisp.org>
26111
26112         ptsname: Improve test.
26113         * tests/test-ptsname.c (main): Also try the various master names of BSD
26114         systems.
26115
26116 2010-04-05  Bruno Haible  <bruno@clisp.org>
26117
26118         memchr: Avoid a possible C++ test error.
26119         * lib/string.in.h (memchr): Provide declaration if function is missing.
26120         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
26121         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
26122         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
26123         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
26124
26125 2010-04-05  Bruno Haible  <bruno@clisp.org>
26126
26127         strtok_r: Improve idiom.
26128         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
26129         AC_LIBOBJ is used.
26130
26131 2010-04-05  Bruno Haible  <bruno@clisp.org>
26132
26133         strdup: Improve idiom.
26134         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
26135         AC_LIBOBJ is used.
26136         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
26137         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
26138         when AC_LIBOBJ is used.
26139
26140 2010-04-05  Bruno Haible  <bruno@clisp.org>
26141
26142         mbsinit, mbrtowc, wcrtomb: Improve idioms.
26143         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
26144         don't set REPLACE_MBSINIT to 1.
26145         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
26146         don't set REPLACE_MBRTOWC to 1.
26147         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
26148         exist, don't set REPLACE_MBSRTOWCS to 1.
26149         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
26150         exist, don't set REPLACE_MBSNRTOWCS to 1.
26151         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
26152         don't set REPLACE_WCRTOMB to 1.
26153         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
26154         exist, don't set REPLACE_WCSRTOMBS to 1.
26155         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
26156         exist, don't set REPLACE_WCSNRTOMBS to 1.
26157
26158 2010-04-05  Bruno Haible  <bruno@clisp.org>
26159
26160         ldexpl: Improve idiom.
26161         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
26162         make sure to set HAVE_DECL_LDEXPL to 0.
26163
26164 2010-04-05  Jim Meyering  <meyering@redhat.com>
26165
26166         xstrtol-tests: convert to use init.sh
26167         * modules/xstrtol-tests (Files): Add tests/init.sh.
26168         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26169         Use Exit, not exit.
26170         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26171
26172         atexit-tests: convert to use init.sh
26173         * modules/atexit-tests (Files): Add tests/init.sh.
26174         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26175         Use Exit, not exit.
26176         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26177
26178         init.sh: fix typo
26179         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
26180
26181         init.sh: make it easier for a test script to write to the tty, ...
26182         when using automake's parallel-tests mode.
26183         * tests/init.sh (stderr_fileno_): Define overridable variable.
26184         (warn_): New function, to use it.
26185         (fail_, skip_, framework_failure_): Use warn_.
26186
26187 2010-04-04  Bruno Haible  <bruno@clisp.org>
26188
26189         btowc: Avoid warning.
26190         * lib/btowc.c: Include <stdlib.h>.
26191         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
26192
26193 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26194             Bruno Haible  <bruno@clisp.org>
26195
26196         wchar: Port to NetBSD 1.5.
26197         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
26198         * lib/wctype.in.h (WEOF): Likewise.
26199
26200 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26201             Bruno Haible  <bruno@clisp.org>
26202
26203         Port extended stdio to NetBSD 1.5.
26204         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
26205         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
26206         older.
26207
26208 2010-04-04  Bruno Haible  <bruno@clisp.org>
26209
26210         string: Remove unused substitution.
26211         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
26212         HAVE_DECL_STRERROR.
26213         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
26214
26215 2010-04-04  Bruno Haible  <bruno@clisp.org>
26216
26217         strtod: Avoid a possible C++ test error.
26218         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
26219         set REPLACE_STRTOD.
26220
26221 2010-04-04  Bruno Haible  <bruno@clisp.org>
26222
26223         strerror: Update documentation.
26224         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
26225
26226 2010-04-04  Bruno Haible  <bruno@clisp.org>
26227
26228         stdio: Fix some C++ test errors on Solaris 8 with GCC.
26229         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
26230         _GL_CXXALIAS_SYS_CAST.
26231
26232 2010-04-04  Bruno Haible  <bruno@clisp.org>
26233
26234         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26235         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
26236         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
26237         REPLACE_FREXPL to 1.
26238         * doc/posix-functions/frexpl.texi: Update documentation.
26239
26240 2010-04-04  Bruno Haible  <bruno@clisp.org>
26241
26242         math: Fix some C++ test errors on Solaris 8 and Cygwin.
26243         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
26244
26245 2010-04-04  Bruno Haible  <bruno@clisp.org>
26246
26247         Implement nanosleep for native Windows.
26248         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
26249
26250 2010-04-04  Bruno Haible  <bruno@clisp.org>
26251
26252         math: Fix some C++ test errors on Solaris 8.
26253         * lib/math.in.h (truncf, trunc): Use simpler idiom.
26254
26255 2010-04-04  Bruno Haible  <bruno@clisp.org>
26256
26257         math: Fix some C++ test errors on Cygwin.
26258         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
26259         truncl): Provide declaration if the system does not have it.
26260         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
26261         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
26262         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
26263         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
26264         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
26265         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
26266         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
26267         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
26268         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
26269         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
26270         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
26271         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
26272         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
26273         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
26274         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
26275         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
26276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
26277         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26278         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26279         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
26280         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26281         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26282
26283 2010-04-04  Bruno Haible  <bruno@clisp.org>
26284
26285         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
26286         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
26287         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
26288         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26289         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26290         * m4/isinf.m4 (gl_ISINF): Likewise.
26291         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26292
26293 2010-04-04  Bruno Haible  <bruno@clisp.org>
26294
26295         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
26296         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26297
26298 2010-04-04  Bruno Haible  <bruno@clisp.org>
26299
26300         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
26301         * modules/tmpfile (configure.ac): Update.
26302
26303         tmpfile: Fix C++ test error on mingw.
26304         * lib/stdio.in.h (tmpfile): New declaration.
26305         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
26306         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
26307         * modules/tmpfile (Depends-on): Add stdio.
26308         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26309         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
26310         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
26311         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
26312         REPLACE_TMPFILE.
26313         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
26314
26315 2010-04-04  Bruno Haible  <bruno@clisp.org>
26316
26317         ioctl: Fix C++ test error on mingw.
26318         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
26319         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
26320         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
26321
26322 2010-04-03  Bruno Haible  <bruno@clisp.org>
26323
26324         wcwidth: Fix C++ test error on mingw.
26325         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
26326         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
26327         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
26328
26329 2010-04-03  Bruno Haible  <bruno@clisp.org>
26330
26331         nanosleep: Fix C++ test error on mingw.
26332         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
26333         * lib/time.in.h (nanosleep): Use modern idiom.
26334         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
26335         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
26336         REPLACE_NANOSLEEP to 1.
26337         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
26338         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
26339
26340 2010-04-03  Bruno Haible  <bruno@clisp.org>
26341
26342         strptime: Fix C++ test error on mingw.
26343         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
26344         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
26345         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
26346         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
26347         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
26348         not REPLACE_STRPTIME.
26349         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
26350         REPLACE_STRPTIME.
26351
26352 2010-04-03  Bruno Haible  <bruno@clisp.org>
26353
26354         timegm: Fix C++ test error on mingw.
26355         * lib/time.in.h (timegm): Use modern idiom.
26356         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
26357         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
26358         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
26359         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
26360
26361 2010-04-03  Bruno Haible  <bruno@clisp.org>
26362
26363         timegm: Assume declaration if function exists.
26364         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
26365         if it exists. Don't clobber ac_cv_func_timegm.
26366
26367 2010-04-03  Bruno Haible  <bruno@clisp.org>
26368
26369         time_r: Fix C++ test error on mingw.
26370         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
26371         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
26372         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
26373         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
26374         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
26375
26376 2010-04-03  Bruno Haible  <bruno@clisp.org>
26377
26378         time_r: Minor updates.
26379         * modules/time_r (Description): Mention the provided functions.
26380         * lib/time_r.c: Don't include <string.h>.
26381         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
26382         * doc/posix-functions/localtime_r.texi: Likewise.
26383
26384 2010-04-03  Bruno Haible  <bruno@clisp.org>
26385
26386         time: Fix regression introduced on 2010-03-08.
26387         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
26388         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
26389
26390 2010-04-03  Jim Meyering  <meyering@redhat.com>
26391
26392         maint.mk: don't silently disable project-specific syntax-check rules
26393         * top/maint.mk (_prohibit_regexp): Define, to help people realize
26394         that they need to convert their project-specific syntax-check rules
26395         to use the new _sc_search_regexp.
26396
26397 2010-04-03  Bruno Haible  <bruno@clisp.org>
26398
26399         fchdir: Fix regression introduced on 2010-03-08.
26400         * lib/unistd.in.h (fchdir): Fix declaration.
26401         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
26402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
26403         REPLACE_FCHDIR.
26404         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
26405         REPLACE_FCHDIR.
26406
26407 2010-04-03  Bruno Haible  <bruno@clisp.org>
26408
26409         getpagesize: Fix C++ test error on mingw.
26410         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
26411         system does not declare the function.
26412         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
26413         declared.
26414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26415         HAVE_DECL_GETPAGESIZE.
26416         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
26417
26418 2010-04-03  Bruno Haible  <bruno@clisp.org>
26419
26420         stdio: Make C++ tests work on mingw.
26421         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
26422         does not declare the function.
26423
26424 2010-04-03  Bruno Haible  <bruno@clisp.org>
26425
26426         ftello: Fix C++ test error on mingw.
26427         * lib/stdio.in.h (ftello): Use modern idiom.
26428         * lib/ftello.c (ftello): Renamed from rpl_ftello.
26429         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
26430         is missing and that it needs to be replaced.
26431         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
26432         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
26433         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
26434
26435 2010-04-03  Bruno Haible  <bruno@clisp.org>
26436
26437         fseeko: Fix C++ test error on mingw.
26438         * lib/stdio.in.h (fseeko): Use modern idiom.
26439         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
26440         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
26441         is missing and that it needs to be replaced.
26442         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
26443         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
26444         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
26445
26446 2010-04-03  Bruno Haible  <bruno@clisp.org>
26447
26448         mkstemp: Fix C++ test error on mingw.
26449         * lib/stdlib.in.h (mkstemp): Use modern idiom.
26450         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
26451         function is missing and that it needs to be replaced.
26452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
26453         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
26454
26455 2010-04-03  Bruno Haible  <bruno@clisp.org>
26456
26457         stpncpy: Fix C++ test error on mingw.
26458         * lib/string.in.h (stpncpy): Use modern idiom.
26459         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
26460         function is missing and that it needs to be replaced.
26461         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26462         REPLACE_STPNCPY.
26463         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
26464
26465 2010-04-03  Bruno Haible  <bruno@clisp.org>
26466
26467         sys_stat: Fix C++ test error on mingw.
26468         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
26469         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
26470
26471 2010-04-03  Bruno Haible  <bruno@clisp.org>
26472
26473         pty: Update doc.
26474         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
26475
26476 2010-04-03  Bruno Haible  <bruno@clisp.org>
26477
26478         unistd: Fix C++ test error on mingw.
26479         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
26480
26481 2010-04-03  Bruno Haible  <bruno@clisp.org>
26482
26483         Update doc regarding mingw.
26484         * doc/glibc-functions/openpty.texi: Update regarding mingw.
26485         * doc/glibc-functions/login_tty.texi: Likewise.
26486         * doc/glibc-functions/forkpty.texi: Likewise.
26487
26488 2010-04-03  Bruno Haible  <bruno@clisp.org>
26489
26490         stdlib: Avoid compilation failure of c-strtold on mingw.
26491         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
26492
26493 2010-04-03  Bruno Haible  <bruno@clisp.org>
26494
26495         locale: Make C++ tests work on Cygwin and mingw.
26496         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
26497         cannot provide the function.
26498         Reported by Simon Josefsson.
26499
26500 2010-04-03  Bruno Haible  <bruno@clisp.org>
26501
26502         localename: Port to MacOS X 10.6.
26503         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
26504         memory layout of the locales in MacOS X 10.6 as well.
26505         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
26506
26507 2010-04-02  Bruno Haible  <bruno@clisp.org>
26508
26509         gnulib-tool: Ensure that long-running tests are executed last.
26510         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
26511         running tests after the one for the other tests.
26512
26513 2010-04-02  Bruno Haible  <bruno@clisp.org>
26514
26515         gnulib-tool: Ensure the tests in the main directory are executed first.
26516         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
26517         start with the current directory.
26518
26519 2010-04-02  Bruno Haible  <bruno@clisp.org>
26520
26521         Tests for module 'havelib', moved here from GNU gettext.
26522         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
26523         modifications.
26524         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
26525         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
26526         with modifications.
26527         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
26528         modifications.
26529         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
26530         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
26531         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
26532         with modifications.
26533         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
26534         with modifications.
26535         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
26536         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
26537         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
26538         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
26539         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
26540         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
26541         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
26542         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
26543         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
26544         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
26545         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
26546         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
26547         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
26548         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
26549         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
26550         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
26551         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
26552         with modifications.
26553         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
26554         with modifications.
26555         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
26556         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
26557         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
26558         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
26559         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
26560         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
26561         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
26562         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
26563         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
26564         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
26565         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
26566         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
26567         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
26568         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
26569         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
26570         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
26571         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
26572         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
26573         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
26574         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
26575         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
26576         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
26577         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
26578         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
26579         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
26580         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
26581         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
26582         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
26583         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
26584         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
26585         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
26586         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
26587         * tests/havelib/rpathx/rpathx.c: New file, from
26588         gettext/autoconf-lib-link.
26589         * tests/havelib/rpathx/Makefile.am: New file, from
26590         gettext/autoconf-lib-link.
26591         * tests/havelib/rpathx/configure.ac: New file, from
26592         gettext/autoconf-lib-link with modifications.
26593         * tests/havelib/rpathy/rpathy.c: New file, from
26594         gettext/autoconf-lib-link.
26595         * tests/havelib/rpathy/Makefile.am: New file, from
26596         gettext/autoconf-lib-link.
26597         * tests/havelib/rpathy/configure.ac: New file, from
26598         gettext/autoconf-lib-link with modifications.
26599         * tests/havelib/rpathz/rpathz.c: New file, from
26600         gettext/autoconf-lib-link.
26601         * tests/havelib/rpathz/Makefile.am: New file, from
26602         gettext/autoconf-lib-link.
26603         * tests/havelib/rpathz/configure.ac: New file, from
26604         gettext/autoconf-lib-link with modifications.
26605         * tests/havelib/rpathlx/usex.c: New file, from
26606         gettext/autoconf-lib-link.
26607         * tests/havelib/rpathlx/Makefile.am: New file, from
26608         gettext/autoconf-lib-link.
26609         * tests/havelib/rpathlx/configure.ac: New file, from
26610         gettext/autoconf-lib-link with modifications.
26611         * tests/havelib/rpathly/usey.c: New file, from
26612         gettext/autoconf-lib-link.
26613         * tests/havelib/rpathly/Makefile.am: New file, from
26614         gettext/autoconf-lib-link.
26615         * tests/havelib/rpathly/configure.ac: New file, from
26616         gettext/autoconf-lib-link with modifications.
26617         * tests/havelib/rpathlz/usez.c: New file, from
26618         gettext/autoconf-lib-link.
26619         * tests/havelib/rpathlz/Makefile.am: New file, from
26620         gettext/autoconf-lib-link.
26621         * tests/havelib/rpathlz/configure.ac: New file, from
26622         gettext/autoconf-lib-link with modifications.
26623         * tests/havelib/rpathlyx/usey.c: New file, from
26624         gettext/autoconf-lib-link.
26625         * tests/havelib/rpathlyx/Makefile.am: New file, from
26626         gettext/autoconf-lib-link.
26627         * tests/havelib/rpathlyx/configure.ac: New file, from
26628         gettext/autoconf-lib-link with modifications.
26629         * tests/havelib/rpathlzyx/usez.c: New file, from
26630         gettext/autoconf-lib-link.
26631         * tests/havelib/rpathlzyx/Makefile.am: New file, from
26632         gettext/autoconf-lib-link.
26633         * tests/havelib/rpathlzyx/configure.ac: New file, from
26634         gettext/autoconf-lib-link with modifications.
26635         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
26636         with modifications.
26637
26638 2010-04-02  Bruno Haible  <bruno@clisp.org>
26639
26640         gnulib-tool: Create distributed built sources also for the tests.
26641         * gnulib-tool (func_create_testdir): Also generate distributed built
26642         sources in the tests directory.
26643
26644 2010-04-02  Bruno Haible  <bruno@clisp.org>
26645
26646         gnulib-tool: Obey user's environment variables.
26647         * gnulib-tool (func_create_testdir): When creating built sources,
26648         respect the environment variables for autoconf, automake, etc. given by
26649         the user.
26650
26651 2010-04-02  Bruno Haible  <bruno@clisp.org>
26652
26653         gnulib-tool: Provide the value of --m4-base to modules.
26654         * gnulib-tool (func_import, func_create_testdir): Emit a definition
26655         of gl_m4_base.
26656
26657 2010-04-02  Eric Blake  <eblake@redhat.com>
26658
26659         maint.mk: fix some fallout
26660         * NEWS: Document the incompatible change, and its effect on cfg.mk.
26661         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
26662
26663 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26664
26665         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
26666         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
26667         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
26668         (sc_cast_of_x_alloc_return_value): Likewise.
26669         (sc_cast_of_alloca_return_value): Likewise.
26670         (sc_space_tab): Likewise.
26671         (sc_prohibit_atoi_atof): Likewise.
26672         (sc_prohibit_magic_number_exit): Likewise.
26673         (sc_error_exit_success): Likewise.
26674         (sc_file_system): Likewise.
26675         (sc_prohibit_have_config_h): Likewise.
26676         (sc_require_config_h): Likewise.
26677         (sc_prohibit_HAVE_MBRTOWC): Likewise.
26678         (sc_obsolete_symbols): Likewise.
26679         (sc_changelog): Likewise.
26680         (sc_program_name): Likewise.
26681         (sc_the_the): Likewise.
26682         (sc_trailing_blank): Likewise.
26683         (sc_two_space_separator_in_usage): Likewise.
26684         (sc_useless_cpp_parens): Likewise.
26685         (sc_GPL_version): Likewise.
26686         (sc_GFDL_version): Likewise.
26687         (sc_texinfo_acronym): Likewise.
26688         (sc_prohibit_cvs_keyword): Likewise.
26689         (sc_prohibit_stat_st_blocks): Likewise.
26690         (sc_prohibit_S_IS_definition): Likewise.
26691         (sc_redundant_const): Likewise.
26692         (sc_makefile_TAB_only_indentation): Likewise.
26693         (sc_m4_quote_check): Likewise.
26694         (sc_makefile_path_separator_check): Likewise.
26695         (sc_copyright_check): Likewise.
26696         (sc_Wundef_boolean): Likewise.
26697         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26698
26699         maint.mk: match 0 or more whitespace-before-function-call '('
26700         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
26701         that have zero or two-and-more spaces between the function name
26702         and the open parenthesis.
26703         (sc_error_message_warn_fatal): Likewise.
26704         (sc_error_message_uppercase): Likewise.
26705         (sc_error_message_period): Likewise.
26706
26707 2010-03-31  Eric Blake  <eblake@redhat.com>
26708
26709         maint.mk: check for [ as well as test
26710         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
26711         Based on a libvirt report by Matthias Bolte.
26712
26713         gnumakefile: don't squelch _version output
26714         * top/GNUmakefile (_version): Create one-shot dependency rather
26715         than using $(shell) when version must be regenerated.
26716         (_autoreconf): Run verbosely, by default.
26717
26718         sys_time: avoid compiler warnings
26719         * lib/sys_time.in.h (includes): Ensure gcc pragma is
26720         unconditional, fixing regression from 2010-03-29.
26721         Reported by Simon Josefsson.
26722
26723 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26724
26725         maint.mk: s/_header_without_use/_sc_header_without_use/
26726         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
26727         (sc_prohibit_assert_without_use): Use the new name.
26728         (sc_prohibit_close_stream_without_use): Likewise.
26729         (sc_prohibit_getopt_without_use): Likewise.
26730         (sc_prohibit_quotearg_without_use): Likewise.
26731         (sc_prohibit_quote_without_use): Likewise.
26732         (sc_prohibit_long_options_without_use): Likewise.
26733         (sc_prohibit_inttostr_without_use): Likewise.
26734         (sc_prohibit_ignore_value_without_use): Likewise.
26735         (sc_prohibit_error_without_use): Likewise.
26736         (sc_prohibit_xalloc_without_use): Likewise.
26737         (sc_prohibit_hash_without_use): Likewise.
26738         (sc_prohibit_hash_pjw_without_use): Likewise.
26739         (sc_prohibit_safe_read_without_use): Likewise.
26740         (sc_prohibit_argmatch_without_use): Likewise.
26741         (sc_prohibit_canonicalize_without_use): Likewise.
26742         (sc_prohibit_root_dev_ino_without_use): Likewise.
26743         (sc_prohibit_openat_without_use): Likewise.
26744         (sc_prohibit_c_ctype_without_use): Likewise.
26745         (sc_prohibit_signal_without_use): Likewise.
26746         (sc_prohibit_intprops_without_use): Likewise.
26747
26748 2010-03-30  Eric Blake  <eblake@redhat.com>
26749
26750         maint: improve module indicators
26751         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
26752         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
26753         columns, and avoid extra macro expansion.
26754
26755         fdopendir: work around FreeBSD bug
26756         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26757         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
26758         * modules/dirent (Makefile.am): Substitute it.
26759         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
26760         declaration.
26761         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
26762         fix.
26763         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26764
26765 2010-03-29  Bruno Haible  <bruno@clisp.org>
26766
26767         Emit #pragma system_header after the inclusion guard, not before.
26768         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
26769         guard that spans the entire file, not before. This enables an
26770         optimization in GCC's preprocessor.
26771         * lib/ctype.in.h: Likewise.
26772         * lib/dirent.in.h: Likewise.
26773         * lib/errno.in.h: Likewise.
26774         * lib/float.in.h: Likewise.
26775         * lib/getopt.in.h: Likewise.
26776         * lib/iconv.in.h: Likewise.
26777         * lib/langinfo.in.h: Likewise.
26778         * lib/locale.in.h: Likewise.
26779         * lib/math.in.h: Likewise.
26780         * lib/netdb.in.h: Likewise.
26781         * lib/netinet_in.in.h: Likewise.
26782         * lib/pty.in.h: Likewise.
26783         * lib/sched.in.h: Likewise.
26784         * lib/se-selinux.in.h: Likewise.
26785         * lib/search.in.h: Likewise.
26786         * lib/spawn.in.h: Likewise.
26787         * lib/stdarg.in.h: Likewise.
26788         * lib/stdint.in.h: Likewise.
26789         * lib/string.in.h: Likewise.
26790         * lib/strings.in.h: Likewise.
26791         * lib/sys_file.in.h: Likewise.
26792         * lib/sys_ioctl.in.h: Likewise.
26793         * lib/sys_time.in.h: Likewise.
26794         * lib/sys_times.in.h: Likewise.
26795         * lib/sys_utsname.in.h: Likewise.
26796         * lib/sys_wait.in.h: Likewise.
26797         * lib/sysexits.in.h: Likewise.
26798         * lib/wctype.in.h: Likewise.
26799
26800 2010-03-28  James Youngman  <jay@gnu.org>
26801
26802         save-cwd: don't leak a file descriptor when the caller execs.
26803         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
26804         saved file descriptor.
26805         * modules/save-cwd (Depends-on): Depend on cloexec.
26806
26807 2010-03-29  Bruno Haible  <bruno@clisp.org>
26808
26809         Remove vestiges of fts-lgpl module.
26810         * lib/fts_.h: Assume GNULIB_FTS is 1.
26811         * lib/fts.c: Likewise.
26812         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26813
26814 2010-03-28  Bruno Haible  <bruno@clisp.org>
26815
26816         Fix definition of tests witness macro.
26817         * gnulib-tool (func_import): Fix definition of witness macro.
26818
26819 2010-03-28  Bruno Haible  <bruno@clisp.org>
26820
26821         Fix ioctl's protoype on glibc systems.
26822         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
26823         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
26824         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
26825         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
26826         signature. If not, arrange to replace the ioctl function.
26827         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26828         REPLACE_IOCTL.
26829         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
26830         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
26831         Reported by Ludovic Courtès <ludo@gnu.org>.
26832
26833 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
26834
26835         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
26836         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
26837         made it so grep -r --include=GLOB* ... did not work.
26838
26839 2010-03-26  Jim Meyering  <meyering@redhat.com>
26840             Eric Blake  <eblake@redhat.com>
26841
26842         maint.mk: prohibit use of test's -o and -a operators
26843         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
26844
26845 2010-03-28  Bruno Haible  <bruno@clisp.org>
26846
26847         Remove unused GNULIB_XYZ macro definitions.
26848         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
26849         invocation.
26850
26851 2010-03-28  Bruno Haible  <bruno@clisp.org>
26852
26853         Mark privileged tests modules.
26854         * modules/idpriv-drop-tests (Status): New section.
26855         * modules/idpriv-droptemp-tests (Status): New section.
26856
26857 2010-03-28  Bruno Haible  <bruno@clisp.org>
26858
26859         Split C++ tests into separate tests modules.
26860         * modules/dirent-c++-tests: New file, extracted from
26861         modules/dirent-tests.
26862         * modules/dirent-tests: Depend on it.
26863         * modules/fcntl-h-c++-tests: New file, extracted from
26864         modules/fcntl-h-tests.
26865         * modules/fcntl-h-tests: Depend on it.
26866         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
26867         * modules/glob-tests: Depend on it.
26868         * modules/iconv-h-c++-tests: New file, extracted from
26869         modules/iconv-h-tests.
26870         * modules/iconv-h-tests: Depend on it.
26871         * modules/langinfo-c++-tests: New file, extracted from
26872         modules/langinfo-tests.
26873         * modules/langinfo-tests: Depend on it.
26874         * modules/locale-c++-tests: New file, extracted from
26875         modules/locale-tests.
26876         * modules/locale-tests: Depend on it.
26877         * modules/math-c++-tests: New file, extracted from modules/math-tests.
26878         * modules/math-tests: Depend on it.
26879         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
26880         * modules/pty-tests: Depend on it.
26881         * modules/search-c++-tests: New file, extracted from
26882         modules/search-tests.
26883         * modules/search-tests: Depend on it.
26884         * modules/signal-c++-tests: New file, extracted from
26885         modules/signal-tests.
26886         * modules/signal-tests: Depend on it.
26887         * modules/spawn-c++-tests: New file, extracted from
26888         modules/spawn-tests.
26889         * modules/spawn-tests: Depend on it.
26890         * modules/stdio-c++-tests: New file, extracted from
26891         modules/stdio-tests.
26892         * modules/stdio-tests: Depend on it.
26893         * modules/stdlib-c++-tests: New file, extracted from
26894         modules/stdlib-tests.
26895         * modules/stdlib-tests: Depend on it.
26896         * modules/string-c++-tests: New file, extracted from
26897         modules/string-tests.
26898         * modules/string-tests: Depend on it.
26899         * modules/sys_ioctl-c++-tests: New file, extracted from
26900         modules/sys_ioctl-tests.
26901         * modules/sys_ioctl-tests: Depend on it.
26902         * modules/sys_select-c++-tests: New file, extracted from
26903         modules/sys_select-tests.
26904         * modules/sys_select-tests: Depend on it.
26905         * modules/sys_socket-c++-tests: New file, extracted from
26906         modules/sys_socket-tests.
26907         * modules/sys_socket-tests: Depend on it.
26908         * modules/sys_stat-c++-tests: New file, extracted from
26909         modules/sys_stat-tests.
26910         * modules/sys_stat-tests: Depend on it.
26911         * modules/sys_time-c++-tests: New file, extracted from
26912         modules/sys_time-tests.
26913         * modules/sys_time-tests: Depend on it.
26914         * modules/time-c++-tests: New file, extracted from modules/time-tests.
26915         * modules/time-tests: Depend on it.
26916         * modules/unistd-c++-tests: New file, extracted from
26917         modules/unistd-tests.
26918         * modules/unistd-tests: Depend on it.
26919         * modules/wchar-c++-tests: New file, extracted from
26920         modules/wchar-tests.
26921         * modules/wchar-tests: Depend on it.
26922         * modules/wctype-c++-tests: New file, extracted from
26923         modules/wctype-tests.
26924         * modules/wctype-tests: Depend on it.
26925         Reported by Simon Josefsson.
26926
26927 2010-03-28  Bruno Haible  <bruno@clisp.org>
26928
26929         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
26930         * gnulib-tool (func_exists_module): New function, extracted from
26931         func_verify_module.
26932         (func_verify_module): Use it.
26933         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
26934         'foo' only if 'foo' exists.
26935         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
26936         module.
26937
26938 2010-03-28  Bruno Haible  <bruno@clisp.org>
26939
26940         gnulib-tool: Add support for special categories of tests.
26941         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
26942         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
26943         (func_usage): Document them.
26944         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
26945         inc_unportable_tests, inc_all_tests): New variables.
26946         (func_acceptable): Consider these variables.
26947         (func_modules_transitive_closure): Make it work when the 'Status' field
26948         consists of multiple words.
26949         (func_import): Store and restore the values of inc_cxx_tests,
26950         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
26951         inc_all_tests in gnulib-comp.m4.
26952         (func_create_testdir): Set inc_all_tests to true.
26953         * doc/gnulib.texi (Extra tests modules): New section.
26954         Suggested by Jim Meyering.
26955
26956 2010-03-28  Bruno Haible  <bruno@clisp.org>
26957
26958         ansi-c++-opt: Allow turning off the C++ build by default.
26959         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
26960         gl_CXX_CHOICE_DEFAULT_NO is defined.
26961         Requested by Eric Blake.
26962
26963 2010-03-28  Bruno Haible  <bruno@clisp.org>
26964
26965         unistd: Avoid #define replacements in C++ mode.
26966         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
26967         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
26968         setsockopt, shutdown, select): In C++, attach a warning to the function
26969         if possible, rather than #defining the symbol to a dysfunctional alias.
26970         Reported by John W. Eaton <jwe@gnu.org>.
26971
26972 2010-03-28  Bruno Haible  <bruno@clisp.org>
26973
26974         Fix link errors on mingw.
26975         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
26976         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
26977         $(LIBSOCKET).
26978         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
26979         $(LIBSOCKET).
26980
26981 2010-03-28  Bruno Haible  <bruno@clisp.org>
26982             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26983
26984         lib-ignore: Determine different options for different compilers.
26985         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
26986         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
26987         Add comments.
26988         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
26989         * NEWS: Mention the change.
26990
26991 2010-03-27  Bruno Haible  <bruno@clisp.org>
26992
26993         Remove unused GNULIB_XYZ macro definitions.
26994         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26995         * modules/fseek (configure.ac): Likewise.
26996         * modules/ioctl (configure.ac): Likewise.
26997         * modules/open (configure.ac): Likewise.
26998         * modules/stdlib-safer (configure.ac): Likewise.
26999
27000 2010-03-27  Bruno Haible  <bruno@clisp.org>
27001
27002         Add a remark about certain modules.
27003         * modules/malloc (Comment): New section.
27004         * modules/realloc (Comment): Likewise.
27005         * modules/sigpipe (Comment): Likewise.
27006
27007 2010-03-27  Bruno Haible  <bruno@clisp.org>
27008
27009         Resolve conflict between the two kinds of module indicators.
27010         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
27011         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
27012         * modules/canonicalize (configure.ac): Invoke
27013         gl_MODULE_INDICATOR_FOR_TESTS.
27014         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
27015         GNULIB_XYZ.
27016         * tests/test-dirent-c++.cc: Likewise.
27017         * tests/test-dirent-safer.c: Likewise.
27018         * tests/test-dup2.c: Likewise.
27019         * tests/test-fchdir.c: Likewise.
27020         * tests/test-fcntl-h-c++.cc: Likewise.
27021         * tests/test-getopt.c: Likewise.
27022         * tests/test-getopt.h: Likewise.
27023         * tests/test-langinfo-c++.cc: Likewise.
27024         * tests/test-locale-c++.cc: Likewise.
27025         * tests/test-math-c++.cc: Likewise.
27026         * tests/test-pty-c++.cc: Likewise.
27027         * tests/test-search-c++.cc: Likewise.
27028         * tests/test-signal-c++.cc: Likewise.
27029         * tests/test-spawn-c++.cc: Likewise.
27030         * tests/test-stdio-c++.cc: Likewise.
27031         * tests/test-stdlib-c++.cc: Likewise.
27032         * tests/test-string-c++.cc: Likewise.
27033         * tests/test-sys_ioctl-c++.cc: Likewise.
27034         * tests/test-sys_select-c++.cc: Likewise.
27035         * tests/test-sys_socket-c++.cc: Likewise.
27036         * tests/test-sys_stat-c++.cc: Likewise.
27037         * tests/test-sys_time-c++.cc: Likewise.
27038         * tests/test-time-c++.cc: Likewise.
27039         * tests/test-unistd-c++.cc: Likewise.
27040         * tests/test-wchar-c++.cc: Likewise.
27041         * tests/uninorm/test-u8-nfc.c: Likewise.
27042         * tests/uninorm/test-u8-nfd.c: Likewise.
27043         * tests/uninorm/test-u8-nfkc.c: Likewise.
27044         * tests/uninorm/test-u8-nfkd.c: Likewise.
27045         * tests/uninorm/test-u16-nfc.c: Likewise.
27046         * tests/uninorm/test-u16-nfd.c: Likewise.
27047         * tests/uninorm/test-u16-nfkc.c: Likewise.
27048         * tests/uninorm/test-u16-nfkd.c: Likewise.
27049         * tests/uninorm/test-u32-nfc.c: Likewise.
27050         * tests/uninorm/test-u32-nfc-big.c: Likewise.
27051         * tests/uninorm/test-u32-nfd.c: Likewise.
27052         * tests/uninorm/test-u32-nfd-big.c: Likewise.
27053         * tests/uninorm/test-u32-nfkc.c: Likewise.
27054         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
27055         * tests/uninorm/test-u32-nfkd.c: Likewise.
27056         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
27057         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27058
27059 2010-03-27  Bruno Haible  <bruno@clisp.org>
27060
27061         Distinguish two kinds of module indicators.
27062         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
27063         gl_MODULE_INDICATOR.
27064         (gl_MODULE_INDICATOR): New macro.
27065         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27066         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
27067         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
27068         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
27069         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27070         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
27071         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
27072         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
27073         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
27074         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
27075         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27076         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27077         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27078         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27079         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27080         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27081         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27082         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27083         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27084         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27085         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27086         * modules/cloexec (configure.ac): Likewise.
27087         * modules/getopt-gnu (configure.ac): Likewise.
27088         * modules/uninorm/u8-normalize (configure.ac): Likewise.
27089         * modules/uninorm/u16-normalize (configure.ac): Likewise.
27090         * modules/uninorm/u32-normalize (configure.ac): Likewise.
27091         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
27092
27093 2010-03-27  Bruno Haible  <bruno@clisp.org>
27094
27095         New module description field 'Comment'.
27096         * gnulib-tool: New option --extract-comment.
27097         (func_usage): Document it.
27098         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
27099         (func_get_comment): New function.
27100         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
27101
27102 2010-03-27  Bruno Haible  <bruno@clisp.org>
27103
27104         Addendum to 2010-02-07 commit.
27105         * gnulib-tool (func_usage): Document --extract-applicability option.
27106
27107 2010-03-27  Bruno Haible  <bruno@clisp.org>
27108
27109         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
27110         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
27111         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
27112         rather than link errors.
27113
27114 2010-03-27  Bruno Haible  <bruno@clisp.org>
27115
27116         Avoid side effects from tests-related modules on the compilation of lib.
27117         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
27118         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
27119         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
27120         parameter. Emit into AM_CPPFLAGS a definition of the designated C
27121         macro.
27122         (func_import): Define a witness macro. Assign it a value that depends
27123         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
27124         tests-related modules.
27125         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
27126         Reported by Jim Meyering.
27127
27128 2010-03-27  Bruno Haible  <bruno@clisp.org>
27129
27130         Factorize common .m4 code.
27131         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
27132         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
27133         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
27134         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
27135         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
27136         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
27137         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
27138         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
27139         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27140         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
27141         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
27142         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
27143         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
27144         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
27145         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
27146         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
27147         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27148         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27149         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27150         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
27151         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
27152         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27153         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27154         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27155         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27156         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27157         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
27158         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
27159         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
27160         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27161         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27162         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27163
27164 2010-03-27  Bruno Haible  <bruno@clisp.org>
27165
27166         Fix a compilation error on Cygwin with g++ >= 4.3.
27167         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
27168         if it is undefined or if we alias it to chmod.
27169         (lstat): Don't warn about the use of this function if it is undefined
27170         or if we alias it to stat.
27171         Reported by Simon Josefsson.
27172
27173 2010-03-27  Bruno Haible  <bruno@clisp.org>
27174
27175         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
27176         * modules/getlogin (configure.ac): Update.
27177
27178         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
27179         * modules/getlogin_r (configure.ac): Update.
27180
27181         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
27182         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
27183         * modules/inet_ntop (configure.ac): Update.
27184
27185         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
27186         * modules/inet_pton (configure.ac): Update.
27187
27188         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
27189         * modules/mbslen (configure.ac): Update.
27190
27191         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
27192         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
27193         * modules/forkpty (configure.ac): Update.
27194         * modules/openpty (configure.ac): Update.
27195
27196 2010-03-26  Simon Josefsson  <simon@josefsson.org>
27197
27198         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
27199         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
27200
27201 2010-03-25  Eric Blake  <eblake@redhat.com>
27202
27203         maint: use pragma consistently across replacement headers
27204         * lib/ctype.in.h (system_header): Hoist for consistent placement.
27205         * lib/dirent.in.h (system_header): Likewise.
27206         * lib/errno.in.h (system_header): Likewise.
27207         * lib/float.in.h (system_header): Likewise.
27208         * lib/getopt.in.h (system_header): Likewise.
27209         * lib/iconv.in.h (system_header): Likewise.
27210         * lib/inttypes.in.h (system_header): Likewise.
27211         * lib/langinfo.in.h (system_header): Likewise.
27212         * lib/locale.in.h (system_header): Likewise.
27213         * lib/math.in.h (system_header): Likewise.
27214         * lib/netdb.in.h (system_header): Likewise.
27215         * lib/netinet_in.in.h (system_header): Likewise.
27216         * lib/pty.in.h (system_header): Likewise.
27217         * lib/sched.in.h (system_header): Likewise.
27218         * lib/se-selinux.in.h (system_header): Likewise.
27219         * lib/search.in.h (system_header): Likewise.
27220         * lib/spawn.in.h (system_header): Likewise.
27221         * lib/stdarg.in.h (system_header): Likewise.
27222         * lib/stdint.in.h (system_header): Likewise.
27223         * lib/string.in.h (system_header): Likewise.
27224         * lib/strings.in.h (system_header): Likewise.
27225         * lib/sys_file.in.h (system_header): Likewise.
27226         * lib/sys_ioctl.in.h (system_header): Likewise.
27227         * lib/sys_socket.in.h (system_header): Likewise.
27228         * lib/sys_times.in.h (system_header): Likewise.
27229         * lib/sys_utsname.in.h (system_header): Likewise.
27230         * lib/sys_wait.in.h (system_header): Likewise.
27231         * lib/sysexits.in.h (system_header): Likewise.
27232         * lib/unistd.in.h (system_header): Likewise.
27233         * lib/wctype.in.h (system_header): Likewise.
27234
27235         arpa/inet: fix mingw compilation warning
27236         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
27237         Reported by Matthew Bolte.
27238
27239 2010-03-25  Bruno Haible  <bruno@clisp.org>
27240
27241         Avoid collision between gnulib wrapper and libintl wrapper.
27242         * lib/printf.c (printf): Don't define if a printf wrapper is already
27243         defined in intl/printf.c.
27244         Reported by Michel Boaventura <michel@michelboaventura.com>.
27245
27246 2010-03-25  Bruno Haible  <bruno@clisp.org>
27247
27248         Use ANSI C.
27249         * lib/readutmp.h (getutent): Provide ANSI C prototype.
27250
27251 2010-03-25  Bruno Haible  <bruno@clisp.org>
27252
27253         Minor formatting changes.
27254         * lib/acosl.c: Insert space before function argument list.
27255         * lib/argz.c: Likewise.
27256         * lib/asinl.c: Likewise.
27257         * lib/expl.c: Likewise.
27258         * lib/gen-uni-tables.c: Likewise.
27259         * lib/gettext.h: Likewise.
27260         * lib/glthread/lock.h: Likewise.
27261         * lib/tanl.c: Likewise.
27262         * lib/uniname/uniname.c: Likewise.
27263         * tests/test-idpriv-drop.c: Likewise.
27264         * tests/test-idpriv-droptemp.c: Likewise.
27265         * tests/test-lock.c: Likewise.
27266         * tests/test-tls.c: Likewise.
27267         * lib/argp-help.c: Insert space before function-like macro argument
27268         list.
27269         * lib/memcmp.c: Likewise.
27270         * tests/test-base64.c: Likewise.
27271         * lib/localename.c: Insert space before sizeof's argument list.
27272         * lib/safe-alloc.h: Likewise.
27273         * lib/file-set.h: Insert space before macro argument list.
27274         * tests/test-argp.c: Likewise.
27275         * lib/argp-namefrob.h: Insert space before function parameter list.
27276         * lib/getaddrinfo.c: Likewise.
27277         * lib/netdb.in.h: Likewise.
27278         * lib/parse-duration.h: Likewise.
27279         * lib/parse-duration.c: Likewise.
27280         * lib/poll.c: Likewise.
27281         * lib/select.c: Likewise.
27282         * lib/trim.h: Likewise.
27283         * tests/test-usleep.c: Likewise.
27284         * lib/ldexpl.c: Insert space before function parameter list and before
27285         function argument list.
27286         * lib/logl.c: Likewise.
27287         * lib/sqrtl.c: Likewise.
27288         * lib/trim.c: Likewise.
27289         * lib/cosl.c: Use GNU style indentation. Insert space before function
27290         argument list.
27291         * lib/sinl.c: Likewise.
27292         * lib/tsearch.c: Insert space after 'for'.
27293         Reported by Jim Meyering.
27294
27295 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
27296
27297         * maint.mk (sc_Wundef_boolean): Check for the presence of the
27298         config header before grepping, as it's not present before
27299         autoreconf/configure are run.  Reported by Simon Josefsson.
27300
27301 2010-03-23  Bruno Haible  <bruno@clisp.org>
27302
27303         pt_chown: Make it work with automake < 1.11.
27304         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
27305         Reported by Simon Josefsson.
27306
27307 2010-03-23  Bruno Haible  <bruno@clisp.org>
27308
27309         pt_chown: Don't depend on GPLed modules.
27310         * lib/pt_chown.c: Don't include idpriv.h.
27311         (main): Don't drop privileges.
27312         * modules/pt_chown (Depends-on): Remove idpriv-drop.
27313         Reported by Simon Josefsson.
27314
27315 2010-03-24  Simon Josefsson  <simon@josefsson.org>
27316
27317         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
27318         suggestions from karl@freefriends.org (Karl Berry).
27319
27320 2010-03-22  Eric Blake  <eblake@redhat.com>
27321
27322         gethostname: further tweaks
27323         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
27324         are overriding gethostname.
27325         Suggested by Bruno Haible.
27326
27327 2010-03-21  Bruno Haible  <bruno@clisp.org>
27328
27329         Fix comments.
27330         * lib/forkpty.c (rpl_forkpty): Fix comment.
27331         * lib/openpty.c (rpl_openpty): Likewise.
27332         Reported by Eric Blake.
27333
27334 2010-03-22  Eric Blake  <eblake@redhat.com>
27335
27336         gethostname: fix build on mingw
27337         * lib/unistd.in.h (includes): Work around fact that mingw
27338         <winsock2.h> re-includes <unistd.h>, by avoiding any
27339         redeclarations if we are being included by <winsock2.h>.
27340         Reported by Matthias Bolte.
27341
27342 2010-03-21  Bruno Haible  <bruno@clisp.org>
27343
27344         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27345         * lib/forkpty.c (forkpty): New replacement function, from glibc with
27346         modifications.
27347         * lib/pty.in.h (forkpty): Update declaration. Add comments.
27348         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
27349         provide the replacement.
27350         * modules/forkpty (Depends-on): Add openpty, login_tty.
27351         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
27352         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
27353         * doc/glibc-functions/forkpty.texi: More supported platforms.
27354         * config/srclist.txt: Add forkpty.c (commented).
27355
27356 2010-03-21  Bruno Haible  <bruno@clisp.org>
27357
27358         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
27359         (Makefile.am): Verify that PTY_LIB is defined.
27360
27361         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
27362
27363 2010-03-21  Bruno Haible  <bruno@clisp.org>
27364
27365         Tests for module 'login_tty'.
27366         * modules/login_tty-tests: New file.
27367         * tests/test-login_tty.c: New file.
27368
27369         New module 'login_tty'.
27370         * lib/login_tty.c: New file.
27371         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
27372         * modules/login_tty: New file.
27373         * doc/glibc-functions/login_tty.texi: Mention the new module.
27374
27375 2010-03-21  Bruno Haible  <bruno@clisp.org>
27376
27377         login_tty: Documentation.
27378         * doc/glibc-functions/login_tty.texi: New file.
27379         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
27380
27381 2010-03-21  Bruno Haible  <bruno@clisp.org>
27382
27383         pty: Consistent macro naming.
27384         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
27385         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
27386         * modules/pty (configure.ac): Update.
27387
27388 2010-03-21  Bruno Haible  <bruno@clisp.org>
27389
27390         Tests for openpty: Make stricter.
27391         * tests/test-openpty.c (main): Add test of canonical processing and
27392         erase.
27393         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
27394
27395         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27396         * lib/openpty.c (openpty): New replacement function.
27397         * lib/pty.in.h: Include <termios.h>.
27398         (openpty): Update declaration. Add comments.
27399         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
27400         is not declared, arrange to provide the replacement. Check for _getpty
27401         and posix_openpt.
27402         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
27403         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
27404         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
27405         * modules/pty-tests (test_pty_c___LDADD): New variable.
27406         * doc/glibc-functions/openpty.texi: More supported platforms.
27407
27408 2010-03-21  Bruno Haible  <bruno@clisp.org>
27409
27410         setenv: Tweaks.
27411         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
27412         the test program.
27413         * doc/posix-functions/setenv.texi: Update platforms list.
27414
27415 2010-03-21  Bruno Haible  <bruno@clisp.org>
27416
27417         New module 'unlockpt'.
27418         * lib/unlockpt.c: New file, from glibc with modifications.
27419         * m4/unlockpt.m4: New file.
27420         * modules/unlockpt: New file.
27421         * lib/stdlib.in.h (unlockpt): New declaration.
27422         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
27423         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
27424         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
27425         HAVE_UNLOCKPT.
27426         * doc/posix-functions/unlockpt.texi: Mention the new module.
27427         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
27428         * config/srclist.txt: Add unlockpt.c (commented).
27429
27430 2010-03-21  Jim Meyering  <meyering@redhat.com>
27431
27432         maint.mk: prohibit inclusion of "intprops.h" without use
27433         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
27434
27435 2010-03-21  Bruno Haible  <bruno@clisp.org>
27436
27437         New module 'grantpt'.
27438         * lib/grantpt.c: New file, from glibc with modifications.
27439         * m4/grantpt.m4: New file.
27440         * modules/grantpt: New file.
27441         * lib/stdlib.in.h (grantpt): New declaration.
27442         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
27443         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
27444         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
27445         HAVE_GRANTPT.
27446         * doc/posix-functions/grantpt.texi: Mention the new module.
27447         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
27448         * config/srclist.txt: Add grantpt.c (commented).
27449
27450 2010-03-21  Bruno Haible  <bruno@clisp.org>
27451
27452         New module 'pt_chown'.
27453         * lib/pt_chown.c: New file, from glibc with modifications.
27454         * lib/pty-private.h: New file, from glibc with modifications.
27455         * modules/pt_chown: New file.
27456         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
27457
27458 2010-03-21  Bruno Haible  <bruno@clisp.org>
27459
27460         Tests for module 'ptsname'.
27461         * modules/ptsname-tests: New file.
27462         * tests/test-ptsname.c: New file.
27463
27464         New module 'ptsname'.
27465         * lib/ptsname.c: New file, from glibc with modifications.
27466         * m4/ptsname.m4: New file.
27467         * modules/ptsname: New file.
27468         * lib/stdlib.in.h (ptsname): New declaration.
27469         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
27470         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
27471         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
27472         HAVE_PTSNAME.
27473         * doc/posix-functions/ptsname.texi: Mention the new module.
27474         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
27475         * config/srclist.txt: Add ptsname.c (commented).
27476
27477 2010-03-21  Bruno Haible  <bruno@clisp.org>
27478
27479         Tests for module 'ttyname_r'.
27480         * modules/ttyname_r-tests: New file.
27481         * tests/test-ttyname_r.c: New file.
27482
27483         New module 'ttyname_r'.
27484         * lib/ttyname_r.c: New file.
27485         * m4/ttyname_r.m4: New file.
27486         * modules/ttyname_r: New file.
27487         * lib/unistd.in.h (ttyname_r): New declaration.
27488         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
27489         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
27490         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
27491         HAVE_TTYNAME_R.
27492         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
27493         * doc/posix-functions/ttyname_r.texi: Mention the new module.
27494
27495 2010-03-20  Bruno Haible  <bruno@clisp.org>
27496
27497         signal: Undefine macro definitions in C++ mode.
27498         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
27499         sigfillset): Undefine macro definitions from the system header in C++
27500         mode.
27501         Reported by John W. Eaton <jwe@gnu.org>.
27502
27503 2010-03-20  Bruno Haible  <bruno@clisp.org>
27504
27505         Ensure no #include statements inside extern "C" { ... }.
27506         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
27507         contain #include statements.
27508         * lib/time.in.h: Likewise.
27509
27510 2010-03-20  Bruno Haible  <bruno@clisp.org>
27511
27512         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
27513         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
27514         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
27515         Reported by John W. Eaton <jwe@gnu.org>.
27516
27517 2010-03-20  Bruno Haible  <bruno@clisp.org>
27518
27519         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
27520         Reported by Jim Meyering.
27521
27522 2010-03-20  Bruno Haible  <bruno@clisp.org>
27523
27524         pipe: Set errno upon failure.
27525         * lib/pipe.h: Specify that when -1 is returned, errno is set.
27526         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
27527         errno value in error message.
27528
27529 2010-03-20  Bruno Haible  <bruno@clisp.org>
27530             Jim Meyering  <meyering@redhat.com>
27531
27532         lchown: Avoid "unused variable" warning.
27533         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
27534
27535 2010-03-20  Bruno Haible  <bruno@clisp.org>
27536
27537         Work around unlink() bug on MacOS X 10.5.6.
27538         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
27539         attempting to unlink a parent directory.
27540         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
27541         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
27542         activate for the replacement function.
27543         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
27544
27545 2010-03-20  Bruno Haible  <bruno@clisp.org>
27546
27547         Fix link errors on Solaris 8.
27548         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
27549         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
27550
27551 2010-03-19  Jim Meyering  <meyering@redhat.com>
27552
27553         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
27554         The _LIBC implementation of build_range_exp correctly honors the
27555         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
27556         However, the non-_LIBC implementation would ignore that syntax-bit
27557         flag and return REG_ERANGE unconditionally.
27558         This change makes it honor that flag.
27559         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
27560         Make two pointer parameters "const".
27561         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
27562         (parse_bracket_exp): Update caller.
27563
27564         regex.m4: correct the reversed range endpoint ([b-a]) test
27565         * m4/regex.m4: When requiring that [b-a] evoke failure,
27566         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
27567         test pass once again for x86-based systems.
27568
27569 2010-03-19  Bruno Haible  <bruno@clisp.org>
27570
27571         scandir: Fix link error on Solaris 8.
27572         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
27573         macros.
27574
27575 2010-03-19  Bruno Haible  <bruno@clisp.org>
27576
27577         getusershell: Fix documentation.
27578         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
27579         module.
27580         * doc/glibc-functions/setusershell.texi: Likewise.
27581
27582         getusershell: Provide declaration, missing on Solaris 9.
27583         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
27584         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
27585         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
27586         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
27587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27588         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
27589         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
27590         HAVE_GETUSERSHELL.
27591         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
27592
27593 2010-03-19  Bruno Haible  <bruno@clisp.org>
27594
27595         wctype: Provide iswblank function.
27596         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
27597         exists and is fine.
27598         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
27599         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
27600         * tests/test-wctype.c (main): Re-enable the iswblank tests.
27601         * doc/posix-functions/iswblank.texi: Update.
27602
27603 2010-03-19  Bruno Haible  <bruno@clisp.org>
27604
27605         Tests of module 'pty' in C++ mode.
27606         * modules/pty-tests: New file.
27607         * tests/test-pty-c++.cc: New file.
27608         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27609
27610 2010-03-19  Eric Blake  <eblake@redhat.com>
27611
27612         logb: fix documentation
27613         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
27614         1.5 declaration bug.
27615
27616         forkpty, openpty: prefer glibc's const-safe prototype
27617         * lib/forkpty.c (rpl_forkpty): New file.
27618         * lib/openpty.c (rpl_openpty): Likewise.
27619         * modules/forkpty (Files): Distribute it.
27620         * modules/openpty (Files): Likewise.
27621         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
27622         check...
27623         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
27624         replacement for for non-const BSD signature.
27625         * modules/pty (Makefile.am): Substitute witnesses.
27626         * lib/pty.in.h (forkpty, openpty): Declare replacements.
27627         * tests/test-forkpty.c: Update signature check.
27628         * tests/test-openpty.c: Likewise.
27629         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
27630         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27631
27632         forkpty, openpty: split functions into new modules
27633         * modules/pty (Makefile.am): Substitute new witnesses.
27634         (Libraries): Move library detection...
27635         * modules/forkpty: ...into new module.
27636         * modules/openpty: Another new module.
27637         * modules/pty-tests: Rename and split...
27638         * modules/forkpty-tests: ...to this...
27639         * modules/openpty-tests: ...and this.
27640         * tests/test-pty.c: Rename and split...
27641         * tests/test-forkpty.c: ...to this...
27642         * tests/test-openpty.c: ...and this.
27643         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
27644         (gl_PTY): Split library searching...
27645         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
27646         (gl_FORKPTY, gl_OPENPTY): New macros.
27647         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
27648         * NEWS: Mention the split.
27649         * MODULES.html.sh (Misc): Document the modules.
27650         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
27651         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27652
27653         pty: improve replacement header
27654         * lib/pty.in.h: New file.
27655         * modules/pty (Files): Ship it.
27656         (Makefile.am): Always build replacement.
27657         * m4/pty.m4: Rename...
27658         * m4/pty_h.m4: ...to this.
27659         (gl_PTY): Modernize setting of witness macros; update check of
27660         forkpty to take proper advantage of cache.
27661         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
27662
27663         getopt: avoid compiler warning
27664         * lib/getopt.c (attribute_hidden): Remove unused macro.
27665
27666 2010-03-18  Bruno Haible  <bruno@clisp.org>
27667
27668         Fix link errors on Solaris 8.
27669         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
27670         * modules/search-tests (test_search_c___LDADD): Likewise.
27671         * modules/signal-tests (test_signal_c___LDADD): Likewise.
27672         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
27673         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
27674         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
27675         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
27676         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
27677         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
27678
27679 2010-03-18  Bruno Haible  <bruno@clisp.org>
27680
27681         Fix bug introduced on 2010-03-14.
27682         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
27683         (gl_SPAWN_H): Require it.
27684         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
27685         Reported by Simon Josefsson.
27686
27687 2010-03-18  Bruno Haible  <bruno@clisp.org>
27688
27689         Fix typo introduced on 2009-12-31.
27690         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
27691         posix_spawn_file_actions_adddup2.
27692
27693 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
27694         and Eric Blake  <eblake@redhat.com>
27695
27696         test-vc-list-files-git: make more robust
27697         * tests/test-vc-list-files-git.sh: Unset problematic environment
27698         variables.  Chain commands together.
27699
27700 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
27701
27702         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
27703         `AC_CHECK_DECL' invocation.
27704
27705 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
27706
27707         * lib/inttostr.c (inttostr): Make sure the invocation of verify
27708         appears before executable statements. Suggested by Petr Sumbera
27709         <Petr.Sumbera@Sun.COM>.
27710
27711 2010-03-14  Bruno Haible  <bruno@clisp.org>
27712
27713         * tests/test-flock.c (test_exclusive): Comment out a test that causes
27714         portability problems. Instead use a simpler test.
27715         (main): Check that invalid arguments are rejected only on Linux.
27716
27717 2010-03-14  Bruno Haible  <bruno@clisp.org>
27718
27719         Fix bug introduced on 2009-12-31.
27720         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27721         gl_PREREQ_SYS_H_WINSOCK2 always.
27722         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
27723         SYS_SOCKET_H variable.
27724         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
27725         Update comments.
27726         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
27727         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27728         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27729         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27730         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27731
27732 2010-03-14  Bruno Haible  <bruno@clisp.org>
27733
27734         Fix values returned by sinl, cosl.
27735         * lib/trigl.h: Add specification comments.
27736         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
27737         that combines the values from the precomputed table with the values of
27738         the Chebyshev polynomials.
27739
27740 2010-03-14  Bruno Haible  <bruno@clisp.org>
27741
27742         Fix compilation error when modules 'posix_spawn[p]' are not used.
27743         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
27744         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
27745
27746 2010-03-14  Bruno Haible  <bruno@clisp.org>
27747
27748         Fix compilation error on mingw when module 'time_r' is not used.
27749         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
27750         is 1.
27751         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
27752         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27753         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
27754         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
27755
27756 2010-03-14  Bruno Haible  <bruno@clisp.org>
27757
27758         Fix compilation error with Sun C.
27759         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
27760         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
27761         instead of GCC specific ULONG_LONG_MAX.
27762         * lib/xstrtoll.c: Likewise.
27763         * lib/xstrtoull.c: Likewise.
27764
27765 2010-03-13  Bruno Haible  <bruno@clisp.org>
27766
27767         Allow the user to disable C++ code and tests.
27768         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
27769         (gl_PROG_ANSI_CXX): Require it.
27770
27771 2010-03-13  Bruno Haible  <bruno@clisp.org>
27772
27773         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
27774         cases.
27775
27776 2010-03-13  Bruno Haible  <bruno@clisp.org>
27777
27778         Test that gnulib does not break the standard C++ headers.
27779         * tests/test-locale-c++2.cc: New file.
27780         * modules/locale-tests (Files): Add it.
27781         (Makefile.am): Compile it for test-locale-c++.
27782         * tests/test-math-c++2.cc: New file.
27783         * modules/math-tests (Files): Add it.
27784         (Makefile.am): Compile it for test-math-c++.
27785         * tests/test-signal-c++2.cc: New file.
27786         * modules/signal-tests (Files): Add it.
27787         (Makefile.am): Compile it for test-signal-c++.
27788         * tests/test-stdio-c++2.cc: New file.
27789         * modules/stdio-tests (Files): Add it.
27790         (Makefile.am): Compile it for test-stdio-c++.
27791         * tests/test-stdlib-c++2.cc: New file.
27792         * modules/stdlib-tests (Files): Add it.
27793         (Makefile.am): Compile it for test-stdlib-c++.
27794         * tests/test-string-c++2.cc: New file.
27795         * modules/string-tests (Files): Add it.
27796         (Makefile.am): Compile it for test-string-c++.
27797         * tests/test-time-c++2.cc: New file.
27798         * modules/time-tests (Files): Add it.
27799         (Makefile.am): Compile it for test-time-c++.
27800         Reported by John W. Eaton <jwe@gnu.org>.
27801
27802 2010-03-13  Bruno Haible  <bruno@clisp.org>
27803
27804         * gnulib-tool (func_usage): Clarify which options are available for
27805         --create-testdir and --create-megatestdir.
27806
27807 2010-03-13  Bruno Haible  <bruno@clisp.org>
27808
27809         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
27810         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
27811         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
27812         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27813         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
27814         when appropriate.
27815         Reported by Jim Meyering.
27816
27817 2010-03-12  Simon Josefsson  <simon@josefsson.org>
27818
27819         * gnulib-tool (func_import): Explain origin of code.
27820
27821 2010-03-12  Bruno Haible  <bruno@clisp.org>
27822
27823         Fix problem with automake's definition of CXXLINK.
27824         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
27825         Reported by Simon Josefsson and Ludovic Courtès.
27826
27827 2010-03-12  Bruno Haible  <bruno@clisp.org>
27828
27829         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
27830         stable releases.
27831
27832 2010-03-11  Bruno Haible  <bruno@clisp.org>
27833
27834         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
27835         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
27836         whether the system provides one variant or multiple variants of the
27837         function.
27838         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
27839         C++ compilers.
27840         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
27841         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
27842         Reported by Jim Meyering.
27843
27844 2010-03-09  Simon Josefsson  <simon@josefsson.org>
27845
27846         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
27847
27848 2010-03-08  Bruno Haible  <bruno@clisp.org>
27849
27850         gnulib-tool: Add support for --libtool in --create-testdir.
27851         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
27852         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
27853
27854 2010-03-08  Eric Blake  <eblake@redhat.com>
27855
27856         gnulib-tool.texi: mention possibility of git submodule
27857         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
27858         submodules.
27859         * doc/.gitignore: Ignore another generated file.
27860
27861 2010-03-08  Karl Berry  <karl@gnu.org>
27862
27863         * doc/gnulib-tool.texi (VCS Issues): Mention third option
27864         of committing gnulib files while skipping others.
27865
27866 2010-03-07  Bruno Haible  <bruno@clisp.org>
27867
27868         Tests of module 'wctype' in C++ mode.
27869         * tests/test-wctype-c++.cc: New file.
27870         * modules/wctype-tests (Files): Add it and tests/signature.h.
27871         (Depends-on): Add ansi-c++-opt.
27872         (Makefile.am): Arrange to compile and run test-wctype-c++.
27873
27874         Tests of module 'wchar' in C++ mode.
27875         * tests/test-wchar-c++.cc: New file.
27876         * modules/wchar-tests (Files): Add it and tests/signature.h.
27877         (Depends-on): Add ansi-c++-opt.
27878         (Makefile.am): Arrange to compile and run test-wchar-c++.
27879         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
27880         gl_MODULE_INDICATOR.
27881
27882         Tests of module 'unistd' in C++ mode.
27883         * tests/test-unistd-c++.cc: New file.
27884         * modules/unistd-tests (Files): Add it and tests/signature.h.
27885         (Depends-on): Add ansi-c++-opt.
27886         (Makefile.am): Arrange to compile and run test-unistd-c++.
27887         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
27888         gl_MODULE_INDICATOR.
27889
27890         Tests of module 'time' in C++ mode.
27891         * tests/test-time-c++.cc: New file.
27892         * modules/time-tests (Files): Add it and tests/signature.h.
27893         (Depends-on): Add ansi-c++-opt.
27894         (Makefile.am): Arrange to compile and run test-time-c++.
27895         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27896
27897         Tests of module 'sys_time' in C++ mode.
27898         * tests/test-sys_time-c++.cc: New file.
27899         * modules/sys_time-tests (Files): Add it and tests/signature.h.
27900         (Depends-on): Add ansi-c++-opt.
27901         (Makefile.am): Arrange to compile and run test-sys_time-c++.
27902         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
27903         gl_MODULE_INDICATOR.
27904
27905         Tests of module 'sys_stat' in C++ mode.
27906         * tests/test-sys_stat-c++.cc: New file.
27907         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
27908         (Depends-on): Add ansi-c++-opt.
27909         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
27910         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
27911         gl_MODULE_INDICATOR.
27912
27913         Tests of module 'sys_socket' in C++ mode.
27914         * tests/test-sys_socket-c++.cc: New file.
27915         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
27916         (Depends-on): Add ansi-c++-opt.
27917         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
27918         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
27919         gl_MODULE_INDICATOR.
27920
27921         Tests of module 'sys_select' in C++ mode.
27922         * tests/test-sys_select-c++.cc: New file.
27923         * modules/sys_select-tests (Files): Add it and tests/signature.h.
27924         (Depends-on): Add ansi-c++-opt.
27925         (Makefile.am): Arrange to compile and run test-sys_select-c++.
27926         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
27927         gl_MODULE_INDICATOR.
27928
27929         Tests of module 'sys_ioctl' in C++ mode.
27930         * tests/test-sys_ioctl-c++.cc: New file.
27931         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
27932         (Depends-on): Add ansi-c++-opt.
27933         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
27934         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
27935         gl_MODULE_INDICATOR.
27936
27937         Tests of module 'string' in C++ mode.
27938         * tests/test-string-c++.cc: New file.
27939         * modules/string-tests (Files): Add it and tests/signature.h.
27940         (Depends-on): Add ansi-c++-opt.
27941         (Makefile.am): Arrange to compile and run test-string-c++.
27942         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
27943         gl_MODULE_INDICATOR.
27944
27945         Tests of module 'stdlib' in C++ mode.
27946         * tests/test-stdlib-c++.cc: New file.
27947         * modules/stdlib-tests (Files): Add it and tests/signature.h.
27948         (Depends-on): Add ansi-c++-opt.
27949         (Makefile.am): Arrange to compile and run test-stdlib-c++.
27950         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
27951         gl_MODULE_INDICATOR.
27952
27953         Tests of module 'stdio' in C++ mode.
27954         * tests/test-stdio-c++.cc: New file.
27955         * modules/stdio-tests (Files): Add it and tests/signature.h.
27956         (Depends-on): Add ansi-c++-opt.
27957         (Makefile.am): Arrange to compile and run test-stdio-c++.
27958         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
27959         gl_MODULE_INDICATOR.
27960
27961         Tests of module 'spawn' in C++ mode.
27962         * tests/test-spawn-c++.cc: New file.
27963         * modules/spawn-tests (Files): Add it and tests/signature.h.
27964         (Depends-on): Add ansi-c++-opt.
27965         (Makefile.am): Arrange to compile and run test-spawn-c++.
27966         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
27967         gl_MODULE_INDICATOR.
27968
27969         Tests of module 'signal' in C++ mode.
27970         * tests/test-signal-c++.cc: New file.
27971         * modules/signal-tests (Files): Add it and tests/signature.h.
27972         (Depends-on): Add ansi-c++-opt.
27973         (Makefile.am): Arrange to compile and run test-signal-c++.
27974         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
27975         gl_MODULE_INDICATOR.
27976
27977         Tests of module 'search' in C++ mode.
27978         * tests/test-search-c++.cc: New file.
27979         * modules/search-tests (Files): Add it and tests/signature.h.
27980         (Depends-on): Add ansi-c++-opt.
27981         (Makefile.am): Arrange to compile and run test-search-c++.
27982         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
27983         gl_MODULE_INDICATOR.
27984
27985         Tests of module 'math' in C++ mode.
27986         * tests/test-math-c++.cc: New file.
27987         * modules/math-tests (Files): Add it and tests/signature.h.
27988         (Depends-on): Add ansi-c++-opt.
27989         (Makefile.am): Arrange to compile and run test-math-c++.
27990         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27991
27992         Tests of module 'locale' in C++ mode.
27993         * tests/test-locale-c++.cc: New file.
27994         * modules/locale-tests (Files): Add it and tests/signature.h.
27995         (Depends-on): Add ansi-c++-opt.
27996         (Makefile.am): Arrange to compile and run test-locale-c++.
27997         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
27998         gl_MODULE_INDICATOR.
27999
28000         Tests of module 'langinfo' in C++ mode.
28001         * tests/test-langinfo-c++.cc: New file.
28002         * modules/langinfo-tests (Files): Add it and tests/signature.h.
28003         (Depends-on): Add ansi-c++-opt.
28004         (Makefile.am): Arrange to compile and run test-langinfo-c++.
28005         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
28006         gl_MODULE_INDICATOR.
28007
28008         Tests of module 'iconv-h' in C++ mode.
28009         * tests/test-iconv-h-c++.cc: New file.
28010         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
28011         (Depends-on): Add ansi-c++-opt.
28012         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
28013
28014         Tests of module 'glob' in C++ mode.
28015         * tests/test-glob-c++.cc: New file.
28016         * modules/glob-tests (Files): Add it.
28017         (Depends-on): Add ansi-c++-opt.
28018         (Makefile.am): Arrange to compile and run test-glob-c++.
28019
28020         Tests of module 'fcntl-h' in C++ mode.
28021         * tests/test-fcntl-h-c++.cc: New file.
28022         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
28023         (Depends-on): Add ansi-c++-opt.
28024         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
28025         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
28026         gl_MODULE_INDICATOR.
28027
28028         Tests of module 'dirent' in C++ mode.
28029         * tests/test-dirent-c++.cc: New file.
28030         * modules/dirent-tests (Files): Add it and tests/signature.h.
28031         (Depends-on): Add ansi-c++-opt.
28032         (Makefile.am): Arrange to compile and run test-dirent-c++.
28033         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28034         gl_MODULE_INDICATOR.
28035
28036         New module 'ansi-c++-opt'.
28037         * modules/ansi-c++-opt: New file.
28038         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
28039
28040         Document C++ namespace mode.
28041         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
28042
28043         wctype: Avoid #define replacements in C++ mode.
28044         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
28045         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
28046         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
28047         In C++, define a namespaced alias symbol.
28048         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
28049         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
28050         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
28051         rule.
28052
28053         wchar: Avoid #define replacements in C++ mode.
28054         * lib/wchar.in.h: Include c++defs.h.
28055         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
28056         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
28057         symbol.
28058         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
28059         * modules/wchar (Depends-on): Add c++defs.
28060         (Makefile.am): Update wchar.h rule.
28061
28062         unistd: Avoid #define replacements in C++ mode.
28063         * lib/unistd.in.h: Include c++defs.h.
28064         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
28065         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
28066         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
28067         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
28068         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
28069         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
28070         symbol.
28071         (environ): Update.
28072         * modules/unistd (Depends-on): Add c++defs.
28073         (Makefile.am): Update unistd.h rule.
28074
28075         time: Avoid #define replacements in C++ mode.
28076         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
28077         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
28078         define a namespaced alias symbol.
28079         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
28080         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
28081         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
28082         * modules/time (Depends-on): Add c++defs, warn-on-use.
28083         (Makefile.am): Update time.h rule.
28084         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28085         * modules/nanosleep (configure.ac): Likewise.
28086         * modules/strptime (configure.ac): Likewise.
28087         * modules/timegm (configure.ac): Likewise.
28088
28089         sys_time: Avoid #define replacements in C++ mode.
28090         * lib/sys_time.in.h: Include c++defs.h.
28091         (gettimeofday): In C++, define a namespaced alias symbol.
28092         * modules/sys_time (Depends-on): Add c++defs.
28093         (Makefile.am): Update sys/time.h rule.
28094
28095         sys_stat: Avoid #define replacements in C++ mode.
28096         * lib/sys_stat.in.h: Include c++defs.h.
28097         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
28098         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
28099         namespaced alias symbol.
28100         In C++, define a namespaced alias symbol.
28101         * modules/sys_stat (Depends-on): Add c++defs.
28102         (Makefile.am): Update sys/stat.h rule.
28103
28104         sys_socket: Avoid #define replacements in C++ mode.
28105         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
28106         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
28107         definitions also when the system has a <sys/socket.h>.
28108         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28109         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
28110         In C++, define a namespaced alias symbol.
28111         * modules/sys_socket (Depends-on): Add c++defs.
28112         (Makefile.am): Update sys/socket.h rule.
28113
28114         sys_select: Avoid #define replacements in C++ mode.
28115         * lib/sys_select.in.h: Include c++defs.h. Enable the function
28116         definitions also when the system has a <sys/select.h>.
28117         (select): In C++, define a namespaced alias symbol.
28118         * modules/sys_select (Depends-on): Add c++defs.
28119         (Makefile.am): Update sys/select.h rule.
28120
28121         sys_ioctl: Avoid #define replacements in C++ mode.
28122         * lib/sys_ioctl.in.h: Include c++defs.h.
28123         (ioctl): In C++, define a namespaced alias symbol.
28124         * modules/sys_ioctl (Depends-on): Add c++defs.
28125         (Makefile.am): Update sys/ioctl.h rule.
28126
28127         string: Avoid #define replacements in C++ mode.
28128         * lib/string.in.h: Include c++defs.h.
28129         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
28130         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28131         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28132         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
28133         strsignal, strverscmp): In C++, define a namespaced alias symbol.
28134         * modules/string (Depends-on): Add c++defs.
28135         (Makefile.am): Update string.h rule.
28136
28137         stdlib: Avoid #define replacements in C++ mode.
28138         * lib/stdlib.in.h: Include c++defs.h.
28139         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
28140         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
28141         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
28142         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
28143         symbol.
28144         * modules/stdlib (Depends-on): Add c++defs.
28145         (Makefile.am): Update stdlib.h rule.
28146
28147         stdio: Avoid #define replacements in C++ mode.
28148         * lib/stdio.in.h: Include c++defs.h.
28149         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
28150         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
28151         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
28152         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
28153         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
28154         namespaced alias symbol.
28155         * modules/stdio (Depends-on): Add c++defs.
28156         (Makefile.am): Update stdio.h rule.
28157
28158         spawn: Avoid #define replacements in C++ mode.
28159         * lib/spawn.in.h: Include c++defs.h.
28160         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28161         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28162         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28163         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28164         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28165         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28166         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28167         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28168         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28169         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28170         In C++, define a namespaced alias symbol.
28171         * modules/spawn (Depends-on): Add c++defs.
28172         (Makefile.am): Update spawn.h rule.
28173
28174         signal: Avoid #define replacements in C++ mode.
28175         * lib/signal.in.h: Include c++defs.h.
28176         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28177         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
28178         namespaced alias symbol.
28179         * modules/signal (Depends-on): Add c++defs.
28180         (Makefile.am): Update signal.h rule.
28181
28182         search: Avoid #define replacements in C++ mode.
28183         * lib/search.in.h: Include c++defs.h.
28184         (_gl_search_compar_fn, _gl_search_action_fn): New types.
28185         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
28186         symbol.
28187         * modules/search (Depends-on): Add c++defs.
28188         (Makefile.am): Update search.h rule.
28189
28190         math: Avoid #define replacements in C++ mode.
28191         * lib/math.in.h: Include c++defs.h.
28192         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
28193         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
28194         trunc, truncl): In C++, define a namespaced alias symbol.
28195         * modules/math (Depends-on): Add c++defs.
28196         (Makefile.am): Update math.h rule.
28197
28198         locale: Avoid #define replacements in C++ mode.
28199         * lib/locale.in.h: Include c++defs.h.
28200         (duplocale): In C++, define a namespaced alias symbol.
28201         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
28202         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
28203         * modules/locale (Depends-on): Add c++defs.
28204         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
28205
28206         langinfo: Avoid #define replacements in C++ mode.
28207         * lib/langinfo.in.h: Include c++defs.h.
28208         (nl_langinfo): In C++, define a namespaced alias symbol.
28209         * modules/langinfo (Depends-on): Add c++defs.
28210         (Makefile.am): Update langinfo.h rule.
28211
28212         iconv-h: Avoid #define replacements in C++ mode.
28213         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
28214         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
28215         symbol.
28216         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28217         whenever iconv is present.
28218         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
28219         (Makefile.am): Update iconv.h rule.
28220
28221         glob: Avoid #define replacements in C++ mode.
28222         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
28223         (_gl_glob_errfunc_fn): New type.
28224         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
28225         symbol.
28226         * modules/glob (Depends-on): Add c++defs, warn-on-use.
28227         (Makefile.am): Update glob.h rule.
28228
28229         fcntl-h: Avoid #define replacements in C++ mode.
28230         * lib/fcntl.in.h: Include c++defs.h.
28231         (fcntl, open, openat): In C++, define a namespaced alias symbol.
28232         * modules/fcntl-h (Depends-on): Add c++defs.
28233         (Makefile.am): Update fcntl.h rule.
28234
28235         dirent: Avoid #define replacements in C++ mode.
28236         * lib/dirent.in.h: Include c++defs.h.
28237         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
28238         namespaced alias symbol.
28239         (dirfd): Update declaration.
28240         * modules/dirent (Depends-on): Add c++defs.
28241         (Makefile.am): Update dirent.h rule.
28242
28243         ctype: Make it usable in C++ code.
28244         * lib/ctype.in.h: Include c++defs.h.
28245         (isblank): Declare as extern "C".
28246         * modules/ctype (Depends-on): Add c++defs.
28247         (Makefile.am): Update ctype.h rule.
28248
28249         New module 'c++defs'.
28250         * modules/c++defs: New file.
28251         * build-aux/c++defs.h: New file.
28252         Reported by John W. Eaton <jwe@gnu.org>.
28253
28254 2010-03-07  Bruno Haible  <bruno@clisp.org>
28255
28256         logb: Provide missing declaration for Cygwin.
28257         * lib/math.in.h (logb): New declaration.
28258         * m4/logb.m4: New file.
28259         * modules/logb (Files): Add m4/logb.m4.
28260         (Depends-on): Add math.
28261         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
28262         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
28263         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
28264         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
28265         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
28266
28267 2010-03-07  Bruno Haible  <bruno@clisp.org>
28268
28269         Fix test-cond link error.
28270         * tests/test-cond.c: Include <stdio.h>.
28271
28272 2010-03-07  Bruno Haible  <bruno@clisp.org>
28273
28274         Fix test-dirent-safer link error.
28275         * modules/dirent-safer-tests (Makefile.am): Define
28276         test_dirent_safer_LDADD.
28277
28278 2010-03-07  Bruno Haible  <bruno@clisp.org>
28279
28280         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
28281         among default module list.
28282
28283 2010-03-07  Bruno Haible  <bruno@clisp.org>
28284
28285         Fix link error on platforms with GNU libiconv.
28286         * modules/unistr/u8-strcoll-tests (Makefile): Define
28287         test_u8_strcoll_LDADD.
28288         * modules/unistr/u16-strcoll-tests (Makefile): Define
28289         test_u16_strcoll_LDADD.
28290         * modules/unistr/u32-strcoll-tests (Makefile): Define
28291         test_u32_strcoll_LDADD.
28292
28293 2010-03-07  Bruno Haible  <bruno@clisp.org>
28294
28295         Use POSIX declarations for socket functions.
28296         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
28297         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
28298         rpl_sendto): Change declaration to match POSIX.
28299         * lib/connect.c (rpl_connect): Likewise.
28300         * lib/accept.c (rpl_accept): Likewise.
28301         * lib/bind.c (rpl_bind): Likewise.
28302         * lib/getpeername.c (rpl_getpeername): Likewise.
28303         * lib/getsockname.c (rpl_getsockname): Likewise.
28304         * lib/recv.c (rpl_recv): Likewise.
28305         * lib/send.c (rpl_send): Likewise.
28306         * lib/recvfrom.c (rpl_recvfrom): Likewise.
28307         * lib/sendto.c (rpl_sendto): Likewise.
28308
28309 2010-03-06  Bruno Haible  <bruno@clisp.org>
28310
28311         Clarify access, euidaccess, faccessat.
28312         * doc/posix-functions/faccessat.texi: Mention security problem under
28313         "Other problems", not "Portability problems".
28314         * doc/posix-functions/access.texi: Likewise. Mention a related security
28315         problem.
28316         * doc/glibc-functions/euidaccess.texi: Mention security problems.
28317         * lib/euidaccess.c: Add comments about platforms.
28318         * lib/unistd.in.h (access, euidaccess): Add warnings.
28319
28320 2010-03-07  Bruno Haible  <bruno@clisp.org>
28321
28322         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
28323         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
28324         (POSIX_SPAWN_SETSCHEDULER): Likewise.
28325         (POSIX_SPAWN_USEVFORK): Define in a way that works when
28326         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28327         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
28328         declare when POSIX_SPAWN_SETSCHEDULER is zero.
28329         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
28330         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
28331         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
28332         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
28333         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
28334         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
28335         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
28336         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
28337         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
28338         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
28339         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
28340         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
28341         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
28342         Likewise.
28343         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
28344         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
28345         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
28346         Likewise.
28347         * tests/test-spawn.c (main): Make it work when
28348         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28349
28350 2010-03-07  Bruno Haible  <bruno@clisp.org>
28351
28352         Fix incorrect Makefile.am generation in German locale.
28353         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28354         Execute sed command with character range in C locale.
28355
28356 2010-03-06  Bruno Haible  <bruno@clisp.org>
28357
28358         Tests for module 'iconv-h'.
28359         * modules/iconv-h-tests: New file.
28360         * tests/test-iconv-h.c: New file.
28361
28362         New module 'iconv-h'.
28363         * modules/iconv-h: New file.
28364         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
28365         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
28366         (configure.ac): Remove gl_ICONV_H.
28367         (Makefile.am): Remove rule for iconv.h.
28368
28369 2010-03-06  Bruno Haible  <bruno@clisp.org>
28370
28371         More consistent naming of *.m4 files.
28372         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
28373         * modules/wctype (Files): Update.
28374
28375         More consistent naming of *.m4 files.
28376         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
28377         * modules/wchar (Files): Update.
28378
28379 2010-03-06  Jim Meyering  <meyering@redhat.com>
28380
28381         euidaccess: relax license to LGPLv2+
28382         * modules/euidaccess (License): Relax to LGPLv2+.
28383
28384 2010-03-06  Bruno Haible  <bruno@clisp.org>
28385
28386         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
28387         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
28388         (Makefile.am): Augment lib_SOURCES instead.
28389
28390 2010-03-04  Jim Meyering  <meyering@redhat.com>
28391
28392         utime: remove obsolete module
28393         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
28394         unnecessary for years, and has been marked as obsolete for 10 months.
28395         * modules/utime: Remove file.
28396         * lib/utime.c: Remove file.
28397         * m4/utime.m4: Remove file.
28398         * m4/utimes-null.m4: Remove file.
28399         * doc/posix-functions/utime.texi (utime): Remove reference to
28400         the module.  Move the sole "fixed by gnulib" item into the
28401         "problems not fixed by Gnulib" list.
28402         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
28403
28404 2010-03-05  Simon Josefsson  <simon@josefsson.org>
28405
28406         * modules/exit (License): Relax license to LGPLv2+.
28407         (Status): Mark as obsolete.
28408         * NEWS: Mention deprecated 'exit' module.
28409         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
28410         of now obsolete 'exit'.
28411
28412 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28413
28414         fts-lgpl: remove unused module
28415         * modules/fts-lgpl: Remove.
28416         * MODULES.html.sh (func_all_modules): Adjust.
28417         * check-module (find_included_lib_files): Adjust.
28418         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
28419
28420 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
28421
28422         copy-acl: enhance Solaris ACL error handling
28423         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
28424         * lib/set-mode-acl.c (qset_acl): Likewise.
28425
28426 2010-03-02  Bruno Haible  <bruno@clisp.org>
28427
28428         spawn: Don't override the system defined values on FreeBSD 8.
28429         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
28430         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
28431         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
28432         if HAVE_POSIX_SPAWN is 1.
28433         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
28434
28435 2010-03-01  Bruno Haible  <bruno@clisp.org>
28436
28437         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
28438         regarding Automake.
28439
28440 2010-02-25  Bruno Haible  <bruno@clisp.org>
28441
28442         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
28443         * gnulib-tool: Define 'echo' as a function only before the ksh alias
28444         setting, not afterwards.
28445         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
28446
28447 2010-02-24  Eric Blake  <eblake@redhat.com>
28448
28449         bootstrap, git-version-gen: use timestamp
28450         * build-aux/git-version-gen (scriptversion): Force UTC.
28451         * build-aux/bootstrap (scriptversion): New variable.
28452
28453         bootstrap: allow older git
28454         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
28455         older than 1.6.4.  Requested by the libvirt project.
28456
28457 2010-02-23  Eric Blake  <eblake@redhat.com>
28458
28459         warn-on-use: work with old autoconf
28460         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
28461         AS_VAR semantics of autoconf 2.60.
28462         Reported by Bruno Haible.
28463
28464         bootstrap: improve some comments
28465         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
28466         clarification comments.
28467
28468         gettimeofday: provide correct function
28469         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
28470         when replacement is declared, otherwise provide gettimeofday.
28471         Reported by Michael Goffioul.
28472
28473 2010-02-23  Jim Meyering  <meyering@redhat.com>
28474
28475         lib-ignore: relax license to "unlimited", not LGPLv2+
28476         * modules/lib-ignore (License): Relax to "unlimited".
28477
28478 2010-02-23  Jim Meyering  <meyering@redhat.com>
28479
28480         lib-ignore: relax license to LGPLv2+
28481         * modules/lib-ignore (License): Relax to LGPLv2+.
28482
28483 2010-02-22  Eric Blake  <eblake@redhat.com>
28484
28485         lseek: avoid bash 3.2 broken pipe bug
28486         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
28487         warning from bash 3.2.
28488         Reported by Ben Pfaff, with analysis from Bruno Haible.
28489
28490         bootstrap: support non-FSF copyright holder
28491         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
28492         bootstrap.conf override of COPYRIGHT_HOLDER.
28493         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
28494
28495         bootstrap: interoperate with gettext 0.14.1
28496         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
28497
28498         bootstrap: allow for alternate submodule location
28499         * build-aux/bootstrap (gnulib_path): New variable; use instead of
28500         hardcoding submodule location.
28501         (gnulib_mk): Allow direct use of Makefile.am.
28502
28503         bootstrap: use GNULIB_SRCDIR to reduce disk usage
28504         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
28505         rather than reconfiguring where the submodule points.
28506
28507         gettimeofday: restore support for platforms that lack function
28508         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
28509         replacement if function is missing.
28510         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
28511         * modules/sys_time (Makefile.am): Substitute it.
28512         * lib/sys_time.in.h (gettimeofday): Check it.
28513         Reported by Michael Goffioul.
28514
28515 2010-02-21  Bruno Haible  <bruno@clisp.org>
28516
28517         * lib/stdio.in.h (obstack_printf): Fix typo.
28518
28519 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
28520
28521         vc-list-files: use bzr ls's -R option
28522         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
28523         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
28524
28525 2010-02-21  Jim Meyering  <meyering@redhat.com>
28526
28527         init.sh: fix EXEEXT shims to work also for names like test-prog
28528         * tests/init.sh: Re-exec a better shell, when needed.
28529         If the current shell lacks support for posix $(...), an init.sh-using
28530         test will now try to find a shell that supports that.  If EXEEXT is
28531         nonempty, we also require support for hyphen-in-alias-name and shell
28532         substitutions like ${var#glob}.  Failure to find such a shell results
28533         in a skipped test.
28534
28535 2010-02-21  Bruno Haible  <bruno@clisp.org>
28536
28537         Really work around around "broken pipe" error message from bash 3.2.
28538         * gnulib-tool (func_reset_sigpipe): Remove function.
28539         (echo): In bash 3.2, define to a function that uses printf.
28540         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
28541
28542 2010-02-20  Bruno Haible  <bruno@clisp.org>
28543
28544         Restore support for automake 1.9.6 with autoconf 2.61.
28545         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
28546         Reported by James Youngman <jay@gnu.org>.
28547
28548 2010-02-20  Bruno Haible  <bruno@clisp.org>
28549
28550         Improve *printf warning condition.
28551         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
28552         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
28553         and the function is overridden due to SIGPIPE emulation.
28554
28555 2010-02-20  Bruno Haible  <bruno@clisp.org>
28556
28557         * lib/stdio.in.h: Tweak comments.
28558
28559 2010-02-19  Bruno Haible  <bruno@clisp.org>
28560
28561         Make it easier to find modules. New gnulib-tool option '--find'.
28562         * gnulib-tool: New option --find.
28563         (func_usage): Document it.
28564         (func_sanitize_modulelist): New function, extracted from
28565         func_all_modules.
28566         (func_all_modules): Invoke it.
28567         * doc/gnulib-tool.texi (Which modules?): New node.
28568
28569 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
28570
28571         * lib/sys_select.in.h: Provide select replacement even if
28572         sys/select.h exists on a system, for Interix.
28573
28574 2010-02-18  Jim Meyering  <meyering@redhat.com>
28575
28576         init.sh: don't use $(...) just yet
28577         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
28578         to accommodate e.g., Solaris' /bin/sh.
28579
28580 2010-02-17  Bruno Haible  <bruno@clisp.org>
28581
28582         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
28583         Reported by Ludovic Courtès <ludo@gnu.org>.
28584
28585 2010-02-16  Simon Josefsson  <simon@josefsson.org>
28586
28587         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
28588         linking with -lintl.
28589
28590 2010-02-17  Simon Josefsson  <simon@josefsson.org>
28591
28592         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
28593         if not provided by the system's netdb.h.  Reported by
28594         ludo@gnu.org (Ludovic Courtès).
28595
28596 2010-02-15  Jim Meyering  <meyering@redhat.com>
28597
28598         init.sh: improve portability and efficiency
28599         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
28600         "dummy" in a for loop.
28601         Use '!', not '^' to select the complement of a character set used
28602         in a "case" statement.
28603         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
28604         Suggestions from Eric Blake.
28605
28606         init.sh: automatically accommodate programs with the .exe suffix
28607         Automatically arrange for an invocation of "prog" to execute the
28608         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
28609         may use the simpler "prog", yet still work when built on a system
28610         that requires specifying the added suffix.
28611         Do this by constructing a function named "prog" that invokes
28612         "prog.exe" for each .exe file in selected directories.
28613         * tests/init.sh (find_exe_basenames_): New function.
28614         (create_exe_shim_functions_): New function.
28615         (path_prepend_): Use it.
28616
28617         maint.mk: mark syntax-check sc_*.m rules as .PHONY
28618         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
28619         "make -t syntax-check" doesn't create a ton of sc_*.m files.
28620
28621 2010-02-14  Jim Meyering  <meyering@redhat.com>
28622
28623         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
28624         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
28625         (sc_prohibit_hash_pjw_without_use): New rule.
28626
28627         maint.mk: allow the default upload destination dir to be overridden
28628         * top/maint.mk (upload_dest_dir_): Define with a default that
28629         preserves the status quo.
28630         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
28631         Reported by Peter Simons.
28632
28633         maint.mk: prohibit inclusion of "hash.h" without_use
28634         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
28635
28636 2010-02-10  Jim Meyering  <meyering@redhat.com>
28637
28638         maint.mk: prohibit inclusion of "ignore-value.h" without_use
28639         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
28640
28641 2010-02-09  Eric Blake  <ebb9@byu.net>
28642         and Bruno Haible  <bruno@clisp.org>
28643
28644         obstack-printf-posix: ensure declaration
28645         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
28646         extracted from gl_FUNC_OBSTACK_PRINTF.
28647         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
28648         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28649         Likewise.
28650         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
28651         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
28652         0.
28653
28654 2010-02-08  Bruno Haible  <bruno@clisp.org>
28655
28656         gnulib-tool: Fix typo in 2010-02-07 commit.
28657         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
28658         Reported by Eric Blake.
28659
28660 2010-02-07  Bruno Haible  <bruno@clisp.org>
28661
28662         gnulib-tool: Fix up caching patches.
28663         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
28664         option --no-cache. Use associative arrays when supported by the shell.
28665         (sed_comments): New variable.
28666         (modcache): Renamed from do_cache.
28667         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
28668         abbreviate unnecessarily.
28669         (have_associative): New variable.
28670         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
28671         way also for ksh and zsh.
28672         (func_init_sed_convert_to_cache_statements): New function, extracted
28673         from func_cache_lookup_module. Add support for associative arrays.
28674         Don't set the c_MODULE_cached variable here. Ignore all lines before
28675         the first field header. Remove only the final newline, not all trailing
28676         newlines. Support empty fields correctly. Limit the use of 'eval' to
28677         assignments.
28678         (func_get_description, func_get_status, func_get_notice,
28679         func_get_applicability, func_get_filelist, func_get_dependencies,
28680         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
28681         func_get_automake_snippet, func_get_include_directive,
28682         func_get_link_directive, func_get_license, func_get_maintainer):
28683         Update documentation. List the unoptimized code first. Add support for
28684         associative arrays. Limit the use of 'eval' to assignments.
28685         (func_get_applicability): Undo stylistic pessimisations.
28686         (func_get_automake_snippet, func_get_include_directive): Reduce code
28687         duplication.
28688         (func_modules_transitive_closure, func_modules_add_dummy,
28689         func_modules_notice, func_modules_to_filelist, func_add_file,
28690         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
28691         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
28692         func_create_testdir, func_create_megatestdir): Update documentation.
28693
28694 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28695
28696         * gnulib-tool (func_cache_lookup_module): Store the module name
28697         belonging to the cache variable; error out if two different
28698         module names map to the same cache variable name.
28699
28700 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28701
28702         gnulib-tool: Make caching optional.
28703         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
28704         Update matching short versions of --no-changelog.
28705         (func_usage): Update.
28706         (sed_extract_cache_prog): Renamed from ...
28707         (sed_extract_prog): ... this; revert to old extraction script.
28708         (func_get_description, func_get_status)
28709         (func_get_notice, func_get_applicability, func_get_filelist)
28710         (func_get_dependencies, func_get_autoconf_early_snippet)
28711         (func_get_autoconf_snippet, func_get_automake_snippet)
28712         (func_get_include_directive, func_get_link_directive)
28713         (func_get_license, func_get_maintainer): If $do_cache is false,
28714         use old, non-caching extraction scripts.
28715         Suggestion by Bruno Haible.
28716
28717 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28718
28719         gnulib-tool: cache module metainformation.
28720         * gnulib-tool (sed_extract_prog): Match newline before each
28721         header, and rewrite header to a shell variable suffix.
28722         (func_cache_var, func_cache_lookup_module): New functions,
28723         to turn a module name into a cache variable prefix, and to
28724         look up and cache module metainformation.
28725         (func_get_description, func_get_status)
28726         (func_get_notice, func_get_applicability, func_get_filelist)
28727         (func_get_dependencies, func_get_autoconf_early_snippet)
28728         (func_get_autoconf_snippet, func_get_automake_snippet)
28729         (func_get_include_directive, func_get_link_directive)
28730         (func_get_license, func_get_maintainer): Use
28731         func_cache_lookup_module.
28732
28733 2010-02-07  Bruno Haible  <bruno@clisp.org>
28734
28735         fnctl: Fix missing dependency.
28736         * modules/fcntl (Depends-on): Add getdtablesize.
28737         Reported by John W. Eaton <jwe@gnu.org>.
28738
28739 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28740
28741         Argp: fix recognition of short alias options.
28742
28743         * lib/argp-parse.c (convert_options): Fix improper use of
28744         `|' between character values.
28745         * tests/test-argp.c (group1_option): New alias option
28746         --read (-r).
28747         (group1_parser): Special handling for 'r'.
28748         (test15): New test case.
28749         (test_fun): Add test15.
28750         * tests/test-argp-2.sh: Update expected --help and --usage
28751         outputs.
28752
28753 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28754
28755         * tests/test-argp.c: Fix indentation.
28756
28757 2010-02-04  Eric Blake  <ebb9@byu.net>
28758
28759         gettimeofday: expose type of second argument
28760         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
28761         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
28762         * tests/test-gettimeofday.c: Use it to silence warning.
28763         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
28764         the issue.
28765
28766 2010-02-03  Jim Meyering  <meyering@redhat.com>
28767
28768         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
28769         * lib/regcomp.c (TYPE_SIGNED): Define.
28770         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
28771
28772         regcomp.c: avoid a new -Wshadow warning
28773         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
28774
28775 2010-02-01  Jim Meyering  <meyering@redhat.com>
28776
28777         removing useless parentheses in cpp #define directives
28778         For motivation, see commit c0221df4, "define STREQ(a,b)
28779         consistently, removing useless parentheses"
28780         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
28781         * lib/mountlist.c (MNT_IGNORE): Likewise.
28782         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
28783
28784 2010-02-01  Eric Blake  <ebb9@byu.net>
28785
28786         sys_time: use link-warning
28787         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
28788         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
28789         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
28790         * modules/sys_time (Depends-on): Add warn-on-use.
28791         (Makefile.am): Always build replacement.
28792         (configure.ac): Update substitutions.
28793         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
28794         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
28795         bother with SYS_TIME_H.
28796         * modules/gettimeofday (configure.ac): Declare indicator.
28797         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
28798         in use.
28799
28800         closein-tests: silence compiler warning
28801         * tests/test-closein.c (main): Ignore fread result.
28802         * modules/closein-tests (Depends-on): Add ignore-value.
28803
28804         tests: silence warning about system return
28805         * tests/test-areadlink-with-size.c (main): Ignore system result.
28806         * tests/test-areadlink.c (main): Likewise.
28807         * tests/test-areadlinkat-with-size.c (main): Likewise.
28808         * tests/test-areadlinkat.c (main): Likewise.
28809         * tests/test-canonicalize-lgpl.c (main): Likewise.
28810         * tests/test-canonicalize.c (main): Likewise.
28811         * tests/test-chown.c (main): Likewise.
28812         * tests/test-fchownat.c (main): Likewise.
28813         * tests/test-fdutimensat.c (main): Likewise.
28814         * tests/test-fstatat.c (main): Likewise.
28815         * tests/test-futimens.c (main): Likewise.
28816         * tests/test-lchown.c (main): Likewise.
28817         * tests/test-link.c (main): Likewise.
28818         * tests/test-linkat.c (main): Likewise.
28819         * tests/test-lstat.c (main): Likewise.
28820         * tests/test-mkdir.c (main): Likewise.
28821         * tests/test-mkdirat.c (main): Likewise.
28822         * tests/test-mkfifo.c (main): Likewise.
28823         * tests/test-mkfifoat.c (main): Likewise.
28824         * tests/test-mknod.c (main): Likewise.
28825         * tests/test-readlink.c (main): Likewise.
28826         * tests/test-remove.c (main): Likewise.
28827         * tests/test-rename.c (main): Likewise.
28828         * tests/test-renameat.c (main): Likewise.
28829         * tests/test-rmdir.c (main): Likewise.
28830         * tests/test-symlink.c (main): Likewise.
28831         * tests/test-symlinkat.c (main): Likewise.
28832         * tests/test-unlink.c (main): Likewise.
28833         * tests/test-unlinkat.c (main): Likewise.
28834         * tests/test-utimens.c (main): Likewise.
28835         * tests/test-utimensat.c (main): Likewise.
28836         * modules/areadlink-tests (Depends-on): Add ignore-value.
28837         * modules/areadlink-with-size-tests (Depends-on): Likewise.
28838         * modules/areadlinkat-tests (Depends-on): Likewise.
28839         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
28840         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28841         * modules/canonicalize-tests (Depends-on): Likewise.
28842         * modules/chown-tests (Depends-on): Likewise.
28843         * modules/fdutimensat-tests (Depends-on): Likewise.
28844         * modules/futimens-tests (Depends-on): Likewise.
28845         * modules/lchown-tests (Depends-on): Likewise.
28846         * modules/link-tests (Depends-on): Likewise.
28847         * modules/linkat-tests (Depends-on): Likewise.
28848         * modules/lstat-tests (Depends-on): Likewise.
28849         * modules/mkdir-tests (Depends-on): Likewise.
28850         * modules/mkfifo-tests (Depends-on): Likewise.
28851         * modules/mkfifoat-tests (Depends-on): Likewise.
28852         * modules/mknod-tests (Depends-on): Likewise.
28853         * modules/openat-tests (Depends-on): Likewise.
28854         * modules/readlink-tests (Depends-on): Likewise.
28855         * modules/remove-tests (Depends-on): Likewise.
28856         * modules/rename-tests (Depends-on): Likewise.
28857         * modules/renameat-tests (Depends-on): Likewise.
28858         * modules/rmdir-tests (Depends-on): Likewise.
28859         * modules/symlink-tests (Depends-on): Likewise.
28860         * modules/symlinkat-tests (Depends-on): Likewise.
28861         * modules/unlink-tests (Depends-on): Likewise.
28862         * modules/utimens-tests (Depends-on): Likewise.
28863         * modules/utimensat-tests (Depends-on): Likewise.
28864
28865 2010-01-31  Bruno Haible  <bruno@clisp.org>
28866
28867         Perform the same test for many <math.h> functions.
28868         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
28869         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
28870         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
28871         of gl_MATHFUNC.
28872         * modules/acos (configure.ac): Likewise.
28873         * modules/asin (configure.ac): Likewise.
28874         * modules/atan (configure.ac): Likewise.
28875         * modules/atan2 (configure.ac): Likewise.
28876         * modules/cbrt (configure.ac): Likewise.
28877         * modules/copysign (configure.ac): Likewise.
28878         * modules/cos (configure.ac): Likewise.
28879         * modules/cosh (configure.ac): Likewise.
28880         * modules/erf (configure.ac): Likewise.
28881         * modules/erfc (configure.ac): Likewise.
28882         * modules/exp (configure.ac): Likewise.
28883         * modules/fmod (configure.ac): Likewise.
28884         * modules/hypot (configure.ac): Likewise.
28885         * modules/j0 (configure.ac): Likewise.
28886         * modules/j1 (configure.ac): Likewise.
28887         * modules/jn (configure.ac): Likewise.
28888         * modules/lgamma (configure.ac): Likewise.
28889         * modules/log (configure.ac): Likewise.
28890         * modules/log10 (configure.ac): Likewise.
28891         * modules/log1p (configure.ac): Likewise.
28892         * modules/pow (configure.ac): Likewise.
28893         * modules/remainder (configure.ac): Likewise.
28894         * modules/sin (configure.ac): Likewise.
28895         * modules/sinh (configure.ac): Likewise.
28896         * modules/tan (configure.ac): Likewise.
28897         * modules/tanh (configure.ac): Likewise.
28898         * modules/y0 (configure.ac): Likewise.
28899         * modules/y1 (configure.ac): Likewise.
28900         * modules/yn (configure.ac): Likewise.
28901         Suggested by Paolo Bonzini.
28902
28903 2010-01-31  Bruno Haible  <bruno@clisp.org>
28904
28905         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
28906
28907 2010-01-31  Bruno Haible  <bruno@clisp.org>
28908
28909         Work around getdelim() bug on FreeBSD 8.0.
28910         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
28911         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
28912         not work.
28913         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
28914         is 1.
28915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
28916         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
28917         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
28918         a non-zero size.
28919         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
28920
28921 2010-01-31  Bruno Haible  <bruno@clisp.org>
28922
28923         Work around getline() bug on FreeBSD 8.0.
28924         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
28925         and a non-zero size.
28926         * tests/test-getline.c (main): Likewise.
28927         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
28928         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
28929
28930 2010-01-28  Eric Blake  <ebb9@byu.net>
28931
28932         regex: fix build failure
28933         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
28934         platforms.
28935
28936 2010-01-28  Jim Meyering  <meyering@redhat.com>
28937
28938         regex: do not ignore memory allocation failure
28939         * lib/regex_internal.c (create_cd_newstate): Detect
28940         re_node_set_init_copy failure.   Extracted from glibc commit
28941         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28942
28943         regex: sync more white-space changes from libc
28944         * lib/regex_internal.c: White-space only changes.
28945         * lib/regexec.c: Likewise.
28946
28947         regex: add many uses of __attribute_warn_unused_result__
28948         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
28949         * lib/regexec.c: Likewise.
28950         Extracted from a messy glibc commit.
28951
28952         regcomp.c: spelling and merge-artifact from glibc
28953         * lib/regcomp.c: Merge remainder of glibc's
28954         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28955
28956         regcomp.c: sync white-space changes from glibc
28957         * lib/regcomp.c: Merge to accommodate white space
28958         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28959
28960         regcomp.c: do not ignore internal return values
28961         * lib/regcomp.c: Do not ignore internal return values.
28962         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
28963         but without its white-space changes and spelling fixes.
28964
28965         regex_internal.h: define __attribute_warn_unused_result__
28966         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
28967
28968         maint: add a syntax-check rule to check for vulnerable Makefile.in
28969         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
28970
28971 2010-01-27  Jim Meyering  <meyering@redhat.com>
28972
28973         ncftpput-ftp: clean up spaces
28974         * build-aux/ncftpput-ftp: Make Copyright line consistent.
28975         Remove trailing blanks.
28976
28977 2010-01-27  Simon Josefsson  <simon@josefsson.org>
28978
28979         * build-aux/git-version-gen: Fix copyright statement.
28980         * build-aux/gnupload: Likewise.
28981         * tests/test-arcfour.c: Likewise.
28982         * tests/test-arctwo.c: Likewise.
28983         * tests/test-count-one-bits.c: Likewise.
28984         * tests/test-crc.c: Likewise.
28985         * tests/test-des.c: Likewise.
28986         * tests/test-gc-arcfour.c: Likewise.
28987         * tests/test-gc-arctwo.c: Likewise.
28988         * tests/test-gc-des.c: Likewise.
28989         * tests/test-gc-hmac-md5.c: Likewise.
28990         * tests/test-gc-hmac-sha1.c: Likewise.
28991         * tests/test-gc-md2.c: Likewise.
28992         * tests/test-gc-md4.c: Likewise.
28993         * tests/test-gc-md5.c: Likewise.
28994         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28995         * tests/test-gc-rijndael.c: Likewise.
28996         * tests/test-gc-sha1.c: Likewise.
28997         * tests/test-gc.c: Likewise.
28998         * tests/test-gethostname.c: Likewise.
28999         * tests/test-gettimeofday.c: Likewise.
29000         * tests/test-hash.c: Likewise.
29001         * tests/test-hmac-md5.c: Likewise.
29002         * tests/test-hmac-sha1.c: Likewise.
29003         * tests/test-md2.c: Likewise.
29004         * tests/test-md4.c: Likewise.
29005         * tests/test-md5.c: Likewise.
29006         * tests/test-memchr.c: Likewise.
29007         * tests/test-memchr2.c: Likewise.
29008         * tests/test-memcmp.c: Likewise.
29009         * tests/test-memmem.c: Likewise.
29010         * tests/test-memrchr.c: Likewise.
29011         * tests/test-rawmemchr.c: Likewise.
29012         * tests/test-read-file.c: Likewise.
29013         * tests/test-rijndael.c: Likewise.
29014         * tests/test-sockets.c: Likewise.
29015         * tests/test-strchrnul.c: Likewise.
29016         * tests/test-strstr.c: Likewise.
29017         * tests/test-strtod.c: Likewise.
29018         * build-aux/ncftpput-ftp: Likewise.
29019
29020 2010-01-26  Eric Blake  <ebb9@byu.net>
29021
29022         ignore-value: update recommended header name
29023         * modules/ignore-value (Include): Only use <> for headers that
29024         exist in glibc.
29025
29026 2010-01-26  Jim Meyering  <meyering@redhat.com>
29027
29028         test-userspec.c: avoid compiler warnings
29029         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
29030         and "initialization discards qualifiers..." warnings.
29031         Put the first "uid" in its own scope, and make char* members "const".
29032
29033 2010-01-25  Bruno Haible  <bruno@clisp.org>
29034
29035         gnulib-tool: Make warning diagnostics consistent.
29036         * gnulib-tool (func_warning): New function.
29037         Use it everywhere where gnulib-tool produces output to stderr and it is
29038         not a fatal error.
29039
29040 2010-01-25  Bruno Haible  <bruno@clisp.org>
29041
29042         Fix test dependencies.
29043         * modules/xstrtol-tests (Depends-on): Add inttypes.
29044         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
29045
29046 2010-01-25 Pádraig Brady <P@draigBrady.com>
29047
29048         syntax-check: detect incorrect boolean macro values in config.h
29049         * modules/maintainer-makefile (configure.ac): Parameterize the location
29050         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
29051         The logic is from Eric Blake and the location indicated by Jim Meyering.
29052         Note the more natural CONFIG_HEADER name is prohibited by automake
29053         for backwards compatibility reasons.
29054         * top/maint.mk (sc_Wundef_boolean): New rule.
29055
29056 2010-01-25  Jim Meyering  <meyering@redhat.com>
29057
29058         bootstrap: detect MacOS 10.6's shasum, too
29059         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
29060         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
29061
29062 2010-01-23  Jim Meyering  <meyering@redhat.com>
29063
29064         xstrtoll: new module
29065         * modules/xstrtoll: New file.
29066         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
29067         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
29068         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
29069         ./configure fails if you use this module and lack "long long".
29070         * modules/xstrtoll-tests: New module.
29071         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
29072         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
29073         new init.sh-based test framework.
29074
29075 2010-01-24  Bruno Haible  <bruno@clisp.org>
29076
29077         Tests for module 'yn'.
29078         * modules/yn-tests: New file.
29079         * tests/test-yn.c: New file.
29080
29081         Tests for module 'y1'.
29082         * modules/y1-tests: New file.
29083         * tests/test-y1.c: New file.
29084
29085         Tests for module 'y0'.
29086         * modules/y0-tests: New file.
29087         * tests/test-y0.c: New file.
29088
29089         Tests for module 'tanh'.
29090         * modules/tanh-tests: New file.
29091         * tests/test-tanh.c: New file.
29092
29093         Tests for module 'tan'.
29094         * modules/tan-tests: New file.
29095         * tests/test-tan.c: New file.
29096
29097         Tests for module 'sqrt'.
29098         * modules/sqrt-tests: New file.
29099         * tests/test-sqrt.c: New file.
29100
29101         Tests for module 'sinh'.
29102         * modules/sinh-tests: New file.
29103         * tests/test-sinh.c: New file.
29104
29105         Tests for module 'sin'.
29106         * modules/sin-tests: New file.
29107         * tests/test-sin.c: New file.
29108
29109         Tests for module 'rint'.
29110         * modules/rint-tests: New file.
29111         * tests/test-rint.c: New file.
29112
29113         Tests for module 'remainder'.
29114         * modules/remainder-tests: New file.
29115         * tests/test-remainder.c: New file.
29116
29117         Tests for module 'pow'.
29118         * modules/pow-tests: New file.
29119         * tests/test-pow.c: New file.
29120
29121         Tests for module 'nextafter'.
29122         * modules/nextafter-tests: New file.
29123         * tests/test-nextafter.c: New file.
29124
29125         Tests for module 'modf'.
29126         * modules/modf-tests: New file.
29127         * tests/test-modf.c: New file.
29128
29129         Tests for module 'logb'.
29130         * modules/logb-tests: New file.
29131         * tests/test-logb.c: New file.
29132
29133         Tests for module 'log1p'.
29134         * modules/log1p-tests: New file.
29135         * tests/test-log1p.c: New file.
29136
29137         Tests for module 'log10'.
29138         * modules/log10-tests: New file.
29139         * tests/test-log10.c: New file.
29140
29141         Tests for module 'log'.
29142         * modules/log-tests: New file.
29143         * tests/test-log.c: New file.
29144
29145         Tests for module 'lgamma'.
29146         * modules/lgamma-tests: New file.
29147         * tests/test-lgamma.c: New file.
29148
29149         Tests for module 'ldexp'.
29150         * modules/ldexp-tests: New file.
29151         * tests/test-ldexp.c: New file.
29152
29153         Tests for module 'jn'.
29154         * modules/jn-tests: New file.
29155         * tests/test-jn.c: New file.
29156
29157         Tests for module 'j1'.
29158         * modules/j1-tests: New file.
29159         * tests/test-j1.c: New file.
29160
29161         Tests for module 'j0'.
29162         * modules/j0-tests: New file.
29163         * tests/test-j0.c: New file.
29164
29165         Tests for module 'hypot'.
29166         * modules/hypot-tests: New file.
29167         * tests/test-hypot.c: New file.
29168
29169         Tests for module 'fmod'.
29170         * modules/fmod-tests: New file.
29171         * tests/test-fmod.c: New file.
29172
29173         Tests for module 'fabs'.
29174         * modules/fabs-tests: New file.
29175         * tests/test-fabs.c: New file.
29176
29177         Tests for module 'exp'.
29178         * modules/exp-tests: New file.
29179         * tests/test-exp.c: New file.
29180
29181         Tests for module 'erfc'.
29182         * modules/erfc-tests: New file.
29183         * tests/test-erfc.c: New file.
29184
29185         Tests for module 'erf'.
29186         * modules/erf-tests: New file.
29187         * tests/test-erf.c: New file.
29188
29189         Tests for module 'cosh'.
29190         * modules/cosh-tests: New file.
29191         * tests/test-cosh.c: New file.
29192
29193         Tests for module 'cos'.
29194         * modules/cos-tests: New file.
29195         * tests/test-cos.c: New file.
29196
29197         Tests for module 'copysign'.
29198         * modules/copysign-tests: New file.
29199         * tests/test-copysign.c: New file.
29200
29201         Tests for module 'cbrt'.
29202         * modules/cbrt-tests: New file.
29203         * tests/test-cbrt.c: New file.
29204
29205         Tests for module 'atan2'.
29206         * modules/atan2-tests: New file.
29207         * tests/test-atan2.c: New file.
29208
29209         Tests for module 'atan'.
29210         * modules/atan-tests: New file.
29211         * tests/test-atan.c: New file.
29212
29213         Tests for module 'asin'.
29214         * modules/asin-tests: New file.
29215         * tests/test-asin.c: New file.
29216
29217         Tests for module 'acos'.
29218         * modules/acos-tests: New file.
29219         * tests/test-acos.c: New file.
29220
29221 2010-01-24  Bruno Haible  <bruno@clisp.org>
29222
29223         Fix tests for common <math.h> functions.
29224         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
29225         code snippet that references the function pointer, rather than merely
29226         calling the function. Substitute the FUNC_LIBM variable.
29227         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
29228         * modules/acos (configure.ac): Likewise.
29229         * modules/asin (configure.ac): Likewise.
29230         * modules/atan (configure.ac): Likewise.
29231         * modules/atan2 (configure.ac): Likewise.
29232         * modules/cbrt (configure.ac): Likewise.
29233         * modules/copysign (configure.ac): Likewise.
29234         * modules/cos (configure.ac): Likewise.
29235         * modules/cosh (configure.ac): Likewise.
29236         * modules/erf (configure.ac): Likewise.
29237         * modules/erfc (configure.ac): Likewise.
29238         * modules/exp (configure.ac): Likewise.
29239         * modules/fabs (configure.ac): Likewise.
29240         * modules/fmod (configure.ac): Likewise.
29241         * modules/hypot (configure.ac): Likewise.
29242         * modules/j0 (configure.ac): Likewise.
29243         * modules/j1 (configure.ac): Likewise.
29244         * modules/jn (configure.ac): Likewise.
29245         * modules/ldexp (configure.ac): Likewise.
29246         * modules/lgamma (configure.ac): Likewise.
29247         * modules/log (configure.ac): Likewise.
29248         * modules/log10 (configure.ac): Likewise.
29249         * modules/log1p (configure.ac): Likewise.
29250         * modules/logb (configure.ac): Likewise.
29251         * modules/modf (configure.ac): Likewise.
29252         * modules/nextafter (configure.ac): Likewise.
29253         * modules/pow (configure.ac): Likewise.
29254         * modules/remainder (configure.ac): Likewise.
29255         * modules/rint (configure.ac): Likewise.
29256         * modules/sin (configure.ac): Likewise.
29257         * modules/sinh (configure.ac): Likewise.
29258         * modules/tan (configure.ac): Likewise.
29259         * modules/tanh (configure.ac): Likewise.
29260         * modules/y0 (configure.ac): Likewise.
29261         * modules/y1 (configure.ac): Likewise.
29262         * modules/yn (configure.ac): Likewise.
29263
29264 2010-01-24  Bruno Haible  <bruno@clisp.org>
29265
29266         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
29267         * tests/test-acosl.c (x): New variable.
29268         (main): Store argument in x and fetch it from x.
29269         * tests/test-asinl.c (x): New variable.
29270         (main): Store argument in x and fetch it from x.
29271         * tests/test-atanl.c (x): New variable.
29272         (main): Store argument in x and fetch it from x.
29273         * tests/test-cosl.c (x): New variable.
29274         (main): Store argument in x and fetch it from x.
29275         * tests/test-expl.c (x): New variable.
29276         (main): Store argument in x and fetch it from x.
29277         * tests/test-logl.c (x): New variable.
29278         (main): Store argument in x and fetch it from x.
29279         * tests/test-sinl.c (x): New variable.
29280         (main): Store argument in x and fetch it from x.
29281         * tests/test-sqrtl.c (x): New variable.
29282         (main): Store argument in x and fetch it from x.
29283         * tests/test-tanl.c (x): New variable.
29284         (main): Store argument in x and fetch it from x.
29285
29286 2010-01-24  Bruno Haible  <bruno@clisp.org>
29287
29288         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
29289         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
29290         assignments to the initial TESTS_ENVIRONMENT.
29291         * doc/gnulib.texi (Unit test modules): Document it.
29292         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
29293         TESTS_ENVIRONMENT.
29294         * modules/btowc-tests (Makefile.am): Likewise.
29295         * modules/c-stack-tests (Makefile.am): Likewise.
29296         * modules/c-strcase-tests (Makefile.am): Likewise.
29297         * modules/copy-file-tests (Makefile.am): Likewise.
29298         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
29299         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
29300         * modules/mbrtowc-tests (Makefile.am): Likewise.
29301         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29302         * modules/mbscasestr-tests (Makefile.am): Likewise.
29303         * modules/mbschr-tests (Makefile.am): Likewise.
29304         * modules/mbscspn-tests (Makefile.am): Likewise.
29305         * modules/mbsinit-tests (Makefile.am): Likewise.
29306         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29307         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
29308         * modules/mbspbrk-tests (Makefile.am): Likewise.
29309         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29310         * modules/mbsrchr-tests (Makefile.am): Likewise.
29311         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
29312         * modules/mbsspn-tests (Makefile.am): Likewise.
29313         * modules/mbsstr-tests (Makefile.am): Likewise.
29314         * modules/nl_langinfo-tests (Makefile.am): Likewise.
29315         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
29316         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29317         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29318         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29319         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29320         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
29321         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29322         * modules/wcrtomb-tests (Makefile.am): Likewise.
29323         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
29324         * modules/wcsrtombs-tests (Makefile.am): Likewise.
29325         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
29326         assignments from TESTS_ENVIRONMENT.
29327         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
29328         augmentation.
29329         * modules/argp-version-etc-tests (Makefile.am): Likewise.
29330         * modules/atexit-tests (Makefile.am): Likewise.
29331         * modules/binary-io-tests (Makefile.am): Likewise.
29332         * modules/closein-tests (Makefile.am): Likewise.
29333         * modules/dprintf-posix-tests (Makefile.am): Likewise.
29334         * modules/exclude-tests (Makefile.am): Likewise.
29335         * modules/fflush-tests (Makefile.am): Likewise.
29336         * modules/fpending-tests (Makefile.am): Likewise.
29337         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29338         * modules/freadahead-tests (Makefile.am): Likewise.
29339         * modules/freadptr-tests (Makefile.am): Likewise.
29340         * modules/freadseek-tests (Makefile.am): Likewise.
29341         * modules/fseek-tests (Makefile.am): Likewise.
29342         * modules/fseeko-tests (Makefile.am): Likewise.
29343         * modules/ftell-tests (Makefile.am): Likewise.
29344         * modules/ftello-tests (Makefile.am): Likewise.
29345         * modules/idpriv-drop-tests (Makefile.am): Likewise.
29346         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
29347         * modules/lseek-tests (Makefile.am): Likewise.
29348         * modules/parse-duration-tests (Makefile.am): Likewise.
29349         * modules/perror-tests (Makefile.am): Likewise.
29350         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
29351         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
29352         * modules/pipe-tests (Makefile.am): Likewise.
29353         * modules/pread-tests (Makefile.am): Likewise.
29354         * modules/printf-posix-tests (Makefile.am): Likewise.
29355         * modules/select-tests (Makefile.am): Likewise.
29356         * modules/sigpipe-tests (Makefile.am): Likewise.
29357         * modules/tsearch-tests (Makefile.am): Likewise.
29358         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
29359         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
29360         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29361         * modules/uniwidth/width-tests (Makefile.am): Likewise.
29362         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
29363         * modules/version-etc-tests (Makefile.am): Likewise.
29364         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29365         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29366         * modules/xalloc-die-tests (Makefile.am): Likewise.
29367         * modules/xprintf-posix-tests (Makefile.am): Likewise.
29368         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29369         * modules/xstrtol-tests (Makefile.am): Likewise.
29370         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29371         * modules/yesno-tests (Makefile.am): Likewise.
29372         Suggested by Jim Meyering.
29373
29374 2010-01-24  Bruno Haible  <bruno@clisp.org>
29375
29376         More documentation.
29377         * doc/gnulib.texi (Writing modules): New chapter.
29378         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
29379         the new chapter.
29380
29381 2010-01-24  Jim Meyering  <meyering@redhat.com>
29382
29383         maint.mk: do not prepend "./" after filtering
29384         * top/maint.mk (_prepend_srcdir_prefix): New variable
29385         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
29386         "./" when $(srcdir) is ".".
29387
29388         define STREQ(a,b) consistently, removing useless parentheses
29389         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
29390         since the only risk is that "a" or "b" contains an unparenthesized
29391         comma, but if either did that, STREQ would have 3 or more arguments.
29392         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
29393         * lib/fts.c (STREQ): Remove unnecessary parentheses.
29394         * lib/hash-triple.c (STREQ): Likewise.
29395         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
29396         * lib/getugroups.c (STREQ): Likewise.
29397
29398 2010-01-23  Jim Meyering  <meyering@redhat.com>
29399
29400         maint.mk: fix syntax-check in a non-srcdir build directory
29401         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
29402         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
29403
29404 2010-01-22  Jim Meyering  <meyering@redhat.com>
29405
29406         userspec: add unit tests
29407         * tests/test-userspec.c: New file.
29408         * modules/userspec-tests: Likewise.
29409
29410 2010-01-21  Jim Meyering  <meyering@redhat.com>
29411
29412         maint.mk: handle source file names containing "." robustly
29413         * top/maint.mk (_dot_escaped_srcdir): Define.
29414         (VC_LIST): Use it in LHS of sed substitution.
29415
29416 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
29417
29418         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
29419         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
29420         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
29421         from a non-srcdir build.
29422
29423 2010-01-20  Eric Blake  <ebb9@byu.net>
29424
29425         warn-on-use: use instead of link-warning
29426         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
29427         * modules/unistd (Depends-on, Makefile.am): Likewise.
29428         * modules/arpa_inet (Depends-on): Replace link-warning with
29429         warn-on-use.
29430         (Makefile.am): Update rules accordingly.
29431         * modules/ctype (Depends-on, Makefile.am): Likewise.
29432         * modules/dirent (Depends-on, Makefile.am): Likewise.
29433         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
29434         * modules/inttypes (Depends-on, Makefile.am): Likewise.
29435         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29436         * modules/locale (Depends-on, Makefile.am): Likewise.
29437         * modules/math (Depends-on, Makefile.am): Likewise.
29438         * modules/search (Depends-on, Makefile.am): Likewise.
29439         * modules/signal (Depends-on, Makefile.am): Likewise.
29440         * modules/spawn (Depends-on, Makefile.am): Likewise.
29441         * modules/stdlib (Depends-on, Makefile.am): Likewise.
29442         * modules/string (Depends-on, Makefile.am): Likewise.
29443         * modules/strings (Depends-on, Makefile.am): Likewise.
29444         * modules/sys_file (Depends-on, Makefile.am): Likewise.
29445         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
29446         * modules/sys_select (Depends-on, Makefile.am): Likewise.
29447         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
29448         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
29449         * modules/sys_times (Depends-on, Makefile.am): Likewise.
29450         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29451         * modules/wchar (Depends-on, Makefile.am): Likewise.
29452         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
29453         should be poisoned.
29454         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
29455         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
29456         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
29457         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29458         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29459         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29460         * m4/math_h.m4 (gl_MATH_H): Likewise.
29461         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29462         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29463         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29464         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
29465         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
29466         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
29467         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
29468         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
29469         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29470         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29471         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29472         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29473         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29474         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29475         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29476         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29477         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
29478         GL_LINK_WARNING.
29479         * lib/ctype.in.h: Likewise.
29480         * lib/dirent.in.h: Likewise.
29481         * lib/fcntl.in.h: Likewise.
29482         * lib/inttypes.in.h: Likewise.
29483         * lib/langinfo.in.h: Likewise.
29484         * lib/locale.in.h: Likewise.
29485         * lib/math.in.h: Likewise.
29486         * lib/search.in.h: Likewise.
29487         * lib/signal.in.h: Likewise.
29488         * lib/spawn.in.h: Likewise.
29489         * lib/stdio.in.h: Likewise.
29490         * lib/stdlib.in.h: Likewise.
29491         * lib/string.in.h: Likewise.
29492         * lib/strings.in.h: Likewise.
29493         * lib/sys_file.in.h: Likewise.
29494         * lib/sys_ioctl.in.h: Likewise.
29495         * lib/sys_select.in.h: Likewise.
29496         * lib/sys_socket.in.h: Likewise.
29497         * lib/sys_stat.in.h: Likewise.
29498         * lib/sys_times.in.h: Likewise.
29499         * lib/sys_utsname.in.h: Likewise.
29500         * lib/unistd.in.h: Likewise.
29501         * lib/wchar.in.h: Likewise.
29502
29503 2010-01-20  Bruno Haible  <bruno@clisp.org>
29504
29505         Avoid duplicate -lm.
29506         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
29507         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
29508         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
29509         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
29510         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
29511         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
29512         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
29513         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
29514         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
29515         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
29516         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
29517         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29518         Reported by Paolo Bonzini.
29519
29520 2010-01-19  Bruno Haible  <bruno@clisp.org>
29521
29522         langinfo, nl_langinfo: Relicense under LGPLv2+.
29523         * modules/langinfo (License): Change to LGPLv2+.
29524         * modules/nl_langinfo (License): Likewise.
29525         Patch by David Lutterkort <lutter@redhat.com>.
29526
29527 2010-01-19  Bruno Haible  <bruno@clisp.org>
29528
29529         Avoid compilation error with cc on OSF/1 5.1.
29530         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
29531         statement, not before.
29532         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29533
29534 2010-01-18  Bruno Haible  <bruno@clisp.org>
29535
29536         Avoid a link error due to the __printf__ symbol.
29537         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
29538         and 2.6.x.
29539         (__format__, __printf__): Remove definitions.
29540         * lib/argp-fmtstream.h: Likewise.
29541         * lib/argp.h: Likewise.
29542         * lib/error.h: Likewise.
29543         * lib/vasnprintf.h: Likewise.
29544         * lib/xprintf.h: Likewise.
29545         * lib/xvasprintf.h: Likewise.
29546         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29547
29548 2010-01-18  Bruno Haible  <bruno@clisp.org>
29549
29550         Tests for module 'tanl'.
29551         * modules/tanl-tests: New file.
29552         * tests/test-tanl.c: New file.
29553
29554         Tests for module 'sqrtl'.
29555         * modules/sqrtl-tests: New file.
29556         * tests/test-sqrtl.c: New file.
29557
29558         Tests for module 'sinl'.
29559         * modules/sinl-tests: New file.
29560         * tests/test-sinl.c: New file.
29561
29562         Tests for module 'logl'.
29563         * modules/logl-tests: New file.
29564         * tests/test-logl.c: New file.
29565
29566         Tests for module 'expl'.
29567         * modules/expl-tests: New file.
29568         * tests/test-expl.c: New file.
29569
29570         Tests for module 'cosl'.
29571         * modules/cosl-tests: New file.
29572         * tests/test-cosl.c: New file.
29573
29574         Tests for module 'atanl'.
29575         * modules/atanl-tests: New file.
29576         * tests/test-atanl.c: New file.
29577
29578         Tests for module 'asinl'.
29579         * modules/asinl-tests: New file.
29580         * tests/test-asinl.c: New file.
29581
29582         Tests for module 'acosl'.
29583         * modules/acosl-tests: New file.
29584         * tests/test-acosl.c: New file.
29585
29586         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29587         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
29588         tanl): Use the standard gnulib idiom.
29589         * lib/cosl.c: Don't include trigl.c and sincosl.c.
29590         * lib/sinl.c: Likewise.
29591         * lib/tanl.c: Don't include trigl.c.
29592         (kernel_tanl): Make static.
29593         * lib/sincosl.c: Include trigl.h first.
29594         * lib/trigl.c: Likewise.
29595         * m4/acosl.m4: New file.
29596         * m4/asinl.m4: New file.
29597         * m4/atanl.m4: New file.
29598         * m4/cosl.m4: New file.
29599         * m4/expl.m4: New file.
29600         * m4/logl.m4: New file.
29601         * m4/sinl.m4: New file.
29602         * m4/sqrtl.m4: New file.
29603         * m4/tanl.m4: New file.
29604         * m4/mathl.m4: Remove file.
29605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
29606         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29607         Don't initialize GNULIB_MATHL.
29608         * modules/acosl: New file.
29609         * modules/asinl: New file.
29610         * modules/atanl: New file.
29611         * modules/cosl: New file.
29612         * modules/expl: New file.
29613         * modules/logl: New file.
29614         * modules/sinl: New file.
29615         * modules/sqrtl: New file.
29616         * modules/tanl: New file.
29617         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
29618         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
29619         substitute GNULIB_MATHL.
29620         * modules/mathl: Rewritten.
29621         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
29622         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
29623         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
29624         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
29625         * doc/posix-functions/expl.texi: Mention the 'expl' module.
29626         * doc/posix-functions/logl.texi: Mention the 'logl' module.
29627         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
29628         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
29629         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
29630
29631 2010-01-18  Bruno Haible  <bruno@clisp.org>
29632
29633         sqrt: Make gl_FUNC_SQRT requirable.
29634         * m4/sqrt.m4: New file.
29635         * modules/sqrt (Files): Add it.
29636         (configure.ac): Invoke gl_FUNC_SQRT.
29637
29638 2010-01-18  Bruno Haible  <bruno@clisp.org>
29639
29640         New modules for common <math.h> functions.
29641         * m4/mathfunc.m4: New file.
29642         * modules/acos: New file.
29643         * modules/asin: New file.
29644         * modules/atan: New file.
29645         * modules/atan2: New file.
29646         * modules/cbrt: New file.
29647         * modules/copysign: New file.
29648         * modules/cos: New file.
29649         * modules/cosh: New file.
29650         * modules/erf: New file.
29651         * modules/erfc: New file.
29652         * modules/exp: New file.
29653         * modules/fabs: New file.
29654         * modules/fmod: New file.
29655         * modules/hypot: New file.
29656         * modules/j0: New file.
29657         * modules/j1: New file.
29658         * modules/jn: New file.
29659         * modules/ldexp: New file.
29660         * modules/lgamma: New file.
29661         * modules/log: New file.
29662         * modules/log10: New file.
29663         * modules/log1p: New file.
29664         * modules/logb: New file.
29665         * modules/modf: New file.
29666         * modules/nextafter: New file.
29667         * modules/pow: New file.
29668         * modules/remainder: New file.
29669         * modules/rint: New file.
29670         * modules/sin: New file.
29671         * modules/sinh: New file.
29672         * modules/sqrt: New file.
29673         * modules/tan: New file.
29674         * modules/tanh: New file.
29675         * modules/y0: New file.
29676         * modules/y1: New file.
29677         * modules/yn: New file.
29678         * doc/posix-functions/acos.texi: Mention the 'acos' module.
29679         * doc/posix-functions/asin.texi: Mention the 'asin' module.
29680         * doc/posix-functions/atan.texi: Mention the 'atan' module.
29681         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
29682         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
29683         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
29684         * doc/posix-functions/cos.texi: Mention the 'cos' module.
29685         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
29686         * doc/posix-functions/erf.texi: Mention the 'erf' module.
29687         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
29688         * doc/posix-functions/exp.texi: Mention the 'exp' module.
29689         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
29690         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
29691         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
29692         * doc/posix-functions/j0.texi: Mention the 'j0' module.
29693         * doc/posix-functions/j1.texi: Mention the 'j1' module.
29694         * doc/posix-functions/jn.texi: Mention the 'jn' module.
29695         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
29696         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
29697         * doc/posix-functions/log.texi: Mention the 'log' module.
29698         * doc/posix-functions/log10.texi: Mention the 'log10' module.
29699         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
29700         * doc/posix-functions/logb.texi: Mention the 'logb' module.
29701         * doc/posix-functions/modf.texi: Mention the 'modf' module.
29702         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
29703         * doc/posix-functions/pow.texi: Mention the 'pow' module.
29704         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
29705         * doc/posix-functions/rint.texi: Mention the 'rint' module.
29706         * doc/posix-functions/sin.texi: Mention the 'sin' module.
29707         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
29708         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
29709         * doc/posix-functions/tan.texi: Mention the 'tan' module.
29710         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
29711         * doc/posix-functions/y0.texi: Mention the 'y0' module.
29712         * doc/posix-functions/y1.texi: Mention the 'y1' module.
29713         * doc/posix-functions/yn.texi: Mention the 'yn' module.
29714
29715 2010-01-18  Jim Meyering  <meyering@redhat.com>
29716
29717         ignore-value: relax license to LGPLv2+
29718         * modules/ignore-value (License): Relax to LGPLv2+.
29719
29720         getdate: don't leak when TZ contains two or more '"'s
29721         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
29722         double quote in TZ after the first one.
29723
29724         readtokens: do not leak internal token_lengths buffer
29725         * lib/readtokens.c (readtokens): Free the local, lengths,
29726         when the supplied "token_lengths" parameter is NULL.
29727
29728 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29729
29730         Fix a couple of missing LIBTHREAD link failures on AIX.
29731         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
29732         $(LIBTHREAD).
29733         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
29734
29735         Link test-poll against INET_PTON_LIB.
29736         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
29737         for inet_pton on Solaris 10.
29738
29739 2010-01-17  Bruno Haible  <bruno@clisp.org>
29740
29741         unistdio/*-sprintf: Fix typo in module description.
29742         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
29743         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
29744         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
29745         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
29746         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
29747         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
29748         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
29749         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29750
29751 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29752
29753         gnulib-tool: fix filelist for AIX, HP-UX ksh.
29754         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
29755         variables in shell case patterns, for AIX and HP-UX ksh.
29756
29757         Split large sed scripts, for HP-UX sed.
29758         * modules/stdio: Split sed scripts around 50 sed commands,
29759         to avoid HP-UX limit of 99 commands, in the near future.
29760         * modules/string: Likewise.
29761         * modules/unistd: Likewise.
29762
29763         gnulib-tool: avoid writing in the current directory.
29764         * gnulib-tool (func_emit_lib_Makefile_am)
29765         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
29766         not in the current directory, so concurrent gnulib-tool
29767         instances do not interfere.
29768
29769 2010-01-16  Jim Meyering  <meyering@redhat.com>
29770
29771         doc: update users.txt
29772         * users.txt: Add grep.
29773         (diffutils, gzip): Update URLs.
29774
29775 2010-01-12  Bruno Haible  <bruno@clisp.org>
29776
29777         posix_spawn: Avoid test failure on Cygwin.
29778         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29779         characters.
29780         Reported by Simon Josefsson.
29781
29782 2010-01-12  Bruno Haible  <bruno@clisp.org>
29783
29784         * tests/test-cond.c (main): When skipping the test, show the reason.
29785
29786 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29787
29788         * lib/striconv.c (str_cd_iconv): Avoid if before free.
29789
29790 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29791
29792         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
29793         VC_LIST_ALWAYS_EXCLUDE_REGEX.
29794
29795 2010-01-12  Eric Blake  <ebb9@byu.net>
29796
29797         build: guarantee AS_VAR_IF
29798         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
29799         (gl_AS_VAR_IF): Move...
29800         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
29801         Reported by Simon Josefsson.
29802
29803 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29804
29805         * lib/stdio.in.h: Fix typo.
29806
29807 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29808
29809         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
29810         libgpg-error.
29811
29812 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29813
29814         * tests/test-xalloc-die.sh: Use $EXEEXT.
29815
29816 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29817             Bruno Haible  <bruno@clisp.org>
29818
29819         getlogin, getlogin_r: Avoid test failure.
29820         * tests/test-getlogin.c: Include <stdio.h>.
29821         (main): Skip the test when the function fails because stdin is not a
29822         tty.
29823         * tests/test-getlogin_r.c: Include <stdio.h>.
29824         (main): Skip the test when the function fails because stdin is not a
29825         tty.
29826
29827 2010-01-11  Eric Blake  <ebb9@byu.net>
29828
29829         tests: avoid more large file warnings
29830         * tests/test-fflush.c: Avoid warning about ftell use.
29831         * tests/test-fseek.c: Avoid warning about fseek use.
29832
29833 2010-01-10  Bruno Haible  <bruno@clisp.org>
29834
29835         nproc: Work better on Linux when /proc and /sys are not mounted.
29836         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
29837         as lower bound when, on glibc/Linux systems,
29838         sysconf (_SC_NPROCESSORS_CONF) returns 1.
29839         Suggested by Pádraig Brady <P@draigbrady.com>.
29840         Reported by Dmitry V. Levin <ldv@altlinux.org>.
29841
29842         nproc: Refactor.
29843         * lib/nproc.c (num_processors_via_affinity_mask): New function,
29844         extracted from num_processors.
29845         (num_processors): Call it.
29846
29847 2010-01-11  Jim Meyering  <meyering@redhat.com>
29848
29849         utimecmp: avoid new warning from upcoming gcc-4.5.0
29850         * lib/utimecmp.c (BILLION): Define using #define rather than an
29851         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
29852
29853 2010-01-11  Eric Blake  <ebb9@byu.net>
29854
29855         math: add portability warnings for classification macros
29856         * modules/math (Depends-on): Add warn-on-use.
29857         (Makefile.am): Provide new substitutions.
29858         * m4/math_h.m4 (gl_MATH_H): Require inline.
29859         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
29860         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
29861         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
29862         implement warnings.
29863
29864         unistd: warn on use of environ without module
29865         * modules/unistd (Depends-on): Add warn-on-use.
29866         (Makefile.am): Provide new substitutions.
29867         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
29868         * lib/unistd.in.h (environ): Wrap with a warning helper function.
29869
29870         stdio: warn on suspicious uses
29871         * modules/stdio (Depends-on): Add warn-on-use.
29872         (Makefile.am): Provide new substitutions.
29873         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
29874         fseeko.
29875         * lib/stdio.in.h (gets): Always warn on use.
29876         (fseek, ftell): Adjust when warnings are issued, and honor
29877         _GL_NO_LARGE_FILES as a way to silence the warning.
29878         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
29879         any warning about large file offsets.
29880         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
29881         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
29882         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
29883         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
29884         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
29885         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
29886         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
29887         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
29888
29889         warn-on-use: new module
29890         * modules/warn-on-use: New file.
29891         * build-aux/warn-on-use.h: Likewise.
29892         * m4/warn-on-use.m4: Likewise.
29893         * MODULES.html.sh (Support for building): Mention it.
29894
29895 2010-01-10  Bruno Haible  <bruno@clisp.org>
29896
29897         Tests for module 'unistr/u32-strdup'.
29898         * modules/unistr/u32-strdup-tests: New file.
29899         * tests/unistr/test-u32-strdup.c: New file.
29900
29901         Tests for module 'unistr/u16-strdup'.
29902         * modules/unistr/u16-strdup-tests: New file.
29903         * tests/unistr/test-u16-strdup.c: New file.
29904
29905         Tests for module 'unistr/u8-strdup'.
29906         * modules/unistr/u8-strdup-tests: New file.
29907         * tests/unistr/test-u8-strdup.c: New file.
29908         * tests/unistr/test-strdup.h: New file.
29909
29910         Tests for module 'unistr/u32-strncmp'.
29911         * modules/unistr/u32-strncmp-tests: New file.
29912         * tests/unistr/test-u32-strncmp.c: New file.
29913
29914         Tests for module 'unistr/u16-strncmp'.
29915         * modules/unistr/u16-strncmp-tests: New file.
29916         * tests/unistr/test-u16-strncmp.c: New file.
29917
29918         Tests for module 'unistr/u8-strncmp'.
29919         * modules/unistr/u8-strncmp-tests: New file.
29920         * tests/unistr/test-u8-strncmp.c: New file.
29921         * tests/unistr/test-strncmp.h: New file.
29922
29923         Tests for module 'unistr/u32-strcoll'.
29924         * modules/unistr/u32-strcoll-tests: New file.
29925         * tests/unistr/test-u32-strcoll.c: New file.
29926
29927         Tests for module 'unistr/u16-strcoll'.
29928         * modules/unistr/u16-strcoll-tests: New file.
29929         * tests/unistr/test-u16-strcoll.c: New file.
29930
29931         Tests for module 'unistr/u8-strcoll'.
29932         * modules/unistr/u8-strcoll-tests: New file.
29933         * tests/unistr/test-u8-strcoll.c: New file.
29934
29935         Tests for module 'unistr/u32-strcmp'.
29936         * modules/unistr/u32-strcmp-tests: New file.
29937         * tests/unistr/test-u32-strcmp.c: New file.
29938         * tests/unistr/test-u32-strcmp.h: New file.
29939
29940         Tests for module 'unistr/u16-strcmp'.
29941         * modules/unistr/u16-strcmp-tests: New file.
29942         * tests/unistr/test-u16-strcmp.c: New file.
29943         * tests/unistr/test-u16-strcmp.h: New file.
29944
29945         Tests for module 'unistr/u8-strcmp'.
29946         * modules/unistr/u8-strcmp-tests: New file.
29947         * tests/unistr/test-u8-strcmp.c: New file.
29948         * tests/unistr/test-u8-strcmp.h: New file.
29949         * tests/unistr/test-strcmp.h: New file.
29950
29951         Tests for module 'unistr/u32-strncat'.
29952         * modules/unistr/u32-strncat-tests: New file.
29953         * tests/unistr/test-u32-strncat.c: New file.
29954
29955         Tests for module 'unistr/u16-strncat'.
29956         * modules/unistr/u16-strncat-tests: New file.
29957         * tests/unistr/test-u16-strncat.c: New file.
29958
29959         Tests for module 'unistr/u8-strncat'.
29960         * modules/unistr/u8-strncat-tests: New file.
29961         * tests/unistr/test-u8-strncat.c: New file.
29962         * tests/unistr/test-strncat.h: New file.
29963
29964         Tests for module 'unistr/u32-strcat'.
29965         * modules/unistr/u32-strcat-tests: New file.
29966         * tests/unistr/test-u32-strcat.c: New file.
29967
29968         Tests for module 'unistr/u16-strcat'.
29969         * modules/unistr/u16-strcat-tests: New file.
29970         * tests/unistr/test-u16-strcat.c: New file.
29971
29972         Tests for module 'unistr/u8-strcat'.
29973         * modules/unistr/u8-strcat-tests: New file.
29974         * tests/unistr/test-u8-strcat.c: New file.
29975         * tests/unistr/test-strcat.h: New file.
29976
29977         Tests for module 'unistr/u32-stpncpy'.
29978         * modules/unistr/u32-stpncpy-tests: New file.
29979         * tests/unistr/test-u32-stpncpy.c: New file.
29980
29981         Tests for module 'unistr/u16-stpncpy'.
29982         * modules/unistr/u16-stpncpy-tests: New file.
29983         * tests/unistr/test-u16-stpncpy.c: New file.
29984
29985         Tests for module 'unistr/u8-stpncpy'.
29986         * modules/unistr/u8-stpncpy-tests: New file.
29987         * tests/unistr/test-u8-stpncpy.c: New file.
29988         * tests/unistr/test-stpncpy.h: New file.
29989
29990         Tests for module 'unistr/u32-strncpy'.
29991         * modules/unistr/u32-strncpy-tests: New file.
29992         * tests/unistr/test-u32-strncpy.c: New file.
29993
29994         Tests for module 'unistr/u16-strncpy'.
29995         * modules/unistr/u16-strncpy-tests: New file.
29996         * tests/unistr/test-u16-strncpy.c: New file.
29997
29998         Tests for module 'unistr/u8-strncpy'.
29999         * modules/unistr/u8-strncpy-tests: New file.
30000         * tests/unistr/test-u8-strncpy.c: New file.
30001         * tests/unistr/test-strncpy.h: New file.
30002
30003         Tests for module 'unistr/u32-stpcpy'.
30004         * modules/unistr/u32-stpcpy-tests: New file.
30005         * tests/unistr/test-u32-stpcpy.c: New file.
30006
30007         Tests for module 'unistr/u16-stpcpy'.
30008         * modules/unistr/u16-stpcpy-tests: New file.
30009         * tests/unistr/test-u16-stpcpy.c: New file.
30010
30011         Tests for module 'unistr/u8-stpcpy'.
30012         * modules/unistr/u8-stpcpy-tests: New file.
30013         * tests/unistr/test-u8-stpcpy.c: New file.
30014         * tests/unistr/test-stpcpy.h: New file.
30015
30016         Tests for module 'unistr/u32-strcpy'.
30017         * modules/unistr/u32-strcpy-tests: New file.
30018         * tests/unistr/test-u32-strcpy.c: New file.
30019
30020         Tests for module 'unistr/u16-strcpy'.
30021         * modules/unistr/u16-strcpy-tests: New file.
30022         * tests/unistr/test-u16-strcpy.c: New file.
30023
30024         Tests for module 'unistr/u8-strcpy'.
30025         * modules/unistr/u8-strcpy-tests: New file.
30026         * tests/unistr/test-u8-strcpy.c: New file.
30027         * tests/unistr/test-strcpy.h: New file.
30028
30029         Tests for module 'unistr/u32-strnlen'.
30030         * modules/unistr/u32-strnlen-tests: New file.
30031         * tests/unistr/test-u32-strnlen.c: New file.
30032
30033         Tests for module 'unistr/u16-strnlen'.
30034         * modules/unistr/u16-strnlen-tests: New file.
30035         * tests/unistr/test-u16-strnlen.c: New file.
30036
30037         Tests for module 'unistr/u8-strnlen'.
30038         * modules/unistr/u8-strnlen-tests: New file.
30039         * tests/unistr/test-u8-strnlen.c: New file.
30040         * tests/unistr/test-strnlen.h: New file.
30041
30042         Tests for module 'unistr/u32-strlen'.
30043         * modules/unistr/u32-strlen-tests: New file.
30044         * tests/unistr/test-u32-strlen.c: New file.
30045
30046         Tests for module 'unistr/u16-strlen'.
30047         * modules/unistr/u16-strlen-tests: New file.
30048         * tests/unistr/test-u16-strlen.c: New file.
30049
30050         Tests for module 'unistr/u8-strlen'.
30051         * modules/unistr/u8-strlen-tests: New file.
30052         * tests/unistr/test-u8-strlen.c: New file.
30053
30054         Tests for module 'unistr/u32-prev'.
30055         * modules/unistr/u32-prev-tests: New file.
30056         * tests/unistr/test-u32-prev.c: New file.
30057
30058         Tests for module 'unistr/u16-prev'.
30059         * modules/unistr/u16-prev-tests: New file.
30060         * tests/unistr/test-u16-prev.c: New file.
30061
30062         Tests for module 'unistr/u8-prev'.
30063         * modules/unistr/u8-prev-tests: New file.
30064         * tests/unistr/test-u8-prev.c: New file.
30065
30066         Tests for module 'unistr/u32-next'.
30067         * modules/unistr/u32-next-tests: New file.
30068         * tests/unistr/test-u32-next.c: New file.
30069
30070         Tests for module 'unistr/u16-next'.
30071         * modules/unistr/u16-next-tests: New file.
30072         * tests/unistr/test-u16-next.c: New file.
30073
30074         Tests for module 'unistr/u8-next'.
30075         * modules/unistr/u8-next-tests: New file.
30076         * tests/unistr/test-u8-next.c: New file.
30077
30078         Tests for module 'unistr/u32-strmbtouc'.
30079         * modules/unistr/u32-strmbtouc-tests: New file.
30080         * tests/unistr/test-u32-strmbtouc.c: New file.
30081
30082         Tests for module 'unistr/u16-strmbtouc'.
30083         * modules/unistr/u16-strmbtouc-tests: New file.
30084         * tests/unistr/test-u16-strmbtouc.c: New file.
30085
30086         Tests for module 'unistr/u8-strmbtouc'.
30087         * modules/unistr/u8-strmbtouc-tests: New file.
30088         * tests/unistr/test-u8-strmbtouc.c: New file.
30089
30090         Tests for module 'unistr/u32-strmblen'.
30091         * modules/unistr/u32-strmblen-tests: New file.
30092         * tests/unistr/test-u32-strmblen.c: New file.
30093
30094         Tests for module 'unistr/u16-strmblen'.
30095         * modules/unistr/u16-strmblen-tests: New file.
30096         * tests/unistr/test-u16-strmblen.c: New file.
30097
30098         Tests for module 'unistr/u8-strmblen'.
30099         * modules/unistr/u8-strmblen-tests: New file.
30100         * tests/unistr/test-u8-strmblen.c: New file.
30101
30102         Tests for module 'unistr/u32-cpy-alloc'.
30103         * modules/unistr/u32-cpy-alloc-tests: New file.
30104         * tests/unistr/test-u32-cpy-alloc.c: New file.
30105
30106         Tests for module 'unistr/u16-cpy-alloc'.
30107         * modules/unistr/u16-cpy-alloc-tests: New file.
30108         * tests/unistr/test-u16-cpy-alloc.c: New file.
30109
30110         Tests for module 'unistr/u8-cpy-alloc'.
30111         * modules/unistr/u8-cpy-alloc-tests: New file.
30112         * tests/unistr/test-u8-cpy-alloc.c: New file.
30113         * tests/unistr/test-cpy-alloc.h: New file.
30114
30115         Tests for module 'unistr/u32-mbsnlen'.
30116         * modules/unistr/u32-mbsnlen-tests: New file.
30117         * tests/unistr/test-u32-mbsnlen.c: New file.
30118
30119         Tests for module 'unistr/u16-mbsnlen'.
30120         * modules/unistr/u16-mbsnlen-tests: New file.
30121         * tests/unistr/test-u16-mbsnlen.c: New file.
30122
30123         Tests for module 'unistr/u8-mbsnlen'.
30124         * modules/unistr/u8-mbsnlen-tests: New file.
30125         * tests/unistr/test-u8-mbsnlen.c: New file.
30126
30127         Tests for module 'unistr/u32-chr'.
30128         * modules/unistr/u32-chr-tests: New file.
30129         * tests/unistr/test-u32-chr.c: New file.
30130
30131         Tests for module 'unistr/u16-chr'.
30132         * modules/unistr/u16-chr-tests: New file.
30133         * tests/unistr/test-u16-chr.c: New file.
30134
30135         Tests for module 'unistr/u8-chr'.
30136         * modules/unistr/u8-chr-tests: New file.
30137         * tests/unistr/test-u8-chr.c: New file.
30138         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
30139
30140         Tests for module 'unistr/u32-cmp2'.
30141         * modules/unistr/u32-cmp2-tests: New file.
30142         * tests/unistr/test-u32-cmp2.c: New file.
30143
30144         Tests for module 'unistr/u16-cmp2'.
30145         * modules/unistr/u16-cmp2-tests: New file.
30146         * tests/unistr/test-u16-cmp2.c: New file.
30147
30148         Tests for module 'unistr/u8-cmp2'.
30149         * modules/unistr/u8-cmp2-tests: New file.
30150         * tests/unistr/test-u8-cmp2.c: New file.
30151         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
30152
30153         Tests for module 'unistr/u32-cmp'.
30154         * modules/unistr/u32-cmp-tests: New file.
30155         * tests/unistr/test-u32-cmp.c: New file.
30156
30157         Tests for module 'unistr/u16-cmp'.
30158         * modules/unistr/u16-cmp-tests: New file.
30159         * tests/unistr/test-u16-cmp.c: New file.
30160
30161         Tests for module 'unistr/u8-cmp'.
30162         * modules/unistr/u8-cmp-tests: New file.
30163         * tests/unistr/test-u8-cmp.c: New file.
30164         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
30165
30166         Tests for module 'unistr/u32-set'.
30167         * modules/unistr/u32-set-tests: New file.
30168         * tests/unistr/test-u32-set.c: New file.
30169
30170         Tests for module 'unistr/u16-set'.
30171         * modules/unistr/u16-set-tests: New file.
30172         * tests/unistr/test-u16-set.c: New file.
30173
30174         Tests for module 'unistr/u8-set'.
30175         * modules/unistr/u8-set-tests: New file.
30176         * tests/unistr/test-u8-set.c: New file.
30177         * tests/unistr/test-set.h: New file.
30178
30179         Tests for module 'unistr/u32-move'.
30180         * modules/unistr/u32-move-tests: New file.
30181         * tests/unistr/test-u32-move.c: New file.
30182
30183         Tests for module 'unistr/u16-move'.
30184         * modules/unistr/u16-move-tests: New file.
30185         * tests/unistr/test-u16-move.c: New file.
30186
30187         Tests for module 'unistr/u8-move'.
30188         * modules/unistr/u8-move-tests: New file.
30189         * tests/unistr/test-u8-move.c: New file.
30190         * tests/unistr/test-move.h: New file.
30191
30192         Tests for module 'unistr/u32-cpy'.
30193         * modules/unistr/u32-cpy-tests: New file.
30194         * tests/unistr/test-u32-cpy.c: New file.
30195
30196         Tests for module 'unistr/u16-cpy'.
30197         * modules/unistr/u16-cpy-tests: New file.
30198         * tests/unistr/test-u16-cpy.c: New file.
30199
30200         Tests for module 'unistr/u8-cpy'.
30201         * modules/unistr/u8-cpy-tests: New file.
30202         * tests/unistr/test-u8-cpy.c: New file.
30203         * tests/unistr/test-cpy.h: New file.
30204
30205 2010-01-09  Bruno Haible  <bruno@clisp.org>
30206
30207         Tests for module 'unistr/u32-uctomb'.
30208         * modules/unistr/u32-uctomb-tests: New file.
30209         * tests/unistr/test-u32-uctomb.c: New file.
30210
30211         Tests for module 'unistr/u16-uctomb'.
30212         * modules/unistr/u16-uctomb-tests: New file.
30213         * tests/unistr/test-u16-uctomb.c: New file.
30214
30215         Tests for module 'unistr/u8-uctomb'.
30216         * modules/unistr/u8-uctomb-tests: New file.
30217         * tests/unistr/test-u8-uctomb.c: New file.
30218
30219         Tests for module 'unistr/u32-mbtoucr'.
30220         * modules/unistr/u32-mbtoucr-tests: New file.
30221         * tests/unistr/test-u32-mbtoucr.c: New file.
30222
30223         Tests for module 'unistr/u16-mbtoucr'.
30224         * modules/unistr/u16-mbtoucr-tests: New file.
30225         * tests/unistr/test-u16-mbtoucr.c: New file.
30226
30227         Tests for module 'unistr/u8-mbtoucr'.
30228         * modules/unistr/u8-mbtoucr-tests: New file.
30229         * tests/unistr/test-u8-mbtoucr.c: New file.
30230
30231         Tests for module 'unistr/u32-mbtouc'.
30232         * modules/unistr/u32-mbtouc-tests: New file.
30233         * tests/unistr/test-u32-mbtouc.c: New file.
30234
30235         Tests for module 'unistr/u16-mbtouc'.
30236         * modules/unistr/u16-mbtouc-tests: New file.
30237         * tests/unistr/test-u16-mbtouc.c: New file.
30238
30239         Tests for module 'unistr/u8-mbtouc'.
30240         * modules/unistr/u8-mbtouc-tests: New file.
30241         * tests/unistr/test-u8-mbtouc.c: New file.
30242
30243         Tests for module 'unistr/u32-mbtouc-unsafe'.
30244         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
30245         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
30246         * tests/unistr/test-u32-mbtouc.h: New file.
30247
30248         Tests for module 'unistr/u16-mbtouc-unsafe'.
30249         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
30250         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
30251         * tests/unistr/test-u16-mbtouc.h: New file.
30252
30253         Tests for module 'unistr/u8-mbtouc-unsafe'.
30254         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
30255         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
30256         * tests/unistr/test-u8-mbtouc.h: New file.
30257
30258         Tests for module 'unistr/u32-mblen'.
30259         * modules/unistr/u32-mblen-tests: New file.
30260         * tests/unistr/test-u32-mblen.c: New file.
30261
30262         Tests for module 'unistr/u16-mblen'.
30263         * modules/unistr/u16-mblen-tests: New file.
30264         * tests/unistr/test-u16-mblen.c: New file.
30265
30266         Tests for module 'unistr/u8-mblen'.
30267         * modules/unistr/u8-mblen-tests: New file.
30268         * tests/unistr/test-u8-mblen.c: New file.
30269
30270         Tests for module 'unistr/u32-to-u16'.
30271         * modules/unistr/u32-to-u16-tests: New file.
30272         * tests/unistr/test-u32-to-u16.c: New file.
30273
30274         Tests for module 'unistr/u32-to-u8'.
30275         * modules/unistr/u32-to-u8-tests: New file.
30276         * tests/unistr/test-u32-to-u8.c: New file.
30277
30278         Tests for module 'unistr/u16-to-u32'.
30279         * modules/unistr/u16-to-u32-tests: New file.
30280         * tests/unistr/test-u16-to-u32.c: New file.
30281
30282         Tests for module 'unistr/u16-to-u8'.
30283         * modules/unistr/u16-to-u8-tests: New file.
30284         * tests/unistr/test-u16-to-u8.c: New file.
30285
30286         Tests for module 'unistr/u8-to-u32'.
30287         * modules/unistr/u8-to-u32-tests: New file.
30288         * tests/unistr/test-u8-to-u32.c: New file.
30289
30290         Tests for module 'unistr/u8-to-u16'.
30291         * modules/unistr/u8-to-u16-tests: New file.
30292         * tests/unistr/test-u8-to-u16.c: New file.
30293
30294         Tests for module 'unistr/u32-check'.
30295         * modules/unistr/u32-check-tests: New file.
30296         * tests/unistr/test-u32-check.c: New file.
30297
30298         Tests for module 'unistr/u16-check'.
30299         * modules/unistr/u16-check-tests: New file.
30300         * tests/unistr/test-u16-check.c: New file.
30301
30302         Tests for module 'unistr/u8-check'.
30303         * modules/unistr/u8-check-tests: New file.
30304         * tests/unistr/test-u8-check.c: New file.
30305
30306         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
30307         (category_equals): New function.
30308         (main): Add more tests.
30309         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
30310
30311         * tests/unictype/test-bidi_byname.c (main): Add more tests.
30312
30313 2010-01-10  Bruno Haible  <bruno@clisp.org>
30314
30315         unistr/u*-strcoll: Try harder to distinguish different strings.
30316         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
30317         compare s1 and s2 to see if they are different.
30318
30319 2010-01-10  Bruno Haible  <bruno@clisp.org>
30320
30321         unistr/u*-stpncpy: Fix the return value.
30322         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
30323         description of the return value consistent with stpncpy in glibc.
30324         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
30325         written non-NUL unit.
30326
30327 2010-01-10  Bruno Haible  <bruno@clisp.org>
30328
30329         unistr/u*-next: Add missing dependencies.
30330         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
30331         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
30332         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
30333
30334 2010-01-10  Bruno Haible  <bruno@clisp.org>
30335
30336         unistr/u8-mbsnlen: Fix return value for incomplete character.
30337         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
30338         u8_mblen.
30339         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
30340         Remove unistr/u8-mblen.
30341         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
30342         u16_mblen.
30343         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
30344         Remove unistr/u16-mblen.
30345
30346 2010-01-10  Bruno Haible  <bruno@clisp.org>
30347
30348         wchar: Fix compilation error when <wchar.h> is used from coreutils.
30349         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
30350         Reported by Brian Gough <bjg@gnu.org> and
30351         Chris Clayton <chris2553@googlemail.com> via
30352         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
30353
30354 2010-01-09  Bruno Haible  <bruno@clisp.org>
30355
30356         unistr/u16-to-u32: Reject invalid input.
30357         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
30358         u16_mbtouc.
30359         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
30360         Remove unistr/u16-mbtouc.
30361
30362         unistr/u16-to-u8: Reject invalid input.
30363         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
30364         u16_mbtouc.
30365         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
30366         Remove unistr/u16-mbtouc.
30367
30368         unistr/u8-to-u32: Reject invalid input.
30369         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
30370         u8_mbtouc.
30371         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
30372         Remove unistr/u8-mbtouc.
30373
30374         unistr/u8-to-u16: Reject invalid input.
30375         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
30376         u8_mbtouc.
30377         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
30378         Remove unistr/u8-mbtouc.
30379
30380 2010-01-09  Bruno Haible  <bruno@clisp.org>
30381
30382         Tests for module 'getlogin'.
30383         * modules/getlogin-tests: New file.
30384         * tests/test-getlogin.c: New file.
30385
30386         New module 'getlogin'.
30387         * lib/unistd.in.h (getlogin): New declaration.
30388         * lib/getlogin.c: New file.
30389         * m4/getlogin.m4: New file.
30390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
30391         HAVE_GETLOGIN.
30392         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
30393         HAVE_GETLOGIN.
30394         * modules/getlogin: New file.
30395         * doc/posix-functions/getlogin.texi: Mention the new module.
30396         Reported by John W. Eaton <jwe@gnu.org>.
30397
30398 2010-01-09  Bruno Haible  <bruno@clisp.org>
30399
30400         getlogin_r: Support for native Windows.
30401         * lib/getlogin_r.c: Include <windows.h>
30402         (getlogin_r): Implement for native Windows.
30403         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
30404         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
30405         via John W. Eaton <jwe@gnu.org>.
30406
30407 2010-01-09  Bruno Haible  <bruno@clisp.org>
30408
30409         getlogin_r: Small fixes.
30410         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
30411         succeeds.
30412         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
30413         before testing whether getlogin_r is declared. No need to set
30414         HAVE_DECL_GETLOGIN_R to 1.
30415         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
30416
30417 2010-01-09  Bruno Haible  <bruno@clisp.org>
30418
30419         * lib/unistd.in.h (getlogin_r): Add comment.
30420
30421 2010-01-09  Bruno Haible  <bruno@clisp.org>
30422
30423         Tests for module 'getlogin_r'.
30424         * modules/getlogin_r-tests: New file.
30425         * tests/test-getlogin_r.c: New file.
30426
30427 2010-01-09  Jim Meyering  <meyering@redhat.com>
30428
30429         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
30430         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
30431         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
30432
30433 2010-01-08  Simon Josefsson  <simon@josefsson.org>
30434
30435         * lib/dup2.c (rpl_dup2): Improve comment.
30436
30437 2010-01-08  Eric Blake  <ebb9@byu.net>
30438
30439         maint.mk: allow packages to add makefile @@ exceptions
30440         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
30441         (sc_makefile_check): Rename...
30442         (sc_makefile_at_at_check): ...to this, and use hook.
30443
30444         dup2: work around mingw bug
30445         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
30446         Reported by Simon Josefsson.
30447
30448 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
30449
30450         glob: Fix C++ compilation.
30451         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
30452         C++.
30453
30454 2010-01-07  Bruno Haible  <bruno@clisp.org>
30455
30456         Fix indentation of wctype.in.h, broken since 2007-01-06.
30457         * lib/wctype.in.h: Fix indentation of preprocessor directives.
30458
30459 2010-01-07  Bruno Haible  <bruno@clisp.org>
30460
30461         mbslen: Avoid collision with system function.
30462         * lib/string.in.h [MirBSD]: Include <wchar.h>.
30463         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
30464         * m4/mbslen.m4: New file.
30465         * modules/mbslen (Files): Add it.
30466         (configure.ac): Invoke gl_MBSLEN.
30467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
30468         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
30469         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
30470         via Ian Beckwith <ianb@erislabs.net>.
30471
30472 2010-01-07  Bruno Haible  <bruno@clisp.org>
30473
30474         dirent: Document the last fix.
30475         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
30476
30477 2010-01-07  Bruno Haible  <bruno@clisp.org>
30478
30479         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
30480         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
30481         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
30482         va_list are defined.
30483         * doc/posix-headers/stdio.texi: Document the bug of missing types.
30484         Reported by Eric Blake.
30485
30486 2010-01-07  Bruno Haible  <bruno@clisp.org>
30487
30488         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
30489         * modules/xlist (Depends-on): Add 'list',
30490         * modules/xoset (Depends-on): Add 'oset'.
30491         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30492
30493 2010-01-07  Bruno Haible  <bruno@clisp.org>
30494
30495         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
30496         * doc/posix-functions/strncasecmp.texi: Likewise.
30497
30498 2010-01-07  Bruno Haible  <bruno@clisp.org>
30499
30500         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
30501
30502 2010-01-07  John W. Eaton  <jwe@octave.org>
30503
30504         wctype: allow C++ use
30505         * lib/wctype.in.h: Add extern "C" block for C++.
30506
30507 2010-01-06  Eric Blake  <ebb9@byu.net>
30508
30509         maint.mk: detect incorrect GFDL usage
30510         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
30511
30512 2010-01-06  Jim Meyering  <meyering@redhat.com>
30513         and Eric Blake  <ebb9@byu.net>
30514
30515         maint.mk: ignore multi-line copyright in NEWS
30516         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
30517
30518 2010-01-06  Eric Blake  <ebb9@byu.net>
30519
30520         select: add missing dependency
30521         * modules/select-tests (Depends-on): Move sockets dependency...
30522         * modules/select (Depends-on): ...here.
30523         Reported by Ian Beckwith.
30524
30525         doc: regenerate INSTALL
30526         * doc/INSTALL: Reflect recent autoconf update.
30527         * doc/INSTALL.ISO: Likewise.
30528         * doc/INSTALL.UTF-8: Likewise.
30529
30530         pread: fix compilation on glibc
30531         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
30532         Reported by Ralf Wildenhues.
30533
30534         dirent: fix test failure
30535         * lib/dirent.in.h (includes): Guarantee ino_t.
30536         Reported by Ralf Wildenhues.
30537
30538 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
30539
30540         linkat, renameat: avoid bad free
30541         * lib/at-func2.c (at_func2): Fix typo.
30542         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
30543
30544 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30545
30546         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
30547         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
30548         to avoid failure of symlink test later.
30549
30550 2010-01-06  Eric Blake  <ebb9@byu.net>
30551
30552         stdio, unistd: guarantee ssize_t
30553         * lib/unistd.in.h (includes): Ensure that types required by POSIX
30554         2008 are exposed when needed.
30555         * lib/stdio.in.h (includes): Likewise.
30556         Reported by Ralf Wildenhues.
30557
30558 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
30559
30560         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
30561         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
30562         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
30563
30564 2010-01-06  Jim Meyering  <meyering@redhat.com>
30565
30566         readtokens: this module *does* require xalloc.h
30567         It uses only functions that were omitted by the old syntax-check rule.
30568         * lib/readtokens.c: Include "xalloc.h" once again.
30569         * modules/readtokens (Depends-on): Add xalloc.
30570         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
30571
30572 2010-01-05  Eric Blake  <ebb9@byu.net>
30573
30574         maint: support 'make announcement' from a VPATH build
30575         * top/maint.mk (announcement): Look for correct NEWS file.
30576
30577 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
30578
30579         utimens (fdutimens): ignore a negative FD, per contract
30580         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
30581         when we have a valid file descriptor.  Otherwise, using a brand
30582         new glibc (with just-patched futimens that now fails with EBADF)
30583         would cause this function to fail with ENOSYS.
30584         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
30585         See also http://bugzilla.redhat.com/552320.
30586
30587 2010-01-05  Eric Blake  <ebb9@byu.net>
30588
30589         strcase: document what it provides
30590         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
30591         gnulib module.
30592         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
30593         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
30594
30595 2010-01-05  Jim Meyering  <meyering@redhat.com>
30596
30597         maint: remove useless inclusions of "xalloc.h"
30598         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
30599         * lib/readtokens.c: Likewise.
30600         * lib/same.c: Likewise.
30601         * modules/getloadavg (Depends-on): Remove xalloc.
30602         * modules/readtokens: Likewise.
30603         * modules/same: Likewise.
30604
30605         maint.mk: include 4 more function names in alloca.h-checking regexp
30606         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
30607         regexp.  Before, we would give a false-positive (saying alloca.h
30608         is included unnecessarily) when the only uses involved omitted symbols.
30609
30610         xalloc.h: use consistent formatting
30611         * lib/xalloc.h: Move declarations to start in the first column.
30612
30613 2010-01-05  Eric Blake  <ebb9@byu.net>
30614
30615         mkdir: avoid xalloc
30616         * lib/mkdir.c (includes): Drop unused header.
30617         Reported by John W. Eaton.
30618
30619 2010-01-04  Jim Meyering  <meyering@redhat.com>
30620
30621         nl_langinfo: avoid configure-time syntax error
30622         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
30623         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
30624         the empty string.  Don't let that provoke a shell syntax error.
30625
30626         regcomp, regexec, fnmatch: avoid array bounds read error
30627         * lib/regcomp.c (build_equiv_class): From glibc:
30628         Use only the low 24 bits of a findidx return value as an index
30629         into the weights array.  Patch by Ulrich Drepper:
30630         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
30631         * lib/regexec.c (check_node_accept_bytes): Likewise.
30632         * lib/fnmatch_loop.c (FCT): Likewise.
30633
30634         regcomp: skip collseq lookup when there are no rules
30635         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
30636         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
30637
30638         regcomp: recognize ill-formed { } expressions
30639         * lib/regcomp.c (parse_dup_op): From glibc:
30640         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
30641
30642         regcomp: fix typo in comment
30643         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
30644         s/satisfy/satisfies/.
30645
30646         regcomp: sync from glibc: remove dead store
30647         * lib/regcomp.c (duplicate_node_closure): Remove useless
30648         search_duplicated_node call and dead store.
30649
30650         regcomp: sync from glibc; always use nl_langinfo
30651         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
30652         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
30653         * modules/regex (Depends-on): Add nl_langinfo.
30654
30655 2010-01-04  Eric Blake  <ebb9@byu.net>
30656
30657         fdopendir: fix configure test
30658         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
30659
30660 2010-01-01  Bruno Haible  <bruno@clisp.org>
30661
30662         wchar: Remove unused configure check.
30663         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
30664
30665 2010-01-01  Eric Blake  <ebb9@byu.net>
30666
30667         headers: make check of system header explicit
30668         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
30669         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
30670         ourselves.
30671         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30672         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30673         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30674         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
30675         internals.
30676         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
30677         missing.
30678         Suggested by Bruno Haible.
30679
30680 2010-01-01  Jim Meyering  <meyering@redhat.com>
30681
30682         ChangeLog: tweak to eliminate unnecessary copyright line
30683         * ChangeLog: Remove a copyright line that was mistakenly updated
30684         by today's update-copyright run.  Reported by Eric Blake.
30685
30686         test-update-copyright: don't let envvar setting cause test failure
30687         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30688
30689 2010-01-01  Bruno Haible  <bruno@clisp.org>
30690
30691         localename: Avoid gcc warning.
30692         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
30693         function if it is not used.
30694
30695 2010-01-01  Jim Meyering  <meyering@redhat.com>
30696
30697         update nearly all FSF copyright year lists to include 2010
30698         Use the same procedure as for 2009, outlined in
30699         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
30700
30701         version-etc: set COPYRIGHT_YEAR to 2010
30702         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
30703
30704 2009-12-31  Eric Blake  <ebb9@byu.net>
30705
30706         doc: correct availability of cygwin 1.5.x getopt
30707         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
30708         variables.
30709         * doc/posix-functions/opterr.texi (opterr): Likewise.
30710         * doc/posix-functions/optind.texi (optind): Likewise.
30711         * doc/posix-functions/optopt.texi (optopt): Likewise.
30712         * doc/posix-functions/tzname.texi (tzname): Likewise.
30713
30714         openat: update maintainer
30715         * modules/openat (Maintainer): Add myself.
30716
30717         utimens: avoid shadowing warning
30718         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
30719         buffers into one, to avoid shadowing, as well as avoiding a
30720         redundant stat.
30721         Reported by Jim Meyering.
30722
30723         test-dup2: avoid compiler warning
30724         * tests/test-dup2.c (is_inheritable): Only define if used.
30725
30726 2010-01-01  Bruno Haible  <bruno@clisp.org>
30727
30728         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
30729         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
30730         defined, use wctomb instead of wcrtomb.
30731
30732 2010-01-01  Bruno Haible  <bruno@clisp.org>
30733
30734         iconv: Reject native Solaris iconv.
30735         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
30736         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
30737
30738 2009-12-31  Bruno Haible  <bruno@clisp.org>
30739
30740         * tests/test-signal.c (main): Remove test of 'SIG'.
30741
30742 2009-12-31  Bruno Haible  <bruno@clisp.org>
30743
30744         spawn: Fix incomplete fix.
30745         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30746         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30747         warnings for GNULIB_POSIXCHECK again.
30748         Reported by Eric Blake.
30749
30750 2009-12-31  Bruno Haible  <bruno@clisp.org>
30751
30752         Avoid namespace pollution on glibc systems.
30753         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
30754         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
30755         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
30756         glibc systems.
30757
30758 2009-12-31  Bruno Haible  <bruno@clisp.org>
30759
30760         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30761         (gl_REPLACE_WCHAR_H): Turn into a no-op.
30762         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
30763         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30764         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30765         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30766         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30767
30768 2009-12-31  Bruno Haible  <bruno@clisp.org>
30769
30770         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30771         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
30772         afterwards.
30773
30774 2009-12-31  Bruno Haible  <bruno@clisp.org>
30775
30776         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
30777         SYS_UTSNAME_H.
30778
30779 2009-12-31  Bruno Haible  <bruno@clisp.org>
30780
30781         spawn: Fix misapplied patch.
30782         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30783         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30784         warnings for GNULIB_POSIXCHECK.
30785
30786 2009-12-31  Bruno Haible  <bruno@clisp.org>
30787
30788         times: Update after sys_times changed.
30789         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
30790         * modules/times (Files): Add it.
30791         (configure.ac): Invoke gl_FUNC_TIMES.
30792
30793 2009-12-31  Bruno Haible  <bruno@clisp.org>
30794
30795         Use AC_C_INLINE where necessary.
30796         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
30797         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30798         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
30799         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30800         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30801         * m4/mbiter.m4 (gl_MBITER): Likewise.
30802         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30803         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30804         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
30805         * modules/u64 (configure.ac): Likewise.
30806
30807 2009-12-31  Bruno Haible  <bruno@clisp.org>
30808
30809         Use AC_C_INLINE instead of module 'inline' where possible.
30810         * modules/inline (Description): Clarify purpose.
30811         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
30812         * modules/count-one-bits (Depends-on): Remove inline.
30813         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
30814         * modules/openat (Depends-on): Remove inline.
30815         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
30816         instead of depending on module 'inline'.
30817         * modules/filevercmp (Depends-on, configure.ac): Likewise.
30818         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
30819         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
30820         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
30821         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
30822         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
30823         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
30824         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
30825         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
30826         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
30827         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
30828         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
30829         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
30830         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
30831         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
30832         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
30833         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
30834         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
30835         Likewise.
30836         * modules/unictype/property-ascii-hex-digit (Depends-on,
30837         configure.ac): Likewise.
30838         * modules/unictype/property-bidi-arabic-digit (Depends-on,
30839         configure.ac): Likewise.
30840         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
30841         configure.ac): Likewise.
30842         * modules/unictype/property-bidi-block-separator (Depends-on,
30843         configure.ac): Likewise.
30844         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
30845         configure.ac): Likewise.
30846         * modules/unictype/property-bidi-common-separator (Depends-on,
30847         configure.ac): Likewise.
30848         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
30849         Likewise.
30850         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
30851         configure.ac): Likewise.
30852         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
30853         configure.ac): Likewise.
30854         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
30855         configure.ac): Likewise.
30856         * modules/unictype/property-bidi-european-digit (Depends-on,
30857         configure.ac): Likewise.
30858         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
30859         configure.ac): Likewise.
30860         * modules/unictype/property-bidi-left-to-right (Depends-on,
30861         configure.ac): Likewise.
30862         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
30863         configure.ac): Likewise.
30864         * modules/unictype/property-bidi-other-neutral (Depends-on,
30865         configure.ac): Likewise.
30866         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
30867         Likewise.
30868         * modules/unictype/property-bidi-segment-separator (Depends-on,
30869         configure.ac): Likewise.
30870         * modules/unictype/property-bidi-whitespace (Depends-on,
30871         configure.ac): Likewise.
30872         * modules/unictype/property-combining (Depends-on, configure.ac):
30873         Likewise.
30874         * modules/unictype/property-composite (Depends-on, configure.ac):
30875         Likewise.
30876         * modules/unictype/property-currency-symbol (Depends-on,
30877         configure.ac): Likewise.
30878         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
30879         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
30880         Likewise.
30881         * modules/unictype/property-default-ignorable-code-point (Depends-on,
30882         configure.ac): Likewise.
30883         * modules/unictype/property-deprecated (Depends-on, configure.ac):
30884         Likewise.
30885         * modules/unictype/property-diacritic (Depends-on, configure.ac):
30886         Likewise.
30887         * modules/unictype/property-extender (Depends-on, configure.ac):
30888         Likewise.
30889         * modules/unictype/property-format-control (Depends-on, configure.ac):
30890         Likewise.
30891         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
30892         Likewise.
30893         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
30894         Likewise.
30895         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
30896         Likewise.
30897         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
30898         Likewise.
30899         * modules/unictype/property-hyphen (Depends-on, configure.ac):
30900         Likewise.
30901         * modules/unictype/property-id-continue (Depends-on, configure.ac):
30902         Likewise.
30903         * modules/unictype/property-id-start (Depends-on, configure.ac):
30904         Likewise.
30905         * modules/unictype/property-ideographic (Depends-on, configure.ac):
30906         Likewise.
30907         * modules/unictype/property-ids-binary-operator (Depends-on,
30908         configure.ac): Likewise.
30909         * modules/unictype/property-ids-trinary-operator (Depends-on,
30910         configure.ac): Likewise.
30911         * modules/unictype/property-ignorable-control (Depends-on,
30912         configure.ac): Likewise.
30913         * modules/unictype/property-iso-control (Depends-on, configure.ac):
30914         Likewise.
30915         * modules/unictype/property-join-control (Depends-on, configure.ac):
30916         Likewise.
30917         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
30918         Likewise.
30919         * modules/unictype/property-line-separator (Depends-on, configure.ac):
30920         Likewise.
30921         * modules/unictype/property-logical-order-exception (Depends-on,
30922         configure.ac): Likewise.
30923         * modules/unictype/property-lowercase (Depends-on, configure.ac):
30924         Likewise.
30925         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
30926         * modules/unictype/property-non-break (Depends-on, configure.ac):
30927         Likewise.
30928         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
30929         Likewise.
30930         * modules/unictype/property-numeric (Depends-on, configure.ac):
30931         Likewise.
30932         * modules/unictype/property-other-alphabetic (Depends-on,
30933         configure.ac): Likewise.
30934         * modules/unictype/property-other-default-ignorable-code-point
30935         (Depends-on, configure.ac): Likewise.
30936         * modules/unictype/property-other-grapheme-extend (Depends-on,
30937         configure.ac): Likewise.
30938         * modules/unictype/property-other-id-continue (Depends-on,
30939         configure.ac): Likewise.
30940         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
30941         Likewise.
30942         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
30943         Likewise.
30944         * modules/unictype/property-other-math (Depends-on, configure.ac):
30945         Likewise.
30946         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
30947         Likewise.
30948         * modules/unictype/property-paired-punctuation (Depends-on,
30949         configure.ac): Likewise.
30950         * modules/unictype/property-paragraph-separator (Depends-on,
30951         configure.ac): Likewise.
30952         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
30953         Likewise.
30954         * modules/unictype/property-pattern-white-space (Depends-on,
30955         configure.ac): Likewise.
30956         * modules/unictype/property-private-use (Depends-on, configure.ac):
30957         Likewise.
30958         * modules/unictype/property-punctuation (Depends-on, configure.ac):
30959         Likewise.
30960         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
30961         Likewise.
30962         * modules/unictype/property-radical (Depends-on, configure.ac):
30963         Likewise.
30964         * modules/unictype/property-sentence-terminal (Depends-on,
30965         configure.ac): Likewise.
30966         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
30967         Likewise.
30968         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
30969         * modules/unictype/property-terminal-punctuation (Depends-on,
30970         configure.ac): Likewise.
30971         * modules/unictype/property-titlecase (Depends-on, configure.ac):
30972         Likewise.
30973         * modules/unictype/property-unassigned-code-value (Depends-on,
30974         configure.ac): Likewise.
30975         * modules/unictype/property-unified-ideograph (Depends-on,
30976         configure.ac): Likewise.
30977         * modules/unictype/property-uppercase (Depends-on, configure.ac):
30978         Likewise.
30979         * modules/unictype/property-variation-selector (Depends-on,
30980         configure.ac): Likewise.
30981         * modules/unictype/property-white-space (Depends-on, configure.ac):
30982         Likewise.
30983         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
30984         Likewise.
30985         * modules/unictype/property-xid-start (Depends-on, configure.ac):
30986         Likewise.
30987         * modules/unictype/property-zero-width (Depends-on, configure.ac):
30988         Likewise.
30989         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
30990         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
30991         Likewise.
30992
30993 2009-12-31  Bruno Haible  <bruno@clisp.org>
30994
30995         Remove unnecessary AC_C_INLINE invocation.
30996         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
30997         since 2009-08-21.
30998
30999 2009-12-31  Jim Meyering  <meyering@redhat.com>
31000
31001         maint.mk: don't require explicit gpg_key_ID in cfg.mk
31002         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
31003         With this change, we can all remove the gpg_key_ID = ... definition
31004         from our respective cfg.mk files.
31005
31006         maint.mk: create announcement template in ~/, not in /tmp
31007         * top/maint.mk (emit_upload_commands): Adjust.
31008         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
31009         Remove temporary file, .ci-msg.
31010
31011 2009-12-31  Eric Blake  <ebb9@byu.net>
31012
31013         link-warning: always build headers with link warnings
31014         * modules/arpa_inet (Makefile.am): Always build replacement
31015         header.
31016         * modules/ctype (Makefile.am): Likewise.
31017         * modules/dirent (Makefile.am): Likewise.
31018         * modules/inttypes (Makefile.am): Likewise.
31019         * modules/langinfo (Makefile.am): Likewise.
31020         * modules/locale (Makefile.am): Likewise.
31021         * modules/spawn (Makefile.am): Likewise.
31022         * modules/sys_file (Makefile.am): Likewise.
31023         * modules/sys_ioctl (Makefile.am): Likewise.
31024         * modules/sys_select (Makefile.am): Likewise.
31025         * modules/sys_socket (Makefile.am): Likewise.
31026         * modules/sys_times (Makefile.am): Likewise.
31027         * modules/sys_utsname (Makefile.am): Likewise.
31028         * modules/sys_wait (Makefile.am): Likewise.
31029         * modules/wchar (Makefile.am): Likewise.
31030         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
31031         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
31032         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
31033         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
31034         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
31035         Likewise.
31036         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31037         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31038         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
31039         Likewise.
31040         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
31041         Likewise.
31042         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
31043         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
31044         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
31045         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31046         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31047         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31048         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31049         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
31050         (gl_WCHAR_H_DEFAULTS): Likewise.
31051
31052 2009-12-31  Eric Blake  <ebb9@byu.net>
31053
31054         signal, spawn: use link warnings
31055         * lib/signal.in.h (sigset_t): Make unconditional.
31056         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
31057         (sigpending, sigprocmask, sigaction): Add link warnings.
31058         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
31059         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
31060         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
31061         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
31062         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
31063         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
31064         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
31065         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
31066         (posix_spawn_file_actions_destroy)
31067         (posix_spawn_file_actions_addopen)
31068         (posix_spawn_file_actions_addclose)
31069         (posix_spawn_file_actions_adddup2): Likewise.
31070         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
31071         * tests/test-signal.c (main): Enhance test.
31072
31073         spawn: improve wrapper support
31074         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
31075         (gl_SPAWN_H_DEFAULTS): New defaults.
31076         * modules/spawn (Makefile.am): Substitute them.
31077         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
31078         Only declare if missing or broken.
31079
31080         sys_times, sys_utsname: use include_next
31081         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
31082         header.
31083         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
31084         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31085         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31086         * modules/sys_times (Depends-on): Add include_next.
31087         (Makefile.am): Substitute additional values.
31088         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
31089         * lib/sys_times.in.h (includes): Include native header, if
31090         available.
31091         * lib/sys_utsname.in.h (includes): Likewise.
31092         * tests/test-sys_times.c (main): Enhance test.
31093
31094         fdutimensat: revert prior patch
31095         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
31096         utimens.h.
31097         Reported by Bruno Haible.
31098
31099 2009-12-30  Eric Blake  <ebb9@byu.net>
31100
31101         sys_wait: drop link-warning dependency
31102         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
31103         link-warning efforts.
31104         * lib/sys_wait.in.h: Likewise.
31105
31106         fdutimensat: remove bogus dependency
31107         * modules/fdutimensat (Depends-on): Drop inline.
31108
31109         unistd: fix typo
31110         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
31111
31112 2009-12-30  Bruno Haible  <bruno@clisp.org>
31113
31114         Fix compilation error with Solaris cc.
31115         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
31116         * lib/unicase/u16-is-invariant.c: Likewise.
31117         * lib/unicase/u32-is-invariant.c: Likewise.
31118         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
31119
31120 2009-12-30  Bruno Haible  <bruno@clisp.org>
31121
31122         Fix test crash.
31123         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
31124         locales.
31125         Reported by Simon Josefsson <simon@josefsson.org>.
31126
31127 2009-12-30  Bruno Haible  <bruno@clisp.org>
31128
31129         Fix compilation error on most platforms.
31130         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
31131         Reported by Simon Josefsson <simon@josefsson.org>
31132         and Nelson H. F. Beebe <beebe@math.utah.edu>.
31133
31134 2009-12-30  Eric Blake  <ebb9@byu.net>
31135
31136         futimens, utimensat: work around ntfs-3g bug
31137         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
31138         a ctime bug is present, and expand workaround to cover ntfs-3g.
31139         * lib/utimens.c (fdutimens, lutimens): Likewise.
31140         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
31141         (validate_timespec): Adjust return value.
31142         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
31143         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31144         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
31145
31146 2009-12-29  Eric Blake  <ebb9@byu.net>
31147
31148         link-warning: make usage consistent
31149         * modules/ctype (Depends-on): Add link-warning.
31150         (Makefile.am): Update rules accordingly.
31151         * modules/langinfo (Depends-on, Makefile.am): Likewise.
31152         * modules/locale (Depends-on, Makefile.am): Likewise.
31153         * modules/sys_file (Makefile.am): Likewise.
31154         * modules/getopt-posix (Makefile.am): Delete unused link warning
31155         efforts.
31156         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
31157         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
31158         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
31159         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
31160
31161         stdio: remove unused variables
31162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
31163         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
31164         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31165
31166         tests: test more substitute headers
31167         * modules/ctype-tests: New file.
31168         * modules/dirent-tests: Likewise.
31169         * modules/spawn-tests: Likewise.
31170         * modules/sys_file-tests: Likewise.
31171         * modules/sys_ioctl-tests: Likewise.
31172         * modules/sys_wait-tests: Likewise.
31173         * tests/test-ctype.c: Likewise.
31174         * tests/test-dirent.c: Likewise.
31175         * tests/test-spawn.c: Likewise.
31176         * tests/test-sys_file.c: Likewise.
31177         * tests/test-sys_ioctl.c: Likewise.
31178         * tests/test-sys_wait.c: Likewise.
31179         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
31180         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
31181         whether or not flock is in use.
31182
31183         tests: remove License section from module
31184         * modules/arpa_inet-tests: Remove unneeded section.
31185         * modules/byteswap-tests: Likewise.
31186         * modules/ceilf-tests: Likewise.
31187         * modules/ceill-tests: Likewise.
31188         * modules/crypto/des-tests: Likewise.
31189         * modules/crypto/gc-arcfour-tests: Likewise.
31190         * modules/crypto/gc-arctwo-tests: Likewise.
31191         * modules/crypto/gc-des-tests: Likewise.
31192         * modules/crypto/gc-hmac-md5-tests: Likewise.
31193         * modules/crypto/gc-hmac-sha1-tests: Likewise.
31194         * modules/crypto/gc-md2-tests: Likewise.
31195         * modules/crypto/gc-md4-tests: Likewise.
31196         * modules/crypto/gc-md5-tests: Likewise.
31197         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
31198         * modules/crypto/gc-rijndael-tests: Likewise.
31199         * modules/crypto/gc-sha1-tests: Likewise.
31200         * modules/crypto/gc-tests: Likewise.
31201         * modules/crypto/md2-tests: Likewise.
31202         * modules/crypto/md4-tests: Likewise.
31203         * modules/fcntl-h-tests: Likewise.
31204         * modules/floorf-tests: Likewise.
31205         * modules/floorl-tests: Likewise.
31206         * modules/frexp-nolibm-tests: Likewise.
31207         * modules/frexp-tests: Likewise.
31208         * modules/frexpl-nolibm-tests: Likewise.
31209         * modules/frexpl-tests: Likewise.
31210         * modules/getaddrinfo-tests: Likewise.
31211         * modules/inttypes-tests: Likewise.
31212         * modules/isfinite-tests: Likewise.
31213         * modules/isinf-tests: Likewise.
31214         * modules/ldexpl-tests: Likewise.
31215         * modules/locale-tests: Likewise.
31216         * modules/math-tests: Likewise.
31217         * modules/netdb-tests: Likewise.
31218         * modules/netinet_in-tests: Likewise.
31219         * modules/printf-frexp-tests: Likewise.
31220         * modules/printf-frexpl-tests: Likewise.
31221         * modules/priv-set-tests: Likewise.
31222         * modules/random_r-tests: Likewise.
31223         * modules/round-tests: Likewise.
31224         * modules/roundf-tests: Likewise.
31225         * modules/roundl-tests: Likewise.
31226         * modules/search-tests: Likewise.
31227         * modules/select-tests: Likewise.
31228         * modules/signal-tests: Likewise.
31229         * modules/stdbool-tests: Likewise.
31230         * modules/stddef-tests: Likewise.
31231         * modules/stdint-tests: Likewise.
31232         * modules/stdio-tests: Likewise.
31233         * modules/stdlib-tests: Likewise.
31234         * modules/string-tests: Likewise.
31235         * modules/strings-tests: Likewise.
31236         * modules/sys_select-tests: Likewise.
31237         * modules/sys_socket-tests: Likewise.
31238         * modules/sys_stat-tests: Likewise.
31239         * modules/sys_time-tests: Likewise.
31240         * modules/sys_utsname-tests: Likewise.
31241         * modules/sysexits-tests: Likewise.
31242         * modules/time-tests: Likewise.
31243         * modules/trunc-tests: Likewise.
31244         * modules/truncf-tests: Likewise.
31245         * modules/truncl-tests: Likewise.
31246         * modules/tsearch-tests: Likewise.
31247         * modules/unistd-tests: Likewise.
31248         * modules/wchar-tests: Likewise.
31249         * modules/wctype-tests: Likewise.
31250
31251         tests: fix license on several tests
31252         * tests/test-des.c: Update to GPLv3+.
31253         * tests/test-flock.c: Likewise.
31254         * tests/test-fsync.c: Likewise.
31255         * tests/test-futimens.h: Likewise.
31256         * tests/test-gc-arcfour.c: Likewise.
31257         * tests/test-gc-arctwo.c: Likewise.
31258         * tests/test-gc-des.c: Likewise.
31259         * tests/test-gc-hmac-md5.c: Likewise.
31260         * tests/test-gc-hmac-sha1.c: Likewise.
31261         * tests/test-gc-md2.c: Likewise.
31262         * tests/test-gc-md4.c: Likewise.
31263         * tests/test-gc-md5.c: Likewise.
31264         * tests/test-gc-pbkdf2-sha1.c: Likewise.
31265         * tests/test-gc-rijndael.c: Likewise.
31266         * tests/test-gc-sha1.c: Likewise.
31267         * tests/test-gc.c: Likewise.
31268         * tests/test-getcwd.c: Likewise.
31269         * tests/test-link.c: Likewise.
31270         * tests/test-link.h: Likewise.
31271         * tests/test-lutimens.h: Likewise.
31272         * tests/test-md2.c: Likewise.
31273         * tests/test-md4.c: Likewise.
31274         * tests/test-mkdir.h: Likewise.
31275         * tests/test-rename.c: Likewise.
31276         * tests/test-rename.h: Likewise.
31277         * tests/test-safe-alloc.c: Likewise.
31278         * tests/test-utimens-common.h: Likewise.
31279         * tests/test-utimens.h: Likewise.
31280
31281         maint: sync license texts
31282         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
31283         * doc/gpl-3.0.texi: Revert copyright year update.
31284         * doc/lgpl-3.0.texi: Likewise.
31285
31286 2009-12-29  Jim Meyering  <meyering@redhat.com>
31287
31288         update nearly all FSF copyright year lists to include 2009
31289         The files named by the following are exempted:
31290             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
31291               test -f "$dst" && { echo "$dst"; continue; }
31292               test -d "$dst" || continue
31293               echo "$dst"/$(basename "$src")
31294             done > exempt
31295             git ls-files tests/unictype >> exempt
31296         In the remaining files, convert to all-interval notation if
31297         - there is already at least one year interval like 2000-2003
31298         - the file is maintained by me
31299         - the file is in lib/uni*/, where that style already prevails
31300         Otherwise, use update-copyright's default.
31301
31302 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31303         and Eric Blake  <ebb9@byu.net>
31304
31305         tests: don't require debug system() to pass
31306         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
31307         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31308         * tests/test-unlink.h (test_unlink_func): Likewise.
31309         * tests/test-fstatat.c (main): ...into callers.
31310         * tests/test-lstat.c (main): Likewise.
31311         * tests/test-rmdir.c (main): Likewise.
31312         * tests/test-unlink.c (main): Likewise.
31313         * tests/test-unlinkat.c (main): Likewise.
31314         * tests/test-areadlink-with-size.c (main): Don't require a
31315         debug-only system call to pass, aiding cross-testing to mingw.
31316         * tests/test-areadlink.c (main): Likewise.
31317         * tests/test-areadlinkat-with-size.c (main): Likewise.
31318         * tests/test-areadlinkat.c (main): Likewise.
31319         * tests/test-canonicalize-lgpl.c (main): Likewise.
31320         * tests/test-canonicalize.c (main): Likewise.
31321         * tests/test-chown.c (main): Likewise.
31322         * tests/test-fchownat.c (main): Likewise.
31323         * tests/test-lchown.c (main): Likewise.
31324         * tests/test-fdutimensat.c (main): Likewise.
31325         * tests/test-futimens.c (main): Likewise.
31326         * tests/test-link.c (main): Likewise.
31327         * tests/test-linkat.c (main): Likewise.
31328         * tests/test-mkdir.c (main): Likewise.
31329         * tests/test-mkdirat.c (main): Likewise.
31330         * tests/test-mkfifo.c (main): Likewise.
31331         * tests/test-mkfifoat.c (main): Likewise.
31332         * tests/test-mknod.c (main): Likewise.
31333         * tests/test-readlink.c (main): Likewise.
31334         * tests/test-remove.c (main): Likewise.
31335         * tests/test-rename.c (main): Likewise.
31336         * tests/test-renameat.c (main): Likewise.
31337         * tests/test-symlink.c (main): Likewise.
31338         * tests/test-symlinkat.c (main): Likewise.
31339         * tests/test-utimens.c (main): Likewise.
31340         * tests/test-utimensat.c (main): Likewise.
31341
31342 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31343
31344         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
31345         on $(UNUSED_PARAMETER_H) to avoid build failure.
31346
31347 2009-12-28  Jim Meyering  <meyering@redhat.com>
31348
31349         update-copyright: you may specify a max. line length other than 72
31350         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31351
31352         maint: use consistent FSF copyright line syntax
31353         * lib/posixtm.c: Add missing comma in FSF copyright line.
31354         * lib/posixtm.h: Likewise.
31355         * lib/getugroups.c: Add missing ", Inc.".
31356
31357         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
31358         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
31359         FSF copyright line.  Remove trailing blanks.
31360
31361 2009-12-28  Eric Blake  <ebb9@byu.net>
31362
31363         test-dup2: reduce dependencies
31364         * modules/cloexec (Configure.ac): Set witness.
31365         * modules/dup2-tests (Depends-on): Drop cloexec.
31366         * tests/test-dup2.c (main): Skip portion of test if cloexec module
31367         not present.
31368         Suggested by Bruno Haible.
31369
31370 2009-12-26  Bruno Haible  <bruno@clisp.org>
31371
31372         Remove an unneeded dependency.
31373         * modules/fseterr (Depends-on): Remove dup2.
31374
31375 2009-12-26  Eric Blake  <ebb9@byu.net>
31376
31377         tests: use macros.h in more places
31378         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
31379         (ASSERT_STREAM): Provide default of stderr.
31380         * tests/test-dirent-safer.c: Include macros.h, using alternate
31381         stream for assertions.
31382         * tests/test-dup-safer.c: Likewise.
31383         * tests/test-freopen-safer.c: Likewise.
31384         * tests/test-getopt.c: Likewise.
31385         * tests/test-openat-safer.c: Likewise.
31386         * tests/test-pipe.c: Likewise.
31387         * tests/test-popen-safer.c: Likewise.
31388         * modules/dirent-safer-tests (Files): Include macros.h.
31389         * modules/unistd-safer-tests (Files): Likewise.
31390         * modules/freopen-safer-tests (Files): Likewise.
31391         * modules/getopt-posix-tests (Files): Likewise.
31392         * modules/openat-safer-tests (Files): Likewise.
31393         * modules/pipe-tests (Files): Likewise.
31394
31395 2009-12-26  Bruno Haible  <bruno@clisp.org>
31396
31397         javacomp: Portability fix.
31398         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
31399         that it also works on Solaris.
31400
31401 2009-12-26  Bruno Haible  <bruno@clisp.org>
31402
31403         localename: Fix storage allocation of gl_locale_name_thread's result.
31404         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
31405         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
31406         all platforms that have 'uselocale'.
31407         (gl_locale_name_thread_unsafe): New function, extracted from
31408         gl_locale_name_thread.
31409         (gl_locale_name_thread): Call struniq on all platforms that have
31410         'uselocale'.
31411         * tests/test-localename.c (test_locale_name_thread): Check that the
31412         resulting strings are permanently allocated.
31413         * modules/localename-tests (Depends-on): Add strdup.
31414
31415 2009-12-26  Bruno Haible  <bruno@clisp.org>
31416
31417         * tests/test-localename.c (categories): Fill in the strings.
31418
31419 2009-12-26  Jim Meyering  <meyering@redhat.com>
31420
31421         isdir: complete the removal of m4/isdir.m4
31422         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
31423
31424         isdir: clean up, since at least grep still uses it
31425         * lib/isdir.c: Include "isdir.h".
31426         (S_ISDIR): Remove now-unneeded definition.
31427         * modules/isdir (Files): Add lib/isdir.h.
31428         * lib/isdir.h: New file, with declaration.
31429         * m4/isdir.m4: Remove file -- unneeded.
31430
31431 2009-12-25  Bruno Haible  <bruno@clisp.org>
31432
31433         selinux-h: Make generated .h files standalone.
31434         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
31435         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
31436         * lib/se-selinux.in.h: Likewise.
31437         * modules/selinux-h (Depends-on): Add unused-parameter.
31438         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
31439         selinux/selinux.h and selinux/context.h.
31440         Suggested by Eric Blake.
31441
31442 2009-12-25  Bruno Haible  <bruno@clisp.org>
31443
31444         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
31445         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
31446         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
31447         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
31448         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
31449
31450 2009-12-24  Bruno Haible  <bruno@clisp.org>
31451
31452         openat: Fix warning.
31453         * lib/openat-proc.c: Include <unistd.h>.
31454
31455 2009-12-24  Bruno Haible  <bruno@clisp.org>
31456
31457         New module 'unused-parameter'.
31458         * build-aux/unused-parameter.h: New file, extracted from earlier
31459         gnulib-common.m4.
31460         * modules/unused-parameter: New file.
31461         * lib/unistr.h: Include unused-parameter.h.
31462         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
31463         _GL_UNUSED.
31464         * modules/unistr/base (Depends-on): Add unused-parameter.
31465
31466 2009-12-24  Bruno Haible  <bruno@clisp.org>
31467
31468         Add missing dependencies to 'extensions' module.
31469         * m4/extensions.m4: Add comment.
31470         * modules/accept4 (Depends-on): Add extensions.
31471         * modules/dup3 (Depends-on): Likewise.
31472         * modules/fcntl (Depends-on): Likewise.
31473         * modules/futimens (Depends-on): Likewise.
31474         * modules/mknod (Depends-on): Likewise.
31475         * modules/pipe2 (Depends-on): Likewise.
31476         * modules/stat-time (Depends-on): Likewise.
31477         * modules/strcasestr-simple (Depends-on): Likewise.
31478         * modules/strsignal (Depends-on): Likewise.
31479         * modules/utimensat (Depends-on): Likewise.
31480         * modules/localcharset (Depends-on): Likewise. Needed because of
31481         gl_FCNTL_O_FLAGS.
31482         * modules/wcrtomb (Depends-on): Likewise. Needed because of
31483         AC_TYPE_MBSTATE_T.
31484         * modules/wcsnrtombs (Depends-on): Likewise.
31485         * modules/wcsrtombs (Depends-on): Likewise.
31486
31487 2009-12-24  Bruno Haible  <bruno@clisp.org>
31488
31489         binary-io: Avoid gcc warning due to SET_BINARY.
31490         * lib/binary-io.h (SET_BINARY): Cast the result to void.
31491         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
31492
31493 2009-12-24  Bruno Haible  <bruno@clisp.org>
31494
31495         Avoid future namespace pollution on glibc systems.
31496         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
31497         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
31498         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
31499         glibc systems.
31500
31501 2009-12-24  Bruno Haible  <bruno@clisp.org>
31502
31503         Refactor common macros used in tests.
31504         * tests/macros.h: New file.
31505         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
31506         and/or <stdlib.h>, if appropriate.
31507         (ASSERT, SIZEOF): Remove macros.
31508         * tests/test-areadlink-with-size.c: Likewise.
31509         * tests/test-areadlinkat.c: Likewise.
31510         * tests/test-areadlinkat-with-size.c: Likewise.
31511         * tests/test-argmatch.c: Likewise.
31512         * tests/test-argv-iter.c: Likewise.
31513         * tests/test-array-mergesort.c: Likewise.
31514         * tests/test-array_list.c: Likewise.
31515         * tests/test-array_oset.c: Likewise.
31516         * tests/test-avltree_list.c: Likewise.
31517         * tests/test-avltree_oset.c: Likewise.
31518         * tests/test-avltreehash_list.c: Likewise.
31519         * tests/test-base64.c: Likewise.
31520         * tests/test-binary-io.c: Likewise.
31521         * tests/test-bitrotate.c: Likewise.
31522         * tests/test-btowc.c: Likewise.
31523         * tests/test-byteswap.c: Likewise.
31524         * tests/test-c-ctype.c: Likewise.
31525         * tests/test-c-stack.c: Likewise.
31526         * tests/test-c-strcasecmp.c: Likewise.
31527         * tests/test-c-strcasestr.c: Likewise.
31528         * tests/test-c-strncasecmp.c: Likewise.
31529         * tests/test-c-strstr.c: Likewise.
31530         * tests/test-canonicalize-lgpl.c: Likewise.
31531         * tests/test-canonicalize.c: Likewise.
31532         * tests/test-carray_list.c: Likewise.
31533         * tests/test-ceilf1.c: Likewise.
31534         * tests/test-ceilf2.c: Likewise.
31535         * tests/test-ceill.c: Likewise.
31536         * tests/test-chown.c: Likewise.
31537         * tests/test-cloexec.c: Likewise.
31538         * tests/test-copy-acl.c: Likewise.
31539         * tests/test-copy-file.c: Likewise.
31540         * tests/test-count-one-bits.c: Likewise.
31541         * tests/test-dprintf-posix.c: Likewise.
31542         * tests/test-dup2.c: Likewise.
31543         * tests/test-dup3.c: Likewise.
31544         * tests/test-duplocale.c: Likewise.
31545         * tests/test-fbufmode.c: Likewise.
31546         * tests/test-fchdir.c: Likewise.
31547         * tests/test-fchownat.c: Likewise.
31548         * tests/test-fcntl-safer.c: Likewise.
31549         * tests/test-fcntl.c: Likewise.
31550         * tests/test-fdopendir.c: Likewise.
31551         * tests/test-fdutimensat.c: Likewise.
31552         * tests/test-fflush2.c: Likewise.
31553         * tests/test-file-has-acl.c: Likewise.
31554         * tests/test-filevercmp.c: Likewise.
31555         * tests/test-flock.c: Likewise.
31556         * tests/test-floorf1.c: Likewise.
31557         * tests/test-floorf2.c: Likewise.
31558         * tests/test-floorl.c: Likewise.
31559         * tests/test-fnmatch.c: Likewise.
31560         * tests/test-fopen.h: Likewise.
31561         * tests/test-fpending.c: Likewise.
31562         * tests/test-fprintf-posix.c: Likewise.
31563         * tests/test-fpurge.c: Likewise.
31564         * tests/test-freadable.c: Likewise.
31565         * tests/test-freadahead.c: Likewise.
31566         * tests/test-freading.c: Likewise.
31567         * tests/test-freadptr.c: Likewise.
31568         * tests/test-freadptr2.c: Likewise.
31569         * tests/test-freadseek.c: Likewise.
31570         * tests/test-freopen.c: Likewise.
31571         * tests/test-frexp.c: Likewise.
31572         * tests/test-frexpl.c: Likewise.
31573         * tests/test-fseek.c: Likewise.
31574         * tests/test-fseeko.c: Likewise.
31575         * tests/test-fstatat.c: Likewise.
31576         * tests/test-fstrcmp.c: Likewise.
31577         * tests/test-fsync.c: Likewise.
31578         * tests/test-ftell.c: Likewise.
31579         * tests/test-ftello.c: Likewise.
31580         * tests/test-func.c: Likewise.
31581         * tests/test-futimens.c: Likewise.
31582         * tests/test-fwritable.c: Likewise.
31583         * tests/test-fwriting.c: Likewise.
31584         * tests/test-getcwd.c: Likewise.
31585         * tests/test-getdate.c: Likewise.
31586         * tests/test-getdelim.c: Likewise.
31587         * tests/test-getdtablesize.c: Likewise.
31588         * tests/test-getgroups.c: Likewise.
31589         * tests/test-getline.c: Likewise.
31590         * tests/test-getndelim2.c: Likewise.
31591         * tests/test-glob.c: Likewise.
31592         * tests/test-hash.c: Likewise.
31593         * tests/test-i-ring.c: Likewise.
31594         * tests/test-iconv-utf.c: Likewise.
31595         * tests/test-iconv.c: Likewise.
31596         * tests/test-idpriv-drop.c: Likewise.
31597         * tests/test-idpriv-droptemp.c: Likewise.
31598         * tests/test-inet_ntop.c: Likewise.
31599         * tests/test-inet_pton.c: Likewise.
31600         * tests/test-isblank.c: Likewise.
31601         * tests/test-isfinite.c: Likewise.
31602         * tests/test-isinf.c: Likewise.
31603         * tests/test-isnan.c: Likewise.
31604         * tests/test-isnand.h: Likewise.
31605         * tests/test-isnanf.h: Likewise.
31606         * tests/test-isnanl.h: Likewise.
31607         * tests/test-lchown.c: Likewise.
31608         * tests/test-ldexpl.c: Likewise.
31609         * tests/test-link.c: Likewise.
31610         * tests/test-linkat.c: Likewise.
31611         * tests/test-linked_list.c: Likewise.
31612         * tests/test-linkedhash_list.c: Likewise.
31613         * tests/test-localename.c: Likewise.
31614         * tests/test-lseek.c: Likewise.
31615         * tests/test-lstat.c: Likewise.
31616         * tests/test-mbmemcasecmp.c: Likewise.
31617         * tests/test-mbmemcasecoll.c: Likewise.
31618         * tests/test-mbrtowc.c: Likewise.
31619         * tests/test-mbscasecmp.c: Likewise.
31620         * tests/test-mbscasestr1.c: Likewise.
31621         * tests/test-mbscasestr2.c: Likewise.
31622         * tests/test-mbscasestr3.c: Likewise.
31623         * tests/test-mbscasestr4.c: Likewise.
31624         * tests/test-mbschr.c: Likewise.
31625         * tests/test-mbscspn.c: Likewise.
31626         * tests/test-mbsinit.c: Likewise.
31627         * tests/test-mbsncasecmp.c: Likewise.
31628         * tests/test-mbsnrtowcs.c: Likewise.
31629         * tests/test-mbspbrk.c: Likewise.
31630         * tests/test-mbspcasecmp.c: Likewise.
31631         * tests/test-mbsrchr.c: Likewise.
31632         * tests/test-mbsrtowcs.c: Likewise.
31633         * tests/test-mbsspn.c: Likewise.
31634         * tests/test-mbsstr1.c: Likewise.
31635         * tests/test-mbsstr2.c: Likewise.
31636         * tests/test-mbsstr3.c: Likewise.
31637         * tests/test-memchr.c: Likewise.
31638         * tests/test-memchr2.c: Likewise.
31639         * tests/test-memcmp.c: Likewise.
31640         * tests/test-memmem.c: Likewise.
31641         * tests/test-memrchr.c: Likewise.
31642         * tests/test-mkdir.c: Likewise.
31643         * tests/test-mkdirat.c: Likewise.
31644         * tests/test-mkfifo.c: Likewise.
31645         * tests/test-mkfifoat.c: Likewise.
31646         * tests/test-mknod.c: Likewise.
31647         * tests/test-nanosleep.c: Likewise.
31648         * tests/test-nl_langinfo.c: Likewise.
31649         * tests/test-obstack-printf.c: Likewise.
31650         * tests/test-open.c: Likewise.
31651         * tests/test-openat.c: Likewise.
31652         * tests/test-pipe-filter-gi1.c: Likewise.
31653         * tests/test-pipe-filter-gi2-main.c: Likewise.
31654         * tests/test-pipe-filter-ii1.c: Likewise.
31655         * tests/test-pipe-filter-ii2-main.c: Likewise.
31656         * tests/test-pipe2.c: Likewise.
31657         * tests/test-popen.h: Likewise.
31658         * tests/test-posixtm.c: Likewise.
31659         * tests/test-pread.c: Likewise.
31660         * tests/test-printf-frexp.c: Likewise.
31661         * tests/test-printf-frexpl.c: Likewise.
31662         * tests/test-printf-posix.c: Likewise.
31663         * tests/test-priv-set.c: Likewise.
31664         * tests/test-quotearg.c: Likewise.
31665         * tests/test-random_r.c: Likewise.
31666         * tests/test-rawmemchr.c: Likewise.
31667         * tests/test-rbtree_list.c: Likewise.
31668         * tests/test-rbtree_oset.c: Likewise.
31669         * tests/test-rbtreehash_list.c: Likewise.
31670         * tests/test-readlink.c: Likewise.
31671         * tests/test-remove.c: Likewise.
31672         * tests/test-rename.c: Likewise.
31673         * tests/test-renameat.c: Likewise.
31674         * tests/test-rmdir.c: Likewise.
31675         * tests/test-round1.c: Likewise.
31676         * tests/test-roundf1.c: Likewise.
31677         * tests/test-roundl.c: Likewise.
31678         * tests/test-safe-alloc.c: Likewise.
31679         * tests/test-sameacls.c: Likewise.
31680         * tests/test-set-mode-acl.c: Likewise.
31681         * tests/test-setenv.c: Likewise.
31682         * tests/test-sigaction.c: Likewise.
31683         * tests/test-signbit.c: Likewise.
31684         * tests/test-sleep.c: Likewise.
31685         * tests/test-snprintf-posix.c: Likewise.
31686         * tests/test-snprintf.c: Likewise.
31687         * tests/test-sprintf-posix.c: Likewise.
31688         * tests/test-stat-time.c: Likewise.
31689         * tests/test-stat.c: Likewise.
31690         * tests/test-strcasestr.c: Likewise.
31691         * tests/test-strchrnul.c: Likewise.
31692         * tests/test-strerror.c: Likewise.
31693         * tests/test-striconv.c: Likewise.
31694         * tests/test-striconveh.c: Likewise.
31695         * tests/test-striconveha.c: Likewise.
31696         * tests/test-strsignal.c: Likewise.
31697         * tests/test-strstr.c: Likewise.
31698         * tests/test-strtod.c: Likewise.
31699         * tests/test-strverscmp.c: Likewise.
31700         * tests/test-symlink.c: Likewise.
31701         * tests/test-symlinkat.c: Likewise.
31702         * tests/test-trunc1.c: Likewise.
31703         * tests/test-trunc2.c: Likewise.
31704         * tests/test-truncf1.c: Likewise.
31705         * tests/test-truncf2.c: Likewise.
31706         * tests/test-truncl.c: Likewise.
31707         * tests/test-uname.c: Likewise.
31708         * tests/test-unlink.c: Likewise.
31709         * tests/test-unlinkat.c: Likewise.
31710         * tests/test-unsetenv.c: Likewise.
31711         * tests/test-usleep.c: Likewise.
31712         * tests/test-utimens.c: Likewise.
31713         * tests/test-utimensat.c: Likewise.
31714         * tests/test-vasnprintf-posix.c: Likewise.
31715         * tests/test-vasnprintf-posix2.c: Likewise.
31716         * tests/test-vasnprintf.c: Likewise.
31717         * tests/test-vasprintf-posix.c: Likewise.
31718         * tests/test-vasprintf.c: Likewise.
31719         * tests/test-vdprintf-posix.c: Likewise.
31720         * tests/test-vfprintf-posix.c: Likewise.
31721         * tests/test-vprintf-posix.c: Likewise.
31722         * tests/test-vsnprintf-posix.c: Likewise.
31723         * tests/test-vsnprintf.c: Likewise.
31724         * tests/test-vsprintf-posix.c: Likewise.
31725         * tests/test-wcrtomb.c: Likewise.
31726         * tests/test-wcsnrtombs.c: Likewise.
31727         * tests/test-wcsrtombs.c: Likewise.
31728         * tests/test-wctype.c: Likewise.
31729         * tests/test-wcwidth.c: Likewise.
31730         * tests/test-xfprintf-posix.c: Likewise.
31731         * tests/test-xmemdup0.c: Likewise.
31732         * tests/test-xprintf-posix.c: Likewise.
31733         * tests/test-xvasprintf.c: Likewise.
31734         * tests/unicase/test-locale-language.c: Likewise.
31735         * tests/unicase/test-mapping-part1.h: Likewise.
31736         * tests/unicase/test-predicate-part1.h: Likewise.
31737         * tests/unicase/test-u8-casecmp.c: Likewise.
31738         * tests/unicase/test-u8-casecoll.c: Likewise.
31739         * tests/unicase/test-u8-casefold.c: Likewise.
31740         * tests/unicase/test-u8-is-cased.c: Likewise.
31741         * tests/unicase/test-u8-is-casefolded.c: Likewise.
31742         * tests/unicase/test-u8-is-lowercase.c: Likewise.
31743         * tests/unicase/test-u8-is-titlecase.c: Likewise.
31744         * tests/unicase/test-u8-is-uppercase.c: Likewise.
31745         * tests/unicase/test-u8-tolower.c: Likewise.
31746         * tests/unicase/test-u8-totitle.c: Likewise.
31747         * tests/unicase/test-u8-toupper.c: Likewise.
31748         * tests/unicase/test-u16-casecmp.c: Likewise.
31749         * tests/unicase/test-u16-casecoll.c: Likewise.
31750         * tests/unicase/test-u16-casefold.c: Likewise.
31751         * tests/unicase/test-u16-is-cased.c: Likewise.
31752         * tests/unicase/test-u16-is-casefolded.c: Likewise.
31753         * tests/unicase/test-u16-is-lowercase.c: Likewise.
31754         * tests/unicase/test-u16-is-titlecase.c: Likewise.
31755         * tests/unicase/test-u16-is-uppercase.c: Likewise.
31756         * tests/unicase/test-u16-tolower.c: Likewise.
31757         * tests/unicase/test-u16-totitle.c: Likewise.
31758         * tests/unicase/test-u16-toupper.c: Likewise.
31759         * tests/unicase/test-u32-casecmp.c: Likewise.
31760         * tests/unicase/test-u32-casecoll.c: Likewise.
31761         * tests/unicase/test-u32-casefold.c: Likewise.
31762         * tests/unicase/test-u32-is-cased.c: Likewise.
31763         * tests/unicase/test-u32-is-casefolded.c: Likewise.
31764         * tests/unicase/test-u32-is-lowercase.c: Likewise.
31765         * tests/unicase/test-u32-is-titlecase.c: Likewise.
31766         * tests/unicase/test-u32-is-uppercase.c: Likewise.
31767         * tests/unicase/test-u32-tolower.c: Likewise.
31768         * tests/unicase/test-u32-totitle.c: Likewise.
31769         * tests/unicase/test-u32-toupper.c: Likewise.
31770         * tests/unicase/test-ulc-casecmp.c: Likewise.
31771         * tests/unicase/test-ulc-casecoll.c: Likewise.
31772         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31773         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31774         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31775         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31776         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31777         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31778         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31779         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31780         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31781         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31782         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31783         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31784         * tests/unictype/test-bidi_byname.c: Likewise.
31785         * tests/unictype/test-bidi_name.c: Likewise.
31786         * tests/unictype/test-bidi_of.c: Likewise.
31787         * tests/unictype/test-bidi_test.c: Likewise.
31788         * tests/unictype/test-block_list.c: Likewise.
31789         * tests/unictype/test-block_of.c: Likewise.
31790         * tests/unictype/test-block_test.c: Likewise.
31791         * tests/unictype/test-categ_and.c: Likewise.
31792         * tests/unictype/test-categ_and_not.c: Likewise.
31793         * tests/unictype/test-categ_byname.c: Likewise.
31794         * tests/unictype/test-categ_name.c: Likewise.
31795         * tests/unictype/test-categ_none.c: Likewise.
31796         * tests/unictype/test-categ_of.c: Likewise.
31797         * tests/unictype/test-categ_or.c: Likewise.
31798         * tests/unictype/test-categ_test_withtable.c: Likewise.
31799         * tests/unictype/test-combining.c: Likewise.
31800         * tests/unictype/test-decdigit.c: Likewise.
31801         * tests/unictype/test-digit.c: Likewise.
31802         * tests/unictype/test-mirror.c: Likewise.
31803         * tests/unictype/test-numeric.c: Likewise.
31804         * tests/unictype/test-pr_byname.c: Likewise.
31805         * tests/unictype/test-pr_test.c: Likewise.
31806         * tests/unictype/test-predicate-part1.h: Likewise.
31807         * tests/unictype/test-scripts.c: Likewise.
31808         * tests/unictype/test-sy_c_ident.c: Likewise.
31809         * tests/unictype/test-sy_java_ident.c: Likewise.
31810         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
31811         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
31812         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
31813         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
31814         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
31815         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
31816         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
31817         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
31818         * tests/uninorm/test-canonical-decomposition.c: Likewise.
31819         * tests/uninorm/test-compat-decomposition.c: Likewise.
31820         * tests/uninorm/test-composition.c: Likewise.
31821         * tests/uninorm/test-decomposing-form.c: Likewise.
31822         * tests/uninorm/test-decomposition.c: Likewise.
31823         * tests/uninorm/test-u8-nfc.c: Likewise.
31824         * tests/uninorm/test-u8-nfd.c: Likewise.
31825         * tests/uninorm/test-u8-nfkc.c: Likewise.
31826         * tests/uninorm/test-u8-nfkd.c: Likewise.
31827         * tests/uninorm/test-u8-normcmp.c: Likewise.
31828         * tests/uninorm/test-u8-normcoll.c: Likewise.
31829         * tests/uninorm/test-u16-nfc.c: Likewise.
31830         * tests/uninorm/test-u16-nfd.c: Likewise.
31831         * tests/uninorm/test-u16-nfkc.c: Likewise.
31832         * tests/uninorm/test-u16-nfkd.c: Likewise.
31833         * tests/uninorm/test-u16-normcmp.c: Likewise.
31834         * tests/uninorm/test-u16-normcoll.c: Likewise.
31835         * tests/uninorm/test-u32-nfc.c: Likewise.
31836         * tests/uninorm/test-u32-nfd.c: Likewise.
31837         * tests/uninorm/test-u32-nfkc.c: Likewise.
31838         * tests/uninorm/test-u32-nfkd.c: Likewise.
31839         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31840         * tests/uninorm/test-u32-normcmp.c: Likewise.
31841         * tests/uninorm/test-u32-normcoll.c: Likewise.
31842         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
31843         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31844         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31845         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31846         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31847         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31848         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31849         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31850         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31851         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31852         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31853         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31854         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31855         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31856         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31857         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31858         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31859         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31860         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31861         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31862         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31863         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31864         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31865         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31866         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31867         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31868         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31869         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31870         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31871         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
31872         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
31873         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
31874         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
31875         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31876         * tests/uniwidth/test-u8-width.c: Likewise.
31877         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31878         * tests/uniwidth/test-u16-width.c: Likewise.
31879         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31880         * tests/uniwidth/test-u32-width.c: Likewise.
31881         * tests/uniwidth/test-uc_width.c: Likewise.
31882         * tests/uniwidth/test-uc_width2.c: Likewise.
31883         * modules/acl-tests (Files): Add tests/macros.h.
31884         * modules/areadlink-tests (Files): Likewise.
31885         * modules/areadlink-with-size-tests (Files): Likewise.
31886         * modules/areadlinkat-tests (Files): Likewise.
31887         * modules/areadlinkat-with-size-tests (Files): Likewise.
31888         * modules/argmatch-tests (Files): Likewise.
31889         * modules/argv-iter-tests (Files): Likewise.
31890         * modules/array-list-tests (Files): Likewise.
31891         * modules/array-mergesort-tests (Files): Likewise.
31892         * modules/array-oset-tests (Files): Likewise.
31893         * modules/avltree-list-tests (Files): Likewise.
31894         * modules/avltree-oset-tests (Files): Likewise.
31895         * modules/avltreehash-list-tests (Files): Likewise.
31896         * modules/base64-tests (Files): Likewise.
31897         * modules/binary-io-tests (Files): Likewise.
31898         * modules/bitrotate-tests (Files): Likewise.
31899         * modules/btowc-tests (Files): Likewise.
31900         * modules/byteswap-tests (Files): Likewise.
31901         * modules/c-ctype-tests (Files): Likewise.
31902         * modules/c-stack-tests (Files): Likewise.
31903         * modules/c-strcase-tests (Files): Likewise.
31904         * modules/c-strcasestr-tests (Files): Likewise.
31905         * modules/c-strstr-tests (Files): Likewise.
31906         * modules/canonicalize-lgpl-tests (Files): Likewise.
31907         * modules/canonicalize-tests (Files): Likewise.
31908         * modules/carray-list-tests (Files): Likewise.
31909         * modules/ceilf-tests (Files): Likewise.
31910         * modules/ceill-tests (Files): Likewise.
31911         * modules/chown-tests (Files): Likewise.
31912         * modules/cloexec-tests (Files): Likewise.
31913         * modules/copy-file-tests (Files): Likewise.
31914         * modules/count-one-bits-tests (Files): Likewise.
31915         * modules/dprintf-posix-tests (Files): Likewise.
31916         * modules/dup2-tests (Files): Likewise.
31917         * modules/dup3-tests (Files): Likewise.
31918         * modules/duplocale-tests (Files): Likewise.
31919         * modules/fbufmode-tests (Files): Likewise.
31920         * modules/fchdir-tests (Files): Likewise.
31921         * modules/fcntl-safer-tests (Files): Likewise.
31922         * modules/fcntl-tests (Files): Likewise.
31923         * modules/fdopendir-tests (Files): Likewise.
31924         * modules/fdutimensat-tests (Files): Likewise.
31925         * modules/fflush-tests (Files): Likewise.
31926         * modules/filevercmp-tests (Files): Likewise.
31927         * modules/flock-tests (Files): Likewise.
31928         * modules/floorf-tests (Files): Likewise.
31929         * modules/floorl-tests (Files): Likewise.
31930         * modules/fnmatch-tests (Files): Likewise.
31931         * modules/fopen-safer-tests (Files): Likewise.
31932         * modules/fopen-tests (Files): Likewise.
31933         * modules/fpending-tests (Files): Likewise.
31934         * modules/fprintf-posix-tests (Files): Likewise.
31935         * modules/fpurge-tests (Files): Likewise.
31936         * modules/freadable-tests (Files): Likewise.
31937         * modules/freadahead-tests (Files): Likewise.
31938         * modules/freading-tests (Files): Likewise.
31939         * modules/freadptr-tests (Files): Likewise.
31940         * modules/freadseek-tests (Files): Likewise.
31941         * modules/freopen-tests (Files): Likewise.
31942         * modules/frexp-nolibm-tests (Files): Likewise.
31943         * modules/frexp-tests (Files): Likewise.
31944         * modules/frexpl-nolibm-tests (Files): Likewise.
31945         * modules/frexpl-tests (Files): Likewise.
31946         * modules/fseek-tests (Files): Likewise.
31947         * modules/fseeko-tests (Files): Likewise.
31948         * modules/fstrcmp-tests (Files): Likewise.
31949         * modules/fsync-tests (Files): Likewise.
31950         * modules/ftell-tests (Files): Likewise.
31951         * modules/ftello-tests (Files): Likewise.
31952         * modules/func-tests (Files): Likewise.
31953         * modules/futimens-tests (Files): Likewise.
31954         * modules/fwritable-tests (Files): Likewise.
31955         * modules/fwriting-tests (Files): Likewise.
31956         * modules/getcwd-tests (Files): Likewise.
31957         * modules/getdate-tests (Files): Likewise.
31958         * modules/getdelim-tests (Files): Likewise.
31959         * modules/getdtablesize-tests (Files): Likewise.
31960         * modules/getgroups-tests (Files): Likewise.
31961         * modules/getline-tests (Files): Likewise.
31962         * modules/getndelim2-tests (Files): Likewise.
31963         * modules/glob-tests (Files): Likewise.
31964         * modules/hash-tests (Files): Likewise.
31965         * modules/i-ring-tests (Files): Likewise.
31966         * modules/iconv-tests (Files): Likewise.
31967         * modules/iconv_open-utf-tests (Files): Likewise.
31968         * modules/idpriv-drop-tests (Files): Likewise.
31969         * modules/idpriv-droptemp-tests (Files): Likewise.
31970         * modules/inet_ntop-tests (Files): Likewise.
31971         * modules/inet_pton-tests (Files): Likewise.
31972         * modules/isblank-tests (Files): Likewise.
31973         * modules/isfinite-tests (Files): Likewise.
31974         * modules/isinf-tests (Files): Likewise.
31975         * modules/isnan-tests (Files): Likewise.
31976         * modules/isnand-nolibm-tests (Files): Likewise.
31977         * modules/isnand-tests (Files): Likewise.
31978         * modules/isnanf-nolibm-tests (Files): Likewise.
31979         * modules/isnanf-tests (Files): Likewise.
31980         * modules/isnanl-nolibm-tests (Files): Likewise.
31981         * modules/isnanl-tests (Files): Likewise.
31982         * modules/lchown-tests (Files): Likewise.
31983         * modules/ldexpl-tests (Files): Likewise.
31984         * modules/link-tests (Files): Likewise.
31985         * modules/linkat-tests (Files): Likewise.
31986         * modules/linked-list-tests (Files): Likewise.
31987         * modules/linkedhash-list-tests (Files): Likewise.
31988         * modules/localename-tests (Files): Likewise.
31989         * modules/lseek-tests (Files): Likewise.
31990         * modules/lstat-tests (Files): Likewise.
31991         * modules/mbmemcasecmp-tests (Files): Likewise.
31992         * modules/mbmemcasecoll-tests (Files): Likewise.
31993         * modules/mbrtowc-tests (Files): Likewise.
31994         * modules/mbscasecmp-tests (Files): Likewise.
31995         * modules/mbscasestr-tests (Files): Likewise.
31996         * modules/mbschr-tests (Files): Likewise.
31997         * modules/mbscspn-tests (Files): Likewise.
31998         * modules/mbsinit-tests (Files): Likewise.
31999         * modules/mbsncasecmp-tests (Files): Likewise.
32000         * modules/mbsnrtowcs-tests (Files): Likewise.
32001         * modules/mbspbrk-tests (Files): Likewise.
32002         * modules/mbspcasecmp-tests (Files): Likewise.
32003         * modules/mbsrchr-tests (Files): Likewise.
32004         * modules/mbsrtowcs-tests (Files): Likewise.
32005         * modules/mbsspn-tests (Files): Likewise.
32006         * modules/mbsstr-tests (Files): Likewise.
32007         * modules/memchr-tests (Files): Likewise.
32008         * modules/memchr2-tests (Files): Likewise.
32009         * modules/memcmp-tests (Files): Likewise.
32010         * modules/memmem-tests (Files): Likewise.
32011         * modules/memrchr-tests (Files): Likewise.
32012         * modules/mkdir-tests (Files): Likewise.
32013         * modules/mkfifo-tests (Files): Likewise.
32014         * modules/mkfifoat-tests (Files): Likewise.
32015         * modules/mknod-tests (Files): Likewise.
32016         * modules/nanosleep-tests (Files): Likewise.
32017         * modules/nl_langinfo-tests (Files): Likewise.
32018         * modules/obstack-printf-tests (Files): Likewise.
32019         * modules/open-tests (Files): Likewise.
32020         * modules/openat-tests (Files): Likewise.
32021         * modules/pipe-filter-gi-tests (Files): Likewise.
32022         * modules/pipe-filter-ii-tests (Files): Likewise.
32023         * modules/pipe2-tests (Files): Likewise.
32024         * modules/popen-safer-tests (Files): Likewise.
32025         * modules/popen-tests (Files): Likewise.
32026         * modules/posixtm-tests (Files): Likewise.
32027         * modules/pread-tests (Files): Likewise.
32028         * modules/printf-frexp-tests (Files): Likewise.
32029         * modules/printf-frexpl-tests (Files): Likewise.
32030         * modules/printf-posix-tests (Files): Likewise.
32031         * modules/priv-set-tests (Files): Likewise.
32032         * modules/quotearg-tests (Files): Likewise.
32033         * modules/random_r-tests (Files): Likewise.
32034         * modules/rawmemchr-tests (Files): Likewise.
32035         * modules/rbtree-list-tests (Files): Likewise.
32036         * modules/rbtree-oset-tests (Files): Likewise.
32037         * modules/rbtreehash-list-tests (Files): Likewise.
32038         * modules/readlink-tests (Files): Likewise.
32039         * modules/remove-tests (Files): Likewise.
32040         * modules/rename-tests (Files): Likewise.
32041         * modules/renameat-tests (Files): Likewise.
32042         * modules/rmdir-tests (Files): Likewise.
32043         * modules/round-tests (Files): Likewise.
32044         * modules/roundf-tests (Files): Likewise.
32045         * modules/roundl-tests (Files): Likewise.
32046         * modules/safe-alloc-tests (Files): Likewise.
32047         * modules/setenv-tests (Files): Likewise.
32048         * modules/sigaction-tests (Files): Likewise.
32049         * modules/signbit-tests (Files): Likewise.
32050         * modules/sleep-tests (Files): Likewise.
32051         * modules/snprintf-posix-tests (Files): Likewise.
32052         * modules/snprintf-tests (Files): Likewise.
32053         * modules/sprintf-posix-tests (Files): Likewise.
32054         * modules/stat-tests (Files): Likewise.
32055         * modules/stat-time-tests (Files): Likewise.
32056         * modules/strcasestr-tests (Files): Likewise.
32057         * modules/strchrnul-tests (Files): Likewise.
32058         * modules/strerror-tests (Files): Likewise.
32059         * modules/striconv-tests (Files): Likewise.
32060         * modules/striconveh-tests (Files): Likewise.
32061         * modules/striconveha-tests (Files): Likewise.
32062         * modules/strsignal-tests (Files): Likewise.
32063         * modules/strstr-tests (Files): Likewise.
32064         * modules/strtod-tests (Files): Likewise.
32065         * modules/strverscmp-tests (Files): Likewise.
32066         * modules/symlink-tests (Files): Likewise.
32067         * modules/symlinkat-tests (Files): Likewise.
32068         * modules/trunc-tests (Files): Likewise.
32069         * modules/truncf-tests (Files): Likewise.
32070         * modules/truncl-tests (Files): Likewise.
32071         * modules/uname-tests (Files): Likewise.
32072         * modules/unicase/cased-tests (Files): Likewise.
32073         * modules/unicase/ignorable-tests (Files): Likewise.
32074         * modules/unicase/locale-language-tests (Files): Likewise.
32075         * modules/unicase/tolower-tests (Files): Likewise.
32076         * modules/unicase/totitle-tests (Files): Likewise.
32077         * modules/unicase/toupper-tests (Files): Likewise.
32078         * modules/unicase/u8-casecmp-tests (Files): Likewise.
32079         * modules/unicase/u8-casecoll-tests (Files): Likewise.
32080         * modules/unicase/u8-casefold-tests (Files): Likewise.
32081         * modules/unicase/u8-is-cased-tests (Files): Likewise.
32082         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
32083         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
32084         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
32085         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
32086         * modules/unicase/u8-tolower-tests (Files): Likewise.
32087         * modules/unicase/u8-totitle-tests (Files): Likewise.
32088         * modules/unicase/u8-toupper-tests (Files): Likewise.
32089         * modules/unicase/u16-casecmp-tests (Files): Likewise.
32090         * modules/unicase/u16-casecoll-tests (Files): Likewise.
32091         * modules/unicase/u16-casefold-tests (Files): Likewise.
32092         * modules/unicase/u16-is-cased-tests (Files): Likewise.
32093         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
32094         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
32095         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
32096         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
32097         * modules/unicase/u16-tolower-tests (Files): Likewise.
32098         * modules/unicase/u16-totitle-tests (Files): Likewise.
32099         * modules/unicase/u16-toupper-tests (Files): Likewise.
32100         * modules/unicase/u32-casecmp-tests (Files): Likewise.
32101         * modules/unicase/u32-casecoll-tests (Files): Likewise.
32102         * modules/unicase/u32-casefold-tests (Files): Likewise.
32103         * modules/unicase/u32-is-cased-tests (Files): Likewise.
32104         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
32105         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
32106         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
32107         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
32108         * modules/unicase/u32-tolower-tests (Files): Likewise.
32109         * modules/unicase/u32-totitle-tests (Files): Likewise.
32110         * modules/unicase/u32-toupper-tests (Files): Likewise.
32111         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
32112         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
32113         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
32114         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
32115         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
32116         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
32117         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
32118         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
32119         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
32120         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
32121         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
32122         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
32123         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
32124         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
32125         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
32126         * modules/unictype/bidicategory-name-tests (Files): Likewise.
32127         * modules/unictype/bidicategory-of-tests (Files): Likewise.
32128         * modules/unictype/bidicategory-test-tests (Files): Likewise.
32129         * modules/unictype/block-list-tests (Files): Likewise.
32130         * modules/unictype/block-of-tests (Files): Likewise.
32131         * modules/unictype/block-test-tests (Files): Likewise.
32132         * modules/unictype/category-C-tests (Files): Likewise.
32133         * modules/unictype/category-Cc-tests (Files): Likewise.
32134         * modules/unictype/category-Cf-tests (Files): Likewise.
32135         * modules/unictype/category-Cn-tests (Files): Likewise.
32136         * modules/unictype/category-Co-tests (Files): Likewise.
32137         * modules/unictype/category-Cs-tests (Files): Likewise.
32138         * modules/unictype/category-L-tests (Files): Likewise.
32139         * modules/unictype/category-Ll-tests (Files): Likewise.
32140         * modules/unictype/category-Lm-tests (Files): Likewise.
32141         * modules/unictype/category-Lo-tests (Files): Likewise.
32142         * modules/unictype/category-Lt-tests (Files): Likewise.
32143         * modules/unictype/category-Lu-tests (Files): Likewise.
32144         * modules/unictype/category-M-tests (Files): Likewise.
32145         * modules/unictype/category-Mc-tests (Files): Likewise.
32146         * modules/unictype/category-Me-tests (Files): Likewise.
32147         * modules/unictype/category-Mn-tests (Files): Likewise.
32148         * modules/unictype/category-N-tests (Files): Likewise.
32149         * modules/unictype/category-Nd-tests (Files): Likewise.
32150         * modules/unictype/category-Nl-tests (Files): Likewise.
32151         * modules/unictype/category-No-tests (Files): Likewise.
32152         * modules/unictype/category-P-tests (Files): Likewise.
32153         * modules/unictype/category-Pc-tests (Files): Likewise.
32154         * modules/unictype/category-Pd-tests (Files): Likewise.
32155         * modules/unictype/category-Pe-tests (Files): Likewise.
32156         * modules/unictype/category-Pf-tests (Files): Likewise.
32157         * modules/unictype/category-Pi-tests (Files): Likewise.
32158         * modules/unictype/category-Po-tests (Files): Likewise.
32159         * modules/unictype/category-Ps-tests (Files): Likewise.
32160         * modules/unictype/category-S-tests (Files): Likewise.
32161         * modules/unictype/category-Sc-tests (Files): Likewise.
32162         * modules/unictype/category-Sk-tests (Files): Likewise.
32163         * modules/unictype/category-Sm-tests (Files): Likewise.
32164         * modules/unictype/category-So-tests (Files): Likewise.
32165         * modules/unictype/category-Z-tests (Files): Likewise.
32166         * modules/unictype/category-Zl-tests (Files): Likewise.
32167         * modules/unictype/category-Zp-tests (Files): Likewise.
32168         * modules/unictype/category-Zs-tests (Files): Likewise.
32169         * modules/unictype/category-and-not-tests (Files): Likewise.
32170         * modules/unictype/category-and-tests (Files): Likewise.
32171         * modules/unictype/category-byname-tests (Files): Likewise.
32172         * modules/unictype/category-name-tests (Files): Likewise.
32173         * modules/unictype/category-none-tests (Files): Likewise.
32174         * modules/unictype/category-of-tests (Files): Likewise.
32175         * modules/unictype/category-or-tests (Files): Likewise.
32176         * modules/unictype/category-test-withtable-tests (Files): Likewise.
32177         * modules/unictype/combining-class-tests (Files): Likewise.
32178         * modules/unictype/ctype-alnum-tests (Files): Likewise.
32179         * modules/unictype/ctype-alpha-tests (Files): Likewise.
32180         * modules/unictype/ctype-blank-tests (Files): Likewise.
32181         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
32182         * modules/unictype/ctype-digit-tests (Files): Likewise.
32183         * modules/unictype/ctype-graph-tests (Files): Likewise.
32184         * modules/unictype/ctype-lower-tests (Files): Likewise.
32185         * modules/unictype/ctype-print-tests (Files): Likewise.
32186         * modules/unictype/ctype-punct-tests (Files): Likewise.
32187         * modules/unictype/ctype-space-tests (Files): Likewise.
32188         * modules/unictype/ctype-upper-tests (Files): Likewise.
32189         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
32190         * modules/unictype/decimal-digit-tests (Files): Likewise.
32191         * modules/unictype/digit-tests (Files): Likewise.
32192         * modules/unictype/mirror-tests (Files): Likewise.
32193         * modules/unictype/numeric-tests (Files): Likewise.
32194         * modules/unictype/property-alphabetic-tests (Files): Likewise.
32195         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
32196         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
32197         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
32198         Likewise.
32199         * modules/unictype/property-bidi-block-separator-tests (Files):
32200         Likewise.
32201         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
32202         Likewise.
32203         * modules/unictype/property-bidi-common-separator-tests (Files):
32204         Likewise.
32205         * modules/unictype/property-bidi-control-tests (Files): Likewise.
32206         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
32207         Likewise.
32208         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
32209         Likewise.
32210         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
32211         Likewise.
32212         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
32213         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
32214         Likewise.
32215         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
32216         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
32217         Likewise.
32218         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
32219         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
32220         * modules/unictype/property-bidi-segment-separator-tests (Files):
32221         Likewise.
32222         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
32223         * modules/unictype/property-byname-tests (Files): Likewise.
32224         * modules/unictype/property-combining-tests (Files): Likewise.
32225         * modules/unictype/property-composite-tests (Files): Likewise.
32226         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
32227         * modules/unictype/property-dash-tests (Files): Likewise.
32228         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
32229         * modules/unictype/property-default-ignorable-code-point-tests (Files):
32230         Likewise.
32231         * modules/unictype/property-deprecated-tests (Files): Likewise.
32232         * modules/unictype/property-diacritic-tests (Files): Likewise.
32233         * modules/unictype/property-extender-tests (Files): Likewise.
32234         * modules/unictype/property-format-control-tests (Files): Likewise.
32235         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
32236         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
32237         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
32238         * modules/unictype/property-hex-digit-tests (Files): Likewise.
32239         * modules/unictype/property-hyphen-tests (Files): Likewise.
32240         * modules/unictype/property-id-continue-tests (Files): Likewise.
32241         * modules/unictype/property-id-start-tests (Files): Likewise.
32242         * modules/unictype/property-ideographic-tests (Files): Likewise.
32243         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
32244         * modules/unictype/property-ids-trinary-operator-tests (Files):
32245         Likewise.
32246         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
32247         * modules/unictype/property-iso-control-tests (Files): Likewise.
32248         * modules/unictype/property-join-control-tests (Files): Likewise.
32249         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
32250         * modules/unictype/property-line-separator-tests (Files): Likewise.
32251         * modules/unictype/property-logical-order-exception-tests (Files):
32252         Likewise.
32253         * modules/unictype/property-lowercase-tests (Files): Likewise.
32254         * modules/unictype/property-math-tests (Files): Likewise.
32255         * modules/unictype/property-non-break-tests (Files): Likewise.
32256         * modules/unictype/property-not-a-character-tests (Files): Likewise.
32257         * modules/unictype/property-numeric-tests (Files): Likewise.
32258         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
32259         * modules/unictype/property-other-default-ignorable-code-point-tests
32260         (Files): Likewise.
32261         * modules/unictype/property-other-grapheme-extend-tests (Files):
32262         Likewise.
32263         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
32264         * modules/unictype/property-other-id-start-tests (Files): Likewise.
32265         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
32266         * modules/unictype/property-other-math-tests (Files): Likewise.
32267         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
32268         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
32269         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
32270         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
32271         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
32272         * modules/unictype/property-private-use-tests (Files): Likewise.
32273         * modules/unictype/property-punctuation-tests (Files): Likewise.
32274         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
32275         * modules/unictype/property-radical-tests (Files): Likewise.
32276         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
32277         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
32278         * modules/unictype/property-space-tests (Files): Likewise.
32279         * modules/unictype/property-terminal-punctuation-tests (Files):
32280         Likewise.
32281         * modules/unictype/property-test-tests (Files): Likewise.
32282         * modules/unictype/property-titlecase-tests (Files): Likewise.
32283         * modules/unictype/property-unassigned-code-value-tests (Files):
32284         Likewise.
32285         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
32286         * modules/unictype/property-uppercase-tests (Files): Likewise.
32287         * modules/unictype/property-variation-selector-tests (Files): Likewise.
32288         * modules/unictype/property-white-space-tests (Files): Likewise.
32289         * modules/unictype/property-xid-continue-tests (Files): Likewise.
32290         * modules/unictype/property-xid-start-tests (Files): Likewise.
32291         * modules/unictype/property-zero-width-tests (Files): Likewise.
32292         * modules/unictype/scripts-tests (Files): Likewise.
32293         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
32294         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
32295         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
32296         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
32297         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
32298         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
32299         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
32300         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
32301         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
32302         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
32303         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
32304         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
32305         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
32306         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
32307         * modules/uninorm/composition-tests (Files): Likewise.
32308         * modules/uninorm/decomposing-form-tests (Files): Likewise.
32309         * modules/uninorm/decomposition-tests (Files): Likewise.
32310         * modules/uninorm/filter-tests (Files): Likewise.
32311         * modules/uninorm/nfc-tests (Files): Likewise.
32312         * modules/uninorm/nfd-tests (Files): Likewise.
32313         * modules/uninorm/nfkc-tests (Files): Likewise.
32314         * modules/uninorm/nfkd-tests (Files): Likewise.
32315         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
32316         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
32317         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
32318         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
32319         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
32320         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
32321         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
32322         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32323         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
32324         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
32325         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
32326         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
32327         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32328         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
32329         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
32330         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
32331         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
32332         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32333         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
32334         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
32335         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
32336         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
32337         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32338         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
32339         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
32340         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
32341         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
32342         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
32343         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
32344         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
32345         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
32346         * modules/uniwidth/u8-width-tests (Files): Likewise.
32347         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
32348         * modules/uniwidth/u16-width-tests (Files): Likewise.
32349         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
32350         * modules/uniwidth/u32-width-tests (Files): Likewise.
32351         * modules/uniwidth/width-tests (Files): Likewise.
32352         * modules/unlink-tests (Files): Likewise.
32353         * modules/unsetenv-tests (Files): Likewise.
32354         * modules/usleep-tests (Files): Likewise.
32355         * modules/utimens-tests (Files): Likewise.
32356         * modules/utimensat-tests (Files): Likewise.
32357         * modules/vasnprintf-posix-tests (Files): Likewise.
32358         * modules/vasnprintf-tests (Files): Likewise.
32359         * modules/vasprintf-posix-tests (Files): Likewise.
32360         * modules/vasprintf-tests (Files): Likewise.
32361         * modules/vdprintf-posix-tests (Files): Likewise.
32362         * modules/vfprintf-posix-tests (Files): Likewise.
32363         * modules/vprintf-posix-tests (Files): Likewise.
32364         * modules/vsnprintf-posix-tests (Files): Likewise.
32365         * modules/vsnprintf-tests (Files): Likewise.
32366         * modules/vsprintf-posix-tests (Files): Likewise.
32367         * modules/wcrtomb-tests (Files): Likewise.
32368         * modules/wcsnrtombs-tests (Files): Likewise.
32369         * modules/wcsrtombs-tests (Files): Likewise.
32370         * modules/wctype-tests (Files): Likewise.
32371         * modules/wcwidth-tests (Files): Likewise.
32372         * modules/xmemdup0-tests (Files): Likewise.
32373         * modules/xprintf-posix-tests (Files): Likewise.
32374         * modules/xvasprintf-tests (Files): Likewise.
32375
32376 2009-12-24  Eric Blake  <ebb9@byu.net>
32377
32378         test-nanosleep: fix typo
32379         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
32380         patch.
32381         Reported by Bruno Haible.
32382
32383 2009-12-24  Bruno Haible  <bruno@clisp.org>
32384
32385         Reduce namespace pollution on glibc systems.
32386         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
32387         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
32388         systems.
32389         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
32390         <getopt.h> on glibc systems.
32391         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
32392         systems.
32393         * lib/fcntl.c: Include <unistd.h> here instead.
32394
32395 2009-12-24  Bruno Haible  <bruno@clisp.org>
32396
32397         * lib/stdlib.in.h (includes): Fix typo in today's commit.
32398
32399 2009-12-24  Eric Blake  <ebb9@byu.net>
32400
32401         tests: add signature checks
32402         * tests/signature.h (SIGNATURE_CHECK): New file.
32403         * modules/atexit-tests (Files): Use it.
32404         * modules/btowc-tests (Files): Likewise.
32405         * modules/canonicalize-lgpl-tests (Files): Likewise.
32406         * modules/ceilf-tests (Files): Likewise.
32407         * modules/ceill-tests (Files): Likewise.
32408         * modules/chown-tests (Files): Likewise.
32409         * modules/dprintf-posix-tests (Files): Likewise.
32410         * modules/dup2-tests (Files): Likewise.
32411         * modules/dup3-tests (Files): Likewise.
32412         * modules/duplocale-tests (Files): Likewise.
32413         * modules/fchdir-tests (Files): Likewise.
32414         * modules/fcntl-tests (Files): Likewise.
32415         * modules/fdopendir-tests (Files): Likewise.
32416         * modules/fflush-tests (Files): Likewise.
32417         * modules/flock-tests (Files): Likewise.
32418         * modules/floorf-tests (Files): Likewise.
32419         * modules/floorl-tests (Files): Likewise.
32420         * modules/fnmatch-tests (Files): Likewise.
32421         * modules/fopen-tests (Files): Likewise.
32422         * modules/fprintf-posix-tests (Files): Likewise.
32423         * modules/freopen-tests (Files): Likewise.
32424         * modules/frexp-nolibm-tests (Files): Likewise.
32425         * modules/frexp-tests (Files): Likewise.
32426         * modules/frexpl-nolibm-tests (Files): Likewise.
32427         * modules/frexpl-tests (Files): Likewise.
32428         * modules/fseek-tests (Files): Likewise.
32429         * modules/fseeko-tests (Files): Likewise.
32430         * modules/fsync-tests (Files): Likewise.
32431         * modules/ftell-tests (Files): Likewise.
32432         * modules/ftello-tests (Files): Likewise.
32433         * modules/futimens-tests (Files): Likewise.
32434         * modules/getaddrinfo-tests (Files): Likewise.
32435         * modules/getcwd-tests (Files): Likewise.
32436         * modules/getdelim-tests (Files): Likewise.
32437         * modules/getdtablesize-tests (Files): Likewise.
32438         * modules/getgroups-tests (Files): Likewise.
32439         * modules/gethostname-tests (Files): Likewise.
32440         * modules/getline-tests (Files): Likewise.
32441         * modules/getopt-posix-tests (Files): Likewise.
32442         * modules/gettimeofday-tests (Files): Likewise.
32443         * modules/glob-tests (Files): Likewise.
32444         * modules/iconv-tests (Files): Likewise.
32445         * modules/inet_ntop-tests (Files): Likewise.
32446         * modules/inet_pton-tests (Files): Likewise.
32447         * modules/isblank-tests (Files): Likewise.
32448         * modules/lchown-tests (Files): Likewise.
32449         * modules/ldexpl-tests (Files): Likewise.
32450         * modules/link-tests (Files): Likewise.
32451         * modules/linkat-tests (Files): Likewise.
32452         * modules/lseek-tests (Files): Likewise.
32453         * modules/lstat-tests (Files): Likewise.
32454         * modules/mbrtowc-tests (Files): Likewise.
32455         * modules/mbsinit-tests (Files): Likewise.
32456         * modules/mbsnrtowcs-tests (Files): Likewise.
32457         * modules/mbsrtowcs-tests (Files): Likewise.
32458         * modules/memchr-tests (Files): Likewise.
32459         * modules/memcmp-tests (Files): Likewise.
32460         * modules/memmem-tests (Files): Likewise.
32461         * modules/memrchr-tests (Files): Likewise.
32462         * modules/mkdir-tests (Files): Likewise.
32463         * modules/mkfifo-tests (Files): Likewise.
32464         * modules/mkfifoat-tests (Files): Likewise.
32465         * modules/mknod-tests (Files): Likewise.
32466         * modules/nanosleep-tests (Files): Likewise.
32467         * modules/nl_langinfo-tests (Files): Likewise.
32468         * modules/obstack-printf-tests (Files): Likewise.
32469         * modules/open-tests (Files): Likewise.
32470         * modules/openat-tests (Files): Likewise.
32471         * modules/perror-tests (Files): Likewise.
32472         * modules/pipe2-tests (Files): Likewise.
32473         * modules/poll-tests (Files): Likewise.
32474         * modules/popen-tests (Files): Likewise.
32475         * modules/posix_spawn-tests (Files): Likewise.
32476         * modules/posix_spawnp-tests (Files): Likewise.
32477         * modules/pread-tests (Files): Likewise.
32478         * modules/printf-posix-tests (Files): Likewise.
32479         * modules/pty-tests (Files): Likewise.
32480         * modules/random_r-tests (Files): Likewise.
32481         * modules/rawmemchr-tests (Files): Likewise.
32482         * modules/readlink-tests (Files): Likewise.
32483         * modules/remove-tests (Files): Likewise.
32484         * modules/rename-tests (Files): Likewise.
32485         * modules/renameat-tests (Files): Likewise.
32486         * modules/rmdir-tests (Files): Likewise.
32487         * modules/round-tests (Files): Likewise.
32488         * modules/roundf-tests (Files): Likewise.
32489         * modules/roundl-tests (Files): Likewise.
32490         * modules/select-tests (Files): Likewise.
32491         * modules/setenv-tests (Files): Likewise.
32492         * modules/sigaction-tests (Files): Likewise.
32493         * modules/sleep-tests (Files): Likewise.
32494         * modules/snprintf-posix-tests (Files): Likewise.
32495         * modules/snprintf-tests (Files): Likewise.
32496         * modules/sprintf-posix-tests (Files): Likewise.
32497         * modules/stat-tests (Files): Likewise.
32498         * modules/strcasestr-tests (Files): Likewise.
32499         * modules/strchrnul-tests (Files): Likewise.
32500         * modules/strerror-tests (Files): Likewise.
32501         * modules/strsignal-tests (Files): Likewise.
32502         * modules/strstr-tests (Files): Likewise.
32503         * modules/strtod-tests (Files): Likewise.
32504         * modules/strverscmp-tests (Files): Likewise.
32505         * modules/symlink-tests (Files): Likewise.
32506         * modules/symlinkat-tests (Files): Likewise.
32507         * modules/times-tests (Files): Likewise.
32508         * modules/trunc-tests (Files): Likewise.
32509         * modules/truncf-tests (Files): Likewise.
32510         * modules/truncl-tests (Files): Likewise.
32511         * modules/tsearch-tests (Files): Likewise.
32512         * modules/uname-tests (Files): Likewise.
32513         * modules/unlink-tests (Files): Likewise.
32514         * modules/unsetenv-tests (Files): Likewise.
32515         * modules/usleep-tests (Files): Likewise.
32516         * modules/utimensat-tests (Files): Likewise.
32517         * modules/vasprintf-tests (Files): Likewise.
32518         * modules/vdprintf-posix-tests (Files): Likewise.
32519         * modules/vfprintf-posix-tests (Files): Likewise.
32520         * modules/vprintf-posix-tests (Files): Likewise.
32521         * modules/vsnprintf-posix-tests (Files): Likewise.
32522         * modules/vsnprintf-tests (Files): Likewise.
32523         * modules/vsprintf-posix-tests (Files): Likewise.
32524         * modules/wcrtomb-tests (Files): Likewise.
32525         * modules/wcsnrtombs-tests (Files): Likewise.
32526         * modules/wcsrtombs-tests (Files): Likewise.
32527         * modules/wcwidth-tests (Files): Likewise.
32528         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
32529         * tests/test-isinf.c (isinf): Likewise.
32530         * tests/test-isnan.c (isnan): Likewise.
32531         * tests/test-signbit.c (signbit): Likewise.
32532         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
32533         declaration, either as macro or with correct signature.
32534         (select): Ensure function under test is declared with correct
32535         signature in correct header.
32536         * tests/test-atexit.c (atexit): Likewise.
32537         * tests/test-btowc.c (btowc): Likewise.
32538         * tests/test-canonicalize-lgpl.c (realpath)
32539         (canonicalize_file_name): Likewise.
32540         * tests/test-ceilf1.c (ceilf): Likewise.
32541         * tests/test-ceill.c (ceill): Likewise.
32542         * tests/test-chown.c (chown): Likewise.
32543         * tests/test-dprintf-posix.c (dprintf): Likewise.
32544         * tests/test-dup2.c (dup2): Likewise.
32545         * tests/test-dup3.c (dup3): Likewise.
32546         * tests/test-duplocale.c (duplocale): Likewise.
32547         * tests/test-fchdir.c (fchdir): Likewise.
32548         * tests/test-fchownat.c (fchownat): Likewise.
32549         * tests/test-fcntl.c (fcntl): Likewise.
32550         * tests/test-fdopendir.c (fdopendir): Likewise.
32551         * tests/test-fflush.c (fflush): Likewise.
32552         * tests/test-flock.c (flock): Likewise.
32553         * tests/test-floorf1.c (floorf): Likewise.
32554         * tests/test-floorl.c (floorl): Likewise.
32555         * tests/test-fnmatch.c (fnmatch): Likewise.
32556         * tests/test-fopen.c (fopen): Likewise.
32557         * tests/test-fprintf-posix.c (fprintf): Likewise.
32558         * tests/test-freopen.c (freopen): Likewise.
32559         * tests/test-frexp.c (frexp): Likewise.
32560         * tests/test-frexpl.c (frexpl): Likewise.
32561         * tests/test-fseek.c (fseek): Likewise.
32562         * tests/test-fseeko.c (fseeko): Likewise.
32563         * tests/test-fstatat.c (fstatat): Likewise.
32564         * tests/test-fsync.c (fsync): Likewise.
32565         * tests/test-ftell.c (ftell): Likewise.
32566         * tests/test-ftello.c (ftello): Likewise.
32567         * tests/test-futimens.c (futimens): Likewise.
32568         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
32569         (gai_strerror): Likewise.
32570         * tests/test-getcwd.c (getcwd): Likewise.
32571         * tests/test-getdelim.c (getdelim): Likewise.
32572         * tests/test-getdtablesize.c (getdtablesize): Likewise.
32573         * tests/test-getgroups.c (getgroups): Likewise.
32574         * tests/test-gethostname.c (gethostname): Likewise.
32575         * tests/test-getline.c (getline): Likewise.
32576         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
32577         Likewise.
32578         * tests/test-gettimeofday.c (gettimeofday): Likewise.
32579         * tests/test-glob.c (glob, globfree): Likewise.
32580         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
32581         * tests/test-inet_ntop.c (inet_ntop): Likewise.
32582         * tests/test-inet_pton.c (inet_pton): Likewise.
32583         * tests/test-isblank.c (isblank): Likewise.
32584         * tests/test-lchown.c (lchown): Likewise.
32585         * tests/test-ldexpl.c (ldexpl): Likewise.
32586         * tests/test-link.c (link): Likewise.
32587         * tests/test-linkat.c (linkat): Likewise.
32588         * tests/test-lseek.c (lseek): Likewise.
32589         * tests/test-lstat.c (lstat): Likewise.
32590         * tests/test-mbrtowc.c (mbrtowc): Likewise.
32591         * tests/test-mbsinit.c (mbsinit): Likewise.
32592         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
32593         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
32594         * tests/test-memchr.c (memchr): Likewise.
32595         * tests/test-memcmp.c (memcmp): Likewise.
32596         * tests/test-memmem.c (memmem): Likewise.
32597         * tests/test-memrchr.c (memrchr): Likewise.
32598         * tests/test-mkdir.c (mkdir): Likewise.
32599         * tests/test-mkdirat.c (mkdirat): Likewise.
32600         * tests/test-mkfifo.c (mkfifo): Likewise.
32601         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
32602         * tests/test-mknod.c (mknod): Likewise.
32603         * tests/test-nanosleep.c (nanosleep): Likewise.
32604         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
32605         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
32606         Likewise.
32607         * tests/test-open.c (open): Likewise.
32608         * tests/test-openat.c (openat): Likewise.
32609         * tests/test-perror.c (perror): Likewise.
32610         * tests/test-pipe2.c (pipe2): Likewise.
32611         * tests/test-poll.c (poll): Likewise.
32612         * tests/test-popen.c (popen, pclose): Likewise.
32613         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
32614         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
32615         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
32616         (posix_spawn_file_actions_destroy)
32617         (posix_spawn_file_actions_addclose)
32618         (posix_spawn_file_actions_addopen)
32619         (posix_spawn_file_actions_adddup2): Likewise.
32620         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
32621         * tests/test-pread.c (pread): Likewise.
32622         * tests/test-printf-posix.c (printf): Likewise.
32623         * tests/test-pty.c (openpty, forkpty): Likewise.
32624         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
32625         (random_r): Likewise.
32626         * tests/test-rawmemchr.c (rawmemchr): Likewise.
32627         * tests/test-readlink.c (readlink): Likewise.
32628         * tests/test-remove.c (remove): Likewise.
32629         * tests/test-rename.c (rename): Likewise.
32630         * tests/test-renameat.c (renameat): Likewise.
32631         * tests/test-rmdir.c (rmdir): Likewise.
32632         * tests/test-round1.c (round): Likewise.
32633         * tests/test-roundf1.c (roundf): Likewise.
32634         * tests/test-roundl.c (roundl): Likewise.
32635         * tests/test-setenv.c (setenv): Likewise.
32636         * tests/test-sigaction.c (sigaction): Likewise.
32637         * tests/test-sleep.c (sleep): Likewise.
32638         * tests/test-snprintf.c (snprintf): Likewise.
32639         * tests/test-sprintf-posix.c (sprintf): Likewise.
32640         * tests/test-stat.c (stat): Likewise.
32641         * tests/test-stpncpy.c (stpncpy): Likewise.
32642         * tests/test-strcasestr.c (strcasestr): Likewise.
32643         * tests/test-strchrnul.c (strchrnul): Likewise.
32644         * tests/test-strerror.c (strerror): Likewise.
32645         * tests/test-strsignal.c (strsignal): Likewise.
32646         * tests/test-strstr.c (strstr): Likewise.
32647         * tests/test-strtod.c (strtod): Likewise.
32648         * tests/test-strverscmp.c (strverscmp): Likewise.
32649         * tests/test-symlink.c (symlink): Likewise.
32650         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
32651         * tests/test-times.c (times): Likewise.
32652         * tests/test-trunc1.c (trunc): Likewise.
32653         * tests/test-truncf1.c (truncf): Likewise.
32654         * tests/test-truncl.c (truncl): Likewise.
32655         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
32656         Likewise.
32657         * tests/test-uname.c (uname): Likewise.
32658         * tests/test-unlink.c (unlink): Likewise.
32659         * tests/test-unlinkat.c (unlinkat): Likewise.
32660         * tests/test-unsetenv.c (unsetenv): Likewise.
32661         * tests/test-usleep.c (usleep): Likewise.
32662         * tests/test-utimensat.c (utimensat): Likewise.
32663         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
32664         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
32665         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
32666         * tests/test-vprintf-posix.c (vprintf): Likewise.
32667         * tests/test-vsnprintf.c (vsnprintf): Likewise.
32668         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
32669         * tests/test-wcrtomb.c (wcrtomb): Likewise.
32670         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
32671         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
32672         * tests/test-wcwidth.c (wcwidth): Likewise.
32673
32674         build: pull in conditional headers during GNULIB_POSIXCHECK
32675         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
32676         definitions from any conditionally-included headers.
32677         * lib/stdlib.in.h (includes): Likewise.
32678         * lib/unistd.in.h (includes): Likewise.
32679
32680 2009-12-24  Bruno Haible  <bruno@clisp.org>
32681
32682         * tests/test-argv-iter.c: Include header file being tested immediately
32683         after config.h.
32684         * tests/test-base64.c: Likewise.
32685         * tests/test-flock.c: Likewise.
32686         * tests/test-fsync.c: Likewise.
32687         * tests/test-getdate.c: Likewise.
32688         * tests/test-getndelim2.c: Likewise.
32689         * tests/test-isfinite.c: Likewise.
32690         * tests/test-isinf.c: Likewise.
32691         * tests/test-strerror.c: Likewise.
32692         * tests/test-strsignal.c: Likewise.
32693
32694 2009-12-23  Eric Blake  <ebb9@byu.net>
32695
32696         unistd: work around cygwin bug
32697         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
32698         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
32699         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32700
32701 2009-12-23  Bruno Haible  <bruno@clisp.org>
32702
32703         localename: More tests.
32704         * tests/test-localename.c (SIZEOF): New macro.
32705         (categories): New variable.
32706         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
32707         test_locale_name_default): Add test w.r.t. thread locale.
32708         (test_locale_name_thread): New function.
32709         (main): Invoke it.
32710
32711         localename: Make aware of thread locale.
32712         * lib/localename.h (gl_locale_name_thread): New declaration.
32713         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
32714         behaviour with respect to thread locale.
32715         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
32716         <langinfo.h>, glthread/lock.h.
32717         (SIZE_BITS): New macro.
32718         (string_hash): New function.
32719         (struct hash_node): New type.
32720         (HASH_TABLE_SIZE): New macro.
32721         (struniq_hash_table, struniq_lock): New variables.
32722         (struniq): New function.
32723         (gl_locale_name_thread): New function.
32724         (gl_locale_name): Invoke it.
32725         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
32726         * modules/localename (Depends-on): Add lock.
32727         Reported by Mike Gran <spk121@yahoo.com>.
32728
32729 2009-12-23  Eric Blake  <ebb9@byu.net>
32730
32731         va-args: new module
32732         * modules/va-args: New file.
32733         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
32734         * MODULES.html.sh (Core language properties): Mention it.
32735
32736         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
32737         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
32738         named alias for __attribute__((__unused__)).
32739         * lib/chown.c: Update client.
32740         * lib/fchmodat.c: Likewise.
32741         * lib/fts.c: Likewise.
32742         * lib/getdate.y: Likewise.
32743         * lib/getgroups.c: Likewise.
32744         * lib/getopt.c: Likewise.
32745         * lib/getugroups.c: Likewise.
32746         * lib/mkdir.c: Likewise.
32747         * lib/mkfifo.c: Likewise.
32748         * lib/mkfifoat.c: Likewise.
32749         * lib/mknod.c: Likewise.
32750         * lib/mknodat.c: Likewise.
32751         * lib/readlink.c: Likewise.
32752         * lib/se-context.in.h: Likewise.
32753         * lib/se-selinux.in.h: Likewise.
32754         * lib/sockets.c: Likewise.
32755         * lib/symlink.c: Likewise.
32756         * lib/symlinkat.c: Likewise.
32757         * lib/unicodeio.c: Likewise.
32758         * lib/unistr.h: Likewise.
32759         * tests/test-areadlink.c: Likewise.
32760         * tests/test-areadlinkat.c: Likewise.
32761         * tests/test-filenamecat.c: Likewise.
32762         * tests/test-fseeko.c: Likewise.
32763         * tests/test-ftello.c: Likewise.
32764         * tests/test-getdate.c: Likewise.
32765         * tests/test-getgroups.c: Likewise.
32766         * tests/test-gethostname.c: Likewise.
32767         * tests/test-quotearg.c: Likewise.
32768         * tests/test-version-etc.c: Likewise.
32769         * tests/test-xalloc-die.c: Likewise.
32770         * tests/test-xfprintf-posix.c: Likewise.
32771         * tests/test-xprintf-posix.c: Likewise.
32772         * tests/test-xvasprintf.c: Likewise.
32773
32774         tests: avoid compiler warnings
32775         * tests/test-fcntl.c (main): Delete unused parameters.
32776         * tests/test-freopen-safer.c (main): Likewise.
32777         * tests/test-xalloc-die.c (main): Mark unused parameters.
32778         * tests/test-fseeko.c (main): Likewise.
32779         * tests/test-ftello.c (main): Likewise.
32780         * tests/test-nanosleep.c (main): Avoid declaration warning.
32781         * tests/test-sleep.c (main): Likewise.
32782         * tests/test-unsetenv.c (main): Silence warning about string
32783         literal.
32784         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32785
32786 2009-12-23  Bruno Haible  <bruno@clisp.org>
32787
32788         * tests/test-localename.c (test_locale_name): New function, extracted
32789         from main. Also test mixed situations.
32790         (test_locale_name_posix, test_locale_name_environ,
32791         test_locale_name_default): New functions.
32792         (main): Invoke them all.
32793         * modules/localename-tests (configure.ac): Test for newlocale.
32794
32795 2009-12-23  Bruno Haible  <bruno@clisp.org>
32796
32797         unistd: Ensure getcwd gets declared before being overridden.
32798         * lib/unistd.in.h: Conditionally include <io.h>.
32799
32800 2009-12-22  Bruno Haible  <bruno@clisp.org>
32801
32802         wchar: Diagnose broken combination of glibc and gcc versions and flags.
32803         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
32804         (gl_WCHAR_H): Invoke it.
32805         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
32806         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
32807         Reported by Karl Berry <karl@freefriends.org>.
32808
32809 2009-12-22  Eric Blake  <ebb9@byu.net>
32810
32811         math, unistd: avoid redundant includes
32812         * lib/math.in.h (isnan): No need to re-include <math.h>.
32813         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
32814
32815         getsubopt: work around cygwin bug
32816         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
32817         avoid conflicting with system getsubopt.
32818         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
32819         bug.
32820
32821         getopt: synchronize from glibc
32822         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
32823         parameter order.  Adjust all callers.
32824         (_getopt_internal_r, main): Adjust quoting in error messages.
32825         Drop considerations for outdated POSIX 1003.2 error message.
32826         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
32827         callers.
32828         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
32829
32830         test-getopt: test stderr behavior
32831         * modules/getopt-posix-tests (Depends-on): Add dup2.
32832         * tests/test-getopt.c (ASSERT): Avoid stderr.
32833         (main): Move stderr to a temporary file.
32834         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
32835         Instead, add parameter to inform caller if output occurred.
32836         (test_getopt): Adjust all existing tests to expect silence, and
32837         add new tests of leading ":".
32838         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32839         glibc shortcomings with leading "-:" or "+:" in optstring.
32840         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32841         Likewise.
32842         * doc/posix-functions/getopt.texi (getopt): Likewise.
32843
32844         test-getopt: enhance test
32845         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
32846         supports optind=0.
32847         * tests/test-getopt.c (OPTIND_MIN): Move...
32848         * tests/test-getopt.h (OPTIND_MIN): ...here.
32849         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
32850         Require that optind=0 works, since modern BSD supports it in
32851         addition to optreset, and since coreutils expects it.
32852         (test_getopt_long_only): New test.
32853         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32854         glibc shortcomings with 'W;', and enforcement of optind=0.
32855         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32856         Likewise.
32857
32858 2009-12-21  Bruno Haible  <bruno@clisp.org>
32859
32860         localename: Improvements for MacOS X and Cygwin.
32861         * lib/localename.h (gl_locale_name_environ): New declaration.
32862         * lib/localename.c (gl_locale_name_environ): New function, extracted from
32863         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
32864         (gl_locale_name_posix): Invoke it.
32865         (gl_locale_name_default): Add comments. Use Windows native API also on
32866         Cygwin.
32867
32868 2009-12-21  Bruno Haible  <bruno@clisp.org>
32869
32870         Update list of Win32 locale ids.
32871         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
32872         (LANG_SAMI): Renamed from LANG_SAAMI.
32873         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
32874         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
32875         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
32876         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
32877         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
32878         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
32879         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
32880         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
32881         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
32882         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
32883         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
32884         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
32885         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
32886         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
32887         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
32888         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
32889         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
32890         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
32891         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
32892         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
32893         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
32894         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
32895         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
32896         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
32897         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
32898         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
32899         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
32900         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
32901         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
32902         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
32903         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
32904         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
32905         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
32906         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
32907         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
32908         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
32909         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
32910         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
32911         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
32912         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
32913         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
32914         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
32915         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
32916         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
32917         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
32918         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
32919         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
32920         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
32921         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
32922         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
32923         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
32924         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
32925         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
32926         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
32927         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
32928         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
32929         Add more languages and countries for Sami, Sorbian. Add more countries
32930         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
32931         for Pashto. Change country for Syriac, Tswana.
32932
32933 2009-12-21  Eric Blake  <ebb9@byu.net>
32934
32935         test-utimens: avoid spurious failure
32936         * tests/test-chown.h (nap): Factor...
32937         * tests/nap.h: ...into new file.
32938         * tests/test-lchown.h (nap): Avoid duplication.
32939         * tests/test-utimens-common.h (nap): Use shared implementation,
32940         necessary on file systems with 1-second resolution.
32941         * modules/chown-tests (Files): Include new file.
32942         * modules/fdutimensat-tests (Files): Likewise.
32943         * modules/futimens-tests (Files): Likewise.
32944         * modules/lchown-tests (Files): Likewise.
32945         * modules/openat-tests (Files): Likewise.
32946         * modules/utimens-tests (Files): Likewise.
32947         * modules/utimensat-tests (Files): Likewise.
32948
32949 2009-12-19  Eric Blake  <ebb9@byu.net>
32950
32951         futimens, utimensat: work around Linux bug
32952         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
32953         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32954         * lib/utimensat.c (rpl_utimensat): Work around it.
32955         * lib/futimens.c (rpl_futimens): Adjust comment.
32956
32957         utimens: work around Linux ctime bug
32958         * lib/utimens.c (detect_ctime_bug): New helper function.
32959         (update_timespec): Differentiate between workaround needed for
32960         this bug vs. what is needed for systems that lack utimensat.
32961         (fdutimens, lutimens): Work around bug.
32962
32963         utimens: check for ctime update
32964         * tests/test-utimens-common.h (check_ctime): Define.
32965         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
32966         * tests/test-futimens.h (test_futimens): Likewise.
32967         * tests/test-lutimens.h (test_lutimens): Likewise.
32968         * doc/posix-functions/futimens.texi (futimens): Document the bug.
32969         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32970
32971 2009-12-19  Bruno Haible  <bruno@clisp.org>
32972
32973         dprintf-posix: Check against memory leak fixed on 2009-12-15.
32974         * tests/test-dprintf-posix2.sh: New file.
32975         * tests/test-dprintf-posix2.c: New file.
32976         * modules/dprintf-posix-tests (Files): Add them.
32977         (configure.ac): Check for getrlimit and setrlimit.
32978         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32979
32980 2009-12-19  Bruno Haible  <bruno@clisp.org>
32981
32982         fprintf-posix: Check against memory leak fixed on 2009-12-15.
32983         * tests/test-fprintf-posix3.sh: New file.
32984         * tests/test-fprintf-posix3.c: New file.
32985         * modules/fprintf-posix-tests (Files): Add them.
32986         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32987
32988 2009-12-19  Eric Blake  <ebb9@byu.net>
32989
32990         dirfd: fix prototype
32991         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
32992         * lib/dirfd.c (dirfd): Likewise.
32993
32994         canonicalize: reduce memory usage
32995         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
32996         allocation to size.
32997         Reported by Solar Designer <solar@openwall.com>.
32998
32999 2009-12-19  Bruno Haible  <bruno@clisp.org>
33000
33001         New module attribute 'Applicability'.
33002         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
33003         * gnulib-tool: New option --extract-applicability.
33004         (func_usage): Document it.
33005         (sed_extract_prog): Recognize it.
33006         (func_get_applicability): New function.
33007         (func_import): Generalize handling of 'link-warning' module.
33008         * modules/link-warning (Applicability): New section.
33009         * modules/arg-nonnull (Applicability): New section.
33010         Repoted by Simon Josefsson <simon@josefsson.org>.
33011
33012 2009-12-19  Bruno Haible  <bruno@clisp.org>
33013
33014         fflush: tweak
33015         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
33016         * lib/fseeko.c (rpl_fseeko): Likewise.
33017
33018 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
33019
33020         * lib/gl_list.h: Fix typo in comment.
33021
33022 2009-12-16  Eric Blake  <ebb9@byu.net>
33023
33024         fcntl: use to simplify other modules
33025         * modules/cloexec (Depends-on): Add fcntl.
33026         * modules/fchdir (Depends-on): Likewise.
33027         * modules/fd-safer-flag (Depends-on): Likewise.
33028         * modules/unistd-safer (Depends-on): Likewise.
33029         * modules/dup3 (configure.ac): Set module indicator.
33030         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
33031         missing.
33032         * lib/fchdir.c (_gl_register_dup): Fix comment.
33033         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
33034         * lib/dup-safer.c (dup_safer): Likewise.
33035         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
33036         * lib/dup3.c (dup3): Likewise.
33037         * tests/test-fchdir.c (main): Enhance test.
33038         Fixes a dup_cloexec bug reported by Ondřej Vašík.
33039
33040         fcntl: port portions of fcntl to mingw
33041         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
33042         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
33043         replacement for mingw.
33044         * modules/fcntl (Description): Update.
33045         (Depends-on): Add dup2.
33046         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
33047         * modules/fcntl-h (Makefile.am): Substitute it.
33048         * lib/fcntl.in.h (fcntl): Update declaration.
33049         (F_DUPFD, F_GETFD): New macros, when needed.
33050         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33051         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
33052         * tests/test-fcntl.c (check_flags, main): Enhance test for items
33053         we now guarantee.
33054
33055         fcntl: work around cygwin bug in F_DUPFD
33056         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
33057         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
33058         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
33059         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
33060         * doc/posix-functions/fcntl.texi (fcntl): Document it.
33061
33062         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
33063         * modules/fcntl (Files): List new files.
33064         (configure.ac): Run a test.
33065         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
33066         * lib/fcntl.c (rpl_fcntl): Likewise.
33067         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
33068         (gl_FCNTL_H): Always replace fcntl.h.
33069         * modules/fcntl-h (Makefile.am): Substitute witnesses.
33070         * lib/fcntl.in.h (fcntl): Declare replacement.
33071         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
33072         needed, plus a witness.
33073         * doc/posix-functions/fcntl.texi (fcntl): Document this.
33074         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
33075         * tests/test-fcntl.c: New file.
33076         * modules/fcntl-tests: Likewise.
33077
33078         binary-io: avoid potential compilation warning
33079         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
33080         directives.
33081
33082         fflush: avoid compilation error on NetBSD
33083         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
33084         between off_t and fpos_t, since the latter is sometimes a struct.
33085         * lib/fseeko.c (rpl_fseeko): Likewise.
33086         Reported by Alexander Nasonov <alnsn@yandex.ru>.
33087
33088 2009-12-15  Eric Blake  <ebb9@byu.net>
33089
33090         fcntl-h, stdio, sys_ioctl: fix declarations
33091         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
33092         function must not take arguments.
33093         * lib/sys_ioctl.in.h (ioctl): Likewise.
33094         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
33095         (open): Add a link warning.
33096
33097 2009-12-15  Jim Meyering  <meyering@redhat.com>
33098
33099         areadlink, areadlink-with-size: relax license to LGPLv2+
33100         * modules/areadlink (License): Relax to LGPLv2+.
33101         * modules/areadlink-with-size (License): Likewise.
33102
33103 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
33104             Bruno Haible  <bruno@clisp.org>
33105
33106         *printf: Fix memory leak.
33107         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
33108         * lib/vfprintf.c (vfprintf): Likewise.
33109         * lib/dprintf.c (dprintf): Likewise.
33110         * lib/vdprintf.c (vdprintf): Likewise.
33111
33112 2009-12-14  Eric Blake  <ebb9@byu.net>
33113
33114         accept4: adjust module dependencies
33115         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
33116
33117         utimens: one more try at avoiding compiler warning
33118         * lib/utimens.c (lutimens): Lower scope of result.
33119
33120 2009-12-13  Bruno Haible  <bruno@clisp.org>
33121
33122         Move the malloc checking from module 'list' to new module 'xlist'.
33123         * modules/xlist: New file.
33124         * lib/gl_xlist.h: New file.
33125         * lib/gl_xlist.c: New file.
33126         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
33127         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
33128         gl_list_add_last, gl_list_add_before, gl_list_add_after,
33129         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
33130         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
33131         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
33132         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
33133         gl_sortedlist_nx_add): New declarations.
33134         (struct gl_list_implementation): Rename and change methods accordingly.
33135         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
33136         (gl_list_nx_create): Renamed from gl_list_create.
33137         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33138         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33139         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33140         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33141         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33142         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33143         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33144         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33145         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
33146         gl_list_create_empty.
33147         (gl_list_nx_create): Renamed from gl_list_create.
33148         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33149         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33150         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33151         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33152         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33153         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33154         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33155         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33156         * lib/gl_array_list.c: Don't include xalloc.h.
33157         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
33158         NULL upon out-of-memory.
33159         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
33160         out-of-memory.
33161         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
33162         Change return type to 'int'.
33163         (gl_array_nx_set_at): Renamed from gl_array_set_at.
33164         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33165         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
33166         upon out-of-memory.
33167         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
33168         upon out-of-memory.
33169         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
33170         upon out-of-memory.
33171         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
33172         upon out-of-memory.
33173         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
33174         out-of-memory.
33175         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
33176         Update.
33177         (gl_array_list_implementation): Update.
33178         * lib/gl_carray_list.c: Don't include xalloc.h.
33179         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
33180         Return NULL upon out-of-memory.
33181         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
33182         out-of-memory.
33183         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
33184         Change return type to 'int'.
33185         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
33186         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33187         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
33188         upon out-of-memory.
33189         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
33190         upon out-of-memory.
33191         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
33192         out-of-memory.
33193         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
33194         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
33195         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
33196         Update.
33197         (gl_carray_list_implementation): Update.
33198         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
33199         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
33200         gl_linked_create_empty. Return NULL upon out-of-memory.
33201         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
33202         out-of-memory.
33203         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
33204         Change return type to 'int'. Return -1 upon out-of-memory.
33205         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
33206         out-of-memory.
33207         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
33208         upon out-of-memory.
33209         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
33210         upon out-of-memory.
33211         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
33212         NULL upon out-of-memory.
33213         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
33214         upon out-of-memory.
33215         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
33216         out-of-memory.
33217         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
33218         Update.
33219         * lib/gl_linked_list.c: Don't include xalloc.h.
33220         (gl_linked_list_implementation): Update.
33221         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
33222         (add_to_bucket): Change return type to 'int'.
33223         (gl_linkedhash_list_implementation): Update.
33224         * lib/gl_anytree_list1.h (free_subtree): New function.
33225         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
33226         gl_tree_create_empty. Return NULL upon out-of-memory.
33227         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
33228         Change return type to 'int'. Return -1 upon out-of-memory.
33229         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
33230         out-of-memory.
33231         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
33232         (gl_tree_remove_node): New function, moved here from
33233         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
33234         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
33235         Update.
33236         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
33237         malloc, not xmalloc. Return NULL upon out-of-memory.
33238         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33239         out-of-memory.
33240         (gl_tree_remove_node_from_tree): New function, extracted from
33241         gl_tree_remove_node.
33242         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33243         upon out-of-memory.
33244         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33245         out-of-memory.
33246         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33247         upon out-of-memory.
33248         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33249         upon out-of-memory.
33250         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33251         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
33252         not xmalloc. Return NULL upon out-of-memory.
33253         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33254         out-of-memory.
33255         (gl_tree_remove_node_from_tree): New function, extracted from
33256         gl_tree_remove_node.
33257         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33258         upon out-of-memory.
33259         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33260         out-of-memory.
33261         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33262         upon out-of-memory.
33263         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33264         upon out-of-memory.
33265         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33266         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
33267         gl_anytree_list1.h before gl_anyavltree_list2.h.
33268         (gl_avltree_list_implementation): Update.
33269         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
33270         gl_anytree_list1.h before gl_anyavltree_list2.h.
33271         (gl_rbtree_list_implementation): Update.
33272         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
33273         Change return type to 'int'. Return -1 upon out-of-memory. Use
33274         __builtin_expect.
33275         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
33276         (gl_avltreehash_list_implementation): Update.
33277         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
33278         (gl_rbtreehash_list_implementation): Update.
33279         * modules/array-list (Depends-on): Remove xalloc.
33280         * modules/carray-list (Depends-on): Likewise.
33281         * modules/linked-list (Depends-on): Likewise.
33282         * modules/linkedhash-list (Depends-on): Likewise.
33283         * modules/avltree-list (Depends-on): Likewise.
33284         * modules/rbtree-list (Depends-on): Likewise.
33285         * modules/avltreehash-list (Depends-on): Likewise.
33286         * modules/rbtreehash-list (Depends-on): Likewise.
33287
33288         * modules/xsublist: New file.
33289         * lib/gl_xsublist.h: New file.
33290         * lib/gl_xsublist.c: New file.
33291         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
33292         (gl_sublist_nx_create): New declaration.
33293         * lib/gl_sublist.c: Don't include xalloc.h.
33294         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
33295         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
33296         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
33297         Change return type to 'int'. Return -1 upon out-of-memory.
33298         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
33299         upon out-of-memory.
33300         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
33301         NULL upon out-of-memory.
33302         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
33303         upon out-of-memory.
33304         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
33305         NULL upon out-of-memory.
33306         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
33307         NULL upon out-of-memory.
33308         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
33309         upon out-of-memory.
33310         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
33311         (gl_sublist_list_implementation): Update.
33312         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
33313         upon out-of-memory.
33314         * modules/sublist (Depends-on): Remove xalloc.
33315
33316         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
33317         * tests/test-carray_list.c: Likewise.
33318         * tests/test-linked_list.c: Likewise.
33319         * tests/test-linkedhash_list.c: Likewise.
33320         * tests/test-avltree_list.c: Likewise.
33321         * tests/test-rbtree_list.c: Likewise.
33322         * tests/test-avltreehash_list.c: Likewise.
33323         * tests/test-rbtreehash_list.c: Likewise.
33324         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
33325         * modules/carray-list-tests (Makefile.am): Likewise.
33326         * modules/linked-list-tests (Makefile.am): Likewise.
33327         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33328         * modules/avltree-list-tests (Makefile.am): Likewise.
33329         * modules/rbtree-list-tests (Makefile.am): Likewise.
33330         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33331         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33332
33333         * NEWS: Mention the changes.
33334
33335         * lib/clean-temp.c: Include gl_xlist.h.
33336         * modules/clean-temp (Depends-on): Add xlist.
33337
33338         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
33339         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
33340
33341         * tests/test-array_oset.c: Include gl_xlist.h.
33342         * modules/array-oset-tests (Depends-on): Add xlist.
33343
33344         Reported by José E. Marchesi <jemarch@gnu.org>.
33345
33346 2009-12-13  Bruno Haible  <bruno@clisp.org>
33347
33348         Move the malloc checking from module 'oset' to new module 'xoset'.
33349         * modules/xoset: New file.
33350         * lib/gl_xoset.h: New file.
33351         * lib/gl_xoset.c: New file.
33352         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
33353         declarations.
33354         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
33355         (struct gl_oset_implementation): Rename and change methods accordingly.
33356         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
33357         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33358         'int'. Mark as __warn_unused_result__.
33359         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
33360         gl_oset_create_empty.
33361         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33362         'int'.
33363         * lib/gl_array_oset.c: Don't include xalloc.h.
33364         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
33365         malloc, not xmalloc.
33366         (grow): Change return type to 'int'. Don't call xalloc_die.
33367         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
33368         to 'int'.
33369         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
33370         'int'.
33371         (gl_array_oset_implementation): Update.
33372         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
33373         gl_tree_create_empty.
33374         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
33375         'int'.
33376         * lib/gl_avltree_oset.c: Don't include xalloc.h.
33377         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33378         xmalloc.
33379         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33380         not xmalloc.
33381         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33382         xmalloc.
33383         (gl_avltree_oset_implementation): Update.
33384         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
33385         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33386         xmalloc.
33387         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33388         not xmalloc.
33389         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33390         xmalloc.
33391         (gl_rbtree_oset_implementation): Update.
33392         * modules/array-oset (Depends-on): Remove xalloc.
33393         * modules/avltree-oset (Depends-on): Likewise.
33394         * modules/rbtree-oset (Depends-on): Likewise.
33395         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
33396         * tests/test-avltree_oset.c: Likewise.
33397         * tests/test-rbtree_oset.c: Likewise.
33398         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
33399         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
33400         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33401         * NEWS: Mention the change.
33402
33403 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
33404
33405         maint.mk: allow a project to override release-prep commands
33406         * top/maint.mk (alpha, beta, stable): Move release-preparatory
33407         commands into a new rule.
33408         (release-prep): New rule.
33409         (release-prep-hook): New overridable variable.
33410
33411 2009-12-13  Bruno Haible  <bruno@clisp.org>
33412
33413         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
33414
33415 2009-12-13  Jim Meyering  <meyering@redhat.com>
33416
33417         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
33418         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
33419
33420 2009-12-12  Bruno Haible  <bruno@clisp.org>
33421
33422         duplocale: Tweak.
33423         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
33424
33425 2009-12-12  Karl Berry  <karl@gnu.org>
33426
33427         * config/srclist.txt (strtoll.c): tab changes, no more sync.
33428
33429 2009-12-12  Bruno Haible  <bruno@clisp.org>
33430
33431         * m4/po.m4: Undo incorrect untabification.
33432
33433 2009-12-12  Bruno Haible  <bruno@clisp.org>
33434
33435         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
33436         * modules/c-strtod (Depends-on): Add locale.
33437         * modules/c-strtold (Depends-on): Likewise.
33438
33439 2009-12-12  Bruno Haible  <bruno@clisp.org>
33440
33441         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
33442
33443 2009-12-11  Eric Blake  <ebb9@byu.net>
33444
33445         setenv: relax requirement in light of POSIX ruling
33446         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
33447         not NULL.
33448         * tests/test-setenv.c (main): Relax test.
33449         * tests/test-unsetenv.c (main): Likewise.
33450         * doc/posix-functions/setenv.texi (setenv): Document this.
33451         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33452
33453 2009-12-11  Bruno Haible  <bruno@clisp.org>
33454
33455         New module 'fd-safer-flag'.
33456         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
33457         * lib/dup-safer.c (dup_safer_flag): Remove function.
33458         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
33459         * lib/fd-safer.c (fd_safer_flag): Remove function.
33460         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
33461         * modules/cloexec (configure.ac): Drop indicator macro.
33462         * modules/fd-safer-flag: New file.
33463         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
33464         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
33465         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
33466
33467 2009-12-11  Bruno Haible  <bruno@clisp.org>
33468
33469         Tests for module 'nl_langinfo'.
33470         * modules/nl_langinfo-tests: New file.
33471         * tests/test-nl_langinfo.sh: New file.
33472         * tests/test-nl_langinfo.c: New file.
33473
33474         New module 'nl_langinfo'.
33475         * lib/nl_langinfo.c: New file.
33476         * m4/nl_langinfo.m4: New file.
33477         * modules/nl_langinfo: New file.
33478         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
33479
33480 2009-12-11  Bruno Haible  <bruno@clisp.org>
33481
33482         Tests for module 'langinfo'.
33483         * modules/langinfo-tests: New file.
33484         * tests/test-langinfo.c: New file.
33485
33486         New module 'langinfo'.
33487         * lib/langinfo.in.h: New file.
33488         * m4/langinfo_h.m4: New file.
33489         * modules/langinfo: New file.
33490         * doc/posix-headers/langinfo.texi: Mention the new module.
33491
33492 2009-12-11  Bruno Haible  <bruno@clisp.org>
33493
33494         * lib/config.charset: Untabify.
33495
33496 2009-12-11  Bruno Haible  <bruno@clisp.org>
33497
33498         * modules/unistd-safer (configure.ac): Drop indicator macro.
33499
33500 2009-12-11  Bruno Haible  <bruno@clisp.org>
33501
33502         Move pipe2-safer code to its own file.
33503         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
33504         * lib/pipe-safer.c (pipe2_safer): Remove function.
33505         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
33506         (Makefile.am): Add it to lib_SOURCES.
33507
33508 2009-12-10  Bruno Haible  <bruno@clisp.org>
33509
33510         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
33511
33512 2009-12-10  Bruno Haible  <bruno@clisp.org>
33513
33514         Declare which arguments expect non-NULL values, for GCC and clang.
33515         * build-aux/arg-nonnull.h: New file.
33516         * modules/arg-nonnull: New file.
33517         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
33518         (inet_ntop, inet_pton): Use it.
33519         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
33520         (closedir, dirfd, opendir, scandir, alphasort): Use it.
33521         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
33522         (open, openat): Use it.
33523         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
33524         (fnmatch): Use it.
33525         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
33526         (getopt, getopt_long, getopt_long_only): Use it.
33527         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
33528         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
33529         Use it.
33530         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
33531         (iconv_open): Use it.
33532         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
33533         (strtoimax, strtoumax): Use it.
33534         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
33535         (duplocale): Use it.
33536         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
33537         (frexp, frexpl): Use it.
33538         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
33539         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
33540         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
33541         (tsearch, tfind, tdelete, twalk): Use it.
33542         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
33543         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33544         sigpending): Use it.
33545         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
33546         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33547         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33548         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33549         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33550         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33551         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33552         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33553         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33554         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33555         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33556         Use it.
33557         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
33558         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
33559         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
33560         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
33561         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
33562         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
33563         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
33564         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
33565         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
33566         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
33567         strtoull, unsetenv): Use it.
33568         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
33569         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33570         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33571         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
33572         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
33573         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
33574         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
33575         (strcasecmp, strncasecmp): Use it.
33576         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
33577         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
33578         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
33579         rpl_setsockopt): Use it.
33580         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
33581         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
33582         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
33583         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
33584         (gettimeofday): Use it.
33585         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
33586         (times): Use it.
33587         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
33588         (uname): Use it.
33589         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
33590         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
33591         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
33592         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
33593         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
33594         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
33595         unlinkat, write): Use it.
33596         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
33597         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
33598         * lib/argv-iter.h: Include arg-nonnull.h.
33599         (_ATTRIBUTE_NONNULL_): Remove macro.
33600         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
33601         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
33602         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
33603         optimization.
33604         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
33605         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
33606         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
33607         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
33608         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
33609         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
33610         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
33611         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
33612         * modules/arpa_inet (Depends-on): Add arg-nonnull.
33613         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
33614         * modules/dirent (Depends-on): Add arg-nonnull.
33615         (Makefile.am): Insert arg-nonnull.h into dirent.h.
33616         * modules/fcntl-h (Depends-on): Add arg-nonnull.
33617         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
33618         * modules/fnmatch (Depends-on): Add arg-nonnull.
33619         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
33620         * modules/getopt-posix (Depends-on): Add arg-nonnull.
33621         (Makefile.am): Insert arg-nonnull.h into getopt.h.
33622         * modules/glob (Depends-on): Add arg-nonnull.
33623         (Makefile.am): Insert arg-nonnull.h into glob.h.
33624         * modules/iconv_open (Depends-on): Add arg-nonnull.
33625         (Makefile.am): Insert arg-nonnull.h into iconv.h.
33626         * modules/inttypes (Depends-on): Add arg-nonnull.
33627         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
33628         * modules/locale (Depends-on): Add arg-nonnull.
33629         (Makefile.am): Insert arg-nonnull.h into locale.h.
33630         * modules/math (Depends-on): Add arg-nonnull.
33631         (Makefile.am): Insert arg-nonnull.h into math.h.
33632         * modules/netdb (Depends-on): Add arg-nonnull.
33633         (Makefile.am): Insert arg-nonnull.h into netdb.h.
33634         * modules/search (Depends-on): Add arg-nonnull.
33635         (Makefile.am): Insert arg-nonnull.h into search.h.
33636         * modules/signal (Depends-on): Add arg-nonnull.
33637         (Makefile.am): Insert arg-nonnull.h into signal.h.
33638         * modules/spawn (Depends-on): Add arg-nonnull.
33639         (Makefile.am): Insert arg-nonnull.h into spawn.h.
33640         * modules/stdio (Depends-on): Add arg-nonnull.
33641         (Makefile.am): Insert arg-nonnull.h into stdio.h.
33642         * modules/stdlib (Depends-on): Add arg-nonnull.
33643         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
33644         * modules/string (Depends-on): Add arg-nonnull.
33645         (Makefile.am): Insert arg-nonnull.h into string.h.
33646         * modules/strings (Depends-on): Add arg-nonnull.
33647         (Makefile.am): Insert arg-nonnull.h into strings.h.
33648         * modules/sys_socket (Depends-on): Add arg-nonnull.
33649         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
33650         * modules/sys_stat (Depends-on): Add arg-nonnull.
33651         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
33652         * modules/sys_time (Depends-on): Add arg-nonnull.
33653         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
33654         * modules/sys_times (Depends-on): Add arg-nonnull.
33655         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
33656         * modules/sys_utsname (Depends-on): Add arg-nonnull.
33657         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
33658         * modules/time (Depends-on): Add arg-nonnull.
33659         (Makefile.am): Insert arg-nonnull.h into time.h.
33660         * modules/unistd (Depends-on): Add arg-nonnull.
33661         (Makefile.am): Insert arg-nonnull.h into unistd.h.
33662         * modules/wchar (Depends-on): Add arg-nonnull.
33663         (Makefile.am): Insert arg-nonnull.h into wchar.h.
33664         * modules/argv-iter (Depends-on): Add arg-nonnull.
33665         * tests/test-canonicalize.c (null_ptr): New function.
33666         (main): Use it.
33667         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
33668         (main): Use it.
33669         * tests/test-memmem.c (null_ptr): New function.
33670         (main): Use it.
33671         Reported by Jim Meyering.
33672
33673 2009-12-10  Bruno Haible  <bruno@clisp.org>
33674
33675         Use spaces for indentation, not tabs.
33676         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
33677         * m4/*.m4: Untabify.
33678         * build-aux/*.h: Untabify.
33679         * tests/**/*.[hc]: Untabify.
33680         * README: New section "Indent with spaces, not TABs", based on
33681         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
33682         * NEWS: Mention the change.
33683
33684 2009-12-10  Bruno Haible  <bruno@clisp.org>
33685
33686         pty test: Fix link error.
33687         * modules/pty-tests (Makefile.am): Add the default LDADD value to
33688         test_pty_LDADD.
33689
33690 2009-12-07  Simon Josefsson  <simon@josefsson.org>
33691
33692         * modules/pty: New file.
33693         * modules/pty-tests: New file.
33694         * m4/pty.m4: New file.
33695         * tests/test-pty.c: New file.
33696         * doc/glibc-headers/pty.texi: Modified.
33697         * doc/glibc-functions/forkpty.texi: Modified.
33698         * doc/glibc-functions/openpty.texi: Modified.
33699
33700 2009-12-10  Bruno Haible  <bruno@clisp.org>
33701
33702         Avoid syntax error in C++ mode.
33703         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
33704
33705 2009-12-10  Bruno Haible  <bruno@clisp.org>
33706
33707         Use sed with option -e.
33708         * gnulib-tool (func_version, func_emit_copyright_notice,
33709         func_emit_initmacro_end, func_import, func_create_testdir): Pass
33710         option -e to sed.
33711         * modules/link-warning (Makefile.am): Likewise.
33712
33713 2009-12-10  Jim Meyering  <meyering@redhat.com>
33714
33715         mgetgroups: do not write bytes beyond end of malloc'd buffer
33716         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
33717         username, we call getgroups with a one-element-shorter buffer,
33718         but still told it the length was original, max_n_groups.
33719
33720 2009-12-09  Eric Blake  <ebb9@byu.net>
33721
33722         cloexec: relax license
33723         * modules/cloexec (Maintainer): Add myself.
33724         (License): Use LGPL, not GPL.
33725
33726         link-warning: optimize generation
33727         * modules/link-warning (Makefile.am): Reduce process usage.
33728
33729 2009-12-09  Bruno Haible  <bruno@clisp.org>
33730
33731         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
33732         workaround was added on 2009-11-17.
33733
33734 2009-12-09  Jim Meyering  <meyering@redhat.com>
33735             Bruno Haible  <bruno@clisp.org>
33736
33737         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
33738         * modules/link-warning (Makefile.am): Make the comment-removing sed
33739         command more robust in the face of bootstrap-prepended comment lines.
33740
33741 2009-12-09  Bruno Haible  <bruno@clisp.org>
33742
33743         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
33744         most one group.
33745
33746 2009-12-09  Simon Josefsson <simon@josefsson.org>
33747             Bruno Haible  <bruno@clisp.org>
33748
33749         * build-aux/link-warning.h: Add copyright notice.
33750         * modules/link-warning (Makefile.am): Generate link-warning.h from
33751         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
33752         * NEWS: Mention change in link-warning module.
33753         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
33754         * modules/dirent (Makefile.am): Add dependency to dirent.h.
33755         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
33756         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
33757         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
33758         * modules/math (Makefile.am): Add dependency to math.h.
33759         * modules/search (Makefile.am): Add dependency to search.h.
33760         * modules/signal (Makefile.am): Add dependency to signal.h.
33761         * modules/spawn (Makefile.am): Add dependency to spawn.h.
33762         * modules/stdio (Makefile.am): Add dependency to stdio.h.
33763         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
33764         * modules/string (Makefile.am): Add dependency to string.h.
33765         * modules/strings (Makefile.am): Add dependency to strings.h.
33766         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
33767         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
33768         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
33769         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
33770         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
33771         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
33772         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
33773         * modules/unistd (Makefile.am): Add dependency to unistd.h.
33774         * modules/wchar (Makefile.am): Add dependency to wchar.h.
33775
33776 2009-12-09  Bruno Haible  <bruno@clisp.org>
33777
33778         fchdir: Optimize away rpl_fstat when possible.
33779         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
33780         REPLACE_OPEN_DIRECTORY.
33781         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
33782
33783 2009-12-09  Bruno Haible  <bruno@clisp.org>
33784
33785         * lib/fchdir.c: Update comment.
33786
33787 2009-12-09  Bruno Haible  <bruno@clisp.org>
33788
33789         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
33790
33791 2009-12-08  Eric Blake  <ebb9@byu.net>
33792
33793         fchdir: avoid memory leak on re-registration.
33794         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
33795
33796 2009-12-08  Jim Meyering  <meyering@redhat.com>
33797
33798         init.sh: avoid Solaris 10 /bin/sh portability problem
33799         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
33800         sourced script:
33801           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
33802           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
33803           bar
33804         tests/init.sh relied on that, accepting a --set-path=DIR argument,
33805         and two tests used that idiom.
33806         * tests/init.sh: Update suggested usage comments.
33807         (path_prepend_): New function, to be used in place
33808         of the --src-path=DIR option.
33809         (setup_): Move PATH-prepending code into path_prepend_.
33810         * tests/test-pread.sh: Adapt to new usage.
33811         * tests/test-xalloc-die.sh: Likewise.
33812
33813 2009-12-08  Simon Josefsson  <simon@josefsson.org>
33814
33815         * doc/gnulib.texi (Glibc pty.h): Add.
33816         * doc/glibc-functions/forkpty.texi: Add.
33817         * doc/glibc-functions/openpty.texi: Add.
33818         Suggested by Bruno Haible.
33819
33820 2009-12-08  Eric Blake  <ebb9@byu.net>
33821
33822         fchdir: fix logic bugs
33823         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
33824         * tests/test-fchdir.c (main): Enhance test.
33825         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
33826         is in use.
33827
33828         dup2: fix logic bugs
33829         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
33830         REPLACE_DUP2 to decide when rpl_dup2 is needed.
33831         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
33832         exists.
33833         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
33834
33835 2009-12-07  Eric Blake  <ebb9@byu.net>
33836
33837         unlink: fix m4 detection
33838         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
33839
33840         unistd-safer: add unit test
33841         * modules/unistd-safer-tests: New file.
33842         * tests/test-dup-safer.c: Likewise.
33843         * tests/test-cloexec.c (setmode): Avoid compiler warning.
33844         * tests/test-dup2.c (setmode): Likewise.
33845         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
33846
33847         cloexec: preserve text vs. binary across dup_cloexec
33848         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
33849         mode.
33850         * modules/dup2-tests (Depends-on): Add binary-io.
33851         * modules/cloexec-tests (Depends-on): Likewise.
33852         * tests/test-dup2.c (setmode, is_mode): New helpers.
33853         (main): Add tests that translation mode is preserved.
33854         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
33855         Reported by Bruno Haible.
33856
33857         mgetgroups: reduce duplicate listings
33858         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
33859         resulting array.
33860         * tests/test-chown.h (test_chown): Simplify client.
33861         * tests/test-lchown.h (test_lchown): Likewise.
33862
33863 2009-12-06  Bruno Haible  <bruno@clisp.org>
33864
33865         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
33866         value.
33867
33868 2009-12-06  Bruno Haible  <bruno@clisp.org>
33869
33870         * lib/progname.c: Include stdio.h, stdlib.h.
33871         (set_program_name): Reject a NULL argument.
33872
33873 2009-12-05  Eric Blake  <ebb9@byu.net>
33874
33875         pipe2-safer: new module
33876         * modules/pipe2-safer: New file.
33877         * lib/unistd-safer.h (pipe2_safer): New prototype.
33878         * lib/unistd--.h (pipe2): New wrapper.
33879         * lib/pipe-safer.c (pipe2_safer): New function.
33880         * modules/pipe (Depends-on): Add pipe2-safer.
33881         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
33882
33883         stdlib-safer: preserve cloexec flag for mkostemp[s]
33884         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
33885         fd_safer_flag.
33886
33887         unistd-safer: allow preservation of cloexec status via flag
33888         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
33889         prototypes.
33890         * lib/dup-safer.c (dup_safer_flag): New function.
33891         * lib/fd-safer.c (fd_safer_flag): Likewise.
33892         * modules/cloexec (configure.ac): Set witness.
33893
33894         test-dup2: enhance test
33895         * modules/dup2-tests (Depends-on): Add cloexec.
33896         * tests/test-dup2.c (main): Enhance test.
33897
33898         cloexec: add dup_cloexec
33899         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
33900         header and comments.
33901         * lib/cloexec.c (set_cloexec_flag): Add comments.
33902         (dup_cloexec): New function, with mingw implementation borrowed
33903         from...
33904         * lib/w32spawn.h (dup_noinherit): ...here.
33905         * modules/execute (Depends-on): Add cloexec.
33906         * modules/pipe (Depends-on): Likewise.
33907         * modules/cloexec (Depends-on): Add dup2.
33908         * modules/cloexec-tests (Files): New file.
33909         * tests/test-cloexec.c: Likewise.
33910
33911         test-xalloc-die: fix test for mingw
33912         * modules/xalloc-die-tests (Files): Add tests/init.sh.
33913         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
33914         directory and .exe suffix off argv[0] output.
33915
33916         test-fseeko: fix test for mingw
33917         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
33918         than undefining fseek, so test will pass on mingw.
33919
33920 2009-12-05  Bruno Haible  <bruno@clisp.org>
33921
33922         * lib/progname.h (set_program_name): Clarify specification.
33923         * lib/progname.c (set_program_name): Likewise.
33924         Reported by Jim Meyering.
33925
33926 2009-12-05  Jim Meyering  <meyering@redhat.com>
33927
33928         maint.mk: backslash-escape parens in default regexp
33929         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
33930         backslash-escape the literal parentheses.
33931
33932         maint.mk: news-date-check: use grep -E
33933         * top/maint.mk (today): Define a Make variable, not a...
33934         (news-date-check): ...shell variable.
33935         (news-date-regexp): Use the Make variable.
33936         Use grep's -E option.  Change the failing diagnostic to mention
33937         the variable, $(news-date-regexp).
33938
33939 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
33940
33941         maintainer-makefile: allow customization of NEWS entry format
33942         * top/maint.mk (news-date-regexp): New overridable variable.
33943         (news-date-check): Use it.
33944
33945 2009-12-04  Eric Blake  <ebb9@byu.net>
33946
33947         mgetgroups: add xgetgroups, and avoid ENOSYS failures
33948         * lib/mgetgroups.h (xgetgroups): New prototype.
33949         * lib/mgetgroups.c (xgetgroups): New wrapper.
33950         (mgetgroups): Handle ENOSYS.
33951         * modules/mgetgroups (Depends-on): Add realloc.
33952         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
33953
33954         mgetgroups: avoid argument promotion issues with -1
33955         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
33956         for invalid gid_t.
33957         * tests/test-chown.h (getegid, test_chown): Likewise.
33958         * tests/test-lchown.h (getegid, test_lchown): Likewise.
33959
33960 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
33961
33962         exclude: Fix header file problems.
33963         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
33964
33965 2009-12-01  Jim Meyering  <meyering@redhat.com>
33966
33967         fts: fts_open: do not let an empty string cause immediate failure
33968         This is required in support of GNU rm, for which the command
33969         "rm A '' B" must process and remove both A and B, in spite of
33970         the empty string argument.
33971         * lib/fts.c (fts_open): Do not let the presence of an empty string
33972         cause fts_open to fail immediately.  Most fts-using tools must be
33973         able to process all arguments, in order, and can be expected to
33974         diagnose such arguments themselves.
33975
33976 2009-11-30  Eric Blake  <ebb9@byu.net>
33977
33978         utimens: fix compilation error
33979         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
33980         Declare variable at right scope.
33981
33982 2009-11-29  Jim Meyering  <meyering@redhat.com>
33983
33984         bootstrap: handle perl-5.11's changed --version output
33985         * build-aux/bootstrap (get_version): Handle perl separately,
33986         since perl-5.11's --version output is different.
33987
33988 2009-11-28  Jim Meyering  <meyering@redhat.com>
33989
33990         userspec: depend on the inttostr module, too
33991         * modules/userspec (Depends-on): Add inttostr.
33992
33993         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
33994         * lib/userspec.c (parse_with_separator): Do not accept a user ID
33995         number of MAXUID when it evaluates to (uid_t) -1.
33996         Likewise for group ID.  Reported by Matt McCutchen in
33997         <http://savannah.gnu.org/bugs/?28113>
33998
33999         userspec: reformat to use spaces, not TABs
34000         * lib/userspec.c: Expand TABs to spaces.
34001         Add Emacs' "indent-tabs-mode: nil" hint.
34002
34003 2009-11-27  Eric Blake  <ebb9@byu.net>
34004
34005         getopt-gnu: flush out another BSD bug
34006         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
34007         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
34008         flush out BSD bug.
34009         * tests/test-getopt.h (test_getopt): End lists with NULL.
34010         * tests/test-getopt_long.h (test_getopt_long): Likewise.
34011         (test_getopt_long_posix): Enhance test.
34012         * modules/getopt-posix-tests (Depends-on): Add stdbool.
34013         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
34014         getopt-gnu.
34015         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34016         Likewise.
34017
34018 2009-11-27  Simon Josefsson  <simon@josefsson.org>
34019
34020         * modules/idpriv-droptemp-tests (Notice): Fix text.
34021
34022 2009-11-27  Jim Meyering  <meyering@redhat.com>
34023
34024         test-xalloc-die: avoid spurious failure due to libtool argv difference
34025         In a libtool-enabled project, this test would fail due to a difference
34026         in the emitted program name, e.g.,
34027         -test-xalloc-die: memory exhausted
34028         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
34029         Use program to avoid that.
34030         * modules/xalloc-die-tests (Depends-on): Add progname.
34031         * tests/test-xalloc-die.c: Include progname.h".
34032         (program_name): Remove decl.
34033         (main): Call set_program_name.
34034         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
34035
34036 2009-11-26  Richard Jones  <rjones@redhat.com>
34037
34038         w32sock: leave win32 error in place.
34039         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
34040
34041 2009-11-26  Eric Blake  <ebb9@byu.net>
34042
34043         init.sh: suggest to use skip_ and fail_ functions in comments
34044         * tests/init.sh: Add a sentence.
34045
34046 2009-11-25  Bruno Haible  <bruno@clisp.org>
34047
34048         init.sh: add documentation in comments
34049         * tests/init.sh: Add some developer and user documentation.
34050
34051 2009-11-26  Jim Meyering  <meyering@redhat.com>
34052
34053         init.sh: accommodate even those who specify bogus srcdir manually
34054         * tests/init.sh: Normally, srcdir is guaranteed by automake and
34055         configure-time tests to be sanitized, so that there is no need to
34056         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
34057         (with no double quotes) suffices.  However, since tests may be
34058         invoked manually, and since you may explicitly set srcdir to the
34059         name of a directory containing spaces, do quote its uses here.
34060         * tests/test-pread.sh: Likewise.
34061         Suggested by Bruno Haible.
34062
34063         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
34064         * tests/test-pread.sh: Write no data into the pipe, because
34065         test-pread actually reads none.  This avoids a diagnostic,
34066         "bash: echo: write error: Broken pipe", that arises in the unusual
34067         event something is ignoring SIGPIPE, and might be interpreted
34068         as some sort of failure.  Reported by Bruno Haible.
34069
34070 2009-11-25  Jim Meyering  <meyering@redhat.com>
34071
34072         test-pread: cover failure with ESPIPE and EINVAL
34073         * tests/test-pread.c (main): Test for failure, too.
34074         * tests/test-pread.sh: Invoke with stdin on a pipe.
34075         Suggested by Eric Blake.
34076
34077         pread: improvement and fix
34078         * modules/pread (Depends-on): Depend on lseek, for portability to
34079         e.g., mingw.  Suggested by Eric Blake.
34080         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
34081
34082         unistd.in.h: correct declaration of pread
34083         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
34084         Reported by Richard W.M. Jones.
34085
34086         test-pread.sh: distribute the test script
34087         * modules/pread-tests (Files): Include test-pread.sh.
34088
34089         test-pread.sh: clean up
34090         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
34091         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
34092         That is unnecessary, since it's always ".".
34093         Suggestion from Eric Blake.
34094
34095         test-pread.sh: make executable
34096         * tests/test-pread.sh: Set executable bit.
34097         Reported by Eric Blake.
34098
34099         correct typo in test-pread.sh
34100         * tests/test-pread.sh: Add #! line.
34101
34102         test pread
34103         * tests/test-pread.c: New file.
34104         * tests/test-pread.sh: Likewise.
34105         * modules/pread-tests: Likewise.
34106
34107         pread: new module
34108         * modules/pread: New file.
34109         * lib/unistd.in.h (pread): Define/declare.
34110         * lib/pread.c (pread): New file.
34111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
34112         * modules/unistd (Makefile.am): Substitute witnesses.
34113         * doc/posix-functions/pread.texi (pread): Update.
34114         * MODULES.html.sh: Add pread.
34115
34116 2009-11-25  Jim Meyering  <meyering@redhat.com>
34117
34118         tests/init.sh: new file to be used via most *.sh tests
34119         * tests/init.sh: New file.
34120
34121 2009-11-25  Eric Blake  <ebb9@byu.net>
34122
34123         utimens: work around older Linux failure with symlinks
34124         * lib/utimens.c (lutimensat_works_really): New variable.
34125         (fdutimens, lutimens): Use it to manage kernels that support
34126         nanosecond times on files, but not on symlinks.
34127         Reported by Ondřej Vašík.
34128
34129         utimes: fix configure grammar
34130         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
34131
34132 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
34133
34134         regex: Fix fastmap for multibyte character ranges.
34135         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
34136         characters when a multibyte character range is included.
34137
34138 2009-11-22  Andy Wingo  <wingo@pobox.com>
34139
34140         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
34141         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
34142
34143 2009-11-24  Bruno Haible  <bruno@clisp.org>
34144
34145         doc: Most *_l functions exist in MacOS X 10.5.
34146         * doc/posix-functions/duplocale.texi: Update platforms list.
34147         * doc/posix-functions/freelocale.texi: Likewise.
34148         * doc/posix-functions/newlocale.texi: Likewise.
34149         * doc/posix-functions/uselocale.texi: Likewise.
34150         * doc/posix-functions/isalnum_l.texi: Likewise.
34151         * doc/posix-functions/isalpha_l.texi: Likewise.
34152         * doc/posix-functions/isblank_l.texi: Likewise.
34153         * doc/posix-functions/iscntrl_l.texi: Likewise.
34154         * doc/posix-functions/isdigit_l.texi: Likewise.
34155         * doc/posix-functions/isgraph_l.texi: Likewise.
34156         * doc/posix-functions/islower_l.texi: Likewise.
34157         * doc/posix-functions/isprint_l.texi: Likewise.
34158         * doc/posix-functions/ispunct_l.texi: Likewise.
34159         * doc/posix-functions/isspace_l.texi: Likewise.
34160         * doc/posix-functions/isupper_l.texi: Likewise.
34161         * doc/posix-functions/iswalnum_l.texi: Likewise.
34162         * doc/posix-functions/iswalpha_l.texi: Likewise.
34163         * doc/posix-functions/iswblank_l.texi: Likewise.
34164         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34165         * doc/posix-functions/iswctype_l.texi: Likewise.
34166         * doc/posix-functions/iswdigit_l.texi: Likewise.
34167         * doc/posix-functions/iswgraph_l.texi: Likewise.
34168         * doc/posix-functions/iswlower_l.texi: Likewise.
34169         * doc/posix-functions/iswprint_l.texi: Likewise.
34170         * doc/posix-functions/iswpunct_l.texi: Likewise.
34171         * doc/posix-functions/iswspace_l.texi: Likewise.
34172         * doc/posix-functions/iswupper_l.texi: Likewise.
34173         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34174         * doc/posix-functions/isxdigit_l.texi: Likewise.
34175         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
34176         * doc/posix-functions/strcasecmp_l.texi: Likewise.
34177         * doc/posix-functions/strcoll_l.texi: Likewise.
34178         * doc/posix-functions/strfmon_l.texi: Likewise.
34179         * doc/posix-functions/strftime_l.texi: Likewise.
34180         * doc/posix-functions/strncasecmp_l.texi: Likewise.
34181         * doc/posix-functions/strxfrm_l.texi: Likewise.
34182         * doc/posix-functions/tolower_l.texi: Likewise.
34183         * doc/posix-functions/toupper_l.texi: Likewise.
34184         * doc/posix-functions/towctrans_l.texi: Likewise.
34185         * doc/posix-functions/towlower_l.texi: Likewise.
34186         * doc/posix-functions/towupper_l.texi: Likewise.
34187         * doc/posix-functions/wcscoll_l.texi: Likewise.
34188         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34189         * doc/posix-functions/wctrans_l.texi: Likewise.
34190         * doc/posix-functions/wctype_l.texi: Likewise.
34191         * doc/glibc-functions/strptime_l.texi: Likewise.
34192         * doc/glibc-functions/strtod_l.texi: Likewise.
34193         * doc/glibc-functions/strtof_l.texi: Likewise.
34194         * doc/glibc-functions/strtol_l.texi: Likewise.
34195         * doc/glibc-functions/strtold_l.texi: Likewise.
34196         * doc/glibc-functions/strtoll_l.texi: Likewise.
34197         * doc/glibc-functions/strtoul_l.texi: Likewise.
34198         * doc/glibc-functions/strtoull_l.texi: Likewise.
34199         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34200         * doc/glibc-functions/wcstod_l.texi: Likewise.
34201         * doc/glibc-functions/wcstof_l.texi: Likewise.
34202         * doc/glibc-functions/wcstol_l.texi: Likewise.
34203         * doc/glibc-functions/wcstold_l.texi: Likewise.
34204         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34205         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34206         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34207
34208 2009-11-24  Bruno Haible  <bruno@clisp.org>
34209
34210         duplocale: Fix logic bug.
34211         * lib/duplocale.c: Don't include <langinfo.h>.
34212         (_NL_LOCALE_NAME): Remove macro.
34213         (rpl_duplocale): Use setlocale instead of nl_langinfo.
34214         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
34215
34216 2009-11-23  Jim Meyering  <meyering@redhat.com>
34217
34218         test-update-copyright: don't hard-code /usr/bin/perl
34219         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
34220         perl to print the current year.  Gilles Espinasse reported that
34221         the replaced use of perl was hard-coded as /usr/bin/perl.
34222
34223 2009-11-23  Bruno Haible  <bruno@clisp.org>
34224
34225         duplocale: Add support for glibc 2.3.x.
34226         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
34227
34228 2009-11-22  Bruno Haible  <bruno@clisp.org>
34229
34230         vasnprintf: Tiny optimization.
34231         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
34232         MacOS X.
34233
34234 2009-11-22  Bruno Haible  <bruno@clisp.org>
34235
34236         Tests for module 'duplocale'.
34237         * modules/duplocale-tests: New file.
34238         * tests/test-duplocale.c: New file.
34239
34240         New module 'duplocale'.
34241         * m4/duplocale.m4: New file.
34242         * lib/locale.in.h (duplocale): New declaration.
34243         * lib/duplocale.c: New file.
34244         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
34245         gl_LOCALE_H_DEFAULTS): New macros.
34246         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
34247         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
34248         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
34249         REPLACE_DUPLOCALE.
34250         * modules/duplocale: New file.
34251         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
34252
34253 2009-11-22  Bruno Haible  <bruno@clisp.org>
34254
34255         * modules/locale-tests (configure.ac): Test for newlocale function.
34256         * tests/test-locale.c: When the system has extended locale functions,
34257         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
34258
34259         locale: Make locale_t available when possible.
34260         * lib/locale.in.h: Include <xlocale.h> when it exists.
34261         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
34262         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
34263         * modules/locale (Depends-on): Add extensions.
34264         (Makefile.am): Also substitute HAVE_XLOCALE_H.
34265         * doc/posix-headers/locale.texi: Document the problem with locale_t.
34266
34267 2009-11-22  Bruno Haible  <bruno@clisp.org>
34268
34269         Add comments.
34270         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
34271         invocation.
34272         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34273         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34274         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34275
34276 2009-11-22  Bruno Haible  <bruno@clisp.org>
34277
34278         error: account for the possibility of freopen (stdout).
34279         * lib/error.c: Include <unistd.h>.
34280         (flush_stdout): New function, extracted from error and error_at_line.
34281         Determine stdout's fd dynamically.
34282         (error, error_at_line): Invoke flush_stdout.
34283         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
34284         * modules/error (Depends-on): Add unistd.
34285
34286 2009-11-22  Bruno Haible  <bruno@clisp.org>
34287
34288         diffseq: Add comment.
34289         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
34290
34291 2009-11-22  Jim Meyering  <meyering@redhat.com>
34292
34293         c-stack: avoid defining an unused static function
34294         * lib/c-stack.c (find_stack_direction): Do not define this function
34295         when it will not be used.
34296
34297         diffseq: avoid spurious gcc warnings
34298         * lib/diffseq.h (IF_LINT2): Define.
34299         (compareseq): Use it to initialize two members of "part".
34300         This avoids two used-uninitialized warnings.
34301
34302 2009-11-21  Jim Meyering  <meyering@redhat.com>
34303
34304         c-stack: avoid "ignoring return value of `write'" warning
34305         * lib/c-stack.c: Include "ignore-value.h".
34306         (die): Explicitly ignore each write return value.
34307         * modules/c-stack (Depends-on): Add ignore-value.
34308
34309 2009-11-21  Bruno Haible  <bruno@clisp.org>
34310
34311         diffseq: reduce scope of variable 'best'.
34312         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
34313         variable, earlier used for two different purposes.
34314
34315 2009-11-21  Jim Meyering  <meyering@redhat.com>
34316
34317         diffseq: remove useless assignment to "best"
34318         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
34319         assignment.  At that point "best" is already guaranteed to be zero.
34320
34321 2009-11-20  Eric Blake  <ebb9@byu.net>
34322
34323         build: mention ftp redirector in release announcements
34324         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
34325         values that used to come from cfg.mk; mention FTP redirect URL.
34326         * build-aux/announce-gen: Mention the mirror list.
34327         Suggested by Karl Berry.
34328
34329         nanosleep: improve port to mingw
34330         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
34331         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
34332         LIB_NANOSLEEP, but only when needed.
34333         * modules/select (Link): Document LIBSOCKET.
34334         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
34335         enough.
34336
34337         nanosleep: work around cygwin bug
34338         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
34339         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
34340         bug.
34341         (getnow): Delete, not needed.
34342         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
34343         LIB_CLOCK_GETTIME.
34344         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
34345         clock-time, gettime.
34346         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
34347         bug.
34348         * modules/nanosleep-tests: New test.
34349         * tests/test-nanosleep.c: New file.
34350
34351         sleep: work around cygwin bug
34352         * lib/sleep.c (rpl_sleep): Work around the bug.
34353         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
34354         (gl_PREREQ_SLEEP): Delete unused macro.
34355         * modules/sleep (Depends-on): Add verify.
34356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34357         * modules/unistd (Makefile.am): Substitute witness.
34358         * lib/unistd.in.h (sleep): Update prototype.
34359         * doc/posix-functions/sleep.texi (sleep): Document the bug.
34360         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
34361         * modules/sleep-tests (Depends-on): Check for alarm.
34362
34363 2009-11-20  Jim Meyering  <meyering@redhat.com>
34364
34365         maint.mk: improve sc_prohibit_magic_number_exit
34366         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
34367         so it does not match uses like System.exit(1).
34368         Add comments showing how to correct all offenders.
34369
34370 2009-11-19  Eric Blake  <ebb9@byu.net>
34371
34372         xalloc-die-tests: add missing library
34373         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
34374
34375         test-xvasprintf: silence compiler warnings
34376         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
34377         empty string from gcc.
34378
34379 2009-11-19  Jim Meyering  <meyering@redhat.com>
34380
34381         xfreopen: new module, from coreutils
34382         * modules/xfreopen: New module.
34383         * lib/xfreopen.c: New file.
34384         * lib/xfreopen.h: New file.
34385         * MODULES.html.sh (File stream based Input/Output"): Add it.
34386
34387 2009-11-19  Eric Blake  <ebb9@byu.net>
34388
34389         manywarnings: depend on warnings
34390         * modules/manywarnings (Depends-on): Add warnings.
34391
34392         build: avoid compiler warnings
34393         * lib/select.c (rpl_select): Delete unused variable.
34394         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
34395
34396 2009-11-18  Eric Blake  <ebb9@byu.net>
34397
34398         tests: avoid false negative with --with-packager
34399         * tests/test-version-etc.sh: Discard packager information.
34400         * tests/test-argp-version-etc-1.sh: Likewise.
34401         Reported by Mike Frysinger.
34402
34403         utimens: fix regression on Solaris
34404         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
34405         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
34406         can only change fd timestamps via futimesat.  Instead, use an
34407         additional witness macro to avoid BSD bug.
34408         Reported by Jim Meyering.
34409
34410 2009-11-17  Eric Blake  <ebb9@byu.net>
34411
34412         usleep: use it to simplify tests
34413         * modules/stat-time-tests (Depends-on): Add usleep.
34414         (configure.ac): Drop usleep check.
34415         * modules/chown-tests (Depends-on, configure.ac): Likewise.
34416         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
34417         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
34418         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
34419         * modules/openat-tests (Depends-on, configure.ac): Likewise.
34420         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
34421         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
34422         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
34423         Likewise.
34424         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
34425         * tests/test-lchown.h (nap): Likewise.
34426         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
34427         * tests/test-stat-time.c (nap): Likewise.
34428         * tests/test-utimens-common.h (nap): Update comments.
34429
34430         usleep: new module
34431         * modules/usleep: New file.
34432         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
34433         * lib/usleep.c (usleep): Likewise.
34434         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34435         * modules/unistd (Makefile.am): Substitute witnesses.
34436         * lib/unistd.in.h (usleep): Add declaration.
34437         * doc/pastposix-functions/usleep.texi (usleep): Document this.
34438         * MODULES.html.sh (Date and time): Likewise.
34439         * modules/usleep-tests (Depends-on): New test.
34440         * tests/test-usleep.c: New file.
34441
34442         chown: work around OpenBSD bug
34443         * lib/chown.c (rpl_chown): Work around the bug.
34444         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
34445         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
34446         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
34447         * modules/chown (Depends-on): Add stdbool.
34448         * modules/lchown (Depends-on): Likewise.
34449         * doc/posix-functions/chown.texi (chown): Document the bug.
34450         * doc/posix-functions/lchown.texi (lchown): Likewise.
34451         * tests/test-lchown.h (test_chown): Relax test.
34452
34453         mkstemp: avoid conflict with C++ keyword template
34454         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
34455         * lib/mkostemp.c (mkostemp): Likewise.
34456         * lib/mkostemps.c (mkostemps): Likewise.
34457         * lib/mkstemp.c (mkstemp): Likewise.
34458         * lib/mkstemps.c (mkstemps): Likewise.
34459
34460         xalloc-die-tests: optimize
34461         * tests/test-xalloc-die.sh: Reduce number of processes.
34462
34463 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34464
34465         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
34466         patch from ludo@gnu.org (Ludovic Courtès).
34467
34468 2009-11-17  Jim Meyering  <meyering@redhat.com>
34469
34470         version-etc: use proper license string
34471         * modules/version-etc (License): Use LGPL, not LGPLv3+.
34472         * modules/version-etc-fsf: Likewise.
34473
34474 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34475
34476         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
34477         printed to stdout.  Deal with EOL differences.
34478
34479 2009-11-17  Eric Blake  <ebb9@byu.net>
34480
34481         unsetenv: work around Solaris bug
34482         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
34483         * lib/unsetenv.c (rpl_unsetenv): Work around it.
34484         Reported by Jim Meyering.
34485
34486         vasnprintf: avoid compiler warnings
34487         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
34488         variables.
34489         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
34490
34491 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34492
34493         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
34494         settings since xalloc-die is no longer the self test,
34495         xalloc-die.sh is.
34496
34497 2009-11-17  Jim Meyering  <meyering@redhat.com>
34498
34499         test-xalloc-die.sh: make the code agree with the commit log
34500         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
34501         at the end, just in case you happen to have a test-xalloc-die
34502         program in some other PATH directory.
34503
34504         test-xalloc-die.sh: fix a portability bug
34505         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
34506         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
34507         Otherwise, argv[0] (as often seen in diagnostics) would be too
34508         system-dependent, sometimes with, and sometimes without the leading "./".
34509
34510         version-etc-fsf: relax license to LGPLv3+
34511         * modules/version-etc-fsf (License): Relax license.
34512
34513 2009-11-16  Eric Blake  <ebb9@byu.net>
34514
34515         xalloc-die-tests: avoid printing null pointer
34516         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
34517         shell script.
34518         * tests/test-xalloc-die.c (program_name): Declare.
34519         * tests/test-xalloc-die.sh (tmpfiles): New file.
34520
34521         setenv, unsetenv: work around various bugs
34522         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
34523         (setenv) [HAVE_SETENV]: Work around bugs.
34524         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
34525         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
34526         for bugs.
34527         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
34528         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
34529         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
34530         * modules/stdlib (Makefile.am): Update substitutions.
34531         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
34532         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
34533         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34534         * modules/setenv-tests: New test.
34535         * modules/unsetenv-tests: Likewise.
34536         * tests/test-setenv.c: New file.
34537         * tests/test-unsetenv.c: Likewise.
34538
34539 2009-11-16  Jim Meyering  <meyering@redhat.com>
34540
34541         version-etc: relax license to LGPLv3+
34542         * modules/version-etc (License): Relax license.
34543
34544         better AC_REQUIRE expanded-before-required-warning avoidance
34545         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
34546         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
34547         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
34548         which is no longer needed.
34549
34550 2009-11-16  Eric Blake  <ebb9@byu.net>
34551
34552         test-freading: clean up temporary file
34553         * tests/test-freading.c (main): Remove file on success, and use
34554         ASSERT more liberally.
34555         Reported by Jim Meyering.
34556
34557 2009-11-16  Jim Meyering  <meyering@redhat.com>
34558
34559         avoid new AC_REQUIRE expanded-before-required warnings
34560         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
34561         merely using it.
34562         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
34563         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
34564
34565 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34566
34567         * tests/test-xalloc-die.c: New file.
34568         * modules/xalloc-die-tests: New file.
34569         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
34570         XFAIL_TESTS so it can be appended by modules.
34571
34572 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34573
34574         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
34575         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
34576
34577 2009-11-14  Eric Blake  <ebb9@byu.net>
34578
34579         fnmatch: avoid compiler warning
34580         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
34581         to silence compiler warning about mismatch signedness in ?:.
34582         Reported by Robert Millan.
34583
34584         intprops: add double-inclusion guard
34585         * lib/intprops.h: Allow idempotent includes.
34586         Suggested by Bruce Korb.
34587
34588         openat: detect Solaris fchownat bug
34589         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
34590         penalizing glibc chownat when only lchownat is broken.
34591         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
34592         trailing slash bugs.
34593         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
34594         * modules/openat-tests (Files): Include more files.
34595         (Depends-on): Add mgetgroups, sleep, stat-time.
34596         (configure.ac): Add additional checks.
34597         (Makefile.am): Build new test.
34598         * tests/test-fchownat.c: New file.
34599
34600         lchown: detect Solaris and FreeBSD bug
34601         * lib/lchown.c (rpl_lchown): Work around bug.
34602         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
34603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34604         * modules/unistd (Makefile.am): Populate it.
34605         * lib/unistd.in.h (lchown): Update declaration.
34606         * doc/posix-functions/lchown.texi (lchown): Document the bug.
34607         * modules/lchown-tests: New file.
34608         * tests/test-lchown.h (test_lchown): Likewise.
34609         * tests/test-lchown.c (main): Likewise.
34610
34611         chown: detect Solaris and FreeBSD bug
34612         * lib/chown.c (rpl_chown): Work around bug.
34613         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
34614         (gl_PREREQ_CHOWN): Delete.
34615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34616         * modules/unistd (Makefile.am): Populate it.
34617         * lib/unistd.in.h (chown): Update declaration.
34618         * lib/lchown.c (chown): Update client.
34619         * modules/lchown (Depends-on): Add lstat.
34620         * doc/posix-functions/chown.texi (chown): Document the bug.
34621         * doc/posix-functions/getgroups.texi (getgroups): Document
34622         getgroups pitfall.
34623         * modules/chown-tests: New file.
34624         * tests/test-chown.h (test_chown): Likewise.
34625         * tests/test-chown.c (main): Likewise.
34626
34627 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
34628
34629         gnulib-tool: correctly detect absence of m4 directories
34630         * gnulib-tool: Avoid extra newline on data passed to wc -l.
34631
34632 2009-11-14  Jim Meyering  <meyering@redhat.com>
34633
34634         maint.mk: Prohibit inclusion of "xalloc.h" without use.
34635         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34636
34637 2009-11-14  John W. Eaton  <jwe@gnu.org>
34638
34639         strftime.h: wrap funtion declaration in extern "C" block
34640         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
34641
34642 2009-11-13  Eric Blake  <ebb9@byu.net>
34643
34644         getgroups: avoid compiler warning
34645         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
34646
34647         getgroups: work around FreeBSD bug
34648         * lib/getgroups.c (rpl_getgroups): Work around the bug.
34649         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
34650         * doc/posix-functions/getgroups.texi (getgroups): Document it.
34651         * tests/test-getgroups.c (main): Fix buffer overrun.
34652
34653         getgroups: avoid compilation failure
34654         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
34655         * modules/getgroups (Depends-on): Add stdint.
34656
34657 2009-11-13  Jim Meyering  <meyering@redhat.com>
34658
34659         test-getgroups: avoid compilation failure
34660         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
34661
34662 2009-11-13  Eric Blake  <ebb9@byu.net>
34663
34664         mgetgroups: new module, taken from coreutils
34665         * modules/mgetgroups: New file.
34666         * lib/mgetgroups.h: Likewise.
34667         * lib/mgetgroups.c (mgetgroups): Likewise.
34668         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
34669         * MODULES.html.sh (Users and groups): Mention it.
34670
34671         getgroups: don't expose GETGROUPS_T to user
34672         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
34673         an element at a time if GETGROUPS_T is wrong size.
34674         * lib/getugroups.h (getugroups): Change signature.
34675         * lib/unistd.in.h (getgroups): Likewise.
34676         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
34677         signature needs fixing.
34678         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
34679         AC_TYPE_GETGROUPS.
34680         * modules/group-member (Depends-on): Add getgroups.
34681         * lib/group-member.c (group_info, get_group_info): Use gid_t.
34682         (group_member): Rely on getgroups replacement.
34683         * lib/getugroups.c (getugroups): Use gid_t.
34684         * tests/test-getgroups.c (main): Likewise.
34685         * NEWS: Mention the signature change.
34686         * doc/posix-functions/getgroups.texi (getgroups): Mention the
34687         problem with signature.
34688         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
34689         GETGROUPS_T is still useful for setgroups.
34690
34691         getgroups, getugroups: provide stubs for mingw
34692         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
34693         * lib/getugroups.c (getugroups): Likewise.
34694         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
34695         function.  Modernize replacement scheme.
34696         (gl_PREREQ_GETGROUPS): Delete.
34697         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
34698         * modules/getgroups (configure.ac): Declare witness.
34699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34700         * modules/unistd (Depends-on): Substitute witness.
34701         * lib/unistd.in.h (getgroups): Declare replacement.
34702
34703         getgroups: avoid calling exit
34704         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
34705         drop xalloc.
34706         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
34707         dependencies.
34708         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
34709         exiting, in the rare case of malloc failure.
34710
34711         getgroups: fix logic error
34712         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
34713         has more than 20 groups.
34714         * modules/getgroups-tests: New test.
34715         * tests/test-getgroups.c: New file.
34716
34717 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34718
34719         * tests/test-base64.c: Improve.
34720
34721 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34722
34723         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
34724         Blake <ebb9@byu.net>.
34725
34726 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34727
34728         * tests/test-xvasprintf.c: Add %s%s related checks.
34729
34730 2009-11-12  Eric Blake  <ebb9@byu.net>
34731
34732         version-etc: match standards.texi style
34733         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
34734         and use <> only for URLs.
34735
34736 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
34737
34738         fts: do not fail on a submount during traversal
34739         * lib/fts.c (fts_build): Read the stat info again after opening
34740         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
34741         Original report at http://bugzilla.redhat.com/501848.
34742
34743 2009-11-12  Jim Meyering  <meyering@redhat.com>
34744
34745         bootstrap: sync from coreutils
34746         * build-aux/bootstrap (bootstrap_epilogue): New function.
34747         Use git_modules_config in one more place.  This make bootstrap's
34748         --gnulib-srcdir option more useful for testing.
34749
34750         bootstrap: generalize autoheader check
34751         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
34752         AC_CONFIG_HEADERS.
34753
34754 2009-11-11  Eric Blake  <ebb9@byu.net>
34755
34756         mkfifoat: use new modules for Solaris and BSD bugs
34757         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
34758         * lib/mkfifoat.c (mknodat): Split...
34759         * lib/mknodat.c (mknodat): ...into new file.
34760         * modules/mkfifoat (Files): Ship new file.
34761         (Depends-on): Add mkfifo, mknod.
34762         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
34763         (Depends-on): Add symlink.
34764         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
34765         redundant with test_mkfifo.h.
34766         (do_mkfifoat, do_mknodat): New helpers.
34767
34768         mknod: new module
34769         * modules/mknod: New file.
34770         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
34771         * lib/mknod.c (mknod): Likewise.
34772         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34773         defaults.
34774         * modules/sys_stat (Makefile.am): Substitute them.
34775         * lib/sys_stat.in.h (mknod): Declare replacement.
34776         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34777         Document it.
34778         * doc/posix-functions/mknod.texi (mknod): Likewise.
34779         * modules/mknod-tests: New test.
34780         * tests/test-mknod.c: Likewise.
34781
34782         mkfifo: new module
34783         * modules/mkfifo: New file.
34784         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
34785         * lib/mkfifo.c (mkfifo): Likewise.
34786         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34787         defaults.
34788         * modules/sys_stat (Makefile.am): Substitute them.
34789         * lib/sys_stat.in.h (mkfifo): Declare replacement.
34790         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34791         Document it.
34792         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
34793         * modules/mkfifo-tests: New test.
34794         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
34795         from test-mkfifoat.c.
34796         * tests/test-mkfifo.c: New file.
34797
34798         readlink: detect FreeBSD bug
34799         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
34800         slash on symlink.
34801         * doc/posix-functions/readlink.texi (readlink): Document the bug.
34802         * tests/test-readlink.h (test_readlink): Enhance test.
34803
34804         symlink: detect FreeBSD bug
34805         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
34806         slash on symlink.
34807         * doc/posix-functions/symlink.texi (symlink): Document the bug.
34808         * tests/test-symlink.h (test_symlink): Enhance test.
34809
34810 2009-11-10  Eric Blake  <ebb9@byu.net>
34811
34812         link: detect FreeBSD bug
34813         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
34814         symlink.
34815         * doc/posix-functions/link.texi (link): Document the bug.
34816         * tests/test-link.h (test_link): Enhance test.
34817         * tests/test-linkat.c (main): Update caller.
34818
34819         unlink, remove: detect FreeBSD bug
34820         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
34821         slash on symlink.
34822         * doc/posix-functions/unlink.texi (unlink): Document the bug.
34823         * doc/posix-functions/remove.texi (remove): Likewise.
34824         * tests/test-unlink.h (test_unlink): Enhance test.
34825         * tests/test-remove.c (main): Likewise.
34826
34827 2009-11-09  Eric Blake  <ebb9@byu.net>
34828
34829         rename: detect FreeBSD bug
34830         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
34831         slash on symlink.
34832         * modules/renameat-tests (Depends-on): Add filenamecat.
34833         * tests/test-rename.h (test_rename): Allow one more errno.
34834         * tests/test-renameat.c (main): Likewise.
34835         * doc/posix-functions/rename.texi (rename): Document the bug.
34836
34837         open: detect FreeBSD bug
34838         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
34839         symlink.
34840         * doc/posix-functions/open.texi (open): Document the bug.
34841         * doc/posix-functions/utimes.texi (utimes): Likewise.
34842         * tests/test-open.h (test_open): Add parameters, and test symlink
34843         handling.
34844         * tests/test-open.c (main): Adjust caller.
34845         * tests/test-fcntl-safer.c (main): Likewise.
34846         * modules/open-tests (Depends-on): Add stdbool, symlink.
34847         * modules/fcntl-safer-tests (Depends-on): Likewise.
34848         * tests/test-openat.c (main): Add test-open tests.
34849
34850         stat: detect FreeBSD bug
34851         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
34852         symlink.
34853         * doc/posix-functions/stat.texi (stat): Document the bug.
34854         * tests/test-stat.h (test_stat_func): Add argument.
34855         * tests/test-stat.c (main): Adjust caller.
34856         * tests/test-fstatat.c (main): Likewise.
34857         * modules/stat-tests (Depends-on): Add stdbool, symlink.
34858         Reported by Jim Meyering.
34859
34860 2009-11-09  James Youngman  <jay@gnu.org>
34861
34862         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
34863         * lib/strftime.c: Correct placement of #include "ignore-value.h".
34864
34865 2009-11-08  Jim Meyering  <meyering@redhat.com>
34866
34867         utimens: remove invalid futimesat call
34868         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
34869         It used the file descriptor of the target file as the DIR_FD
34870         parameter and NULL as the file name.  That caused failure with
34871         errno == EFAULT on FreeBSD-8.0-rc2
34872
34873 2009-11-07  Eric Blake  <ebb9@byu.net>
34874
34875         fflush, freadseek: use fseeko, not fseek
34876         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34877         (clear_ungetc_buffer): Avoid potential problems on large files.
34878         * lib/freadseek.c (freadseek): Likewise.
34879         * modules/freadseek (Depends-on): Add fseeko.
34880         * modules/fseek (configure.ac): Set a witness.
34881         * tests/test-fflush.c (main): Use fseeko.
34882         * tests/test-fpurge.c (fseek): Disable link warning.
34883         * tests/test-freadable.c (fseek): Likewise.
34884         * tests/test-freading.c (fseek): Likewise.
34885         * tests/test-fseeko.c (fseek): Likewise.
34886         * tests/test-ftell.c (fseek): Likewise.
34887         * tests/test-ftello.c (fseek): Likewise.
34888         * tests/test-fwritable.c (fseek): Likewise.
34889         * tests/test-fwriting.c (fseek): Likewise.
34890
34891 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34892
34893         * modules/memchr (Depends-on): Drop getpagesize dependency.
34894
34895 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34896
34897         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
34898         Reported by Ludovic Courtès.
34899         * build-aux/pmccabe2html: Improve example usage.
34900         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
34901
34902 2009-11-06  Jim Meyering  <meyering@redhat.com>
34903
34904         do-release-commit-and-tag: New module.
34905         Automate the release-commit and tag process.
34906         * build-aux/do-release-commit-and-tag: New script, from coreutils.
34907         * modules/do-release-commit-and-tag: New file.
34908         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34909
34910 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34911
34912         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
34913         because test-select.c uses inet_pton.
34914
34915 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34916
34917         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
34918         GETADDRINFO_LIB.  Bump serial number.
34919         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
34920         Suggested by Eric Blake <ebb9@byu.net>.
34921
34922 2009-11-05  Eric Blake  <ebb9@byu.net>
34923
34924         strtod: detect darwin bug
34925         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
34926         Reported by Leo Davis.
34927
34928         freopen-safer: new module
34929         * modules/freopen-safer: New module.
34930         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
34931         * lib/freopen-safer.c (freopen_safer): New file.
34932         * lib/stdio-safer.h (freopen_safer): New declaration.
34933         * lib/stdio--.h (freopen): New override.
34934         * MODULES.html.sh (File stream based Input/Output): Mention it.
34935         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
34936         freopen-safer module.
34937         * doc/posix-functions/stderr.texi (stderr): Likewise.
34938         * doc/posix-functions/stdin.texi (stdin): Likewise.
34939         * doc/posix-functions/stdout.texi (stdout): Likewise.
34940         * modules/freopen-safer-tests: New test.
34941         * tests/test-reopen-safer.c: New file.
34942
34943 2009-11-05  Jim Meyering  <meyering@redhat.com>
34944
34945         maint.mk: Prohibit inclusion of "close-stream.h" without use.
34946         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34947
34948 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34949
34950         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
34951
34952 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34953
34954         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
34955
34956 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34957
34958         Fix link error.
34959         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34960         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34961
34962 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34963
34964         * tests/test-func.c: Also test value of __func__.
34965
34966 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34967
34968         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
34969         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
34970
34971 2009-11-05  Bruno Haible  <bruno@clisp.org>
34972
34973         Fix link error.
34974         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34975         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34976         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
34977
34978 2009-11-05  Bruno Haible  <bruno@clisp.org>
34979
34980         Tests for module 'inet_pton'.
34981         * modules/inet_pton-tests: New file.
34982         * tests/test-inet_pton.c: New file.
34983
34984 2009-11-05  Bruno Haible  <bruno@clisp.org>
34985
34986         Tests for module 'inet_ntop'.
34987         * modules/inet_ntop-tests: New file.
34988         * tests/test-inet_ntop.c: New file.
34989
34990 2009-11-04  Eric Blake  <ebb9@byu.net>
34991
34992         stdlib-safer: wrap all mkstemp variants
34993         * modules/mkostemp (configure.ac): Set witness.
34994         * modules/mkostemps (configure.ac): Likewise.
34995         * modules/mkstemps (configure.ac): Likewise.
34996         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
34997         (mkstemps_safer): Wrap more functions.
34998         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
34999         wrapping.
35000         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
35001         (mkstemps_safer): Implement the wrappers.
35002
35003         mkstemps, mkostemps: new modules
35004         * modules/mkostemps: New module.
35005         * modules/mkstemps: Likewise.
35006         * lib/mkostemps.c (mkostemps): New file.
35007         * lib/mkstemps.c (mkstemps): Likewise.
35008         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
35009         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
35010         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
35011         * modules/stdlib (Makefile.am): Substitute them.
35012         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
35013         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
35014         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
35015         * doc/gnulib.texi (Glibc stdlib.h): Include them.
35016         * MODULES.html.sh (File system functions): Mention them.
35017
35018         tempname: resync from glibc
35019         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
35020         same values for __GT_FILE as glibc.  Abort even when assertions
35021         are disabled.
35022         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
35023         match its value otherwise.  Allow idempotent inclusion.
35024         * lib/mkdtemp.c (mkdtemp): Adjust caller.
35025         * lib/mkostemp.c (mkostemp): Likewise.
35026         * lib/mkstemp.c (mkstemp): Likewise.
35027         * lib/tmpfile.c (tmpfile): Likewise.
35028         * NEWS: Document this.
35029
35030         utimens: fix use of futimens on older Linux
35031         * lib/utimens.c (fdutimens): Use updated, rather than original,
35032         timespec to avoid bug in older Linux kernel.
35033         Reported by Simon Josefsson.
35034
35035 2009-11-04  Bruno Haible  <bruno@clisp.org>
35036
35037         Make num_processors more flexible and consistent.
35038         * lib/nproc.h (enum nproc_query): New type.
35039         (num_processors): Add a 'query' argument.
35040         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
35041         (num_processors): Add a 'query' argument. Test the value of the
35042         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
35043         mingw, count the number of CPUs available for the current process.
35044         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
35045         Check for sched_getaffinity and sched_getaffinity_np.
35046         * modules/nproc (Depends-on): Add c-ctype, extensions.
35047         * NEWS: Mention the change.
35048
35049 2009-11-03  Bruno Haible  <bruno@clisp.org>
35050
35051         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
35052
35053 2009-11-03  Jim Meyering  <meyering@redhat.com>
35054
35055         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
35056         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
35057         if it is defined.
35058
35059 2009-11-02  Eric Blake  <ebb9@byu.net>
35060
35061         mktime, timegm: share common declaration
35062         * lib/mktime-internal.h: New file.
35063         * lib/mktime.c: Use it rather than open-coding a declaration.
35064         * lib/timegm.c: Likewise.
35065         * modules/mktime (Files): Ship it.
35066         * modules/timegm (Files): Likewise.
35067         Suggested by Bruno Haible.
35068
35069         test-update-copyright: update test to match script changes
35070         * tests/test-update-copyright.sh: Avoid hard-coding perl
35071         location.  Don't update *.bak created by earlier runs.
35072
35073 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
35074             Simon Josefsson  <simon@josefsson.org>
35075             Bruno Haible  <bruno@clisp.org>
35076
35077         Fix link error on Solaris 8.
35078         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
35079         also in libnsl. Define also INET_PTON_LIB.
35080         * modules/inet_pton (Link): New section.
35081
35082 2009-11-02  Simon Josefsson  <simon@josefsson.org>
35083             Bruno Haible  <bruno@clisp.org>
35084
35085         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
35086         * modules/inet_ntop (Link): New section.
35087         Reported by Boyan Kasarov <bkasarov@gmail.com>.
35088
35089 2009-11-02  Eric Blake  <ebb9@byu.net>
35090
35091         maint: avoid compiler warnings in m4 macros
35092         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
35093         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
35094
35095 2009-11-02  Simon Josefsson  <simon@josefsson.org>
35096
35097         * m4/pmccabe2html.m4: Remove file.
35098         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
35099         function.  Change maintainer.
35100         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
35101         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
35102         Courtès).
35103
35104 2009-10-31  Eric Blake  <ebb9@byu.net>
35105
35106         fseeko: fix m4 regression
35107         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
35108         regression from 2009-10-27.
35109         Reported by Ralf Wildenhues.
35110
35111 2009-10-31  Jim Meyering  <meyering@redhat.com>
35112
35113         inttostr: aesthetics and improved (compile-time) safety
35114         Define inttype_is_signed rather than inttype_is_unsigned,
35115         since the sole use is via "#if inttype_is_signed".
35116         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
35117         inttype_is_unsigned.
35118         * lib/offtostr.c (inttype_is_signed): Likewise.
35119         * lib/uinttostr.c (inttype_is_signed): Likewise.
35120         * lib/umaxtostr.c (inttype_is_signed): Likewise.
35121         * lib/inttostr.c (inttostr): Use verify to cross-check the
35122         inttype_is_signed value and the signedness of the actual type.
35123         * modules/inttostr (Depends-on): Add verify.
35124
35125 2009-10-30  Eric Blake  <ebb9@byu.net>
35126
35127         build: avoid compiler warnings
35128         * lib/fchmodat.c (lchmod): Mark unused variables.
35129         * lib/getopt.c (_getopt_initialize): Likewise.
35130         * lib/mktime.c (__mktime_internal): Provide prototype.
35131         * lib/inttostr.c (inttostr): Avoid compiler warning even with
35132         older gcc that do not understand #pragma GCC diagnostic.
35133         * lib/uinttostr.c (inttype_is_unsigned): Define.
35134         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
35135
35136 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35137
35138         stat: fix compilation on AIX
35139         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
35140         only see struct stat64.
35141
35142 2009-10-30  Eric Blake  <ebb9@byu.net>
35143
35144         exclude: make more robust
35145         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
35146         rather than masking a coding bug.
35147         Suggested by Bruno Haible.
35148
35149 2009-10-30  Jim Meyering  <meyering@redhat.com>
35150
35151         perl scripts: remove #!/usr/bin/perl in favor of more portable...
35152         Rather than putting #!/usr/bin/perl on the first line,
35153         start with a variant of what's recommended by "man perlrun" that
35154         invokes the first "perl" program from your shell's search path.
35155         * build-aux/gitlog-to-changelog: Replace #!... as above.
35156         Add a "Local Variables" perl mode setting.
35157         Prompted by a patch from Ludovic Courtès.
35158         Improved by Eric Blake.
35159         * build-aux/useless-if-before-free: Likewise.
35160         * build-aux/announce-gen: Likewise.
35161         * build-aux/update-copyright: Likewise.
35162
35163 2009-10-29  Eric Blake  <ebb9@byu.net>
35164
35165         filenamecat-lgpl: adjust clients
35166         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
35167         filenamecat.
35168         * modules/renameat (Depends-on): Likewise.
35169
35170         filenamecat: split into filenamecat-lgpl
35171         * modules/filenamecat-lgpl: New module.
35172         * modules/filenamecat (Files): Move library-safe files into
35173         filenamecat-lgpl.
35174         (Depends-on): Add filenamecat-lgpl.
35175         (configure.ac): Declare witness.
35176         * lib/filenamecat.h (file_name_concat): Only declare when using
35177         GPL module.
35178         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
35179         Move...
35180         * lib/filenamecat-lgpl.c: ...into new file.
35181         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
35182         (gl_FILE_NAME_CONCAT): Use it.
35183         * MODULES.html.sh (File system functions): Mention new module.
35184
35185         argp: avoid memory leak
35186         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
35187         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
35188         base_name, since the latter malloc()s and can call exit().
35189         Leak introduced 2006-07-03.
35190
35191         dirname-lgpl: adjust clients that don't need full dirname
35192         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
35193         * modules/filenamecat (Depends-on): Likewise.
35194         * modules/linkat (Depends-on): Likewise.
35195         * modules/mkancesdirs (Depends-on): Likewise.
35196         * modules/mkdir (Depends-on): Likewise.
35197         * modules/openat (Depends-on): Likewise.
35198         * modules/savewd (Depends-on): Likewise.
35199         * modules/rename (Depends-on): Likewise.
35200         (License): Relax license.
35201         * modules/mkdir-tests (Depends-on): Drop progname.
35202         (Makefile.am): Delete unneeded LDADD.
35203         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
35204
35205         dirname: split into dirname-lgpl
35206         * modules/dirname-lgpl: New module.
35207         * modules/dirname (Files): Move library-safe files into
35208         dirname-lgpl.
35209         (Depends-on): Add dirname-lgpl.
35210         (configure.ac): Declare witness.
35211         * modules/double-slash-root (License): Relax license.
35212         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
35213         module.
35214         * lib/dirname.c (dir_len, mdir_name): Move...
35215         * lib/dirname-lgpl.c: ...into new file.
35216         * lib/basename.c (last_component, base_len): Move...
35217         * lib/basename-lgpl.c: ...into new file.
35218         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
35219         (gl_DIRNAME): Use it.
35220         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
35221         Mention new module.
35222         * modules/dirname-tests (Depends-on): Add progname.
35223         * tests/test-dirname.c (program_name): Delete.
35224
35225         mkdir: make safe for libraries
35226         * modules/mkdir (Depends-on): Drop xalloc.
35227         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
35228         exit.
35229
35230         tests: avoid some compiler warnings
35231         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
35232         literals.
35233         * tests/test-memchr.c (main): Avoid type mismatch.
35234         * tests/test-arpa_inet.c (main): Avoid unused parameters.
35235         * tests/test-base64.c (main): Likewise.
35236         * tests/test-getdelim.c (main): Likewise.
35237         * tests/test-gethostname.c (main): Likewise.
35238         * tests/test-getline.c (main): Likewise.
35239         * tests/test-netinet_in.c (main): Likewise.
35240         * tests/test-select.c (open_server_socket, main): Likewise.
35241         * tests/test-select-stdin.c (main): Likewise.
35242         * tests/test-sockets.c (main): Likewise.
35243         * tests/test-strsignal.c (main): Likewise.
35244         * tests/test-sys_select.c (main): Likewise.
35245         * tests/test-sys_socket.c (main): Likewise.
35246         * tests/test-u64.c (main): Likewise.
35247         * tests/test-xfprintf-posix.c (main): Likewise.
35248         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
35249
35250         sockets: avoid compiler warning
35251         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
35252
35253         maint: detect usage(1) and other suspicious exits
35254         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
35255
35256 2009-10-29  Jim Meyering  <meyering@redhat.com>
35257
35258         timespec: long-to-int truncation could make timespec_cmp malfunction
35259         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
35260         a multiple of 2^32 nanoseconds as no difference.
35261
35262 2009-10-28  Jim Meyering  <meyering@redhat.com>
35263
35264         fprintftime: wrap macro code argument in "do {...} while(0)"
35265         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
35266         cpy macro must be a statement that can be followed by a semicolon.
35267         Now that the else clause contains a comment and is hence longer
35268         than one line, I require curly braces.  That in turn requires
35269         that we wrap this code block in the standard do...while(0).
35270
35271         fprintftime: remove stray semicolon from previous change
35272         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
35273
35274         fprintftime: avoid a warning about ignored fwrite return value
35275         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
35276         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
35277         that is unsafe.
35278         * modules/fprintftime (Depends-on): Add ignore-value.
35279
35280         exclude: avoid an unwarranted warning
35281         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
35282
35283 2009-10-27  Eric Blake  <ebb9@byu.net>
35284
35285         fseek: avoid compilation failure when fflush is replaced
35286         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
35287         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
35288         module is in use.
35289         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
35290         module is not in use; since REPLACE_FSEEK worked otherwise.
35291         (GNULIB_FTELLO): Likewise for ftell.
35292         Reported by Ian Beckwith and others.
35293
35294 2009-10-27  Bruno Haible  <bruno@clisp.org>
35295
35296         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
35297         Reported by Jim Meyering.
35298
35299 2009-10-27  Jim Meyering  <jim@meyering.net>
35300             Bruno Haible  <bruno@clisp.org>
35301
35302         Avoid warning despite dropping the return value of fwrite.
35303         * lib/unicodeio.c: Include ignore-value.h.
35304         (fwrite_success_callback): Explicitly ignore fwrite's return value.
35305         * modules/unicodeio (Depends-on): Add ignore-value.
35306
35307 2009-10-26  Eric Blake  <ebb9@byu.net>
35308
35309         areadlinkat: fix fallback path
35310         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
35311         pointer and zero.
35312
35313 2009-10-22  Pádraig Brady  <P@draigBrady.com>
35314
35315         Use a better IO block size for modern systems
35316         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
35317         * lib/md2.c: Likewise.
35318         * lib/md4.c: Likewise.
35319         * lib/md5.c: Likewise.
35320         * lib/sha1.c: Likewise.
35321         * lib/sha256.c: Likewise.
35322         * lib/sha512.c: Likewise.
35323
35324 2009-10-22  Eric Blake  <ebb9@byu.net>
35325
35326         tests: avoid several compiler warnings
35327         * tests/test-getcwd.c (main): Avoid buffer underflow.
35328         * tests/test-getdate.c (main): String literals are not safe with
35329         putenv, so use setenv.  Declare unused argument.
35330         * modules/getdate-tests (Depends-on): Add setenv.
35331         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
35332         problems with string literals in char *.
35333         * tests/test-hash.c (main): Avoid shadowing declaration.
35334         (insert_new): Treat string literals as char const *.
35335         * tests/test-getopt.h (test_getopt): Likewise.
35336         (getopt_loop): Alter types to minimize casting elsewhere.
35337         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
35338         (test_getopt_long_posix): Likewise.
35339         (do_getopt_long): Add wrapper to minimize casting.
35340         * tests/test-atexit.c (clear_temp_file): Use void.
35341         * tests/test-areadlink-with-size.c (main): Declare unused
35342         arguments.
35343         * tests/test-areadlink.c (main): Likewise.
35344         * tests/test-areadlinkat-with-size.c (main): Likewise.
35345         * tests/test-areadlinkat.c (main): Likewise.
35346         * tests/test-canonicalize-lgpl.c (main): Likewise.
35347         * tests/test-canonicalize.c (main): Likewise.
35348         * tests/test-dirent-safer.c (main): Likewise.
35349         * tests/test-dirname.c (main): Likewise.
35350         * tests/test-dup2.c (main): Likewise.
35351         * tests/test-fchdir.c (main): Likewise.
35352         * tests/test-fcntl-h.c (main): Likewise.
35353         * tests/test-fcntl-safer.c (main): Likewise.
35354         * tests/test-fdopendir.c (main): Likewise.
35355         * tests/test-fdutimensat.c (main): Likewise.
35356         * tests/test-fflush.c (main): Likewise.
35357         * tests/test-filenamecat.c (main): Likewise.
35358         * tests/test-filevercmp.c (main): Likewise.
35359         * tests/test-fopen-safer.c (main): Likewise.
35360         * tests/test-fopen.c (main): Likewise.
35361         * tests/test-fpending.c (main): Likewise.
35362         * tests/test-fpurge.c (main): Likewise.
35363         * tests/test-freading.c (main): Likewise.
35364         * tests/test-fstatat.c (main): Likewise.
35365         * tests/test-fsync.c (main): Likewise.
35366         * tests/test-futimens.c (main): Likewise.
35367         * tests/test-getndelim2.c (main): Likewise.
35368         * tests/test-gettimeofday.c (main): Likewise.
35369         * tests/test-getopt.c (main): Likewise.
35370         * tests/test-i-ring.c (main): Likewise.
35371         * tests/test-inttypes.c (main): Likewise.
35372         * tests/test-link.c (main): Likewise.
35373         * tests/test-lstat.c (main): Likewise.
35374         * tests/test-math.c (main): Likewise.
35375         * tests/test-md5.c (main): Likewise.
35376         * tests/test-memchr2.c (main): Likewise.
35377         * tests/test-memrchr.c (main): Likewise.
35378         * tests/test-mkdir.c (main): Likewise.
35379         * tests/test-mkdirat.c (main): Likewise.
35380         * tests/test-mkfifoat.c (main): Likewise.
35381         * tests/test-open.c (main): Likewise.
35382         * tests/test-openat-safer.c (main): Likewise.
35383         * tests/test-openat.c (main): Likewise.
35384         * tests/test-quotearg.c (main): Likewise.
35385         * tests/test-rawmemchr.c (main): Likewise.
35386         * tests/test-readlink.c (main): Likewise.
35387         * tests/test-remove.c (main): Likewise.
35388         * tests/test-rename.c (main): Likewise.
35389         * tests/test-renameat.c (main): Likewise.
35390         * tests/test-rmdir.c (main): Likewise.
35391         * tests/test-sha1.c (main): Likewise.
35392         * tests/test-signal.c (main): Likewise.
35393         * tests/test-sigaction.c (main): Likewise.
35394         * tests/test-stat.c (main): Likewise.
35395         * tests/test-stat-time.c (main): Likewise.
35396         * tests/test-stddef.c (main): Likewise.
35397         * tests/test-stdint.c (main): Likewise.
35398         * tests/test-stdio.c (main): Likewise.
35399         * tests/test-stdlib.c (main): Likewise.
35400         * tests/test-strchrnul.c (main): Likewise.
35401         * tests/test-strerror.c (main): Likewise.
35402         * tests/test-string.c (main): Likewise.
35403         * tests/test-strtod.c (main): Likewise.
35404         * tests/test-strverscmp.c (main): Likewise.
35405         * tests/test-symlink.c (main): Likewise.
35406         * tests/test-symlinkat.c (main): Likewise.
35407         * tests/test-sys_stat.c (main): Likewise.
35408         * tests/test-sys_time.c (main): Likewise.
35409         * tests/test-time.c (main): Likewise.
35410         * tests/test-unistd.c (main): Likewise.
35411         * tests/test-unlink.c (main): Likewise.
35412         * tests/test-unlinkat.c (main): Likewise.
35413         * tests/test-utimens.c (main): Likewise.
35414         * tests/test-utimensat.c (main): Likewise.
35415         * tests/test-version-etc.c (main): Likewise.
35416         * tests/test-wchar.c (main): Likewise.
35417         * tests/test-wctype.c (main): Likewise.
35418         * tests/test-xprintf-posix.c (main): Likewise.
35419         * tests/test-posixtm.c (main): Likewise.
35420         (STREQ): Delete unused macro.
35421         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
35422         shadowed variables.
35423         * tests/test-memchr.c (main): Likewise.
35424
35425 2009-10-21  Eric Blake  <ebb9@byu.net>
35426
35427         areadlinkat: avoid failure on older glibc
35428         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
35429         rather than mis-comparing 0 against FUNC_RESULT of char*.
35430
35431 2009-10-21  Bruno Haible  <bruno@clisp.org>
35432
35433         * modules/stpncpy (License): Relicense under LGPLv2+.
35434         Reported by David Lutterkort <lutter@redhat.com>.
35435
35436 2009-10-20  Eric Blake  <ebb9@byu.net>
35437
35438         utimensat: work around Solaris 9 bug
35439         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
35440         has trailing slash bugs.
35441         * tests/test-lutimens.h (test_lutimens): Enhance test.
35442         * tests/test-utimens.h (test_utimens): Likewise.
35443         * doc/posix-functions/utime.texi (utime): Enhance documentation.
35444         * doc/posix-functions/utimes.texi (utimes): Likewise.
35445         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35446         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
35447         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
35448         * doc/posix-functions/futimens.texi (futimens): Likewise.
35449
35450         fdutimensat: new module
35451         * modules/fdutimensat: New file.
35452         * lib/fdutimensat.c (fdutimensat): Likewise.
35453         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
35454         * MODULES.html.sh (File system functions): Mention module.
35455         * modules/fdutimensat-tests: New test.
35456         * tests/test-fdutimensat.c: Likewise.
35457
35458         doc: regenerate INSTALL
35459         * doc/INSTALL: Reflect recent autoconf update.
35460         * doc/INSTALL.ISO: Likewise.
35461         * doc/INSTALL.UTF-8: Likewise.
35462
35463 2009-10-20  Pádraig Brady  <P@draigBrady.com>
35464
35465         acl: warn if ACL support is not detected
35466         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
35467
35468 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
35469
35470         * lib/nproc.h: Add extern "C" block for C++.
35471
35472 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
35473             Bruno Haible  <bruno@clisp.org>
35474
35475         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
35476         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
35477         * doc/posix-functions/isalpha.texi: Likewise.
35478         * doc/posix-functions/isblank.texi: Likewise.
35479         * doc/posix-functions/iscntrl.texi: Likewise.
35480         * doc/posix-functions/isdigit.texi: Likewise.
35481         * doc/posix-functions/isgraph.texi: Likewise.
35482         * doc/posix-functions/islower.texi: Likewise.
35483         * doc/posix-functions/isprint.texi: Likewise.
35484         * doc/posix-functions/ispunct.texi: Likewise.
35485         * doc/posix-functions/isspace.texi: Likewise.
35486         * doc/posix-functions/isupper.texi: Likewise.
35487         * doc/posix-functions/isxdigit.texi: Likewise.
35488
35489 2009-10-18  Bruno Haible  <bruno@clisp.org>
35490
35491         Tests for module 'isblank'.
35492         * modules/isblank-tests: New file.
35493         * tests/test-isblank.c: New file.
35494
35495         New module 'isblank'.
35496         * lib/isblank.c: New file.
35497         * m4/isblank.m4: New file.
35498         * modules/isblank: New file.
35499         * doc/posix-functions/isblank.texi: Mention the new module.
35500
35501 2009-10-18  Bruno Haible  <bruno@clisp.org>
35502
35503         New module 'ctype'.
35504         * lib/ctype.in.h: New file.
35505         * m4/ctype.m4: New file.
35506         * modules/ctype: New file.
35507         * doc/posix-headers/ctype.texi: Mention the new module.
35508
35509 2009-10-18  Jim Meyering  <meyering@redhat.com>
35510
35511         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
35512         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
35513         right after its initialization, rather than farther down.
35514         Keeping these in close proximity makes it easier to ensure
35515         that each such variable is initialized.  E.g.,
35516
35517             LIB_CLOCK_GETTIME=
35518             AC_SUBST([LIB_CLOCK_GETTIME])
35519
35520         This change also increments these serial numbers.
35521         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
35522         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35523         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35524
35525 2009-10-18  Bruno Haible  <bruno@clisp.org>
35526
35527         Don't let environment variables perturb build.
35528         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
35529         (gl_PREREQ_GETHRXTIME): ... not here.
35530
35531 2009-10-18  Bruno Haible  <bruno@clisp.org>
35532
35533         Avoid symlink attack in localcharset module.
35534         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
35535         (O_NOFOLLOW): Define fallback.
35536         (get_charset_aliases): Don't open the file if it is a symbolic link.
35537         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
35538         gl_FCNTL_H.
35539         (gl_FCNTL_H): Require it.
35540         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
35541         * modules/localcharset (Files): Add m4/fcntl_h.m4.
35542         Reported by Fergal Glynn <fglynn@veracode.com>.
35543
35544 2009-10-18  Bruno Haible  <bruno@clisp.org>
35545
35546         Implement nproc for mingw.
35547         * lib/nproc.c: Include <windows.h>
35548         (num_processors): On native Windows platforms, try GetSystemInfo.
35549
35550 2009-10-18  Bruno Haible  <bruno@clisp.org>
35551
35552         Implement nproc for IRIX.
35553         * lib/nproc.c: Include <sys/sysmp.h>.
35554         (num_processors): On IRIX systems, try sysmp.
35555         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
35556
35557 2009-10-18  Bruno Haible  <bruno@clisp.org>
35558
35559         Implement nproc for HP-UX.
35560         * lib/nproc.c: Include <sys/pstat.h>
35561         (num_processors): On HP-UX systems, try pstat_getdynamic.
35562         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
35563         pstat_getdynamic.
35564
35565 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
35566             Bruno Haible  <bruno@clisp.org>
35567
35568         Implement nproc for NetBSD, OpenBSD.
35569         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
35570         (ARRAY_SIZE): New macro.
35571         (num_processors): On BSD systems, try sysctl of HW_NCPU.
35572         * m4/nproc.m4: New file.
35573         * modules/nproc (Files): Add m4/nproc.m4.
35574         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
35575         (Makefile.am): Instead, augment lib_SOURCES.
35576
35577 2009-10-18  Bruno Haible  <bruno@clisp.org>
35578
35579         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
35580         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
35581         sys/param.h.
35582
35583 2009-10-16  Eric Blake  <ebb9@byu.net>
35584
35585         utimensat: new module
35586         * modules/utimensat: New file.
35587         * lib/utimensat.c (utimensat): Likewise.
35588         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35589         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
35590         so we can work around Linux bugs.
35591         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35592         * modules/sys_stat (Makefile.am): Substitute them.
35593         * lib/sys_stat.in.h (utimensat): Declare it.
35594         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35595         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35596         * modules/utimensat-tests: New test.
35597         * tests/test-utimensat.c: Likewise.
35598
35599         utimens: let lutimens work on non-symlinks
35600         * lib/utimens.c (lutimens): Fall back to utimens rather than
35601         failing with ENOSYS, when file is not a symlink.
35602         (utimens): Reduce redirection.
35603         * tests/test-lutimens.h (test_lutimens): Update test to cover
35604         non-symlinks.
35605         * tests/test-utimens.h (test_utimens): Update test to cover
35606         symlinks.
35607         * tests/test-utimens.c (main): Update caller.
35608
35609         utimens: cache whether utimensat syscall works
35610         * lib/utimens.c (utimensat_works_really): New cache variable.
35611         (fdutimens, lutimens): Use it to avoid failing syscall.
35612
35613         test-stat-time, test-utimens: improve portability
35614         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
35615         ext4 on alpha, and for cygwin.
35616         * tests/test-utimens-common.h: New file.
35617         (nap): Factor delays into single function.
35618         * tests/test-lutimens.h (test_lutimens): Use new header.
35619         * tests/test-futimens.h (test_futimens): Likewise.
35620         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
35621         timestamps to occur from same machine, as was done previously for
35622         test_utimens.
35623         * modules/utimens-tests (Files): Ship new file.
35624         * modules/futimens-tests (Files): Likewise.
35625         Reported in part by Jim Meyering.
35626
35627         sys_stat: sort replacement declarations
35628         * lib/sys_stat.in.h: Sort declarations.
35629         * lib/futimens.c (futimens): Fix typo.
35630
35631 2009-10-15  Jim Meyering  <meyering@redhat.com>
35632
35633         don't let environment settings perturb build
35634         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
35635         could cause a configure-time and/or build-time malfunction.
35636         Typically, a configure-time function-in-library test is performed
35637         via code like this:
35638
35639           LIB_VAR=
35640           AC_SUBST([LIB_VAR])
35641           prefix_saved_LIBS=$LIBS
35642             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
35643                        [test "$ac_cv_search_FUNC" = "none required" ||
35644                         LIB_VAR=$ac_cv_search_FUNC])
35645           LIBS=$prefix_saved_LIBS
35646
35647         However, in each of the files affected by this change, the LIB_VAR=
35648         initialization was omitted.  Thus, when set in the environment, its
35649         value would propagate into generated Makefiles when FUNC is not found
35650         in LIB_NAME.
35651         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
35652         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35653         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35654
35655 2009-10-14  Eric Blake  <ebb9@byu.net>
35656
35657         fchdir: avoid infinite recursion in mingw
35658         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
35659         recursing.
35660
35661         test-stat-time: port to mingw
35662         * tests/test-stat-time.c (force_unlink): Return a value.
35663         (test_ctime) [W32]: Fix compilation error.
35664         (nap): Don't call usleep with too large an argument.  Use
35665         force_unlink.
35666         * doc/pastposix-functions/usleep.texi (usleep): Document the
35667         portability issue.
35668
35669 2009-10-13  Jim Meyering  <meyering@redhat.com>
35670
35671         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
35672         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
35673         * modules/pipe-filter-ii: Likewise.
35674         * modules/sys_socket-tests: Likewise.
35675         * modules/tsearch-tests: Likewise.
35676         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
35677         (check): Depend on it.
35678
35679 2009-10-12  Eric Blake  <ebb9@byu.net>
35680
35681         utimens-tests: port to NFS file systems
35682         * tests/test-utimens.h (test_utimens): Refactor utimecmp
35683         comparisons to avoid spurious failures from timestamp drift
35684         between NFS machines.
35685
35686 2009-10-12  Eric Blake  <ebb9@byu.net>
35687
35688         stat-time-tests: minor cleanups
35689         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
35690         * tests/test-stat-time.c (nap): Separate assignment from call.
35691         Suggested by Paolo Bonzini and Bruno Haible.
35692
35693         sys_stat: guarantee struct timespec
35694         * lib/sys_stat.in.h (includes): Always include <time.h>
35695         * modules/sys_stat (Depends-on): Add time.
35696         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
35697         mode_t permission values.
35698         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
35699         get at subsecond timestamps.
35700
35701 2009-10-10  Eric Blake  <ebb9@byu.net>
35702
35703         futimens: new module
35704         * modules/futimens: New file.
35705         * lib/futimens.c (futimens): Likewise.
35706         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
35707         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
35708         we can work around Linux bugs.
35709         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35710         * modules/sys_stat (Makefile.am): Substitute them.
35711         * lib/sys_stat.in.h (futimens): Declare it.
35712         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35713         * doc/posix-functions/futimens.texi (futimens): Likewise.
35714         * modules/futimens-tests: New test.
35715         * tests/test-futimens.c: Likewise.
35716
35717         utimens: introduce fdutimens
35718         * lib/utimens.h (fdutimens): New prototype.
35719         * lib/utimens.c (gl_futimens): Move guts...
35720         (fdutimens): ...to new interface.
35721         * tests/test-utimens.c (do_fdutimens): Use it.
35722
35723         utimens: add UTIME_NOW and UTIME_OMIT support
35724         * lib/utimens.c (validate_timespec, update_timespec): New helper
35725         functions.
35726         (gl_futimens, lutimens): Use them.
35727         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
35728         stdbool, sys_stat.
35729         (Link): Mention resulting library dependency.
35730         * modules/utimecmp (Link): Likewise.
35731         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
35732         (Makefile.am): Pick up library dependency.
35733         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
35734         definition.
35735         * tests/test-sys_stat.c: Test the definitions.
35736         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
35737         * NEWS: Document library dependency.
35738
35739         utimecmp: support symlink timestamps
35740         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
35741         hashing when possible.  Use pathconf when available.
35742         (SYSCALL_RESOLUTION): Recognize tighter resolution.
35743         * modules/utimecmp (Depends-on): Add lstat.
35744
35745         utimens: add lutimens interface
35746         * lib/utimens.c (lutimens): New function.
35747         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
35748         * lib/utimens.h (lutimens): Declare new interface.
35749         * tests/test-utimens.c (main): Enhance test.
35750         * tests/test-lutimens.h (test_lutimens): New file.
35751         * modules/utimens-tests (Files): Distribute it.
35752         (Depends-on): Add symlink.
35753         (configure.ac): Check for usleep.
35754
35755         utimens: validate futimens usage
35756         * lib/utimens.c (gl_futimens): Require valid fd up front, using
35757         fewer syscalls on failure later on.  Avoid compiler warning on
35758         mingw.
35759         * modules/utimens (Depends-on): Add dup2.
35760
35761         utimens: add test
35762         * modules/utimens-tests: New test.
35763         * tests/test-utimens.h: New file.
35764         * tests/test-futimens.h: Likewise.
35765         * tests/test-utimens.c: Likewise.
35766
35767         doc: mention timestamp portability issues
35768         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
35769         instead.
35770         * doc/posix-functions/utime.texi (utime): Likewise.
35771         * doc/posix-functions/utimes.texi (utimes): Likewise.
35772         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
35773         instead.
35774         * doc/posix-functions/futimens.texi (futimens): Mention utimens
35775         module.
35776         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35777         Mention weakness with symlink timestamps.
35778         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
35779         to utimensat/futimens instead.
35780         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
35781
35782         test-dup2: enhance test
35783         * tests/test-dup2.c (main): Also check AT_FDCWD.
35784
35785         test-stat-time: avoid more spurious failures
35786         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
35787         xfs; and avoid race if the two timestamps cross quantization edge.
35788
35789         relocatable: prefer 'file system' over 'filesystem'
35790         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
35791         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
35792         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
35793         * doc/relocatable.texi (Enabling Relocatability): Likewise.
35794         * lib/relocatable.c (compute_curr_prefix): Likewise.
35795
35796 2009-10-10  Jim Meyering  <meyering@redhat.com>
35797
35798         stat-time-tests: check for the usleep function
35799         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
35800
35801 2009-10-10  Bruno Haible  <bruno@clisp.org>
35802
35803         * modules/xnanosleep: Put the Link section after the Include section.
35804
35805 2009-10-09  Eric Blake  <ebb9@byu.net>
35806
35807         dup2: work around FreeBSD 6.1 bug
35808         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
35809         * doc/posix-functions/dup2.texi (dup2): Document it.
35810         Reported by Nelson H. F. Beebe and Jim Meyering.
35811
35812         test-stat-time: port to buggy NFS clients
35813         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
35814         (test_ctime): Also skip test if mtime and ctime are skewed.
35815
35816         maint: prefer 'file system' over 'filesystem'
35817         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35818         * doc/posix-functions/lstat.texi (lstat): Likewise.
35819         * lib/file-has-acl.c (file_has_acl): Likewise.
35820         * lib/fwriteerror.c [TEST]: Likewise.
35821         * tests/test-areadlink.h (test_areadlink): Likewise.
35822         * tests/test-areadlinkat-with-size.c (main): Likewise.
35823         * tests/test-areadlinkat.c (main): Likewise.
35824         * tests/test-canonicalize-lgpl.c (main): Likewise.
35825         * tests/test-canonicalize.c (main): Likewise.
35826         * tests/test-fstatat.c (main): Likewise.
35827         * tests/test-linkat.c (main): Likewise.
35828         * tests/test-lstat.h (test_lstat_func): Likewise.
35829         * tests/test-mkdir.h (test_mkdir): Likewise.
35830         * tests/test-readlink.h (test_readlink): Likewise.
35831         * tests/test-remove.c (main): Likewise.
35832         * tests/test-rename.h (test_rename): Likewise.
35833         * tests/test-renameat.c (main): Likewise.
35834         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35835         * tests/test-symlink.h (test_symlink): Likewise.
35836         * tests/test-symlinkat.c (main): Likewise.
35837         * tests/test-unlink.h (test_unlink_func): Likewise.
35838         * tests/test-unlinkat.c (main): Likewise.
35839
35840         maint: make realtime library usage explicit
35841         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
35842         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
35843         * modules/settime (Link): Likewise.
35844         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
35845
35846         test-stat-time: speed up execution
35847         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
35848         warning on mingw.
35849         (nap): New helper function.
35850         (prepare_test): Use it to reduce sleep time.
35851         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
35852         execution.
35853         * modules/stat-time-tests (configure.ac): Check for usleep.
35854
35855 2009-10-09  Jim Meyering  <meyering@redhat.com>
35856
35857         selinux-h: always use getfilecon wrappers
35858         * lib/getfilecon.c: New file.
35859         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
35860         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
35861         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
35862         (fgetfilecon): Provide a stub.
35863         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
35864         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
35865         file unconditionally.
35866         When <selinux/selinux.h> is found, arrange to use wrappers.
35867         * modules/selinux-h (Files): Add getfilecon.c.
35868         (Makefile.am): Substitute include-next-related bits
35869         into the now-always-generated selinux/selinux.h file.
35870         * doc/glibc-functions/lgetfilecon.texi: New file.
35871         * doc/glibc-functions/fgetfilecon.texi: New file.
35872         * doc/glibc-functions/getfilecon.texi: New file.
35873         * doc/glibc-functions/getfilecon-desc.texi: New file.
35874         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
35875         which to pull in the new files.
35876         * MODULES.html.sh (Misc): Add selinux-h.
35877
35878 2009-10-08  Jim Meyering  <meyering@redhat.com>
35879
35880         unistd: fix comment typo
35881         * lib/unistd.in.h (euidaccess): Fix a comment typo.
35882
35883 2009-10-08  Eric Blake  <ebb9@byu.net>
35884
35885         areadlink: use SIZE_MAX consistently
35886         * modules/areadlink (Depends-on): Add stdint.
35887         * modules/areadlink-with-size (Depends-on): Likewise.
35888         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
35889         gives NULL; drop sys/types, since unistd gives size_t; and add
35890         stdint for SIZE_MAX.
35891         (SIZE_MAX): Rely on headers.
35892         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
35893         and add stdint.
35894         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
35895         (SIZE_MAX): Likewise.
35896         (INITIAL_BUF_SIZE): Turn into enum.
35897         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
35898
35899 2009-10-08  Jim Meyering  <meyering@redhat.com>
35900
35901         areadlinkat: avoid compilation failure
35902         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
35903         Fix typo in comment.
35904
35905 2009-10-07  Eric Blake  <ebb9@byu.net>
35906
35907         areadlinkat-with-size: new module
35908         * modules/areadlinkat-with-size: New module.
35909         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
35910         * lib/areadlink.h (areadlinkat): Declare it.
35911         * MODULES.html.sh (File system functions): Mention it.
35912         * modules/areadlinkat-with-size-tests: New test.
35913         * tests/test-areadlinkat-with-size.c: New file.
35914
35915         xreadlinkat: new module
35916         * modules/xreadlinkat: New module.
35917         * lib/xreadlinkat.c (xreadlinkat): New file.
35918         * lib/xreadlink.h (xreadlinkat): Declare it.
35919         * MODULES.html.sh (File system functions): Mention it.
35920
35921         areadlinkat: new module
35922         * lib/at-func.c (FUNC_FAIL): New define.
35923         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
35924         * modules/areadlinkat: New module.
35925         * lib/linkat.c (areadlinkat): Move...
35926         * lib/areadlinkat.c (areadlinkat): ...to new file.
35927         * lib/areadlink.h (areadlinkat): Declare it.
35928         * modules/linkat (Depends-on): Add areadlinkat.
35929         * MODULES.html.sh (File system functions): Mention it.
35930         * modules/areadlinkat-tests: New test.
35931         * tests/test-areadlinkat.c: New file.
35932
35933         areadlink, areadlink-with-size: add tests
35934         * modules/areadlink-tests: New test.
35935         * modules/areadlink-with-size-tests: Likewise.
35936         * tests/test-areadlink.h: New file.
35937         * tests/test-areadlink.c: Likewise.
35938         * tests/test-areadlink-with-size.c: Likewise.
35939
35940         maint: minor cleanups
35941         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
35942         _UNUSED_PARAMETER_ instead.
35943         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
35944         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
35945         * modules/linkat-tests (Files): Distribute test-link.h.
35946
35947         openat, utimens: whitespace cleanup
35948         * lib/openat.c: Prefer space throughout, rather than mix of 8
35949         spaces vs. tabs.
35950         * lib/at-func.c: Likewise.
35951         * lib/utimens.c: Likewise.
35952
35953         openat: avoid using wrong fd
35954         * lib/openat.c (openat_permissive): Reject user's fd if saving the
35955         working directory chooses same fd.
35956         * lib/at-func.c (AT_FUNC_NAME): Likewise.
35957
35958         mkdir, mkdirat: fix cygwin 1.5.x bug
35959         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
35960         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
35961         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
35962         bug.
35963         (gl_PREREQ_MKDIR): Delete unused macro.
35964         * modules/mkdir (Files): Track file rename.
35965         (configure.ac): Update macro name.
35966         * modules/openat (Depends-on): Add mkdir.
35967         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
35968
35969         mkdir, mkdirat: add tests
35970         * modules/mkdir-tests: New test.
35971         * tests/test-mkdir.h: New file.
35972         * tests/test-mkdir.c: Likewise.
35973         * tests/test-mkdirat.c: Likewise.
35974         * modules/openat-tests (Files): Add new files.
35975         (Makefile.am): Run new test.
35976
35977 2009-10-06  Eric Blake  <ebb9@byu.net>
35978
35979         doc: tweak *at function documentation
35980         * doc/posix-functions/faccessat.texi (faccessat): Mention
35981         known issue with replacement.
35982         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
35983         * doc/posix-functions/linkat.texi (linkat): Likewise.
35984         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35985         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35986         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35987         * doc/posix-functions/renameat.texi (renameat): Likewise.
35988         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35989
35990         openat: fix GNU/Hurd bug in unlinkat
35991         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
35992         broken.
35993         * doc/posix-functions/unlink.texi (unlink): Document this.
35994         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
35995
35996         fdopendir: fix GNU/Hurd bug
35997         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
35998         allowing non-directory fds.
35999         * lib/fdopendir.c (rpl_fdopendir): Work around it.
36000         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36001         * modules/dirent (Makefile.am): Substitute it.
36002         * lib/dirent.in.h (fdopendir): Declare replacement.
36003         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
36004         * tests/test-fdopendir.c (main): Test something other than
36005         /dev/null, since on Hurd that behaves like a directory.
36006
36007         test-symlink: port to GNU/Hurd
36008         * tests/test-symlink.h (test_symlink): Relax expected errno.
36009
36010         doc: tweak more cygwin information
36011         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
36012         now compatible with glibc.
36013         * doc/posix-functions/getopt.texi (getopt): Likewise.
36014
36015         getopt-gnu: add another test
36016         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
36017         guarantee behavior relied on by m4.
36018         * tests/test-getopt.c (main): Use it.
36019         * modules/getopt-posix-tests (Depends-on): Add setenv.
36020         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
36021
36022         getopt: fix compilation on darwin
36023         * lib/getopt.in.h (includes): Leave breadcrumbs during system
36024         include.
36025         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
36026         Reported by Ludovic Courtès.
36027
36028 2009-10-06  Bruno Haible  <bruno@clisp.org>
36029
36030         * modules/size_max (Description): Discourage its use.
36031         Reported by Simon Josefsson.
36032
36033 2009-10-06  Jim Meyering  <meyering@redhat.com>
36034
36035         linkat: avoid compilation failure
36036         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
36037
36038 2009-10-05  Eric Blake  <ebb9@byu.net>
36039
36040         linkat: support Linux 2.6.17
36041         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
36042         linkat on Linux, but allow cache variable override.
36043         * lib/linkat.c (rpl_linkat): Define override.
36044         * modules/linkat (Depends-on): Add symlinkat.
36045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
36046         * modules/unistd (Makefile.am): Substitute it.
36047         * lib/unistd.in.h (linkat): Declare replacement.
36048         Reported by Pádraig Brady.
36049
36050         quotearg: port test to systems with C.UTF-8 locale
36051         * tests/test-quotearg.c (struct result_strings): Add another
36052         member, differentiating between C.ASCII and C.UTF-8 handling.
36053         (compare_strings): Add parameter.
36054         (main): Adjust all callers.
36055
36056         getopt: avoid clash with FreeBSD _getopt_internal
36057         * lib/getopt.in.h (_getopt_internal): Override the name.
36058         * lib/getopt_int.h (includes): Pick up any overrides.
36059         Reported by Reuben Thomas.
36060
36061         hash: allow C89 compilation
36062         * lib/hash.c (check_tuning): Move declaration before statement.
36063         Reported by Reuben Thomas.
36064
36065 2009-10-05  Karl Berry  <karl@gnu.org>
36066
36067         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
36068
36069 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
36070             Bruno Haible  <bruno@clisp.org>
36071
36072         * lib/uname.c (uname): Use a table-driven algorithm to compute
36073         Windows NT versions.
36074
36075 2009-10-04  Bruno Haible  <bruno@clisp.org>
36076
36077         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
36078         program_invocation_short_name.
36079         * modules/progname (configure.ac): Test for presence of
36080         program_invocation_short_name.
36081         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36082
36083 2009-10-04  Bruno Haible  <bruno@clisp.org>
36084
36085         * lib/progname.c (set_program_name): Fix comment.
36086         Reported by Jim Meyering.
36087
36088 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
36089             Bruno Haible  <bruno@clisp.org>
36090
36091         * lib/uname.c: Include <string.h>.
36092         (uname): Do only one call to GetVersionEx in the common case.
36093
36094 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
36095             Bruno Haible  <bruno@clisp.org>
36096
36097         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
36098         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
36099         (uname): Add support for Windows CE and various non-x86 CPU types.
36100
36101 2009-10-03  Bruno Haible  <bruno@clisp.org>
36102
36103         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
36104         invocation to tests/configure.ac.
36105         Reported by Ian Beckwith <ianb@erislabs.net>.
36106
36107 2009-10-02  Eric Blake  <ebb9@byu.net>
36108
36109         fchdir: avoid compiler warning
36110         * lib/fchdir.c (canonicalize_file_name)
36111         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
36112
36113         test-open: support mingw errno values
36114         * tests/test-open.h (test_open): Relax test.
36115         * tests/test-fopen.h (test_fopen): Likewise.
36116         * tests/test-openat-safer.c (main): Likewise.
36117
36118         open: fix opening directory on mingw
36119         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
36120
36121         test-open: on GNU/Hurd, /dev/null is a directory
36122         * tests/test-fopen.h (main): Rename...
36123         (test_fopen): ...to this.  Use a guaranteed non-directory when
36124         confirming open behavior on trailing slash.
36125         * tests/test-openat-safer.c (main): Likewise.
36126         * tests/test-open.h (main): Likewise....
36127         (test_open): ...to this.
36128         * tests/test-fopen.c (main): Adjust caller.
36129         * tests/test-fopen-safer.c (main): Likewise.
36130         * tests/test-open.c (main): Likewise.
36131         * tests/test-fcntl-safer.c (main): Likewise.
36132         Reported by Samuel Thibault.
36133
36134         rename, fchdir: don't ignore chdir failure
36135         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
36136         * lib/rename.c (rpl_rename) [W32]: Likewise.
36137         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
36138         an empty destination directory if source cannot be renamed,
36139         although there is still possibility for failure.
36140         * doc/posix-functions/rename.texi (rename): Document the race.
36141         Reported by Jim Meyering.
36142
36143         maint: cleanup whitespace in recent commits
36144         * lib/rename.c (rpl_rename): Remove tabs.
36145         * tests/test-link.h (test_link): Likewise.
36146         * lib/fchdir.c (get_name): Likewise.
36147         Reported by Jim Meyering.
36148
36149 2009-10-02  Ben Pfaff  <blp@gnu.org>
36150
36151         relocatable-prog-wrapper: Add missing dependency on
36152         double-slash-root.
36153         * modules/relocatable-prog-wrapper: Add dependency.
36154         Reported by Ian Beckwith <ianb@erislabs.net>.
36155
36156 2009-10-02  Eric Blake  <ebb9@byu.net>
36157
36158         renameat: fix Solaris bugs
36159         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
36160         needed fixing.
36161         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
36162         * modules/stdio (Makefile.am): Substitute it.
36163         * lib/stdio.in.h (renameat): Declare replacement.
36164         * lib/renameat.c (rpl_renameat): Implement fix.
36165
36166         renameat: new module
36167         * modules/renameat: New file.
36168         * lib/renameat.c (renameat): Likewise.
36169         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
36170         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36171         * modules/stdio (Makefile.am): Substitute them.
36172         * lib/stdio.in.h (renameat): Declare it.
36173         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36174         * doc/posix-functions/renameat.texi (renameat): Likewise.
36175         * modules/renameat-tests: New test.
36176         * tests/test-renameat.c: Likewise.
36177
36178         rename: fix mingw bugs
36179         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
36180         directory overwrite bugs.
36181
36182         rename: fix another cygwin 1.5 bug
36183         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
36184         checks.
36185         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
36186         unnecessary cygwin workarounds.  Also work around bug with moving
36187         full directory onto an empty one.
36188         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
36189
36190         rename-dest-slash: merge into rename module
36191         * modules/rename-dest-slash (Status): Mark obsolete.
36192         (Depends-on): Add rename.
36193         (Files): Let rename do it all.
36194         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
36195         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
36196         * m4/rename-dest-slash.m4: ...so this file can be deleted.
36197         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
36198         * lib/rename.c (rpl_rename): Update comments.
36199
36200         rename: fix cygwin 1.5.x bugs
36201         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
36202         * lib/rename.c (rpl_rename): Work around them.
36203         * modules/rename (Depends-on): Add same-inode.
36204
36205         rename: fix Solaris 10 bug
36206         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36207         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
36208         was the only bug.
36209
36210         rename: fix Solaris 9 bug
36211         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
36212         on non-directory.  Avoid calling exit.
36213         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
36214         strdup.
36215         * modules/rename-tests (Depends-on): Drop lstat.
36216         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36217         (gl_PREREQ_RENAME): Delete unused macro.
36218
36219         rename-dest-slash: fix NetBSD bug
36220         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
36221         links.
36222         * modules/rename-dest-slash (Depends-on): Add same-inode.
36223
36224         rename-tests: new test, exposes several platform bugs
36225         * modules/rename-tests: New file.
36226         * tests/test-rename.h: Likewise.
36227         * tests/test-rename.c: Likewise.
36228         * doc/posix-functions/rename.texi (rename): Improve documentation,
36229         including bugs that will eventually be fixed in gnulib.
36230
36231 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
36232
36233         * lib/uname.c: Include <stdlib.h>
36234         (uname): Assume version info is available.
36235
36236 2009-10-02  Jim Meyering  <meyering@redhat.com>
36237
36238         gnu-web-doc-update: correct --help output
36239         * build-aux/gnu-web-doc-update: Make --help output relevant.
36240
36241         gnu-web-doc-update: add standard options
36242         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
36243
36244         gnu-web-doc-update: New module.
36245         Use this script to automatically update the on-line web documentation
36246         for your GNU project at http://www.gnu.org/software/$pkg/manual/
36247         * modules/gnu-web-doc-update: New file, from coreutils.
36248         * build-aux/gnu-web-doc-update: New script.
36249
36250 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
36251
36252         link: LoadLibrary is not needed.
36253         * lib/link.c: Use GetModuleHandle.
36254
36255 2009-10-01  Eric Blake  <ebb9@byu.net>
36256
36257         getopt: bump serial number
36258         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
36259         change.
36260
36261         tests: tighten link, rmdir, and remove tests
36262         * tests/test-link.h (includes): No need to use <config.h> here.
36263         Clean up if directory hard link was created, otherwise test for
36264         trailing '.'.
36265         * tests/test-linkat.c (main): Simplify.
36266         * tests/test-remove.c (main): Enhance test for trailing '.'.
36267         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36268
36269 2009-10-01  Jim Meyering  <meyering@redhat.com>
36270
36271         maint.mk: requiring "make major" was annoying, for a "minor" release.
36272         What is intended is "stable", to contrast with alpha and beta,
36273         so require "make stable", not "make major".
36274         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
36275         (get_tool_versions): Likewise.
36276         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
36277
36278 2009-09-30  Ben Pfaff  <blp@gnu.org>
36279
36280         Fix broken build of replacement for Windows tmpfile().
36281         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
36282         flags argument added along with the 'mkostemp' module.
36283
36284 2009-09-28  Bruno Haible  <bruno@clisp.org>
36285
36286         Avoid identifier clash with POSIX function 'remove' defined as a macro.
36287         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
36288         to 'remove_elt'.
36289         (gl_list_remove): Update.
36290         * lib/gl_list.c (gl_list_remove): Update.
36291         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
36292         to 'remove_elt'.
36293         (gl_oset_remove): Update.
36294         * lib/gl_list.c (gl_oset_remove): Update.
36295         Reported by Eric Blake.
36296
36297 2009-09-28  Eric Blake  <ebb9@byu.net>
36298
36299         doc: mention yet more cygwin 1.7 status
36300         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
36301         cygwin.
36302         * doc/glibc-functions/execvpe.texi (execvpe): New file.
36303         * doc/gnulib.texi (Glibc unistd.h): Mention it.
36304
36305         argp: fix test failure
36306         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
36307         that are not upper-case.  Pass correct range to tolower.
36308
36309 2009-09-27  Jim Meyering  <meyering@redhat.com>
36310
36311         test-yesno: work around sparc-dash here-document infelicity
36312         Without this change, the literal \177 byte in a here document
36313         would make dash 0.5.5.1-3 access uninitialized memory.
36314         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
36315         Instead, use a marker, "@", and filter through tr to create the desired
36316         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
36317
36318 2009-09-27  Bruno Haible  <bruno@clisp.org>
36319
36320         Disable untested support for new flavours of ACLs on AIX.
36321         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
36322         progress.
36323         * lib/set-mode-acl.c (qset_acl): Likewise.
36324
36325 2008-12-07  Bruno Haible  <bruno@clisp.org>
36326
36327         Add support for new flavours of ACLs on AIX. (Untested.)
36328         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
36329         (file_has_acl): Add support for newer AIX.
36330         * lib/set-mode-acl.c (qset_acl): Likewise.
36331         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
36332         Rainer Tammer <tammer@tammer.net>.
36333
36334 2009-09-26  Eric Blake  <ebb9@byu.net>
36335
36336         argp: fix compilation of getopt
36337         * lib/getopt.in.h (includes): Use different guard than glibc.
36338         Reported by Sergey Poznyakoff.
36339
36340         doc: mention more cygwin 1.7 status
36341         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
36342         bug.
36343         * doc/posix-functions/execl.texi (execl): Likewise.
36344         * doc/posix-functions/execle.texi (execle): Likewise.
36345         * doc/posix-functions/execlp.texi (execlp): Likewise.
36346         * doc/posix-functions/execv.texi (execv): Likewise.
36347         * doc/posix-functions/execve.texi (execve): Likewise.
36348         * doc/posix-functions/execvp.texi (execvp): Likewise.
36349         * doc/glibc-functions/canonicalize_file_name.texi
36350         (canonicalize_file_name): Cygwin 1.7 now provides this.
36351         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
36352         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
36353         on AT_SYMLINK_NOFOLLOW.
36354
36355 2009-09-24  Eric Blake  <ebb9@byu.net>
36356
36357         test-linkat: make test more robust
36358         * tests/test-linkat.c (main): Avoid collision with EEXIST.
36359
36360         getopt: fix inclusion guards for cygwin
36361         * modules/getopt-posix (Depends-on): Add include-next.
36362         (Makefile.am): Substitute more items in replacement header.
36363         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
36364         <getopt.h>.
36365         * lib/getopt.in.h (includes): Use split inclusion guard, and
36366         prefer <getopt.h> over include <unistd.h> when one is present.
36367         (option): Also override name of 'struct option'.
36368
36369         same-inode: revert prior change; it is not yet ready
36370         * NEWS: Undo mention of this change.
36371         * lib/same-inode.h (same-inode.h): Undo tri-state change.
36372         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36373         * lib/cycle-check.c (cycle_check): Likewise.
36374         * lib/same.c (same_name): Likewise.
36375         * lib/at-func2.c (at_func2): Likewise.
36376
36377 2009-09-23  Eric Blake  <ebb9@byu.net>
36378
36379         linkat: new module
36380         * modules/linkat: New file.
36381         * lib/at-func2.c (at_func2): Likewise.
36382         * lib/linkat.c (linkat): Likewise.
36383         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
36384         * lib/openat-priv.h (at_func2): Add declaration.
36385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36386         * modules/unistd (Makefile.am): Substitute them.
36387         * lib/unistd.in.h (linkat): Declare it.
36388         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36389         * doc/posix-functions/linkat.texi (linkat): Likewise.
36390         * doc/posix-functions/link.texi (link): Tweak wording.
36391         * tests/test-link.c (main): Move guts...
36392         * tests/test-link.h (test_link): ...into new file.
36393         * modules/linkat-tests: New test.
36394         * tests/test-linkat.c: Likewise.
36395         * modules/link-tests (Files): Ship new file.
36396         (Depends-on): Add stdbool.
36397
36398         dirname: add library-safe mdir_name
36399         * lib/dirname.h (mdir_name): New prototype.
36400         * lib/dirname.c (dir_name): Move guts...
36401         (mdir_name): ...to new function that avoids xalloc_die.
36402
36403         fchdir: another mingw fix
36404         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
36405         * lib/fchdir.c (get_name): New helper method; skips canonicalize
36406         on mingw (where it has not yet been ported), and make it optional
36407         elsewhere.
36408         (_gl_register_fd): Use it.
36409
36410         same-inode: make SAME_INODE tri-state, to port to mingw
36411         * NEWS: Mention this change.
36412         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
36413         st_ino always being 0.
36414         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36415         * lib/cycle-check.c (cycle_check): Likewise.
36416         * lib/same.c (same_name): Likewise.
36417
36418         lstat: avoid mingw compilation error
36419         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
36420         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
36421         lstat ourselves.
36422         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
36423         was adequate.
36424         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
36425         the checks for lstat.
36426         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
36427
36428         link: fix test failure on Solaris 9
36429         * lib/link.c (rpl_link): Don't assume link will catch bogus
36430         trailing slash on source.
36431
36432         test-symlinkat: enhance test
36433         * tests/test-readlink.c (main): Move guts...
36434         * tests/test-readlink.h (test_readlink): ...into new file.
36435         * tests/test-symlink.c (main): Move guts...
36436         * tests/test-symlink.h (test_symlink): ...into new file.
36437         * tests/test-symlinkat.c (main): Use new files for further
36438         coverage.
36439         (do_symlink, do_readlink): New helper functions.
36440         * modules/symlink-tests (Files): Ship new file.
36441         (Depends-on): Add stdbool.
36442         * modules/readlink-tests (Files): Ship new file.
36443         (Depends-on): Add stdbool.
36444         * modules/symlinkat-tests (Files): Use new files.
36445
36446 2009-09-23  Eric Blake  <ebb9@byu.net>
36447
36448         readlink: document portability issue with symlink length
36449         * doc/posix-functions/lstat.texi (lstat): Mention that some file
36450         systems have bogus st_size on symlinks, and mention the
36451         areadlink-with-size module.
36452         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36453         * doc/posix-functions/readlink.texi (readlink): Mention the
36454         areadlink module, and ERANGE failure.
36455         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36456         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
36457
36458         readlink: fix Solaris 9 bug with trailing slash
36459         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
36460         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
36461         * doc/posix-functions/readlink.texi (readlink): Document this.
36462         * modules/readlink-tests: New test.
36463         * tests/test-readlink.c: Likewise.
36464
36465         readlink: fix cygwin 1.5.x bug with return type
36466         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
36467         * lib/unistd.in.h (readlink): Use ssize_t.
36468         * lib/readlink.c (readlink): Likewise.
36469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36470         * modules/unistd (Makefile.am): Substitute it.
36471         * lib/unistd.in.h (readlink): Declare replacement.
36472         * doc/posix-functions/readlink.texi (readlink): Document this.
36473
36474         symlink: use throughout gnulib
36475         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
36476         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
36477         symlink is not used.
36478         * modules/symlinkat (Depends-on): Add symlink.
36479         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36480         * modules/canonicalize-tests (Depends-on): Likewise.
36481         * modules/lstat-tests (Depends-on): Likewise.
36482         * modules/openat-tests (Depends-on): Likewise.
36483         * modules/remove-tests (Depends-on): Likewise.
36484         * modules/rmdir-tests (Depends-on): Likewise.
36485         * modules/unlink-tests (Depends-on): Likewise.
36486         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
36487         * tests/test-canonicalize.c (symlink): Likewise.
36488         * tests/test-fstatat.c (symlink): Likewise.
36489         * tests/test-lstat.c (symlink): Likewise.
36490         * tests/test-remove.c (symlink): Likewise.
36491         * tests/test-rmdir.c (symlink): Likewise.
36492         * tests/test-unlink.c (symlink): Likewise.
36493         * tests/test-unlinkat.c (symlink): Likewise.
36494
36495         symlink: new module, for Solaris 9 bug
36496         * modules/symlink: New file.
36497         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
36498         * lib/symlink.c: Likewise.
36499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
36500         * modules/unistd (Makefile.am): Substitute them.
36501         * lib/unistd.in.h (symlink): Declare replacement.
36502         * MODULES.html.sh (File system functions): Mention it.
36503         * doc/posix-functions/symlink.texi (symlink): Likewise.
36504         * modules/symlink-tests: New test.
36505         * tests/test-symlink.c: Likewise.
36506
36507 2009-09-23  Bruno Haible  <bruno@clisp.org>
36508
36509         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
36510         when needed.
36511         Test case: gnulib-tool --import --with-tests atexit inttypes.
36512         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
36513
36514 2009-09-23  Bruno Haible  <bruno@clisp.org>
36515
36516         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
36517         subcommand, not in a subshell.
36518
36519 2009-09-22  Eric Blake  <ebb9@byu.net>
36520
36521         unistd: sort replacement declarations
36522         * lib/unistd.in.h: Sort declarations.
36523
36524         open, openat: minor optimization
36525         * lib/open.c (open): If open succeeded, len is non-zero.
36526         * lib/openat.c (rpl_openat): Likewise.
36527
36528         link-follow: ensure correct result
36529         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
36530         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
36531         distinguish between possible failures.
36532
36533 2009-09-21  Eric Blake  <ebb9@byu.net>
36534
36535         fts: avoid compiler warning
36536         * lib/fts.c (dirent_inode_sort_may_be_useful)
36537         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
36538
36539 2009-09-19  Bruno Haible  <bruno@clisp.org>
36540
36541         * lib/progreloc.c (canonicalize_file_name): New declaration.
36542
36543 2009-09-19  Eric Blake  <ebb9@byu.net>
36544
36545         link: fix quoting
36546         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
36547
36548         openat: fix openat bugs on Solaris 9
36549         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
36550         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
36551         * modules/openat (Depends-on): Add open.
36552         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
36553         * modules/fcntl-h (Makefile.am): Substitute it.
36554         * lib/fcntl.in.h (openat): Declare replacement.
36555         * doc/posix-functions/openat.texi (openat): Document this.
36556
36557         openat: move fstatat and unlinkat into correct files
36558         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
36559         compiled.
36560         * lib/openat.c (fstatat, unlinkat): Move...
36561         * lib/fstatat.c (fstatat): ...into correct files.
36562         * lib/unlinkat.c (unlinkat): Likewise.
36563
36564         openat: fix unlinkat bugs on Solaris 9
36565         * lib/unlinkat.c (unlinkat): New file.
36566         * modules/openat (Depends-on): Add unlink.
36567         (Files): Distribute it.
36568         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
36569         trailing slash behavior is broken.
36570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36571         * modules/unistd (Makefile.am): Substitute it.
36572         * lib/unistd.in.h (unlinkat): Declare replacement.
36573         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
36574
36575         openat: fix fstatat bugs on Solaris 9
36576         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
36577         stat.
36578         * doc/posix-functions/fstatat.texi (fstatat): Document this.
36579
36580         test-unlinkat: enhance test, to expose Solaris 9 bug
36581         * tests/test-unlink.c (main): Factor guts...
36582         * tests/test-unlink.h (test_rmdir_func): ...into new file.
36583         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
36584         * tests/test-rmdir.c (main): Adjust caller.
36585         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
36586         (unlinker): New helper function.
36587         (rmdirat): Enhance check.
36588         * modules/rmdir-tests (Depends-on): Add stdbool.
36589         * modules/unlink-tests (Depends-on): Likewise.
36590         (Files): Add test-unlink.h.
36591         * modules/openat-tests (Files): Likewise.
36592         (Depends-on): Add unlinkdir.
36593
36594         test-fstatat: new test, to expose Solaris 9 bugs
36595         * tests/test-stat.c (main): Factor guts...
36596         * tests/test-stat.h (test_stat_func): ...into new file.
36597         * tests/test-lstat.c (main): Factor guts...
36598         * tests/test-lstat.h (test_lstat_func): ...into new file.
36599         * tests/test-fstatat.c: New file.
36600         * modules/stat-tests (Files): Add test-stat.h.
36601         * modules/lstat-tests (Files): Add test-lstat.h.
36602         (Depends-on): Add stdbool.
36603         * modules/openat-tests (Depends-on): Add pathmax.
36604         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
36605         (Makefile.am): Run new test.
36606
36607         remove: new module, for mingw and Solaris 9 bugs
36608         * modules/remove: New file.
36609         * lib/remove.c: Likewise.
36610         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
36611         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36612         * modules/stdio (Makefile.am): Use them.
36613         * lib/stdio.in.h (remove): Declare replacement.
36614         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36615         * doc/posix-functions/remove.texi (remove): Likewise.
36616         * modules/remove-tests: New test.
36617         * tests/test-remove.c: Likewise.
36618
36619         unlink: new module, for Solaris 9 bug
36620         * modules/unlink: New file.
36621         * lib/unlink.c: Likewise.
36622         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36624         * modules/unistd (Makefile.am): Use them.
36625         * lib/unistd.in.h (stat): Declare replacement.
36626         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36627         * doc/posix-functions/unlink.texi (unlink): Likewise.
36628         * modules/unlink-tests: New test.
36629         * tests/test-unlink.c: Likewise.
36630
36631         lstat: fix Solaris 9 bug
36632         * lib/lstat.c (lstat): Also check for trailing slash on
36633         non-symlink, non-directories.  Use stat module to simplify logic.
36634         * doc/posix-functions/lstat.texi (lstat): Document it.
36635         * modules/lstat-tests (Depends-on): Add errno, same-inode.
36636         (configure.ac): Check for symlink.
36637         * tests/test-lstat.c (main): Add more tests.
36638
36639         stat: add as dependency to other modules
36640         * modules/chown (Depends-on): Add stat.
36641         * modules/euidaccess (Depends-on): Likewise.
36642         * modules/fchdir (Depends-on): Likewise.
36643         * modules/isdir (Depends-on): Likewise.
36644         * modules/link (Depends-on): Likewise.
36645         * modules/lstat (Depends-on): Likewise.
36646         * modules/mkdir-p (Depends-on): Likewise.
36647         * modules/modechange (Depends-on): Likewise.
36648         * modules/open (Depends-on): Likewise.
36649         * modules/readlink (Depends-on): Likewise.
36650         * modules/same (Depends-on): Likewise.
36651
36652         stat: fix Solaris 9 bug
36653         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
36654         slash.
36655         * lib/stat.c (rpl_stat): Work around it.
36656         * doc/posix-functions/stat.texi (stat): Update documentation.
36657
36658         stat: new module, for mingw bug
36659         * modules/stat: New file.
36660         * lib/stat.c: Likewise.
36661         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36662         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36663         * modules/sys_stat (Makefile.am): Use them.
36664         * lib/sys_stat.in.h (stat): Declare replacement.
36665         * lib/openat.c (fstatat): Deal with lstat and stat being function
36666         macros.
36667         * modules/openat (Depends-on): Add inline.
36668         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36669         * doc/posix-functions/stat.texi (stat): Likewise.
36670         * modules/stat-tests: New test.
36671         * tests/test-stat.c: Likewise.
36672
36673 2009-09-19  Jim Meyering  <meyering@redhat.com>
36674
36675         syntax-check: detect unnecessary inclusion of canonicalize.h
36676         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
36677
36678 2009-09-19  Eric Blake  <ebb9@byu.net>
36679
36680         canonicalize-lgpl: adjust clients to use correct header
36681         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36682         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
36683         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
36684         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
36685         * lib/progreloc.c (includes): Likewise.
36686
36687 2009-09-19  Jim Meyering  <meyering@redhat.com>
36688
36689         test-posixtm.c: correct a comment
36690         * tests/test-posixtm.c: Correct first-line comment.
36691         Spotted by Eric Blake.
36692
36693 2009-09-16  Jim Meyering  <meyering@redhat.com>
36694
36695         posixtm-tests: make T const-correct; add a test case
36696         * tests/test-posixtm.c (T): Declare const.
36697         Add a test for -(2^31+1).
36698         Remove useless can-succeed-only-in-2002 test.
36699
36700         posixtm-tests: adjust the sole failing test
36701         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
36702         expected output matches what mktime now produces.  Cross-checked via
36703         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
36704
36705         posixtm: move #ifdef'd tests into a new module
36706         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
36707         * tests/test-posixtm.c: ... this new file.
36708         * modules/posixtm-tests: New module.
36709
36710 2009-09-19  Eric Blake  <ebb9@byu.net>
36711
36712         openat: simplify use of at-func.c
36713         * lib/at-func.c (includes): Include prerequisites here, to
36714         simplify requirements on client files.
36715         * lib/openat-priv.h: Add double-inclusion guard.
36716         * lib/faccessat.c (includes): Simplify.
36717         * lib/fchmodat.c (includes): Likewise.
36718         * lib/fchownat.c (includes): Likewise.
36719         * lib/mkdirat.c (includes): Likewise.
36720         * lib/mkfifoat.c (includes): Likewise.
36721         * lib/symlinkat.c (includes): Likewise.
36722
36723         openat: allow return of fd 0
36724         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
36725         * modules/save-cwd (Depends-on): Replace fcntl-safer with
36726         unistd-safer.
36727         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
36728         <fcntl.h>; this module does not leak fds.
36729         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
36730         must be allowed to return 0, leaving openat_safer to add the
36731         safety.
36732         (openat_permissive): Avoid writing to just-opened fd 2 if
36733         restoring the current directory fails.
36734         * lib/openat-die.c (openat_restore_fail): Add comment.
36735         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
36736         (save_cwd): Guarantee safe fd, but without use of open_safer.
36737         * tests/test-openat.c: New test.
36738         * modules/openat-tests (Files, Makefile.am): Distribute and build
36739         new file.
36740
36741         relocatable-prog-wrapper: fix build
36742         * modules/relocatable-prog-wrapper (Files): Update name of
36743         canonicalize m4 file, broken on 2009-09-17.
36744         Reported by emad hajjar <aleppos@hotmail.com>.
36745
36746 2009-09-19  Bruno Haible  <bruno@clisp.org>
36747
36748         * lib/safe-alloc.h: Use the standard header with GPL copyright.
36749         * lib/safe-alloc.c: Likewise.
36750         Reported by Ian Beckwith <ianb@erislabs.net>.
36751
36752 2009-09-18  Bruno Haible  <bruno@clisp.org>
36753
36754         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
36755         Reported by <erobles@sensacd.com.mx>.
36756
36757 2009-09-17  Eric Blake  <ebb9@byu.net>
36758
36759         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
36760         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
36761         slashes when checking if last component is missing.
36762         * tests/test-canonicalize.c (main): Test this.
36763
36764         canonicalize, canonicalize-lgpl: honor // if distinct from /
36765         * modules/canonicalize (Files): Add double-slash-root.m4.
36766         * modules/canonicalize-lgpl (Files): Likewise.
36767         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36768         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
36769         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
36770         fallback definition.
36771         (canonicalize_filename_mode): Use it to protect //.
36772         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
36773         (__realpath): Likewise.
36774         * tests/test-canonicalize.c (main): Test this.
36775         * tests/test-canonicalize-lgpl.c (main): Likewise.
36776         * modules/canonicalize-tests (Depends-on): Add same-inode.
36777         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36778
36779         canonicalize-lgpl: fix glibc bug with trailing slash
36780         * m4/canonicalize-lgpl.m4: Move contents...
36781         * m4/canonicalize.m4: ...here.
36782         (gl_CANONICALIZE_LGPL): Factor realpath check...
36783         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
36784         glibc 2.3.5 bug, fixed 2005-04-27.
36785         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
36786         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
36787         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
36788         * modules/canonicalize-lgpl (Files): Manage file rename.
36789         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36790         * modules/stdlib (Makefile.am): Substitute witness.
36791         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36792         is needed.
36793         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
36794         replacement is required.
36795         * lib/canonicalize.c (canonicalize_file_name): Likewise.
36796         * doc/glibc-functions/canonicalize_file_name.texi
36797         (canonicalize_file_name): Document this.
36798         * doc/posix-functions/realpath.texi (realpath): Likewise.
36799
36800         canonicalize-lgpl: reject non-directory with trailing slash
36801         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
36802         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
36803         catches failures in glibc 2.3.5.
36804         * tests/test-canonicalize.c (main): Likewise.
36805
36806         canonicalize-lgpl: use native realpath if it works
36807         * lib/canonicalize-lgpl.c (realpath): Guard with
36808         FUNC_REALPATH_WORKS.
36809         * lib/stdlib.in.h (realpath): Make declaration optional based on
36810         HAVE_REALPATH.
36811         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
36812         native realpath works.
36813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36814         * modules/stdlib (Makefile.am): Substitute witness.
36815
36816         canonicalize, canonicalize-lgpl: use <stdlib.h>
36817         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
36818         (Include): Mention <stdlib.h>.
36819         (configure.ac): Mention functions we provide.
36820         * modules/canonicalize (configure.ac): Likewise.
36821         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
36822         realpath if canonicalize_file_name is missing.
36823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
36824         * modules/stdlib (Makefile.am): Substitute witnesses.
36825         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
36826         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
36827         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
36828         * NEWS: Document this.
36829         * doc/glibc-functions/canonicalize_file_name.texi
36830         (canonicalize_file_name): Likewise.
36831         * doc/posix-functions/realpath.texi (realpath): Likewise.
36832         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
36833
36834         test-canonicalize: consolidate into single C program
36835         * tests/test-canonicalize.sh: Delete; move setup into...
36836         * tests/test-canonicalize.c (main): ...the program, making it
36837         easier to run in debugger.  Add some tests.
36838         * modules/canonicalize-tests (Files): Remove unused file.
36839         (Depends-on): Add progname.
36840         (configure.ac, Makefile.am): Simplify.
36841
36842         test-canonicalize-lgpl: consolidate into single C program
36843         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
36844         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
36845         easier to run in debugger.  Add some tests.
36846         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
36847         (configure.ac, Makefile.am): Simplify.
36848
36849         canonicalize: avoid resolvepath
36850         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
36851         unnecessary checks.
36852         * lib/canonicalize.c (includes): Simplify.
36853         (canonicalize_file_name): Drop resolvepath implementation.
36854         * modules/canonicalize (Depends-on): Drop filenamecat.
36855
36856         canonicalize: don't lose errno
36857         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
36858         over calls to free.
36859
36860         canonicalize: simplify errno handling
36861         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
36862         assignment.
36863
36864         canonicalize, canonicalize-lgpl: update module dependencies
36865         * modules/canonicalize (Depends-on): Add extensions, lstat,
36866         pathmax, stdlib.
36867         (Files): Drop pathmax.h.
36868         (configure.ac): Adjust macro name.
36869         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
36870         lstat, stdlib, sys_stat.
36871         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
36872         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
36873         extensions.
36874         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
36875         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
36876         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
36877         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
36878         declaration, if available.
36879         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
36880         we can rely on the readlink module.
36881         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
36882         (includes): Use <unistd.h> unconditionally.
36883
36884 2009-09-17  Eric Blake  <ebb9@byu.net>
36885
36886         maint: make Include sections of modules consistent
36887         * modules/alloca: Use only header name; no need to list #include.
36888         * modules/alloca-opt: Likewise.
36889         * modules/arpa_inet: Likewise.
36890         * modules/canon-host: Likewise.
36891         * modules/configmake: Likewise.
36892         * modules/dirent: Likewise.
36893         * modules/eealloc: Likewise.
36894         * modules/environ: Likewise.
36895         * modules/fchdir: Likewise.
36896         * modules/fcntl: Likewise.
36897         * modules/fcntl-h: Likewise.
36898         * modules/gethrxtime: Likewise.
36899         * modules/gettime: Likewise.
36900         * modules/ignore-value: Likewise.
36901         * modules/inet_ntop: Likewise.
36902         * modules/inet_pton: Likewise.
36903         * modules/inttypes: Likewise.
36904         * modules/isnand-nolibm: Likewise.
36905         * modules/isnanf-nolibm: Likewise.
36906         * modules/mbchar: Likewise.
36907         * modules/mbfile: Likewise.
36908         * modules/mbiter: Likewise.
36909         * modules/mbuiter: Likewise.
36910         * modules/netdb: Likewise.
36911         * modules/netinet_in: Likewise.
36912         * modules/nproc: Likewise.
36913         * modules/pagealign_alloc: Likewise.
36914         * modules/poll: Likewise.
36915         * modules/printf-frexp: Likewise.
36916         * modules/pthread: Likewise.
36917         * modules/putenv: Likewise.
36918         * modules/random_r: Likewise.
36919         * modules/relocatable-prog: Likewise.
36920         * modules/search: Likewise.
36921         * modules/select: Likewise.
36922         * modules/selinux-h: Likewise.
36923         * modules/settime: Likewise.
36924         * modules/signal: Likewise.
36925         * modules/size_max: Likewise.
36926         * modules/socklen: Likewise.
36927         * modules/ssize_t: Likewise.
36928         * modules/stdarg: Likewise.
36929         * modules/stdbool: Likewise.
36930         * modules/stddef: Likewise.
36931         * modules/stdint: Likewise.
36932         * modules/stdio: Likewise.
36933         * modules/stdlib: Likewise.
36934         * modules/string: Likewise.
36935         * modules/strings: Likewise.
36936         * modules/sys_file: Likewise.
36937         * modules/sys_ioctl: Likewise.
36938         * modules/sys_select: Likewise.
36939         * modules/sys_socket: Likewise.
36940         * modules/sys_stat: Likewise.
36941         * modules/sys_time: Likewise.
36942         * modules/sys_times: Likewise.
36943         * modules/sys_utsname: Likewise.
36944         * modules/sys_wait: Likewise.
36945         * modules/sysexits: Likewise.
36946         * modules/time: Likewise.
36947         * modules/times: Likewise.
36948         * modules/tmpfile: Likewise.
36949         * modules/trim: Likewise.
36950         * modules/unistd: Likewise.
36951         * modules/wchar: Likewise.
36952         * modules/wctype: Likewise.
36953
36954 2009-09-17  Bruno Haible  <bruno@clisp.org>
36955
36956         Make getdate.y compile on QNX and NetBSD 5 / i386.
36957         * m4/getdate.m4 (gl_GETDATE): Conditionally define
36958         TIME_T_FITS_IN_LONG_INT.
36959         * lib/getdate.y (long_time_t): New type.
36960         (relative_time): Change type of 'seconds' field to long_time_t.
36961         (get_date): Update types of local variables. Check against overflow
36962         during conversion from long_time_t to time_t.
36963         Reported by Matt Kraai <kraai@ftbfs.org>
36964         and Hasso Tepper <hasso@netbsd.org>.
36965
36966 2009-09-17  Bruno Haible  <bruno@clisp.org>
36967
36968         * modules/COPYING: Update copyright years.
36969         * modules/README: Likeiwse.
36970         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
36971         Reported by Ian Beckwith <ianb@erislabs.net>.
36972
36973 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36974
36975         * users.txt: Update references for gnuit package.
36976
36977 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36978
36979         * m4/getdelim.m4: Fix typo in copyright line.
36980
36981 2009-09-17  Bruno Haible  <bruno@clisp.org>
36982
36983         * lib/atoll.c: Use the standard header with GPL copyright.
36984         * lib/argz.in.h: Likewise.
36985         * lib/glob.c: Likewise.
36986         * lib/glob-libc.h: Likewise.
36987         * lib/random_r.c: Likewise.
36988         * lib/siglist.h: Likewise.
36989         * lib/strsignal.c: Likewise.
36990         Reported by Ian Beckwith <ianb@erislabs.net>.
36991
36992 2009-09-17  Eric Blake  <ebb9@byu.net>
36993
36994         rmdir: ensure correct dependency order
36995         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
36996
36997 2009-09-17  Bruno Haible  <bruno@clisp.org>
36998
36999         Disable assertion that fails on NetBSD 5 / i386.
37000         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
37001         Reported by Sam Steingold <sds@gnu.org>
37002         and Hasso Tepper <hasso@netbsd.org>.
37003
37004 2009-09-16  Eric Blake  <ebb9@byu.net>
37005
37006         unlinkdir: port to mingw
37007         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
37008         on which no one can unlink a directory.
37009
37010         stdlib: sort witness names
37011         * modules/stdlib (Makefile.am): Sort replacements.
37012         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
37013         * lib/stdlib.in.h: Likewise.
37014
37015         parse-duration-tests: avoid link failure
37016         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
37017         LIBINTL.
37018         Reported by Tom G. Christensen.
37019
37020         openat-tests: ensure unlinkat behaves like rmdir
37021         * tests/test-rmdir.c (main): Factor guts...
37022         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
37023         * modules/rmdir-tests (Files): Ship new file.
37024         * modules/openat-tests: New test.
37025         * tests/test-unlinkat.c: Likewise.
37026
37027         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
37028         * modules/rmdir-errno (Status, Notice): Now obsolete.
37029
37030         rmdir: work around cygwin 1.5.x and mingw bugs
37031         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
37032         * lib/rmdir.c (rmdir): Work around it.
37033         * modules/rmdir (Status, Notice): No longer obsolete.
37034         (Files): Add dos.m4.
37035         (Depends-on): Add unistd.
37036         (configure.ac): Set witnesses.
37037         (License): Relax to LGPLv2+.
37038         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
37039         * modules/unistd (Makefile.am): Substitute witnesses.
37040         * lib/unistd.in.h (rmdir): Declare replacement.
37041         * doc/posix-functions/rmdir.texi (rmdir): Document this.
37042         * modules/rmdir-tests: New tests.
37043         * tests/test-rmdir.c: Likewise.
37044
37045 2009-09-15  Eric Blake  <ebb9@byu.net>
37046
37047         fchdir: improve use of replacement functions
37048         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
37049         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
37050         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
37051         REPLACE_CLOSEDIR.
37052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
37053         * modules/sys_stat (Makefile.am): Substitute correct witness.
37054         * modules/dirent (Makefile.am): Likewise.
37055         * modules/unistd (Makefile.am): Likewise.
37056         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
37057         * lib/unistd.in.h (dup): Likewise.
37058         * lib/sys_stat.in.h (fstat): Likewise.
37059
37060         maint: ignore gnulib-tool temp files
37061         * .gitignore: Ignore files created during gnulib-tool --test.
37062
37063 2009-09-13  Jim Meyering  <meyering@redhat.com>
37064
37065         posixtm: don't reject a time that specify "60" as the number of seconds
37066         * lib/posixtm.c (posixtime): The code to reject invalid dates
37067         would also reject a time specified with the .60 suffix.
37068         But POSIX allows that, in order to accommodate leap seconds.
37069         So don't reject it.
37070         (main): Adjust tests accordingly.
37071         * modules/posixtm (Depends-on): Add stpcpy.
37072
37073 2009-09-11  Jim Meyering  <meyering@redhat.com>
37074
37075         announce-gen: include [$release_type] in emitted Subject:
37076         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
37077         e.g., [stable] in the emitted Subject: line.
37078
37079 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37080
37081         Remove obsolete macros from several modules.
37082         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
37083         obsolete Autoconf macros with their modern counterparts.
37084         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
37085         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
37086         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
37087         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
37088         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
37089         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37090         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
37091         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
37092         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
37093         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
37094         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
37095         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
37096         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
37097         * m4/sockets.m4 (gl_SOCKETS): Likewise.
37098         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
37099         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
37100         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
37101         * m4/time_r.m4 (gl_TIME_R): Likewise.
37102         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
37103         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
37104         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37105
37106         Fix copyright header in build-aux scripts.
37107         * build-aux/git-version-gen: Fix copyright header to match GPLv3
37108         recommendation.
37109         * build-aux/ncftpput-ftp: Likewise.
37110         * build-aux/update-copyright: Likewise.
37111
37112 2009-09-09  Eric Blake  <ebb9@byu.net>
37113
37114         test-link: allow Linux choice of errno
37115         * tests/test-link.c (main): Relax test for alternate error.
37116
37117         strndup: fix improper m4 caching
37118         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
37119         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
37120         (gl_PREREQ_STRNDUP): Delete.
37121         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
37122         * modules/string (Makefile.am): Substitute it.
37123         * lib/string.in.h (strndup): Modernize prototype.
37124
37125         getcwd: port to mingw
37126         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
37127         different from the POSIX assumptions made throughout the getcwd
37128         module; fortunately, the mingw getcwd does not need replacement.
37129         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
37130         * modules/getcwd-tests: New test.
37131         * tests/test-getcwd.c: Likewise.
37132
37133         link: fix platform bugs
37134         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
37135         * lib/link.c (link): Work around them.  Fix related mingw bug.
37136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
37137         * modules/unistd (Makefile.am): Substitute it.
37138         * lib/unistd.in.h (link): Declare replacement.
37139         * doc/posix-functions/link.texi (link): Document this.
37140         * modules/link (Depends-on): Add strdup-posix, sys_stat.
37141
37142         test-link: consolidate into single C program, test more cases
37143         * tests/test-link.sh: Delete.
37144         * tests/test-link.c: Test more error conditions.  Exposes bugs on
37145         at least Cygwin and Solaris.
37146         * modules/link-tests (Files): Remove unused file.
37147         (Depends-on): Add errno, sys_stat.
37148         (Makefile.am): Simplify.
37149
37150 2009-09-08  Bruno Haible  <bruno@clisp.org>
37151
37152         Work around towlower, towupper bug on mingw.
37153         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
37154         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
37155         * doc/posix-functions/towlower.texi: Mention the mingw bug.
37156         * doc/posix-functions/towupper.texi: Likewise.
37157         Reported by Eric Blake.
37158
37159 2009-09-08  Jim Meyering  <meyering@redhat.com>
37160
37161         build: don't try to run autoheader if we don't use it
37162         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
37163         is not used in configure.ac.
37164
37165 2009-09-08  Eric Blake  <ebb9@byu.net>
37166
37167         euidaccess: fix compilation error
37168         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
37169
37170         rawmemchr: relax license
37171         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
37172         okay.
37173         Reported by Jim Meyering.
37174
37175         mkfifoat: new module
37176         * modules/mkfifoat: New file.
37177         * lib/mkfifoat.c: Likewise.
37178         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
37179         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37180         * modules/sys_stat (Makefile.am): Use them.
37181         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
37182         * MODULES.html.sh (File system functions): Mention module.
37183         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
37184         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
37185         * modules/mkfifoat-tests: New test.
37186         * tests/test-mkfifoat.c: Likewise.
37187
37188         strchrnul: relax license
37189         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
37190         okay.
37191         Reported by Jim Meyering.
37192
37193 2009-09-08  Eric Blake  <ebb9@byu.net>
37194
37195         fstatat: fix compilation on Solaris
37196         * lib/fstatat.c (includes): Add fcntl.h.
37197         Reported by Pádraig Brady.
37198
37199 2009-09-07  Eric Blake  <ebb9@byu.net>
37200
37201         rename: modernize replacement
37202         * modules/rename (Depends-on): Add stdio.
37203         (configure.ac): Declare witness.
37204         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
37205         stdio take care of replacement.
37206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37207         * modules/stdio (Makefile.am): Substitute them.
37208         * lib/stdio.in.h (rename): Declare replacement.
37209         * lib/rename.c (includes): Allow cross-compilation to non-windows
37210         machines.
37211         * doc/posix-functions/rename.texi (rename): Improve
37212         documentation.
37213
37214         stdio: sort witness names
37215         * modules/stdio (Makefile.am): Sort replacements.
37216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37217         * lib/stdio.in.h: Likewise.
37218
37219         getcwd: minor cleanups
37220         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
37221         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
37222
37223         openat: provide more convenience names
37224         * modules/faccessat (configure.ac): Add C witness.
37225         * lib/unistd.in.h (readlinkat): Fix typo.
37226         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
37227         convenience wrappers.
37228         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
37229         wrappers in syntax checks.
37230
37231 2009-09-06  Eric Blake  <ebb9@byu.net>
37232
37233         doc: fix comments in recent patches
37234         * lib/faccessat.c: Mention correct function.
37235         * lib/fchmodat.c: Likewise.
37236         * lib/fchownat.c: Likewise.
37237         * lib/symlinkat.c: Likewise.
37238         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
37239         constants.
37240
37241         faccessat, symlinkat: continue cleanup of previous patch
37242         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
37243         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37244         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
37245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
37246         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
37247         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
37248         set.
37249
37250 2009-09-06  Bruno Haible  <bruno@clisp.org>
37251
37252         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
37253         (fstatat): Declare if GNULIB_FSTATAT is set.
37254         (mkdirat): Declare if GNULIB_MKDIRAT is set.
37255         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
37256         (unlinkat): Declare if GNULIB_UNLINKAT is set.
37257         * modules/fcntl-h (Files): Remove m4/openat.m4.
37258         * modules/sys_stat (Files): Remove m4/openat.m4.
37259         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
37260         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
37261         * modules/unistd (Files): Remove m4/openat.m4.
37262         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
37263         GNULIB_OPENAT.
37264         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
37265         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
37266         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
37267         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
37268         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
37269         gl_OPENAT_DEFAULTS.
37270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
37271         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
37272         Don't require gl_OPENAT_DEFAULTS.
37273         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
37274         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
37275         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
37276         (gl_OPENAT_DEFAULTS): Remove macro.
37277
37278 2009-09-06  Bruno Haible  <bruno@clisp.org>
37279
37280         * modules/openat (configure.ac): Remove unneeded witness.
37281
37282 2009-09-06  Bruno Haible  <bruno@clisp.org>
37283
37284         Set errno to ENOSYS when a function is entirely unsupported.
37285         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
37286         EOPNOTSUPP.
37287         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37288         * modules/chown (Depends-on): Remove errno.
37289
37290 2009-09-06  Bruno Haible  <bruno@clisp.org>
37291
37292         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
37293
37294 2009-09-06  Bruno Haible  <bruno@clisp.org>
37295
37296         * lib/sys_stat.in.h: Fix preprocessor command indentation.
37297
37298 2009-09-06  Ben Pfaff  <blp@gnu.org>
37299             Bruno Haible  <bruno@clisp.org>
37300
37301         Work around a glibc bug in strtok_r.
37302         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
37303         Undefine if UNDEFINE_STRTOK_R is set.
37304         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
37305         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37306         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
37307         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
37308         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
37309         UNDEFINE_STRTOK_R.
37310         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
37311
37312 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
37313
37314         exclude: minor fix
37315         * lib/exclude.c: Include wctype.h
37316
37317 2009-09-06  Akim Demaille  <demaille@gostai.com>
37318
37319         bootstrap: improve error message
37320         * build-aux/bootstrap (find_tool): Upon failure, report the list
37321         of candidates.
37322         Honor the initial value of the envvar.
37323
37324 2009-09-05  Eric Blake  <ebb9@byu.net>
37325
37326         symlinkat: new module
37327         * modules/symlinkat: New file.
37328         * lib/symlinkat.c: Likewise.
37329         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
37330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37331         * modules/unistd (Makefile.am): Use them.
37332         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
37333         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
37334         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
37335         * MODULES.html.sh (File system functions): Mention module.
37336         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37337         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37338         * modules/symlinkat-tests: New test.
37339         * tests/test-symlinkat.c: Likewise.
37340
37341         test-openat-safer: add more checks
37342         * tests/test-openat-safer.c (main): Check more code paths.
37343
37344 2009-09-05  Jim Meyering  <meyering@redhat.com>
37345
37346         syntax-check: detect unnecessary inclusion of openat.h
37347         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
37348
37349 2009-09-05  Bruno Haible  <bruno@clisp.org>
37350
37351         Support towlower, towupper.
37352         * doc/posix-functions/towlower.texi: Mention module wctype.
37353         * doc/posix-functions/towupper.texi: Likewise.
37354         * lib/wctype.in.h (towlower, towupper): New functions.
37355         * tests/test-wctype.c: Include stdio.h, stdlib.h.
37356         (ASSERT): New macro.
37357         (e): New variable.
37358         (main): Test also towlower, towupper. Test WEOF argument.
37359         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37360
37361 2009-09-05  Bruno Haible  <bruno@clisp.org>
37362
37363         Fix conversion behaviour when the input is invalid.
37364         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
37365         mark occurring in first pass of indirect conversion.
37366         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
37367         input.
37368         Found by clang's static analyzer.
37369
37370 2009-09-05  Bruno Haible  <bruno@clisp.org>
37371
37372         * tests/test-striconveh.c (main): Test indirect conversion on platforms
37373         where direct conversion is possible.
37374
37375 2009-09-04  Eric Blake  <ebb9@byu.net>
37376
37377         openat: fail with ENOENT on empty name
37378         * lib/openat-proc.c (openat_proc_name): Special-case the empty
37379         buffer.
37380
37381         link-follow: fix logic bug in prior patch
37382         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
37383         reversed sense of yes and no in prior patch.  Avoid confusing
37384         compilation failure with desired semantics.
37385
37386         link-follow: accomodate mingw and cross-compilation
37387         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
37388         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
37389         cross-compilation results to -1, to make linkat easier to
37390         implement when cross-compiling.  Trivially support mingw.
37391         * modules/link-follow (configure.ac): Call new name.
37392         * NEWS: Mention this.
37393
37394 2009-09-03  Eric Blake  <ebb9@byu.net>
37395
37396         faccessat: compile replacement
37397         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
37398         needed.
37399
37400         fts: fix compilation error
37401         * lib/fts.c (includes): Re-add "openat.h", for
37402         openat_needs_fchdir.
37403
37404         faccessat: new module
37405         * modules/faccessat: New file.
37406         * lib/faccessat.c: Likewise.
37407         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37409         * modules/unistd (Makefile.am): Use it.
37410         * lib/unistd.in.h (faccessat): Declare it.
37411         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
37412         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
37413         * MODULES.html.sh (File system functions): Mention it.
37414         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
37415         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37416
37417         euidaccess: prefer POSIX over non-standard implementation
37418         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
37419         * lib/euidaccess.c (euidaccess): Use it if available.
37420
37421         openat: make template easier to use
37422         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
37423         AT_FUNC_F2 to be undefined.
37424         (VALIDATE_FLAG): New macro; use it to reject bad flags.
37425         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
37426         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
37427         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
37428         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
37429         Likewise.
37430         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
37431         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
37432         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
37433         Likewise.
37434
37435         openat: declare in POSIX headers
37436         * NEWS: Mention this.
37437         * modules/openat (configure.ac): Declare witnesses.
37438         (Depends-on): Add fcntl-h, sys_stat, unistd.
37439         (Include): Mention correct headers.
37440         * modules/fcntl-h (Depends-on): Add link-warning.
37441         (Files): Add openat.m4.
37442         (Makefile.am): Substitute witnesses.
37443         * modules/sys_stat (Files, Makefile.am): Likewise.
37444         * modules/unistd (Files, Makefile.am): Likewise.
37445         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
37446         (gl_OPENAT_DEFAULTS): New macro.
37447         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
37448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
37449         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
37450         (SYS_STAT_H): Remove unused variable.
37451         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
37452         * lib/fcntl--.h (includes): Remove unneeded header.
37453         * lib/openat-safer.c (includes): Likewise.
37454         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
37455         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
37456         appropriate headers.
37457         (__OPENAT_PREFIX): Delete.
37458         * lib/fcntl.in.h (openat): Provide declaration.
37459         (AT_FDCWD): Fix Solaris bug.
37460         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
37461         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
37462         * lib/fchmodat.c (includes):  Adjust to find declaration.
37463         * lib/fchownat.c (includes): Likewise.
37464         * lib/mkdirat.c (includes): Likewise.
37465         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
37466         still visible.
37467
37468 2009-09-02  Eric Blake  <ebb9@byu.net>
37469
37470         errno: use consistently
37471         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
37472         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
37473         * lib/canonicalize.c (ELOOP): Likewise.
37474         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
37475         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
37476         * lib/lchown.c (EOPNOTSUPP): Likewise.
37477         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
37478         * lib/savewd.c (ESTALE): Likewise.
37479         * lib/settime.c (ENOSYS): Likewise.
37480         * lib/utimens.c (ENOSYS): Likewise.
37481         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
37482         * lib/chdir-safer.c (ELOOP): Likewise.
37483         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
37484         * modules/c-stack (Depends-on): Add errno.
37485         * modules/canonicalize (Depends-on): Likewise.
37486         * modules/chdir-safer (Depends-on): Likewise.
37487         * modules/fdopendir (Depends-on): Likewise.
37488         * modules/inet_ntop (Depends-on): Likewise.
37489         * modules/inet_pton (Depends-on): Likewise.
37490         * modules/lchown (Depends-on): Likewise.
37491         * modules/openat (Depends-on): Likewise.
37492         * modules/savewd (Depends-on): Likewise.
37493         * modules/settime (Depends-on): Likewise.
37494         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
37495
37496         fts: avoid leaking fds
37497         * modules/fts (Depends-on): Add cloexec.
37498         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
37499         flag.
37500
37501         fts: make directory fds more robust
37502         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
37503         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
37504
37505         backupfile, chdir-long, fts, savedir: make safer
37506         * lib/backupfile.c (includes): Use "dirent--.h", since
37507         numbered_backup can write to stderr during readdir.
37508         * lib/savedir.c (includes): Likewise.
37509         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
37510         emulation can write to stderr on failure.
37511         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
37512         * lib/getcwd.c: Document why opendir_safer is unused.
37513         * lib/glob.c: Likewise.
37514         * lib/scandir.c: Likewise.
37515         * lib/openat-proc.c: Likewise, for open_safer.
37516         * modules/backupfile (Depends-on): Add dirent-safer.
37517         * modules/savedir (Depends-on): Likewise.
37518         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
37519         * modules/chdir-long (Depends-on): Add openat-safer.
37520
37521         openat-safer: new module
37522         * modules/openat-safer: New file.
37523         * lib/openat-safer.c: Likewise.
37524         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
37525         * lib/fcntl-safer.h (openat_safer): Declare.
37526         * lib/fcntl--.h (openat): Override.
37527         * MODULES.html.sh (File descriptor based I/O): Mention it.
37528         * lib/openat.h: Add double-inclusion guards.
37529         * lib/openat.c (includes): Only include "fcntl-safer.h", not
37530         "fcntl--.h", so we can implement openat.
37531         * modules/openat-safer-tests: New test.
37532         * tests/test-openat-safer.c: New file.
37533
37534         dirent-safer: new module
37535         * modules/dirent-safer: New file.
37536         * lib/dirent--.h: Likewise.
37537         * lib/dirent-safer.h: Likewise.
37538         * lib/opendir-safer.c: Likewise.
37539         * m4/dirent-safer.m4: Likewise.
37540         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
37541         * modules/dirent-safer-tests: New test.
37542         * tests/test-dirent-safer.c: New file.
37543         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
37544
37545         fdopendir: optimize on mingw
37546         * lib/unistd.in.h (_gl_directory_name): New prototype.
37547         * lib/fchdir.c (_gl_directory_name): Implement it.
37548         (fchdir): Use it to simplify implementation.
37549         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
37550         fchdir, when available, to avoid calling [f]chdir().
37551
37552         fdopendir: split into its own module
37553         * lib/openat.c (fdopendir): Move...
37554         * lib/fdopendir.c: ...into new file.
37555         * modules/fdopendir: New module.
37556         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
37557         * modules/openat (Depends-on): Add fdopendir.
37558         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
37559         fdopendir here.
37560         * modules/savedir (Depends-on): Only need fdopendir, not full
37561         openat.
37562         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
37563         * lib/openat.h (fdopendir): Drop prototype.
37564         * lib/dirent.in.h (fdopendir): Provide prototype.
37565         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
37566         * modules/dirent (Makefile.am): Substitute them.
37567         * MODULES.html.sh (File system functions): Mention it.
37568         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
37569         * modules/fdopendir-tests: New file.
37570         * tests/test-fdopendir.c: Likewise.
37571
37572         fchdir: use more consistent macro convention
37573         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
37574         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
37575         REPLACE_FCHDIR, rather than relying on config.h macros.
37576         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
37577         inside a single make-time REPLACE_FCHDIR block, rather than using
37578         the config.h FCHDIR_REPLACEMENT.
37579         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
37580         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
37581         Manage fstat replacement.
37582         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
37583         REPLACE_FCHDIR.
37584         * modules/sys_stat (Files): Add m4/unistd_h.m4.
37585         (Makefile.am): Substitute REPLACE_FCHDIR.
37586         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
37587         FCHDIR_REPLACEMENT.
37588         * lib/dup-safer.c (dup_safer): Likewise.
37589         * lib/dup2.c (rpl_dup2): Likewise.
37590         * lib/dup3.c (rpl_dup3): Likewise.
37591         * lib/open.c (rpl_open): Likewise.
37592
37593         fchdir: simplify error handling, and support dup3
37594         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
37595         stdbool, malloc-posix, realloc-posix.
37596         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
37597         (ensure_dirs_slot): Return false on allocation failure.
37598         (rpl_dup2): Delete.
37599         (_gl_register_dup): New function.
37600         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
37601         (_gl_register_fd): Close fd on allocation failure.
37602         * lib/fcntl.in.h (_gl_register_fd): Update signature.
37603         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
37604         prototype.
37605         (rpl_dup2_fchdir): Delete prototype.
37606         * lib/open.c (open): Update caller.
37607         * lib/dup2.c (dup2): Track fchdir metadata.
37608         * lib/dup3.c (dup3): Likewise.
37609         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
37610         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
37611
37612 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37613
37614         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
37615         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
37616         don't pass arguments to AC_OUTPUT.
37617
37618 2009-09-02  Bruno Haible  <bruno@clisp.org>
37619
37620         * modules/mkdtemp (License): Relicense under LGPLv2+.
37621         Reported by Paolo Bonzini.
37622
37623 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37624
37625         Replace uses of obsolete autoconf macros in Jim's modules.
37626         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
37627         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
37628         can evoke a warning from autoconf when run with -Wobsolete
37629         enabled.  They were declared obsolete for good reasons (see
37630         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
37631         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
37632         should not continue using the deprecated macros.
37633         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
37634         obsolete Autoconf macros with modern counterparts.
37635         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37636         * m4/dos.m4 (gl_AC_DOS): Likewise.
37637         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
37638         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37639         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
37640         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
37641         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
37642         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
37643         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
37644         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
37645         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37646         Likewise.
37647         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37648         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37649         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
37650         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
37651         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37652         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37653
37654 2009-09-01  Eric Blake  <ebb9@byu.net>
37655
37656         fchdir: fix off-by-one bug in previous patch
37657         * lib/fchdir.c (rpl_fstat): Use correct bounds.
37658         (_gl_unregister_fd): Delete useless if.
37659
37660 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
37661
37662         maint.mk: sort the list of syntax-check rules
37663         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
37664         easier to get a sense of progress when the rules are run sequentially
37665         and take a long time.
37666
37667 2009-09-01  Simon Josefsson  <simon@josefsson.org>
37668
37669         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
37670         * modules/netinet_in: Likewise.
37671         * modules/sys_file: Likewise.
37672         * modules/sys_ioctl: Likewise.
37673         * modules/sys_select: Likewise.
37674         * modules/sys_socket: Likewise.
37675         * modules/sys_stat: Likewise.
37676         * modules/sys_time: Likewise.
37677         * modules/sys_times: Likewise.
37678         * modules/sys_utsname: Likewise.
37679         * modules/sys_wait: Likewise.
37680
37681 2009-09-01  Jim Meyering  <meyering@redhat.com>
37682
37683         fts: help ensure that return values are not ignored
37684         * lib/fts_.h (__GNUC_PREREQ): Define.
37685         (__attribute_warn_unused_result__): Define.
37686         (fts_children, fts_close, fts_open, fts_read): Declare with
37687         __attribute_warn_unused_result__.
37688
37689         fts: fts_close now fails also when closing a dir file descriptor fails
37690         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
37691         and propagate to caller, along with errno.
37692
37693         announce-gen: correct formatting in --help output
37694         * build-aux/announce-gen (usage): Move the one-line description in
37695         --help output "up", to where it belongs, just after Usage:.
37696
37697 2009-08-31  Eric Blake  <ebb9@byu.net>
37698
37699         fchdir: port to mingw
37700         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
37701         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
37702         opened, then use a substitute.
37703         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
37704         replacement.
37705         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
37706         (_gl_register_fd): No need to check stat if open already filters
37707         all directories.
37708         (fchdir): Fix error condition to match POSIX.
37709         * modules/fchdir (Depends-on): Add sys_stat.
37710         * doc/posix-functions/open.texi (open): Document the limitation.
37711         * modules/fchdir-tests: New file.
37712         * tests/test-fchdir.c: Likewise.
37713
37714         canonicalize: allow cross-testing from cygwin to mingw
37715         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
37716         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
37717         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
37718         Likewise.
37719         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
37720         target does not support symlinks.
37721         * tests/test-canonicalize-lgpl.sh: Likewise.
37722
37723         chown: avoid compilation warning on mingw
37724         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
37725         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
37726         mingw.
37727         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37728         * modules/chown (Depends-on): Add errno.
37729
37730 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
37731
37732         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
37733         command.
37734
37735 2009-08-31  Jim Meyering  <meyering@redhat.com>
37736
37737         canonicalize: remove useless initialization
37738         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
37739         initialization of local, "end".
37740
37741 2009-08-30  Bruno Haible  <bruno@clisp.org>
37742
37743         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
37744         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
37745         ENOSYS.
37746
37747 2009-08-30  Bruno Haible  <bruno@clisp.org>
37748
37749         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
37750         /usr/xpg4/bin/tr when it exists.
37751         * tests/test-pipe-filter-gi1.sh: Likewise.
37752
37753 2009-08-30  Bruno Haible  <bruno@clisp.org>
37754
37755         Work around deficient /usr/bin/id program on Solaris.
37756         * tests/test-file-has-acl.sh (ID): New variable.
37757         * tests/test-set-mode-acl.sh (ID): Likewise.
37758         * tests/test-copy-acl.sh (ID): Likewise.
37759         * tests/test-copy-file.sh (ID): Likewise.
37760
37761 2009-08-30  Bruno Haible  <bruno@clisp.org>
37762
37763         New module 'xstriconveh'.
37764         * lib/xstriconveh.h: New file.
37765         * lib/xstriconveh.c: New file.
37766         * modules/xstriconveh: New file.
37767
37768 2009-08-30  Bruno Haible  <bruno@clisp.org>
37769
37770         Make it easier to use mem_cd_iconveh.
37771         * lib/striconveh.h (iconveh_t): New type.
37772         (iconveh_open, iconveh_close): New declarations.
37773         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37774         with a single 'const iconveh_t *' argument.
37775         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
37776         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37777         with a single 'const iconveh_t *' argument.
37778         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
37779         * tests/test-striconveh.c (main): Update.
37780         * NEWS: Mention the change.
37781
37782 2009-08-30  Bruno Haible  <bruno@clisp.org>
37783
37784         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
37785         problem.
37786
37787 2009-08-30  Bruno Haible  <bruno@clisp.org>
37788
37789         Work around iconv_open problem on Solaris.
37790         * lib/iconv_open-solaris.gperf: New file.
37791         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
37792         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
37793         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
37794         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
37795         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
37796         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
37797
37798 2009-08-29  Jim Meyering  <meyering@redhat.com>
37799
37800         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
37801         * top/maint.mk (cvs-check): Remove target; it was just an alias
37802         to the better-named vc-diff-check.
37803         (maintainer-distcheck): Remove rule.  It was used only from
37804         the (alpha/beta/major) target, and all of its commands but one
37805         were coreutils-specific.
37806         (vc-dist): Remove rule.
37807         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
37808         Run vc-diff-check, not vc-dist.
37809         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
37810
37811 2009-08-27  Bruno Haible  <bruno@clisp.org>
37812
37813         * tests/test-bitrotate.c (main): Remove test that uses a shift count
37814         of 0.
37815
37816 2009-08-27  Bruno Haible  <bruno@clisp.org>
37817
37818         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
37819         compilers.
37820         * doc/func.texi: Document the SunPRO C bug.
37821
37822 2009-08-27  Bruno Haible  <bruno@clisp.org>
37823
37824         Fix link error on Solaris.
37825         * tests/test-parse-duration.c (xstrdup): Remove function.
37826
37827 2009-08-26  Pádraig Brady  <P@draigbrady.com>
37828
37829         ignore-value: handle pointer types, too
37830         * lib/ignore-value.h (__attribute__): Remove definition.
37831         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
37832         of a more concise and more-often effective "(void) i" statement.
37833         (ignore_ptr): New function to suppress warnings from functions that
37834         return pointers, and to make it explicit that one function doesn't
37835         handle all cases.
37836
37837 2009-08-25  Bruno Haible  <bruno@clisp.org>
37838
37839         dup2: work around a Linux bug.
37840         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
37841         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
37842         * doc/posix-functions/dup2.texi: Mention the Linux bug.
37843         Reported by Simon Josefsson.
37844
37845 2009-08-25  Jim Meyering  <meyering@redhat.com>
37846
37847         libguestfs uses gnulib
37848         * users.txt: Add libguestfs.
37849
37850 2009-08-24  Eric Blake  <ebb9@byu.net>
37851
37852         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
37853         * lib/pipe2.c (includes): Add binary-io.h.
37854         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
37855
37856 2009-08-24  Bruno Haible  <bruno@clisp.org>
37857
37858         Tolerate declared but missing accept4 syscall.
37859         * lib/accept4.c (accept4): Invoke original accept4 function first, if
37860         available.
37861         * lib/sys_socket.in.h (accept4): If the function is already present,
37862         override it.
37863         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
37864         * modules/accept4 (Makefile.am): Compile accept4.c always.
37865         Reported by Paolo Bonzini and Eric Blake.
37866
37867 2009-08-23  Bruno Haible  <bruno@clisp.org>
37868
37869         New module 'accept4'.
37870         * lib/sys_socket.in.h (accept4): New declaration.
37871         * lib/accept4.c: New file.
37872         * m4/accept4.m4: New file.
37873         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37874         GNULIB_ACCEPT4, HAVE_ACCEPT4.
37875         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
37876         HAVE_ACCEPT4.
37877         * modules/accept4: New file.
37878         * doc/glibc-functions/accept4.texi: Mention the new module.
37879
37880 2009-08-24  Jim Meyering  <meyering@redhat.com>
37881
37882         progname: also set global program_invocation_name, when possible
37883         Before this change, a libtool-enabled program that calls glibc's
37884         error function would report the program name as
37885         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
37886         * modules/progname (configure.ac): Check for a declaration of
37887         program_invocation_name.
37888         * lib/progname.c:  Include <errno.h>.
37889         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
37890         Set program_invocation_name.
37891
37892 2009-08-23  Bruno Haible  <bruno@clisp.org>
37893
37894         * lib/dup3.c: Include <string.h>.
37895
37896 2009-08-23  Bruno Haible  <bruno@clisp.org>
37897
37898         * lib/dup3.c (dup3): Test only once whether the system actually exists.
37899         * lib/pipe2.c (pipe2): Likewise.
37900         Suggested by Eric Blake.
37901
37902 2009-08-23  Bruno Haible  <bruno@clisp.org>
37903
37904         Tolerate declared but missing dup3 syscall.
37905         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
37906         * lib/unistd.in.h (dup3): If the function is already present,
37907         override it.
37908         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
37909         * modules/dup3 (Makefile.am): Compile dup3.c always.
37910         Reported by Paolo Bonzini.
37911
37912 2009-08-23  Bruno Haible  <bruno@clisp.org>
37913
37914         Tolerate declared but missing pipe2 syscall.
37915         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
37916         available.
37917         * lib/unistd.in.h (pipe2): If the function is already present,
37918         override it.
37919         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
37920         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
37921         Reported by Paolo Bonzini.
37922
37923 2009-08-23  Bruno Haible  <bruno@clisp.org>
37924
37925         * lib/pipe2.c (pipe2): Move #ifs inside function.
37926
37927 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37928
37929         quotearg: document limitations of quote_these_too
37930         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
37931         those limitations are created.
37932         * lib/quotearg.h (set_char_quoting): Document that digits and
37933         letters that are special after backslash are not permitted.
37934         (quotearg_char): Cross-reference set_char_quoting documentation.
37935
37936 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
37937
37938         quotearg: implement custom_quoting_style
37939         * lib/quotearg.c: (struct quoting_options): Add left_quote and
37940         right_quote fields.
37941         (set_custom_quoting): New public function.
37942         (quotearg_buffer_restyled): Add left_quote and right_quote
37943         arguments, handle them very much like locale quoting, and update
37944         all uses.
37945         (quotearg_n_custom): New public function.
37946         (quotearg_n_custom_mem): New public function.
37947         (quotearg_custom): New public function.
37948         (quotearg_custom_mem): New public function.
37949         * lib/quotearg.h: Prototype and document new public functions.
37950         (enum quoting_style): For escape_quoting_style and
37951         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
37952         ignored even though they're otherwise like c_quoting_style.
37953         Add custom_quoting_style member and document with comparison to
37954         clocale_quoting_style.
37955         * tests/test-quotearg.c (custom_quotes): New array.
37956         (custom_results): New array.
37957         (main): Extend to test custom quoting.
37958
37959 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37960
37961         quotearg: fix right quote escaping when it's in quote_these_too
37962         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
37963         quote, be sure to prepend only one backslash.
37964         * tests/test-quotearg.c (use_quote_double_quotes): New function.
37965         (main): Test it.
37966
37967 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37968
37969         quotearg-tests: test escaping of embedded locale quotes
37970         * tests/test-quotearg.c (struct result_strings): Add member for
37971         new input.
37972         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
37973         (inputs): Add new input.
37974         (results_g): Add expected results.
37975         (flag_results): Likewise.
37976         (locale_results): Likewise.
37977         (compare_strings): Check those.
37978
37979 2009-08-23  Bruno Haible  <bruno@clisp.org>
37980
37981         Tests for module 'dup3'.
37982         * modules/dup3-tests: New file.
37983         * tests/test-dup3.c: New file.
37984
37985         New module 'dup3'.
37986         * lib/unistd.in.h (dup3): New declaration.
37987         * lib/dup3.c: New file.
37988         * m4/dup3.m4: New file.
37989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
37990         HAVE_DUP3.
37991         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
37992         * modules/dup3: New file.
37993         * doc/glibc-functions/dup3.texi: Mention the new module.
37994
37995 2009-08-23  Bruno Haible  <bruno@clisp.org>
37996
37997         Tweak the dup2 test.
37998         * tests/test-dup2.c (main): Create the test file empty. Verify that an
37999         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
38000         the test file is still empty. Fix argument order of lseek.
38001
38002 2009-08-23  Bruno Haible  <bruno@clisp.org>
38003
38004         Avoid test link errors when the modules getopt-gnu, gettext are used.
38005         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
38006         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38007
38008 2009-08-23  Bruno Haible  <bruno@clisp.org>
38009
38010         Fix getdtablesize() on mingw.
38011         * lib/getdtablesize.c (getdtablesize): Implement differently.
38012         * lib/unistd.in.h (getdtablesize): Improve comment.
38013
38014 2009-08-23  Bruno Haible  <bruno@clisp.org>
38015
38016         New module 'mkostemp'.
38017         Based on Ulrich Drepper's 2007-08-10 change in glibc.
38018         * lib/stdlib.in.h (mksotemp): New declaration.
38019         * lib/mkostemp.c: New file, from glibc with modifications.
38020         * lib/tempname.h (GT_FILE): Remove outdated comment.
38021         (gen_tempname): Add flags argument.
38022         * lib/tempname.c (__GT_BIGFILE): Remove macro.
38023         (__GT_FILE): Map to 1.
38024         (small_open, large_open): Remove macros.
38025         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
38026         * lib/mkstemp.c (mkstemp): Update.
38027         * lib/mkdtemp.c (mkdtemp): Likewise.
38028         * m4/mkostemp.m4: New file.
38029         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
38030         HAVE_MKOSTEMP.
38031         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
38032         HAVE_MKOSTEMP.
38033         * modules/mkostemp: New file, based on modules/mkstemp.
38034         * doc/glibc-functions/mkostemp.texi: Mention the new module.
38035         * NEWS: Mention the change.
38036
38037 2009-08-23  Bruno Haible  <bruno@clisp.org>
38038
38039         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
38040         Reported by Eric Blake.
38041
38042 2009-08-23  Bruno Haible  <bruno@clisp.org>
38043
38044         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
38045         Reported by Eric Blake.
38046
38047 2009-08-23  Bruno Haible  <bruno@clisp.org>
38048
38049         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
38050         * modules/pipe2 (Depends-on): Likewise.
38051
38052 2009-08-23  Eric Blake  <ebb9@byu.net>
38053
38054         fcntl-h: add O_TTY_INIT support
38055         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
38056         * tests/test-fcntl-h.c (o): Test it.
38057         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38058
38059         fcntl-h: rename from fcntl, in preparation for fcntl(2)
38060         * modules/fcntl: Move <fcntl.h> header replacement...
38061         * modules/fcntl-h: ...to new name, so as not to collide with
38062         like-named function.
38063         * tests/test-fcntl.c: Rename...
38064         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
38065         * modules/fcntl-tests: Rename...
38066         * modules/fcntl-h-tests: ...to this.  Update test file name.
38067         * modules/chdir-long (Depends-on): Update clients.
38068         * modules/chdir-safer (Depends-on): Likewise.
38069         * modules/fcntl-safer (Depends-on): Likewise.
38070         * modules/fts (Depends-on): Likewise.
38071         * modules/mkancesdirs (Depends-on): Likewise.
38072         * modules/mkdir-p (Depends-on): Likewise.
38073         * modules/open (Depends-on): Likewise.
38074         * modules/savewd (Depends-on): Likewise.
38075         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
38076         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38077
38078 2009-08-22  Bruno Haible  <bruno@clisp.org>
38079
38080         * modules/binary-io (License): Relicense under LGPL.
38081         * modules/pipe2 (License): Likewise.
38082
38083 2009-08-22  Bruno Haible  <bruno@clisp.org>
38084
38085         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
38086         return value.
38087         * lib/pipe-filter-gi.c (filter_init): Likewise.
38088         Reported by Eric Blake.
38089
38090 2009-08-22  Bruno Haible  <bruno@clisp.org>
38091
38092         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
38093         * modules/pipe (Depends-on): Add pipe2.
38094
38095 2009-08-22  Bruno Haible  <bruno@clisp.org>
38096
38097         Tests for module 'pipe2'.
38098         * modules/pipe2-tests: New file.
38099         * tests/test-pipe2.c: New file.
38100
38101         New module 'pipe2'.
38102         * lib/unistd.in.h (pipe2): New declaration.
38103         * lib/pipe2.c: New file.
38104         * m4/pipe2.m4: New file.
38105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
38106         HAVE_PIPE2.
38107         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
38108         * modules/pipe2: New file.
38109         * doc/glibc-functions/pipe2.texi: Mention the new module.
38110
38111 2009-08-22  Bruno Haible  <bruno@clisp.org>
38112
38113         Reference some new glibc functions.
38114         * doc/glibc-functions/accept4.texi: New file.
38115         * doc/glibc-functions/dup3.texi: New file.
38116         * doc/glibc-functions/mkostemp.texi: New file.
38117         * doc/glibc-functions/pipe2.texi: New file.
38118         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
38119         (Glibc sys/socket.h): Refer to accept4.
38120         (Glibc unistd.h): Refer to dup3, pipe2.
38121         Reported by Eric Blake.
38122
38123 2009-08-22  Jim Meyering  <meyering@redhat.com>
38124             Bruno Haible  <bruno@clisp.org>
38125
38126         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
38127         This makes it so packages using automake-1.11's silent-rules option
38128         can print e.g., a single "GEN    configmake.h" line, rather than
38129         the 30+ statements that perform the job.  If you want to see the
38130         actual commands, you can still run "make V=1".
38131         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
38132         so that make output is abbreviated when those variables are defined
38133         appropriately.
38134         * modules/argz: Likewise.
38135         * modules/arpa_inet: Likewise.
38136         * modules/byteswap: Likewise.
38137         * modules/configmake: Likewise.
38138         * modules/dirent: Likewise.
38139         * modules/errno: Likewise.
38140         * modules/fcntl: Likewise.
38141         * modules/float: Likewise.
38142         * modules/fnmatch: Likewise.
38143         * modules/getopt-posix: Likewise.
38144         * modules/glob: Likewise.
38145         * modules/iconv_open: Likewise.
38146         * modules/inttypes: Likewise.
38147         * modules/localcharset: Likewise.
38148         * modules/locale: Likewise.
38149         * modules/math: Likewise.
38150         * modules/netdb: Likewise.
38151         * modules/netinet_in: Likewise.
38152         * modules/poll: Likewise.
38153         * modules/posix_spawnp-tests: Likewise.
38154         * modules/sched: Likewise.
38155         * modules/search: Likewise.
38156         * modules/selinux-h: Likewise.
38157         * modules/signal: Likewise.
38158         * modules/spawn: Likewise.
38159         * modules/stdarg: Likewise.
38160         * modules/stdbool: Likewise.
38161         * modules/stddef: Likewise.
38162         * modules/stdint: Likewise.
38163         * modules/stdio: Likewise.
38164         * modules/stdlib: Likewise.
38165         * modules/string: Likewise.
38166         * modules/strings: Likewise.
38167         * modules/sys_file: Likewise.
38168         * modules/sys_ioctl: Likewise.
38169         * modules/sys_select: Likewise.
38170         * modules/sys_socket: Likewise.
38171         * modules/sys_stat: Likewise.
38172         * modules/sys_time: Likewise.
38173         * modules/sys_times: Likewise.
38174         * modules/sys_utsname: Likewise.
38175         * modules/sys_wait: Likewise.
38176         * modules/sysexits: Likewise.
38177         * modules/time: Likewise.
38178         * modules/unistd: Likewise.
38179         * modules/wchar: Likewise.
38180         * modules/wctype: Likewise.
38181
38182 2009-08-22  Jim Meyering  <meyering@redhat.com>
38183
38184         announce-gen: detect write failure
38185         * build-aux/announce-gen: Add Coda at end.
38186         Remove equivalent-but-more-verbose block at top.
38187
38188 2009-08-19  Akim Demaille  <demaille@gostai.com>
38189
38190         bootstrap: --help to stdout.
38191         * bootstrap (usage): Don't send --help to stderr.
38192         Use a here doc instead of a long string.
38193
38194 2009-08-21  Eric Blake  <ebb9@byu.net>
38195
38196         test-popen-safer: split from test-popen
38197         * tests/test-popen.c (main): Move...
38198         * tests/test-popen.h: ...into new file.
38199         * tests/test-popen-safer2.c: New file.
38200         * modules/popen-tests (Files): Add test-popen.h.
38201         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
38202         Suggested by Bruno Haible.
38203
38204         test-fcntl-safer: split from test-open
38205         * tests/test-open.c (main): Move...
38206         * tests/test-open.h: ...into new file.
38207         * tests/test-fcntl-safer.c: New file.
38208         * modules/open-tests (Files): Add test-open.h.
38209         * modules/fcntl-safer-tests: New file.
38210         Suggested by Bruno Haible.
38211
38212         test-fopen-safer: split from test-fopen
38213         * tests/test-fopen.c (main): Move...
38214         * tests/test-fopen.h: ...into new file.
38215         * tests/test-fopen-safer.c: New file.
38216         * modules/fopen-tests (Files): Add test-fopen.h.
38217         * modules/fopen-safer-tests: New file.
38218         Suggested by Bruno Haible.
38219
38220 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38221
38222         popen-safer: test O_CLOEXEC at run-time.
38223         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
38224
38225 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38226
38227         fcntl: move more flags to the header
38228         * lib/cloexec.c: Do not define FD_CLOEXEC here.
38229         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
38230         * lib/fcntl.in.h: Do both things here.
38231
38232 2009-08-21  Jim Meyering  <meyering@redhat.com>
38233
38234         consistently remove $@-t before redirecting to it
38235         * modules/argz: Remove $@-t and $@ before redirecting to the former.
38236         * modules/alloca-opt: Likewise.
38237         * modules/byteswap: Likewise.
38238         * modules/fnmatch: Likewise.
38239         * modules/getopt-posix: Likewise.
38240         * modules/glob: Likewise.
38241         * modules/poll: Likewise.
38242         * modules/posix_spawnp-tests: Likewise.
38243         * modules/sys_socket: Likewise.
38244         * modules/sysexits: Likewise.
38245
38246 2009-08-21  Eric Blake  <ebb9@byu.net>
38247
38248         popen: simplify access to original popen
38249         * lib/popen.c (rpl_popen): No need to worry about popen being a
38250         macro.
38251         Reported by Bruno Haible.
38252
38253 2009-08-20  Eric Blake  <ebb9@byu.net>
38254
38255         build: avoid some compiler warnings
38256         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
38257         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
38258         type.
38259         (new_exclude_segment, excluded_file_pattern_p)
38260         (excluded_file_name_p): Reduce scope.
38261         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
38262         old-style declaration.
38263
38264 2009-08-20  Simon Josefsson  <simon@josefsson.org>
38265
38266         * tests/test-exclude1.sh: Handle Windows EOL.
38267         * tests/test-exclude2.sh: Likewise.
38268         * tests/test-exclude3.sh: Likewise.
38269         * tests/test-exclude4.sh: Likewise.
38270         * tests/test-exclude5.sh: Likewise.
38271         * tests/test-exclude6.sh: Likewise.
38272         * tests/test-exclude7.sh: Likewise.
38273
38274 2009-08-19  Akim Demaille  <demaille@gostai.com>
38275
38276         bootstrap: find sha1sum when named gsha1sum.
38277         * bootstrap (find_tool): New.
38278         ($SHA1SUM): New.
38279         Use it.
38280
38281 2009-08-20  Jim Meyering  <meyering@redhat.com>
38282
38283         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
38284         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
38285         expression that converts "." in a file name to "\." in the resulting
38286         regexp.  Start with a dummy statement, so that prior shell variable
38287         definitions are expanded portably.  Reported by Simon Josefsson.
38288
38289 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
38290
38291         Fix polling for writeability of a screen buffer.
38292         * lib/poll.c: Distinguish input and screen buffers for the
38293         Win32 implementation.
38294         * lib/select.c: Likewise.
38295
38296 2009-08-19  Eric Blake  <ebb9@byu.net>
38297
38298         popen-safer: prevent popen from clobbering std descriptors
38299         * modules/popen-safer: New file.
38300         * lib/popen-safer.c: Likewise.
38301         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
38302         * lib/stdio--.h (popen): Provide override.
38303         * lib/stdio-safer.h (popen_safer): Provide declaration.
38304         * tests/test-popen.c (includes): Partially test this.
38305         * modules/popen-safer-tests: New file, for more tests.
38306         * tests/test-popen-safer.c: Likewise.
38307         * MODULES.html.sh (file stream based Input/Output): Mention it.
38308
38309         tests: test some of the *-safer modules
38310         * modules/fopen-safer (Depends-on): Add fopen.
38311         * modules/fcntl-safer (Depends-on): Add fcntl.
38312         * modules/stdlib-safer (Depends-on): Add stdlib.
38313         (configure.ac): Set indicator.
38314         * modules/unistd-safer (configure.ac): Likewise.
38315         * modules/tmpfile-safer (configure.ac): Likewise.
38316         (Depends-on): Add tmpfile.
38317         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
38318         active.
38319         * tests/test-fopen.c (includes): Test safer versions when they are
38320         in use.
38321         * tests/test-open.c (includes): Likewise.
38322
38323         popen: fix cygwin 1.5 bug when stdin closed
38324         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
38325         * modules/popen: New file.
38326         * modules/popen-tests: Likewise.
38327         * tests/test-popen.c: Likewise.
38328         * m4/popen.m4: Likewise.
38329         * lib/popen.c: Likewise.
38330         * lib/stdio.in.h (popen): New declaration.
38331         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
38332         * modules/stdio (Makefile.am): Likewise.
38333         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
38334
38335 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
38336
38337         maint.mk: give full control over update-copyright exclusions
38338         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
38339         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
38340         (update-copyright): Don't force inclusion of top-level
38341         ChangeLog.  Don't force exclusion of all COPYING files, but make
38342         them the default exclusion instead.
38343
38344 2009-08-16  Bruno Haible  <bruno@clisp.org>
38345
38346         Fix test failures on Solaris 10.
38347         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
38348         tests when Solaris iconv() is used.
38349         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
38350         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
38351         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
38352         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
38353         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
38354
38355 2009-08-16  Bruno Haible  <bruno@clisp.org>
38356
38357         Fix test failures on Solaris 10.
38358         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
38359         'tr' program and pass it as first argument.
38360         * tests/test-pipe-filter-gi1.sh: Likewise.
38361         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
38362         program as first argument.
38363         * tests/test-pipe-filter-gi1.c (main): Likewise.
38364
38365 2009-08-16  Eric Blake  <ebb9@byu.net>
38366
38367         fpurge: fix previous commits
38368         * modules/fpurge (Makefile.am): Make replacement conditional,
38369         partially reverting 2007-04-29 change; missed in previous
38370         attempt.
38371         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
38372         is missing.
38373
38374 2009-08-16  Bruno Haible  <bruno@clisp.org>
38375
38376         Clarify fpurge's effect on the file position.
38377         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
38378         * tests/test-fpurge.c (main): Make a second pass for checking the file
38379         position.
38380
38381 2009-08-16  Bruno Haible  <bruno@clisp.org>
38382
38383         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
38384         declaration of fpurge is missing.
38385         * tests/test-fpurge.c (main): Check that the file has not more contents
38386         than expected. Close the file before removing it.
38387
38388 2009-08-15  Eric Blake  <ebb9@byu.net>
38389
38390         fpurge: don't wrap working cygwin implementation
38391         * lib/fpurge.c (fpurge): Fix comment typo.
38392         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
38393         1.7 to avoid replacement.
38394         * tests/test-fpurge.c (main): Enhance test.
38395
38396 2009-08-15  Eric Blake  <ebb9@byu.net>
38397         and Jim Meyering  <meyering@redhat.com>
38398
38399         test-update-copyright: skip if perl is insufficient
38400         * tests/test-update-copyright.sh: Failure to run maintainer tool
38401         should not cause testsuite failure on cygwin 1.5.
38402
38403 2009-08-14  Eric Blake  <ebb9@byu.net>
38404
38405         doc: mention more functions added in cygwin 1.7.0
38406         * doc/posix-headers/limits.texi (limits.h): Update for recent
38407         cygwin additions.
38408         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
38409         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38410         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
38411         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
38412         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
38413
38414 2009-08-14  Eric Blake  <ebb9@byu.net>
38415
38416         maint.mk: simplify update-copyright rule
38417         * top/maint.mk (update-copyright-local): Delete, and document how
38418         to do it in cfg.mk instead.
38419         (update-copyright-exclude-regexp): Delete, and document how to do
38420         it in .x-update-copyright instead.
38421         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
38422         exclude ChangeLog.
38423
38424 2009-08-14  Bruno Haible  <bruno@clisp.org>
38425
38426         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
38427
38428 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38429
38430         maint.mk: support update-copyright-env
38431         * top/maint.mk (update-copyright-env): Define place-holder.
38432         (update-copyright): Expand $(update-copyright-env) before
38433         invoking update-copyright.
38434
38435 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38436
38437         update-copyright: implement forced reformatting
38438         * build-aux/update-copyright: Implement and document
38439         UPDATE_COPYRIGHT_FORCE.
38440         * tests/test-update-copyright.sh: Test it.
38441
38442 2009-08-14  Eric Blake  <ebb9@byu.net>
38443         and Bruno Haible  <bruno@clisp.org>
38444
38445         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
38446         * tests/test-locale.c: Revert previous patch related to NULL.
38447         * tests/test-stdio.c: Likewise.
38448         * tests/test-stdlib.c: Likewise.
38449         * tests/test-string.c: Likewise.
38450         * tests/test-unistd.c: Likewise.
38451         * modules/time-tests (Depends-on): Add verify.
38452         * modules/wchar-tests (Depends-on): Likewise.
38453         * tests/test-time.c: Test for NULL compliance.
38454         * tests/test-wchar.c: Likewise.
38455         * modules/locale (Depends-on): Add stddef.
38456         * modules/stdio (Depends-on): Likewise.
38457         * modules/stdlib (Depends-on): Likewise.
38458         * modules/string (Depends-on): Likewise.
38459         * modules/time (Depends-on): Likewise.
38460         * modules/unistd (Depends-on): Likewise.
38461         * modules/wchar (Depends-on): Likewise.
38462         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
38463         * lib/stdlib.in.h (includes): Likewise.
38464         * lib/string.in.h (includes): Likewise.
38465         * lib/time.in.h (includes): Likewise.
38466         * lib/unistd.in.h (includes): Likewise.
38467         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
38468         replaced.
38469         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38470         * m4/stddef_h.m4: New file.
38471         * modules/stddef: Likewise.
38472         * lib/stddef.in.h: Likewise.
38473         * modules/stddef-tests: Likewise.
38474         * tests/test-stddef.c: Likewise.
38475         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
38476         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
38477         * doc/posix-headers/locale.texi (locale.h): Likewise.
38478         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
38479         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
38480         * doc/posix-headers/string.texi (string.h): Likewise.
38481         * doc/posix-headers/time.texi (time.h): Likewise.
38482         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
38483         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
38484
38485 2009-08-14  Eric Blake  <ebb9@byu.net>
38486
38487         doc: improve git diff of texinfo files
38488         * .gitattributes: Add rule for *.texi files, with hint on how to
38489         use it.
38490         Copied from m4, and based on a report by Bruno Haible.
38491
38492 2009-08-14  Bruno Haible  <bruno@clisp.org>
38493
38494         Disable multithread support by default on Cygwin 1.5.x for real.
38495         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
38496
38497 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38498
38499         update-copyright: much ado about intervals
38500         * build-aux/update-copyright: Implement and document
38501         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
38502         of copyright year intervals.
38503         Also, document UPDATE_COPYRIGHT_YEAR.
38504         * tests/test-update-copyright.sh: Test it.
38505
38506         update-copyright: convert 2-digit to 4-digit years
38507         * build-aux/update-copyright: Implement and document.
38508         * tests/test-update-copyright.sh: Update.
38509
38510 2009-08-14  Jim Meyering  <meyering@redhat.com>
38511
38512         test-exclude: avoid coreutils "make check" failure
38513         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
38514         just as in test-argmatch.c.
38515
38516 2009-08-13  Eric Blake  <ebb9@byu.net>
38517
38518         test-dup2: fix bad assumption
38519         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
38520         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
38521
38522         test-version-etc: fix CRLF portability issue
38523         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
38524         recognize \r.
38525         * tests/test-argp-version-etc-1.sh: Likewise.
38526
38527         getopt: update client modules
38528         * modules/argp (Depends-on): Use getopt-gnu.
38529         * modules/git-merge-changelog (Depends-on): Likewise.
38530         * modules/long-options (Depends-on): Likewise.
38531         * modules/xstrtol (Depends-on): Likewise.
38532
38533 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38534
38535         * tests/test-version-etc.sh: Don't fail on different
38536         project/version.  Don't fail on CRLF differences.  Rewrite to use
38537         multiple -e instead of multiple sed forks, suggested by Eric Blake
38538         <ebb9@byu.net>.
38539         * tests/test-argp-version-etc-1.sh: Likewise.
38540
38541 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38542
38543         * tests/test-version-etc.sh: Don't fail on different
38544         project/version.
38545
38546 2009-08-12  Bruno Haible  <bruno@clisp.org>
38547
38548         Tests for modules 'getopt-posix', 'getopt-gnu'.
38549         * modules/getopt-posix-tests: New file.
38550         * tests/test-getopt.c: New file.
38551         * tests/test-getopt.h: New file.
38552         * tests/test-getopt_long.h: New file.
38553
38554         New modules 'getopt-posix', 'getopt-gnu'.
38555         * modules/getopt-gnu: New file, renamed from modules/getopt.
38556         * modules/getopt-posix: New file.
38557         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
38558         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
38559         (gl_GETOPT): Remove macro.
38560         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
38561         Disable the test against BSD systems that declare optreset. Test
38562         against mingw bug. Test against lack of support of optional arguments
38563         on many platforms.
38564         * doc/glibc-headers/getopt.texi: Update module name and list of
38565         relevant platforms.
38566         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
38567         'getopt-gnu' and more portability problems.
38568         * NEWS: Mention the changes.
38569
38570 2009-08-12  Bruno Haible  <bruno@clisp.org>
38571
38572         Ensure that optarg etc. get declared by <unistd.h>.
38573         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
38574         AC_USE_SYSTEM_EXTENSIONS.
38575         * modules/getopt (Depends-on): Add 'extensions'.
38576
38577 2009-08-12  Bruno Haible  <bruno@clisp.org>
38578
38579         Avoid test link errors.
38580         * modules/pipe-filter-ii-tests (Makefile.am): Define
38581         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
38582         * modules/pipe-filter-gi-tests (Makefile.am): Define
38583         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
38584         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38585
38586 2009-08-12  Bruno Haible  <bruno@clisp.org>
38587
38588         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
38589         gl_GETOPT_SUBSTITUTE before.
38590         (gl_GETOPT): Use it.
38591         * m4/argp.m4 (gl_ARGP): Update.
38592         Reported by Sergey Poznyakoff.
38593
38594         * m4/getopt.m4: Reorder macros.
38595         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
38596         (gl_GETOPT_SUBSTITUTE): Remove macro.
38597
38598 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38599
38600         Minor improvement in gitlog-to-changelog
38601
38602         * build-aux/gitlog-to-changelog: New option `--format' makes
38603         output format string configurable.
38604
38605 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38606
38607         Optimize exclude: use hash tables for non-wildcard patterns.
38608
38609         * lib/exclude.c: Include hash.h and mbuiter.h
38610         (struct exclude_pattern, exclude_segment): New data types.
38611         (struct exclude): Rewrite.
38612         (fnmatch_pattern_has_wildcards): New function.
38613         (new_exclude_segment, free_exclude_segment): New functions.
38614         (excluded_file_pattern_p, excluded_file_name_p): New functions.
38615         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
38616         * lib/exclude.h (is_fnmatch_pattern): New prototype.
38617         * modules/exclude: Depend on hash and mbuiter.
38618
38619         * modules/exclude-tests: New file.
38620         * tests/test-exclude.c: New file.
38621         * tests/test-exclude1.sh: New file.
38622         * tests/test-exclude2.sh: New file.
38623         * tests/test-exclude3.sh: New file.
38624         * tests/test-exclude4.sh: New file.
38625         * tests/test-exclude5.sh: New file.
38626         * tests/test-exclude6.sh: New file.
38627         * tests/test-exclude7.sh: New file.
38628
38629 2009-08-12  Bruno Haible  <bruno@clisp.org>
38630
38631         Ensure that getopt() gets declared by <unistd.h>.
38632         * lib/unistd.in.h: Conditionally include getopt.h.
38633         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
38634         Set GNULIB_UNISTD_H_GETOPT.
38635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38636         GNULIB_UNISTD_H_GETOPT.
38637         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
38638
38639 2009-08-12  Bruno Haible  <bruno@clisp.org>
38640
38641         Clarify logic.
38642         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
38643         gl_replace_getopt instead of GETOPT_H.
38644
38645 2009-08-12  Bruno Haible  <bruno@clisp.org>
38646
38647         * m4/getopt.m4: Add comments.
38648
38649 2009-08-12  Bruno Haible  <bruno@clisp.org>
38650
38651         Disable multithread support by default on Cygwin 1.5.x.
38652         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
38653         set gl_use_threads=no if not specified otherwise.
38654
38655 2009-08-11  Bruno Haible  <bruno@clisp.org>
38656
38657         Avoid compilation error on NetBSD 5.0.
38658         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
38659         * tests/test-stdio.c: Likewise.
38660         * tests/test-stdlib.c: Likewise.
38661         * tests/test-string.c: Likewise.
38662         * tests/test-unistd.c: Likewise.
38663         Reported by Greg Troxel <gdt@ir.bbn.com>
38664         at <https://savannah.gnu.org/support/?106973>.
38665
38666 2009-08-11  Bruno Haible  <bruno@clisp.org>
38667
38668         * modules/dup2-tests (Depends-on): Remove close.
38669
38670         Undo 2009-07-19 commit.
38671         * modules/acl-tests (Depends-on): Remove close.
38672         * modules/binary-io-tests (Depends-on): Likewise.
38673         * modules/closein-tests (Depends-on): Likewise.
38674         * modules/flock-tests (Depends-on): Likewise.
38675         * modules/fsync-tests (Depends-on): Likewise.
38676         * modules/lseek-tests (Depends-on): Likewise.
38677         * modules/pipe-tests (Depends-on): Likewise.
38678         * modules/posix_spawn-tests (Depends-on): Likewise.
38679         * modules/posix_spawnp-tests (Depends-on): Likewise.
38680         * modules/stat-time-tests (Depends-on): Likewise.
38681         * modules/yesno-tests (Depends-on): Likewise.
38682
38683 2009-08-10  Bruno Haible  <bruno@clisp.org>
38684
38685         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
38686
38687 2009-08-10  Bruno Haible  <bruno@clisp.org>
38688
38689         Fix a gcc warning.
38690         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
38691
38692 2009-08-10  Bruno Haible  <bruno@clisp.org>
38693
38694         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
38695         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
38696         not only the first time.
38697         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
38698         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
38699         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
38700         is 1, not only the the first time.
38701
38702 2009-08-10  Bruno Haible  <bruno@clisp.org>
38703
38704         Make it possible to use module 'gethostname' without module 'close'.
38705         * lib/unistd.in.h (close): Evoke a link error only if
38706         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38708         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38709         * modules/unistd (Makefile.am): Substitute
38710         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38711         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
38712         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38713         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
38714         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38715         * modules/sys_ioctl (Makefile.am): Substitute
38716         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38717         * modules/socket (configure.ac): On native Windows, set
38718         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
38719         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38720         Reported by Sam Steingold <sds@gnu.org>.
38721
38722 2009-08-10  Bruno Haible  <bruno@clisp.org>
38723
38724         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
38725         * modules/ioctl (configure.ac): Likewise.
38726
38727 2009-08-10  Bruno Haible  <bruno@clisp.org>
38728
38729         Avoid collision between gnulib wrapper and libintl wrapper.
38730         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
38731         already defined in intl/printf.c.
38732         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
38733         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
38734
38735 2009-08-09  Bruno Haible  <bruno@clisp.org>
38736
38737         Make <sys/select.h> really self-contained, also on Solaris 10.
38738         * lib/sys_select.in.h: Include <string.h>.
38739         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
38740         Solaris 10 problem.
38741         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
38742         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
38743         Reported by Jim Meyering.
38744
38745 2009-08-09  Bruno Haible  <bruno@clisp.org>
38746
38747         Avoid warnings from 'aclocal' that are due to a use of macro name
38748         AM_XGETTEXT_OPTION that is not defined in automake.
38749         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
38750         automake.
38751         * modules/error (configure.ac): Likewise.
38752         * modules/propername (configure.ac): Likewise.
38753         * modules/vasprintf (configure.ac): Likewise.
38754         * modules/verror (configure.ac): Likewise.
38755         * modules/xprintf (configure.ac): Likewise.
38756         * modules/xvasprintf (configure.ac): Likewise.
38757
38758 2009-08-08  Bruno Haible  <bruno@clisp.org>
38759
38760         Avoid compilation error in C++ mode.
38761         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
38762         Reported by Sam Steingold <sds@gnu.org>.
38763
38764 2009-08-08  Bruno Haible  <bruno@clisp.org>
38765
38766         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
38767         for the various Unix platforms.
38768         * doc/posix-headers/limits.texi: Update platforms list regarding
38769         HOST_NAME_MAX.
38770         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38771
38772 2009-08-07  Jim Meyering  <meyering@redhat.com>
38773
38774         selinux-at: fix typo in a comment
38775         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
38776         Spotted by Paolo Bonzini.
38777
38778         selinux-at: remove redundant m4 code, add documentation
38779         * modules/selinux-at (configure.ac): Remove redundant code.
38780         LIB_SELINUX is already set via the dependent module, selinux-h.
38781         (Include): Add quotes around selinux-at.h.
38782         * lib/selinux-at.h: Add documentation.
38783         Reported by Bruno Haible in
38784         http://marc.info/?l=gnulib-bug&m=124958988300749
38785
38786 2009-08-07  Bruno Haible  <bruno@clisp.org>
38787
38788         Avoid link error on MacOS X 10.3 and 10.4.
38789         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
38790         on non-ELF systems.
38791         * lib/argp-pv.c (argp_program_version): Likewise.
38792         Reported by Simon Josefsson.
38793
38794 2009-08-07  Simon Josefsson  <simon@josefsson.org>
38795
38796         * tests/test-version-etc.sh: Use $EXEEXT.
38797
38798 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
38799
38800         update-copyright: update documentation to point to maint.mk
38801         * build-aux/update-copyright: Here.
38802
38803 2009-08-06  Jim Meyering  <meyering@redhat.com>
38804
38805         maint.mk: support update-copyright-local
38806         * top/maint.mk (update-copyright-local): Define place-holder.
38807         (update-copyright): Depend on $(update-copyright-local).
38808
38809 2009-08-06  Jim Meyering  <meyering@redhat.com>
38810
38811         selinux-at: new module
38812         Initially written for coreutils, this module will soon be
38813         used by findutils, too.
38814         * MODULES.html.sh [Misc]: Add selinux-at.
38815         * lib/selinux-at.h: New file, from coreutils.
38816         * lib/selinux-at.c: Likewise.
38817         * modules/selinux-at: Likewise.
38818         (License): Change from LGPL to GPL, since it depends
38819         on the GPL'd openat module.
38820
38821         doc: update README
38822         * README: Remove references to cogito.
38823         Remove cvs-repo-updating instructions from 2007.
38824         Don't imply that CVS is better if you have limited disk space.
38825
38826 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38827
38828         update-copyright: support C-style comments
38829         * build-aux/update-copyright: Implement and document.
38830         * tests/test-update-copyright.sh: Test.
38831
38832 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38833
38834         update-copyright: support omitted "(C)"
38835         * build-aux/update-copyright: Implement and document.  Also,
38836         allow variable whitespace before "(C)".
38837         * tests/test-update-copyright.sh: Test.
38838
38839 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38840
38841         update-copyright: don't trip on non-FSF copyright statements
38842         * build-aux/update-copyright: Fix so that the first correctly
38843         formatted FSF copyright statement is recognized no matter what
38844         appears before it.  Update documentation.
38845         * tests/test-update-copyright.sh: Test that.
38846
38847 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38848
38849         update-copyright: clean up code a little
38850         * build-aux/update-copyright: Append "_re" to the name of any
38851         variable holding a regular expression.
38852         Replace "old" and "new" with "stmt" in variable names.
38853         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
38854         handled correctly.
38855         Format code more consistently.
38856
38857 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38858
38859         update-copyright-tests: improve portability
38860         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
38861         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
38862
38863 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38864
38865         update-copyright: support @copyright{} and &copy;
38866         * build-aux/update-copyright: Implement and document.
38867         * tests/test-update-copyright.sh: Test.
38868
38869 2009-08-04  Jim Meyering  <meyering@redhat.com>
38870
38871         update-copyright-tests: correctly test EOL=\r\n handling
38872         * tests/test-update-copyright.sh: Put \r at the end of some lines
38873         for the dos-eol tests.  Based on a patch by Joel E. Denny.
38874
38875         maint.mk: make update-copyright exclusion list more configurable
38876         * top/maint.mk (update-copyright): Default to excluding COPYING,
38877         but allow an override, in case someone does want to update that file.
38878
38879         maint.mk: don't update copyright date in COPYING
38880         * top/maint.mk (update-copyright): Exclude COPYING.
38881
38882         maint.mk: add a copyright-updating rule
38883         * top/maint.mk (update-copyright): New rule.
38884         Derived from coreutils/Makefile.am.
38885
38886         update-copyright: rename some variables
38887         * build-aux/update-copyright: Rename a few variables for clarity.
38888         Tweak syntax.  List Joel E. Denny as coauthor.
38889
38890 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38891
38892         update-copyright: fix bug for 2-digit last year and add tests
38893         * build-aux/update-copyright: Fix bug.
38894         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
38895         specified.
38896         * modules/update-copyright-tests: New
38897         * tests/test-update-copyright.sh: New.
38898
38899 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38900
38901         update-copyright: handle leading tabs in line prefix
38902         * build-aux/update-copyright: Count leading tabs as 8 spaces
38903         when computing margin.  This helps with the formatting of
38904         ChangeLogs, for example.
38905         Fix documentation a little.
38906
38907 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38908
38909         update-copyright: support EOL=\r\n
38910         * build-aux/update-copyright: Implement that.
38911
38912 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38913
38914         update-copyright: automatically format copyright statements
38915         * build-aux/update-copyright: Implement that.
38916         Also, be a little more predictable and safer by always failing
38917         when the full copyright format is not perfectly recognized as an
38918         unbroken whole.  Discussed at
38919         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
38920         Rewrite documentation.
38921
38922 2009-08-03  Bruno Haible  <bruno@clisp.org>
38923
38924         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
38925
38926 2009-08-02  Bruno Haible  <bruno@clisp.org>
38927
38928         Tests for module 'uname'.
38929         * modules/uname-tests: New file.
38930         * tests/test-uname.c: New file.
38931
38932         New module 'uname'.
38933         * lib/uname.c: New file.
38934         * m4/uname.m4: New file.
38935         * modules/uname: New file.
38936         * doc/posix-functions/uname.texi: Mention the new module.
38937
38938 2009-08-02  Bruno Haible  <bruno@clisp.org>
38939
38940         Tests for module 'sys_utsname'.
38941         * modules/sys_utsname-tests: New file.
38942         * tests/test-sys_utsname.c: New file.
38943
38944         New module 'sys_utsname'.
38945         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
38946         * m4/sys_utsname_h.m4: New file.
38947         * modules/sys_utsname: New file.
38948         * doc/posix-headers/sys_utsname.texi: Mention the new module.
38949
38950 2009-08-02  Bruno Haible  <bruno@clisp.org>
38951
38952         Implicitly initialize the sockets library.
38953         * lib/gethostname.c: Include sockets.h.
38954         (rpl_gethostname): Invoke gl_sockets_startup.
38955         * lib/socket.c: Include sockets.h.
38956         (rpl_socket): Invoke gl_sockets_startup.
38957         * modules/gethostname (Depends-on): Add sockets.
38958         * modules/socket (Depends-on): Likewise.
38959         * tests/test-poll.c: Don't include sockets.h.
38960         (main): Don't invoke gl_sockets_startup.
38961         * tests/test-select.c: Don't include sockets.h.
38962         (main): Don't invoke gl_sockets_startup.
38963
38964 2009-08-02  Bruno Haible  <bruno@clisp.org>
38965
38966         Allow multiple calls to gl_sockets_startup.
38967         * lib/sockets.c (initialized_sockets_version): New variable.
38968         (gl_sockets_startup): Do nothing if already called for this or a higher
38969         version.
38970         (gl_sockets_cleanup): Reset initialized_sockets_version.
38971
38972 2009-08-03  Simon Josefsson  <simon@josefsson.org>
38973
38974         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
38975         different project/version.
38976
38977 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
38978             Bruno Haible  <bruno@clisp.org>
38979
38980         Tests for module 'pipe-filter-gi'.
38981         * modules/pipe-filter-gi-tests: New file.
38982         * tests/test-pipe-filter-gi1.sh: New file.
38983         * tests/test-pipe-filter-gi1.c: New file.
38984         * tests/test-pipe-filter-gi2.sh: New file.
38985         * tests/test-pipe-filter-gi2-main.c: New file.
38986         * tests/test-pipe-filter-gi2-child.c: New file.
38987
38988         New module 'pipe-filter-gi'.
38989         * lib/pipe-filter-gi.c: New file.
38990         * modules/pipe-filter-gi: New file.
38991
38992 2009-08-02  Bruno Haible  <bruno@clisp.org>
38993             Paolo Bonzini  <bonzini@gnu.org>
38994
38995         Tests for module 'pipe-filter-ii'.
38996         * modules/pipe-filter-ii-tests: New file.
38997         * tests/test-pipe-filter-ii1.sh: New file.
38998         * tests/test-pipe-filter-ii1.c: New file.
38999         * tests/test-pipe-filter-ii2.sh: New file.
39000         * tests/test-pipe-filter-ii2-main.c: New file.
39001         * tests/test-pipe-filter-ii2-child.c: New file.
39002
39003         New module 'pipe-filter-ii'.
39004         * lib/pipe-filter.h: New file.
39005         * lib/pipe-filter-ii.c: New file.
39006         * lib/pipe-filter-aux.h: New file.
39007         * modules/pipe-filter-ii: New file.
39008
39009 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39010
39011         * lib/gc-libgcrypt.c: Change copyright to FSF.
39012         * lib/gc-gnulib.c: Likewise.
39013
39014 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
39015
39016         * lib/gethostname.c: Include limits.h.
39017
39018 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39019             Bruno Haible  <bruno@clisp.org>
39020
39021         Ensure HOST_NAME_MAX as part of the gethostname module.
39022         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
39023         define also HOST_NAME_MAX.
39024         * tests/test-gethostname.c: Include <limits.h>.
39025         (main): Check also HOST_NAME_MAX.
39026         * doc/posix-headers/limits.texi: Document the mingw problem.
39027
39028 2009-08-02  Bruno Haible  <bruno@clisp.org>
39029
39030         * lib/gethostname.c (gethostname): Fix handling of large len argument.
39031         Add comments.
39032
39033 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39034
39035         * lib/gethostname.c: Add Windows wrapper.
39036         * m4/gethostname.m4: Look for gethostname in -lws2_32.
39037         * modules/gethostname: Depend on sys_socket & errno, for also
39038         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
39039         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
39040
39041 2009-07-31  Jim Meyering  <meyering@redhat.com>
39042
39043         getloadavg: fix symbol name in comment
39044         * lib/getloadavg.c: Correct a typo I introduced when adding
39045         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
39046         Matt Kraai spotted the problem.
39047
39048 2009-07-29  Matt Kraai  <mkraai@beckman.com>
39049
39050         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
39051         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
39052         code also if ! defined N_NAME_POINTER.
39053         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
39054         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
39055         but the n_name member is a 12-byte array.
39056
39057 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
39058
39059         update-copyright: generalize comment handling
39060         * build-aux/update-copyright: Handle copyright statements
39061         within more comment styles.
39062         Document usage.
39063         Report any file with an external copyright holder or parse failure.
39064
39065 2009-07-29  Jim Meyering  <meyering@redhat.com>
39066
39067         mktime: correct setting of REPLACE_MKTIME
39068         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
39069
39070         update-copyright: new module
39071         * modules/update-copyright: New file.
39072         * build-aux/update-copyright: New file.
39073         * MODULES.html.sh (maint+release support): Add update-copyright.
39074
39075 2009-07-27  Bruno Haible  <bruno@clisp.org>
39076
39077         Fix compilation error when <ctime> is used and mktime is replaced.
39078         * lib/time.in.h (mktime): New declaration.
39079         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
39080         REPLACE_MKTIME instead of defining mktime in config.h.
39081         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
39082         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
39083         Reported by Ross McFarland <rwmcfa1@neces.com>.
39084
39085 2009-07-27  Bruno Haible  <bruno@clisp.org>
39086
39087         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
39088         Reported by Matt Kraai <mkraai@beckman.com>.
39089
39090 2009-07-25  Jim Meyering  <meyering@redhat.com>
39091
39092         maint.mk: avoid warnings about missing files
39093         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
39094         diagnostic when .prev-version does not exist.
39095         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
39096         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
39097         nonexistent cfg.mk.
39098         Suggestions from Simon Josefsson.
39099
39100 2009-07-25  Bruno Haible  <bruno@clisp.org>
39101
39102         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
39103         defined as macros. Needed on QNX 6.4.1.
39104         Reported by Matt Kraai <mkraai@beckman.com>.
39105
39106 2009-07-23  Jim Meyering  <meyering@redhat.com>
39107
39108         maint.mk: invoke "make dist" with a working value of XZ_OPT
39109         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
39110
39111 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
39112
39113         Make fseeko.c compile on QNX.
39114         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
39115
39116 2009-07-22  Peter Simons  <simons@cryp.to>
39117
39118         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
39119         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
39120         * lib/md4.h: Likewise.
39121         * lib/md5.h: Likewise.
39122         * lib/sha1.h: Likewise.
39123         * lib/sha256.h: Likewise.
39124         * lib/sha512.h: Likewise.
39125
39126         tests-sha1: don't assign literal string to 'char *' variable
39127         * tests/test-sha1.c (main): Declare locals with "const" to match
39128         attributes of the right hand side.
39129
39130 2009-07-21  Eric Blake  <ebb9@byu.net>
39131
39132         dup2: fix more mingw problems
39133         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
39134         fd to itself.
39135         * doc/posix-functions/dup2.texi (dup2): Document the bug.
39136         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
39137         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
39138         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
39139         care of mingw bugs.
39140
39141 2009-07-21  Jim Meyering  <meyering@redhat.com>
39142
39143         vc-list-files: avoid failure when /bin/sh is dash
39144         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
39145         On some Debian based systems, /bin/sh is a symlink to dash, and running
39146         this command would omit the "/" following each 'tests' prefix:
39147           dash -x build-aux/vc-list-files -C . tests
39148         That is because bash and dash work differently:
39149           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
39150           bash ok
39151           dash odd
39152
39153 2009-07-21  Eric Blake  <ebb9@byu.net>
39154
39155         dup2-tests: test previous patch
39156         * modules/dup2-tests: New file.
39157         * tests/test-dup2.c: Likewise.
39158         * tests/test-open.c (main): Avoid unspecified behavior.
39159         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
39160         test.
39161
39162         dup2: work around mingw and cygwin 1.5 bug
39163         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
39164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39165         * modules/unistd (Makefile.am): Substitute it.
39166         * lib/unistd.in.h (dup2): Declare the replacement.
39167         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
39168         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
39169         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
39170         * modules/execute (Depends-on): Add dup2.
39171         * modules/fseterr (Depends-on): Likewise.
39172         * modules/pipe (Depends-on): Likewise.
39173         * modules/posix_spawn-internal (Depends-on): Likewise.
39174
39175 2009-07-21  Bruno Haible  <bruno@clisp.org>
39176
39177         * modules/.gitattributes: New file.
39178
39179 2009-07-20  Bruno Haible  <bruno@clisp.org>
39180
39181         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
39182         (main): Use it.
39183
39184 2009-07-20  Eric Blake  <ebb9@byu.net>
39185
39186         test-pipe: make a bit more robust.
39187         * tests/test-pipe.c (myerr): Allow error messages regardless of
39188         what we do to stderr.
39189         (test_pipe): Rearrange to avoid deadlock.
39190         (child_main): Try a larger read, to ensure we avoided deadlock.
39191         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
39192         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
39193         if misused.
39194
39195 2009-07-19  Jim Meyering  <meyering@redhat.com>
39196
39197         fts: avoid false-positive cycle-detection
39198         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
39199         for each new command line argument.
39200
39201 2009-07-19  Bruno Haible  <bruno@clisp.org>
39202
39203         Fix build error on mingw with the modules sys_select and unistd.
39204         * modules/acl-tests (Depends-on): Add close.
39205         * modules/binary-io-tests (Depends-on): Likewise.
39206         * modules/closein-tests (Depends-on): Likewise.
39207         * modules/flock-tests (Depends-on): Likewise.
39208         * modules/fsync-tests (Depends-on): Likewise.
39209         * modules/lseek-tests (Depends-on): Likewise.
39210         * modules/pipe-tests (Depends-on): Likewise.
39211         * modules/posix_spawn-tests (Depends-on): Likewise.
39212         * modules/posix_spawnp-tests (Depends-on): Likewise.
39213         * modules/stat-time-tests (Depends-on): Likewise.
39214         * modules/yesno-tests (Depends-on): Likewise.
39215
39216 2009-07-19  Bruno Haible  <bruno@clisp.org>
39217
39218         Unify conditionals.
39219         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
39220         macros, not at the compiler macros.
39221         * lib/pipe.c: Likewise.
39222         * lib/execute.c: Likewise.
39223         * lib/spawni.c: Likewise.
39224
39225 2009-07-19  Bruno Haible  <bruno@clisp.org>
39226
39227         Fix handling of closed stdin/stdout/stderr on mingw.
39228         * lib/w32spawn.h: Include unistd.h.
39229         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
39230         file descriptor with O_NOINHERIT flag.
39231         (fd_safer_noinherit): New function, based on fd-safer.c.
39232         (dup_safer_noinherit): New function, based on dup-safer.c.
39233         (undup_safer_noinherit): New function.
39234         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
39235         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
39236         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
39237         instead of fd_safer.
39238         * tests/test-pipe.c: Include <windows.h>.
39239         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
39240         result.
39241
39242         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
39243         from main.
39244         (test_pipe): Pass an extra argument for disambiguation.
39245         (main): Invoke parent_main or child_main.
39246
39247         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
39248         consistently.
39249
39250 2009-07-18  Eric Blake  <ebb9@byu.net>
39251
39252         test-pipe: fix mingw build
39253         * tests/test-pipe.c (main): Avoid fcntl on mingw.
39254
39255 2009-07-18  Bruno Haible  <bruno@clisp.org>
39256
39257         * modules/pipe-tests (Makefile.am): Fix typo.
39258
39259 2009-07-18  Eric Blake  <ebb9@byu.net>
39260
39261         error: fix mingw build
39262         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
39263         Reported by Bruno Haible.
39264
39265         error: avoid undefined use of stdout
39266         * lib/error.c (error, error_at_line): Check that fd 1 is open
39267         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
39268         is handling faults and the close_stdout module wants to report the
39269         detection of closed stdout as an error.
39270
39271 2009-07-17  Eric Blake  <ebb9@byu.net>
39272
39273         pipe: be robust in face of closed fds
39274         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
39275         should cause child to misbehave.
39276         * modules/pipe-tests: New module.
39277         * tests/test-pipe.c: New file.
39278         * tests/test-pipe.sh: New file.
39279         Reported by Akim Demaille.
39280
39281 2009-07-14  Bruno Haible  <bruno@clisp.org>
39282
39283         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
39284         Reported by anonymous kc.
39285
39286 2009-07-07  Jim Meyering  <meyering@redhat.com>
39287
39288         maint.mk: don't look for translatable strings in *.m4 or *.mk
39289         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
39290         when searching for translatable strings.
39291
39292 2009-07-05  Jim Meyering  <meyering@redhat.com>
39293
39294         remove superfluous parentheses in STREQ definition
39295         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
39296         * lib/getugroups.c (STREQ): Likewise.
39297         * lib/fnmatch.c (STREQ): Likewise.
39298         Spotted by Bruno Haible.
39299
39300 2009-07-04  Jim Meyering  <meyering@redhat.com>
39301
39302         argv-iter: new module
39303         * MODULES.html.sh: Add argv-iter.
39304         * lib/argv-iter.c, lib/argv-iter.h: New files.
39305         * modules/argv-iter: New file.
39306         * modules/argv-iter-tests: New file.
39307         * tests/test-argv-iter.c: Test it.
39308
39309 2009-07-04  Bruno Haible  <bruno@clisp.org>
39310
39311         Fix assertion.
39312         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
39313         contains more exact copies of a given entry than file2, leave the extra
39314         copies unpaired rather than aborting.
39315         Reported by Eric Blake.
39316
39317 2009-07-02  Bruno Haible  <bruno@clisp.org>
39318
39319         Speedup git-merge-changelog for git cherry-pick.
39320         * lib/git-merge-changelog.c (struct entries_mapping): New type.
39321         (entries_mapping_get): New function, extracted from compute_mapping.
39322         (entries_mapping_reverse_get): New function.
39323         (compute_mapping): Add a 'full' argument. Return the result in a
39324         'struct entries_mapping'.
39325         (main): Update. Access the mappings through entries_mapping_get.
39326         Reported by Eric Blake.
39327
39328 2009-07-02  Bruno Haible  <bruno@clisp.org>
39329
39330         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
39331         best_i.
39332
39333 2009-07-02  Bruno Haible  <bruno@clisp.org>
39334
39335         Speed up approximate search for matching ChangeLog entries.
39336         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
39337         argument. Call fstrcmp_bounded instead of fstrcmp.
39338         (compute_mapping, try_split_merged_entry, main): Update callers.
39339
39340 2009-07-02  Bruno Haible  <bruno@clisp.org>
39341
39342         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
39343
39344 2009-06-30  Bruno Haible  <bruno@clisp.org>
39345
39346         Reduce the number of uc_is_cased calls.
39347         * lib/unicase.h (casing_suffix_context_t): Add
39348         'first_char_except_ignorable' field.
39349         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
39350         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
39351         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
39352         Update initializer.
39353         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
39354         case-ignorable characters.
39355         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
39356         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
39357         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
39358         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
39359         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
39360
39361 2009-06-30  Bruno Haible  <bruno@clisp.org>
39362
39363         Tests for module 'unicase/ignorable'.
39364         * modules/unicase/ignorable-tests: New file.
39365         * tests/unicase/test-ignorable.c: New file, generated by
39366         gen-uni-tables.
39367
39368         Tests for module 'unicase/cased'.
39369         * modules/unicase/cased-tests: New file.
39370         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
39371         * tests/unicase/test-predicate-part1.h: New file, derived from
39372         tests/unictype/test-predicate-part1.h.
39373         * tests/unicase/test-predicate-part2.h: New file, same as
39374         tests/unictype/test-predicate-part2.h.
39375
39376         Fix evaluation of "Before C" condition of FINAL_SIGMA.
39377         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
39378         (output_casing_properties): New function.
39379         (main): Call it.
39380         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
39381         * lib/unicase/cased.c: Include unictype/bitmap.h.
39382         (uc_is_cased): Define through a bitmap lookup.
39383         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
39384         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
39385         (uc_is_case_ignorable): Define through a bitmap lookup.
39386         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
39387         lib/unictype/bitmap.h.
39388         (Depends-on): Add inline. Clean up.
39389         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
39390         lib/unictype/bitmap.h.
39391         (Depends-on): Add inline. Clean up.
39392         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
39393         recognition.
39394         * tests/unicase/test-u16-tolower.c (main): Likewise.
39395         * tests/unicase/test-u32-tolower.c (main): Likewise.
39396
39397 2009-06-30  Bruno Haible  <bruno@clisp.org>
39398
39399         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
39400         * lib/unicase/u16-casemap.c: Likewise.
39401         * lib/unicase/u32-casemap.c: Likewise.
39402
39403 2009-06-29  Bruno Haible  <bruno@clisp.org>
39404
39405         Define u32_casefold as a wrapper around u32_ct_casefold.
39406         * lib/unicase/u32-casefold.c: Update.
39407         * modules/unicase/u32-casefold (Depends-on): Add
39408         unicase/u32-ct-casefold, unicase/empty-prefix-context,
39409         unicase/empty-suffix-context. Clean up.
39410
39411         Define u16_casefold as a wrapper around u16_ct_casefold.
39412         * lib/unicase/u16-casefold.c: Update.
39413         * modules/unicase/u16-casefold (Depends-on): Add
39414         unicase/u16-ct-casefold, unicase/empty-prefix-context,
39415         unicase/empty-suffix-context. Clean up.
39416
39417         Define u8_casefold as a wrapper around u8_ct_casefold.
39418         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
39419         * lib/unicase/u8-casefold.c: Update.
39420         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
39421         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39422
39423         Define u32_totitle as a wrapper around u32_ct_totitle.
39424         * lib/unicase/u32-totitle.c: Update.
39425         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
39426         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39427
39428         Define u16_totitle as a wrapper around u16_ct_totitle.
39429         * lib/unicase/u16-totitle.c: Update.
39430         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
39431         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39432
39433         Define u8_totitle as a wrapper around u8_ct_totitle.
39434         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
39435         functions.
39436         (FUNC): Delegate to U_CT_TOTITLE.
39437         * lib/unicase/u8-totitle.c: Update.
39438         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
39439         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39440
39441         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
39442         invocation.
39443         * modules/unicase/u32-tolower (Depends-on): Add
39444         unicase/empty-prefix-context, unicase/empty-suffix-context.
39445
39446         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
39447         invocation.
39448         * modules/unicase/u16-tolower (Depends-on): Add
39449         unicase/empty-prefix-context, unicase/empty-suffix-context.
39450
39451         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
39452         * modules/unicase/u8-tolower (Depends-on): Add
39453         unicase/empty-prefix-context, unicase/empty-suffix-context.
39454
39455         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
39456         invocation.
39457         * modules/unicase/u32-toupper (Depends-on): Add
39458         unicase/empty-prefix-context, unicase/empty-suffix-context.
39459
39460         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
39461         invocation.
39462         * modules/unicase/u16-toupper (Depends-on): Add
39463         unicase/empty-prefix-context, unicase/empty-suffix-context.
39464
39465         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
39466         * modules/unicase/u8-toupper (Depends-on): Add
39467         unicase/empty-prefix-context, unicase/empty-suffix-context.
39468
39469         New module 'unicase/u32-ct-casefold'.
39470         * lib/unicase/u32-ct-casefold.c: New file.
39471         * modules/unicase/u32-ct-casefold: New file.
39472
39473         New module 'unicase/u16-ct-casefold'.
39474         * lib/unicase/u16-ct-casefold.c: New file.
39475         * modules/unicase/u16-ct-casefold: New file.
39476
39477         New module 'unicase/u8-ct-casefold'.
39478         * lib/unicase/u8-ct-casefold.c: New file.
39479         * lib/unicase/u-ct-casefold.h: New file, derived from
39480         lib/unicase/u-casefold.h.
39481         * modules/unicase/u8-ct-casefold: New file.
39482
39483         New module 'unicase/u32-ct-totitle'.
39484         * lib/unicase/u32-ct-totitle.c: New file.
39485         * modules/unicase/u32-ct-totitle: New file.
39486
39487         New module 'unicase/u16-ct-totitle'.
39488         * lib/unicase/u16-ct-totitle.c: New file.
39489         * modules/unicase/u16-ct-totitle: New file.
39490
39491         New module 'unicase/u8-ct-totitle'.
39492         * lib/unicase/u8-ct-totitle.c: New file.
39493         * lib/unicase/u-ct-totitle.h: New file, derived from
39494         lib/unicase/u-totitle.h.
39495         * modules/unicase/u8-ct-totitle: New file.
39496
39497         New module 'unicase/u32-ct-tolower'.
39498         * lib/unicase/u32-ct-tolower.c: New file.
39499         * modules/unicase/u32-ct-tolower: New file.
39500
39501         New module 'unicase/u16-ct-tolower'.
39502         * lib/unicase/u16-ct-tolower.c: New file.
39503         * modules/unicase/u16-ct-tolower: New file.
39504
39505         New module 'unicase/u8-ct-tolower'.
39506         * lib/unicase/u8-ct-tolower.c: New file.
39507         * modules/unicase/u8-ct-tolower: New file.
39508
39509         New module 'unicase/u32-ct-toupper'.
39510         * lib/unicase/u32-ct-toupper.c: New file.
39511         * modules/unicase/u32-ct-toupper: New file.
39512
39513         New module 'unicase/u16-ct-toupper'.
39514         * lib/unicase/u16-ct-toupper.c: New file.
39515         * modules/unicase/u16-ct-toupper: New file.
39516
39517         New module 'unicase/u8-ct-toupper'.
39518         * lib/unicase/u8-ct-toupper.c: New file.
39519         * modules/unicase/u8-ct-toupper: New file.
39520
39521         Add context arguments to u*_casemap functions.
39522         * lib/unicase/unicasemap.h: Include unicase.h.
39523         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
39524         suffix_context arguments.
39525         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
39526         functions.
39527         (FUNC): Add prefix_context and suffix_context arguments. Use
39528         uc_is_cased and uc_is_case_ignorable.
39529         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
39530         * lib/unicase/u16-casemap.c: Likewise.
39531         * lib/unicase/u32-casemap.c: Likewise.
39532         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
39533         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39534         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
39535         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39536         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
39537         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39538
39539         New module 'unicase/u32-suffix-context'.
39540         * lib/unicase/u32-suffix-context.c: New file.
39541         * modules/unicase/u32-suffix-context: New file.
39542
39543         New module 'unicase/u16-suffix-context'.
39544         * lib/unicase/u16-suffix-context.c: New file.
39545         * modules/unicase/u16-suffix-context: New file.
39546
39547         New module 'unicase/u8-suffix-context'.
39548         * lib/unicase/u8-suffix-context.c: New file.
39549         * lib/unicase/u-suffix-context.h: New file.
39550         * modules/unicase/u8-suffix-context: New file.
39551
39552         New module 'unicase/empty-suffix-context'.
39553         * lib/unicase/empty-suffix-context.c: New file.
39554         * modules/unicase/empty-suffix-context: New file.
39555
39556         New module 'unicase/u32-prefix-context'.
39557         * lib/unicase/u32-prefix-context.c: New file.
39558         * modules/unicase/u32-prefix-context: New file.
39559
39560         New module 'unicase/u16-prefix-context'.
39561         * lib/unicase/u16-prefix-context.c: New file.
39562         * modules/unicase/u16-prefix-context: New file.
39563
39564         New module 'unicase/u8-prefix-context'.
39565         * lib/unicase/u8-prefix-context.c: New file.
39566         * lib/unicase/u-prefix-context.h: New file.
39567         * lib/unicase/context.h: New file.
39568         * modules/unicase/u8-prefix-context: New file.
39569
39570         New module 'unicase/empty-prefix-context'.
39571         * lib/unicase/empty-prefix-context.c: New file.
39572         * modules/unicase/empty-prefix-context: New file.
39573
39574         New module 'unicase/ignorable'.
39575         * lib/unicase/ignorable.c: New file.
39576         * modules/unicase/ignorable: New file.
39577
39578         New module 'unicase/cased'.
39579         * lib/unicase/caseprop.h: New file.
39580         * lib/unicase/cased.c: New file.
39581         * modules/unicase/cased: New file.
39582
39583         New functions for case mapping of substrings.
39584         * lib/unicase.h (casing_prefix_context_t): New type.
39585         (unicase_empty_prefix_context): New variable.
39586         (u8_casing_prefix_context, u16_casing_prefix_context,
39587         u32_casing_prefix_context, u8_casing_prefixes_context,
39588         u16_casing_prefixes_context, u32_casing_prefixes_context): New
39589         declarations.
39590         (casing_suffix_context_t): New type.
39591         (unicase_empty_suffix_context): New variable.
39592         (u8_casing_suffix_context, u16_casing_suffix_context,
39593         u32_casing_suffix_context, u8_casing_suffixes_context,
39594         u16_casing_suffixes_context, u32_casing_suffixes_context,
39595         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
39596         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
39597         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
39598         declarations.
39599
39600 2009-06-28  Jim Meyering  <meyering@redhat.com>
39601
39602         boostrap: indent only with spaces
39603         * build-aux/bootstrap: Indent only with spaces, never TABs.
39604
39605         bootstrap: split long lines
39606         * build-aux/bootstrap: Keep line length < 80.
39607
39608         bootstrap: sync from coreutils
39609         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
39610         just as autoreconf does.  Verify a list of prerequisite
39611         package-name,version-number pairs if defined in bootstrap.conf.
39612         Refer to README-prereq, if prerequisites are not satisfied.
39613
39614 2009-06-27  Eric Blake  <ebb9@byu.net>
39615
39616         tests: add test for bogus NULL definition
39617         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
39618         * tests/test-stdlib.c: Likewise.
39619         * tests/test-string.c: Likewise.
39620         * tests/test-locale.c: Likewise.
39621         * tests/test-unistd.c: Likewise.
39622         * modules/stdio-tests (Depends-on): Add verify.
39623         * modules/stdlib-tests (Depends-on): Likewise.
39624         * modules/string-tests (Depends-on): Likewise.
39625         * modules/locale-tests (Depends-on): Likewise.
39626         * modules/unistd-tests (Depends-on): Likewise.
39627
39628 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
39629
39630         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
39631         self-explaining comment.
39632         * m4/selinux-selinux-h: Update serial.
39633         (gl_LIBSELINUX): New macro, adding a warning for missing development
39634         packages to code extracted from...
39635         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
39636         Add warning for missing development packages here, too.
39637
39638 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
39639
39640         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
39641
39642 2009-06-25  Eric Blake  <ebb9@byu.net>
39643
39644         version-etc: fix regression
39645         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
39646         gcc.
39647         (version_etc): Use it, to catch bugs with trailing NULL.
39648         * lib/version-etc.c (version_etc_arn): Delete unused argument.
39649         (version_etc_va): Fix logic bug.
39650         * modules/version-etc-tests: Add test.
39651         * tests/test-version-etc.c: New file.
39652         * tests/test-version-etc.sh: Likewise.
39653
39654 2009-06-25  Sam Steingold  <sds@gnu.org>
39655
39656         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
39657         mbtowc declaration.
39658
39659 2009-06-25  Eric Blake  <ebb9@byu.net>
39660
39661         fpurge: migrate into <stdio.h>
39662         * lib/fpurge.h: Delete...
39663         * lib/stdio.in.h (fpurge): ...and declare here, instead.
39664         * lib/fpurge.c (fpurge): Change declaring header.
39665         * modules/fpurge (Files): Drop deleted file.
39666         (Depends-on): Add stdio.
39667         (configure.ac): Set witness.
39668         * modules/stdio (Makefile.am): Support fpurge macros.
39669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39670         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
39671         * lib/fflush.c: Update client.
39672         * tests/test-fpurge.c: Likewise.
39673         * NEWS: Mention the change.
39674
39675 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39676
39677         * lib/argp-version-etc.c (program_authors): Add const
39678         qualifier.
39679         * lib/version-etc.c: Fix typos in the comments.
39680         * modules/argp-version-etc: Depends on version-etc.
39681
39682 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39683
39684         argp-version-etc: new module.
39685
39686         * lib/argp-version-etc.c: New file.
39687         * lib/argp-version-etc.h: New file.
39688         * modules/argp-version-etc: New file.
39689         * modules/argp-version-etc-tests: New file.
39690         * tests/test-argp-version-etc.c: New test.
39691         * tests/test-argp-version-etc-1.sh: New test.
39692
39693 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39694
39695         Provide additional interfaces and documentation for version-etc
39696         module.
39697
39698         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
39699         interfaces.
39700         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
39701         prototypes.
39702
39703 2009-06-24  Bruno Haible  <bruno@clisp.org>
39704
39705         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
39706         HAVE_LIB${NAME} macro.
39707         Reported by Sam Steingold <sds@gnu.org>.
39708
39709 2009-06-23  Simon Josefsson  <simon@josefsson.org>
39710
39711         * modules/hash-tests (test_hash_LDADD): Link to libintl when
39712         needed.
39713
39714 2009-06-21  Bruno Haible  <bruno@clisp.org>
39715
39716         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
39717         work.
39718         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
39719         together with LIB${NAME}, LTLIB${NAME}.
39720         Reported by Sam Steingold <sds@gnu.org>.
39721
39722 2009-06-20  Jim Meyering  <meyering@redhat.com>
39723
39724         tests: make sc_require_test_exit_idiom more generic
39725         * top/maint.mk (Exit_witness_file): New overridable variable.
39726         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
39727         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
39728
39729 2009-06-19  Jim Meyering  <meyering@redhat.com>
39730
39731         hash: reverse order of src/dst parameters in an internal interface
39732         * lib/hash.c (transfer_entries): Reverse order of parameters to
39733         put DST before SRC.  Adjust callers.
39734
39735         tests: test-hash: avoid wholesale duplication
39736         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
39737         Instead, use a loop and add a single conditional.
39738
39739         tests: test-hash: allow seed selection via a command line argument
39740         * tests/test-hash.c (get_seed): New function.
39741         (main): Use it.
39742
39743 2009-06-19  Eric Blake  <ebb9@byu.net>
39744
39745         hash: avoid memory leak on allocation failure
39746         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
39747         failure.  Factor repeated algorithm...
39748         (transfer_entries): ...into new helper routine.
39749         (hash_delete): React to hash_rehash return value.
39750
39751         hash: reduce memory pressure in hash_rehash no-op case
39752         * lib/hash.c (next_prime): Avoid overflow.
39753         (hash_initialize): Factor bucket size computation...
39754         (compute_bucket_size): ...into new helper function.
39755         (hash_rehash): Use new function and open coding to reduce memory
39756         pressure, and avoid a memory leak in USE_OBSTACK code.
39757         Reported by Jim Meyering.
39758
39759 2009-06-18  Eric Blake  <ebb9@byu.net>
39760
39761         hash: make rotation more obvious
39762         * modules/hash (Depends-on): Add bitrotate and stdint.
39763         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
39764         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
39765         (SIZE_MAX): Rely on headers for definition.
39766         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
39767         (raw_hasher): Use rotr_sz.
39768         Suggested by Jim Meyering.
39769
39770         hash: fix memory leak in last patch
39771         * lib/hash.c (hash_rehash): Avoid memory leak.
39772
39773         hash: avoid no-op rehashing
39774         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
39775
39776         hash: provide default callback functions
39777         * lib/hash.c (raw_hasher, raw_comparator): New functions.
39778         (hash_initialize): Use them as defaults.
39779         * tests/test-hash.c (main): Test this.
39780
39781         hash: minor optimization
39782         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
39783         when possible.
39784         (hash_initialize): Document this promise.
39785         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
39786         * tests/test-hash.c (hash_compare_strings): Test this.
39787
39788 2009-06-18  Bruno Haible  <bruno@clisp.org>
39789
39790         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
39791         going to be replaced anyway.
39792
39793 2009-06-18  Bruno Haible  <bruno@clisp.org>
39794
39795         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
39796         in one place.
39797         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
39798         be replaced anyway.
39799
39800 2009-06-18  Eric Blake  <ebb9@byu.net>
39801
39802         hash: check for resize before insertion
39803         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
39804         threshold before insertion, so that a pathological hash_rehash
39805         that fills every bucket can still trigger another rehash.
39806
39807 2009-06-18  Jim Meyering  <meyering@redhat.com>
39808
39809         hash-tests: add a loop around the small tests
39810         * tests/test-hash.c (main): Repeat small tests with selected
39811         small initial table sizes.
39812
39813 2009-06-17  Eric Blake  <ebb9@byu.net>
39814
39815         hash: minor cleanups
39816         * lib/hash.h (hash_entry): Make opaque, by moving...
39817         * lib/hash.c (hash_entry): ...here.
39818         (hash_insert): Clarify restrictions on what can be inserted.
39819         (hash_get_next): Clarify when it is safe to remove an element
39820         during traversal.
39821         (check_tuning): Skip verification when tuning is known safe.
39822         (hash_initialize): Clarify restrictions on tuning.
39823
39824 2009-06-17  Jim Meyering  <jim@meyering.net>
39825         and Eric Blake  <ebb9@byu.net>
39826
39827         hash-tests: new module
39828         * modules/hash-tests: New file.
39829         * tests/test-hash.c: New file.
39830
39831 2009-06-17  Eric Blake  <ebb9@byu.net>
39832
39833         strstr-simple: document new module
39834         * MODULES.html.sh: Document new module.
39835
39836         strstr, strcasestr: replace on platforms with broken memchr
39837         * modules/strstr: Split into...
39838         * modules/strstr-simple: ...new module that does not care about
39839         performance, but does care about glibc bug.
39840         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
39841         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
39842         if platform memchr is broken, per Debian bug 521737.
39843         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
39844         memchr.
39845         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
39846         * doc/posix-functions/strstr.texi (strstr): Document the fix.
39847         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39848         * modules/mountlist (Depends-on): Add strstr-simple.
39849         * modules/gen-uni-tables (Depends-on): Likewise.
39850         * modules/argz (Depends-on): Add strstr.
39851
39852 2009-06-17  Bruno Haible  <bruno@clisp.org>
39853
39854         * modules/posix_spawn-internal (Depends-on): Add errno.
39855
39856 2009-06-17  Bruno Haible  <bruno@clisp.org>
39857
39858         Define missing ESTALE on Interix 3.5.
39859         * lib/errno.in.h (ESTALE): Assign a value if missing.
39860         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
39861         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
39862         missing.
39863         * doc/posix-headers/errno.texi: Mention the Interix bug.
39864         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
39865
39866 2009-06-15  Eric Blake  <ebb9@byu.net>
39867
39868         memchr, memchr2: add valgrind exception
39869         * lib/memchr.valgrind: New file.
39870         * lib/memchr2.valgrind: New file.
39871         * modules/memchr (Files): Distribute valgrind file.
39872         * modules/memchr2 (Files): Likewise.
39873
39874         docs: memchr is no longer obsolete
39875         * MODULES.html.sh: Move memchr from obsolete to string.h section.
39876         * lib/string.in.h (memchr): Simplify logic.
39877
39878 2009-06-14  Jim Meyering  <meyering@redhat.com>
39879
39880         link-follow: fix the "checking..." message to not mention trailing slash
39881         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
39882         never considered trailing slashes.
39883
39884 2009-06-14  Bruno Haible  <bruno@clisp.org>
39885
39886         * m4/memchr.m4: Mention also the bug on IA-64.
39887         * doc/posix-functions/memchr.texi: Likewise.
39888
39889 2009-06-12  Eric Blake  <ebb9@byu.net>
39890
39891         memchr: detect broken x86_64 and alpha implementations
39892         * modules/memchr-tests (Depends-on): Move mmap detection...
39893         * modules/memchr (Depends-on): ...here.
39894         (configure.ac): Set indicator.
39895         * lib/string.in.h (memchr): Declare replacement.
39896         * modules/string (Makefile.am): Trigger replacement.
39897         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39898         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
39899         bugs.
39900         * doc/posix-functions/memchr.texi (memchr): Document the bug.
39901         * modules/getpagesize (License): Relax license.
39902
39903 2009-06-11  Bruno Haible  <bruno@clisp.org>
39904
39905         * lib/idpriv.h: Add more references.
39906
39907 2009-06-08  Bruno Haible  <bruno@clisp.org>
39908
39909         Tests for module 'idpriv-droptemp'.
39910         * modules/idpriv-droptemp-tests: New file.
39911         * tests/test-idpriv-droptemp.sh: New file.
39912         * tests/test-idpriv-droptemp.su.sh: New file.
39913         * tests/test-idpriv-droptemp.c: New file.
39914
39915         New module 'idpriv-droptemp'.
39916         * lib/idpriv-droptemp.c: New file.
39917         * modules/idpriv-droptemp: New file.
39918
39919 2009-06-08  Bruno Haible  <bruno@clisp.org>
39920
39921         Tests for module 'idpriv-drop'.
39922         * modules/idpriv-drop-tests: New file.
39923         * tests/test-idpriv-drop.sh: New file.
39924         * tests/test-idpriv-drop.su.sh: New file.
39925         * tests/test-idpriv-drop.c: New file.
39926
39927         New module 'idpriv-drop'.
39928         * lib/idpriv.h: New file.
39929         * lib-idpriv-drop.c: New file.
39930         * m4/idpriv.m4: New file.
39931         * modules/idpriv-drop: New file.
39932
39933 2009-06-08  Bruno Haible  <bruno@clisp.org>
39934
39935         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
39936         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39937         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39938         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39939         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39940         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39941         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39942
39943 2009-06-08  Eric Blake  <ebb9@byu.net>
39944
39945         test-strstr: use memory fence, when possible
39946         * tests/test-strstr.c (main): Use memory fence, in order to be
39947         more likely to trigger Debian bug 521737.
39948         * modules/strstr-tests (Files): Pull in additional files.
39949
39950         memchr: no longer obsolete, for wider field testing
39951         * modules/memchr (Status, Notice): Delete, this module is no
39952         longer obsolete.
39953         * modules/vasnprintf (Depends-on): Add memchr.
39954
39955 2009-06-07  Jim Meyering  <meyering@redhat.com>
39956
39957         hash: declare some functions with the warn_unused_result attribute
39958         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
39959
39960 2009-06-07  Bruno Haible  <bruno@clisp.org>
39961
39962         * tests/test-alignof.c: Don't test int64_t if it does not exist.
39963         Reported by Eric Blake.
39964
39965 2009-06-06  Eric Blake  <ebb9@byu.net>
39966
39967         test-alignof: fix typo with long double
39968         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
39969         compiler error.
39970
39971 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
39972
39973         Escape non-texinfo { and }s.
39974         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
39975         markup error.
39976
39977 2009-06-04  Jim Meyering  <meyering@redhat.com>
39978
39979         gitlog-to-changelog: don't infloop on an empty commit log
39980         * build-aux/gitlog-to-changelog: Warn about an empty log message.
39981         Reported by Boris Petersen <transacid@centerim.org>.
39982
39983 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
39984
39985         version-etc: extend for packagers
39986         Add three new configure options, intended for packagers:
39987           --with-packager="packager name"
39988           --with-packager-version="packager-specific version"
39989           --with-packager-bug-reports="packager bug reporting"
39990         An example with coreutils:
39991           $ ./configure \
39992             --with-packager=Gentoo \
39993             --with-packager-bug-report=http://bugs.gentoo.org/ \
39994             --with-packager-version="patchset 1.6"
39995           $ ./src/ls --version | head -n2
39996           ls (GNU coreutils) 7.1-dirty
39997           Packaged by Gentoo (patchset 1.6)
39998         Note that the bug reporting info via --help doesn't show up because
39999         coreutils uses its own custom emit_bug_reporting_address() implementation
40000         in src/system.h.  If it didn't, it'd look like:
40001           $ ./src/ls --help | tail -n4
40002           Report bugs to <bug-coreutils@gnu.org>.
40003           Report Gentoo bugs to <http://bugs.gentoo.org/>.
40004           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
40005           General help using GNU software: <http://www.gnu.org/gethelp/>.
40006         * lib/version-etc.c: Print new information, if provided.
40007         * m4/version-etc.m4: New file.
40008         * modules/version-etc (Files): Add m4/version-etc.m4.
40009         (configure.ac): Add gl_VERSION_ETC.
40010
40011 2009-05-31  Bruno Haible  <bruno@clisp.org>
40012
40013         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
40014         and 'int64_t'.
40015         * modules/alignof-tests (Dependencies): Add stdint.
40016         Reported by Eric Blake.
40017
40018 2009-05-31  Bruno Haible  <bruno@clisp.org>
40019
40020         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
40021         restriction due to compiler bugs.
40022         Reported by Eric Blake.
40023
40024 2009-05-31  Simon Josefsson  <simon@josefsson.org>
40025             Bruno Haible  <bruno@clisp.org>
40026
40027         Fix test-alignof failure.
40028         * lib/alignof.h (alignof_slot): New macro.
40029         (alignof_type): New macro, with the same semantics as the previous
40030         'alignof'.
40031         (alignof): Alias to alignof_slot.
40032         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
40033         check that the results are usable as constant expressions.
40034
40035 2009-05-31  Bruno Haible  <bruno@clisp.org>
40036
40037         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
40038         * tests/test-memchr.c (main): Check that memchr does not read past the
40039         first occurrence of the byte.
40040         * tests/test-strstr.c (main): Update comment.
40041         Suggested by Eric Blake.
40042
40043 2009-05-30  Bruno Haible  <bruno@clisp.org>
40044
40045         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
40046         detail how to use dumpbin.
40047         Reported by David Byron <dbyron@dbyron.com>.
40048
40049 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40050
40051         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
40052
40053 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40054
40055         * m4/manywarnings.m4: Add GCC 4.4 warnings.
40056
40057 2009-05-28  Bruno Haible  <bruno@clisp.org>
40058
40059         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
40060         build-aux/ files.
40061
40062 2009-05-28  Simon Josefsson  <simon@josefsson.org>
40063
40064         * gnulib-tool (func_import): Transform license on build-aux/ files too.
40065
40066 2009-05-27  Simon Josefsson  <simon@josefsson.org>
40067
40068         * gnulib-tool (sed_transform_main_lib_file)
40069         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
40070         regexps.
40071
40072 2009-05-26  Simon Josefsson  <simon@josefsson.org>
40073
40074         * tests/test-strstr.c: Add another self-test.
40075         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
40076         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
40077
40078 2009-05-23  Bruno Haible  <bruno@clisp.org>
40079
40080         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
40081         change.
40082
40083 2009-05-21  Bruno Haible  <bruno@clisp.org>
40084
40085         Simplify use of mode_t varargs.
40086         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
40087         uses 'mode_t' or 'int'.
40088         * lib/openat.c (openat): Likewise.
40089         * lib/open-safer.c (open_safer): Likewise.
40090         * m4/mode_t.m4: New file.
40091         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
40092         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
40093         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
40094         * modules/open (Files): Add m4/mode_t.m4.
40095         * modules/openat (Files): Likewise.
40096         * modules/fcntl-safer (Files): Likewise.
40097         Suggested by Eric Blake.
40098
40099 2009-05-21  Pádraig Brady  <P@draigbrady.com>
40100
40101         * doc/glibc-functions/fallocate.texi: New file.
40102         * doc/gnulib.texi: Include it.
40103
40104 2009-05-21  Eric Blake  <ebb9@byu.net>
40105             Bruno Haible  <bruno@clisp.org>
40106
40107         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
40108         invocations.
40109         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40110
40111 2009-05-21  Eric Blake  <ebb9@byu.net>
40112             Bruno Haible  <bruno@clisp.org>
40113
40114         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
40115         include_next. Fix of 2008-11-20 commit.
40116         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
40117         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
40118         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
40119         NEXT_MATH_H.
40120         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
40121         instead of NEXT_MATH_H.
40122
40123 2009-05-21  Bruno Haible  <bruno@clisp.org>
40124
40125         Avoid redefinition warnings for SIZE_MAX.
40126         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
40127         Reported by Simon Josefsson.
40128
40129 2009-05-21  Bruno Haible  <bruno@clisp.org>
40130
40131         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
40132         AC_CACHE_VAL.
40133
40134 2009-05-20  Bruno Haible  <bruno@clisp.org>
40135
40136         Make zeroptr.h work on mingw.
40137         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
40138         mprotect.
40139         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
40140         * modules/memchr2-tests (configure.ac): Likewise.
40141         * modules/memcmp-tests (configure.ac): Likewise.
40142         * modules/memmem-tests (configure.ac): Likewise.
40143         * modules/memrchr-tests (configure.ac): Likewise.
40144         Reported by Simon Josefsson.
40145
40146 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40147
40148         * tests/test-glob.c: Include string.h for strcmp prototype.
40149
40150 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40151
40152         * modules/getdelim (Depends-on): Add explicit stdint, although it
40153         was implicitly already pulled in via realloc-posix.
40154         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
40155
40156 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40157
40158         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
40159         G. Christensen" <tgc@jupiterrise.com>.
40160         * m4/sys_socket_h.m4: Check for sa_family_t.
40161         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
40162         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
40163         * tests/test-sys_socket.c: Check that sa_family_t works.
40164
40165 2009-05-18  Eric Blake  <ebb9@byu.net>
40166
40167         maint.mk: allow gnulib_dir in VPATH build
40168         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
40169
40170 2009-05-15  Jim Meyering  <meyering@redhat.com>
40171
40172         maint.mk: Give gnulib_dir a default definition.
40173         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
40174         Thus, most packages no longer need to specify this variable in cfg.mk
40175
40176 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
40177
40178         rename.m4: fix typos that would make non-mingw cross-configure fail
40179         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
40180
40181 2009-05-13  Eric Blake  <ebb9@byu.net>
40182
40183         mmap-anon: avoid out-of-order autoconf expansion
40184         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
40185         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
40186         * modules/memchr-tests (Depends-on): Add extensions.
40187         * modules/memchr2-tests (Depends-on): Add extensions.
40188         * modules/memcmp-tests (Depends-on): Add extensions.
40189         * modules/memmem-tests (Depends-on): Add extensions.
40190         * modules/memrchr-tests (Depends-on): Add extensions.
40191
40192 2009-05-13  Bruno Haible  <bruno@clisp.org>
40193
40194         Make some tests ISO C 99 compliant.
40195         * tests/zerosize-ptr.h: New file.
40196         * tests/test-memchr.c: Include zerosize-ptr.h.
40197         (main): Use a zero-size object pointer instead of NULL.
40198         * tests/test-memchr2.c: Include zerosize-ptr.h.
40199         (main): Use a zero-size object pointer instead of NULL.
40200         * tests/test-memcmp.c: Include zerosize-ptr.h.
40201         (main): Use a zero-size object pointer instead of NULL.
40202         * tests/test-memmem.c: Include zerosize-ptr.h.
40203         (main): Use a zero-size object pointer instead of NULL.
40204         * tests/test-memrchr.c: Include zerosize-ptr.h.
40205         (main): Use a zero-size object pointer instead of NULL.
40206         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
40207         m4/mmap-anon.m4.
40208         (Depends-on): Add getpagesize.
40209         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40210         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
40211         m4/mmap-anon.m4.
40212         (Depends-on): Add getpagesize.
40213         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40214         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
40215         m4/mmap-anon.m4.
40216         (Depends-on): Add getpagesize.
40217         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40218         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
40219         m4/mmap-anon.m4.
40220         (Depends-on): Add getpagesize.
40221         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40222         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
40223         m4/mmap-anon.m4.
40224         (Depends-on): Add getpagesize.
40225         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40226
40227 2009-05-12  Bruno Haible  <bruno@clisp.org>
40228
40229         Tests for module 'alignof'.
40230         * modules/alignof-tests: New file.
40231         * tests/test-alignof.c: New file.
40232
40233 2009-05-12  Bruno Haible  <bruno@clisp.org>
40234
40235         Fix alignof macro.
40236         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
40237         vendor compilers that are always correct.
40238
40239 2009-05-12  Bruno Haible  <bruno@clisp.org>
40240
40241         Make the MAP_ANONYMOUS detection work on HP-UX 11.
40242         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
40243         not whether its fully works.
40244
40245 2009-05-12  Bruno Haible  <bruno@clisp.org>
40246
40247         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
40248
40249 2009-05-12  Jim Meyering  <meyering@redhat.com>
40250
40251         * top/maint.mk: Adjust backslash alignment.
40252
40253 2009-05-11  Simon Josefsson  <simon@josefsson.org>
40254
40255         * top/maint.mk: Make $(srcdir)/build-aux configurable.
40256
40257 2009-05-11  Eric Blake  <ebb9@byu.net>
40258
40259         argp: avoid undefined behavior
40260         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
40261         macros.
40262
40263 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40264
40265         * tests/test-vc-list-files-git.sh: Do git config of user.email and
40266         user.name to prevent git commit from complaining.
40267
40268 2009-05-10  Bruno Haible  <bruno@clisp.org>
40269
40270         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
40271         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
40272         it rewrites every file name only once.
40273         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
40274
40275 2009-05-08  Bruno Haible  <bruno@clisp.org>
40276
40277         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
40278         instead of 'max'.
40279
40280 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40281
40282         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
40283         sockaddr_storage test.
40284
40285 2009-05-07  Simon Josefsson  <simon@josefsson.org>
40286
40287         * modules/sys_socket (Makefile.am): Substitute
40288         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
40289         * m4/sys_socket_h.m4: Check for sockaddr_storage.
40290         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
40291         * tests/test-sys_socket.c: Check sockaddr_storage.
40292
40293 2009-05-08  Bruno Haible  <bruno@clisp.org>
40294
40295         New module 'alignof'.
40296         * lib/alignof.h: New file.
40297         * modules/alignof: New file.
40298
40299 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40300             Bruno Haible  <bruno@clisp.org>
40301
40302         Fix test-file-has-acl on FreeBSD.
40303         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
40304         mask is implicitly added.
40305         * tests/test-file-has-acl.c: Include <signal.h>.
40306         (main): Terminate the test after 5 seconds.
40307         * modules/acl-tests (configure.ac): Check for alarm function.
40308
40309 2009-05-04  Bruno Haible  <bruno@clisp.org>
40310
40311         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
40312         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
40313         * modules/errno (configure.ac): Drop AC_REQUIRE.
40314         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
40315         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
40316
40317 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40318
40319         * modules/glob-tests: New module.
40320         * tests/test-glob.c: Add.
40321
40322 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40323
40324         * modules/fnmatch-tests: New module.
40325         * tests/test-fnmatch.c: Add.
40326
40327 2009-05-04  Eric Blake  <ebb9@byu.net>
40328
40329         maint: make the new no-submodule-changes rule VPATH-safe
40330         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
40331
40332 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40333             Bruno Haible  <bruno@clisp.org>
40334
40335         acl: Fix infinite loop on FreeBSD.
40336         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
40337         of return value from acl_get_entry.
40338         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
40339         Likewise.
40340
40341 2009-05-03  Bruno Haible  <bruno@clisp.org>
40342
40343         * lib/acl-internal.h (acl_entries): Clarify return value.
40344         * lib/acl_entries.c (acl_entries): Likewise.
40345
40346 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40347
40348         Bug fix in acl module.
40349         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
40350
40351 2009-05-03  Bruno Haible  <bruno@clisp.org>
40352
40353         Create gperf-generated file in the source dir, not in the build dir.
40354         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
40355         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
40356         * modules/unicase/locale-language (unicase/locale-languages.h):
40357         Likewise.
40358         * modules/unicase/special-casing (unicase/special-casing-table.h):
40359         Likewise.
40360         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
40361         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
40362         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
40363         Reported by Ralf Wildenhues.
40364
40365 2009-05-03  Bruno Haible  <bruno@clisp.org>
40366
40367         * modules/fnmatch (Description, configure.ac): Taken from
40368         fnmatch-posix.
40369         * modules/fnmatch-posix: Turn into a symbolic reference to the
40370         'fnmatch' module, and deprecate.
40371         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
40372
40373 2009-05-03  Bruno Haible  <bruno@clisp.org>
40374
40375         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
40376         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
40377         Reported by Ralf Wildenhues.
40378
40379 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40380
40381         * m4/fnmatch.m4: Fix fnmatch re-define.
40382
40383 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40384
40385         priv-set: new module and tests; adapt write-any-file
40386         * lib/priv-set.c: New file.
40387         * lib/priv-set.h: New file.
40388         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
40389         * lib/write-any-file.c: Simplify by using priv-set module.
40390         * m4/priv-set.m4: New file.
40391         * modules/priv-set: New file.
40392         * modules/unlinkdir: Add dependency on priv-set module.
40393         * modules/write-any-file: Likewise.
40394
40395         Tests for module 'priv-set'.
40396         * modules/priv-set-tests: New file.
40397         * tests/test-priv-set.c: New file.
40398
40399 2009-05-03  Jim Meyering  <meyering@redhat.com>
40400             Bruno Haible  <bruno@clisp.org>
40401
40402         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
40403         use the converted UTF-8 variant of the name instead.
40404
40405 2009-05-03  Jim Meyering  <meyering@redhat.com>
40406
40407         tests: tighten some getdate tests
40408         * tests/test-getdate.c (main): Tighten tests: require equality,
40409         not just greater than.  Set TZ envvar to UTC0.
40410
40411 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
40412
40413         getdate: correctly interpret "next monday" when run on a Monday
40414         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
40415         that e.g., "next tues" (when run on a tuesday) results in a date
40416         that is one week in the future, and not today's date.
40417         I.e., add a week when the wday is the same as the current one.
40418         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
40419         and earlier by Martin Bernreuther and Jan Minář.
40420         * tests/test-getdate.c (main): Check that "next DAY" is always in
40421         the future and that "last DAY" is always in the past.
40422
40423 2009-05-02  Jim Meyering  <meyering@redhat.com>
40424
40425         build: ensure that a release build fails when a submodule is unclean
40426         * top/maint.mk (no-submodule-changes): New rule.
40427         (alpha beta major): Depend on it.
40428
40429 2009-05-02  Bruno Haible  <bruno@clisp.org>
40430
40431         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
40432         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
40433         shell variable gl_fnmatch_required to detect which variant is
40434         requested.
40435         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
40436         gl_FUNC_FNMATCH_POSIX.
40437         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
40438         exclude fnmatch-posix.
40439
40440 2009-05-02  Bruno Haible  <bruno@clisp.org>
40441
40442         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
40443         * modules/mbsrtowcs (License): Change to LGPLv2+.
40444         * modules/strnlen1 (License): Likewise.
40445         Reported by Simon Josefsson.
40446
40447 2009-05-02  Bruno Haible  <bruno@clisp.org>
40448
40449         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
40450         "cross".
40451         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
40452         gnulib-tool was called with option --source-base=lib.
40453
40454 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40455
40456         Use automake *-local hooks without commands, for extensibility.
40457         * modules/localcharset (Makefile.am): Rename install-exec-local
40458         rule to install-exec-localcharset, and make it a prerequisite of
40459         install-exec-local.  Likewise, rename the uninstall-local rule to
40460         uninstall-localcharset, and make it a prerequisite of the former.
40461
40462 2009-05-01  Bruno Haible  <bruno@clisp.org>
40463
40464         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
40465         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40466         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
40467         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
40468         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
40469         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40470         m4/locale-zh.m4, m4/codeset.m4.
40471
40472         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40473         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
40474         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40475         m4/locale-zh.m4.
40476
40477         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
40478         REPLACE_WCRTOMB if mbstate_t must be replaced.
40479         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
40480         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
40481
40482 2009-05-01  Bruno Haible  <bruno@clisp.org>
40483
40484         Avoid compiler warnings when redefining macros defined by <libintl.h>.
40485         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
40486         dngettext, dcngettext, textdomain, bindtextdomain,
40487         bind_textdomain_codeset): Undefine before redefining.
40488
40489 2009-04-30  Bruno Haible  <bruno@clisp.org>
40490
40491         Fix bug introduced on 2009-04-25.
40492         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
40493         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
40494         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
40495         is defined.
40496         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
40497         is defined.
40498         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
40499         is defined.
40500         Reported by Elbert_Pol <elbert.pol@gmail.com>.
40501
40502 2009-04-28  Bruno Haible  <bruno@clisp.org>
40503
40504         Comment tweaks.
40505         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
40506         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
40507         * lib/unicase.h (u*_casexfrm): Likewise.
40508         Reported by Paolo Bonzini.
40509
40510 2009-04-28  Bruno Haible  <bruno@clisp.org>
40511
40512         Fix a compilation error.
40513         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
40514         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40515         Reported by Jim Meyering.
40516
40517 2009-04-27  Bruno Haible  <bruno@clisp.org>
40518
40519         New module 'libunistring'.
40520         * modules/libunistring: New file.
40521         * m4/libunistring.m4: New file.
40522         * MODULES.html.sh (Unicode string functions): Add it.
40523
40524 2009-04-27  Eric Blake  <ebb9@byu.net>
40525
40526         maint.mk: allow package-specific header to provide <config.h>
40527         * top/maint.mk (sc_require_config_h): New variable.
40528         (sc_require_config_h, sc_require_config_h_first): Use it.
40529
40530 2009-04-27  Simon Josefsson  <simon@josefsson.org>
40531
40532         * top/maint.mk (sc_avoid_if_before_free): Except
40533         useless-if-before-free script.
40534
40535 2009-04-27  Eric Blake  <ebb9@byu.net>
40536
40537         maintainer-makefile: depend on all required helper scripts
40538         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
40539         useless-if-before-free.
40540         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
40541         version, rather than assuming gnulib checkout is available.
40542         Reported by Simen Josefsson.
40543
40544 2009-04-26  Bruno Haible  <bruno@clisp.org>
40545
40546         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
40547         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
40548         "../" or "..".
40549
40550 2009-04-26  Bruno Haible  <bruno@clisp.org>
40551
40552         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
40553         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
40554         AC_LIB_HAVE_LINKFLAGS.
40555
40556 2009-04-26  Bruno Haible  <bruno@clisp.org>
40557
40558         Simplify calling convention of u*_conv_from_encoding.
40559         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
40560         u32_conv_from_encoding): Expect a resultbuf argument and return the
40561         result directly as a pointer.
40562         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
40563         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
40564         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
40565         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
40566         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
40567         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40568         Update.
40569         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
40570         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
40571         * lib/vasnprintf.c (VASNPRINTF): Update.
40572         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
40573         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
40574         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
40575         * NEWS: Mention the change.
40576
40577 2009-04-26  Bruno Haible  <bruno@clisp.org>
40578
40579         Simplify calling convention of u*_conv_to_encoding.
40580         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40581         u32_conv_to_encoding): Expect a resultbuf argument and return the
40582         result directly as a pointer.
40583         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40584         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
40585         freeing scaled_offsets if mem_iconveha failed.
40586         * lib/unicase/u-casexfrm.h (FUNC): Update.
40587         * lib/uninorm/u-normxfrm.h (FUNC): Update.
40588         * lib/vasnprintf.c (VASNPRINTF): Update.
40589         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
40590         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
40591         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
40592         * NEWS: Mention the change.
40593
40594 2009-04-26  Bruno Haible  <bruno@clisp.org>
40595
40596         Avoid test failures on AIX and OSF/1.
40597         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
40598         malloc(0).
40599         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40600         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40601         Likewise.
40602         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
40603         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
40604         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
40605         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
40606         * doc/posix-functions/malloc.texi: Document the portability problem
40607         related to malloc(0).
40608
40609 2009-04-26  Bruno Haible  <bruno@clisp.org>
40610
40611         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
40612         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
40613         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
40614
40615 2009-04-25  Bruno Haible  <bruno@clisp.org>
40616
40617         Avoid link error when creating a namespace clean library.
40618         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
40619         as macro with arguments if already defined as an alias.
40620         * lib/signbitf.c (gl_signbitf): Don't undefine.
40621         * lib/signbitd.c (gl_signbitd): Don't undefine.
40622         * lib/signbitl.c (gl_signbitl): Don't undefine.
40623
40624 2009-04-25  Jim Meyering  <meyering@redhat.com>
40625
40626         vc-list-files: fix another quoting bug
40627         * build-aux/vc-list-files: Avoid sed backslash expansion
40628         of pathological directory names.
40629
40630 2009-04-25  Eric Blake  <ebb9@byu.net>
40631
40632         vc-list-files: fix shell quoting error
40633         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
40634         timestamp.
40635
40636 2009-04-25  Jim Meyering  <meyering@redhat.com>
40637
40638         vc-list-files: restore lost functionality with subdir argument
40639         * build-aux/vc-list-files: When given a non-"." sub-directory
40640         argument, substitute the $dir/ prefix back onto each resulting name.
40641         Otherwise, coreutils' root_tests check would fail.
40642
40643 2009-04-24  Eric Blake  <ebb9@byu.net>
40644
40645         vc-list-files: ignore git symlinks
40646         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
40647         than ls-files, to ignore git symlinks.
40648
40649         maint.mk: import improvements from m4
40650         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
40651         (move_if_change): Delete unused macro.
40652         (news-date-check, vc-diff-check): Support VPATH builds.
40653         (announcement): Likewise.  Split --bootstrap-tools list...
40654         (boostrap-tools): ...into separate list, which can be overridden
40655         in cfg.mk.
40656         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
40657         requiring dependency on useless-if-before-free module.
40658         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
40659         Support VPATH builds.
40660
40661 2009-04-24  Jim Meyering  <meyering@redhat.com>
40662
40663         maint.mk: remove coreutils-specific rules and variables
40664         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
40665         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
40666         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
40667
40668         maint.mk: remove obsolete rule
40669         * top/maint.mk (rel-check): Remove rule.
40670         (WGET, WGETFLAGS): Remove now-unused variables.
40671
40672 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40673
40674         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
40675         consistency.
40676
40677         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
40678         '$(PATH_SEPARATOR)' instead of ':'.
40679
40680 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40681
40682         * lib/getopt1.c (main): Use 'const' for static array.
40683
40684 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40685
40686         * top/maint.mk: Sync with coreutils.
40687         * NEWS: Explain incompatibilities.
40688
40689 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40690             Bruno Haible  <bruno@clisp.org>
40691
40692         Fix cross-compilation results.
40693         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
40694         statement, as third argument of AC_TRY_RUN.
40695         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40696         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40697         Likewise.
40698         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40699         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40700         Likewise.
40701         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40702         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
40703         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
40704
40705 2009-04-20  Bruno Haible  <bruno@clisp.org>
40706
40707         Avoid test failure on mingw.
40708         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
40709
40710 2009-04-20  Bruno Haible  <bruno@clisp.org>
40711
40712         Avoid compilation error on mingw.
40713         * modules/localename-tests (Depends-on): Add locale.
40714
40715 2009-04-19  Bruno Haible  <bruno@clisp.org>
40716
40717         Support for building a shared library on Windows platforms.
40718         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
40719         (main): Test the presence of UNINORM_NFC here.
40720         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
40721         (main): Test the presence of UNINORM_NFD here.
40722         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
40723         (main): Test the presence of UNINORM_NFKC here.
40724         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
40725         (main): Test the presence of UNINORM_NFKD here.
40726
40727 2009-04-19  Bruno Haible  <bruno@clisp.org>
40728
40729         Avoid a compiler warning.
40730         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
40731         Change type of variable 'sequence'.
40732
40733 2009-04-19  Bruno Haible  <bruno@clisp.org>
40734
40735         * modules/configmake (Makefile.am): When the contents of configmake.h
40736         does not change, arrange to preserve its modification time.
40737
40738 2009-04-17  Simon Josefsson  <simon@josefsson.org>
40739
40740         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
40741         gettext domain.
40742
40743 2009-04-16  Jim Meyering  <meyering@redhat.com>
40744
40745         useless-if-before-free: improve conversion code
40746         * build-aux/useless-if-before-free: Adjust code-in-comment to match
40747         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
40748
40749 2009-04-14  Bruno Haible  <bruno@clisp.org>
40750
40751         * modules/fcntl (Depends-on): Add extensions.
40752         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
40753
40754 2009-04-12  Ben Pfaff  <blp@gnu.org>
40755
40756         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
40757         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
40758
40759 2009-03-20  Ben Pfaff  <blp@gnu.org>
40760
40761         Make rename replace existing destinations on Windows.
40762         * m4/rename.m4: Add test for Mingw.
40763         * lib/rename.c: Add rename replacement that uses MoveFileEx with
40764         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
40765         * doc/posix-functions/rename.texi: Document.
40766
40767 2009-04-10  Bruno Haible  <bruno@clisp.org>
40768
40769         New include file "iconveh.h".
40770         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
40771         * lib/striconveh.h: Include it.
40772         (enum iconv_ilseq_handler): Remove definition.
40773         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
40774         striconveh.h.
40775         * lib/striconveha.c: Include striconveh.h.
40776         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
40777         * modules/striconveh (Files): Add lib/iconveh.h.
40778         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
40779         lib/striconveh.h.
40780
40781 2009-04-10  Bruno Haible  <bruno@clisp.org>
40782
40783         * lib/uniconv.h: Update comment.
40784
40785 2009-04-10  Bruno Haible  <bruno@clisp.org>
40786
40787         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40788         always.
40789         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40790         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40791         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40792         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
40793         "unistring-notinline.h", so that the function gets defined always.
40794         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40795         * lib/unistr/u8-uctomb.c: Likewise.
40796         * lib/unistr/u16-mbtouc.c: Likewise.
40797         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40798         * lib/unistr/u16-uctomb.c: Likewise.
40799         * lib/unistr/u32-mbtouc.c: Likewise.
40800         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40801         * lib/unistr/u32-uctomb.c: Likewise.
40802
40803 2009-04-10  Bruno Haible  <bruno@clisp.org>
40804
40805         Mark 'utime' obsolete.
40806         * modules/utime (Status, Notice): New sections.
40807         Suggested by Jim Meyering.
40808
40809         Fix cross-compile guess for utime test.
40810         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
40811         autoconf.
40812         * doc/posix-functions/utime.texi: Give more precisions.
40813         Reported by Jan <ipif@ymail.com>.
40814
40815 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
40816
40817         filevercmp: correct today's change
40818         * lib/filevercmp.c: Also handle coreutils' test inputs.
40819         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
40820
40821         Fix regression in 'filevercmp' module. Thanks Sven Joachim
40822         for reporting it.
40823         * lib/filevercmp.c: Special handle for "", "." and "..".
40824         * tests/test-filevercmp.c: Enlarge the set suite.
40825
40826 2009-04-07  Jim Meyering  <meyering@redhat.com>
40827
40828         useless-if-before-free: show how to remove braced useless free, too
40829         * build-aux/useless-if-before-free: still only in a comment, though.
40830
40831 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
40832
40833         maint.mk: import changes to syntax-check macros from coreutils
40834         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
40835         Use them in the relevant macros.
40836
40837 2009-04-06  Bruno Haible  <bruno@clisp.org>
40838
40839         Fix unportable use of bit-fields.
40840         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
40841         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
40842         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
40843
40844 2009-04-06  Bruno Haible  <bruno@clisp.org>
40845
40846         Avoid test failures on AIX and OSF/1.
40847         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
40848         that malloc(0) = NULL.
40849         * tests/unicase/test-u8-tolower.c (check): Likewise.
40850         * tests/unicase/test-u8-totitle.c (check): Likewise.
40851         * tests/unicase/test-u8-toupper.c (check): Likewise.
40852         * tests/unicase/test-u16-casefold.c (check): Likewise.
40853         * tests/unicase/test-u16-tolower.c (check): Likewise.
40854         * tests/unicase/test-u16-totitle.c (check): Likewise.
40855         * tests/unicase/test-u16-toupper.c (check): Likewise.
40856         * tests/unicase/test-u32-casefold.c (check): Likewise.
40857         * tests/unicase/test-u32-tolower.c (check): Likewise.
40858         * tests/unicase/test-u32-totitle.c (check): Likewise.
40859         * tests/unicase/test-u32-toupper.c (check): Likewise.
40860         * tests/uninorm/test-u8-nfc.c (check): Likewise.
40861         * tests/uninorm/test-u8-nfd.c (check): Likewise.
40862         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
40863         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
40864         * tests/uninorm/test-u16-nfc.c (check): Likewise.
40865         * tests/uninorm/test-u16-nfd.c (check): Likewise.
40866         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
40867         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
40868         * tests/uninorm/test-u32-nfc.c (check): Likewise.
40869         * tests/uninorm/test-u32-nfd.c (check): Likewise.
40870         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
40871         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
40872
40873 2009-04-05  Bruno Haible  <bruno@clisp.org>
40874
40875         Work around an autoconf limitation.
40876         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
40877         comment line if it would be longer than 3 KB.
40878
40879 2009-04-05  Bruno Haible  <bruno@clisp.org>
40880
40881         Avoid test failure with libiconv-1.13.
40882         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
40883         of the expected test results.
40884
40885 2009-04-05  Bruno Haible  <bruno@clisp.org>
40886
40887         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
40888         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
40889         that it should be installed.
40890
40891 2009-04-05  Bruno Haible  <bruno@clisp.org>
40892
40893         * gnulib-tool: New option --copy-file.
40894         (func_usage): Document it.
40895         (func_dest_tmpfilename): Moved out of func_import.
40896         (func_add_file, func_update_file): New functions, extracted from
40897         func_import.
40898         (func_import): Update.
40899
40900 2009-04-05  Karl Berry  <karl@gnu.org>
40901
40902         * README: prominently mention gnulib-tool.
40903         Rearrange sections so getting the code is near the top.
40904
40905 2009-04-05  Bruno Haible  <bruno@clisp.org>
40906
40907         * lib/unicase.h: Mention u*_cmp2.
40908         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40909         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
40910         * lib/unicase/ulc-casecmp.c: Likewise.
40911         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
40912         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
40913         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
40914         unistr/u8-cmp.
40915         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
40916         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
40917         unistr/u16-cmp.
40918         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
40919         unistr/u32-cmp.
40920
40921         * lib/uninorm.h: Mention u*_cmp2.
40922         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40923         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
40924         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
40925         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
40926         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
40927         unistr/u8-cmp.
40928         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
40929         unistr/u16-cmp.
40930         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
40931         unistr/u32-cmp.
40932
40933         New module 'unistr/u32-cmp2'.
40934         * lib/unistr/u32-cmp2.c: New file.
40935         * modules/unistr/u32-cmp2: New file.
40936
40937         New module 'unistr/u16-cmp2'.
40938         * lib/unistr/u16-cmp2.c: New file.
40939         * modules/unistr/u16-cmp2: New file.
40940
40941         New module 'unistr/u8-cmp2'.
40942         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
40943         * lib/unistr/u8-cmp2.c: New file.
40944         * lib/unistr/u-cmp2.h: New file.
40945         * modules/unistr/u8-cmp2: New file.
40946
40947 2009-04-05  Bruno Haible  <bruno@clisp.org>
40948
40949         * lib/unictype.h (uc_property_is_valid): New macro.
40950         * tests/unictype/test-pr_byname.c (main): Use it.
40951
40952         * lib/unistr.h: Doc fixes.
40953         * lib/uniconv.h: Doc fixes.
40954         * lib/unictype.h: Doc fixes.
40955
40956 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
40957
40958         Port coreutils 7.2 to Solaris 8.
40959
40960         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
40961         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
40962         for Solaris 8.  This is a bit of a hack, as it means it's the
40963         caller's responsibility to add -lnsl if needed, but most likely it
40964         won't be needed since only getaddrinfo uses this and getaddrinfo
40965         isn't needed on Solaris 8.
40966
40967         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
40968         problem to Solaris 8 encountered with coreutils 7.2, which
40969         resulted in a message "fnmatch.c:292: warning: passing argument 4
40970         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
40971         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
40972
40973 2009-04-03  Simon Josefsson  <simon@josefsson.org>
40974
40975         * m4/ld-version-script.m4: Add FIXME comment.
40976
40977 2009-04-02  Simon Josefsson  <simon@josefsson.org>
40978
40979         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
40980         SOVERSION variable.
40981
40982 2009-04-02  Bruno Haible  <bruno@clisp.org>
40983
40984         * Makefile (info, html, dvi, pdf): Combine the rules.
40985         Suggested by Jim Meyering.
40986
40987 2009-04-01  Bruno Haible  <bruno@clisp.org>
40988
40989         * Makefile (info, html, dvi, pdf): New targets.
40990         Reported by Reuben Thomas <rrt@sc3d.org>.
40991
40992 2009-04-01  Bruno Haible  <bruno@clisp.org>
40993
40994         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
40995         can be put into PATH.
40996         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
40997
40998 2009-04-01  Bruno Haible  <bruno@clisp.org>
40999
41000         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
41001
41002 2009-04-01  Bruno Haible  <bruno@clisp.org>
41003
41004         Rename module 'visibility'.
41005         * modules/lib-symbol-visibility: Renamed from modules/visibility.
41006         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
41007         * doc/gnulib.texi: Update.
41008         * MODULES.html.sh (Misc): Update.
41009         * NEWS: Mention the change.
41010
41011 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41012
41013         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
41014         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
41015         Eric Blake <ebb9@byu.net> for review.
41016         * MODULES.html.sh: Add lib-msvc-compat.
41017         * doc/gnulib.texi: Link to new section.
41018         * m4/ld-output-def.m4: New file.
41019         * doc/ld-output-def.texi: New file.
41020
41021 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41022
41023         Rename ld-version-script to lib-symbol-versions.  Suggested by
41024         Bruno Haible <bruno@clisp.org>.
41025         * modules/ld-version-script: Renamed to lib-symbol-versions.
41026         * doc/ld-version-script.texi: Fix module name.
41027         * MODULES.html.sh: Add lib-symbol-versions.
41028
41029 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41030
41031         * modules/u64-tests: New file.
41032         * tests/test-u64.c: New file.
41033
41034 2009-03-04  Simon Josefsson  <simon@josefsson.org>
41035
41036         * MODULES.html.sh: Mention u64.
41037         * modules/u64: New module.
41038         * modules/crypto/sha512: Depend on u64 module instead of providing
41039         u64.h.
41040
41041 2009-03-27  Eric Blake  <ebb9@byu.net>
41042
41043         test-strerror: make debugging EAI_SYSTEM easier
41044         * modules/getaddrinfo-tests (Depends-on): Add strerror.
41045         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
41046         failure was EAI_SYSTEM.
41047
41048 2009-03-25  Bruno Haible  <bruno@clisp.org>
41049
41050         Fix a problem with --enable-relocatable on Solaris 7.
41051         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
41052         since 2008-02-24.
41053
41054 2009-03-25  Eric Blake  <ebb9@byu.net>
41055
41056         test-sockets: avoid gcc warning
41057         * tests/test-sockets.c (main): Silence compiler warning.
41058
41059 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
41060
41061         New modules nproc, pthread, contributed by Glen Lenker.
41062
41063         * MODULES.html.sh: Add pthread, nproc.
41064         * lib/nproc.c: New file.
41065         * lib/nproc.h: New file.
41066         * lib/pthread.in.h: New file.
41067         * m4/pthread.m4: New file.
41068         * modules/nproc: New file.
41069         * modules/pthread: New file.
41070
41071 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41072
41073         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
41074         New variable.
41075
41076 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
41077
41078         filevercmp: handle simple~ and numbered.~3~ backup suffixes
41079         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
41080         * tests/test-filevercmp.c: Add tests for backup suffixes.
41081
41082 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41083
41084         * modules/stdlib (Depends-on): Add stdint, needed when defining
41085         struct random_data on, for example, HP-UX 10.20.  Reported by
41086         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41087
41088 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41089
41090         * lib/readline.c (readline): Call fflush on stdout after printing
41091         prompt.
41092
41093 2009-03-20  Bruno Haible  <bruno@clisp.org>
41094
41095         Remove dependency from 'close' module to -lws2_32 on native Windows.
41096         * lib/close-hook.h: New file.
41097         * lib/close-hook.c: New file.
41098         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
41099         w32sock.h.
41100         (_gl_close_fd_maybe_socket): Remove function.
41101         (rpl_close): Invoke execute_all_close_hooks instead of
41102         _gl_close_fd_maybe_socket.
41103         * lib/sockets.c: Include close-hook.h, w32sock.h.
41104         (close_fd_maybe_socket): New function, essentially from lib/close.c.
41105         (close_sockets_hook): New variable.
41106         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
41107         (gl_sockets_cleanup): Unregister it.
41108         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
41109         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
41110         * modules/close-hook: New file.
41111         * modules/close (Files): Remove lib/w32sock.h.
41112         (Depends-on): Add close-hook.
41113         (Link): Remove section.
41114         * modules/sockets (Files): Add lib/w32sock.h.
41115         (Depends-on): Add close-hook.
41116         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
41117         invocation.
41118         * NEWS: Mention that LIB_CLOSE is gone.
41119
41120 2009-03-23  Eric Blake  <ebb9@byu.net>
41121
41122         signal-tests: test previous patch
41123         * tests/test-signal.c: New file.
41124         * modules/signal-tests: Likewise.
41125
41126         signal.h: always support 'volatile sig_atomic_t'
41127         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
41128         (gl_SIGNAL_H_DEFAULTS): Add a default.
41129         * modules/signal (Makefile.am): Substitute if needed.
41130         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
41131         users can blindly add volatile.
41132         * doc/posix-headers/signal.texi (signal.h): Document it.
41133         Reported by Matthew Woehlke.
41134
41135 2009-03-23  Jim Meyering  <meyering@redhat.com>
41136
41137         pathmax: PATH_MAX: use pathconf only when available
41138         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
41139         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
41140         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
41141         This avoids a link failure in a PSP cross-compilation environment
41142         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
41143
41144         * lib/vasnprintf.c (divide): Fix typo in comment.
41145
41146 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41147
41148         * gnulib-tool (func_filter_filelist): Fix comment.
41149
41150 2009-03-20  Bruno Haible  <bruno@clisp.org>
41151
41152         Make sockets.h self-contained.
41153         * lib/sockets.c: Include sockets.h first.
41154         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
41155
41156 2009-03-19  Eric Blake  <ebb9@byu.net>
41157
41158         doc: mention more functions added in cygwin 1.7.0
41159         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
41160         addition.
41161         * doc/posix-functions/log2f.texi: Likewise.
41162
41163 2009-03-19  Jim Meyering  <meyering@redhat.com>
41164
41165         fsusage: avoid syntax error due to statement-before-declaration
41166         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
41167         after all declarations.  Reported by Matthew Woehlke in
41168         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
41169
41170 2009-03-18  Eric Blake  <ebb9@byu.net>
41171
41172         build-aux/compile: sync from automake
41173         * build-aux/compile: New file, from automake.
41174         * config/srclist.txt: Mention build-aux/compile.
41175
41176 2009-03-17  Bruno Haible  <bruno@clisp.org>
41177
41178         * lib/git-merge-changelog.c: Fix typo in comment.
41179         Reported by Reuben Thomas <rrt@sc3d.org>.
41180
41181 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
41182
41183         * m4/regex.m4: update and improve help for
41184         --without-included-regex.
41185
41186 2009-03-17  Simon Josefsson  <simon@josefsson.org>
41187
41188         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
41189         failure on missing include files.
41190
41191 2009-03-17  Eric Blake  <ebb9@byu.net>
41192
41193         doc: mention more functions added in cygwin 1.7.0
41194         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
41195         addition.
41196         * doc/posix-functions/fwscanf.texi: Likewise.
41197         * doc/posix-functions/swprintf.texi: Likewise.
41198         * doc/posix-functions/swscanf.texi: Likewise.
41199         * doc/posix-functions/vfwprintf.texi: Likewise.
41200         * doc/posix-functions/vfwscanf.texi: Likewise.
41201         * doc/posix-functions/vswprintf.texi: Likewise.
41202         * doc/posix-functions/vswscanf.texi: Likewise.
41203         * doc/posix-functions/vwprintf.texi: Likewise.
41204         * doc/posix-functions/vwscanf.texi: Likewise.
41205         * doc/posix-functions/wcscasecmp.texi: Likewise.
41206         * doc/posix-functions/wcsdup.texi: Likewise.
41207         * doc/posix-functions/wcsftime.texi: Likewise.
41208         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41209         * doc/posix-functions/wprintf.texi: Likewise.
41210         * doc/posix-functions/wscanf.texi: Likewise.
41211         * doc/glibc-functions/gethostbyname2.texi: Likewise.
41212
41213 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41214
41215         maint.mk: really add $(AM_MAKEFLAGS)
41216         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
41217         was inadvertently omitted in the last commit.
41218         Spotted by Bruno Haible.
41219
41220         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
41221         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
41222         $(AM_MAKEFLAGS)' rather than plain `make'.
41223
41224         gnulib-tool: execute $MAKE not make
41225         * gnulib-tool: Default $MAKE to 'make'.
41226         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
41227         than make.  Initialize $MAKE in the do-autobuild script.
41228
41229         gnulib-tool: use $MAKE not make in generated files
41230         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
41231         make, in generated files.  Initialize $MAKE in the do-autobuild
41232         script.
41233
41234         * top/GNUmakefile (_have-git-version-gen): Fix typo.
41235
41236         GNUmakefile: disable parallelism only for multiple, recursive targets
41237         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
41238         additions in the Makefile.
41239         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
41240         by Automake.
41241         (.NOTPARALLEL): Only disable parallel builds if multiple targets
41242         are listed on the command line and at least one of them is
41243         listed in $(ALL_RECURSIVE_TARGETS).
41244
41245 2009-03-14  Bruno Haible  <bruno@clisp.org>
41246
41247         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
41248         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
41249         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
41250         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
41251         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
41252         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
41253         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
41254         unistr/u8-uctomb.
41255         * modules/unistr/u8-strchr (Depends-on): Likewise.
41256         * modules/unistr/u8-strrchr (Depends-on): Likewise.
41257         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
41258         unistr/u16-uctomb.
41259         * modules/unistr/u16-strchr (Depends-on): Likewise.
41260         * modules/unistr/u16-strrchr (Depends-on): Likewise.
41261
41262 2009-03-12  Bruno Haible  <bruno@clisp.org>
41263
41264         Work around select() bug on Interix 3.5.
41265         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
41266         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
41267         * m4/select.m4: New file.
41268         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
41269         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
41270         * modules/select (Files): Add m4/select.m4.
41271         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
41272         * modules/nanosleep (Depends-on): Add select.
41273         * modules/poll (Depends-on): Likewise.
41274         * doc/posix-functions/select.texi: Mention the Interix bug.
41275         Reported by Markus Duft <mduft@gentoo.org>.
41276
41277         * lib/select.c: Renamed from lib/winsock-select.c.
41278         * modules/select (Files): Add lib/select.c, remove
41279         lib/winsock-select.c.
41280         (configure.ac): Update.
41281
41282 2009-03-12  Jim Meyering  <meyering@redhat.com>
41283
41284         avoid gcc warnings about unused macro definitions
41285         * lib/readtokens.c (STREQ): Remove unused definition.
41286         * lib/xmalloc.c (SIZE_MAX): Likewise.
41287         * lib/openat-die.c (N_): Likewise.
41288         * lib/mountlist.c (SIZE_MAX): Remove definition.
41289         Instead, include <stdint.h>.
41290         * lib/readutmp.c: Likewise.
41291         * modules/readutmp (Depends-on): Add stdint.
41292         * modules/mountlist (Depends-on): Add stdint.
41293         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
41294
41295 2009-03-10  Bruno Haible  <bruno@clisp.org>
41296
41297         Tests for module 'mbmemcasecoll'.
41298         * modules/mbmemcasecoll-tests: New file.
41299         * tests/test-mbmemcasecoll1.sh: New file.
41300         * tests/test-mbmemcasecoll2.sh: New file.
41301         * tests/test-mbmemcasecoll3.sh: New file.
41302         * tests/test-mbmemcasecoll.c: New file.
41303
41304         New module 'mbmemcasecoll'.
41305         * lib/mbmemcasecoll.h: New file.
41306         * lib/mbmemcasecoll.c: New file.
41307         * modules/mbmemcasecoll: New file.
41308
41309         * tests/test-mbmemcasecmp.h: New file, extracted from
41310         tests/test-mbmemcasecmp.c.
41311         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
41312         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
41313         (main): Update.
41314         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
41315
41316 2009-03-09  Bruno Haible  <bruno@clisp.org>
41317
41318         Tests for module 'mbmemcasecmp'.
41319         * modules/mbmemcasecmp-tests: New file.
41320         * tests/test-mbmemcasecmp1.sh: New file.
41321         * tests/test-mbmemcasecmp2.sh: New file.
41322         * tests/test-mbmemcasecmp3.sh: New file.
41323         * tests/test-mbmemcasecmp.c: New file.
41324
41325         New module 'mbmemcasecmp'.
41326         * lib/mbmemcasecmp.h: New file.
41327         * lib/mbmemcasecmp.c: New file.
41328         * modules/mbmemcasecmp: New file.
41329
41330 2009-03-09  Bruno Haible  <bruno@clisp.org>
41331
41332         Tests for module 'unicase/ulc-casecoll'.
41333         * modules/unicase/ulc-casecoll-tests: New file.
41334         * tests/unicase/test-ulc-casecoll1.sh: New file.
41335         * tests/unicase/test-ulc-casecoll2.sh: New file.
41336         * tests/unicase/test-ulc-casecoll.c: New file.
41337
41338         New module 'unicase/ulc-casecoll'.
41339         * lib/unicase.h (ulc_casecoll): New declaration.
41340         * lib/unicase/ulc-casecoll.c: New file.
41341         * modules/unicase/ulc-casecoll: New file.
41342
41343         New module 'unicase/ulc-casexfrm'.
41344         * lib/unicase.h (ulc_casexfrm): New declaration.
41345         * lib/unicase/ulc-casexfrm.c: New file.
41346         * modules/unicase/ulc-casexfrm: New file.
41347
41348 2009-03-09  Bruno Haible  <bruno@clisp.org>
41349
41350         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
41351         invocations.
41352
41353         * m4/mbscasecmp.m4: Remove file.
41354         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
41355         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
41356
41357         * m4/mbscasestr.m4: Remove file.
41358         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
41359         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
41360
41361         * m4/mbschr.m4: Remove file.
41362         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
41363         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
41364
41365         * m4/mbscspn.m4: Remove file.
41366         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
41367         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
41368
41369         * m4/mbslen.m4: Remove file.
41370         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
41371         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
41372
41373         * m4/mbsncasecmp.m4: Remove file.
41374         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
41375         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
41376
41377         * m4/mbsnlen.m4: Remove file.
41378         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
41379         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
41380
41381         * m4/mbspbrk.m4: Remove file.
41382         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
41383         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
41384
41385         * m4/mbspcasecmp.m4: Remove file.
41386         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
41387         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
41388
41389         * m4/mbsrchr.m4: Remove file.
41390         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
41391         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
41392
41393         * m4/mbssep.m4: Remove file.
41394         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
41395         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
41396
41397         * m4/mbsspn.m4: Remove file.
41398         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
41399         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
41400
41401         * m4/mbsstr.m4: Remove file.
41402         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
41403         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
41404
41405         * m4/mbstok_r.m4: Remove file.
41406         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
41407         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
41408
41409         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
41410
41411         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
41412         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
41413
41414         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
41415
41416 2009-03-08  Bruno Haible  <bruno@clisp.org>
41417
41418         Tests for module 'unicase/ulc-casecmp'.
41419         * modules/unicase/ulc-casecmp-tests: New file.
41420         * tests/unicase/test-ulc-casecmp1.sh: New file.
41421         * tests/unicase/test-ulc-casecmp2.sh: New file.
41422         * tests/unicase/test-ulc-casecmp.c: New file.
41423
41424         New module 'unicase/ulc-casecmp'.
41425         * lib/unicase.h (ulc_casecmp): New declaration.
41426         * lib/unicase/ulc-casecmp.c: New file.
41427         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
41428         'const SRC_UNIT *'.
41429         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
41430         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
41431         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
41432         * modules/unicase/ulc-casecmp: New file.
41433
41434         Tests for module 'unicase/u32-is-cased'.
41435         * modules/unicase/u32-is-cased-tests: New file.
41436         * tests/unicase/test-u32-is-cased.c: New file.
41437
41438         Tests for module 'unicase/u16-is-cased'.
41439         * modules/unicase/u16-is-cased-tests: New file.
41440         * tests/unicase/test-u16-is-cased.c: New file.
41441
41442         Tests for module 'unicase/u8-is-cased'.
41443         * modules/unicase/u8-is-cased-tests: New file.
41444         * tests/unicase/test-u8-is-cased.c: New file.
41445         * tests/unicase/test-is-cased.h: New file.
41446
41447         New module 'unicase/u32-is-cased'.
41448         * lib/unicase/u32-is-cased.c: New file.
41449         * modules/unicase/u32-is-cased: New file.
41450
41451         New module 'unicase/u16-is-cased'.
41452         * lib/unicase/u16-is-cased.c: New file.
41453         * modules/unicase/u16-is-cased: New file.
41454
41455         New module 'unicase/u8-is-cased'.
41456         * lib/unicase/u8-is-cased.c: New file.
41457         * lib/unicase/u-is-cased.h: New file.
41458         * modules/unicase/u8-is-cased: New file.
41459
41460         Tests for module 'unicase/u32-is-casefolded'.
41461         * modules/unicase/u32-is-casefolded-tests: New file.
41462         * tests/unicase/test-u32-is-casefolded.c: New file.
41463
41464         Tests for module 'unicase/u16-is-casefolded'.
41465         * modules/unicase/u16-is-casefolded-tests: New file.
41466         * tests/unicase/test-u16-is-casefolded.c: New file.
41467
41468         Tests for module 'unicase/u8-is-casefolded'.
41469         * modules/unicase/u8-is-casefolded-tests: New file.
41470         * tests/unicase/test-u8-is-casefolded.c: New file.
41471         * tests/unicase/test-is-casefolded.h: New file.
41472
41473         New module 'unicase/u32-is-casefolded'.
41474         * lib/unicase/u32-is-casefolded.c: New file.
41475         * modules/unicase/u32-is-casefolded: New file.
41476
41477         New module 'unicase/u16-is-casefolded'.
41478         * lib/unicase/u16-is-casefolded.c: New file.
41479         * modules/unicase/u16-is-casefolded: New file.
41480
41481         New module 'unicase/u8-is-casefolded'.
41482         * lib/unicase/u8-is-casefolded.c: New file.
41483         * modules/unicase/u8-is-casefolded: New file.
41484
41485         Tests for module 'unicase/u32-is-titlecase'.
41486         * modules/unicase/u32-is-titlecase-tests: New file.
41487         * tests/unicase/test-u32-is-titlecase.c: New file.
41488
41489         Tests for module 'unicase/u16-is-titlecase'.
41490         * modules/unicase/u16-is-titlecase-tests: New file.
41491         * tests/unicase/test-u16-is-titlecase.c: New file.
41492
41493         Tests for module 'unicase/u8-is-titlecase'.
41494         * modules/unicase/u8-is-titlecase-tests: New file.
41495         * tests/unicase/test-u8-is-titlecase.c: New file.
41496         * tests/unicase/test-is-titlecase.h: New file.
41497
41498         New module 'unicase/u32-is-titlecase'.
41499         * lib/unicase/u32-is-titlecase.c: New file.
41500         * modules/unicase/u32-is-titlecase: New file.
41501
41502         New module 'unicase/u16-is-titlecase'.
41503         * lib/unicase/u16-is-titlecase.c: New file.
41504         * modules/unicase/u16-is-titlecase: New file.
41505
41506         New module 'unicase/u8-is-titlecase'.
41507         * lib/unicase/u8-is-titlecase.c: New file.
41508         * modules/unicase/u8-is-titlecase: New file.
41509
41510         Tests for module 'unicase/u32-is-lowercase'.
41511         * modules/unicase/u32-is-lowercase-tests: New file.
41512         * tests/unicase/test-u32-is-lowercase.c: New file.
41513
41514         Tests for module 'unicase/u16-is-lowercase'.
41515         * modules/unicase/u16-is-lowercase-tests: New file.
41516         * tests/unicase/test-u16-is-lowercase.c: New file.
41517
41518         Tests for module 'unicase/u8-is-lowercase'.
41519         * modules/unicase/u8-is-lowercase-tests: New file.
41520         * tests/unicase/test-u8-is-lowercase.c: New file.
41521         * tests/unicase/test-is-lowercase.h: New file.
41522
41523         New module 'unicase/u32-is-lowercase'.
41524         * lib/unicase/u32-is-lowercase.c: New file.
41525         * modules/unicase/u32-is-lowercase: New file.
41526
41527         New module 'unicase/u16-is-lowercase'.
41528         * lib/unicase/u16-is-lowercase.c: New file.
41529         * modules/unicase/u16-is-lowercase: New file.
41530
41531         New module 'unicase/u8-is-lowercase'.
41532         * lib/unicase/u8-is-lowercase.c: New file.
41533         * modules/unicase/u8-is-lowercase: New file.
41534
41535         Tests for module 'unicase/u32-is-uppercase'.
41536         * modules/unicase/u32-is-uppercase-tests: New file.
41537         * tests/unicase/test-u32-is-uppercase.c: New file.
41538
41539         Tests for module 'unicase/u16-is-uppercase'.
41540         * modules/unicase/u16-is-uppercase-tests: New file.
41541         * tests/unicase/test-u16-is-uppercase.c: New file.
41542
41543         Tests for module 'unicase/u8-is-uppercase'.
41544         * modules/unicase/u8-is-uppercase-tests: New file.
41545         * tests/unicase/test-u8-is-uppercase.c: New file.
41546         * tests/unicase/test-is-uppercase.h: New file.
41547
41548         New module 'unicase/u32-is-uppercase'.
41549         * lib/unicase/u32-is-uppercase.c: New file.
41550         * modules/unicase/u32-is-uppercase: New file.
41551
41552         New module 'unicase/u16-is-uppercase'.
41553         * lib/unicase/u16-is-uppercase.c: New file.
41554         * modules/unicase/u16-is-uppercase: New file.
41555
41556         New module 'unicase/u8-is-uppercase'.
41557         * lib/unicase/u8-is-uppercase.c: New file.
41558         * modules/unicase/u8-is-uppercase: New file.
41559
41560         New module 'unicase/u32-is-invariant'.
41561         * lib/unicase/u32-is-invariant.c: New file.
41562         * modules/unicase/u32-is-invariant: New file.
41563
41564         New module 'unicase/u16-is-invariant'.
41565         * lib/unicase/u16-is-invariant.c: New file.
41566         * modules/unicase/u16-is-invariant: New file.
41567
41568         New module 'unicase/u8-is-invariant'.
41569         * lib/unicase/u8-is-invariant.c: New file.
41570         * lib/unicase/invariant.h: New file.
41571         * lib/unicase/u-is-invariant.h: New file.
41572         * modules/unicase/u8-is-invariant: New file.
41573
41574         Tests for module 'unicase/u32-casecoll'.
41575         * modules/unicase/u32-casecoll-tests: New file.
41576         * tests/unicase/test-u32-casecoll.c: New file.
41577
41578         Tests for module 'unicase/u16-casecoll'.
41579         * modules/unicase/u16-casecoll-tests: New file.
41580         * tests/unicase/test-u16-casecoll.c: New file.
41581
41582         Tests for module 'unicase/u8-casecoll'.
41583         * modules/unicase/u8-casecoll-tests: New file.
41584         * tests/unicase/test-u8-casecoll.c: New file.
41585
41586         New module 'unicase/u32-casecoll'.
41587         * lib/unicase/u32-casecoll.c: New file.
41588         * modules/unicase/u32-casecoll: New file.
41589
41590         New module 'unicase/u16-casecoll'.
41591         * lib/unicase/u16-casecoll.c: New file.
41592         * modules/unicase/u16-casecoll: New file.
41593
41594         New module 'unicase/u8-casecoll'.
41595         * lib/unicase/u8-casecoll.c: New file.
41596         * lib/unicase/u-casecoll.h: New file.
41597         * modules/unicase/u8-casecoll: New file.
41598
41599         New module 'unicase/u32-casexfrm'.
41600         * lib/unicase/u32-casexfrm.c: New file.
41601         * modules/unicase/u32-casexfrm: New file.
41602
41603         New module 'unicase/u16-casexfrm'.
41604         * lib/unicase/u16-casexfrm.c: New file.
41605         * modules/unicase/u16-casexfrm: New file.
41606
41607         New module 'unicase/u8-casexfrm'.
41608         * lib/unicase/u8-casexfrm.c: New file.
41609         * lib/unicase/u-casexfrm.h: New file.
41610         * modules/unicase/u8-casexfrm: New file.
41611
41612         Tests for module 'unicase/u32-casecmp'.
41613         * modules/unicase/u32-casecmp-tests: New file.
41614         * tests/unicase/test-u32-casecmp.c: New file.
41615
41616         Tests for module 'unicase/u16-casecmp'.
41617         * modules/unicase/u16-casecmp-tests: New file.
41618         * tests/unicase/test-u16-casecmp.c: New file.
41619
41620         Tests for module 'unicase/u8-casecmp'.
41621         * modules/unicase/u8-casecmp-tests: New file.
41622         * tests/unicase/test-u8-casecmp.c: New file.
41623         * tests/unicase/test-casecmp.h: New file.
41624
41625         New module 'unicase/u32-casecmp'.
41626         * lib/unicase/u32-casecmp.c: New file.
41627         * modules/unicase/u32-casecmp: New file.
41628
41629         New module 'unicase/u16-casecmp'.
41630         * lib/unicase/u16-casecmp.c: New file.
41631         * modules/unicase/u16-casecmp: New file.
41632
41633         New module 'unicase/u8-casecmp'.
41634         * lib/unicase/u8-casecmp.c: New file.
41635         * lib/unicase/u-casecmp.h: New file.
41636         * modules/unicase/u8-casecmp: New file.
41637
41638         Tests for module 'unicase/u32-casefold'.
41639         * modules/unicase/u32-casefold-tests: New file.
41640         * tests/unicase/test-u32-casefold.c: New file.
41641
41642         Tests for module 'unicase/u16-casefold'.
41643         * modules/unicase/u16-casefold-tests: New file.
41644         * tests/unicase/test-u16-casefold.c: New file.
41645
41646         Tests for module 'unicase/u8-casefold'.
41647         * modules/unicase/u8-casefold-tests: New file.
41648         * tests/unicase/test-u8-casefold.c: New file.
41649
41650         New module 'unicase/u32-casefold'.
41651         * lib/unicase/u32-casefold.c: New file.
41652         * modules/unicase/u32-casefold: New file.
41653
41654         New module 'unicase/u16-casefold'.
41655         * lib/unicase/u16-casefold.c: New file.
41656         * modules/unicase/u16-casefold: New file.
41657
41658         New module 'unicase/u8-casefold'.
41659         * lib/unicase/u8-casefold.c: New file.
41660         * lib/unicase/u-casefold.h: New file.
41661         * modules/unicase/u8-casefold: New file.
41662
41663         New module 'unicase/tocasefold'.
41664         * lib/unicase/casefold.h: New file.
41665         * lib/unicase/tocasefold.c: New file.
41666         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
41667         * modules/unicase/tocasefold: New file.
41668
41669         Tests for module 'unicase/u32-totitle'.
41670         * modules/unicase/u32-totitle-tests: New file.
41671         * tests/unicase/test-u32-totitle.c: New file.
41672
41673         Tests for module 'unicase/u16-totitle'.
41674         * modules/unicase/u16-totitle-tests: New file.
41675         * tests/unicase/test-u16-totitle.c: New file.
41676
41677         Tests for module 'unicase/u8-totitle'.
41678         * modules/unicase/u8-totitle-tests: New file.
41679         * tests/unicase/test-u8-totitle.c: New file.
41680
41681         New module 'unicase/u32-totitle'.
41682         * lib/unicase/u32-totitle.c: New file.
41683         * modules/unicase/u32-totitle: New file.
41684
41685         New module 'unicase/u16-totitle'.
41686         * lib/unicase/u16-totitle.c: New file.
41687         * modules/unicase/u16-totitle: New file.
41688
41689         New module 'unicase/u8-totitle'.
41690         * lib/unicase/u8-totitle.c: New file.
41691         * lib/unicase/u-totitle.h: New file.
41692         * modules/unicase/u8-totitle: New file.
41693
41694         Tests for module 'unicase/u32-tolower'.
41695         * modules/unicase/u32-tolower-tests: New file.
41696         * tests/unicase/test-u32-tolower.c: New file.
41697
41698         Tests for module 'unicase/u16-tolower'.
41699         * modules/unicase/u16-tolower-tests: New file.
41700         * tests/unicase/test-u16-tolower.c: New file.
41701
41702         Tests for module 'unicase/u8-tolower'.
41703         * modules/unicase/u8-tolower-tests: New file.
41704         * tests/unicase/test-u8-tolower.c: New file.
41705
41706         New module 'unicase/u32-tolower'.
41707         * lib/unicase/u32-tolower.c: New file.
41708         * modules/unicase/u32-tolower: New file.
41709
41710         New module 'unicase/u16-tolower'.
41711         * lib/unicase/u16-tolower.c: New file.
41712         * modules/unicase/u16-tolower: New file.
41713
41714         New module 'unicase/u8-tolower'.
41715         * lib/unicase/u8-tolower.c: New file.
41716         * modules/unicase/u8-tolower: New file.
41717
41718         Tests for module 'unicase/u32-toupper'.
41719         * modules/unicase/u32-toupper-tests: New file.
41720         * tests/unicase/test-u32-toupper.c: New file.
41721
41722         Tests for module 'unicase/u16-toupper'.
41723         * modules/unicase/u16-toupper-tests: New file.
41724         * tests/unicase/test-u16-toupper.c: New file.
41725
41726         Tests for module 'unicase/u8-toupper'.
41727         * modules/unicase/u8-toupper-tests: New file.
41728         * tests/unicase/test-u8-toupper.c: New file.
41729
41730         New module 'unicase/u32-toupper'.
41731         * lib/unicase/u32-toupper.c: New file.
41732         * modules/unicase/u32-toupper: New file.
41733
41734         New module 'unicase/u16-toupper'.
41735         * lib/unicase/u16-toupper.c: New file.
41736         * modules/unicase/u16-toupper: New file.
41737
41738         New module 'unicase/u8-toupper'.
41739         * lib/unicase/u8-toupper.c: New file.
41740         * modules/unicase/u8-toupper: New file.
41741
41742         New module 'unicase/u32-casemap'.
41743         * lib/unicase/u32-casemap.c: New file.
41744         * modules/unicase/u32-casemap: New file.
41745
41746         New module 'unicase/u16-casemap'.
41747         * lib/unicase/u16-casemap.c: New file.
41748         * modules/unicase/u16-casemap: New file.
41749
41750         New module 'unicase/u8-casemap'.
41751         * lib/unicase/unicasemap.h: New file.
41752         * lib/unicase/u8-casemap.c: New file.
41753         * lib/unicase/u-casemap.h: New file.
41754         * modules/unicase/u8-casemap: New file.
41755
41756         New module 'unicase/special-casing'.
41757         * lib/unicase/special-casing.h: New file.
41758         * lib/unicase/special-casing.c: New file.
41759         * lib/unicase/special-casing-table.gperf: New file, generated by
41760         gen-uni-tables.c.
41761         * modules/unicase/special-casing: New file.
41762
41763         Tests for module 'unicase/locale-language'.
41764         * modules/unicase/locale-language-tests: New file.
41765         * tests/unicase/test-locale-language.sh: New file.
41766         * tests/unicase/test-locale-language.c: New file.
41767
41768         New module 'unicase/locale-language'.
41769         * lib/unicase/locale-language.c: New file.
41770         * lib/unicase/locale-languages.gperf: New file.
41771         * modules/unicase/locale-language: New file.
41772
41773         Generate more tables for case conversion and case folding.
41774         * lib/gen-uni-tables.c (SCC_*): New enum items.
41775         (struct special_casing_rule): New type.
41776         (casing_rules, num_casing_rules, allocated_casing_rules): New
41777         variables.
41778         (add_casing_rule, fill_casing_rules): New functions.
41779         (struct casefold_rule): New type.
41780         (casefolding_rules, num_casefolding_rules,
41781         allocated_casefolding_rules): New variables.
41782         (fill_casefolding_rules): New function.
41783         (unicode_casefold): New variable.
41784         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
41785         sort_casing_rules, output_casing_rules): New functions.
41786         (main): Accept to more arguments: SpecialCasing.txt and
41787         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
41788         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
41789         Output mapping for casefolding.
41790
41791         * lib/unicase.h: Include stdbool.h, uninorm.h.
41792         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
41793         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
41794         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
41795         arguments.
41796         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
41797         resultp arguments.
41798         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
41799         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
41800         resultp arguments.
41801         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
41802         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
41803         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
41804         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
41805         declarations.
41806         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
41807
41808 2009-03-08  Bruno Haible  <bruno@clisp.org>
41809
41810         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41811         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
41812         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
41813         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41814
41815 2009-03-07  Bruno Haible  <bruno@clisp.org>
41816
41817         Adjust u*_normcmp, u*_normcoll API.
41818         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41819         u16_normcoll, u32_normcoll): Change failure conventions.
41820         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
41821         errno and return -1.
41822         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41823
41824 2009-03-07  Bruno Haible  <bruno@clisp.org>
41825
41826         Tests for module 'uninorm/u32-normcoll'.
41827         * modules/uninorm/u32-normcoll-tests: New file.
41828         * tests/uninorm/test-u32-normcoll.c: New file.
41829
41830         Tests for module 'uninorm/u16-normcoll'.
41831         * modules/uninorm/u16-normcoll-tests: New file.
41832         * tests/uninorm/test-u16-normcoll.c: New file.
41833
41834         Tests for module 'uninorm/u8-normcoll'.
41835         * modules/uninorm/u8-normcoll-tests: New file.
41836         * tests/uninorm/test-u8-normcoll.c: New file.
41837
41838 2009-03-07  Bruno Haible  <bruno@clisp.org>
41839
41840         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
41841         tests/uninorm/test-u32-normcmp.c.
41842         * tests/uninorm/test-u32-normcmp.c: Include it.
41843         (test_nonascii): New function, extracted from main. Add some more
41844         tests.
41845         (main): Invoke test_ascii and test_nonascii.
41846         * modules/uninorm/u32-normcmp-tests (Files): Add
41847         tests/uninorm/test-u32-normcmp.h.
41848         (Depends-on): Remove uninorm/u32-normcmp.
41849
41850         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
41851         tests/uninorm/test-u16-normcmp.c.
41852         * tests/uninorm/test-u16-normcmp.c: Include it.
41853         (test_nonascii): New function, extracted from main. Add some more
41854         tests.
41855         (main): Invoke test_ascii and test_nonascii.
41856         * modules/uninorm/u16-normcmp-tests (Files): Add
41857         tests/uninorm/test-u16-normcmp.h.
41858         (Depends-on): Remove uninorm/u16-normcmp.
41859
41860         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
41861         tests/uninorm/test-u8-normcmp.c.
41862         * tests/uninorm/test-u8-normcmp.c: Include it.
41863         (test_nonascii): New function, extracted from main. Add some more
41864         tests.
41865         (main): Invoke test_ascii and test_nonascii.
41866         * modules/uninorm/u8-normcmp-tests (Files): Add
41867         tests/uninorm/test-u8-normcmp.h.
41868         (Depends-on): Remove uninorm/u8-normcmp.
41869
41870 2009-03-07  Bruno Haible  <bruno@clisp.org>
41871
41872         New module 'uninorm/u32-normcoll'.
41873         * lib/uninorm/u32-normcoll.c: New file.
41874         * modules/uninorm/u32-normcoll: New file.
41875
41876         New module 'uninorm/u16-normcoll'.
41877         * lib/uninorm/u16-normcoll.c: New file.
41878         * modules/uninorm/u16-normcoll: New file.
41879
41880         New module 'uninorm/u8-normcoll'.
41881         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
41882         declarations.
41883         * lib/uninorm/u8-normcoll.c: New file.
41884         * lib/uninorm/u-normcoll.h: New file.
41885         * modules/uninorm/u8-normcoll: New file.
41886
41887         New module 'uninorm/u32-normxfrm'.
41888         * lib/uninorm/u32-normxfrm.c: New file.
41889         * modules/uninorm/u32-normxfrm: New file.
41890
41891         New module 'uninorm/u16-normxfrm'.
41892         * lib/uninorm/u16-normxfrm.c: New file.
41893         * modules/uninorm/u16-normxfrm: New file.
41894
41895         New module 'uninorm/u8-normxfrm'.
41896         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
41897         declarations.
41898         * lib/uninorm/u8-normxfrm.c: New file.
41899         * lib/uninorm/u-normxfrm.h: New file.
41900         * modules/uninorm/u8-normxfrm: New file.
41901
41902 2009-03-07  Bruno Haible  <bruno@clisp.org>
41903
41904         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
41905         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
41906         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
41907
41908 2009-03-07  Bruno Haible  <bruno@clisp.org>
41909
41910         New module 'memxfrm'.
41911         * lib/memxfrm.h: New file.
41912         * lib/memxfrm.c: New file.
41913         * modules/memxfrm: New file.
41914
41915 2009-03-07  Bruno Haible  <bruno@clisp.org>
41916
41917         New module 'memcmp2'.
41918         * lib/memcmp2.h: New file.
41919         * lib/memcmp2.c: New file.
41920         * modules/memcmp2: New file.
41921
41922 2009-03-07  Bruno Haible  <bruno@clisp.org>
41923
41924         Tests for module 'uninorm/decomposing-form'.
41925         * modules/uninorm/decomposing-form-tests: New file.
41926         * tests/uninorm/test-decomposing-form.c: New file.
41927
41928         New module 'uninorm/decomposing-form'.
41929         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
41930         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
41931         Add 'decomposing_variant' field.
41932         * lib/uninorm/decomposing-form.c: New file.
41933         * lib/uninorm/nfc.c (uninorm_nfc): Update.
41934         * lib/uninorm/nfd.c (uninorm_nfd): Update.
41935         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
41936         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
41937         * modules/uninorm/decomposing-form: New file.
41938         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
41939         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
41940
41941 2009-03-07  Bruno Haible  <bruno@clisp.org>
41942
41943         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
41944         strings.
41945
41946 2009-03-06  Bruno Haible  <bruno@clisp.org>
41947
41948         Tests for module 'uninorm/u32-normcmp'.
41949         * tests/uninorm/test-u32-normcmp.c: New file.
41950         * modules/uninorm/u32-normcmp-tests: New file.
41951
41952         Tests for module 'uninorm/u16-normcmp'.
41953         * tests/uninorm/test-u16-normcmp.c: New file.
41954         * modules/uninorm/u16-normcmp-tests: New file.
41955
41956         Tests for module 'uninorm/u8-normcmp'.
41957         * tests/uninorm/test-u8-normcmp.c: New file.
41958         * modules/uninorm/u8-normcmp-tests: New file.
41959
41960         New module 'uninorm/u32-normcmp'.
41961         * lib/uninorm/u32-normcmp.c: New file.
41962         * modules/uninorm/u32-normcmp: New file.
41963
41964         New module 'uninorm/u16-normcmp'.
41965         * lib/uninorm/u16-normcmp.c: New file.
41966         * modules/uninorm/u16-normcmp: New file.
41967
41968         New module 'uninorm/u8-normcmp'.
41969         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
41970         declarations.
41971         * lib/uninorm/u8-normcmp.c: New file.
41972         * lib/uninorm/u-normcmp.h: New file.
41973         * modules/uninorm/u8-normcmp: New file.
41974
41975 2009-03-06  Bruno Haible  <bruno@clisp.org>
41976
41977         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
41978         Reported by Eric Blake.
41979
41980 2009-03-06  Eric Blake  <ebb9@byu.net>
41981             Bruno Haible  <bruno@clisp.org>
41982
41983         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
41984         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
41985         condition.
41986         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41987         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
41988         condition.
41989         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41990
41991 2009-03-06  Eric Blake  <ebb9@byu.net>
41992
41993         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
41994         to avoid compiler warnings.
41995         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
41996
41997 2009-03-05  Bruno Haible  <bruno@clisp.org>
41998
41999         * tests/test-ftell.c (main): Disable test beyond end of file on
42000         FreeMiNT.
42001         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42002
42003 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
42004
42005         * lib/filevercmp.c: Move hidden files up in ordering.
42006         * tests/test-filevercmp.c: Add tests for hidden files.
42007
42008 2009-03-04  Bruno Haible  <bruno@clisp.org>
42009
42010         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
42011         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
42012         AM_CFLAGS.
42013         Reported by Simon Josefsson.
42014
42015 2009-03-03  Bruno Haible  <bruno@clisp.org>
42016
42017         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
42018         Reported by Simon Josefsson.
42019
42020         * doc/ld-version-script.texi: Update node reference.
42021
42022 2009-03-03  Bruno Haible  <bruno@clisp.org>
42023
42024         * modules/visibility (License): Change to 'unlimited'.
42025         Suggested by Simon Josefsson.
42026
42027 2009-03-03  Jim Meyering  <meyering@redhat.com>
42028
42029         unlinkdir: cannot_unlink_dir may modify process state
42030         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
42031         it's neither thread-safe nor appropriate for use in a library.
42032
42033 2009-03-03  Eric Blake  <ebb9@byu.net>
42034
42035         test-closein: silence test under Darwin
42036         * tests/test-closein.sh: Ignore stderr from cat, since we don't
42037         care if it dies from EPIPE or EBADF.
42038
42039 2009-03-03  Bruno Haible  <bruno@clisp.org>
42040
42041         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
42042         earlier.
42043         * doc/visibility.texi: Fix @node and @section.
42044
42045 2009-03-03  Simon Josefsson  <simon@josefsson.org>
42046
42047         * doc/gnulib.texi: Link to sections for ld version script and
42048         visibility.
42049         * doc/visibility.texi: Add @node and @section.
42050         * modules/ld-version-script: New module.
42051         * m4/ld-version-script.m4: New file.
42052         * doc/ld-version-script.texi: New file.
42053
42054 2009-03-02  David Lutterkort  <lutter@redhat.com>
42055
42056         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
42057         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42058
42059 2009-03-02  Bruno Haible  <bruno@clisp.org>
42060
42061         * doc/visibility.texi: Mention libtool's -export-symbols option.
42062
42063 2009-03-02  Jim Meyering  <meyering@redhat.com>
42064
42065         announce-gen: new option: --no-print-checksums
42066         * build-aux/announce-gen (usage): Describe it.
42067         (print_checksums): Print a newline here, not in the [*] footnote.
42068         (main): Honor it.
42069
42070 2009-03-01  Bruno Haible  <bruno@clisp.org>
42071
42072         Use socklen_t in the native Windows replacements prototypes.
42073         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
42074         instead of 'int'.
42075         * lib/getsockopt.c (rpl_getsockopt): Likewise.
42076         * lib/setsockopt.c (rpl_setsockopt): Likewise.
42077         * modules/getsockopt (Depends-on): Add socklen.
42078         * modules/setsockopt (Depends-on): Add socklen.
42079
42080 2009-03-01  Bruno Haible  <bruno@clisp.org>
42081
42082         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
42083         least 4.2.
42084
42085 2009-03-01  Eric Blake  <ebb9@byu.net>
42086             Bruno Haible  <bruno@clisp.org>
42087
42088         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
42089         error messages.
42090         * lib/wait-process.c (wait_subprocess): Omit error message about
42091         deadly signal sent to the child of termsigp != NULL.
42092
42093 2009-03-01  Eric Blake  <ebb9@byu.net>
42094
42095         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
42096
42097 2009-03-01  Bruno Haible  <bruno@clisp.org>
42098
42099         Avoid a gcc warning.
42100         * tests/test-sched.c (b): Make global.
42101         Reported by Eric Blake.
42102
42103 2009-01-19  Martin Lambers  <marlam@marlam.de>
42104
42105         Provide POSIX semantics for socket timeout options on W32.
42106         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
42107         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
42108         * modules/setsockopt: Depend on sys_time module for struct timeval.
42109         * modules/getsockopt: Depend on sys_time module for struct timeval.
42110
42111 2009-03-01  Simon Josefsson  <simon@josefsson.org>
42112
42113         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
42114         __USE_GNU, for consistency with netdb.in.h.
42115         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42116
42117 2009-03-01  Bruno Haible  <bruno@clisp.org>
42118
42119         More support for FreeMiNT.
42120         * lib/fseeko.c (rpl_fseeko): Complete last commit.
42121         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42122
42123 2009-03-01  Bruno Haible  <bruno@clisp.org>
42124
42125         More support for FreeMiNT.
42126         * lib/fpurge.c (fpurge): Correct last commit.
42127         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42128
42129 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42130
42131         Fix unportable awk script in vc-list-files.
42132         * build-aux/vc-list-files: In the replacement awk script, use
42133         substr with a second argument of 1, not zero.
42134         Report by Simon Josefsson.
42135
42136 2009-02-28  Bruno Haible  <bruno@clisp.org>
42137
42138         More support for FreeMiNT.
42139         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
42140         to FreeMiNT today.
42141         * lib/fwriting.c (fwriting): Likewise.
42142         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
42143
42144 2009-02-28  Bruno Haible  <bruno@clisp.org>
42145
42146         * tests/test-freadseek.c (main): Disable test beyond end of file on
42147         FreeMiNT.
42148         * tests/test-ftello.c (main): Likewise.
42149         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42150
42151 2009-02-28  Bruno Haible  <bruno@clisp.org>
42152
42153         Add tentative support for FreeMiNT.
42154         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
42155         * lib/fpurge.c (fpurge): Likewise.
42156         * lib/freadable.c (freadable): Likewise.
42157         * lib/freading.c (freading): Likewise.
42158         * lib/freadptr.c (freadptr): Likewise.
42159         * lib/freadseek.c (freadptrinc): Likewise.
42160         * lib/fseeko.c (rpl_fseeko): Likewise.
42161         * lib/fseterr.c (fseterr): Likewise.
42162         * lib/fwritable.c (fwritable): Likewise.
42163         * lib/fwriting.c (fwriting): Likewise.
42164         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
42165         Hourihane.
42166         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42167
42168 2009-02-28  Bruno Haible  <bruno@clisp.org>
42169
42170         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
42171         SIGCHLD.
42172         Reported by Jim Meyering.
42173
42174 2009-02-28  Bruno Haible  <bruno@clisp.org>
42175
42176         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
42177         Mention the results of these tests on various platforms.
42178         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
42179         order.
42180         * doc/posix-functions/printf.texi: Likewise.
42181         * doc/posix-functions/snprintf.texi: Likewise.
42182         * doc/posix-functions/sprintf.texi: Likewise.
42183         * doc/posix-functions/vfprintf.texi: Likewise.
42184         * doc/posix-functions/vprintf.texi: Likewise.
42185         * doc/posix-functions/vsnprintf.texi: Likewise.
42186         * doc/posix-functions/vsprintf.texi: Likewise.
42187         * doc/glibc-functions/obstack_printf.texi: Likewise.
42188         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
42189
42190 2009-02-28  Bruno Haible  <bruno@clisp.org>
42191
42192         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
42193         Reported by Loïc Minier <lool@dooz.org>.
42194
42195 2009-02-27  Bruno Haible  <bruno@clisp.org>
42196
42197         * gnulib-tool (func_import): Make the sed expression used to create the
42198         sed script for updating the .gitignore file POSIX compliant.
42199         Reported by Eric Blake.
42200
42201 2009-02-27  Bruno Haible  <bruno@clisp.org>
42202
42203         * gnulib-tool (sed): Don't alias as "sed --posix".
42204         Reported by Eric Blake.
42205
42206 2009-02-27  Bruno Haible  <bruno@clisp.org>
42207
42208         Avoid test link errors.
42209         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
42210         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
42211         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
42212         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
42213         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42214
42215 2009-02-27  Bruno Haible  <bruno@clisp.org>
42216
42217         Avoid spurious "(cached)" in configure output.
42218         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
42219         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
42220         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42221         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42222         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42223         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
42224         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42225         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
42226         Reported by Eric Blake.
42227
42228 2009-02-27  Eric Blake  <ebb9@byu.net>
42229
42230         printf: fix regression in previous patch
42231         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
42232
42233 2009-02-27  Bruno Haible  <bruno@clisp.org>
42234
42235         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
42236         value.
42237         * lib/stdint.in.h: Likewise.
42238         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
42239
42240 2009-02-27  Eric Blake  <ebb9@byu.net>
42241
42242         doc: mention more functions added in cygwin 1.7.0
42243         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
42244         addition.
42245         * doc/posix-functions/open_wmemstream.texi: Likewise.
42246         * doc/posix-functions/wcsnlen.texi: Likewise.
42247         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42248         * doc/posix-functions/wcstod.texi: Likewise.
42249         * doc/posix-functions/wcstof.texi: Likewise.
42250         * doc/posix-functions/wcstoimax.texi: Likewise.
42251         * doc/posix-functions/wcstok.texi: Likewise.
42252         * doc/posix-functions/wcstoumax.texi: Likewise.
42253
42254         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
42255         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
42256         * doc/posix-functions/fprintf.texi: Update.
42257         * doc/posix-functions/printf.texi: Update.
42258         * doc/posix-functions/snprintf.texi: Update.
42259         * doc/posix-functions/sprintf.texi: Update.
42260         * doc/posix-functions/vfprintf.texi: Update.
42261         * doc/posix-functions/vprintf.texi: Update.
42262         * doc/posix-functions/vsnprintf.texi: Update.
42263         * doc/posix-functions/vsprintf.texi: Update.
42264         * doc/glibc-functions/obstack_printf.texi: Update.
42265         * doc/glibc-functions/obstack_vprintf.texi: Update.
42266
42267 2009-02-26  Eric Blake  <ebb9@byu.net>
42268
42269         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
42270         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
42271         compilation bug by using runtime conversion.
42272         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
42273         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
42274         * modules/ceill-tests (Files): Use nan.h.
42275         * modules/floorl-tests (Files): Likewise.
42276         * modules/frexpl-tests (Files): Likewise.
42277         * modules/isnanl-tests (Files): Likewise.
42278         * modules/ldexpl-tests (Files): Likewise.
42279         * modules/roundl-tests (Files): Likewise.
42280         * modules/truncl-tests (Files): Likewise.
42281         * tests/test-ceill.c (main): Use a working NaN.
42282         * tests/test-floorl.c (main): Likewise.
42283         * tests/test-frexpl.c (main): Likewise.
42284         * tests/test-isnan.c (test_long_double): Likewise.
42285         * tests/test-isnanl.h (main): Likewise.
42286         * tests/test-ldexpl.h (main): Likewise.
42287         * tests/test-roundl.h (main): Likewise.
42288         * tests/test-truncl.h (main): Likewise.
42289         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
42290
42291 2009-02-26  Eric Blake  <ebb9@byu.net>
42292             Bruno Haible  <bruno@clisp.org>
42293
42294         Work around a *printf bug with %ls on Solaris.
42295         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
42296         precision is specified, sprintf stops converting the wide string
42297         argument when the number of bytes that have been produced by this
42298         conversion equals or exceeds the precision.
42299         * doc/posix-functions/fprintf.texi: Update.
42300         * doc/posix-functions/printf.texi: Update.
42301         * doc/posix-functions/snprintf.texi: Update.
42302         * doc/posix-functions/sprintf.texi: Update.
42303         * doc/posix-functions/vfprintf.texi: Update.
42304         * doc/posix-functions/vprintf.texi: Update.
42305         * doc/posix-functions/vsnprintf.texi: Update.
42306         * doc/posix-functions/vsprintf.texi: Update.
42307         * doc/glibc-functions/obstack_printf.texi: Update.
42308         * doc/glibc-functions/obstack_vprintf.texi: Update.
42309
42310 2009-02-26  Eric Blake  <ebb9@byu.net>
42311
42312         stdlib: favor compiler check of random.h
42313         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
42314         to avoid an ObjC random.h installed by Swarm.
42315
42316 2009-02-26  Bruno Haible  <bruno@clisp.org>
42317
42318         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
42319         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
42320         Reported by Gary V. Vaughan <gary@gnu.org>.
42321
42322 2009-02-26  Bruno Haible  <bruno@clisp.org>
42323
42324         Fix *printf behaviour regarding the %ls directive.
42325         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
42326         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
42327         NEED_PRINTF_DIRECTIVE_LS.
42328         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
42329         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42330         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42331         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
42332         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
42333         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
42334         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42335         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42336         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42337         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42338         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42339         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
42340         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42341         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42342         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42343         * doc/posix-functions/fprintf.texi: Update.
42344         * doc/posix-functions/printf.texi: Update.
42345         * doc/posix-functions/snprintf.texi: Update.
42346         * doc/posix-functions/sprintf.texi: Update.
42347         * doc/posix-functions/vfprintf.texi: Update.
42348         * doc/posix-functions/vprintf.texi: Update.
42349         * doc/posix-functions/vsnprintf.texi: Update.
42350         * doc/posix-functions/vsprintf.texi: Update.
42351         * doc/glibc-functions/obstack_printf.texi: Update.
42352         * doc/glibc-functions/obstack_vprintf.texi: Update.
42353         Reported by Eric Blake.
42354
42355 2009-02-25  Bruno Haible  <bruno@clisp.org>
42356
42357         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
42358         with known value.
42359         Reported by Gary V. Vaughan <gary@gnu.org>.
42360
42361 2009-02-25  Bruno Haible  <bruno@clisp.org>
42362
42363         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
42364         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
42365         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
42366         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
42367         Reported by Gary V. Vaughan <gary@gnu.org>.
42368
42369 2009-02-25  Bruno Haible  <bruno@clisp.org>
42370
42371         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
42372         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
42373         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
42374         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
42375         Reported by Gary V. Vaughan <gary@gnu.org>.
42376
42377 2009-02-25  Eric Blake  <ebb9@byu.net>
42378
42379         tests: skip fseek/ftell tests if ungetc is broken
42380         * m4/ungetc.m4: New file.
42381         * modules/fseek-tests: Split test, so ungetc dependency is
42382         separate from rest of test.
42383         * modules/fseeko-tests: Likewise.
42384         * modules/ftell-tests: Likewise.
42385         * modules/ftello-tests: Likewise.
42386         * tests/test-fseek.c (main): Isolate ungetc dependency.
42387         * tests/test-fseeko.c (main): Likewise.
42388         * tests/test-ftell.c (main): Likewise.
42389         * tests/test-ftello.c (main): Likewise.
42390         * tests/test-fseek2.sh: New file.
42391         * tests/test-fseeko2.sh: Likewise.
42392         * tests/test-ftell2.sh: Likewise.
42393         * tests/test-ftello2.sh: Likewise.
42394
42395 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
42396
42397         test-getaddrinfo: fix usage of skip return code 77
42398         * tests/test-gettaddrinfo.c: Return skip code 77 only
42399         for first occurance of skip (4x77 is not 77)
42400
42401 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
42402
42403         strtod: avoid C99 decl-after-statement
42404         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
42405
42406 2009-02-24  Eric Blake  <ebb9@byu.net>
42407
42408         strtod: detect HP-UX 11.31 bug
42409         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
42410         Reported by Gary V. Vaughan.
42411
42412 2009-02-23  Bruno Haible  <bruno@clisp.org>
42413
42414         Fix invalid read past end of memory block.
42415         * lib/vasnprintf.c (DCHAR_SET): Define.
42416         (local_wcslen): Define only when needed.
42417         (local_strnlen, local_wcsnlen): New functions.
42418         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
42419         directives that involve a conversion ourselves.
42420         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
42421         wcsnlen, mbrtowc, wcrtomb.
42422         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
42423         * tests/test-vasprintf-posix.c (test_function): Likewise.
42424         * tests/test-snprintf-posix.h (test_function): Likewise.
42425         * tests/test-sprintf-posix.h (test_function): Likewise.
42426         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42427
42428 2009-02-22  Bruno Haible  <bruno@clisp.org>
42429
42430         Implement new clarified decomposition of Hangul syllables.
42431         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
42432         of type LTV, return only a pairwise decomposition.
42433         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
42434         Likewise.
42435         * tests/uninorm/test-decomposition.c (main): Updated expected result.
42436         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
42437         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
42438
42439 2009-02-22  Bruno Haible  <bruno@clisp.org>
42440
42441         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
42442         zero-length results and shrink excess allocated memory.
42443         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
42444         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
42445         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
42446         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
42447         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
42448         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
42449         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
42450         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
42451         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
42452         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
42453         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
42454         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
42455
42456 2009-02-21  Bruno Haible  <bruno@clisp.org>
42457
42458         * doc/gnulib.texi: Include safe-alloc.texi earlier.
42459         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
42460         spaces after a period. Put a space between a macro name and its
42461         argument list. Trivial rewordings.
42462         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
42463         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
42464         (main): Return 0 explicitly.
42465
42466 2009-02-21  Bruno Haible  <bruno@clisp.org>
42467
42468         Tests for module 'uninorm/filter'.
42469         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
42470         * modules/uninorm/filter-tests: New file.
42471
42472         New module 'uninorm/filter'.
42473         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
42474         uninorm_filter_flush, uninorm_filter_free): New declarations.
42475         * lib/uninorm/uninorm-filter.c: New file.
42476         * modules/uninorm/filter: New file.
42477
42478 2009-02-21  Bruno Haible  <bruno@clisp.org>
42479
42480         Tests for module 'uninorm/nfkc'.
42481         * tests/uninorm/test-nfkc.c: New file.
42482         * tests/uninorm/test-u8-nfkc.c: New file.
42483         * tests/uninorm/test-u16-nfkc.c: New file.
42484         * tests/uninorm/test-u32-nfkc.c: New file.
42485         * tests/uninorm/test-u32-nfkc-big.sh: New file.
42486         * tests/uninorm/test-u32-nfkc-big.c: New file.
42487         * modules/uninorm/nfkc-tests: New file.
42488
42489         New module 'uninorm/nfkc'.
42490         * lib/uninorm/nfkc.c: New file.
42491         * modules/uninorm/nfkc: New file.
42492
42493         Tests for module 'uninorm/nfkd'.
42494         * tests/uninorm/test-nfkd.c: New file.
42495         * tests/uninorm/test-u8-nfkd.c: New file.
42496         * tests/uninorm/test-u16-nfkd.c: New file.
42497         * tests/uninorm/test-u32-nfkd.c: New file.
42498         * tests/uninorm/test-u32-nfkd-big.sh: New file.
42499         * tests/uninorm/test-u32-nfkd-big.c: New file.
42500         * modules/uninorm/nfkd-tests: New file.
42501
42502         New module 'uninorm/nfkd'.
42503         * lib/uninorm/nfkd.c: New file.
42504         * modules/uninorm/nfkd: New file.
42505
42506         Tests for module 'uninorm/nfc'.
42507         * tests/uninorm/test-nfc.c: New file.
42508         * tests/uninorm/test-u8-nfc.c: New file.
42509         * tests/uninorm/test-u16-nfc.c: New file.
42510         * tests/uninorm/test-u32-nfc.c: New file.
42511         * tests/uninorm/test-u32-nfc-big.sh: New file.
42512         * tests/uninorm/test-u32-nfc-big.c: New file.
42513         * modules/uninorm/nfc-tests: New file.
42514
42515         New module 'uninorm/nfc'.
42516         * lib/uninorm/nfc.c: New file.
42517         * modules/uninorm/nfc: New file.
42518
42519         Tests for module 'uninorm/nfd'.
42520         * tests/uninorm/test-nfd.c: New file.
42521         * tests/uninorm/test-u8-nfd.c: New file.
42522         * tests/uninorm/test-u16-nfd.c: New file.
42523         * tests/uninorm/test-u32-nfd.c: New file.
42524         * tests/uninorm/test-u32-nfd-big.sh: New file.
42525         * tests/uninorm/test-u32-nfd-big.c: New file.
42526         * tests/uninorm/test-u32-normalize-big.h: New file.
42527         * tests/uninorm/test-u32-normalize-big.c: New file.
42528         * tests/uninorm/NormalizationTest.txt: New file, created from
42529         Unicode 5.1.0 NormalizationTest.txt.
42530         * modules/uninorm/nfd-tests: New file.
42531
42532         New module 'uninorm/nfd'.
42533         * lib/uninorm/nfd.c: New file.
42534         * modules/uninorm/nfd: New file.
42535
42536         New module 'uninorm/u32-normalize'.
42537         * lib/uninorm/u32-normalize.c: New file.
42538         * modules/uninorm/u32-normalize: New file.
42539
42540         New module 'uninorm/u16-normalize'.
42541         * lib/uninorm/u16-normalize.c: New file.
42542         * modules/uninorm/u16-normalize: New file.
42543
42544         New module 'uninorm/u8-normalize'.
42545         * lib/uninorm/u8-normalize.c: New file.
42546         * lib/uninorm/normalize-internal.h: New file.
42547         * lib/uninorm/u-normalize-internal.h: New file.
42548         * modules/uninorm/u8-normalize: New file.
42549
42550         New module 'uninorm/decompose-internal'.
42551         * lib/uninorm/decompose-internal.c: New file.
42552         * modules/uninorm/decompose-internal: New file.
42553
42554         Tests for module 'uninorm/composition'.
42555         * tests/uninorm/test-composition.c: New file.
42556         * modules/uninorm/composition-tests: New file.
42557
42558         New module 'uninorm/composition'.
42559         * lib/uninorm/composition.c: New file.
42560         * lib/uninorm/composition-table.gperf: New file, generated by
42561         gen-uni-tables.
42562         * modules/uninorm/composition: New file.
42563
42564         Tests for module 'uninorm/compat-decomposition'.
42565         * tests/uninorm/test-compat-decomposition.c: New file.
42566         * modules/uninorm/compat-decomposition-tests: New file.
42567
42568         New module 'uninorm/compat-decomposition'.
42569         * lib/uninorm/decompose-internal.h: New file.
42570         * lib/uninorm/compat-decomposition.c: New file.
42571         * modules/uninorm/compat-decomposition: New file.
42572
42573         Tests for module 'uninorm/canonical-decomposition'.
42574         * tests/uninorm/test-canonical-decomposition.c: New file.
42575         * modules/uninorm/canonical-decomposition-tests: New file.
42576
42577         New module 'uninorm/canonical-decomposition'.
42578         * lib/uninorm/canonical-decomposition.c: New file.
42579         * modules/uninorm/canonical-decomposition: New file.
42580
42581         Tests for module 'uninorm/decomposition'.
42582         * tests/uninorm/test-decomposition.c: New file.
42583         * modules/uninorm/decomposition-tests: New file.
42584
42585         New module 'uninorm/decomposition'.
42586         * lib/uninorm/decomposition.c: New file.
42587         * modules/uninorm/decomposition: New file.
42588
42589         New module 'uninorm/decomposition-table'.
42590         * lib/uninorm/decomposition-table.h: New file.
42591         * lib/uninorm/decomposition-table.c: New file.
42592         * lib/uninorm/decomposition-table1.h: New file, generated by
42593         gen-uni-tables.
42594         * lib/uninorm/decomposition-table2.h: New file, generated by
42595         gen-uni-tables.
42596         * modules/uninorm/decomposition-table: New file.
42597
42598         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
42599         (UC_DECOMP_*): New enumeration items.
42600         (get_decomposition): New function.
42601         (struct decomp_table): New type.
42602         (output_decomposition, output_decomposition_tables): New functions.
42603         (unicode_composition_exclusions): New variable.
42604         (fill_composition_exclusions, debug_output_composition_tables): New
42605         functions.
42606         (main): Accept one more argument. Invoke fill_composition_exclusions.
42607         Output decomposition and composition tables.
42608
42609         New module 'uninorm/base'.
42610         * lib/uninorm.h: New file.
42611         * lib/unictype.h: Update comment.
42612         * modules/uninorm/base: New file.
42613
42614 2009-02-21  David Lutterkort  <lutter@redhat.com>
42615
42616         Tests for module 'safe-alloc'.
42617         * tests/test-safe-alloc.c: New file.
42618         * modules/safe-alloc-tests: New file.
42619
42620         New module 'safe-alloc'.
42621         * lib/safe-alloc.h: New file.
42622         * lib/safe-alloc.c: New file.
42623         * m4/safe-alloc.m4: New file.
42624         * modules/safe-alloc: New file.
42625         * doc/safe-alloc.texi: New file.
42626         * doc/gnulib.texi: Include it.
42627         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42628         safe-alloc.
42629
42630 2009-02-18  Bruno Haible  <bruno@clisp.org>
42631
42632         Fix link error on non-glibc systems.
42633         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
42634         variable.
42635         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42636
42637 2009-02-18  Jim Meyering  <meyering@redhat.com>
42638
42639         fts: avoid used-uninitialized error due to recent change
42640         * lib/fts.c (fts_read): Guard uses of the new member,
42641         parent->fts_n_dirs_remaining, since it's not relevant for
42642         the parent of a directory specified on the command-line.
42643
42644 2009-02-17  James Youngman  <jay@gnu.org>
42645             Bruno Haible  <bruno@clisp.org>
42646
42647         * m4/include_next.m4: Reformulate comment.
42648
42649 2009-02-16  Jim Meyering  <meyering@redhat.com>
42650
42651         fts: add #if guards so that the fts_lgpl module still builds
42652         * lib/fts.c: Guard just-added hash-table-using parts with
42653         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
42654         Reported by Simon Josefsson.
42655
42656 2009-02-15  Bruno Haible  <bruno@clisp.org>
42657
42658         * modules/array-mergesort-tests: New file.
42659         * tests/test-array-mergesort.c: New file.
42660
42661         New module 'array-mergesort'.
42662         * modules/array-mergesort: New file.
42663         * lib/array-mergesort.h: New file.
42664
42665 2009-02-15  Bruno Haible  <bruno@clisp.org>
42666
42667         Fix 2009-02-07 commit.
42668         * lib/gen-uni-tables.c (output_predicate, output_category,
42669         output_combclass, output_bidi_category, output_decimal_digit,
42670         output_digit, output_numeric, output_mirror, output_scripts,
42671         output_ident_category, output_simple_mapping): Fix format directives.
42672         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
42673
42674 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
42675
42676         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
42677         fixes are available from IBM.
42678
42679 2009-02-13  Jim Meyering  <meyering@redhat.com>
42680
42681         fts: arrange not to stat non-directories in more cases
42682         This makes GNU find (when it doesn't need to stat each file)
42683         *much* more efficient at traversing reiserfs file systems.
42684         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
42685         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
42686         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
42687         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
42688         (leaf_optimization_applies): New function.
42689         (LCO_hash, LCO_compare): New helper functions.
42690         (link_count_optimize_ok): New function.
42691         (fts_stat): Initialize new member (if dir).
42692         (fts_read): Decrement parent's fts_n_dirs_remaining count if
42693         we've just stat'ed a directory.  Skip the stat call when possible.
42694         ---
42695         Note this AFS-related exchange:
42696         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
42697         and note find's pioctl call in find/fstype.c.
42698         But that is necessary only if you want to enable the
42699         optimization for AFS, and for now, I don't.
42700
42701         fts: move a function definition "up" (no semantic change)
42702         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
42703         "up" to precede upcoming use of a related function.
42704
42705 2009-02-11  Jim Meyering  <meyering@redhat.com>
42706
42707         fts: correct internal computation of nlinks (optimization-related)
42708         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
42709         whether the current entry is a directory, so don't test it.
42710
42711 2009-02-10  Bruno Haible  <bruno@clisp.org>
42712
42713         Tests for module 'uniwbrk/ulc-wordbreaks'.
42714         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
42715         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
42716         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
42717
42718         Tests for module 'uniwbrk/u32-wordbreaks'.
42719         * modules/uniwbrk/u32-wordbreaks-tests: New file.
42720         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
42721
42722         Tests for module 'uniwbrk/u16-wordbreaks'.
42723         * modules/uniwbrk/u16-wordbreaks-tests: New file.
42724         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
42725
42726         Tests for module 'uniwbrk/u8-wordbreaks'.
42727         * modules/uniwbrk/u8-wordbreaks-tests: New file.
42728         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
42729
42730 2009-02-10  Bruno Haible  <bruno@clisp.org>
42731
42732         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
42733         property.
42734         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
42735         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
42736         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
42737
42738 2009-02-10  Simon Josefsson  <simon@josefsson.org>
42739
42740         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
42741         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
42742
42743 2009-02-10  Bruno Haible  <bruno@clisp.org>
42744
42745         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
42746         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
42747         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
42748         * lib/unilbrk/u8-possible-linebreaks.c: Update.
42749         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
42750         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
42751
42752 2009-02-09  Simon Josefsson  <simon@josefsson.org>
42753
42754         * lib/sockets.h (gl_fd_to_handle): New function.
42755
42756         * tests/test-sockets.c: Call gl_fd_to_handle.
42757
42758 2009-02-09  Bruno Haible  <bruno@clisp.org>
42759
42760         * doc/havelib.texi: Document the conventions on bi-arch systems.
42761
42762 2009-02-08  Bruno Haible  <bruno@clisp.org>
42763
42764         Document the AC_LIB_LINKFLAGS macro.
42765         * doc/havelib.texi: New file, mostly written on 2005-05-24.
42766         * doc/gnulib.texi: Include it.
42767
42768 2009-02-08  Bruno Haible  <bruno@clisp.org>
42769
42770         Fix wrong order of sections, compared to TOC.
42771         * doc/gnulib.texi: Include relocatable-maint.texi after the
42772         "Regular expressions" node, not before.
42773
42774 2009-02-08  Bruno Haible  <bruno@clisp.org>
42775
42776         Tests for module 'unicase/totitle'.
42777         * modules/unicase/totitle-tests: New file.
42778
42779         Tests for module 'unicase/tolower'.
42780         * modules/unicase/tolower-tests: New file.
42781
42782         Tests for module 'unicase/toupper'.
42783         * modules/unicase/toupper-tests: New file.
42784         * tests/unicase/test-mapping-part1.h: New file.
42785         * tests/unicase/test-mapping-part2.h: New file.
42786
42787         New module 'unicase/totitle'.
42788         * modules/unicase/totitle: New file.
42789         * lib/unicase/totitle.c: New file.
42790
42791         New module 'unicase/tolower'.
42792         * modules/unicase/tolower: New file.
42793         * lib/unicase/tolower.c: New file.
42794
42795         New module 'unicase/toupper'.
42796         * modules/unicase/toupper: New file.
42797         * lib/unicase/toupper.c: New file.
42798         * lib/unicase/simple-mapping.h: New file.
42799
42800         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
42801         (mapping_table): New structure.
42802         (output_simple_mapping): New function.
42803         (main): Invoke output_simple_mapping_test and output_simple_mapping.
42804         * modules/gen-uni-tables (Description): Update.
42805         * lib/unicase/toupper.h: New file, automatically generated by
42806         gen-uni-tables.
42807         * lib/unicase/tolower.h: New file, automatically generated by
42808         gen-uni-tables.
42809         * lib/unicase/totitle.h: New file, automatically generated by
42810         gen-uni-tables.
42811         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
42812         gen-uni-tables.
42813         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
42814         gen-uni-tables.
42815         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
42816         gen-uni-tables.
42817
42818         New module 'unicase/base'.
42819         * modules/unicase/base: New file.
42820         * lib/unicase.h: New file.
42821
42822 2009-02-08  Bruno Haible  <bruno@clisp.org>
42823
42824         New module 'uniwbrk/ulc-wordbreaks'.
42825         * modules/uniwbrk/ulc-wordbreaks: New file.
42826         * lib/uniwbrk/ulc-wordbreaks.c: New file.
42827
42828         New module 'uniwbrk/u32-wordbreaks'.
42829         * modules/uniwbrk/u32-wordbreaks: New file.
42830         * lib/uniwbrk/u32-wordbreaks.c: New file.
42831
42832         New module 'uniwbrk/u16-wordbreaks'.
42833         * modules/uniwbrk/u16-wordbreaks: New file.
42834         * lib/uniwbrk/u16-wordbreaks.c: New file.
42835
42836         New module 'uniwbrk/u8-wordbreaks'.
42837         * modules/uniwbrk/u8-wordbreaks: New file.
42838         * lib/uniwbrk/u8-wordbreaks.c: New file.
42839         * lib/uniwbrk/u-wordbreaks.h: New file.
42840
42841         New module 'uniwbrk/table'.
42842         * modules/uniwbrk/table: New file.
42843         * lib/uniwbrk/wbrktable.h: New file.
42844         * lib/uniwbrk/wbrktable.c: New file.
42845
42846         New module 'uniwbrk/wordbreak-property'.
42847         * modules/uniwbrk/wordbreak-property: New file.
42848         * lib/uniwbrk/wordbreak-property.c: New file.
42849
42850         * lib/gen-uni-tables.c (WBP_*): New enum items.
42851         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
42852         (unicode_org_wbp): New variable.
42853         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
42854         New functions.
42855         (wbp_table): New structure.
42856         (output_wbp, output_wbrk_tables): New functions.
42857         (main): Accept additional argument. Invoke fill_org_wbp,
42858         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
42859         output_wbrk_tables.
42860         * modules/gen-uni-tables (Description): Update.
42861         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
42862         gen-uni-tables.
42863
42864         New module 'uniwbrk/base'.
42865         * modules/uniwbrk/base: New file.
42866         * lib/uniwbrk.h: New file.
42867
42868 2009-02-08  Bruno Haible  <bruno@clisp.org>
42869
42870         Update to Unicode 5.1.0.
42871         * lib/gen-uni-tables.c (is_property_alphabetic): Include
42872         U+2185..U+2188.
42873         (is_property_default_ignorable_code_point): Don't include characters
42874         of category Cc or Cs and not-a-characters.
42875         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
42876         U+0D79, U+109E, U+109F, U+A60C.
42877         * lib/unictype/bidi_of.h: Regenerated.
42878         * lib/unictype/blocks.h: Regenerated.
42879         * lib/unictype/categ_C.h: Regenerated.
42880         * lib/unictype/categ_Cf.h: Regenerated.
42881         * lib/unictype/categ_Cn.h: Regenerated.
42882         * lib/unictype/categ_L.h: Regenerated.
42883         * lib/unictype/categ_Ll.h: Regenerated.
42884         * lib/unictype/categ_Lm.h: Regenerated.
42885         * lib/unictype/categ_Lo.h: Regenerated.
42886         * lib/unictype/categ_Lu.h: Regenerated.
42887         * lib/unictype/categ_M.h: Regenerated.
42888         * lib/unictype/categ_Mc.h: Regenerated.
42889         * lib/unictype/categ_Me.h: Regenerated.
42890         * lib/unictype/categ_Mn.h: Regenerated.
42891         * lib/unictype/categ_N.h: Regenerated.
42892         * lib/unictype/categ_Nd.h: Regenerated.
42893         * lib/unictype/categ_Nl.h: Regenerated.
42894         * lib/unictype/categ_No.h: Regenerated.
42895         * lib/unictype/categ_P.h: Regenerated.
42896         * lib/unictype/categ_Pd.h: Regenerated.
42897         * lib/unictype/categ_Pe.h: Regenerated.
42898         * lib/unictype/categ_Pf.h: Regenerated.
42899         * lib/unictype/categ_Pi.h: Regenerated.
42900         * lib/unictype/categ_Po.h: Regenerated.
42901         * lib/unictype/categ_Ps.h: Regenerated.
42902         * lib/unictype/categ_S.h: Regenerated.
42903         * lib/unictype/categ_Sk.h: Regenerated.
42904         * lib/unictype/categ_Sm.h: Regenerated.
42905         * lib/unictype/categ_So.h: Regenerated.
42906         * lib/unictype/categ_of.h: Regenerated.
42907         * lib/unictype/combining.h: Regenerated.
42908         * lib/unictype/ctype_alnum.h: Regenerated.
42909         * lib/unictype/ctype_alpha.h: Regenerated.
42910         * lib/unictype/ctype_graph.h: Regenerated.
42911         * lib/unictype/ctype_lower.h: Regenerated.
42912         * lib/unictype/ctype_print.h: Regenerated.
42913         * lib/unictype/ctype_punct.h: Regenerated.
42914         * lib/unictype/ctype_upper.h: Regenerated.
42915         * lib/unictype/decdigit.h: Regenerated.
42916         * lib/unictype/digit.h: Regenerated.
42917         * lib/unictype/mirror.h: Regenerated.
42918         * lib/unictype/numeric.h: Regenerated.
42919         * lib/unictype/pr_alphabetic.h: Regenerated.
42920         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
42921         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
42922         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
42923         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
42924         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
42925         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
42926         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
42927         * lib/unictype/pr_combining.h: Regenerated.
42928         * lib/unictype/pr_dash.h: Regenerated.
42929         * lib/unictype/pr_decimal_digit.h: Regenerated.
42930         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
42931         * lib/unictype/pr_deprecated.h: Regenerated.
42932         * lib/unictype/pr_diacritic.h: Regenerated.
42933         * lib/unictype/pr_extender.h: Regenerated.
42934         * lib/unictype/pr_format_control.h: Regenerated.
42935         * lib/unictype/pr_grapheme_base.h: Regenerated.
42936         * lib/unictype/pr_grapheme_extend.h: Regenerated.
42937         * lib/unictype/pr_grapheme_link.h: Regenerated.
42938         * lib/unictype/pr_id_continue.h: Regenerated.
42939         * lib/unictype/pr_id_start.h: Regenerated.
42940         * lib/unictype/pr_ideographic.h: Regenerated.
42941         * lib/unictype/pr_ignorable_control.h: Regenerated.
42942         * lib/unictype/pr_lowercase.h: Regenerated.
42943         * lib/unictype/pr_math.h: Regenerated.
42944         * lib/unictype/pr_numeric.h: Regenerated.
42945         * lib/unictype/pr_other_alphabetic.h: Regenerated.
42946         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
42947         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
42948         * lib/unictype/pr_other_id_continue.h: Regenerated.
42949         * lib/unictype/pr_other_lowercase.h: Regenerated.
42950         * lib/unictype/pr_other_math.h: Regenerated.
42951         * lib/unictype/pr_punctuation.h: Regenerated.
42952         * lib/unictype/pr_sentence_terminal.h: Regenerated.
42953         * lib/unictype/pr_soft_dotted.h: Regenerated.
42954         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
42955         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
42956         * lib/unictype/pr_unified_ideograph.h: Regenerated.
42957         * lib/unictype/pr_uppercase.h: Regenerated.
42958         * lib/unictype/pr_xid_continue.h: Regenerated.
42959         * lib/unictype/pr_xid_start.h: Regenerated.
42960         * lib/unictype/pr_zero_width.h: Regenerated.
42961         * lib/unictype/scripts.h: Regenerated.
42962         * lib/unictype/scripts_byname.gperf: Regenerated.
42963         * lib/unictype/sy_java_ident.h: Regenerated.
42964         * lib/unilbrk/lbrkprop1.h: Regenerated.
42965         * lib/unilbrk/lbrkprop2.h: Regenerated.
42966         * tests/unictype/test-categ_C.c: Regenerated.
42967         * tests/unictype/test-categ_Cf.c: Regenerated.
42968         * tests/unictype/test-categ_Cn.c: Regenerated.
42969         * tests/unictype/test-categ_L.c: Regenerated.
42970         * tests/unictype/test-categ_Ll.c: Regenerated.
42971         * tests/unictype/test-categ_Lm.c: Regenerated.
42972         * tests/unictype/test-categ_Lo.c: Regenerated.
42973         * tests/unictype/test-categ_Lu.c: Regenerated.
42974         * tests/unictype/test-categ_M.c: Regenerated.
42975         * tests/unictype/test-categ_Mc.c: Regenerated.
42976         * tests/unictype/test-categ_Me.c: Regenerated.
42977         * tests/unictype/test-categ_Mn.c: Regenerated.
42978         * tests/unictype/test-categ_N.c: Regenerated.
42979         * tests/unictype/test-categ_Nd.c: Regenerated.
42980         * tests/unictype/test-categ_Nl.c: Regenerated.
42981         * tests/unictype/test-categ_No.c: Regenerated.
42982         * tests/unictype/test-categ_P.c: Regenerated.
42983         * tests/unictype/test-categ_Pd.c: Regenerated.
42984         * tests/unictype/test-categ_Pe.c: Regenerated.
42985         * tests/unictype/test-categ_Pf.c: Regenerated.
42986         * tests/unictype/test-categ_Pi.c: Regenerated.
42987         * tests/unictype/test-categ_Po.c: Regenerated.
42988         * tests/unictype/test-categ_Ps.c: Regenerated.
42989         * tests/unictype/test-categ_S.c: Regenerated.
42990         * tests/unictype/test-categ_Sk.c: Regenerated.
42991         * tests/unictype/test-categ_Sm.c: Regenerated.
42992         * tests/unictype/test-categ_So.c: Regenerated.
42993         * tests/unictype/test-ctype_alnum.c: Regenerated.
42994         * tests/unictype/test-ctype_alpha.c: Regenerated.
42995         * tests/unictype/test-ctype_graph.c: Regenerated.
42996         * tests/unictype/test-ctype_lower.c: Regenerated.
42997         * tests/unictype/test-ctype_print.c: Regenerated.
42998         * tests/unictype/test-ctype_punct.c: Regenerated.
42999         * tests/unictype/test-ctype_upper.c: Regenerated.
43000         * tests/unictype/test-decdigit.h: Regenerated.
43001         * tests/unictype/test-digit.h: Regenerated.
43002         * tests/unictype/test-numeric.h: Regenerated.
43003         * tests/unictype/test-pr_alphabetic.c: Regenerated.
43004         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
43005         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
43006         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
43007         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
43008         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
43009         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
43010         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
43011         * tests/unictype/test-pr_combining.c: Regenerated.
43012         * tests/unictype/test-pr_dash.c: Regenerated.
43013         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
43014         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
43015         * tests/unictype/test-pr_deprecated.c: Regenerated.
43016         * tests/unictype/test-pr_diacritic.c: Regenerated.
43017         * tests/unictype/test-pr_extender.c: Regenerated.
43018         * tests/unictype/test-pr_format_control.c: Regenerated.
43019         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
43020         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
43021         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
43022         * tests/unictype/test-pr_id_continue.c: Regenerated.
43023         * tests/unictype/test-pr_id_start.c: Regenerated.
43024         * tests/unictype/test-pr_ideographic.c: Regenerated.
43025         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
43026         * tests/unictype/test-pr_lowercase.c: Regenerated.
43027         * tests/unictype/test-pr_math.c: Regenerated.
43028         * tests/unictype/test-pr_numeric.c: Regenerated.
43029         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
43030         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
43031         Regenerated.
43032         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
43033         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
43034         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
43035         * tests/unictype/test-pr_other_math.c: Regenerated.
43036         * tests/unictype/test-pr_punctuation.c: Regenerated.
43037         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
43038         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
43039         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
43040         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
43041         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
43042         * tests/unictype/test-pr_uppercase.c: Regenerated.
43043         * tests/unictype/test-pr_xid_continue.c: Regenerated.
43044         * tests/unictype/test-pr_xid_start.c: Regenerated.
43045         * tests/unictype/test-pr_zero_width.c: Regenerated.
43046
43047         Update to Unicode 5.1.0.
43048         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
43049         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
43050         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
43051         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
43052         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
43053         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
43054         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
43055         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
43056         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
43057         (nonspacing_table_ind): Update.
43058         * tests/uniwidth/test-uc_width2.sh: Update expected result.
43059
43060         Update to Unicode 5.1.0.
43061         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
43062         code transform.
43063         * lib/uniname/uniname.c (unicode_character_name,
43064         unicode_name_character): Add the range 0x1Fxxx to the code transform.
43065         * lib/uniname/uninames.h: Regenerated.
43066         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
43067
43068 2009-02-07  Bruno Haible  <bruno@clisp.org>
43069
43070         Merge gen-ctype and gen-lbrk into a single program.
43071         * lib/gen-uni-tables.c: New file, incorporating
43072         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
43073         Add directory prefixes to the names of the generated files.
43074         * lib/unictype/gen-ctype.c: Remove file.
43075         * lib/unilbrk/gen-lbrk.c: Remove file.
43076         * modules/gen-uni-tables: New file.
43077         * modules/unictype/gen-ctype: Remove file.
43078         * modules/unilbrk/gen-lbrk: Remove file.
43079
43080 2009-02-07  Bruno Haible  <bruno@clisp.org>
43081
43082         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
43083
43084         New module 'unistr/u32-strcoll'.
43085         * modules/unistr/u32-strcoll: New file.
43086         * lib/unistr/u32-strcoll.c: New file.
43087
43088         New module 'unistr/u16-strcoll'.
43089         * modules/unistr/u16-strcoll: New file.
43090         * lib/unistr/u16-strcoll.c: New file.
43091
43092         New module 'unistr/u8-strcoll'.
43093         * modules/unistr/u8-strcoll: New file.
43094         * lib/unistr/u8-strcoll.c: New file.
43095         * lib/unistr/u-strcoll.h: New file.
43096
43097 2009-02-07  Bruno Haible  <bruno@clisp.org>
43098
43099         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
43100         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
43101         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
43102         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
43103         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
43104         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
43105
43106 2009-02-07  Bruno Haible  <bruno@clisp.org>
43107
43108         Make 64-bit clean.
43109         * lib/unictype/gen-ctype.c (output_predicate, output_category,
43110         output_combclass, output_bidi_category, output_decimal_digit,
43111         output_digit, output_numeric, output_mirror, output_scripts,
43112         output_ident_category): Use proper width specifier in format strings.
43113
43114 2009-02-07  Bruno Haible  <bruno@clisp.org>
43115
43116         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
43117         failure behaviour.
43118
43119 2009-02-07  Jim Meyering  <meyering@redhat.com>
43120
43121         regex: avoid compilation failure with upcoming gcc-4.4
43122         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
43123         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
43124         "... error: integer overflow in preprocessor expression".
43125
43126 2009-02-05  Ben Pfaff  <blp@gnu.org>
43127
43128         Fix link errors on Windows when close module is used.
43129         * modules/close: Add $(LIB_CLOSE) to Link section.
43130         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
43131         $(LIB_CLOSE) on Windows.
43132
43133 2009-02-05  Jim Meyering  <meyering@redhat.com>
43134
43135         still avoid unused-parameter warnings, but do it cleanly
43136         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
43137         (get_fs_usage): Cast to void instead.
43138         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
43139         (dev_from_mount_options, read_file_system_list): Cast to void.
43140         Prompted by Bruno Haible.
43141
43142 2009-02-04  Jim Meyering  <meyering@redhat.com>
43143
43144         fsusage.c: correct copyright year
43145         * lib/fsusage.c: Reflect year in which the change is pushed into
43146
43147         avoid misc. warnings
43148         * lib/fsusage.c (UNUSED_PARAM): Define.
43149         (get_fs_usage): Mark parameter "disk" as unused.
43150         * lib/getugroups.c (getgrent): Use "void" in prototype.
43151         * lib/mountlist.c: Mark unused parameters.
43152         (read_file_system_list): Declare a local with "const".
43153         * lib/nanosleep.c (getnow): Declare static.
43154         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
43155
43156         dirfd: set errno upon failure
43157         * lib/dirfd.c: Include <errno.h>.
43158         Set errno to ENOTSUP when returning -1.
43159         * modules/dirfd (Depends-on): Add errno.
43160         Suggested by John Kodis <kodis@comcast.net>.
43161
43162 2009-02-01  Bruno Haible  <bruno@clisp.org>
43163
43164         Don't assume sizeof (long) >= sizeof (void *).
43165         * lib/memcmp.c: Include stdint.h.
43166         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
43167         srcp2 to 'const byte *'.
43168         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
43169         types to uintptr_t.
43170         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
43171         * modules/memcmp (Depends-on): Add stdint.
43172         Reported by Ozkan Sezer <sezeroz@gmail.com>.
43173
43174 2009-01-30  Eric Blake  <ebb9@byu.net>
43175
43176         fix more require-before-expand issues
43177         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
43178         expand, AC_PROG_AWK.
43179         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
43180
43181 2009-01-28  Eric Blake  <ebb9@byu.net>
43182
43183         version-etc: use consistent URL formatting
43184         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
43185         Improve formatting.  Use fputs for string without %.
43186
43187 2009-01-28  Jim Meyering  <meyering@redhat.com>
43188
43189         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
43190         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
43191         "underquoted definition of NAME" from autoconf-2.59.
43192
43193 2009-01-28  Bruno Haible  <bruno@clisp.org>
43194
43195         * doc/gnulib.texi: Add "Obsolete modules" to index.
43196
43197 2009-01-28  Jim Meyering  <meyering@redhat.com>
43198
43199         useless-if-before-free: recognize more variants
43200         * build-aux/useless-if-before-free: Also recognize e.g.,
43201         if (NULL != p) free (p);
43202
43203 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
43204
43205         test-getaddrinfo: skip (don't fail) this test when there's no network
43206         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
43207         on the presumption that it means you lack network access.
43208
43209 2009-01-26  Jim Meyering  <meyering@redhat.com>
43210
43211         fflush: avoid warnings on modern systems
43212         * lib/fflush.c (rpl_fflush): Move declarations of locals,
43213         pos and result, into scopes where they're used.
43214
43215 2009-01-26  Eric Blake  <ebb9@byu.net>
43216
43217         Silence warning reintroduced by recent extensions patch.
43218         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
43219         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
43220         autoconf.
43221
43222         Backport improved autoconf semantics of AC_DEFUN_ONCE.
43223         * m4/00gnulib.m4: New file.
43224         * gnulib-tool (func_get_filelist): Always use it.
43225         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
43226         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
43227
43228 2009-01-25  Bruno Haible  <bruno@clisp.org>
43229
43230         Make test-quotearg work on MacOS X and AIX.
43231         * tests/test-quotearg.sh: New file.
43232         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
43233         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
43234         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
43235         include <libintl.h>.
43236         (fake_locale): Remove variable.
43237         (gettext, dgettext, dcgettext): Remove functions.
43238         (main): Instead of setting a fake locale, set a real locale. Call
43239         textdomain and bindtextdomain.
43240         * modules/quotearg-tests (Files): Add the new files.
43241         (Depends-on): Add gettext, setenv, unsetenv.
43242         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43243         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
43244         Augment TESTS_ENVIRONMENT.
43245
43246 2009-01-25  Bruno Haible  <bruno@clisp.org>
43247
43248         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
43249         fr_FR.ISO8859-1 locale on MacOS X.
43250         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
43251         ja_JP.eucJP locale on MacOS X.
43252         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
43253         zh_CN.GB18030 locale on MacOS X.
43254
43255 2009-01-25  Bruno Haible  <bruno@clisp.org>
43256
43257         Avoid link errors on MacOS X 10.3.
43258         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
43259         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43260
43261 2009-01-25  Bruno Haible  <bruno@clisp.org>
43262
43263         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43264         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
43265         * modules/pipe (Files): Remove m4/posix_spawn.m4.
43266         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43267         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
43268         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43269         posix_spawnattr_init, posix_spawnattr_setsigmask,
43270         posix_spawnattr_setflags, posix_spawnattr_destroy.
43271
43272         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43273         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
43274         * modules/execute (Files): Remove m4/posix_spawn.m4.
43275         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43276         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43277         posix_spawnattr_init, posix_spawnattr_setsigmask,
43278         posix_spawnattr_setflags, posix_spawnattr_destroy.
43279
43280 2009-01-25  Bruno Haible  <bruno@clisp.org>
43281
43282         * lib/glthread/threadlib.c: Include <stdlib.h>.
43283
43284 2009-01-25  Bruno Haible  <bruno@clisp.org>
43285
43286         * lib/glthread/threadlib.c (dummy): New declaration.
43287
43288 2009-01-25  Bruno Haible  <bruno@clisp.org>
43289
43290         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
43291         multibyte characters also for the GB18030 encoding. Don't crash when
43292         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
43293
43294 2009-01-25  Bruno Haible  <bruno@clisp.org>
43295
43296         Avoid redefining 'struct random_data' on OSF/1 5.1.
43297         * lib/stdlib.in.h: Include <random.h> if it exists.
43298         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
43299         HAVE_RANDOM_H. Include <random.h> when testing whether
43300         'struct random_data' exists.
43301         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
43302
43303 2009-01-25  Bruno Haible  <bruno@clisp.org>
43304
43305         Don't install charset.alias on MacOS X >= 10.3.
43306         * lib/localcharset.c (DARWIN7): New macro.
43307         (get_charset_aliases): Hardcode the result for Darwin7.
43308         * modules/localcharset (install-exec-local): Don't install
43309         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
43310
43311 2009-01-25  Bruno Haible  <bruno@clisp.org>
43312
43313         Don't install charset.alias on mingw and Cygwin.
43314         * modules/localcharset (install-exec-local): Don't install
43315         charset.alias on mingw and Cygwin, if the file does not yet exist.
43316         The result for these platforms is hardcoded in localcharset.c.
43317
43318 2009-01-25  Bruno Haible  <bruno@clisp.org>
43319
43320         Make it possible again to use AC_GNU_SOURCE together with gnulib.
43321         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
43322         before requiring AC_USE_SYSTEM_EXTENSIONS.
43323
43324 2009-01-25  Jim Meyering  <meyering@redhat.com>
43325
43326         c-strtod: avoid warnings
43327         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
43328         "assignment discards qualifiers from pointer target type" warnings.
43329
43330 2009-01-24  Bruno Haible  <bruno@clisp.org>
43331
43332         Add support for non-UTF-8 locales on MacOS X.
43333         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
43334         canonical encodings. For Darwin 7 and newer, don't map traditional
43335         encodings to UTF-8.
43336         Reported by Vincent Lefevre <vincent@vinc17.org>
43337         at <http://savannah.gnu.org/bugs/?25235>.
43338
43339 2009-01-24  Bruno Haible  <bruno@clisp.org>
43340
43341         * doc/gnulib.texi (Obsolete modules): New section.
43342         Reported by Mike Frysinger <vapier@gentoo.org>.
43343
43344 2009-01-24  Bruno Haible  <bruno@clisp.org>
43345
43346         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
43347         (%.dvi): New rule.
43348
43349 2009-01-24  Bruno Haible  <bruno@clisp.org>
43350
43351         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
43352         Reported by Eric Blake.
43353
43354 2009-01-24  Bruno Haible  <bruno@clisp.org>
43355
43356         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
43357         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
43358         Reported by Gary V. Vaughan <gary@gnu.org>.
43359
43360 2009-01-24  Bruno Haible  <bruno@clisp.org>
43361
43362         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
43363
43364 2009-01-23  Bruno Haible  <bruno@clisp.org>
43365
43366         Make c-strtod, c-strtold usable in libraries.
43367         * lib/c-strtod.c: Include string.h instead of xalloc.h.
43368         (C_STRTOD): Call strdup instead of xstrdup.
43369         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
43370         * modules/c-strtold (Depends-on): Likewise.
43371         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
43372         * NEWS: Mention the change.
43373         Reported by Michael Gold <mgold@ncf.ca>.
43374
43375 2009-01-23  Jim Meyering  <meyering@redhat.com>
43376
43377         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
43378         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
43379         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
43380
43381 2009-01-23  Simon Josefsson  <simon@josefsson.org>
43382
43383         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
43384         GNU CoreUtils.
43385         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
43386         * modules/version-etc (Description): Update.
43387
43388 2009-01-22  Bruno Haible  <bruno@clisp.org>
43389
43390         Cache the C locale object.
43391         * lib/c-strtod.c (c_locale_cache): New variable.
43392         (c_locale): New function.
43393         (C_STRTOD): Use it, and don't call freelocale.
43394         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
43395         Suggested by Paolo Bonzini.
43396
43397 2009-01-21  Bruno Haible  <bruno@clisp.org>
43398
43399         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
43400         conditions other than overflow.
43401
43402 2009-01-21  Bruno Haible  <bruno@clisp.org>
43403
43404         * lib/c-strtod.c: Include errno.h.
43405         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
43406         value from STRTOD_L and STRTOD.
43407
43408 2009-01-21  Bruno Haible  <bruno@clisp.org>
43409         and Jim Meyering  <meyering@redhat.com>
43410
43411         nanosleep: skip configure test (fail it) for apple universal builds
43412         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
43413         universal builds, assume that nanosleep does not work.
43414         * modules/nanosleep (Depends-on): Add multiarch.
43415
43416         mktime: skip configure test (fail it) for apple universal builds
43417         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
43418         universal builds, assume that mktime does not work.
43419         * modules/mktime (Depends-on): Add multiarch.
43420
43421 2009-01-21  Eric Blake  <ebb9@byu.net>
43422
43423         multiarch: avoid expand-before-require warning
43424         * modules/multiarch (configure.ac): Require, rather than expand,
43425         gl_MULTIARCH.
43426         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
43427         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
43428         enforce that all clients require it.  Partial reversion of
43429         2008-12-29 patch.
43430
43431         error: avoid expand-before-require warning
43432         * modules/errno (configure.ac): Require, rather than expand,
43433         gl_HEADER_ERRNO_H.
43434         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
43435         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
43436         enforce that all clients require it.
43437
43438         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
43439         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
43440         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
43441         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
43442
43443 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
43444
43445         Revert:
43446         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43447
43448         regex: do not depend on obsolete modules.
43449         * modules/regex: Remove memcmp and memmove.
43450
43451 2009-01-20  Bruno Haible  <bruno@clisp.org>
43452
43453         Make the 'link' module link on Windows NT 4.
43454         * lib/link.c (_WIN32_WINNT): Don't define.
43455         (CreateHardLinkFuncType): New type.
43456         (CreateHardLinkFunc, initialized): New variables.
43457         (initialize): New function.
43458         (link): Invoke CreateHardLink indirectly through the function pointer.
43459
43460 2009-01-20  Bruno Haible  <bruno@clisp.org>
43461
43462         Fix compilation failure on mingw.
43463         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
43464
43465 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
43466
43467         * doc/c-strtod.texi: Mention a couple of restrictions.
43468
43469 2009-01-20  Jim Meyering  <meyering@redhat.com>
43470
43471         gettimeofday: move more declarations out of functions
43472         * lib/gettimeofday.c: Move extern declarations of tzset and
43473         gmtime out of containing functions.  Prompted by Bruno Haible.
43474
43475 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43476
43477         regex: do not depend on obsolete modules.
43478         * modules/regex: Remove memcmp and memmove.
43479
43480 2009-01-19  Bruno Haible  <bruno@clisp.org>
43481
43482         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43483         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
43484         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43485         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
43486         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
43487
43488 2009-01-19  Bruno Haible  <bruno@clisp.org>
43489
43490         * tests/test-link.c: Include <errno.h>.
43491         (main): Exit with code 77 when a hard link cannot be created due to
43492         the file system.
43493         * tests/test-link.sh: Skip test when a hard link cannot be created due
43494         to the file system.
43495         Suggested by Eric Blake.
43496
43497 2009-01-19  Martin Lambers  <marlam@marlam.de>
43498
43499         * modules/link-tests: New file.
43500         * tests/test-link.sh: New file.
43501         * tests/test-link.c: New file.
43502
43503 2009-01-19  Eric Blake  <ebb9@byu.net>
43504
43505         doc: mention another function added in cygwin 1.7.0
43506         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
43507         Another new function in cygwin 1.7.
43508
43509 2009-01-19  Bruno Haible  <bruno@clisp.org>
43510
43511         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43512         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
43513         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
43514         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43515         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43516         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
43517         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43518         * m4/md4.m4 (gl_MD4): Likewise.
43519         * m4/md5.m4 (gl_MD5): Likewise.
43520         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
43521         * m4/sha1.m4 (gl_SHA1): Likewise.
43522         * m4/sha256.m4 (gl_SHA256): Likewise.
43523         * m4/sha512.m4 (gl_SHA512): Likewise.
43524
43525 2009-01-19  Bruno Haible  <bruno@clisp.org>
43526
43527         * modules/uniname/uniname-tests (Depends-on): Add progname.
43528         * tests/uniname/test-uninames.c: Include progname.h.
43529         (main): Call set_program_name.
43530
43531         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
43532         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
43533         (main): Call set_program_name.
43534
43535         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
43536         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
43537         (main): Call set_program_name.
43538
43539         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
43540         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
43541         (main): Call set_program_name.
43542
43543         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
43544         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
43545         (main): Call set_program_name.
43546
43547         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
43548         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
43549         (main): Call set_program_name.
43550
43551         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
43552         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
43553         (main): Call set_program_name.
43554
43555         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
43556         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
43557         (main): Call set_program_name.
43558
43559         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
43560         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
43561         (main): Call set_program_name.
43562
43563 2009-01-19  Eric Blake  <ebb9@byu.net>
43564
43565         test-unistd: test previous patch
43566         * tests/test-unistd.c: Test *_FILENO macros.
43567
43568         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
43569         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43570         Guarantee a definition.
43571         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
43572         * modules/unistd-safer (Depends-on): Add dependency on unistd.
43573         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
43574         * lib/dup-safer.c (STDERR_FILENO): Likewise.
43575         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43576         Likewise.
43577         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
43578         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
43579         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43580         Likewise.
43581         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
43582         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
43583         (STDERR_FILENO): Likewise.
43584         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
43585         (STDERR_FILENO): Likewise.
43586         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
43587         (STDERR_FILENO): Likewise.
43588         Reported by Elbert Pol.
43589
43590 2009-01-19  Eric Blake  <ebb9@byu.net>
43591
43592         doc: mention more functions added in cygwin 1.7.0
43593         * doc/posix-functions/abort.texi (abort): Update wording related
43594         to cygwin.
43595         * doc/posix-functions/daylight.texi (daylight): Likewise.
43596         * doc/posix-functions/optarg.texi (optarg): Likewise.
43597         * doc/posix-functions/optarg.texi (opterr): Likewise.
43598         * doc/posix-functions/optarg.texi (optind): Likewise.
43599         * doc/posix-functions/optarg.texi (optopt): Likewise.
43600         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
43601         worked in 1.5.x, and was withdrawn in 1.7.
43602         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43603         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
43604         cygwin versions.
43605         * doc/posix-functions/perror.texi (perror): Likewise.
43606         * doc/posix-functions/printf.texi (printf): Likewise.
43607         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
43608         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
43609         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43610         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43611         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43612         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
43613         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43614         Likewise.
43615         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43616         Likewise.
43617         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
43618         this function.
43619         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
43620         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
43621         Likewise.
43622         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
43623         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
43624         * doc/posix-functions/confstr.texi (confstr): Likewise.
43625         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
43626         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
43627         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
43628         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
43629         * doc/posix-functions/fputws.texi (fputws): Likewise.
43630         * doc/posix-functions/fwide.texi (fwide): Likewise.
43631         * doc/posix-functions/getwc.texi (getwc): Likewise.
43632         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
43633         * doc/posix-functions/putwc.texi (putwc): Likewise.
43634         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43635         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
43636         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
43637         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43638         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
43639         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
43640         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
43641         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
43642         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
43643         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
43644         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
43645
43646 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43647
43648         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
43649         * lib/ioctl.c: Include <sys/ioctl.h>.
43650
43651 2009-01-19  Simon Josefsson  <simon@josefsson.org>
43652
43653         * modules/getdate-tests (Depends-on): Add progname.
43654         * tests/test-getdate.c: Use progname module, to avoid link errors
43655         on non-glibc systems.
43656
43657 2009-01-18  Simon Josefsson  <simon@josefsson.org>
43658
43659         * modules/filenamecat-tests (Depends-on): Add progname.
43660         * modules/fstrcmp-tests (Depends-on): Likewise.
43661
43662         * tests/test-filenamecat.c: Use progname module, to avoid link
43663         errors on non-glibc systems.
43664         * tests/test-fstrcmp.c: Likewise.
43665
43666 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43667
43668         gettimeofday: avoid warning: nested extern declaration of 'localtime'
43669         * lib/gettimeofday.c: Move extern declaration out of function.
43670
43671 2009-01-18  Bruno Haible  <bruno@clisp.org>
43672
43673         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
43674         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
43675         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
43676
43677 2009-01-18  Bruno Haible  <bruno@clisp.org>
43678
43679         * lib/strftime.c (MEMPCPY): Remove unused macro.
43680         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
43681
43682 2009-01-18  Martin Lambers  <marlam@marlam.de>
43683
43684         New module 'link'.
43685         * lib/unistd.in.h (link): New declaration.
43686         * lib/link.c: New file.
43687         * m4/link.m4: New file.
43688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
43689         HAVE_LINK.
43690         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
43691         * modules/link: New file.
43692         * doc/posix-functions/link.texi: Mention the new module.
43693
43694 2009-01-18  Bruno Haible  <bruno@clisp.org>
43695
43696         * tests/test-avltree_list.c (main): Call set_program_name.
43697         * tests/test-avltree_oset.c (main): Likewise.
43698         * tests/test-obstack-printf.c: Include progname.h.
43699         (main): Call set_program_name.
43700         * tests/test-quotearg.c: Include progname.h.
43701         (main): Call set_program_name.
43702         * tests/test-xmemdup0.c: Include progname.h.
43703         (main): Call set_program_name.
43704
43705 2009-01-18  Bruno Haible  <bruno@clisp.org>
43706
43707         New module 'alphasort'.
43708         * lib/dirent.in.h (alphasort): New declaration.
43709         * lib/alphasort.c: New file, from glibc with modifications.
43710         * m4/alphasort.m4: New file.
43711         * modules/alphasort: New file.
43712         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
43713         HAVE_ALPHASORT.
43714         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
43715         HAVE_ALPHASORT.
43716         * doc/posix-functions/alphasort.texi: Mention the new module and the
43717         portability problems.
43718
43719 2009-01-18  Bruno Haible  <bruno@clisp.org>
43720
43721         New module 'scandir'.
43722         * lib/dirent.in.h (scandir): New declaration.
43723         * lib/scandir.c: New file, from glibc with modifications.
43724         * m4/scandir.m4: New file.
43725         * modules/scandir: New file.
43726         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
43727         HAVE_SCANDIR.
43728         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
43729         HAVE_SCANDIR.
43730         * doc/posix-functions/scandir.texi: Mention the new module and the
43731         portability problems.
43732
43733 2009-01-17  Bruno Haible  <bruno@clisp.org>
43734
43735         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
43736         Update documentation.
43737         (func_remove_suffix): Escape all dots in the suffix. Update
43738         documentation.
43739         (func_filter_filelist): Update documentation.
43740         Reported by Ralf Wildenhues.
43741
43742 2009-01-17  Bruno Haible  <bruno@clisp.org>
43743
43744         * modules/dprintf-posix-tests: New file.
43745         * tests/test-dprintf-posix.sh: New file.
43746         * tests/test-dprintf-posix.c: New file.
43747
43748         New modules 'dprintf', 'dprintf-posix'.
43749         * lib/stdio.in.h (dprintf): New declaration.
43750         * lib/dprintf.c: New file.
43751         * m4/dprintf.m4: New file.
43752         * m4/dprintf-posix.m4: New file.
43753         * modules/dprintf: New file.
43754         * modules/dprintf-posix: New file.
43755         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
43756         HAVE_DPRINTF, REPLACE_DPRINTF.
43757         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
43758         HAVE_DPRINTF, REPLACE_DPRINTF.
43759         * doc/posix-functions/dprintf.texi: Mention the new modules.
43760
43761 2009-01-17  Bruno Haible  <bruno@clisp.org>
43762
43763         * modules/vdprintf-posix-tests: New file.
43764         * tests/test-vdprintf-posix.sh: New file.
43765         * tests/test-vdprintf-posix.c: New file.
43766
43767         New modules 'vdprintf', 'vdprintf-posix'.
43768         * lib/stdio.in.h (vdprintf): New declaration.
43769         * lib/vdprintf.c: New file.
43770         * m4/vdprintf.m4: New file.
43771         * m4/vdprintf-posix.m4: New file.
43772         * modules/vdprintf: New file.
43773         * modules/vdprintf-posix: New file.
43774         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
43775         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43776         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
43777         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43778         * doc/posix-functions/vdprintf.texi: Mention the new modules.
43779
43780 2009-01-17  Bruno Haible  <bruno@clisp.org>
43781
43782         Fix replacement of fopen on mingw.
43783         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
43784         mingw.
43785
43786 2009-01-17  Bruno Haible  <bruno@clisp.org>
43787
43788         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
43789         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
43790
43791 2009-01-17  Bruno Haible  <bruno@clisp.org>
43792
43793         Avoid test-fflush2.sh failure on mingw.
43794         * tests/test-fflush2.c: Include binary-io.h.
43795         (main): Put standard input into binary mode.
43796         * modules/fflush-tests (Depends-on): Add binary-io.
43797
43798 2009-01-17  Bruno Haible  <bruno@clisp.org>
43799
43800         * lib/wchar.in.h: In another particular situation, include only the
43801         system's <wchar.h> file.
43802         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
43803         Reported by Albert Chin-A-Young <china@thewrittenword.com>
43804         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
43805
43806 2009-01-17  Bruno Haible  <bruno@clisp.org>
43807
43808         Support for stripping executables in --enable-relocatable.
43809         * build-aux/install-reloc: Expect one more argument, or an environment
43810         variable RELOC_STRIP_PROG. If set, strip the destination program and
43811         its wrapper.
43812         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
43813         RELOC_STRIP_PROG.
43814         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
43815         to set RELOCATABLE_STRIP.
43816         * NEWS: Mention the new Makefile requirement.
43817
43818 2009-01-17  Bruno Haible  <bruno@clisp.org>
43819
43820         * build-aux/install-reloc: Remove debugging information left over by
43821         C compiler on MacOS X.
43822
43823 2009-01-17  Bruno Haible  <bruno@clisp.org>
43824
43825         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
43826         * lib/progreloc.c (find_executable): Fix type of pointer passed to
43827         _NSGetExecutablePath.
43828
43829 2009-01-16  Jim Meyering  <meyering@redhat.com>
43830
43831         strerror: avoid warnings about discarding "const"
43832         * lib/strerror.c (rpl_strerror): Instead of returning a const
43833         string from each and every "case", use a variable, and add a single
43834         cast after the switch.
43835
43836 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
43837
43838         * lib/arpa_inet.in.h: Add extern "C" block for C++.
43839
43840 2009-01-16  Bruno Haible  <bruno@clisp.org>
43841
43842         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
43843         array initializer syntax that also works in C++ mode.
43844         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43845
43846 2009-01-16  Jim Meyering  <meyering@redhat.com>
43847
43848         poll: suppress a warning
43849         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
43850         to ignore "...unsigned expression < 0 is always false" warnings.
43851
43852 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
43853
43854         poll: remove declarations of unused variables
43855         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
43856         sockbuf and optlen.
43857
43858 2009-01-15  Bruno Haible  <bruno@clisp.org>
43859
43860         Make fflush-after-ungetc POSIX compliant on BSD systems.
43861         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
43862         (clear_ungetc_buffer): Implement also for other systems.
43863         (rpl_fflush): On glibc systems, invoke
43864         clear_ungetc_buffer_preserving_position. Otherwise, invoke
43865         clear_ungetc_buffer after fetching the stream's position, not before.
43866
43867 2009-01-15  Bruno Haible  <bruno@clisp.org>
43868
43869         Make fflush-after-ungetc POSIX compliant on glibc systems.
43870         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
43871         after ungetc.
43872         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
43873         (rpl_fflush): On glibc systems, simply call the system's fflush
43874         function after clearing the ungetc buffer.
43875         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
43876         Instead, lseek only to the end of file, then use the system's fseeko
43877         for the rest. On glibc systems, reset the EOF indicator bit.
43878
43879 2009-01-15  Jim Meyering  <meyering@redhat.com>
43880
43881         openmp.m4: revert quote-adding change, for portability to older autoconf
43882         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
43883         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
43884         Simon Josefsson noticed the problem when using autoconf-2.61.
43885
43886 2009-01-15  Bruno Haible  <bruno@clisp.org>
43887
43888         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
43889         * tests/test-fflush2.c (ASSERT): Always fail.
43890         (main): Add two tests for fflush() after ungetc(), taking into account
43891         the Austin Group's clarification.
43892         Suggested by Eric Blake.
43893
43894 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
43895
43896         mktime.m4: remove K&R-style function prototypes
43897         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
43898         for the Sun C++ compiler.
43899
43900 2009-01-14  Bruno Haible  <bruno@clisp.org>
43901
43902         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
43903         while including <wchar.h>.
43904         * lib/wchar.in.h: In two particular situations on HP-UX, include only
43905         the system's <wchar.h> file.
43906         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43907
43908 2009-01-14  Bruno Haible  <bruno@clisp.org>
43909
43910         * m4/csharp.m4: Don't mention gettext on the serial number line.
43911         * m4/csharpexec.m4: Likewise.
43912         * m4/eaccess.m4: Likewise.
43913         * m4/javaexec.m4: Likewise.
43914         * m4/sig_atomic_t.m4: Likewise.
43915         * m4/tmpdir.m4: Likewise.
43916         * m4/intldir.m4: Bump gettext version.
43917         * m4/lib-ld.m4: Likewise.
43918
43919 2009-01-14  Bruno Haible  <bruno@clisp.org>
43920
43921         * lib/progname.c (set_program_name): Add more comments.
43922         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43923
43924 2009-01-14  Simon Josefsson  <simon@josefsson.org>
43925
43926         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
43927         were sys/stat.h does not define it.
43928
43929 2009-01-14  Jim Meyering  <meyering@redhat.com>
43930
43931         many *.m4 files: improve m4 quoting
43932         99% of this change was performed by running the following commands:
43933         git ls-files | grep '\.m4$' | xargs perl -pi \
43934           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
43935           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43936           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43937           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
43938         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
43939         The remainder were to add Copyright dates, increment serial numbers,
43940         undo some changes in comments, exclude m4/intl.m4, and add quotes
43941         around the "1" in ",1" where the unusual spacing prohibited the
43942         above regexps from doing the job.  For more details, see
43943         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
43944         * m4/acl.m4: Modified.
43945         * m4/afs.m4: Likewise.
43946         * m4/alloca.m4: Likewise.
43947         * m4/argp.m4: Likewise.
43948         * m4/argz.m4: Likewise.
43949         * m4/atexit.m4: Likewise.
43950         * m4/bison-i18n.m4: Likewise.
43951         * m4/bison.m4: Likewise.
43952         * m4/byteswap.m4: Likewise.
43953         * m4/c-stack.m4: Likewise.
43954         * m4/c-strtod.m4: Likewise.
43955         * m4/calloc.m4: Likewise.
43956         * m4/canonicalize-lgpl.m4: Likewise.
43957         * m4/chown.m4: Likewise.
43958         * m4/clock_time.m4: Likewise.
43959         * m4/codeset.m4: Likewise.
43960         * m4/copy-file.m4: Likewise.
43961         * m4/csharp.m4: Likewise.
43962         * m4/csharpcomp.m4: Likewise.
43963         * m4/csharpexec.m4: Likewise.
43964         * m4/d-ino.m4: Likewise.
43965         * m4/d-type.m4: Likewise.
43966         * m4/dirfd.m4: Likewise.
43967         * m4/double-slash-root.m4: Likewise.
43968         * m4/eaccess.m4: Likewise.
43969         * m4/eealloc.m4: Likewise.
43970         * m4/environ.m4: Likewise.
43971         * m4/errno_h.m4: Likewise.
43972         * m4/euidaccess.m4: Likewise.
43973         * m4/execute.m4: Likewise.
43974         * m4/fatal-signal.m4: Likewise.
43975         * m4/fchdir.m4: Likewise.
43976         * m4/fcntl_h.m4: Likewise.
43977         * m4/fileblocks.m4: Likewise.
43978         * m4/filenamecat.m4: Likewise.
43979         * m4/findprog.m4: Likewise.
43980         * m4/flexmember.m4: Likewise.
43981         * m4/fnmatch.m4: Likewise.
43982         * m4/fopen.m4: Likewise.
43983         * m4/fpending.m4: Likewise.
43984         * m4/fprintf-posix.m4: Likewise.
43985         * m4/free.m4: Likewise.
43986         * m4/frexp.m4: Likewise.
43987         * m4/frexpl.m4: Likewise.
43988         * m4/fsusage.m4: Likewise.
43989         * m4/ftruncate.m4: Likewise.
43990         * m4/gc-camellia.m4: Likewise.
43991         * m4/gc-random.m4: Likewise.
43992         * m4/gc.m4: Likewise.
43993         * m4/getaddrinfo.m4: Likewise.
43994         * m4/getcwd-abort-bug.m4: Likewise.
43995         * m4/getcwd-path-max.m4: Likewise.
43996         * m4/getdate.m4: Likewise.
43997         * m4/getdomainname.m4: Likewise.
43998         * m4/getgroups.m4: Likewise.
43999         * m4/gethostname.m4: Likewise.
44000         * m4/gethrxtime.m4: Likewise.
44001         * m4/getline.m4: Likewise.
44002         * m4/getloadavg.m4: Likewise.
44003         * m4/getndelim2.m4: Likewise.
44004         * m4/getpass.m4: Likewise.
44005         * m4/gettext.m4: Likewise.
44006         * m4/gettime.m4: Likewise.
44007         * m4/gettimeofday.m4: Likewise.
44008         * m4/gnulib-common.m4: Likewise.
44009         * m4/group-member.m4: Likewise.
44010         * m4/host-os.m4: Likewise.
44011         * m4/iconv.m4: Likewise.
44012         * m4/iconv_open.m4: Likewise.
44013         * m4/inet_ntop.m4: Likewise.
44014         * m4/inet_pton.m4: Likewise.
44015         * m4/inline.m4: Likewise.
44016         * m4/intldir.m4: Likewise.
44017         * m4/intlmacosx.m4: Likewise.
44018         * m4/intmax.m4: Likewise.
44019         * m4/intmax_t.m4: Likewise.
44020         * m4/inttypes.m4: Likewise.
44021         * m4/inttypes_h.m4: Likewise.
44022         * m4/inttypes-pri.m4: Likewise.
44023         * m4/isapipe.m4: Likewise.
44024         * m4/isnand.m4: Likewise.
44025         * m4/isnanf.m4: Likewise.
44026         * m4/isnanl.m4: Likewise.
44027         * m4/javacomp.m4: Likewise.
44028         * m4/javaexec.m4: Likewise.
44029         * m4/jm-winsz1.m4: Likewise.
44030         * m4/jm-winsz2.m4: Likewise.
44031         * m4/lchown.m4: Likewise.
44032         * m4/lcmessage.m4: Likewise.
44033         * m4/ldexpl.m4: Likewise.
44034         * m4/lib-ld.m4: Likewise.
44035         * m4/lib-link.m4: Likewise.
44036         * m4/libsigsegv.m4: Likewise.
44037         * m4/link-follow.m4: Likewise.
44038         * m4/localcharset.m4: Likewise.
44039         * m4/locale-fr.m4: Likewise.
44040         * m4/locale-ja.m4: Likewise.
44041         * m4/locale-tr.m4: Likewise.
44042         * m4/locale-zh.m4: Likewise.
44043         * m4/lock.m4: Likewise.
44044         * m4/longlong.m4: Likewise.
44045         * m4/ls-mntd-fs.m4: Likewise.
44046         * m4/lstat.m4: Likewise.
44047         * m4/malloc.m4: Likewise.
44048         * m4/mathl.m4: Likewise.
44049         * m4/mbrtowc.m4: Likewise.
44050         * m4/mbstate_t.m4: Likewise.
44051         * m4/mbswidth.m4: Likewise.
44052         * m4/memchr.m4: Likewise.
44053         * m4/memcmp.m4: Likewise.
44054         * m4/memcpy.m4: Likewise.
44055         * m4/memmem.m4: Likewise.
44056         * m4/memmove.m4: Likewise.
44057         * m4/mempcpy.m4: Likewise.
44058         * m4/memrchr.m4: Likewise.
44059         * m4/memset.m4: Likewise.
44060         * m4/minmax.m4: Likewise.
44061         * m4/mkdir-slash.m4: Likewise.
44062         * m4/mkdtemp.m4: Likewise.
44063         * m4/mktime.m4: Likewise.
44064         * m4/mmap-anon.m4: Likewise.
44065         * m4/mountlist.m4: Likewise.
44066         * m4/nanosleep.m4: Likewise.
44067         * m4/nls.m4: Likewise.
44068         * m4/nocrash.m4: Likewise.
44069         * m4/open.m4: Likewise.
44070         * m4/openat.m4: Likewise.
44071         * m4/openmp.m4: Likewise.
44072         * m4/pathmax.m4: Likewise.
44073         * m4/perl.m4: Likewise.
44074         * m4/physmem.m4: Likewise.
44075         * m4/pipe.m4: Likewise.
44076         * m4/po.m4: Likewise.
44077         * m4/poll.m4: Likewise.
44078         * m4/posixtm.m4: Likewise.
44079         * m4/posixver.m4: Likewise.
44080         * m4/printf-frexp.m4: Likewise.
44081         * m4/printf-frexpl.m4: Likewise.
44082         * m4/printf-posix.m4: Likewise.
44083         * m4/printf-posix-rpl.m4: Likewise.
44084         * m4/printf.m4: Likewise.
44085         * m4/progtest.m4: Likewise.
44086         * m4/putenv.m4: Likewise.
44087         * m4/readline.m4: Likewise.
44088         * m4/readlink.m4: Likewise.
44089         * m4/readutmp.m4: Likewise.
44090         * m4/realloc.m4: Likewise.
44091         * m4/regex.m4: Likewise.
44092         * m4/relocatable.m4: Likewise.
44093         * m4/relocatable-lib.m4: Likewise.
44094         * m4/rename-dest-slash.m4: Likewise.
44095         * m4/rename.m4: Likewise.
44096         * m4/rmdir-errno.m4: Likewise.
44097         * m4/rmdir.m4: Likewise.
44098         * m4/roundf.m4: Likewise.
44099         * m4/roundl.m4: Likewise.
44100         * m4/rpmatch.m4: Likewise.
44101         * m4/save-cwd.m4: Likewise.
44102         * m4/selinux-selinux-h.m4: Likewise.
44103         * m4/setenv.m4: Likewise.
44104         * m4/settime.m4: Likewise.
44105         * m4/sig2str.m4: Likewise.
44106         * m4/sig_atomic_t.m4: Likewise.
44107         * m4/signalblocking.m4: Likewise.
44108         * m4/signbit.m4: Likewise.
44109         * m4/sigpipe.m4: Likewise.
44110         * m4/sockets.m4: Likewise.
44111         * m4/sockpfaf.m4: Likewise.
44112         * m4/st_dm_mode.m4: Likewise.
44113         * m4/stat-time.m4: Likewise.
44114         * m4/stdbool.m4: Likewise.
44115         * m4/stdint.m4: Likewise.
44116         * m4/stdint_h.m4: Likewise.
44117         * m4/stpcpy.m4: Likewise.
44118         * m4/stpncpy.m4: Likewise.
44119         * m4/strcase.m4: Likewise.
44120         * m4/strchrnul.m4: Likewise.
44121         * m4/strcspn.m4: Likewise.
44122         * m4/strdup.m4: Likewise.
44123         * m4/strftime.m4: Likewise.
44124         * m4/strndup.m4: Likewise.
44125         * m4/strnlen.m4: Likewise.
44126         * m4/strpbrk.m4: Likewise.
44127         * m4/strptime.m4: Likewise.
44128         * m4/strsep.m4: Likewise.
44129         * m4/strtod.m4: Likewise.
44130         * m4/strtoimax.m4: Likewise.
44131         * m4/strtok_r.m4: Likewise.
44132         * m4/strtol.m4: Likewise.
44133         * m4/strtoll.m4: Likewise.
44134         * m4/strtoul.m4: Likewise.
44135         * m4/strtoull.m4: Likewise.
44136         * m4/strtoumax.m4: Likewise.
44137         * m4/strverscmp.m4: Likewise.
44138         * m4/threadlib.m4: Likewise.
44139         * m4/timegm.m4: Likewise.
44140         * m4/tm_gmtoff.m4: Likewise.
44141         * m4/tmpdir.m4: Likewise.
44142         * m4/tmpfile.m4: Likewise.
44143         * m4/tzset.m4: Likewise.
44144         * m4/uintmax_t.m4: Likewise.
44145         * m4/unlinkdir.m4: Likewise.
44146         * m4/unlocked-io.m4: Likewise.
44147         * m4/uptime.m4: Likewise.
44148         * m4/userspec.m4: Likewise.
44149         * m4/utimbuf.m4: Likewise.
44150         * m4/utime.m4: Likewise.
44151         * m4/utimes-null.m4: Likewise.
44152         * m4/utimes.m4: Likewise.
44153         * m4/vararrays.m4: Likewise.
44154         * m4/vasnprintf.m4: Likewise.
44155         * m4/vfprintf-posix.m4: Likewise.
44156         * m4/vprintf-posix.m4: Likewise.
44157         * m4/wait-process.m4: Likewise.
44158         * m4/wchar_t.m4: Likewise.
44159         * m4/wint_t.m4: Likewise.
44160         * m4/write-any-file.m4: Likewise.
44161         * m4/yield.m4: Likewise.
44162
44163 2009-01-13  Bruno Haible  <bruno@clisp.org>
44164
44165         Avoid test-copy-file.sh failures when ACL support insufficient.
44166         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
44167         TESTS_ENVIRONMENT.
44168         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
44169         Reported by Jim Meyering.
44170
44171 2009-01-13  Bruno Haible  <bruno@clisp.org>
44172
44173         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
44174         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
44175         * modules/unistdio/u8-printf-parse (Files): Likewise.
44176         * modules/unistdio/u32-printf-parse (Files): Likewise.
44177         * modules/unistdio/ulc-printf-parse (Files): Likewise.
44178
44179 2009-01-13  Simon Josefsson  <simon@josefsson.org>
44180
44181         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
44182         and m4/inttypes_h.m4 too.
44183
44184 2009-01-12  Eric Blake  <ebb9@byu.net>
44185
44186         tests: IRIX 6.2 cc can't compile -0.0 into .data
44187         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
44188         rather than at compile-time.
44189         * tests/test-floorl.c (minus_zero): Likewise.
44190         * tests/test-frexpl.c (minus_zero): Likewise.
44191         * tests/test-isnan.c (minus_zerol): Likewise.
44192         * tests/test-isnanl.h (minus_zero): Likewise.
44193         * tests/test-ldexpl.c (minus_zero): Likewise.
44194         * tests/test-roundl.c (minus_zero): Likewise.
44195         * tests/test-signbit.c (minus_zerol): Likewise.
44196         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44197         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44198         * tests/test-truncl.c (minus_zero): Likewise.
44199         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44200         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44201         Reported by Tom G. Christensen and Nelson H. F. Beebe.
44202
44203 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44204
44205         regex: fix glibc bug 9697
44206         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
44207         handling.
44208
44209 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44210
44211         regex: fix glibc bug 697
44212         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
44213         being NULL also if there are no backreferences.
44214
44215 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44216
44217         regex: merge glibc changes
44218         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
44219         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
44220         re_string_skip_chars, re_string_reconstruct): Likewise.
44221         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
44222
44223 2009-01-07  Jim Meyering  <meyering@redhat.com>
44224
44225         poll: filter through cppi
44226         * lib/poll.c: Indent cpp directives to reflect nesting.
44227
44228 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
44229
44230         poll: don't return uninitialized
44231         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
44232
44233 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
44234
44235         avoid compile failure on AIX 6.1
44236         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
44237         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
44238
44239 2009-01-04  Jim Meyering  <meyering@redhat.com>
44240
44241         remove duplicate inclusion of <stdio.h>
44242         * tests/test-fprintf-posix.c: Likewise.
44243         * tests/test-printf-posix.c: Likewise.
44244         * tests/test-snprintf-posix.c: Likewise.
44245         * tests/test-sprintf-posix.c: Likewise.
44246         * tests/test-vasprintf-posix.c: Likewise.
44247         * tests/test-vfprintf-posix.c: Likewise.
44248         * tests/test-vprintf-posix.c: Likewise.
44249         * tests/test-vsnprintf-posix.c: Likewise.
44250         * tests/test-vsprintf-posix.c: Likewise.
44251
44252 2009-01-03  Jim Meyering  <meyering@redhat.com>
44253
44254         gnulib-tool: fix sed-based filtering
44255         * gnulib-tool (func_filter_filelist): Remove extra backslash
44256         in sed_fff_filter definition.
44257
44258 2009-01-02  Jim Meyering  <meyering@redhat.com>
44259
44260         strftime: avoid compilation failure on Solaris 2.6
44261         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
44262         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
44263         Don't #define mbrlen or mbsinit, since now they're guaranteed to
44264         be available.  Reported by Tom G. Christensen.  Details in
44265         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
44266
44267 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44268             Bruno Haible  <bruno@clisp.org>
44269
44270         Speed up gnulib-tool by doing more string processing through shell
44271         built-ins.
44272         * gnulib-tool (fast_func_append): New variable.
44273         (func_remove_prefix, func_remove_suffix): New functions.
44274         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
44275         (func_filter_filelist): New function.
44276         (func_get_dependencies): Use func_remove_suffix instead of sed.
44277         (func_get_automake_snippet): Use func_filter_filelist instead of a
44278         subshell and sed invocation.
44279
44280 2009-01-01  Bruno Haible  <bruno@clisp.org>
44281
44282         Fix a security bug.
44283         * gnulib-tool (func_import, import, update): Don't allow the characters
44284         '"', '$', '`', '\' in macro arguments that become part of commands that
44285         are evaluated.
44286
44287 2009-01-01  Bruno Haible  <bruno@clisp.org>
44288
44289         * gnulib-tool (func_reset_sigpipe): Add more comments.
44290
44291 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44292
44293         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
44294         func_emit_tests_Makefile_am, func_import): Abort loops early if we
44295         already know the answer.
44296
44297 2009-01-01  Jim Meyering  <meyering@redhat.com>
44298
44299         * lib/version-etc.c (version_etc_va): Update copyright year.
44300
44301 2008-12-30  Bruno Haible  <bruno@clisp.org>
44302
44303         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
44304         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
44305         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
44306
44307 2008-12-29  Eric Blake  <ebb9@byu.net>
44308
44309         multiarch: avoid autoconf AC_REQUIRE bug
44310         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
44311         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
44312         2.63 and older.
44313         Reported by Bruno Haible, and analyzed in
44314         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
44315
44316 2008-12-29  Bruno Haible  <bruno@clisp.org>
44317
44318         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
44319         files in subdirectories correctly.
44320         Reported by Ralf Wildenhues.
44321
44322 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44323
44324         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
44325         rather than 'join FILE -', for Solaris join.
44326
44327 2008-12-29  Bruno Haible  <bruno@clisp.org>
44328
44329         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
44330         quoting.
44331         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44332         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
44333         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
44334         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
44335         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44336         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
44337         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
44338         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
44339         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44340         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
44341         * m4/nls.m4 (AM_NLS): Likewise.
44342         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
44343         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
44344         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
44345         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
44346         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
44347         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
44348         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
44349         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
44350         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
44351         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44352         * m4/xsize.m4 (gl_XSIZE): Likewise.
44353         Suggested by Jim Meyering.
44354
44355 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44356
44357         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
44358         * lib/parse-duration.c: use a switch instead of cascading if's.
44359
44360 2008-12-29  Eric Blake  <ebb9@byu.net>
44361
44362         wchar.h: supply WEOF on Irix 5.3
44363         * lib/wchar.in.h (wint_t): Also supply WEOF.
44364         * lib/wctype.in.h (wint_t): Likewise.
44365         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
44366         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
44367         Reported by Tom G. Christensen.
44368
44369 2008-12-26  Bruno Haible  <bruno@clisp.org>
44370
44371         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
44372         i486, i586, i686.
44373
44374 2008-12-26  Bruno Haible  <bruno@clisp.org>
44375
44376         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
44377
44378 2008-12-26  Bruno Haible  <bruno@clisp.org>
44379
44380         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
44381         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
44382         not __STDC_CONSTANT_MACROS.
44383         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44384
44385 2008-12-25  Bruno Haible  <bruno@clisp.org>
44386
44387         Add support for universal builds to vasnprintf.
44388         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
44389         universal builds, guess no.
44390         * modules/vasnprintf-posix (Depends-on): Add multiarch.
44391         * modules/vasprintf-posix (Depends-on): Likewise.
44392         * modules/fprintf-posix (Depends-on): Likewise.
44393         * modules/vfprintf-posix (Depends-on): Likewise.
44394         * modules/snprintf-posix (Depends-on): Likewise.
44395         * modules/vsnprintf-posix (Depends-on): Likewise.
44396         * modules/sprintf-posix (Depends-on): Likewise.
44397         * modules/vsprintf-posix (Depends-on): Likewise.
44398         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44399         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44400         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44401         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44402         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44403         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44404         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44405
44406         Add support for universal builds to <inttypes.h>.
44407         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
44408         _SCNu64_PREFIX): In Apple
44409         universal builds, define directly, using _LP64.
44410         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
44411         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
44412         * modules/inttypes (Depends-on): Add multiarch.
44413         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44414
44415         Add support for universal builds to <stdint.h>.
44416         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
44417         universal builds, define directly, using _LP64.
44418         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
44419         Apple universal builds, don't test for the size and suffix of ptrdiff_t
44420         and size_t.
44421         * modules/stdint (Depends-on): Add multiarch.
44422         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44423
44424         New module 'multiarch'.
44425         * modules/multiarch: New file.
44426         * m4/multiarch.m4: New file.
44427
44428 2008-12-25  Bruno Haible  <bruno@clisp.org>
44429
44430         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
44431
44432 2008-12-25  Bruno Haible  <bruno@clisp.org>
44433
44434         * modules/btowc (License): Relicense under LGPLv2+.
44435         * modules/mbsinit (License): Likewise.
44436         * modules/mbrtowc (License): Likewise.
44437         * modules/wcrtomb (License): Likewise.
44438         * modules/streq (License): Likewise.
44439         Reported by David Lutterkort <lutter@redhat.com>.
44440
44441 2008-12-23  Bruno Haible  <bruno@clisp.org>
44442
44443         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
44444
44445 2008-12-23  Bruno Haible  <bruno@clisp.org>
44446
44447         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
44448         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
44449         GETADDRINFO_LIB, not in LIBS.
44450         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
44451         * modules/canon-host (Link): Likewise.
44452         * NEWS: Mention the change.
44453         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
44454         GETADDRINFO_LIB.
44455
44456 2008-12-22  Bruno Haible  <bruno@clisp.org>
44457
44458         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
44459         * doc/posix-functions/iswalpha_l.texi: Likewise.
44460         * doc/posix-functions/iswblank_l.texi: Likewise.
44461         * doc/posix-functions/iswcntrl_l.texi: Likewise.
44462         * doc/posix-functions/iswctype_l.texi: Likewise.
44463         * doc/posix-functions/iswdigit_l.texi: Likewise.
44464         * doc/posix-functions/iswgraph_l.texi: Likewise.
44465         * doc/posix-functions/iswlower_l.texi: Likewise.
44466         * doc/posix-functions/iswprint_l.texi: Likewise.
44467         * doc/posix-functions/iswpunct_l.texi: Likewise.
44468         * doc/posix-functions/iswspace_l.texi: Likewise.
44469         * doc/posix-functions/iswupper_l.texi: Likewise.
44470         * doc/posix-functions/iswxdigit_l.texi: Likewise.
44471         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
44472         * doc/posix-functions/open_wmemstream.texi: Likewise.
44473         * doc/posix-functions/swscanf.texi: Likewise.
44474         * doc/posix-functions/towctrans_l.texi: Likewise.
44475         * doc/posix-functions/towlower.texi: Likewise.
44476         * doc/posix-functions/towlower_l.texi: Likewise.
44477         * doc/posix-functions/towupper.texi: Likewise.
44478         * doc/posix-functions/towupper_l.texi: Likewise.
44479         * doc/posix-functions/vfwprintf.texi: Likewise.
44480         * doc/posix-functions/vfwscanf.texi: Likewise.
44481         * doc/posix-functions/vswscanf.texi: Likewise.
44482         * doc/posix-functions/vwprintf.texi: Likewise.
44483         * doc/posix-functions/vwscanf.texi: Likewise.
44484         * doc/posix-functions/wcpcpy.texi: Likewise.
44485         * doc/posix-functions/wcpncpy.texi: Likewise.
44486         * doc/posix-functions/wcscasecmp.texi: Likewise.
44487         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
44488         * doc/posix-functions/wcscoll_l.texi: Likewise.
44489         * doc/posix-functions/wcsdup.texi: Likewise.
44490         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44491         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
44492         * doc/posix-functions/wcsnlen.texi: Likewise.
44493         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44494         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
44495         * doc/posix-functions/wctrans_l.texi: Likewise.
44496         * doc/posix-functions/wctype_l.texi: Likewise.
44497         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
44498         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
44499         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
44500         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
44501         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
44502         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
44503         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
44504         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
44505         * doc/glibc-functions/wcschrnul.texi: Likewise.
44506         * doc/glibc-functions/wcsftime_l.texi: Likewise.
44507         * doc/glibc-functions/wcstod_l.texi: Likewise.
44508         * doc/glibc-functions/wcstof_l.texi: Likewise.
44509         * doc/glibc-functions/wcstol_l.texi: Likewise.
44510         * doc/glibc-functions/wcstold_l.texi: Likewise.
44511         * doc/glibc-functions/wcstoll_l.texi: Likewise.
44512         * doc/glibc-functions/wcstoq.texi: Likewise.
44513         * doc/glibc-functions/wcstoul_l.texi: Likewise.
44514         * doc/glibc-functions/wcstoull_l.texi: Likewise.
44515         * doc/glibc-functions/wcstouq.texi: Likewise.
44516         * doc/glibc-functions/wmempcpy.texi: Likewise.
44517
44518 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
44519             Eric Blake  <ebb9@byu.net>
44520             Paolo Bonzini  <bonzini@gnu.org>
44521             Bruno Haible  <bruno@clisp.org>
44522
44523         Make c-stack work on Haiku.
44524         * lib/c-stack.c (SA_ONSTACK): Define fallback.
44525         (c_stack_action): Use SA_ONSTACK flag.
44526
44527 2008-12-22  Bruno Haible  <bruno@clisp.org>
44528
44529         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
44530
44531 2008-12-22  Bruno Haible  <bruno@clisp.org>
44532
44533         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
44534         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
44535         being overridden.
44536         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
44537         New macros.
44538         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
44539         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
44540         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
44541         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
44542
44543 2008-12-22  Bruno Haible  <bruno@clisp.org>
44544
44545         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
44546         from test code.
44547
44548 2008-12-22  Eric Blake  <ebb9@byu.net>
44549
44550         Avoid gcc warnings on cygwin.
44551         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
44552         Avoid unused variable.
44553         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
44554         Likewise.
44555
44556 2008-12-22  Bruno Haible  <bruno@clisp.org>
44557
44558         Remove HAVE_MBRTOWC conditionals.
44559         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
44560         (mbscasecmp): Assume mbrtowc function.
44561         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
44562         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
44563         * lib/mbschr.c: Include mbuiter.h unconditionally.
44564         (mbschr): Assume mbrtowc function.
44565         * lib/mbscspn.c: Include mbuiter.h unconditionally.
44566         (mbscspn): Assume mbrtowc function.
44567         * lib/mbslen.c: Include mbuiter.h unconditionally.
44568         (mbslen): Assume mbrtowc function.
44569         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
44570         (mbsncasecmp): Assume mbrtowc function.
44571         * lib/mbsnlen.c: Include mbiter.h unconditionally.
44572         (mbsnlen): Assume mbrtowc function.
44573         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
44574         (mbspbrk): Assume mbrtowc function.
44575         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
44576         (mbspcasecmp): Assume mbrtowc function.
44577         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
44578         (mbsrchr): Assume mbrtowc function.
44579         * lib/mbssep.c: Include mbuiter.h unconditionally.
44580         (mbssep): Assume mbrtowc function.
44581         * lib/mbsspn.c: Include mbuiter.h unconditionally.
44582         (mbsspn): Assume mbrtowc function.
44583         * lib/mbsstr.c: Include mbuiter.h unconditionally.
44584         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
44585         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
44586         (mbstok_r): Assume mbrtowc function.
44587         * lib/propername.c: Include mbuiter.h unconditionally.
44588         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
44589         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
44590         (trim2): Assume mbrtowc function.
44591         * lib/mbswidth.c (mbsinit): Remove fallback definition.
44592         (mbsnwidth): Assume mbrtowc function.
44593         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
44594         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
44595         fallback definitions.
44596         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
44597
44598 2008-12-22  Bruno Haible  <bruno@clisp.org>
44599
44600         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
44601
44602 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
44603
44604         * modules/regex: Request emulations for the mb*/wc* functions we need.
44605         * m4/regex.m4: Don't look for those functions here.
44606         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
44607
44608 2008-12-22  Bruno Haible  <bruno@clisp.org>
44609
44610         * modules/fnmatch (Depends-on): Remove duplicated dependency.
44611
44612 2008-12-21  Bruno Haible  <bruno@clisp.org>
44613
44614         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
44615         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
44616         (Include): Remove conditionalization.
44617         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
44618         (Include): Remove conditionalization.
44619         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
44620         (Include): Remove conditionalization.
44621         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
44622         * m4/mbfile.m4 (gl_MBFILE): Likewise.
44623         * NEWS: Mention the change.
44624         Reported by Alan Hourihane <alanh@fairlite.co.uk>
44625         via Sergey Poznyakoff <gray@gnu.org.ua>.
44626
44627 2008-12-21  Bruno Haible  <bruno@clisp.org>
44628
44629         * MODULES.html.sh (Extended multibyte and wide character utilities
44630         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
44631         wcrtomb, wcsrtombs.
44632         (Support for systems lacking POSIX:2008): Add accept, bind, close,
44633         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
44634         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
44635         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
44636
44637 2008-12-21  Bruno Haible  <bruno@clisp.org>
44638
44639         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
44640
44641 2008-12-21  Bruno Haible  <bruno@clisp.org>
44642
44643         * modules/wcsnrtombs-tests: New file.
44644         * tests/test-wcsnrtombs1.sh: New file.
44645         * tests/test-wcsnrtombs2.sh: New file.
44646         * tests/test-wcsnrtombs3.sh: New file.
44647         * tests/test-wcsnrtombs4.sh: New file.
44648         * tests/test-wcsnrtombs.c: New file.
44649
44650         New module 'wcsnrtombs'.
44651         * lib/wchar.in.h (wcsnrtombs): New declaration.
44652         * lib/wcsnrtombs.c: New file.
44653         * lib/wcsrtombs-state.c: New file.
44654         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
44655         (internal_state): Remove variable.
44656         * m4/wcsnrtombs.m4: New file.
44657         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
44658         compilation units.
44659         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
44660         HAVE_WCSNRTOMBS.
44661         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
44662         HAVE_WCSNRTOMBS.
44663         * modules/wcsnrtombs: New file.
44664         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
44665         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
44666
44667 2008-12-21  Bruno Haible  <bruno@clisp.org>
44668
44669         * modules/wcsrtombs-tests: New file.
44670         * tests/test-wcsrtombs1.sh: New file.
44671         * tests/test-wcsrtombs2.sh: New file.
44672         * tests/test-wcsrtombs3.sh: New file.
44673         * tests/test-wcsrtombs4.sh: New file.
44674         * tests/test-wcsrtombs.c: New file.
44675
44676         New module 'wcsrtombs'.
44677         * lib/wchar.in.h (wcsrtombs): New declaration.
44678         * lib/wcsrtombs.c: New file.
44679         * m4/wcsrtombs.m4: New file.
44680         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
44681         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44682         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
44683         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44684         * modules/wcsrtombs: New file.
44685         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
44686         bugs.
44687
44688 2008-12-21  Bruno Haible  <bruno@clisp.org>
44689
44690         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
44691         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
44692         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
44693         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
44694         if not correct.
44695         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
44696         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
44697         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44698         m4/locale-zh.m4, m4/codeset.m4.
44699         * doc/posix-functions/wcrtomb.texi: Document the bug.
44700
44701 2008-12-21  Bruno Haible  <bruno@clisp.org>
44702
44703         Work around a btowc() bug on IRIX 6.5.
44704         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
44705         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
44706         REPLACE_WTOBC if not.
44707         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
44708         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
44709         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
44710
44711 2008-12-21  Bruno Haible  <bruno@clisp.org>
44712
44713         * modules/wcrtomb-tests: New file.
44714         * tests/test-wcrtomb.sh: New file.
44715         * tests/test-wcrtomb.c: New file.
44716
44717         New module 'wcrtomb'.
44718         * lib/wchar.in.h (wcrtomb): New declaration.
44719         * lib/wcrtomb.c: New file.
44720         * m4/wcrtomb.m4: New file.
44721         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
44722         HAVE_WCRTOMB.
44723         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
44724         HAVE_WCRTOMB.
44725         * modules/wcrtomb: New file.
44726         * doc/posix-functions/wcrtomb.texi: Mention the new module.
44727
44728 2008-12-21  Bruno Haible  <bruno@clisp.org>
44729
44730         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
44731         * modules/mbsrtowcs (Files): Likewise.
44732         * modules/wctob (Files): Likewise.
44733         * modules/c-strcase-tests (Files): Likewise.
44734         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
44735         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
44736         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
44737         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
44738         * modules/vasnprintf-posix-tests (Files): Likewise.
44739
44740 2008-12-21  William Pursell  <bill.pursell@gmail.com>
44741
44742         gitlog-to-changelog: pass all command-line arguments to git-log
44743         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
44744         it is sometimes convenient to filter the commits in various ways.
44745         gitlog-to-changelog only allows --since to specify a start date,
44746         but git-log itself supports many other filtering mechanisms.
44747         At the moment, I want to filter by branch name.  Rather than
44748         adding a --branch option to gitlog-to-changelog, it seems more
44749         flexible to simply pass all options directly to git-log and let
44750         git do the work.  Notice that this effectively makes --since a
44751         redundant option for gitlog-to-changelog, but removing it would
44752         require current usage to change since calls would then require
44753         an additional '--'.
44754
44755 2008-12-21  Bruno Haible  <bruno@clisp.org>
44756
44757         * modules/mbsnrtowcs-tests: New file.
44758         * tests/test-mbsnrtowcs1.sh: New file.
44759         * tests/test-mbsnrtowcs2.sh: New file.
44760         * tests/test-mbsnrtowcs3.sh: New file.
44761         * tests/test-mbsnrtowcs4.sh: New file.
44762         * tests/test-mbsnrtowcs.c: New file.
44763
44764         New module 'mbsnrtowcs'.
44765         * lib/wchar.in.h (mbsnrtowcs): New declaration.
44766         * lib/mbsnrtowcs.c: New file.
44767         * lib/mbsrtowcs-state.c: New file.
44768         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
44769         (internal_state): Remove variable.
44770         * m4/mbsnrtowcs.m4: New file.
44771         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
44772         compilation units.
44773         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
44774         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44775         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
44776         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44777         * modules/mbsnrtowcs: New file.
44778         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
44779         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
44780         portability problem.
44781
44782 2008-12-21  Bruno Haible  <bruno@clisp.org>
44783
44784         Work around mbsrtowcs bug.
44785         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
44786         (gl_FUNC_MBSRTOWCS): Invoke it.
44787         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44788         m4/locale-zh.m4.
44789         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
44790
44791 2008-12-21  Bruno Haible  <bruno@clisp.org>
44792
44793         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
44794
44795 2008-12-21  Bruno Haible  <bruno@clisp.org>
44796
44797         Update doc for AIX.
44798         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
44799         16-bit wchar_t type.
44800         * doc/posix-functions/btowc.texi: Likewise.
44801         * doc/posix-functions/fgetwc.texi: Likewise.
44802         * doc/posix-functions/fgetws.texi: Likewise.
44803         * doc/posix-functions/fputwc.texi: Likewise.
44804         * doc/posix-functions/fputws.texi: Likewise.
44805         * doc/posix-functions/fwide.texi: Likewise.
44806         * doc/posix-functions/fwprintf.texi: Likewise.
44807         * doc/posix-functions/fwscanf.texi: Likewise.
44808         * doc/posix-functions/getwchar.texi: Likewise.
44809         * doc/posix-functions/getwc.texi: Likewise.
44810         * doc/posix-functions/iswalnum.texi: Likewise.
44811         * doc/posix-functions/iswalpha.texi: Likewise.
44812         * doc/posix-functions/iswblank.texi: Likewise.
44813         * doc/posix-functions/iswcntrl.texi: Likewise.
44814         * doc/posix-functions/iswctype.texi: Likewise.
44815         * doc/posix-functions/iswdigit.texi: Likewise.
44816         * doc/posix-functions/iswgraph.texi: Likewise.
44817         * doc/posix-functions/iswlower.texi: Likewise.
44818         * doc/posix-functions/iswprint.texi: Likewise.
44819         * doc/posix-functions/iswpunct.texi: Likewise.
44820         * doc/posix-functions/iswspace.texi: Likewise.
44821         * doc/posix-functions/iswupper.texi: Likewise.
44822         * doc/posix-functions/iswxdigit.texi: Likewise.
44823         * doc/posix-functions/mbrtowc.texi: Likewise.
44824         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44825         * doc/posix-functions/mbstowcs.texi: Likewise.
44826         * doc/posix-functions/mbtowc.texi: Likewise.
44827         * doc/posix-functions/putwchar.texi: Likewise.
44828         * doc/posix-functions/putwc.texi: Likewise.
44829         * doc/posix-functions/swprintf.texi: Likewise.
44830         * doc/posix-functions/tolower.texi: Likewise.
44831         * doc/posix-functions/toupper.texi: Likewise.
44832         * doc/posix-functions/towctrans.texi: Likewise.
44833         * doc/posix-functions/ungetwc.texi: Likewise.
44834         * doc/posix-functions/vswprintf.texi: Likewise.
44835         * doc/posix-functions/wcrtomb.texi: Likewise.
44836         * doc/posix-functions/wcscat.texi: Likewise.
44837         * doc/posix-functions/wcschr.texi: Likewise.
44838         * doc/posix-functions/wcscmp.texi: Likewise.
44839         * doc/posix-functions/wcscoll.texi: Likewise.
44840         * doc/posix-functions/wcscpy.texi: Likewise.
44841         * doc/posix-functions/wcscspn.texi: Likewise.
44842         * doc/posix-functions/wcsftime.texi: Likewise.
44843         * doc/posix-functions/wcslen.texi: Likewise.
44844         * doc/posix-functions/wcsncat.texi: Likewise.
44845         * doc/posix-functions/wcsncmp.texi: Likewise.
44846         * doc/posix-functions/wcsncpy.texi: Likewise.
44847         * doc/posix-functions/wcspbrk.texi: Likewise.
44848         * doc/posix-functions/wcsrchr.texi: Likewise.
44849         * doc/posix-functions/wcsrtombs.texi: Likewise.
44850         * doc/posix-functions/wcsspn.texi: Likewise.
44851         * doc/posix-functions/wcsstr.texi: Likewise.
44852         * doc/posix-functions/wcstod.texi: Likewise.
44853         * doc/posix-functions/wcstof.texi: Likewise.
44854         * doc/posix-functions/wcstoimax.texi: Likewise.
44855         * doc/posix-functions/wcstok.texi: Likewise.
44856         * doc/posix-functions/wcstold.texi: Likewise.
44857         * doc/posix-functions/wcstoll.texi: Likewise.
44858         * doc/posix-functions/wcstol.texi: Likewise.
44859         * doc/posix-functions/wcstombs.texi: Likewise.
44860         * doc/posix-functions/wcstoull.texi: Likewise.
44861         * doc/posix-functions/wcstoul.texi: Likewise.
44862         * doc/posix-functions/wcstoumax.texi: Likewise.
44863         * doc/posix-functions/wcswidth.texi: Likewise.
44864         * doc/posix-functions/wcsxfrm.texi: Likewise.
44865         * doc/posix-functions/wctob.texi: Likewise.
44866         * doc/posix-functions/wctomb.texi: Likewise.
44867         * doc/posix-functions/wctrans.texi: Likewise.
44868         * doc/posix-functions/wctype.texi: Likewise.
44869         * doc/posix-functions/wcwidth.texi: Likewise.
44870         * doc/posix-functions/wmemchr.texi: Likewise.
44871         * doc/posix-functions/wmemcmp.texi: Likewise.
44872         * doc/posix-functions/wmemcpy.texi: Likewise.
44873         * doc/posix-functions/wmemmove.texi: Likewise.
44874         * doc/posix-functions/wmemset.texi: Likewise.
44875         * doc/posix-functions/wprintf.texi: Likewise.
44876         * doc/posix-functions/wscanf.texi: Likewise.
44877
44878 2008-12-21  Bruno Haible  <bruno@clisp.org>
44879
44880         Update doc for HP-UX 11.11.
44881         * doc/posix-functions/btowc.texi: Clarify that the function is missing
44882         in HP-UX version 11.00, not in all versions of HP-UX 11.
44883         * doc/posix-functions/fwide.texi: Likewise.
44884         * doc/posix-functions/fwprintf.texi: Likewise.
44885         * doc/posix-functions/fwscanf.texi: Likewise.
44886         * doc/posix-functions/inet_ntop.texi: Likewise.
44887         * doc/posix-functions/inet_pton.texi: Likewise.
44888         * doc/posix-functions/mbrlen.texi: Likewise.
44889         * doc/posix-functions/mbrtowc.texi: Likewise.
44890         * doc/posix-functions/mbsinit.texi: Likewise.
44891         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44892         * doc/posix-functions/swprintf.texi: Likewise.
44893         * doc/posix-functions/swscanf.texi: Likewise.
44894         * doc/posix-functions/towctrans.texi: Likewise.
44895         * doc/posix-functions/vfwprintf.texi: Likewise.
44896         * doc/posix-functions/vswprintf.texi: Likewise.
44897         * doc/posix-functions/vwprintf.texi: Likewise.
44898         * doc/posix-functions/wcrtomb.texi: Likewise.
44899         * doc/posix-functions/wcsrtombs.texi: Likewise.
44900         * doc/posix-functions/wcsstr.texi: Likewise.
44901         * doc/posix-functions/wctob.texi: Likewise.
44902         * doc/posix-functions/wctrans.texi: Likewise.
44903         * doc/posix-functions/wmemchr.texi: Likewise.
44904         * doc/posix-functions/wmemcmp.texi: Likewise.
44905         * doc/posix-functions/wmemcpy.texi: Likewise.
44906         * doc/posix-functions/wmemmove.texi: Likewise.
44907         * doc/posix-functions/wmemset.texi: Likewise.
44908         * doc/posix-functions/wprintf.texi: Likewise.
44909         * doc/posix-functions/wscanf.texi: Likewise.
44910
44911 2008-12-21  Bruno Haible  <bruno@clisp.org>
44912
44913         Work around a portability problem.
44914         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
44915         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
44916
44917 2008-12-20  Bruno Haible  <bruno@clisp.org>
44918
44919         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
44920         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
44921         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
44922         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
44923         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
44924
44925         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
44926         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
44927         set.
44928         (GNULIB_defined_mbstate_t): New macro.
44929         (mbsinit): Redefine if REPLACE_MBSINIT is set.
44930         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
44931         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
44932         reuses the system's mbrtowc function but works around the bugs.
44933         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
44934         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
44935         macros.
44936         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
44937         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
44938         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
44939         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
44940         REPLACE_MBSINIT if mbsinit needs to be overridden.
44941         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
44942         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44943         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
44944         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44945         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44946         m4/locale-zh.m4.
44947         (Depends): Add mbsinit.
44948         * modules/mbsinit (Depends): Add mbrtowc.
44949         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
44950
44951 2008-12-20  Bruno Haible  <bruno@clisp.org>
44952
44953         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
44954         so that there are no conversion errors on AIX.
44955         * tests/test-mbsrtowcs.c (main): LIkewise.
44956
44957 2008-12-20  Bruno Haible  <bruno@clisp.org>
44958
44959         Work around wctob bug on Solaris <= 9.
44960         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
44961         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
44962         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
44963         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
44964         * modules/wctob (Files): Add m4/locale-fr.m4.
44965         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
44966
44967 2008-12-20  Bruno Haible  <bruno@clisp.org>
44968
44969         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
44970         /dev/null.
44971         * tests/test-select-in.sh: Likewise.
44972         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44973
44974 2008-12-20  Bruno Haible  <bruno@clisp.org>
44975
44976         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
44977         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
44978         Cygwin 1.5.x.
44979
44980 2008-12-20  Bruno Haible  <bruno@clisp.org>
44981
44982         Ensure mbstate_t is defined on HP-UX 11.11.
44983         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
44984         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
44985         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
44986         AC_USE_SYSTEM_EXTENSIONS.
44987         * modules/fnmatch (Depends-on): Add extensions.
44988         * modules/mbrlen (Depends-on): Likewise.
44989         * modules/mbrtowc (Depends-on): Likewise.
44990         * modules/mbsinit (Depends-on): Likewise.
44991         * modules/mbsrtowcs (Depends-on): Likewise.
44992         * modules/mbswidth (Depends-on): Likewise.
44993         * modules/quotearg (Depends-on): Likewise.
44994         * modules/strftime (Depends-on): Likewise.
44995
44996 2008-12-20  Bruno Haible  <bruno@clisp.org>
44997
44998         Ensure wctob is declared on IRIX 6.5.
44999         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
45000         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
45001         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
45002         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
45003         of HAVE_WCTOB.
45004         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
45005         HAVE_WCTOB.
45006         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
45007
45008 2008-12-19  Bruno Haible  <bruno@clisp.org>
45009
45010         * modules/mbsrtowcs-tests: New file.
45011         * tests/test-mbsrtowcs1.sh: New file.
45012         * tests/test-mbsrtowcs2.sh: New file.
45013         * tests/test-mbsrtowcs3.sh: New file.
45014         * tests/test-mbsrtowcs4.sh: New file.
45015         * tests/test-mbsrtowcs.c: New file.
45016
45017         New module 'mbsrtowcs'.
45018         * lib/wchar.in.h (mbsrtowcs): New declaration.
45019         * lib/mbsrtowcs.c: New file.
45020         * m4/mbsrtowcs.m4: New file.
45021         * modules/mbsrtowcs: New file.
45022         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
45023         HAVE_MBSRTOWCS.
45024         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
45025         HAVE_MBSRTOWCS.
45026         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
45027
45028 2008-12-19  Bruno Haible  <bruno@clisp.org>
45029
45030         New module 'mbrlen'.
45031         * lib/wchar.in.h (mbrlen): New declaration.
45032         * lib/mbrlen.c: New file.
45033         * m4/mbrlen.m4: New file.
45034         * modules/mbrlen: New file.
45035         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
45036         HAVE_MBRLEN.
45037         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
45038         HAVE_MBRLEN.
45039         * doc/posix-functions/mbrlen.texi: Document the new module.
45040
45041 2008-12-19  Bruno Haible  <bruno@clisp.org>
45042
45043         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
45044         * modules/mbrtowc (Depends-on): Add verify.
45045         Suggested by Paul Eggert.
45046
45047 2008-12-18  Bruno Haible  <bruno@clisp.org>
45048
45049         * modules/mbsinit-tests: New file.
45050         * tests/test-mbsinit.sh: New file.
45051         * tests/test-mbsinit.c: New file.
45052
45053 2008-12-18  Bruno Haible  <bruno@clisp.org>
45054
45055         * modules/mbrtowc-tests: New file.
45056         * tests/test-mbrtowc1.sh: New file.
45057         * tests/test-mbrtowc2.sh: New file.
45058         * tests/test-mbrtowc3.sh: New file.
45059         * tests/test-mbrtowc4.sh: New file.
45060         * tests/test-mbrtowc.c: New file.
45061
45062         New module 'mbrtowc'.
45063         * lib/wchar.in.h (mbstate_t): Override when the system does not have
45064         mbsinit and mbrtowc.
45065         (mbrtowc): New declaration.
45066         * lib/mbrtowc.c: New file.
45067         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
45068         * modules/mbrtowc: New file.
45069         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
45070         HAVE_MBRTOWC.
45071         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
45072         HAVE_MBRTOWC.
45073         * doc/posix-functions/mbrtowc.texi: Document the new module.
45074
45075 2008-12-18  Bruno Haible  <bruno@clisp.org>
45076
45077         New module 'wctob'.
45078         * lib/wchar.in.h (wctob): New declaration.
45079         * lib/wctob.c: New file.
45080         * m4/wctob.m4: New file.
45081         * modules/wctob: New file.
45082         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
45083         HAVE_WCTOB.
45084         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
45085         * doc/posix-functions/wctob.texi: Document the new module.
45086
45087 2008-12-18  Bruno Haible  <bruno@clisp.org>
45088
45089         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
45090         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
45091
45092 2008-12-18  Simon Josefsson  <simon@josefsson.org>
45093
45094         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
45095         G. Christensen" <tgc@jupiterrise.com>.
45096
45097         * lib/flock.c: Need to include errno.h.  Reported by "Tom
45098         G. Christensen" <tgc@jupiterrise.com>.
45099
45100         * lib/flock.c: Need to include string.h.  Reported by "Tom
45101         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
45102         <ebb9@byu.net>.
45103
45104 2008-12-18  Bruno Haible  <bruno@clisp.org>
45105
45106         * m4/locale-ja.m4: New file, from GNU gettext.
45107
45108 2008-12-17  Bruno Haible  <bruno@clisp.org>
45109
45110         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
45111         Suggested by Eric Blake.
45112
45113 2008-12-17  Bruno Haible  <bruno@clisp.org>
45114
45115         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
45116
45117 2008-12-17  Bruno Haible  <bruno@clisp.org>
45118
45119         * lib/mbsinit.c: Include verify.h. Verify an assumption.
45120         * modules/mbsinit (Depends-on): Add verify.
45121         Suggested by Paul Eggert.
45122
45123 2008-12-17  Bruno Haible  <bruno@clisp.org>
45124
45125         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
45126         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
45127         gl_FUNC_MBRTOWC.
45128         * m4/mbiter.m4 (gl_MBITER): LIkewise.
45129         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
45130         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
45131         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
45132         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
45133         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
45134         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
45135         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
45136         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
45137         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
45138         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
45139         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
45140         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
45141         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
45142         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
45143         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45144         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
45145         * modules/trim (configure.ac): Likewise.
45146
45147 2008-12-17  Bruno Haible  <bruno@clisp.org>
45148
45149         * modules/btowc-tests: New file.
45150         * tests/test-btowc1.sh: New file.
45151         * tests/test-btowc2.sh: New file.
45152         * tests/test-btowc.c: New file.
45153
45154         New module 'btowc'.
45155         * lib/wchar.in.h (btowc): New declaration.
45156         * lib/btowc.c: New file.
45157         * m4/btowc.m4: New file.
45158         * modules/btowc: New file.
45159         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
45160         HAVE_BTOWC.
45161         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
45162         * doc/posix-functions/btowc.texi: Document the new module.
45163
45164 2008-12-17  Bruno Haible  <bruno@clisp.org>
45165
45166         New module 'mbsinit'.
45167         * lib/wchar.in.h (mbsinit): New declaration.
45168         * lib/mbsinit.c: New file.
45169         * m4/mbsinit.m4: New file.
45170         * modules/mbsinit: New file.
45171         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
45172         HAVE_MBSINIT.
45173         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
45174         HAVE_MBSINIT.
45175         * doc/posix-functions/mbsinit.texi: Document the new module.
45176
45177 2008-12-16  Bruno Haible  <bruno@clisp.org>
45178
45179         * lib/unistd.in.h: Add comment.
45180         * tests/test-environ.c: Don't include <stdlib.h>.
45181
45182 2008-12-16  Bruno Haible  <bruno@clisp.org>
45183
45184         * lib/parse-duration.h (parse_duration): Document return value
45185         convention.
45186         * lib/parse-duration.c: Include specification header first. Add
45187         comments.
45188         (_): Remove macro.
45189         (parse_year_month_day, parse_hour_minute_second): Move side effects
45190         outside of strchr call.
45191         (parse_non_iso8601): Move side effects outside of isspace call.
45192         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
45193         call.
45194
45195 2008-12-16  Bruno Haible  <bruno@clisp.org>
45196
45197         * tests/test-parse-duration.sh: Produce no output when the test
45198         succeeds.
45199
45200 2008-12-16  Bruno Haible  <bruno@clisp.org>
45201
45202         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
45203         expressions.
45204
45205 2008-12-15  Bruno Haible  <bruno@clisp.org>
45206
45207         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
45208         * doc/glibc-functions/flistxattr.texi: Likewise.
45209         * doc/glibc-functions/fopencookie.texi: Likewise.
45210         * doc/glibc-functions/fremovexattr.texi: Likewise.
45211         * doc/glibc-functions/fsetxattr.texi: Likewise.
45212         * doc/glibc-functions/getxattr.texi: Likewise.
45213         * doc/glibc-functions/lgetxattr.texi: Likewise.
45214         * doc/glibc-functions/listxattr.texi: Likewise.
45215         * doc/glibc-functions/llistxattr.texi: Likewise.
45216         * doc/glibc-functions/lremovexattr.texi: Likewise.
45217         * doc/glibc-functions/lsetxattr.texi: Likewise.
45218         * doc/glibc-functions/removexattr.texi: Likewise.
45219         * doc/glibc-functions/setxattr.texi: Likewise.
45220         * doc/posix-functions/open_memstream.texi: Likewise.
45221
45222 2008-12-15  Eric Blake  <ebb9@byu.net>
45223
45224         Update doc for cygwin 1.7.
45225         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
45226         functions.
45227         * doc/posix-functions/fchmodat.texi: Likewise.
45228         * doc/posix-functions/fchownat.texi: Likewise.
45229         * doc/posix-functions/fdopendir.texi: Likewise.
45230         * doc/posix-functions/fmemopen.texi: Likewise.
45231         * doc/posix-functions/freeaddrinfo.texi: Likewise.
45232         * doc/posix-functions/fstatat.texi: Likewise.
45233         * doc/posix-functions/futimens.texi: Likewise.
45234         * doc/posix-functions/gai_strerror.texi: Likewise.
45235         * doc/posix-functions/getaddrinfo.texi: Likewise.
45236         * doc/posix-functions/getnameinfo.texi: Likewise.
45237         * doc/posix-functions/if_freenameindex.texi: Likewise.
45238         * doc/posix-functions/if_indextoname.texi: Likewise.
45239         * doc/posix-functions/if_nameindex.texi: Likewise.
45240         * doc/posix-functions/if_nametoindex.texi: Likewise.
45241         * doc/posix-functions/insque.texi: Likewise.
45242         * doc/posix-functions/linkat.texi: Likewise.
45243         * doc/posix-functions/llrint.texi: Likewise.
45244         * doc/posix-functions/llrintf.texi: Likewise.
45245         * doc/posix-functions/llrintl.texi: Likewise.
45246         * doc/posix-functions/lockf.texi: Likewise.
45247         * doc/posix-functions/lrintl.texi: Likewise.
45248         * doc/posix-functions/mkdirat.texi: Likewise.
45249         * doc/posix-functions/mkfifoat.texi: Likewise.
45250         * doc/posix-functions/mknodat.texi: Likewise.
45251         * doc/posix-functions/mq_close.texi: Likewise.
45252         * doc/posix-functions/mq_getattr.texi: Likewise.
45253         * doc/posix-functions/mq_notify.texi: Likewise.
45254         * doc/posix-functions/mq_open.texi: Likewise.
45255         * doc/posix-functions/mq_receive.texi: Likewise.
45256         * doc/posix-functions/mq_send.texi: Likewise.
45257         * doc/posix-functions/mq_setattr.texi: Likewise.
45258         * doc/posix-functions/mq_timedreceive.texi: Likewise.
45259         * doc/posix-functions/mq_timedsend.texi: Likewise.
45260         * doc/posix-functions/mq_unlink.texi: Likewise.
45261         * doc/posix-functions/open_memstream.texi: Likewise.
45262         * doc/posix-functions/openat.texi: Likewise.
45263         * doc/posix-functions/posix_fadvise.texi: Likewise.
45264         * doc/posix-functions/posix_fallocate.texi: Likewise.
45265         * doc/posix-functions/posix_madvise.texi: Likewise.
45266         * doc/posix-functions/posix_memalign.texi: Likewise.
45267         * doc/posix-functions/posix_openpt.texi: Likewise.
45268         * doc/posix-functions/readlinkat.texi: Likewise.
45269         * doc/posix-functions/remque.texi: Likewise.
45270         * doc/posix-functions/renameat.texi: Likewise.
45271         * doc/posix-functions/rintl.texi: Likewise.
45272         * doc/posix-functions/sem_unlink.texi: Likewise.
45273         * doc/posix-functions/shm_open.texi: Likewise.
45274         * doc/posix-functions/shm_unlink.texi: Likewise.
45275         * doc/posix-functions/signgam.texi: Likewise.
45276         * doc/posix-functions/sigset.texi: Likewise.
45277         * doc/posix-functions/stpcpy.texi: Likewise.
45278         * doc/posix-functions/stpncpy.texi: Likewise.
45279         * doc/posix-functions/strerror.texi: Likewise.
45280         * doc/posix-functions/strtod.texi: Likewise.
45281         * doc/posix-functions/symlinkat.texi: Likewise.
45282         * doc/posix-functions/unlinkat.texi: Likewise.
45283         * doc/posix-functions/utimensat.texi: Likewise.
45284         * doc/glibc-functions/bindresvport.texi: Likewise.
45285         * doc/glibc-functions/dn_expand.texi: Likewise.
45286         * doc/glibc-functions/exp10.texi: Likewise.
45287         * doc/glibc-functions/exp10f.texi: Likewise.
45288         * doc/glibc-functions/fgetxattr.texi: Likewise.
45289         * doc/glibc-functions/flistxattr.texi: Likewise.
45290         * doc/glibc-functions/fopencookie.texi: Likewise.
45291         * doc/glibc-functions/freeifaddrs.texi: Likewise.
45292         * doc/glibc-functions/fremovexattr.texi: Likewise.
45293         * doc/glibc-functions/fsetxattr.texi: Likewise.
45294         * doc/glibc-functions/getifaddrs.texi: Likewise.
45295         * doc/glibc-functions/getxattr.texi: Likewise.
45296         * doc/glibc-functions/lgetxattr.texi: Likewise.
45297         * doc/glibc-functions/listxattr.texi: Likewise.
45298         * doc/glibc-functions/llistxattr.texi: Likewise.
45299         * doc/glibc-functions/lremovexattr.texi: Likewise.
45300         * doc/glibc-functions/lsetxattr.texi: Likewise.
45301         * doc/glibc-functions/pow10.texi: Likewise.
45302         * doc/glibc-functions/pow10f.texi: Likewise.
45303         * doc/glibc-functions/rcmd_af.texi: Likewise.
45304         * doc/glibc-functions/removexattr.texi: Likewise.
45305         * doc/glibc-functions/res_init.texi: Likewise.
45306         * doc/glibc-functions/res_mkquery.texi: Likewise.
45307         * doc/glibc-functions/res_query.texi: Likewise.
45308         * doc/glibc-functions/res_querydomain.texi: Likewise.
45309         * doc/glibc-functions/res_send.texi: Likewise.
45310         * doc/glibc-functions/rresvport_af.texi: Likewise.
45311         * doc/glibc-functions/setxattr.texi: Likewise.
45312         * doc/glibc-functions/strcasestr.texi: Likewise.
45313
45314 2008-12-15  Bruno Haible  <bruno@clisp.org>
45315
45316         Fix compilation error on OSF/1 4.0.
45317         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
45318         <sys/time.h>, simply delegate to the system header.
45319         Reported by Daniel Richard G. <oss@teragram.com>.
45320
45321 2008-12-15  Bruno Haible  <bruno@clisp.org>
45322
45323         * doc/posix-functions/openat.texi: Mention the 'openat' module.
45324         * doc/posix-functions/fchmodat.texi: Likewise.
45325         * doc/posix-functions/fchownat.texi: Likewise.
45326         * doc/posix-functions/fdopendir.texi: Likewise.
45327         * doc/posix-functions/fstatat.texi: Likewise.
45328         * doc/posix-functions/mkdirat.texi: Likewise.
45329         * doc/posix-functions/unlinkat.texi: Likewise.
45330
45331 2008-12-14  Bruno Haible  <bruno@clisp.org>
45332
45333         Update doc for POSIX:2008.
45334         * doc/posix-functions/faccessat.texi: New file.
45335         * doc/posix-functions/fchmodat.texi: New file.
45336         * doc/posix-functions/fchownat.texi: New file.
45337         * doc/posix-functions/fdopendir.texi: New file.
45338         * doc/posix-functions/fstatat.texi: New file.
45339         * doc/posix-functions/futimens.texi: New file.
45340         * doc/posix-functions/linkat.texi: New file.
45341         * doc/posix-functions/mkdirat.texi: New file.
45342         * doc/posix-functions/mkfifoat.texi: New file.
45343         * doc/posix-functions/mknodat.texi: New file.
45344         * doc/posix-functions/open_wmemstream.texi: New file.
45345         * doc/posix-functions/openat.texi: New file.
45346         * doc/posix-functions/psiginfo.texi: New file.
45347         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
45348         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
45349         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
45350         * doc/posix-functions/readlinkat.texi: New file.
45351         * doc/posix-functions/renameat.texi: New file.
45352         * doc/posix-functions/strerror_l.texi: New file.
45353         * doc/posix-functions/symlinkat.texi: New file.
45354         * doc/posix-functions/unlinkat.texi: New file.
45355         * doc/posix-functions/utimensat.texi: New file.
45356         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45357
45358 2008-12-14  Bruno Haible  <bruno@clisp.org>
45359
45360         Update doc for POSIX:2008.
45361         * doc/posix-functions/alphasort.texi: Renamed from
45362         doc/glibc-functions/alphasort.texi.
45363         * doc/posix-functions/dirfd.texi: Renamed from
45364         doc/glibc-functions/dirfd.texi.
45365         * doc/posix-functions/dprintf.texi: Renamed from
45366         doc/glibc-functions/dprintf.texi.
45367         * doc/posix-functions/duplocale.texi: Renamed from
45368         doc/glibc-functions/duplocale.texi.
45369         * doc/posix-functions/fexecve.texi: Renamed from
45370         doc/glibc-functions/fexecve.texi.
45371         * doc/posix-functions/fmemopen.texi: Renamed from
45372         doc/glibc-functions/fmemopen.texi.
45373         * doc/posix-functions/freelocale.texi: Renamed from
45374         doc/glibc-functions/freelocale.texi.
45375         * doc/posix-functions/getdate_err.texi: Renamed from
45376         doc/glibc-functions/getdate_err.texi.
45377         * doc/posix-functions/isalnum_l.texi: Renamed from
45378         doc/glibc-functions/isalnum_l.texi.
45379         * doc/posix-functions/isalpha_l.texi: Renamed from
45380         doc/glibc-functions/isalpha_l.texi.
45381         * doc/posix-functions/isblank_l.texi: Renamed from
45382         doc/glibc-functions/isblank_l.texi.
45383         * doc/posix-functions/iscntrl_l.texi: Renamed from
45384         doc/glibc-functions/iscntrl_l.texi.
45385         * doc/posix-functions/isdigit_l.texi: Renamed from
45386         doc/glibc-functions/isdigit_l.texi.
45387         * doc/posix-functions/isgraph_l.texi: Renamed from
45388         doc/glibc-functions/isgraph_l.texi.
45389         * doc/posix-functions/islower_l.texi: Renamed from
45390         doc/glibc-functions/islower_l.texi.
45391         * doc/posix-functions/isprint_l.texi: Renamed from
45392         doc/glibc-functions/isprint_l.texi.
45393         * doc/posix-functions/ispunct_l.texi: Renamed from
45394         doc/glibc-functions/ispunct_l.texi.
45395         * doc/posix-functions/isspace_l.texi: Renamed from
45396         doc/glibc-functions/isspace_l.texi.
45397         * doc/posix-functions/isupper_l.texi: Renamed from
45398         doc/glibc-functions/isupper_l.texi.
45399         * doc/posix-functions/iswalnum_l.texi: Renamed from
45400         doc/glibc-functions/iswalnum_l.texi.
45401         * doc/posix-functions/iswalpha_l.texi: Renamed from
45402         doc/glibc-functions/iswalpha_l.texi.
45403         * doc/posix-functions/iswblank_l.texi: Renamed from
45404         doc/glibc-functions/iswblank_l.texi.
45405         * doc/posix-functions/iswcntrl_l.texi: Renamed from
45406         doc/glibc-functions/iswcntrl_l.texi.
45407         * doc/posix-functions/iswctype_l.texi: Renamed from
45408         doc/glibc-functions/iswctype_l.texi.
45409         * doc/posix-functions/iswdigit_l.texi: Renamed from
45410         doc/glibc-functions/iswdigit_l.texi.
45411         * doc/posix-functions/iswgraph_l.texi: Renamed from
45412         doc/glibc-functions/iswgraph_l.texi.
45413         * doc/posix-functions/iswlower_l.texi: Renamed from
45414         doc/glibc-functions/iswlower_l.texi.
45415         * doc/posix-functions/iswprint_l.texi: Renamed from
45416         doc/glibc-functions/iswprint_l.texi.
45417         * doc/posix-functions/iswpunct_l.texi: Renamed from
45418         doc/glibc-functions/iswpunct_l.texi.
45419         * doc/posix-functions/iswspace_l.texi: Renamed from
45420         doc/glibc-functions/iswspace_l.texi.
45421         * doc/posix-functions/iswupper_l.texi: Renamed from
45422         doc/glibc-functions/iswupper_l.texi.
45423         * doc/posix-functions/iswxdigit_l.texi: Renamed from
45424         doc/glibc-functions/iswxdigit_l.texi.
45425         * doc/posix-functions/isxdigit_l.texi: Renamed from
45426         doc/glibc-functions/isxdigit_l.texi.
45427         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
45428         doc/glibc-functions/mbsnrtowcs.texi.
45429         * doc/posix-functions/mkdtemp.texi: Renamed from
45430         doc/glibc-functions/mkdtemp.texi.
45431         * doc/posix-functions/newlocale.texi: Renamed from
45432         doc/glibc-functions/newlocale.texi.
45433         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
45434         doc/glibc-functions/nl_langinfo_l.texi.
45435         * doc/posix-functions/open_memstream.texi: Renamed from
45436         doc/glibc-functions/open_memstream.texi.
45437         * doc/posix-functions/opterr.texi: Renamed from
45438         doc/glibc-functions/opterr.texi.
45439         * doc/posix-functions/optind.texi: Renamed from
45440         doc/glibc-functions/optind.texi.
45441         * doc/posix-functions/optopt.texi: Renamed from
45442         doc/glibc-functions/optopt.texi.
45443         * doc/posix-functions/psignal.texi: Renamed from
45444         doc/glibc-functions/psignal.texi.
45445         * doc/posix-functions/scandir.texi: Renamed from
45446         doc/glibc-functions/scandir.texi.
45447         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
45448         doc/glibc-functions/sched_get_priority_min.texi.
45449         * doc/posix-functions/signgam.texi: Renamed from
45450         doc/glibc-functions/signgam.texi.
45451         * doc/posix-functions/stpcpy.texi: Renamed from
45452         doc/glibc-functions/stpcpy.texi.
45453         * doc/posix-functions/stpncpy.texi: Renamed from
45454         doc/glibc-functions/stpncpy.texi.
45455         * doc/posix-functions/strcasecmp_l.texi: Renamed from
45456         doc/glibc-functions/strcasecmp_l.texi.
45457         * doc/posix-functions/strcoll_l.texi: Renamed from
45458         doc/glibc-functions/strcoll_l.texi.
45459         * doc/posix-functions/strfmon_l.texi: Renamed from
45460         doc/glibc-functions/strfmon_l.texi.
45461         * doc/posix-functions/strftime_l.texi: Renamed from
45462         doc/glibc-functions/strftime_l.texi.
45463         * doc/posix-functions/strncasecmp_l.texi: Renamed from
45464         doc/glibc-functions/strncasecmp_l.texi.
45465         * doc/posix-functions/strndup.texi: Renamed from
45466         doc/glibc-functions/strndup.texi.
45467         * doc/posix-functions/strnlen.texi: Renamed from
45468         doc/glibc-functions/strnlen.texi.
45469         * doc/posix-functions/strsignal.texi: Renamed from
45470         doc/glibc-functions/strsignal.texi.
45471         * doc/posix-functions/strxfrm_l.texi: Renamed from
45472         doc/glibc-functions/strxfrm_l.texi.
45473         * doc/posix-functions/timer_gettime.texi: Renamed from
45474         doc/glibc-functions/timer_gettime.texi.
45475         * doc/posix-functions/tolower_l.texi: Renamed from
45476         doc/glibc-functions/tolower_l.texi.
45477         * doc/posix-functions/toupper_l.texi: Renamed from
45478         doc/glibc-functions/toupper_l.texi.
45479         * doc/posix-functions/towctrans_l.texi: Renamed from
45480         doc/glibc-functions/towctrans_l.texi.
45481         * doc/posix-functions/towlower_l.texi: Renamed from
45482         doc/glibc-functions/towlower_l.texi.
45483         * doc/posix-functions/towupper_l.texi: Renamed from
45484         doc/glibc-functions/towupper_l.texi.
45485         * doc/posix-functions/uselocale.texi: Renamed from
45486         doc/glibc-functions/uselocale.texi.
45487         * doc/posix-functions/vdprintf.texi: Renamed from
45488         doc/glibc-functions/vdprintf.texi.
45489         * doc/posix-functions/wcpcpy.texi:
45490         Renamed from doc/glibc-functions/wcpcpy.texi.
45491         * doc/posix-functions/wcpncpy.texi: Renamed from
45492         doc/glibc-functions/wcpncpy.texi.
45493         * doc/posix-functions/wcscasecmp.texi: Renamed from
45494         doc/glibc-functions/wcscasecmp.texi.
45495         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
45496         doc/glibc-functions/wcscasecmp_l.texi.
45497         * doc/posix-functions/wcscoll_l.texi: Renamed from
45498         doc/glibc-functions/wcscoll_l.texi.
45499         * doc/posix-functions/wcsdup.texi: Renamed from
45500         doc/glibc-functions/wcsdup.texi.
45501         * doc/posix-functions/wcsncasecmp.texi: Renamed from
45502         doc/glibc-functions/wcsncasecmp.texi.
45503         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
45504         doc/glibc-functions/wcsncasecmp_l.texi.
45505         * doc/posix-functions/wcsnlen.texi: Renamed from
45506         doc/glibc-functions/wcsnlen.texi.
45507         * doc/posix-functions/wcsnrtombs.texi: Renamed from
45508         doc/glibc-functions/wcsnrtombs.texi.
45509         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
45510         doc/glibc-functions/wcsxfrm_l.texi.
45511         * doc/posix-functions/wctrans_l.texi: Renamed from
45512         doc/glibc-functions/wctrans_l.texi.
45513         * doc/posix-functions/wctype_l.texi: Renamed from
45514         doc/glibc-functions/wctype_l.texi.
45515         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45516         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
45517         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
45518         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
45519         these subsections.
45520         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
45521         Remove sections.
45522
45523 2008-12-14  Bruno Haible  <bruno@clisp.org>
45524
45525         Update doc for POSIX:2008.
45526         * doc/posix-functions/*.texi: Update URL of POSIX specification.
45527
45528 2008-12-14  Bruno Haible  <bruno@clisp.org>
45529
45530         Update doc for POSIX:2008.
45531         * doc/pastposix-functions/bcmp.texi: Renamed from
45532         doc/posix-functions/bcmp.texi.
45533         * doc/pastposix-functions/bcopy.texi: Renamed from
45534         doc/posix-functions/bcopy.texi.
45535         * doc/pastposix-functions/bsd_signal.texi: Renamed from
45536         doc/posix-functions/bsd_signal.texi.
45537         * doc/pastposix-functions/bzero.texi: Renamed from
45538         doc/posix-functions/bzero.texi.
45539         * doc/pastposix-functions/ecvt.texi: Renamed from
45540         doc/posix-functions/ecvt.texi.
45541         * doc/pastposix-functions/fcvt.texi: Renamed from
45542         doc/posix-functions/fcvt.texi.
45543         * doc/pastposix-functions/ftime.texi: Renamed from
45544         doc/posix-functions/ftime.texi.
45545         * doc/pastposix-functions/gcvt.texi: Renamed from
45546         doc/posix-functions/gcvt.texi.
45547         * doc/pastposix-functions/getcontext.texi: Renamed from
45548         doc/posix-functions/getcontext.texi.
45549         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
45550         doc/posix-functions/gethostbyaddr.texi.
45551         * doc/pastposix-functions/gethostbyname.texi: Renamed from
45552         doc/posix-functions/gethostbyname.texi.
45553         * doc/pastposix-functions/getwd.texi: Renamed from
45554         doc/posix-functions/getwd.texi.
45555         * doc/pastposix-functions/h_errno.texi: Renamed from
45556         doc/posix-functions/h_errno.texi.
45557         * doc/pastposix-functions/index.texi: Renamed from
45558         doc/posix-functions/index.texi.
45559         * doc/pastposix-functions/makecontext.texi: Renamed from
45560         doc/posix-functions/makecontext.texi.
45561         * doc/pastposix-functions/mktemp.texi: Renamed from
45562         doc/posix-functions/mktemp.texi.
45563         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
45564         doc/posix-functions/pthread_attr_getstackaddr.texi.
45565         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
45566         doc/posix-functions/pthread_attr_setstackaddr.texi.
45567         * doc/pastposix-functions/rindex.texi: Renamed from
45568         doc/posix-functions/rindex.texi.
45569         * doc/pastposix-functions/scalb.texi: Renamed from
45570         doc/posix-functions/scalb.texi.
45571         * doc/pastposix-functions/setcontext.texi: Renamed from
45572         doc/posix-functions/setcontext.texi.
45573         * doc/pastposix-functions/swapcontext.texi: Renamed from
45574         doc/posix-functions/swapcontext.texi.
45575         * doc/pastposix-functions/ualarm.texi: Renamed from
45576         doc/posix-functions/ualarm.texi.
45577         * doc/pastposix-functions/usleep.texi: Renamed from
45578         doc/posix-functions/usleep.texi.
45579         * doc/pastposix-functions/vfork.texi: Renamed from
45580         doc/posix-functions/vfork.texi.
45581         * doc/pastposix-functions/wcswcs.texi: Renamed from
45582         doc/posix-functions/wcswcs.texi.
45583         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
45584         (Function Substitutes): Update.
45585
45586 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45587
45588         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
45589         m4/strerror.m4.
45590
45591 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45592             Bruno Haible  <bruno@clisp.org>
45593
45594         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
45595
45596 2008-12-13  Bruno Haible  <bruno@clisp.org>
45597
45598         * modules/strtoull (Depends-on): Remove unistd.
45599
45600 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45601
45602         * modules/strtoull (Depends-on): Add stdlib.
45603
45604 2008-12-11  Simon Josefsson  <simon@josefsson.org>
45605
45606         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
45607
45608 2008-12-10  Jim Meyering  <meyering@redhat.com>
45609
45610         gl_ASSERT: don't say assertions are disabled when they're not
45611         * m4/assert.m4 (gl_ASSERT): Do not make configure report
45612         "checking whether to enable assertions... no", when they are in
45613         fact enabled.  This is solely a bug in the output of configure.
45614         In spite of saying "no", NDEBUG was not defined in that case.
45615         Also, as noted by Eric Blake, leave assertions enabled upon
45616         --enable-assert=INVALID.
45617
45618 2008-12-10  Bruno Haible  <bruno@clisp.org>
45619
45620         Change MODULES.html to refer to POSIX:2008 where possible.
45621         * MODULES.html.sh (POSIX2008_URL): New variable.
45622         (posix_headers): Remove sys/timeb, ucontext.
45623         (posix2001_headers): New variable.
45624         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
45625         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
45626         index, makecontext, mktemp, pthread_attr_getstackaddr,
45627         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
45628         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
45629         (posix2001_functions): New variable.
45630         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
45631         otherwise.
45632
45633 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45634
45635         add missing include to parse-duration.c
45636         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
45637         * modules/parse-duration (Depends-on): Add xalloc.
45638
45639         fix sed script reading maint.mk
45640         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
45641         (syntax-check-rules): Use it.
45642
45643 2008-12-09  Bruno Haible  <bruno@clisp.org>
45644
45645         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
45646         MacOS X 10.4/PowerPC.
45647         Reported by Simon Josefsson.
45648
45649 2008-12-08  Jim Meyering  <meyering@redhat.com>
45650
45651         work around mingw's lack of some S_IF definitions
45652         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
45653         Reported by Simon Josefsson.
45654
45655 2008-12-08  Bruno Haible  <bruno@clisp.org>
45656
45657         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
45658         applied to variables. Needed on MacOS X 10.4/PowerPC.
45659         Reported by Simon Josefsson.
45660
45661 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
45662         and Eric Blake  <ebb9@byu.net>
45663
45664         assert: honor --enable-assert
45665         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
45666         order to honor --enable-assert, rather than treating it as a
45667         synonym for --disable-assert.
45668
45669 2008-12-08  Jim Meyering  <meyering@redhat.com>
45670
45671         * lib/posixtm.c: Remove now-useless declaration of mktime.
45672
45673         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
45674
45675 2008-12-07  Bruno Haible  <bruno@clisp.org>
45676
45677         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
45678         test_once): Mark functions as static.
45679         * tests/test-tls.c (test_tls): Likewise.
45680
45681 2008-12-07  Bruno Haible  <bruno@clisp.org>
45682
45683         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
45684         iconv_register_autodetect.
45685
45686 2008-12-07  Jim Meyering  <meyering@redhat.com>
45687
45688         posixtm.c: avoid a warning
45689         * lib/posixtm.c (posixtime): Don't initialize tm0.
45690         It's no longer needed to placate gcc4's -Wuninitialized,
45691         and the attempt to placate would elicit a new warning.
45692
45693         unicodeio.c: mark unused parameters
45694         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45695         (fallback_failure_callback): Likewise.
45696
45697 2008-12-07  Bruno Haible  <bruno@clisp.org>
45698
45699         * gnulib-tool (func_create_testdir): When building the tests
45700         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
45701         Reported by Simon Josefsson.
45702
45703 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45704
45705         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
45706
45707 2008-12-06  Bruno Haible  <bruno@clisp.org>
45708
45709         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
45710         Suggested by Eric Blake.
45711
45712 2008-12-06  Bruno Haible  <bruno@clisp.org>
45713
45714         Fix a c-stack test failure on MacOS X.
45715         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
45716         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
45717         handler for SIGBUS as well.
45718         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
45719         install a signal handler for SIGBUS as well.
45720         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
45721
45722 2008-12-06  Bruno Haible  <bruno@clisp.org>
45723
45724         Advocacy documentation.
45725         * doc/gnulib-intro.texi (Benefits): New section.
45726         * doc/gnulib.texi: Update.
45727
45728 2008-12-06  Bruno Haible  <bruno@clisp.org>
45729
45730         Document the 'manywarnings' module.
45731         * doc/manywarnings.texi: New file.
45732         * doc/gnulib.texi: Include it.
45733
45734 2008-12-05  Eric Blake  <ebb9@byu.net>
45735
45736         tests: silence some gcc warnings
45737         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
45738         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
45739         type mismatches.
45740
45741 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45742             Bruno Haible  <bruno@clisp.org>
45743
45744         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
45745
45746 2008-11-29  Jim Meyering  <meyering@redhat.com>
45747
45748         unicodeio.c: mark unused parameters
45749         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45750         (fallback_failure_callback): Likewise.
45751
45752         fts: fix a thinko
45753         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
45754         (set_stat_type): Return S_IF*-valued "type" directly.
45755         Prompted by James Youngman's spotting a related bug.
45756         Confirmed by further testing through find.
45757
45758         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
45759         * lib/fts.c (D_TYPE): Define.
45760         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
45761         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
45762         (s_ifmt_shift_bits): New function.
45763         (set_stat_type): New function.
45764         (fts_build): When not calling fts_stat, call set_stat_type
45765         to propagate dirent.d_type info to fts_read caller.
45766         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
45767         fts_statp->st_mode type information may be valid.
45768
45769 2008-11-28  Simon Josefsson  <simon@josefsson.org>
45770
45771         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
45772         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
45773         <sds@gnu.org>.
45774
45775 2008-11-20  Bruno Haible  <bruno@clisp.org>
45776
45777         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
45778         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
45779         INCLUDE_NEXT.
45780         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
45781         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
45782         * modules/math (Makefile.am): Substitute
45783         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
45784         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45785
45786 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
45787             Bruno Haible  <bruno@clisp.org>
45788
45789         * lib/stdint.in.h: Define all type macros so that their expansion is
45790         a single typedef'ed token. Fixes a compilation failure in Boost which
45791         does "using ::int8_t;".
45792
45793 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45794
45795         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
45796         gl_MANYWARN_ALL_GCC.
45797         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
45798         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
45799         * modules/manywarnings: New file.
45800         * MODULES.html.sh: Mention manywarnings module.
45801
45802 2008-11-18  Bruno Haible  <bruno@clisp.org>
45803
45804         * doc/gnulib-tool.texi (Unit tests): New section.
45805
45806 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45807
45808         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
45809         paths like 'lib/po/foo.po'.
45810
45811 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45812
45813         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
45814         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
45815
45816 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45817
45818         * m4/warnings.m4: Use CPPFLAGS to really check whether the
45819         parameter works.
45820
45821 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45822
45823         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
45824
45825 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45826
45827         * modules/parse-duration-tests: New file.
45828         * tests/test-parse-duration.sh: New file.
45829         * tests/test-parse-duration.c: New file.
45830
45831         New module 'parse-duration'.
45832         * lib/parse-duration.h: New file.
45833         * lib/parse-duration.c: New file.
45834         * modules/parse-duration: New file.
45835
45836 2008-11-17  Bruno Haible  <bruno@clisp.org>
45837
45838         * tests/test-select-out.sh: Comment out the first pipe test.
45839         Reported by Simon Josefsson.
45840
45841 2008-11-17  Bruno Haible  <bruno@clisp.org>
45842
45843         * modules/getaddrinfo (Depends-on): Add servent, hostent.
45844         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
45845         gl_HOSTENT.
45846
45847 2008-11-17  Bruno Haible  <bruno@clisp.org>
45848
45849         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
45850         -lnetwork and -lnet. Needed for Haiku and BeOS.
45851
45852 2008-11-16  Bruno Haible  <bruno@clisp.org>
45853
45854         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
45855
45856 2008-11-16  Bruno Haible  <bruno@clisp.org>
45857
45858         Avoid test failure on Haiku.
45859         * tests/test-fsync.c: Include <errno.h>.
45860         (main): Don't require that fsync (0) fails.
45861
45862 2008-11-15  Bruno Haible  <bruno@clisp.org>
45863
45864         New module 'hostent'.
45865         * modules/hostent: New file.
45866         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
45867
45868 2008-11-15  Bruno Haible  <bruno@clisp.org>
45869
45870         New module 'servent'.
45871         * modules/servent: New file.
45872         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
45873
45874 2008-11-15  Bruno Haible  <bruno@clisp.org>
45875
45876         Avoid generating same test program with two different rules.
45877         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
45878         test-frexp to test-frexp-nolibm.
45879         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
45880         test-frexpl to test-frexpl-nolibm.
45881
45882 2008-11-15  Bruno Haible  <bruno@clisp.org>
45883
45884         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
45885         $(FREXPL_LIBM).
45886
45887 2008-11-15  Bruno Haible  <bruno@clisp.org>
45888
45889         * lib/netdb.in.h: Activate the definitions also when the system's
45890         <netdb.h> has 'struct addrinfo'.
45891         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
45892         EAI_OVERFLOW or AI_NUMERICSERV.
45893         * doc/posix-headers/netdb.texi: Document the problem.
45894
45895 2008-11-15  Bruno Haible  <bruno@clisp.org>
45896
45897         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
45898
45899         Make the 'sched' module work on platforms where <sched.h> exists but
45900         is incomplete (such as Haiku).
45901         * lib/sched.in.h; Include the system's <sched.h> if it exists.
45902         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
45903         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
45904         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
45905         HAVE_STRUCT_SCHED_PARAM.
45906         * modules/sched (Depends-on): Add include_next.
45907         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
45908         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
45909         * doc/posix-headers/sched.texi: Document the issue.
45910
45911 2008-11-13  Jim Meyering  <meyering@redhat.com>
45912
45913         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
45914         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
45915         test would fail due to the difference in the Report bugs to ...
45916         line.  The expected address is empty, "<>", while the actual
45917         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
45918
45919 2008-11-12  Bruno Haible  <bruno@clisp.org>
45920
45921         lstat: don't compile lstat.c on systems lacking lstat
45922         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
45923         which don't have lstat; this is handled by lib/sys_stat.in.h already.
45924         Reported by Daniel P. Berrange via Jim Meyering.
45925
45926 2008-11-12  Jim Meyering  <meyering@redhat.com>
45927
45928         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
45929
45930 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45931
45932         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
45933         instead.
45934
45935 2008-11-12  Bruno Haible  <bruno@clisp.org>
45936
45937         * lib/unicodeio.c: Include unistr.h.
45938         (utf8_wctomb): Remove function.
45939         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
45940
45941 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45942
45943         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
45944         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
45945         <bruno@clisp.org>.
45946         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
45947
45948 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45949
45950         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
45951         * doc/gnulib.texi: Add section for warnings.
45952
45953 2008-11-11  Bruno Haible  <bruno@clisp.org>
45954
45955         * lib/sockets.h: Add a comment.
45956
45957 2008-11-11  Karl Berry  <karl@gnu.org>
45958
45959         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
45960
45961 2008-11-11  Eric Blake  <ebb9@byu.net>
45962
45963         fdl.texi: avoid git symlinks
45964         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
45965
45966 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45967
45968         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
45969
45970 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45971
45972         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
45973         (gl_WARN_ADD): Substitute $2 if literal.
45974
45975 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45976
45977         * m4/warning.m4: Remove.
45978
45979 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45980
45981         * m4/warnings.m4: Almost complete rewrite. :-)
45982
45983 2008-11-10  Simon Josefsson  <simon@josefsson.org>
45984
45985         * modules/warnings: New module.
45986         * m4/warnings.m4: New file.
45987         * MODULES.html.sh: Mention warnings module.
45988         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
45989         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45990
45991 2008-11-10  Eric Blake  <ebb9@byu.net>
45992
45993         fdl.texi: make a symlink to the latest version
45994         * doc/standards.texi: Revert today's earlier change.
45995         * doc/fdl-1.2.texi: Rename from old fdl.texi...
45996         * doc/fdl.texi: ...and replace this with a symlink to the newer
45997         fdl-1.3.texi.
45998
45999 2008-11-10  Bruno Haible  <bruno@clisp.org>
46000
46001         * tests/test-select-fd.c (main): Accept the result file name as fourth
46002         argument.
46003         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
46004         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
46005
46006 2008-11-10  Bruno Haible  <bruno@clisp.org>
46007
46008         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
46009         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
46010         as autoconf-substituted macros.
46011         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
46012         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
46013         gl_NETDB_H_DEFAULTS. Set these variables.
46014         * modules/netdb (Makefile.am): Substitute these variables.
46015
46016 2008-11-10  Eric Blake  <ebb9@byu.net>
46017
46018         standards.texi: include correct file for FDL 1.3
46019         * doc/standards.texi (GNU Free Documentation License): Change
46020         include file to pull in FDL 1.3, not 1.2.
46021
46022         fdl.texi: revert accidental change to license
46023         * doc/fdl.texi: This is FDL 1.2, not 1.3.
46024
46025 2008-11-10  Bruno Haible  <bruno@clisp.org>
46026
46027         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
46028         cross-compiling guesses also when the native compile gives no result.
46029
46030 2008-11-10  Bruno Haible  <bruno@clisp.org>
46031
46032         * lib/spawni.c (__spawni): Force variable into the stack.
46033
46034 2008-11-10  Bruno Haible  <bruno@clisp.org>
46035
46036         Add support for Haiku.
46037         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
46038         glibc and BeOS, but also on Haiku.
46039         * lib/fpurge.c (fpurge): Likewise.
46040         * lib/freadable.c (freadable): Likewise.
46041         * lib/freadahead.c (freadahead): Likewise.
46042         * lib/freading.c (freading): Likewise.
46043         * lib/freadptr.c (freadptr): Likewise.
46044         * lib/freadseek.c (freadptrinc): Likewise.
46045         * lib/fseeko.c (rpl_fseeko): Likewise.
46046         * lib/fseterr.c (fseterr): Likewise.
46047         * lib/fwritable.c (fwritable): Likewise.
46048         * lib/fwriting.c (fwriting): Likewise.
46049         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
46050
46051 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46052
46053         * lib/config.charset: Treat Haiku like BeOS.
46054
46055 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46056
46057         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
46058         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
46059
46060 2008-11-08  Bruno Haible  <bruno@clisp.org>
46061
46062         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
46063         AC_CACHE_CHECK.
46064
46065 2008-11-08  Bruno Haible  <bruno@clisp.org>
46066
46067         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
46068
46069 2008-11-08  Bruno Haible  <bruno@clisp.org>
46070
46071         * tests/test-select-fd.c: New file.
46072         * tests/test-select-in.sh: New file.
46073         * tests/test-select-out.sh: New file.
46074         * tests/test-select-stdin.c: New file.
46075         * modules/select-tests (Files): Add the new files.
46076         (Depends-on): Add gettimeofday.
46077         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
46078         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
46079         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
46080
46081 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
46082             Bruno Haible  <bruno@clisp.org>
46083
46084         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
46085
46086 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
46087
46088         * build-aux/pmccabe2html: Added support for C++ source files.
46089
46090 2008-11-05  Ben Pfaff  <blp@gnu.org>
46091
46092         Fix lib/close.c build on Windows.
46093         * modules/close (Files): Add lib/w32sock.h.
46094
46095 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
46096
46097         Accept Bison's NEWS format.
46098         * build-aux/announce-gen (print_news_deltas): Tweak
46099         $re_prefix.
46100
46101 2008-11-04  Bruno Haible  <bruno@clisp.org>
46102
46103         * modules/random_r (Maintainer): Add glibc.
46104
46105 2008-11-04  Simon Josefsson  <simon@josefsson.org>
46106
46107         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
46108         by karl@freefriends.org (Karl Berry).
46109         * doc/alloca.texi: Likewise.
46110         * doc/c-ctype.texi: Likewise.
46111         * doc/c-strcase.texi: Likewise.
46112         * doc/c-strcaseeq.texi: Likewise.
46113         * doc/c-strcasestr.texi: Likewise.
46114         * doc/c-strstr.texi: Likewise.
46115         * doc/c-strtod.texi: Likewise.
46116         * doc/c-strtold.texi: Likewise.
46117         * doc/ctime.texi: Likewise.
46118         * doc/error.texi: Likewise.
46119         * doc/fdl.texi: Likewise.
46120         * doc/gcd.texi: Likewise.
46121         * doc/getdate.texi: Likewise.
46122         * doc/gnulib-intro.texi: Likewise.
46123         * doc/gnulib-tool.texi: Likewise.
46124         * doc/gnulib.texi: Likewise.
46125         * doc/inet_ntoa.texi: Likewise.
46126         * doc/maintain.texi: Likewise.
46127         * doc/make-stds.texi: Likewise.
46128         * doc/quote.texi: Likewise.
46129         * doc/regexprops-generic.texi: Likewise.
46130         * doc/standards.texi: Likewise.
46131         * doc/verify.texi: Likewise.
46132         * doc/visibility.texi: Likewise.
46133         * doc/gnulib.texi (GNU Free Documentation License): Include
46134         fdl-1.3.texi instead of fdl.texi.
46135
46136 2008-11-04  Simon Josefsson  <simon@josefsson.org>
46137
46138         * doc/fdl-1.3.texi: New file, from
46139         <http://www.gnu.org/licenses/fdl-1.3.texi>.
46140         * modules/fdl-1.3: Add.
46141         * MODULES.html.sh: Add fdl-1.3.
46142
46143 2008-11-03  Bruno Haible  <bruno@clisp.org>
46144
46145         Make determination of absolute name of header file work with AIX xlc.
46146         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
46147         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
46148         preprocessing.
46149         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46150         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46151
46152 2008-11-03  Simon Josefsson  <simon@josefsson.org>
46153
46154         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
46155         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
46156         <ludo@gnu.org>.
46157
46158 2008-11-02  Bruno Haible  <bruno@clisp.org>
46159
46160         Mark 'strpbrk' obsolete.
46161         * modules/strpbrk (Status, Notice): New sections.
46162         * modules/strtok_r (Depends-on): Add strpbrk.
46163
46164 2008-11-02  Bruno Haible  <bruno@clisp.org>
46165
46166         Mark 'strdup' obsolete.
46167         * modules/strdup (Status, Notice): New sections.
46168         * modules/findprog (Depends-on): Add strdup.
46169         * modules/getaddrinfo (Depends-on): Likewise.
46170         * modules/localename (Depends-on): Likewise.
46171         * modules/relocatable-lib (Depends-on): Likewise.
46172         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
46173         * modules/relocatable-prog (Depends-on): Likewise.
46174         * modules/trim (Depends-on): Likewise.
46175         * modules/unictype/gen-ctype (Depends-on): Likewise.
46176         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46177
46178 2008-11-02  Bruno Haible  <bruno@clisp.org>
46179
46180         Mark 'strcspn' obsolete.
46181         * modules/strcspn (Status, Notice): New sections.
46182
46183 2008-11-02  Bruno Haible  <bruno@clisp.org>
46184
46185         Mark 'rmdir' obsolete.
46186         * modules/rmdir (Status, Notice): New sections.
46187         * modules/clean-temp (Depends-on): Add rmdir.
46188         * modules/openat (Depends-on): Likewise.
46189
46190 2008-11-02  Bruno Haible  <bruno@clisp.org>
46191
46192         Mark 'raise' obsolete.
46193         * modules/raise (Status, Notice): New sections.
46194         (Include): Specify <signal.h>.
46195         * modules/stdio (Depends-on): Add raise.
46196         * modules/write (Depends-on): Likewise.
46197
46198 2008-11-02  Bruno Haible  <bruno@clisp.org>
46199
46200         Mark 'memset' obsolete.
46201         * modules/memset (Status, Notice): New sections.
46202
46203 2008-11-02  Bruno Haible  <bruno@clisp.org>
46204
46205         Mark 'memmove' obsolete.
46206         * modules/memmove (Status, Notice): New sections.
46207         * modules/argp (Depends-on): Add memmove.
46208         * modules/argz (Depends-on): Likewise.
46209         * modules/canonicalize (Depends-on): Likewise.
46210         * modules/canonicalize-lgpl (Depends-on): Likewise.
46211         * modules/fts (Depends-on): Likewise.
46212         * modules/getcwd (Depends-on): Likewise.
46213         * modules/human (Depends-on): Likewise.
46214         * modules/regex (Depends-on): Likewise.
46215         * modules/striconveh (Depends-on): Likewise.
46216         * modules/trim (Depends-on): Likewise.
46217         * modules/unistr/u8-move (Depends-on): Likewise.
46218         * modules/unistr/u16-move (Depends-on): Likewise.
46219         * modules/unistr/u32-move (Depends-on): Likewise.
46220
46221 2008-11-02  Bruno Haible  <bruno@clisp.org>
46222
46223         Mark 'memcpy' obsolete.
46224         * modules/memcpy (Status, Notice): New sections.
46225
46226 2008-11-02  Bruno Haible  <bruno@clisp.org>
46227
46228         Mark 'memcmp' obsolete.
46229         * modules/memcmp (Status, Notice): New sections.
46230         * modules/argmatch (Depends-on): Add memchr.
46231         * modules/backupfile (Depends-on): Likewise.
46232         * modules/c-strcasestr (Depends-on): Likewise.
46233         * modules/crypto/des (Depends-on): Likewise.
46234         * modules/csharpcomp (Depends-on): Likewise.
46235         * modules/fnmatch (Depends-on): Likewise.
46236         * modules/git-merge-changelog (Depends-on): Likewise.
46237         * modules/isnand (Depends-on): Likewise.
46238         * modules/isnand-nolibm (Depends-on): Likewise.
46239         * modules/isnanf (Depends-on): Likewise.
46240         * modules/isnanf-nolibm (Depends-on): Likewise.
46241         * modules/isnanl (Depends-on): Likewise.
46242         * modules/isnanl-nolibm (Depends-on): Likewise.
46243         * modules/mbchar (Depends-on): Likewise.
46244         * modules/memcoll (Depends-on): Likewise.
46245         * modules/quotearg (Depends-on): Likewise.
46246         * modules/regex (Depends-on): Likewise.
46247         * modules/relocatable-prog (Depends-on): Likewise.
46248         * modules/same (Depends-on): Likewise.
46249         * modules/signbit (Depends-on): Likewise.
46250         * modules/strcasestr-simple (Depends-on): Likewise.
46251         * modules/unictype/gen-ctype (Depends-on): Likewise.
46252         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46253         * modules/uniname/uniname (Depends-on): Likewise.
46254         * modules/unistr/u8-cmp (Depends-on): Likewise.
46255
46256 2008-11-02  Bruno Haible  <bruno@clisp.org>
46257
46258         Mark 'memchr' obsolete.
46259         * modules/memchr (Status, Notice): New sections.
46260         * modules/argp (Depends-on): Add memchr.
46261         * modules/base64 (Depends-on): Likewise.
46262         * modules/c-strcasestr (Depends-on): Likewise.
46263         * modules/chdir-long (Depends-on): Likewise.
46264         * modules/fnmatch (Depends-on): Likewise.
46265         * modules/getsubopt (Depends-on): Likewise.
46266         * modules/git-merge-changelog (Depends-on): Likewise.
46267         * modules/glob (Depends-on): Likewise.
46268         * modules/strcasestr-simple (Depends-on): Likewise.
46269         * modules/strnlen (Depends-on): Likewise.
46270
46271 2008-11-02  Bruno Haible  <bruno@clisp.org>
46272
46273         Mark 'atexit' obsolete.
46274         * modules/atexit (Status, Notice): New sections.
46275         * modules/chdir-long (Depends-on): Add atexit.
46276         * modules/wait-process (Depends-on): Likewise.
46277
46278 2008-11-02  Bruno Haible  <bruno@clisp.org>
46279
46280         * gnulib-tool: New option --with-obsolete.
46281         (func_usage): Document it.
46282         (func_modules_transitive_closure): Drop obsolete dependencies if
46283         incobsolete is not true.
46284         (func_import): Read and save the incobsolete variable to the cache.
46285
46286 2008-11-02  Bruno Haible  <bruno@clisp.org>
46287
46288         * modules/TEMPLATE-EXTENDED: New field 'Status'.
46289         * gnulib-tool: New option --extract-status.
46290         (func_usage): Document it.
46291         (sed_extract_prog): Recognize it.
46292         (func_get_status): New function.
46293
46294 2008-10-30  Simon Josefsson  <simon@josefsson.org>
46295
46296         * modules/sockets (License): Change from LGPL to LGPLv2+.
46297
46298 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46299
46300         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
46301
46302 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46303
46304         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46305         Mention times and sys_times.
46306         * modules/sys_times, modules/sys_times-tests: New modules.
46307         * modules/times, modules/times-tests: Likewise
46308         * m4/sys_times_h.m4: New file.
46309         * lib/sys_times.in.h: Likewise
46310         * lib/times.c: Likewise.
46311         * tests/test-sys_times.c: Likewise.
46312         * tests/test-times.c: Likewise.
46313         * doc/posix-headers/sys_times.texi: Update.
46314         * doc/posix-functions/times.texi: Update.
46315
46316 2008-10-28  Jim Meyering  <meyering@redhat.com>
46317
46318         * modules/tempname (Depends-on): Add lstat.
46319
46320         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
46321
46322 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46323
46324         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
46325         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
46326         using idiom used elsewhere in gnulib.
46327
46328 2008-10-27  Jim Meyering  <meyering@redhat.com>
46329
46330         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
46331
46332 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46333
46334         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
46335         TESTS_ENVIRONMENT, for shell scripts that needs to call built
46336         programs.
46337         * tests/test-argp-2.sh: Use $EXEEXT when needed.
46338
46339 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46340
46341         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
46342
46343 2008-10-27  Bruno Haible  <bruno@clisp.org>
46344
46345         * tests/test-lstat.c: Include <stdio.h>.
46346
46347 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46348
46349         * modules/lstat-tests: New module.
46350         * tests/test-lstat.c: New file.
46351
46352 2008-10-26  Jim Meyering  <meyering@redhat.com>
46353
46354         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
46355
46356 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46357             Bruno Haible  <bruno@clisp.org>
46358
46359         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
46360         * modules/configmake (Include): Add a note that the include must come
46361         after all system headers.
46362         * lib/javaversion.c: Include configmake.h after all other includes.
46363
46364 2008-10-26  Bruno Haible  <bruno@clisp.org>
46365
46366         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
46367         HAVE_STRUCT_RANDOM_DATA to 1.
46368         (gl_STDLIB_H): Simplify.
46369
46370 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46371
46372         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
46373         substitute HAVE_STRUCT_RANDOM_DATA.
46374         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
46375         random_data.
46376         * modules/stdlib (Makefile.am): Substitute
46377         HAVE_STRUCT_RANDOM_DATA.
46378
46379 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46380
46381         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
46382         * doc/gnulib-intro.texi (Copyright): Likewise.
46383
46384 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46385
46386         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
46387         findings.
46388
46389 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
46390             Bruno Haible  <bruno@clisp.org>
46391
46392         * lib/unistd.in.h: Include <winsock2.h>.
46393         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
46394         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
46395         Provide dummy declarations.
46396         (gethostname): Override.
46397         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
46398         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
46399         gl_PREREQ_SYS_H_WINSOCK2.
46400         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
46401         * doc/posix-functions/gethostname.texi: More details.
46402
46403 2008-10-25  Bruno Haible  <bruno@clisp.org>
46404
46405         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46406         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
46407         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
46408
46409         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
46410         here ...
46411         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
46412         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
46413         gl_UNISTD_H_DEFAULTS.
46414
46415 2008-10-25  Eric Blake  <ebb9@byu.net>
46416
46417         signbit: avoid spurious compiler failure
46418         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
46419         declarations inside function.
46420
46421 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46422             Bruno Haible  <bruno@clisp.org>
46423
46424         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
46425         * modules/random_r (Depends-on): Add stdint.
46426
46427 2008-10-24  Bruno Haible  <bruno@clisp.org>
46428
46429         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
46430         Eggert.
46431         * modules/strerror (License): Likewise.
46432
46433 2008-10-24  Jim Meyering  <meyering@redhat.com>
46434
46435         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
46436         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
46437
46438 2008-10-24  Eric Blake  <ebb9@byu.net>
46439
46440         getgroups: fix compilation when getgroups is available
46441         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
46442         but with <config.h> override of getgroups disabled.
46443
46444 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46445
46446         * doc/gnulib.texi (Header files): Add note about C++ problems.
46447         Explained by Bruno Haible <bruno@clisp.org>.
46448
46449 2008-10-23  Bruno Haible  <bruno@clisp.org>
46450
46451         Define a dummy SA_NODEFER macro on Interix.
46452         * lib/signal.in.h (SA_NODEFER): Define fallback.
46453         Reported by Aleksey Cheusov <cheusov@tut.by> via
46454         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
46455
46456 2008-10-23  Bruno Haible  <bruno@clisp.org>
46457
46458         * modules/freadahead (License): Change to LGPLv2+.
46459         Suggested by Simon Josefsson.
46460
46461 2008-10-23  Jim Meyering  <meyering@redhat.com>
46462
46463         random_r: new module
46464         * modules/random_r: New file.
46465         * m4/random_r.m4: New file.
46466         * lib/random_r.c: New file, from glibc.
46467         * modules/random_r-tests: New file.
46468         * tests/test-random_r.c: New file.
46469         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
46470          Declare.
46471         (RAND_MAX): Define.
46472         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
46473         * modules/stdlib: Substitute them, too.
46474         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
46475         * doc/glibc-functions/initstate_r.texi: Mention the new module.
46476         * doc/glibc-functions/random_r.texi: Likewise.
46477         * doc/glibc-functions/setstate_r.texi: Likewise.
46478         * doc/glibc-functions/srandom_r.texi: Likewise.
46479         * config/srclist.txt: Mention it.
46480
46481 2008-10-23  David Lutterkort  <lutter@redhat.com>
46482
46483         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
46484         link requirement
46485
46486 2008-10-23  Jim Meyering  <meyering@redhat.com>
46487
46488         selinux-h: mark parameters of stub functions as intentionally unused
46489         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
46490         * lib/se-context.in.h: Likewise.
46491
46492 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46493
46494         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
46495
46496 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46497
46498         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
46499
46500 2008-10-22  Eric Blake  <ebb9@byu.net>
46501
46502         glthread/thread: avoid compiler warning
46503         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
46504         Add unreachable abort to silence compiler.
46505
46506 2008-10-22  Eric Blake  <ebb9@byu.net>
46507
46508         netdb: also supply struct addrinfo for cygwin 1.5.x
46509         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
46510         older cygwin.
46511         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
46512         cygwin.
46513         * doc/posix-headers/netdb.texi (netdb.h): Document this.
46514
46515 2008-10-22  Bruno Haible  <bruno@clisp.org>
46516
46517         * users.txt: Update entry about pspp.
46518
46519 2008-10-21  Bruno Haible  <bruno@clisp.org>
46520
46521         Simplification.
46522         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
46523         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
46524
46525         Simplification.
46526         * lib/ioctl.c (ioctl): Don't undefine.
46527         * lib/socket.c (socket): Don't undefine.
46528
46529         Remove unused module indicator macros.
46530         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
46531         GNULIB_$1 as a C macro.
46532
46533         * doc/posix-functions/close.texi: Undo last change.
46534         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
46535         Windows platforms.
46536
46537 2008-10-21  Bruno Haible  <bruno@clisp.org>
46538
46539         Add gethostname() declaration to <unistd.h>.
46540         * lib/unistd.in.h (gethostname): New declaration.
46541         * lib/gethostname.c: Include <unistd.h>.
46542         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
46543         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
46544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
46545         and HAVE_GETHOSTNAME.
46546         * modules/gethostname (Depends-on): Add unistd.
46547         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46548         (Include): Specify <unistd.h>.
46549         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
46550         HAVE_GETHOSTNAME.
46551         * tests/test-gethostname.c: Include <unistd.h> first.
46552
46553 2008-10-21  Bruno Haible  <bruno@clisp.org>
46554
46555         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
46556         * modules/select-tests (Depends-on): Likewise.
46557         Reported by Simon Josefsson.
46558
46559 2008-10-21  Simon Josefsson  <simon@josefsson.org>
46560
46561         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
46562         * lib/accept.c: New file, based on winsock.c.
46563         * lib/bind.c: New file, based on winsock.c.
46564         * lib/connect.c: New file, based on winsock.c.
46565         * lib/getpeername.c: New file, based on winsock.c.
46566         * lib/getsockname.c: New file, based on winsock.c.
46567         * lib/getsockopt.c: New file, based on winsock.c.
46568         * lib/ioctl.c: New file, based on winsock.c.
46569         * lib/listen.c: New file, based on winsock.c.
46570         * lib/recv.c: New file, based on winsock.c.
46571         * lib/recvfrom.c: New file, based on winsock.c.
46572         * lib/send.c: New file, based on winsock.c.
46573         * lib/sendto.c: New file, based on winsock.c.
46574         * lib/setsockopt.c: New file, based on winsock.c.
46575         * lib/shutdown.c: New file, based on winsock.c.
46576         * lib/socket.c: New file, based on winsock.c.
46577         * lib/w32sock.h: New file, based on winsock.c.
46578         * lib/winsock.c: Remove file.
46579         * modules/accept: Likewise.
46580         * modules/bind: Likewise.
46581         * modules/connect: Likewise.
46582         * modules/getpeername: Likewise.
46583         * modules/getsockname: Likewise.
46584         * modules/getsockopt: Likewise.
46585         * modules/ioctl: Likewise.
46586         * modules/listen: Likewise.
46587         * modules/recv: Likewise.
46588         * modules/recvfrom: Likewise.
46589         * modules/send: Likewise.
46590         * modules/sendto: Likewise.
46591         * modules/setsockopt: Likewise.
46592         * modules/shutdown: Likewise.
46593         * modules/socket: Use socket.c instead of winsock.c.
46594         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
46595         * doc/posix-functions/accept.texi: Doc fix.
46596         * doc/posix-functions/bind.texi: Doc fix.
46597         * doc/posix-functions/close.texi: Doc fix.
46598         * doc/posix-functions/connect.texi: Doc fix.
46599         * doc/posix-functions/getpeername.texi: Doc fix.
46600         * doc/posix-functions/getsockname.texi: Doc fix.
46601         * doc/posix-functions/getsockopt.texi: Doc fix.
46602         * doc/posix-functions/ioctl.texi: Doc fix.
46603         * doc/posix-functions/listen.texi: Doc fix.
46604         * doc/posix-functions/recv.texi: Doc fix.
46605         * doc/posix-functions/recvfrom.texi: Doc fix.
46606         * doc/posix-functions/send.texi: Doc fix.
46607         * doc/posix-functions/sendto.texi: Doc fix.
46608         * doc/posix-functions/setsockopt.texi: Doc fix.
46609         * doc/posix-functions/shutdown.texi: Doc fix.
46610         * doc/posix-functions/socket.texi: Doc fix.
46611
46612 2008-10-20  Bruno Haible  <bruno@clisp.org>
46613
46614         Take into account the role of SIGABRT_COMPAT on Windows 2008.
46615         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
46616         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
46617         as an alias for SIGABRT.
46618         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
46619         (sigaction): Map it to SIGABRT.
46620         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
46621
46622 2008-10-20  Bruno Haible  <bruno@clisp.org>
46623
46624         * lib/fts.c: Don't include lstat.h.
46625         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
46626
46627         Move the lstat() declaration to <sys/stat.h>.
46628         * lib/lstat.h: Remove file.
46629         * lib/sys_stat.in.h: Add special invocation convention.
46630         (lstat): New declaration.
46631         * lib/lstat.c (orig_lstat): New function.
46632         (rpl_lstat): Use orig_lstat instead of lstat.
46633         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
46634         AC_C_INLINE. Set REPLACE_LSTAT.
46635         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
46636         and REPLACE_LSTAT.
46637         * modules/lstat (Files): Remove lib/lstat.h.
46638         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46639         (Include): Specify <sys/stat.h> instead of lstat.h.
46640         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
46641         REPLACE_LSTAT.
46642         * NEWS: Mention the change.
46643
46644 2008-10-20  Bruno Haible  <bruno@clisp.org>
46645
46646         * modules/posix_spawn-tests: New file.
46647         * tests/test-posix_spawn3.c: New file.
46648
46649 2008-10-20  Bruno Haible  <bruno@clisp.org>
46650
46651         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
46652         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46653         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
46654         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46655         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
46656
46657 2008-10-20  Bruno Haible  <bruno@clisp.org>
46658
46659         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
46660         of posix_spawn on AIX 5.3.
46661
46662 2008-10-20  Bruno Haible  <bruno@clisp.org>
46663
46664         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
46665
46666 2008-10-20  Bruno Haible  <bruno@clisp.org>
46667
46668         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
46669         of AC_LANG_PROGRAM.
46670
46671 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46672
46673         * lib/netdb.in.h: Don't define GNU specific constants until they
46674         are supported or needed.  Reported by Bruno Haible
46675         <bruno@clisp.org>.
46676
46677 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46678
46679         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
46680
46681 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46682
46683         * lib/getaddrinfo.h: Remove file.
46684         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
46685         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
46686         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
46687         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
46688         * modules/netdb: Substitute GNULIB_GETADDRINFO.
46689         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
46690         * tests/test-getaddrinfo.c: Likewise.
46691         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
46692         * NEWS: Mention change.
46693
46694 2008-10-19  Bruno Haible  <bruno@clisp.org>
46695
46696         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
46697
46698 2008-10-19  Bruno Haible  <bruno@clisp.org>
46699
46700         * lib/wait-process.c: Include simply <sys/wait.h>.
46701         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
46702         WIFSTOPPED): Remove fallback definitions.
46703         * modules/wait-process (Depends-on): Add sys_wait.
46704
46705         New module 'sys_wait'.
46706         * modules/sys_wait: New file.
46707         * lib/sys_wait.in.h: New file, partially copied from
46708         lib/wait-process.c.
46709         * m4/sys_wait_h.m4: New file.
46710         * doc/posix-headers/sys_wait.texi: Mention the new module.
46711
46712 2008-10-19  Bruno Haible  <bruno@clisp.org>
46713
46714         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
46715
46716 2008-10-19  Bruno Haible  <bruno@clisp.org>
46717
46718         Assume that waitpid() fills an 'int' status, not a 'union wait'.
46719         * lib/wait-process.c (WAIT_T): Remove type.
46720         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
46721         (wait_subprocess): Update.
46722
46723 2008-10-19  Bruno Haible  <bruno@clisp.org>
46724
46725         New module 'atoll'.
46726         * modules/atoll: New file.
46727         * lib/stdlib.in.h (atoll): New declaration.
46728         * lib/atoll.c: New file, from glibc with modifications.
46729         * m4/atoll.m4: New file.
46730         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
46731         HAVE_ATOLL.
46732         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
46733         * doc/posix-functions/atoll.texi: Mention the new module.
46734
46735 2008-10-19  Bruno Haible  <bruno@clisp.org>
46736
46737         Add strtoull() declaration to <stdlib.h>.
46738         * lib/stdlib.in.h (strtoull): New declaration.
46739         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46740         Set HAVE_STRTOULL.
46741         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
46742         HAVE_STRTOULL.
46743         * modules/strtoull (Depends-on): Add stdlib.
46744         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46745         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
46746         HAVE_STRTOULL.
46747
46748 2008-10-19  Bruno Haible  <bruno@clisp.org>
46749
46750         Add strtoll() declaration to <stdlib.h>.
46751         * lib/stdlib.in.h (strtoll): New declaration.
46752         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46753         Set HAVE_STRTOLL.
46754         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
46755         HAVE_STRTOLL.
46756         * modules/strtoll (Depends-on): Add stdlib.
46757         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46758         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
46759
46760 2008-10-19  Bruno Haible  <bruno@clisp.org>
46761
46762         * modules/bcopy (Depends-on): Add strings.
46763         (Include): Specify <strings.h>.
46764
46765 2008-10-19  Bruno Haible  <bruno@clisp.org>
46766
46767         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
46768
46769 2008-10-19  Bruno Haible  <bruno@clisp.org>
46770
46771         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
46772         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
46773         mingw.
46774
46775 2008-10-19  Bruno Haible  <bruno@clisp.org>
46776
46777         * lib/atanl.c: Don't include isnanl.h.
46778         * lib/cosl.c: Likewise.
46779         * lib/ldexpl.c: Likewise.
46780         * lib/logl.c: Likewise.
46781         * lib/sinl.c: Likewise.
46782         * lib/sqrtl.c: Likewise.
46783         * lib/tanl.c: Likewise.
46784
46785         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
46786         * lib/isnanf.h: Remove file.
46787         * lib/isnand.h: Remove file.
46788         * lib/isnanl.h: Remove file.
46789         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
46790         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
46791         macros.
46792         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46793         HAVE_ISNANF, don't define it as a C macro.
46794         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
46795         HAVE_ISNAND, don't define it as a C macro.
46796         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
46797         HAVE_ISNANL, don't define it as a C macro.
46798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
46799         HAVE_ISNAN[FDL].
46800         * modules/isnanf (Files): Remove lib/isnanf.h.
46801         (Depends-on): Add math.
46802         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46803         (Include): Specify <math.h> instead of isnanf.h.
46804         * modules/isnand (Files): Remove lib/isnand.h.
46805         (Depends-on): Add math.
46806         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46807         (Include): Specify <math.h> instead of isnand.h.
46808         * modules/isnanl (Files): Remove lib/isnanl.h.
46809         (Depends-on): Add math.
46810         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46811         (Include): Specify <math.h> instead of isnanl.h.
46812         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
46813         HAVE_ISNAN[FDL].
46814         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
46815         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
46816         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
46817         * NEWS: Mention the change.
46818
46819 2008-10-18  Bruno Haible  <bruno@clisp.org>
46820
46821         Add getusershell(), setusershell(), endusershell() declarations to
46822         <unistd.h>.
46823         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
46824         declarations.
46825         * lib/getusershell.c: Include unistd.h.
46826         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
46827         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46828         HAVE_GETUSERSHELL.
46829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
46830         and HAVE_GETUSERSHELL.
46831         * modules/getusershell (Depends-on): Add unistd, extensions.
46832         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46833         (Include): Specify <unistd.h>.
46834         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
46835         HAVE_GETUSERSHELL.
46836
46837 2008-10-18  Bruno Haible  <bruno@clisp.org>
46838
46839         Add a getloadavg() declaration to <stdlib.h>.
46840         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
46841         getloadavg declaration.
46842         (getloadavg): New declaration.
46843         * lib/getloadavg.c: Include <stdlib.h> first.
46844         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
46845         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
46846         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
46847         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
46848         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46849         * modules/getloadavg (Depends-on): Add stdlib, extensions.
46850         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46851         (Include): Specify <stdlib.h>.
46852         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
46853         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46854
46855 2008-10-18  Bruno Haible  <bruno@clisp.org>
46856
46857         * lib/dirchownmod.c: Don't include lchmod.h.
46858
46859         Move the lchmod() declaration to <sys/stat.h>.
46860         * lib/lchmod.h: Remove file.
46861         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
46862         (lchmod): New declaration, moved here from lib/lchown.h.
46863         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
46864         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
46865         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
46866         and HAVE_LCHMOD.
46867         * modules/lchmod (Files): Remove lib/lchmod.h.
46868         (Depends-on): Add sys_stat, extensions.
46869         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46870         (Include): Specify <sys/stat.h> instead of lchmod.h.
46871         * modules/sys_stat (Depends-on): Add link-warning.
46872         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
46873         definition of GL_LINK_WARNING.
46874         * NEWS: Mention the change.
46875
46876 2008-10-18  Bruno Haible  <bruno@clisp.org>
46877
46878         * lib/fchdir.c: Don't include dirfd.h.
46879         * lib/fts.c: Likewise.
46880         * lib/getcwd.c: Likewise.
46881         * lib/glob.c: Likewise.
46882
46883         Move the dirfd() declaration to <dirent.h>.
46884         * lib/dirfd.h: Remove file.
46885         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
46886         (dirfd): New declaration.
46887         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
46888         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
46889         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
46890         HAVE_DECL_DIRFD.
46891         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
46892         HAVE_DECL_DIRFD.
46893         * modules/dirfd (Files): Remove lib/dirfd.h.
46894         (Depends-on): Add dirent, extensions.
46895         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
46896         (Include): Specify <dirent.h> instead of dirfd.h.
46897         * modules/dirent (Depends-on): Add link-warning.
46898         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
46899         definition of GL_LINK_WARNING.
46900         * NEWS: Mention the change.
46901
46902 2008-10-18  Bruno Haible  <bruno@clisp.org>
46903
46904         Move the euidaccess() declaration to <unistd.h>.
46905         * lib/euidaccess.h: Remove file.
46906         * lib/unistd.in.h (euidaccess): New declaration.
46907         * lib/euidaccess.c: Don't include euidaccess.h.
46908         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
46909         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
46910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
46911         and HAVE_EUIDACCESS.
46912         * modules/euidaccess (Files): Remove lib/euidaccess.h.
46913         (Depends-on): Add unistd.
46914         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46915         (Include): Specify <unistd.h> instead of euidaccess.h.
46916         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
46917         HAVE_EUIDACCESS.
46918         * NEWS: Mention the change.
46919
46920 2008-10-18  Bruno Haible  <bruno@clisp.org>
46921
46922         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
46923
46924         Move the getdomainname() declaration to <unistd.h>.
46925         * lib/getdomainname.h: Remove file.
46926         * lib/unistd.in.h (getdomainname): New declaration.
46927         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
46928         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46929         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46930         HAVE_GETDOMAINNAME.
46931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46932         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
46933         * modules/getdomainname (Files): Remove lib/getdomainname.h.
46934         (Depends-on): Add unistd, extensions.
46935         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46936         (Includes): Specify <unistd.h> instead of getdomainname.h.
46937         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
46938         HAVE_GETDOMAINNAME.
46939         * NEWS: Mention the change.
46940
46941 2008-10-18  Bruno Haible  <bruno@clisp.org>
46942
46943         * modules/dirent: New file.
46944         * m4/dirent_h.m4: New file.
46945         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
46946         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
46947         * modules/fchdir (Files): Remove lib/dirent.in.h.
46948         (Depends-on): Add dirent.
46949         (Makefile.am): Move rules to modules/dirent.
46950         * doc/posix-headers/dirent.texi: Mention the new module.
46951
46952 2008-10-18  Bruno Haible  <bruno@clisp.org>
46953
46954         Avoid -Wunused-parameter warnings in public gnulib header files.
46955         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
46956         macro.
46957         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
46958
46959 2008-10-18  Bruno Haible  <bruno@clisp.org>
46960
46961         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
46962         * doc/glibc-functions/error.texi: Mention the module 'error'.
46963         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
46964         * doc/glibc-functions/getdomainname.texi: Mention the module
46965         'getdomainname'.
46966         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
46967         * doc/glibc-functions/getpagesize.texi: Mention the module
46968         'getpagesize'.
46969         * doc/glibc-functions/getusershell.texi: Mention the module
46970         'getusershell'.
46971         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
46972         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
46973         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
46974         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
46975         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
46976         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
46977         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
46978         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
46979         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
46980         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
46981         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
46982         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
46983         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
46984         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
46985
46986 2008-10-17  Bruno Haible  <bruno@clisp.org>
46987
46988         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
46989         HP-UX and IRIX, use -0.0L.
46990         * tests/test-ceill.c (minus_zero): Likewise.
46991         * tests/test-floorl.c (minus_zero): Likewise.
46992         * tests/test-frexpl.c (minus_zero): Likewise.
46993         * tests/test-isnan.c (minus_zerol): Likewise.
46994         * tests/test-isnanl.h (minus_zero): Likewise.
46995         * tests/test-ldexpl.c (minus_zero): Likewise.
46996         * tests/test-roundl.c (minus_zero): Likewise.
46997         * tests/test-signbit.c (minus_zerol): Likewise.
46998         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46999         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47000         * tests/test-truncl.c (minus_zero): Likewise.
47001         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47002         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47003         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
47004         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47005
47006 2008-10-17  Bruno Haible  <bruno@clisp.org>
47007
47008         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
47009         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
47010         that it gets activated only for gcc >= 3.0.
47011         * lib/dirent.in.h: Likewise.
47012         * lib/errno.in.h: Likewise.
47013         * lib/fcntl.in.h: Likewise.
47014         * lib/float.in.h: Likewise.
47015         * lib/iconv.in.h: Likewise.
47016         * lib/inttypes.in.h: Likewise.
47017         * lib/locale.in.h: Likewise.
47018         * lib/math.in.h: Likewise.
47019         * lib/netdb.in.h: Likewise.
47020         * lib/netinet_in.in.h: Likewise.
47021         * lib/search.in.h: Likewise.
47022         * lib/signal.in.h: Likewise.
47023         * lib/spawn.in.h: Likewise.
47024         * lib/stdarg.in.h: Likewise.
47025         * lib/stdint.in.h: Likewise.
47026         * lib/stdio.in.h: Likewise.
47027         * lib/stdlib.in.h: Likewise.
47028         * lib/string.in.h: Likewise.
47029         * lib/strings.in.h: Likewise.
47030         * lib/sys_file.in.h: Likewise.
47031         * lib/sys_ioctl.in.h: Likewise.
47032         * lib/sys_select.in.h: Likewise.
47033         * lib/sys_socket.in.h: Likewise.
47034         * lib/sys_stat.in.h: Likewise.
47035         * lib/sys_time.in.h: Likewise.
47036         * lib/sysexits.in.h: Likewise.
47037         * lib/time.in.h: Likewise.
47038         * lib/unistd.in.h: Likewise.
47039         * lib/wchar.in.h: Likewise.
47040         * lib/wctype.in.h: Likewise.
47041         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47042
47043 2008-10-17  Jim Meyering  <meyering@redhat.com>
47044
47045         ignore-value: don't depend on inline module
47046         * modules/ignore-value (Depends-on): Remove 'inline'.
47047         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
47048         Suggestion from Bruno Haible.
47049
47050 2008-10-17  Bruno Haible  <bruno@clisp.org>
47051
47052         New implementation of condition variables for Win32.
47053         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
47054         (gl_linked_waitqueue_t): New type.
47055         (gl_cond_t): Use it.
47056         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
47057         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
47058         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
47059         (glthread_cond_init_func, glthread_cond_wait_func,
47060         glthread_cond_timedwait_func, glthread_cond_signal_func,
47061         glthread_cond_broadcast_func, glthread_cond_destroy_func):
47062         Reimplemented on the basis of gl_linked_waitqueue_t.
47063         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
47064         gl_waitqueue_t.
47065         (gl_rwlock_t): Update.
47066         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
47067
47068 2008-10-17  Simon Josefsson  <simon@josefsson.org>
47069
47070         * modules/recvfrom (Depends-on): Add dependency on getpeername.
47071         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47072
47073 2008-10-17  Jim Meyering  <meyering@redhat.com>
47074
47075         ignore-value: new module
47076         * modules/ignore-value: New file.
47077         * lib/ignore-value.h: New file.
47078         * MODULES.html.sh (Compiler warning management): New section,
47079         just for this module.  More to come.
47080
47081 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47082
47083         open-safer.c: avoid 'signed and unsigned in conditional...' warning
47084         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
47085         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
47086
47087 2008-10-16  Jim Meyering  <meyering@redhat.com>
47088
47089         openat-die.c: avoid 'no previous prototype' warning
47090         * lib/openat-die.c: Include "openat.h".
47091         Reported by Reuben Thomas <rrt@sc3d.org>.
47092
47093 2008-10-16  Simon Josefsson  <simon@josefsson.org>
47094
47095         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
47096         * lib/netdb.in.h: Fix typo.
47097         Reported by Bruno Haible  <bruno@clisp.org>
47098
47099         * lib/netdb.in.h: Include sys/socket.h for platforms without
47100         netdb.h, to get structures like hostent on MinGW.
47101         * modules/netdb (Depends-on): Add sys_socket.
47102
47103 2008-10-15  Simon Josefsson  <simon@josefsson.org>
47104
47105         * modules/netdb, modules/netdb-tests: New file.
47106         * m4/netdb_h.m4: New file.
47107         * lib/netdb.in.h: Add, currently just an empty file pending
47108         definitions.
47109         * tests/test-netdb.c: New file.
47110         * doc/posix-headers/netdb.texi: Mention that we replace it if
47111         needed.
47112         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47113         netdb.
47114
47115 2008-10-15  Simon Josefsson  <simon@josefsson.org>
47116
47117         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
47118         with code.
47119
47120 2008-10-13  Bruno Haible  <bruno@clisp.org>
47121
47122         * lib/glthread/cond.c (glthread_cond_wait_func,
47123         glthread_cond_timedwait_func): Add a comment.
47124
47125 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47126
47127         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
47128         * tests/test-select.c: Likewise,
47129
47130 2008-10-13  Bruno Haible  <bruno@clisp.org>
47131
47132         * lib/glthread/cond.c (glthread_cond_wait_func,
47133         glthread_cond_timedwait_func): Fix variable name.
47134         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47135
47136 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
47137
47138         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
47139         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
47140         struct sockaddr.sa_len.
47141         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
47142
47143 2008-10-13  Simon Josefsson  <simon@josefsson.org>
47144
47145         * build-aux/pmccabe2html: Add css and css_url parameters.
47146
47147 2008-10-12  Bruno Haible  <bruno@clisp.org>
47148
47149         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
47150         calling aclx_get.
47151         Reported by Rainer Tammer <tammer@tammer.net>.
47152
47153 2008-10-12  Bruno Haible  <bruno@clisp.org>
47154
47155         Use msvcrt aware primitives for creation/termination of Win32 threads.
47156         * lib/glthread/thread.c: Include <process.h>.
47157         (glthread_create_func): Use _beginthreadex instead of CreateThread.
47158         (wrapper_func): Update signature.
47159         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
47160
47161 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47162             Bruno Haible  <bruno@clisp.org>
47163
47164         Provide a Win32 implementation of the 'cond' module.
47165         * lib/glthread/cond.h [USE_WIN32]: New implementation.
47166         * lib/glthread/cond.c (glthread_cond_init_func,
47167         glthread_cond_wait_func, glthread_cond_timedwait_func,
47168         glthread_cond_signal_func, glthread_cond_broadcast_func,
47169         glthread_cond_destroy_func) [USE_WIN32]: New functions.
47170         * modules/cond (Dependencies): Add gettimeofday.
47171
47172 2008-10-11  Bruno Haible  <bruno@clisp.org>
47173
47174         Make sleep work on older versions of mingw.
47175         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
47176         only whether it exists.
47177         * doc/posix-functions/sleep.texi: Mention the problem with older
47178         versions of mingw.
47179
47180 2008-10-11  Bruno Haible  <bruno@clisp.org>
47181
47182         New module 'shutdown'.
47183         * modules/shutdown: New file.
47184         * lib/sys_socket.in.h (shutdown): New declaration.
47185         * lib/winsock.c (shutdown): New function.
47186         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47187         GNULIB_SHUTDOWN.
47188         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
47189         * doc/posix-functions/shutdown.texi: Document the new module.
47190
47191 2008-10-11  Jim Meyering  <meyering@redhat.com>
47192
47193         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
47194
47195 2008-10-11  Bruno Haible  <bruno@clisp.org>
47196
47197         New module 'fclose'.
47198         * modules/fclose: New file.
47199         * lib/stdio.in.h (fclose): New declaration.
47200         * lib/fclose.c: New file.
47201         * m4/fclose.m4: New file.
47202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
47203         REPLACE_FCLOSE.
47204         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
47205         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
47206         REPLACE_FCLOSE.
47207         * modules/close (Depends-on): fclose.
47208         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
47209
47210 2008-10-11  Bruno Haible  <bruno@clisp.org>
47211
47212         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
47213         set errno and don't call _close.
47214
47215 2008-10-10  Bruno Haible  <bruno@clisp.org>
47216
47217         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
47218         ACL, not afterwards. Fixes test failure on Cygwin.
47219
47220 2008-10-09  Ben Pfaff  <blp@gnu.org>
47221
47222         * build-aux/announce-gen: Fix gnulib version related part of usage
47223         message.  Die with a useful error message if no tarballs are
47224         found.
47225
47226 2008-10-10  Jim Meyering  <meyering@redhat.com>
47227
47228         bootstrap: use git's --depth=N option only if it's supported
47229         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
47230         recognize the --depth option.  Reported by Pádraig Brady.
47231
47232 2008-10-09  Bruno Haible  <bruno@clisp.org>
47233
47234         New module 'ioctl'.
47235         * modules/ioctl: New file.
47236         * lib/sys_socket.in.h (ioctl): Remove declaration.
47237         * lib/winsock.c: Include <sys/ioctl.h>.
47238         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
47239         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47240         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
47241         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
47242         * doc/posix-functions/ioctl.texi: Mention the new module.
47243
47244 2008-10-09  Bruno Haible  <bruno@clisp.org>
47245
47246         New module 'sys_ioctl'.
47247         * lib/sys_ioctl.in.h: New file.
47248         * m4/sys_ioctl_h.m4: New file.
47249         * modules/sys_ioctl: New file.
47250         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
47251
47252 2008-10-09  Bruno Haible  <bruno@clisp.org>
47253
47254         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
47255         * lib/winsock.c: Include <stdarg.h>.
47256         (rpl_ioctl): Change to second argument 'int' and then varargs.
47257
47258 2008-10-09  Bruno Haible  <bruno@clisp.org>
47259
47260         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
47261         when the sys_socket module is present and the system has <winsock2.h>.
47262
47263 2008-10-09  Bruno Haible  <bruno@clisp.org>
47264
47265         * doc/posix-functions/close.texi: Mention module 'close' instead of
47266         module 'sys_socket'.
47267
47268 2008-10-09  Bruno Haible  <bruno@clisp.org>
47269
47270         * doc/glibc-headers/sys_ioctl.texi: New file.
47271         * doc/gnulib.texi: Include it.
47272
47273 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47274             Bruno Haible  <bruno@clisp.org>
47275
47276         Combine the two replacements of 'close'.
47277         * lib/sys_socket.in.h (close): Define to a reminder to include
47278         <unistd.h>.
47279         (_gl_close_fd_maybe_socket): New declaration.
47280         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
47281         * lib/winsock.c (close): Remove undefinition.
47282         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
47283         needed for the gnulib module 'close'.
47284         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
47285         define to an error symbol or to a warning, if suitable.
47286         * lib/close.c: Include <sys/socket.h>.
47287         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
47288         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
47289         UNISTD_H_HAVE_WINSOCK2_H.
47290         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
47291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47292         UNISTD_H_HAVE_WINSOCK2_H.
47293         * modules/sys_socket (Files): Add m4/unistd_h.m4.
47294         (configure.ac): Set a module indicator.
47295         (Makefile.am): Substitute GNULIB_CLOSE.
47296         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
47297         * modules/poll-tests (Depends-on): Add close.
47298         * modules/select-tests (Depends-on): Likewise.
47299
47300 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47301             Bruno Haible  <bruno@clisp.org>
47302
47303         New module 'close'.
47304         * modules/close: New file.
47305         * lib/unistd.in.h (close): Move declaration out of the
47306         FCHDIR_REPLACEMENT scope.
47307         (_gl_unregister_fd): New declaration.
47308         * lib/close.c: New file.
47309         * lib/fchdir.c (rpl_close): Remove function.
47310         * m4/close.m4: New file.
47311         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47312         close.
47313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
47314         REPLACE_CLOSE.
47315         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
47316         REPLACE_CLOSE.
47317         * modules/fchdir (Depends-on): Add close.
47318
47319 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47320             Bruno Haible  <bruno@clisp.org>
47321
47322         * lib/fcntl.in.h (open): Simplify conditionals.
47323         (_gl_register_fd): New declaration.
47324         * lib/fchdir.c (rpl_open): Remove function.
47325         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
47326         also.
47327         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
47328         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47329         open.
47330
47331 2008-10-09  Jim Meyering  <meyering@redhat.com>
47332
47333         GNUmakefile: use the more name-space-friendly "_version"
47334         * top/GNUmakefile (_dummy): Update.
47335         (_version): Rename from "version".
47336
47337 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47338             Bruno Haible  <bruno@clisp.org>
47339
47340         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
47341         rpl_close.
47342         (_gl_register_fd): New function, extracted from rpl_open.
47343         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
47344         (rpl_open, rpl_opendir): Use _gl_register_fd.
47345
47346 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47347
47348         Fix organization of 'open' replacement.
47349         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
47350         (gl_FUNC_OPEN): Use it.
47351         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
47352
47353 2008-10-08  Bruno Haible  <bruno@clisp.org>
47354
47355         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
47356
47357 2008-10-08  Simon Josefsson  <simon@josefsson.org>
47358
47359         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
47360         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
47361         listen).
47362
47363 2008-10-08  Eric Blake  <ebb9@byu.net>
47364
47365         GNUmakefile: add 'make version' target
47366         * top/GNUmakefile (_curr-ver): Split version update rules...
47367         (version): ...into a target.
47368
47369 2008-10-07  Bruno Haible  <bruno@clisp.org>
47370
47371         Use a more portable replacement expression for -0.0L.
47372         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
47373         instead of -0.0L. Fix m4 quotation.
47374
47375         * tests/test-signbit.c: Include <float.h>.
47376         (minus_zero): New variable.
47377         (test_signbitl): Use minus_zero instead of -zero.
47378         * modules/signbit-tests (Depends-on): Add float.
47379
47380         * tests/test-ceill.c: Include <float.h>.
47381         (zero): Remove variable.
47382         (minus_zero): New variable.
47383         (main): Use minus_zero instead of -zero.
47384         * modules/ceill-tests (Depends-on): Add float.
47385
47386         * tests/test-floorl.c: Include <float.h>.
47387         (zero): Remove variable.
47388         (minus_zero): New variable.
47389         (main): Use minus_zero instead of -zero.
47390         * modules/floorl-tests (Depends-on): Add float.
47391
47392         * tests/test-roundl.c: Include <float.h>.
47393         (zero): Remove variable.
47394         (minus_zero): New variable.
47395         (main): Use minus_zero instead of -zero.
47396         * modules/roundl-tests (Depends-on): Add float.
47397
47398         * tests/test-truncl.c: Include <float.h>.
47399         (zero): Remove variable.
47400         (minus_zero): New variable.
47401         (main): Use minus_zero instead of -zero.
47402         * modules/truncl-tests (Depends-on): Add float.
47403
47404         * tests/test-frexpl.c (zero): Remove variable.
47405         (minus_zero): New variable.
47406         (main): Use minus_zero instead of -zero.
47407         * modules/frexpl-tests (Depends-on): Add float.
47408
47409         * tests/test-isnan.c (zerol): Remove variable.
47410         (minus_zerol): New variable.
47411         (test_long_double): Use minus_zerol instead of -zerol.
47412         * modules/isnan-tests (Depends-on): Add float.
47413
47414         * tests/test-isnanl.h (zero): Remove variable.
47415         (minus_zero): New variable.
47416         (main): Use minus_zero instead of -zero.
47417         * modules/isnanl-nolibm-tests (Depends-on): Add float.
47418         * modules/isnanl-tests (Depends-on): Add float.
47419
47420         * tests/test-ldexpl.c (zero): Remove variable.
47421         (minus_zero): New variable.
47422         (main): Use minus_zero instead of -zero.
47423         * modules/ldexpl-tests (Depends-on): Add float.
47424
47425         * tests/test-snprintf-posix.h (zerol): Remove variable.
47426         (minus_zerol): New variable.
47427         (test_function): Use minus_zerol instead of -zerol.
47428         * modules/snprintf-posix-tests (Depends-on): Add float.
47429         * modules/vsnprintf-posix-tests (Depends-on): Add float.
47430
47431         * tests/test-sprintf-posix.h (zerol): Remove variable.
47432         (minus_zerol): New variable.
47433         (test_function): Use minus_zerol instead of -zerol.
47434         * modules/sprintf-posix-tests (Depends-on): Add float.
47435         * modules/vsprintf-posix-tests (Depends-on): Add float.
47436
47437         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
47438         (minus_zerol): New variable.
47439         (test_function): Use minus_zerol instead of -zerol.
47440         * modules/vasnprintf-posix-tests (Depends-on): Add float.
47441
47442         * tests/test-vasprintf-posix.c (zerol): Remove variable.
47443         (minus_zerol): New variable.
47444         (test_function): Use minus_zerol instead of -zerol.
47445         * modules/vasprintf-posix-tests (Depends-on): Add float.
47446
47447 2008-10-07  Simon Josefsson  <simon@josefsson.org>
47448
47449         * MODULES.html.sh (Support for building documentation): Mention
47450         pmccabe2html.  Sort entries.
47451
47452         Add pmccabe2html module, from gnupdf.
47453         * build-aux/pmccabe.css: New file.
47454         * build-aux/pmccabe2html: New file.
47455         * m4/pmccabe2html.m4: New file.
47456         * modules/pmccabe2html: New file.
47457
47458 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
47459
47460         flock: new module
47461         * MODULES.html.sh: Add to list of modules.
47462         * lib/flock.c: flock implementation for Windows and Unix systems
47463         which have fcntl.
47464         * doc/glibc-functions/flock.texi: Update documentation.
47465         * lib/sys_file.in.h: <sys/file.h> header file.
47466         * m4/flock.m4: M4 macros.
47467         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
47468         * modules/flock: flock module.
47469         * modules/flock-tests: flock tests module.
47470         * modules/sys_file: sys/file.h module.
47471         * tests/test-flock.c: test suite for flock.
47472
47473 2008-10-06  Jim Meyering  <meyering@redhat.com>
47474
47475         bootstrap: check for LT_INIT more portably still ;-)
47476         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
47477         Spotted by Bruno Haible.
47478
47479 2008-10-06  Eric Blake  <ebb9@byu.net>
47480
47481         test-signbit: avoid tripping Irix cc bug on -0.0L
47482         * tests/test-signbit.c (minus_zerol): Delete, and replace with
47483         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
47484         entire testsuite consistent and avoids an Irix 6.2 bug.
47485
47486 2008-10-05  Bruno Haible  <bruno@clisp.org>
47487             Jim Meyering  <jim@meyering.net>
47488
47489         Add an option for ignoring EPIPE during close_stdout.
47490         * lib/closeout.h: Include <stdbool.h>.
47491         (close_stdout_set_ignore_EPIPE): New declaration.
47492         * lib/closeout.c: Include <stdbool.h>.
47493         (ignore_EPIPE): New variable.
47494         (close_stdout_set_ignore_EPIPE): New function.
47495         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
47496         * lib/close-stream.c (close_stream): Mention the possible EPIPE
47497         failure.
47498         * modules/closeout (Depends-on): Add stdbool.
47499
47500 2008-10-05  Bruno Haible  <bruno@clisp.org>
47501
47502         * modules/accept: New file.
47503         * modules/bind: New file.
47504         * modules/connect: New file.
47505         * modules/getpeername: New file.
47506         * modules/getsockname: New file.
47507         * modules/getsockopt: New file.
47508         * modules/listen: New file.
47509         * modules/recv: New file.
47510         * modules/recvfrom: New file.
47511         * modules/send: New file.
47512         * modules/sendto: New file.
47513         * modules/setsockopt: New file.
47514         * modules/socket: New file.
47515         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
47516         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47517         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
47518         the particular module is requested. Add a link warning when the
47519         particular module is not requested.
47520         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
47521         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
47522         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
47523         the particular module is requested.
47524         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
47525         gl_SYS_SOCKET_H_DEFAULTS): New macros.
47526         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
47527         * modules/sys_socket (Depends-on): Add link-warning.
47528         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
47529         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
47530         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
47531         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
47532         GL_LINK_WARNING.
47533         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
47534         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
47535         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
47536         * doc/posix-functions/getpeername.texi: Mention the new module
47537         'getpeername'.
47538         * doc/posix-functions/getsockname.texi: Mention the new module
47539         'getsockname'.
47540         * doc/posix-functions/getsockopt.texi: Mention the new module
47541         'getsockopt'.
47542         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
47543         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
47544         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
47545         * doc/posix-functions/send.texi: Mention the new module 'send'.
47546         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
47547         * doc/posix-functions/setsockopt.texi: Mention the new module
47548         'setsockopt'.
47549         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
47550         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
47551         listen, connect, accept.
47552         * modules/select-tests (Depends-on): Likewise.
47553
47554 2008-10-05  Bruno Haible  <bruno@clisp.org>
47555
47556         * lib/winsock.c (strerror): Remove unused #undef.
47557         (rpl_close): Remove unused local variable.
47558
47559         * modules/sys_socket (Depends-on); Add errno.
47560
47561 2008-10-05  Bruno Haible  <bruno@clisp.org>
47562
47563         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
47564         (select): Add a link warning when the 'select' module is not used.
47565         * modules/sys_select (Depends-on): Add link-warning.
47566         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
47567         Suggested by Paolo Bonzini.
47568
47569 2008-10-05  Jim Meyering  <meyering@redhat.com>
47570
47571         bootstrap: check for LT_INIT more portably
47572         * build-aux/bootstrap: Avoid using grep -E, since it's not
47573         portable enough.  Suggestion from Bruno Haible.
47574
47575 2008-10-05  Bruno Haible  <bruno@clisp.org>
47576
47577         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
47578         as being fixed by gnulib.
47579
47580 2008-10-05  Bruno Haible  <bruno@clisp.org>
47581
47582         * modules/select-tests: New file, mostly copied from
47583         modules/sys_select-tests.
47584         * tests/test-select.c: New file, mostly copied from
47585         tests/test-sys_select.c.
47586         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
47587         * modules/sys_select-tests (Depends-on): Remove all dependencies.
47588         (Makefile.am): Remove test_sys_select_LDADD.
47589
47590         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
47591         to an undefined symbol, for an error message.
47592         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
47593         (gl_SYS_SELECT_H_DEFAULTS): New macro.
47594         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
47595         winsock-select.c here.
47596         * modules/sys_select (Files): Remove lib/winsock-select.c.
47597         (Depends-on): Remove alloca.
47598         (Makefile.am): Substitute GNULIB_SELECT.
47599         * modules/select: New file.
47600         * doc/posix-functions/select.texi: Update.
47601
47602 2008-10-05  Bruno Haible  <bruno@clisp.org>
47603
47604         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
47605         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
47606         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
47607         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
47608         getdtablesize.
47609         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
47610         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
47611
47612 2008-10-05  Bruno Haible  <bruno@clisp.org>
47613
47614         * modules/getdtablesize-tests: New file.
47615         * tests/test-getdtablesize.c: New file.
47616
47617         New module 'getdtablesize'.
47618         * lib/unistd.in.h (getdtablesize): New declaration.
47619         * lib/getdtablesize.c: New file.
47620         * m4/getdtablesize.m4: New file.
47621         * modules/getdtablesize: New file.
47622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47623         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
47624         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
47625         HAVE_GETDTABLESIZE.
47626         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
47627
47628 2008-10-05  Bruno Haible  <bruno@clisp.org>
47629
47630         * modules/sched (Makefile.am): Fix typo.
47631         Reported by Simon Josefsson.
47632
47633 2008-10-05  Jim Meyering  <meyering@redhat.com>
47634
47635         bootstrap: check for LT_INIT, too
47636         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
47637         are deprecated.  Suggestion from Ralf Wildenhues.
47638
47639 2008-10-05  Bruno Haible  <bruno@clisp.org>
47640
47641         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
47642         overriding them by ours.
47643         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
47644
47645 2008-10-05  Jim Meyering  <meyering@redhat.com>
47646
47647         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
47648         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
47649         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
47650
47651 2008-10-04  Bruno Haible  <bruno@clisp.org>
47652
47653         * modules/dup2 (License): Change to LGPLv2+.
47654         * modules/sleep (License): Likewise.
47655         * modules/perror (License): Likewise.
47656         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
47657         Blake.
47658         * modules/signal (License): Likewise.
47659         * modules/sigprocmask (License): Likewise.
47660         * modules/raise (License): Change to LGPLv2+, with approval by Jim
47661         Meyering.
47662
47663 2008-10-04  Bruno Haible  <bruno@clisp.org>
47664
47665         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
47666         Reported by Rainer Tammer <tammer@tammer.net>.
47667
47668 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
47669             Bruno Haible  <bruno@clisp.org>
47670
47671         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
47672         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
47673         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
47674
47675 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
47676
47677         filevercmp: new module
47678         * lib/filevercmp.h: New function filevercmp comparing version strings.
47679         * lib/filevercmp.c: Implementation of filevercmp function.
47680         * modules/filevercmp: Module metadata.
47681         * tests/test-filevercmp.c: Unit test for new module.
47682         * modules/filevercmp-tests: Unit test metadata.
47683         * MODULES.html.sh: Add filevercmp module.
47684
47685 2008-10-03  Bruno Haible  <bruno@clisp.org>
47686
47687         * lib/c-ctype.h: Add comment.
47688         Reported by Jim Meyering.
47689
47690 2008-10-02  Bruno Haible  <bruno@clisp.org>
47691
47692         * modules/posix_spawn-internal (Depends-on): Add 'open'.
47693
47694 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47695
47696         * build-aux/bootstrap: Allow renaming bootstrap, and change the
47697         name of bootstrap.conf accordingly.
47698
47699 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47700
47701         * build-aux/bootstrap: Install git-merge-changelog configuration
47702         items into .gitconfig if needed.
47703
47704 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47705
47706         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
47707         git repository, and initialize/update it accordingly.
47708
47709 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
47710
47711         * modules/fsync-tests: New file.
47712         * tests/test-fsync.c: New file.
47713
47714         New module 'fsync'.
47715         * lib/fsync.c: New file.
47716         * m4/fsync.m4: New file.
47717         * modules/fsync: New file.
47718         * lib/unistd.in.h (fsync): New declaration.
47719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
47720         GNULIB_FSYNC and HAVE_FSYNC.
47721         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
47722         * MODULES.html.sh (posix_functions): Add fsync.
47723         * doc/posix-functions/fsync.texi: Mention the new module.
47724
47725 2008-10-02  Jim Meyering  <meyering@redhat.com>
47726
47727         fts.c: sync with similar code from coreutils' remove.c
47728         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
47729         Guard also with "#if defined __linux__", since for now at least,
47730         this code is Linux-kernel-specific.
47731
47732 2008-10-02  Jim Meyering  <meyering@redhat.com>
47733
47734         fts: bug fixes
47735         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
47736         Include <sys/vfs.h>, not <sys/statfs.h>.
47737
47738         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
47739         Include <sys/vfs.h>, not <sys/statfs.h>.
47740
47741 2008-10-01  Bruno Haible  <bruno@clisp.org>
47742
47743         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
47744         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
47745         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
47746         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
47747         * doc/posix-functions/posix_spawnp.texi: Likewise.
47748         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
47749         whether posix_spawn actually works.
47750         * m4/pipe.m4 (gl_PIPE): Likewise.
47751         * modules/execute (Files): Add m4/posix_spawn.m4.
47752         * modules/pipe (Files): Add m4/posix_spawn.m4.
47753         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
47754
47755 2008-10-01  Jim Meyering  <meyering@redhat.com>
47756
47757         remove trailing spaces
47758         * NEWS: Likewise.
47759         * lib/poll.c (poll): Likewise.
47760         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
47761         * lib/winsock.c (rpl_close): Likewise.
47762         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
47763         * modules/yield: Likewise.
47764         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
47765         * tests/test-sys_select.c (connect_to_socket): Likewise.
47766
47767         fts.c: adjust a new interface to be more generally useful
47768         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
47769         (fts_build): Adjust caller.
47770
47771 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47772
47773         * modules/cond-tests: New file.
47774         * tests/test-cond.c: New file.
47775
47776 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47777             Bruno Haible  <bruno@clisp.org>
47778
47779         * modules/cond (Dependencies): Add errno, time.
47780         * lib/glthread/cond.h: Include <time.h>.
47781         (gl_cond_define, gl_cond_define_initialized): Use the same definition
47782         across platforms.
47783
47784 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47785             Bruno Haible  <bruno@clisp.org>
47786
47787         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
47788
47789 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47790             Bruno Haible  <bruno@clisp.org>
47791
47792         * modules/tls-tests (Depends-on): Add thread, yield.
47793         (configure.ac): Remove all checks.
47794         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
47795         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47796         gl_thread_self): Remove definitions. Include glthread/thread.h and
47797         glthread/yield.h instead.
47798         (test_tls): Pass an additional NULL argument to gl_thread_join.
47799
47800 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47801             Bruno Haible  <bruno@clisp.org>
47802
47803         * modules/lock-tests (Depends-on): Add thread, yield.
47804         (configure.ac): Remove all checks.
47805         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
47806         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47807         gl_thread_self): Remove definitions. Include glthread/thread.h and
47808         glthread/yield.h instead.
47809         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
47810         additional NULL argument to gl_thread_join.
47811
47812 2008-09-30  Bruno Haible  <bruno@clisp.org>
47813
47814         Fix the Win32 implementation of the 'thread' module.
47815         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
47816         pointer type.
47817         (gl_thread_self): Invoke gl_thread_self_func.
47818         (gl_thread_self_func): New declaration.
47819         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
47820         (do_init_self_key, init_self_key): New functions.
47821         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
47822         Remove some fields.
47823         (running_threads, running_lock): Remove variables.
47824         (get_current_thread_handle): New function.
47825         (gl_thread_self_func, wrapper_func, glthread_create_func,
47826         glthread_join_func, gl_thread_exit_func): Largely rewritten and
47827         simplified.
47828
47829 2008-09-30  Bruno Haible  <bruno@clisp.org>
47830
47831         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
47832         files.
47833
47834 2008-09-30  Jim Meyering  <meyering@redhat.com>
47835
47836         fts.m4: correct the test for statfs.f_type
47837         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
47838         when checking for statfs.f_type.
47839
47840 2008-09-15  Simon Josefsson  <simon@josefsson.org>
47841
47842         tests: avoid some compiler warnings
47843         * tests/test-memchr.c (main): Pass NULL indirectly.
47844         * tests/test-getdate.c (main): Remove unused variable 'ret'.
47845
47846 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
47847
47848         getdate.y: disallow countable dayshifts like "4 yesterday ago"
47849         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
47850         exactly specified dayshifts.
47851         (dayshift): New rule.
47852         (rel): Add dayshift.
47853         (relative_time_table) [tomorrow, yesterday, today, now]:
47854         Use tDAY_SHIFT in place of tDAY_UNIT.
47855         * tests/test-getdate.c: Add tests for now-disallowed countable
47856         dayshifts, e.g., "4 yesterday ago".
47857
47858 2008-09-29  Bruno Haible  <bruno@clisp.org>
47859
47860         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
47861         * tests/test-posix_spawn1.in.sh: Renamed from
47862         tests/test-posix_spawn.in.sh.
47863         * tests/test-posix_spawn2.c: New file.
47864         * tests/test-posix_spawn2.in.sh: New file.
47865         * modules/posix_spawnp-tests (Files): Update.
47866         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
47867
47868 2008-09-29  Bruno Haible  <bruno@clisp.org>
47869
47870         Propagate effects of putenv/setenv/unsetenv to child processes.
47871         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
47872         * lib/pipe.c (create_pipe): Likewise.
47873
47874 2008-09-29  Bruno Haible  <bruno@clisp.org>
47875
47876         Enable use of shell scripts as executables in mingw.
47877         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
47878         run the program as a shell script.
47879         * lib/pipe.c (create_pipe): Likewise.
47880         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
47881         resulting array.
47882
47883 2008-09-29  Eric Blake  <ebb9@byu.net>
47884
47885         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
47886
47887 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
47888
47889         * doc/posix-functions/accept.texi: Update mingw problems.
47890         * doc/posix-functions/bind.texi: Update mingw problems.
47891         * doc/posix-functions/close.texi: Update mingw problems.
47892         * doc/posix-functions/connect.texi: Update mingw problems.
47893         * doc/posix-functions/getpeername.texi: Update mingw problems.
47894         * doc/posix-functions/getsockname.texi: Update mingw problems.
47895         * doc/posix-functions/getsockopt.texi: Update mingw problems.
47896         * doc/posix-functions/ioctl.texi: Update mingw problems.
47897         * doc/posix-functions/listen.texi: Update mingw problems.
47898         * doc/posix-functions/recv.texi: Update mingw problems.
47899         * doc/posix-functions/recvfrom.texi: Update mingw problems.
47900         * doc/posix-functions/select.texi: Update mingw problems.
47901         * doc/posix-functions/send.texi: Update mingw problems.
47902         * doc/posix-functions/sendto.texi: Update mingw problems.
47903         * doc/posix-functions/setsockopt.texi: Update mingw problems.
47904         * doc/posix-functions/socket.texi: Update mingw problems.
47905
47906 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
47907             Bruno Haible  <bruno@clisp.org>
47908
47909         * lib/sys_select.in.h: Include sys/time.h.
47910         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
47911         * modules/sys_select: Depend on sys_time.
47912         * tests/test-sys_select.c: Test that sys/select.h defines struct
47913         timeval fully.
47914
47915 2008-09-29  Bruno Haible  <bruno@clisp.org>
47916
47917         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
47918         * lib/sys_select.in.h: Likewise.
47919
47920 2008-09-29  Bruno Haible  <bruno@clisp.org>
47921
47922         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
47923
47924 2008-09-29  Bruno Haible  <bruno@clisp.org>
47925
47926         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
47927         Set LIBSOCKET instead of augmenting LIBS.
47928         * modules/sockets (Link): New section.
47929         * modules/sockets-tests (test_sockets_LDADD): New variable.
47930         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
47931         * modules/poll-tests (test_poll_LDADD): New variable.
47932         * NEWS: Document the change.
47933
47934 2008-09-29  Bruno Haible  <bruno@clisp.org>
47935
47936         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
47937         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
47938         ARPA_INET_H directly.
47939         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47940
47941 2008-09-28  Bruno Haible  <bruno@clisp.org>
47942
47943         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
47944         from gl_HEADER_SYS_SOCKET.
47945         (gl_HEADER_SYS_SOCKET): Invoke it.
47946         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47947
47948 2008-09-28  Bruno Haible  <bruno@clisp.org>
47949
47950         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
47951         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
47952         Needed on OSF/1 4.0.
47953
47954 2008-09-28  Bruno Haible  <bruno@clisp.org>
47955
47956         Override open more carefully.
47957         * lib/open.c (orig_open): New function.
47958         (rpl_open): Use orig_open instead of open.
47959         * lib/fcntl.in.h: Add special invocation convention.
47960         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
47961         (gl_FUNC_OPEN): Invoke it.
47962
47963         Override freopen more carefully.
47964         * lib/freopen.c (orig_freopen): New function.
47965         (rpl_freopen): Use orig_freopen instead of freopen.
47966         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
47967         (gl_FUNC_FREOPEN): Invoke it.
47968
47969         Override fopen more carefully.
47970         * lib/fopen.c (orig_fopen): New function.
47971         (rpl_fopen): Use orig_fopen instead of fopen.
47972         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
47973         (gl_FUNC_FOPEN): Invoke it.
47974         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
47975
47976 2008-09-28  Bruno Haible  <bruno@clisp.org>
47977
47978         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
47979         SIGPIPE.
47980
47981 2008-09-28  Bruno Haible  <bruno@clisp.org>
47982
47983         * tests/test-sigaction.c (handler, main): Disable the check whether
47984         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
47985         glibc systems with LinuxThreads.
47986
47987 2008-09-28  Bruno Haible  <bruno@clisp.org>
47988
47989         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
47990
47991         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
47992         with AIX xlc.
47993         * lib/fcntl.in.h (open): Likewise.
47994         Reported by Rainer Tammer <tammer@tammer.net>.
47995
47996 2008-09-28  Bruno Haible  <bruno@clisp.org>
47997
47998         * modules/posix_spawnp-tests: New file.
47999         * tests/test-posix_spawn.c: New file.
48000         * tests/test-posix_spawn.in.sh: New file.
48001
48002         New module 'posix_spawnp'.
48003         * modules/posix_spawnp: New file.
48004         * lib/spawnp.c: New file, from GNU libc with modifications.
48005         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
48006
48007         New module 'posix_spawn'.
48008         * modules/posix_spawn: New file.
48009         * lib/spawn.c: New file, from GNU libc with modifications.
48010         * doc/posix-functions/posix_spawn.texi: Mention the new module.
48011
48012         New module 'posix_spawnattr_destroy'.
48013         * modules/posix_spawnattr_destroy: New file.
48014         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
48015         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
48016         module.
48017
48018         New module 'posix_spawnattr_setsigmask'.
48019         * modules/posix_spawnattr_setsigmask: New file.
48020         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
48021         modifications.
48022         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
48023         new module.
48024
48025         New module 'posix_spawnattr_getsigmask'.
48026         * modules/posix_spawnattr_getsigmask: New file.
48027         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
48028         modifications.
48029         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
48030         new module.
48031
48032         New module 'posix_spawnattr_setsigdefault'.
48033         * modules/posix_spawnattr_setsigdefault: New file.
48034         * lib/spawnattr_setdefault.c: New file, from GNU libc with
48035         modifications.
48036         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
48037         new module.
48038
48039         New module 'posix_spawnattr_getsigdefault'.
48040         * modules/posix_spawnattr_getsigdefault: New file.
48041         * lib/spawnattr_getdefault.c: New file, from GNU libc with
48042         modifications.
48043         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
48044         new module.
48045
48046         New module 'posix_spawnattr_setschedpolicy'.
48047         * modules/posix_spawnattr_setschedpolicy: New file.
48048         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
48049         modifications.
48050         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
48051         new module.
48052
48053         New module 'posix_spawnattr_getschedpolicy'.
48054         * modules/posix_spawnattr_getschedpolicy: New file.
48055         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
48056         modifications.
48057         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
48058         new module.
48059
48060         New module 'posix_spawnattr_setschedparam'.
48061         * modules/posix_spawnattr_setschedparam: New file.
48062         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
48063         modifications.
48064         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
48065         new module.
48066
48067         New module 'posix_spawnattr_getschedparam'.
48068         * modules/posix_spawnattr_getschedparam: New file.
48069         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
48070         modifications.
48071         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
48072         new module.
48073
48074         New module 'posix_spawnattr_setpgroup'.
48075         * modules/posix_spawnattr_setpgroup: New file.
48076         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
48077         modifications.
48078         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
48079         module.
48080
48081         New module 'posix_spawnattr_getpgroup'.
48082         * modules/posix_spawnattr_getpgroup: New file.
48083         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
48084         modifications.
48085         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
48086         module.
48087
48088         New module 'posix_spawnattr_setflags'.
48089         * modules/posix_spawnattr_setflags: New file.
48090         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
48091         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
48092         module.
48093
48094         New module 'posix_spawnattr_getflags'.
48095         * modules/posix_spawnattr_getflags: New file.
48096         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
48097         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
48098         module.
48099
48100         New module 'posix_spawnattr_init'.
48101         * modules/posix_spawnattr_init: New file.
48102         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
48103         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
48104         module.
48105
48106         New module 'posix_spawn_file_actions_destroy'.
48107         * modules/posix_spawn_file_actions_destroy: New file.
48108         * lib/spawn_faction_destroy.c: New file, from GNU libc with
48109         modifications.
48110         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
48111         the new module.
48112
48113         New module 'posix_spawn_file_actions_addopen'.
48114         * modules/posix_spawn_file_actions_addopen: New file.
48115         * lib/spawn_faction_addopen.c: New file, from GNU libc with
48116         modifications.
48117         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
48118         the new module.
48119
48120         New module 'posix_spawn_file_actions_adddup2'.
48121         * modules/posix_spawn_file_actions_adddup2: New file.
48122         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
48123         modifications.
48124         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
48125         the new module.
48126
48127         New module 'posix_spawn_file_actions_addclose'.
48128         * modules/posix_spawn_file_actions_addclose: New file.
48129         * lib/spawn_faction_addclose.c: New file, from GNU libc with
48130         modifications.
48131         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
48132         the new module.
48133
48134         New module 'posix_spawn_file_actions_init'.
48135         * modules/posix_spawn_file_actions_init: New file.
48136         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
48137         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
48138         new module.
48139
48140         New module 'posix_spawn-internal'.
48141         * modules/posix_spawn-internal: New file.
48142         * lib/spawn_int.h: New file, from GNU libc with modifications.
48143         * lib/spawni.c: New file, from GNU libc with modifications.
48144         * m4/posix_spawn.m4: New file.
48145
48146         New module 'spawn'.
48147         * modules/spawn: New file.
48148         * lib/spawn.in.h: New file, from GNU libc with modifications.
48149         * m4/spawn_h.m4: New file.
48150         * doc/posix-headers/spawn.texi: Mention the new module.
48151
48152 2008-09-28  Bruno Haible  <bruno@clisp.org>
48153
48154         * modules/sched-tests: New file.
48155         * tests/test-sched.c: New file.
48156
48157         New module 'sched'.
48158         * modules/sched: New file.
48159         * lib/sched.in.h: New file.
48160         * m4/sched_h.m4: New file.
48161         * doc/posix-headers/sched.texi: Mention the new module.
48162
48163 2008-09-27  Eric Blake  <ebb9@byu.net>
48164
48165         Fix previous patch, and tweak references to $0.
48166         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
48167         (func_version, func_gnulib_dir): Don't call this program
48168         gnulib-tool.
48169         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
48170         with using $0 in function.
48171         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
48172         (func_fatal_error): Reuse the name the user invoked us with.
48173
48174 2008-09-27  Bruno Haible  <bruno@clisp.org>
48175
48176         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
48177         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
48178         (gl_ICONV_H): Not here.
48179         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
48180         instead of assigning ICONV_H directly.
48181
48182         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
48183         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
48184         WCHAR_H directly.
48185
48186 2008-09-27  Bruno Haible  <bruno@clisp.org>
48187
48188         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
48189         * modules/arpa_inet (Depends-on): Add link-warning.
48190         (Makefile.am): Insert the definition of GL_LINK-WARNING.
48191         * modules/unistd (Makefile.am): Likewise.
48192
48193 2008-09-26  Bruno Haible  <bruno@clisp.org>
48194
48195         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
48196         variables.
48197         (func_version): Essentially copied from gnulib-tool.
48198         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
48199         func_readlink): Copied from gnulib-tool.
48200
48201 2008-09-26  Bruno Haible  <bruno@clisp.org>
48202
48203         * gnulib-tool (func_version): Change directory to $gnulib_dir before
48204         invoking git-version-gen.
48205
48206 2008-09-26  Bruno Haible  <bruno@clisp.org>
48207
48208         * posix-modules: Update to directory names changed on 2008-01-19.
48209         Remove commas in output before splitting into words. No more need to
48210         avoid 'ftruncate' since 2007-02-19.
48211
48212 2008-09-26  Bruno Haible  <bruno@clisp.org>
48213
48214         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
48215
48216 2008-09-26  Bruno Haible  <bruno@clisp.org>
48217
48218         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
48219         * modules/fwriteerror (Depends-on): Add errno.
48220
48221 2008-09-26  Bruno Haible  <bruno@clisp.org>
48222
48223         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
48224         * tests/test-vc-list-files-cvs.sh: Likewise.
48225
48226 2008-09-26  Bruno Haible  <bruno@clisp.org>
48227
48228         * doc/posix-headers/sys_resource.texi: Reorder items.
48229
48230 2008-09-26  Jim Meyering  <meyering@redhat.com>
48231
48232         fts: tweak inode comparison function
48233         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
48234         inode numbers, as documented.
48235
48236         fts: sort dirent entries on inode number before traversing
48237         This avoids a quadratic, seek-related performance penalty when
48238         operating on a directory containing many entries (measurable at 10k;
48239         3.5 hours at 2 million entries with a cold cache) on certain types
48240         of file systems, including ext3 and ext4, but not tmpfs.
48241         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
48242         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
48243         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
48244         (fs_handles_readdir_ordered_dirents_efficiently): New function.
48245         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
48246         (fts_build): Set the stat.st_ino member from D_INO.
48247         If it is likely to be useful, sort dirent entries on inode number.
48248
48249         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
48250         and the struct statfs.f_type member.
48251         * modules/fts (Depends-on): Add d-ino.
48252
48253 2008-09-26  Bruno Haible  <bruno@clisp.org>
48254
48255         * modules/sigpipe-die (Depends-on): Add sigpipe.
48256
48257         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
48258         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
48259         and GNULIB_STDIO_H_SIGPIPE are set.
48260         * lib/stdio-write.c: New file.
48261         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
48262         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48263         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48264         REPLACE_STDIO_WRITE_FUNCS.
48265         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
48266         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48267         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48268         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48269         * modules/stdio (Files): Add lib/stdio-write.c.
48270         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
48271         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48272         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48273         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48274         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
48275         REPLACE_FPRINTF_POSIX.
48276         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
48277         REPLACE_PRINTF_POSIX.
48278         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
48279         REPLACE_VFPRINTF_POSIX.
48280         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
48281         REPLACE_VPRINTF_POSIX.
48282         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
48283         SIGPIPE issue.
48284         * doc/posix-functions/fputc.texi: Likewise.
48285         * doc/posix-functions/fputs.texi: Likewise.
48286         * doc/posix-functions/fwrite.texi: Likewise.
48287         * doc/posix-functions/printf.texi: Likewise.
48288         * doc/posix-functions/putc.texi: Likewise.
48289         * doc/posix-functions/putchar.texi: Likewise.
48290         * doc/posix-functions/puts.texi: Likewise.
48291         * doc/posix-functions/vfprintf.texi: Likewise.
48292         * doc/posix-functions/vprintf.texi: Likewise.
48293
48294         * modules/safe-write (Depends-on): Add write.
48295
48296         * modules/sigpipe-tests: New file.
48297         * tests/test-sigpipe.c: New file.
48298         * tests/test-sigpipe.sh: New file.
48299
48300         * modules/write: New file.
48301         * lib/unistd.in.h: Include <sys/types.h>.
48302         (write): New declaration.
48303         * lib/write.c: New file.
48304         * m4/write.m4: New file.
48305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48306         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
48307         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
48308         GNULIB_WRITE, REPLACE_WRITE.
48309         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
48310         and the SIGPIPE issue.
48311
48312         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
48313         (raise): New declaration.
48314         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
48315         (ext_signal): New function.
48316         (rpl_raise): New function.
48317         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
48318         GNULIB_SIGNAL_H_SIGPIPE.
48319         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
48320         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
48321
48322         * modules/sigpipe: New file.
48323         * m4/sigpipe.m4: New file.
48324
48325 2008-09-25  Derek Price  <derek@ximbiot.com>
48326             Bruno Haible  <bruno@clisp.org>
48327
48328         * gnulib-tool (func_import): Report all license incompatibilities, not
48329         just the first one.
48330
48331 2008-09-25  Bruno Haible  <bruno@clisp.org>
48332
48333         * gnulib-tool (func_import): When computing the edits, consider not
48334         only the Makefile.ams that exist but also those that will be generated.
48335
48336 2008-09-25  Simon Josefsson  <simon@josefsson.org>
48337
48338         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
48339         fixes gnulib-tool --test warning about duplicate dependency.
48340
48341 2008-09-25  Bruno Haible  <bruno@clisp.org>
48342
48343         * gnulib-tool: Don't ask the user to perform edits in the generated
48344         Makefile.ams.
48345         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
48346         apply to the Makefile.am being generated.
48347         (func_emit_tests_Makefile_am): Execute edits that apply to the
48348         Makefile.am being generated.
48349         (func_import): Setup list of Makefile.am edits before emitting the
48350         Makefile.ams, not at the end.
48351         (func_create_testdir): Update.
48352         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48353
48354 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48355
48356         * gnulib-tool (func_import): Store the --tests-base option in the
48357         comment in gnulib-cache.m4.
48358
48359 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
48360
48361         * NEWS: Document increased portability that sys_select now provides.
48362
48363         * lib/sys_select.in.h: Install select wrapper.
48364         * lib/sys_socket.in.h: Use more descriptive name when there is no
48365         select wrapper.
48366         * lib/winsock-select.c: New.
48367         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
48368         Require gl_HEADER_SYS_SOCKET.
48369         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
48370         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
48371         * tests/test-sys_select.c: Add functional tests.
48372
48373 2008-09-24  Eric Blake  <ebb9@byu.net>
48374
48375         open, fopen: close fd leak in last patch
48376         * lib/open.c (rpl_open): Close fd before returning error.
48377         * lib/fopen.c (rpl_fopen): Close fd before returning error.
48378         * doc/posix-functions/open.texi (open): Document that Irix also
48379         has the bug.
48380         * doc/posix-functions/fopen.texi (fopen): Likewise.
48381         Reported by Paolo Bonzini.
48382
48383 2008-09-24  Bruno Haible  <bruno@clisp.org>
48384
48385         Ensure that a filename ending in a slash cannot be used to access a
48386         non-directory.
48387         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
48388         to check whether it's really a directory.
48389         * lib/fopen.c: Include fcntl.h, unistd.h.
48390         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
48391         and fdopen().
48392         * modules/fopen (Depends-on): Add unistd.
48393         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
48394         * tests/test-fopen.c (main): Likewise.
48395         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
48396         * doc/posix-functions/fopen.texi: Likewise.
48397         Reported by Eric Blake.
48398
48399 2008-09-23  Eric Blake  <ebb9@byu.net>
48400
48401         c-stack: avoid compiler optimizations when provoking overflow
48402         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
48403         recursion harder to optimize, to ensure a stack overflow occurs.
48404         * tests/test-c-stack.c (recurse): Likewise.
48405         Borrowed from libsigsegv.
48406
48407         c-stack: work around Irix sigaltstack bug
48408         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
48409         whether sigaltstack uses wrong end of stack_t (copied in part from
48410         libsigsegv).
48411         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
48412         Irix bug, without requiring an over-allocation.
48413         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
48414         bug.
48415
48416         fopen: document mingw bug on directories
48417         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
48418         not allowing a stream visiting a directory, even though reading
48419         from such a stream is not portable.
48420
48421 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48422
48423         * lib/poll.c: Rewrite.
48424         * modules/poll: Depend on alloca.
48425
48426 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48427
48428         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
48429         instead define prototypes for a full set of wrappers.  Ensure
48430         that Cygwin does not use the compatibility code, which is only
48431         for MinGW.
48432         * lib/winsock.c: New.
48433         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
48434         * modules/sys_socket: Add lib/winsock.c.
48435
48436         * modules/poll-tests: Add errno and perror.
48437         * tests/test-poll.c: Use ioctl, not ioctlsocket.
48438
48439 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48440
48441         * tests/test-poll.c: Downgrade minimum needed Winsock version.
48442
48443 2008-09-23  Bruno Haible  <bruno@clisp.org>
48444
48445         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
48446         * doc/glibc-functions/*: Likewise.
48447
48448 2008-09-23  Simon Josefsson  <simon@josefsson.org>
48449
48450         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
48451         success.
48452
48453 2008-09-22  Eric Blake  <ebb9@byu.net>
48454             Bruno Haible  <bruno@clisp.org>
48455
48456         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
48457         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
48458         supply %A but mishandle pseudo-NaN.
48459         Reported by Simon Josefsson.
48460
48461 2008-09-21  Bruno Haible  <bruno@clisp.org>
48462
48463         * tests/test-lock.c (main): Tweak skip message.
48464         * tests/test-tls.c (main): Likewise.
48465
48466 2008-09-21  Bruno Haible  <bruno@clisp.org>
48467
48468         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
48469         whether 'struct sigaction' has sa_sigaction here...
48470         (gl_PREREQ_SIG_HANDLER_H): ... not here.
48471         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
48472
48473 2008-09-21  Bruno Haible  <bruno@clisp.org>
48474
48475         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
48476         section.
48477         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
48478         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
48479         the new section.
48480         (Support for obsolete systems lacking POSIX:2001): New section.
48481         (String handling <string.h>): Move strdup to the new section.
48482         Suggested by Simon Josefsson and Paolo Bonzini.
48483
48484 2008-09-21  Bruno Haible  <bruno@clisp.org>
48485
48486         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
48487         exponents in %e and %g results on 'long double'. Needed for mingw's
48488         improved *printf functions.
48489         * tests/test-vasprintf-posix.c (test_function): Likewise.
48490         * tests/test-snprintf-posix.h (test_function): Likewise.
48491         * tests/test-sprintf-posix.h (test_function): Likewise.
48492         Reported by Eric Blake.
48493
48494 2008-09-21  Bruno Haible  <bruno@clisp.org>
48495
48496         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
48497         * tests/test-sprintf-posix.h (test_function): Likewise.
48498
48499 2008-09-21  Bruno Haible  <bruno@clisp.org>
48500
48501         * modules/getpass (Depends-on): Add strdup-posix.
48502
48503         New module 'strdup-posix'.
48504         * modules/strdup-posix: New file.
48505         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
48506         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
48507         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48508         REPLACE_STRDUP.
48509         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
48510         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
48511         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48512         strdup-posix.
48513
48514         * modules/strdup (Depends-on): Remove malloc-posix.
48515
48516 2008-09-20  Bruno Haible  <bruno@clisp.org>
48517
48518         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
48519         Wildenhues.
48520
48521 2008-09-20  Bruno Haible  <bruno@clisp.org>
48522
48523         Ensure that wint_t gets defined on IRIX 5.3.
48524         * lib/wchar.in.h (wint_t): Define if not defined by the system.
48525         * lib/wctype.in.h (wint_t): Likewise.
48526         (__wctype_wint_t): Remove type.
48527         (isw*): Use wint_t instead of __wctype_wint_t.
48528         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
48529         * modules/wchar (Files): Add m4/wint_t.m4.
48530         (Makefile.am): Substitute HAVE_WINT_T.
48531         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
48532         * tests/test-wctype.c: Check that wint_t is defined.
48533         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
48534         * doc/posix-headers/wctype.texi: Likewise.
48535         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48536
48537 2008-09-18  Bruno Haible  <bruno@clisp.org>
48538
48539         * gnulib-tool (func_exit): Update comment.
48540
48541 2008-09-18  Simon Josefsson  <simon@josefsson.org>
48542
48543         * modules/getaddrinfo (Depends-on): Remove strdup, this module
48544         assumes strdup exists and does not depend on strdup to return
48545         ENOMEM on out of memory conditions.
48546
48547 2008-09-18  Bruno Haible  <bruno@clisp.org>
48548
48549         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
48550         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
48551         digits for the exponent.
48552
48553 2008-09-18  Jim Meyering  <meyering@redhat.com>
48554             Bruno Haible  <bruno@clisp.org>
48555
48556         * lib/vasnprintf.c (decimal_point_char): Define also if
48557         NEED_PRINTF_INFINITE_LONG_DOUBLE.
48558
48559 2008-09-16  Bruno Haible  <bruno@clisp.org>
48560         and Eric Blake  <ebb9@byu.net>
48561
48562         vasnprintf: support Irix 5.3
48563         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
48564         that mishandle long double infinity.
48565         Reported by Tom G. Christensen.
48566
48567 2008-09-16  Bruno Haible  <bruno@clisp.org>
48568
48569         * doc/glibc-functions/scandir.texi: Mention the function is missing on
48570         Solaris 9.
48571         * doc/glibc-functions/alphasort.texi: Likewise.
48572         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
48573
48574 2008-09-16  Jim Meyering  <meyering@redhat.com>
48575
48576         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
48577         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
48578         a umask modification leak out of a subshell.  Otherwise, the
48579         opensolaris /bin/sh would be accepted and thus cause unwarranted
48580         failures in the coreutils test suite.
48581
48582 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
48583
48584         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
48585         to succeed.
48586
48587 2008-09-16  Jim Meyering  <meyering@redhat.com>
48588
48589         avoid spurious test failure when library is built without ACL support
48590         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
48591         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
48592         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
48593         * tests/test-copy-acl.sh: Likewise.
48594
48595 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48596
48597         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
48598         based on character occurrence counts.
48599
48600 2008-09-15  Eric Blake  <ebb9@byu.net>
48601
48602         tests: avoid some compiler warnings
48603         * tests/test-memchr.c (main): Pass NULL indirectly.
48604         * tests/test-closein.c (main): Avoid unused variable.
48605
48606 2008-09-15  Bruno Haible  <bruno@clisp.org>
48607
48608         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
48609         are missing on OpenBSD 4.0 individually.
48610         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48611
48612 2008-09-15  Bruno Haible  <bruno@clisp.org>
48613
48614         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
48615         * doc/posix-functions/strerror.texi: Mention also Cygwin.
48616         * doc/posix-functions/perror.texi: Likewise.
48617         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
48618         is missing.
48619         Reported by Eric Blake.
48620
48621         * lib/errno.in.h: Use replacement values >= 2000.
48622         Reported by Eric Blake.
48623
48624 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48625
48626         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
48627         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
48628         limit.
48629         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
48630         compareseq was aborted.
48631
48632 2008-09-14  Bruno Haible  <bruno@clisp.org>
48633
48634         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
48635         yvec_edit_count.
48636         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
48637         (fstrcmp_bounded): Simplify result computation accordingly.
48638
48639 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48640
48641         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
48642         (fstrcmp): Define in terms of fstrcmp_bounded.
48643         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
48644         lower_bound argument.
48645         Return quickly if the result is certainly < lower_bound.
48646         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
48647
48648 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48649
48650         * lib/diffseq.h (EARLY_ABORT): New macro.
48651         (compareseq): Change return type to bool. Return true when EARLY_ABORT
48652         evaluates to true.
48653
48654 2008-09-14  Bruno Haible  <bruno@clisp.org>
48655
48656         * modules/perror-tests: New file.
48657         * tests/test-perror.sh: New file.
48658         * tests/test-perror.c: New file.
48659
48660         New module 'perror'.
48661         * lib/stdio.in.h (perror): New declaration.
48662         * lib/perror.c: New file.
48663         * m4/perror.m4: New file.
48664         * modules/perror: New file.
48665         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
48666         * doc/posix-functions/perror.texi: Mention the perror module.
48667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
48668         REPLACE_PERROR.
48669         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
48670         REPLACE_PERROR.
48671
48672 2008-09-14  Bruno Haible  <bruno@clisp.org>
48673
48674         * modules/stdio (Makefile.am): Reorder to match the order in
48675         lib/stdio.in.h.
48676         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48677
48678 2008-09-13  Bruno Haible  <bruno@clisp.org>
48679
48680         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
48681
48682 2008-09-13  Bruno Haible  <bruno@clisp.org>
48683
48684         Extend strerror to cover the added errno values.
48685         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
48686         (rpl_strerror): Provide error messages for the added errno values and
48687         for the WSA* values.
48688         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
48689         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
48690         strerror.
48691         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
48692         * modules/strerror (Depends-on): Add errno.
48693         * doc/posix-functions/strerror.texi: Document the change.
48694         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
48695         and EOVERFLOW.
48696
48697 2008-09-13  Bruno Haible  <bruno@clisp.org>
48698
48699         * modules/EOVERFLOW: Remove file.
48700         * m4/eoverflow.m4: Remove file.
48701         * modules/EOVERFLOW-tests: Remove file.
48702         * tests/test-EOVERFLOW.c: Remove file.
48703         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
48704         * modules/ftell (Depends-on): Likewise.
48705         * modules/getdelim (Depends-on): Likewise.
48706         * modules/getugroups (Depends-on): Likewise.
48707         * modules/poll (Depends-on): Likewise.
48708         * modules/snprintf (Depends-on): Likewise.
48709         * modules/sprintf-posix (Depends-on): Likewise.
48710         * modules/vasnprintf (Depends-on): Likewise.
48711         * modules/vasprintf (Depends-on): Likewise.
48712         * modules/vfprintf-posix (Depends-on): Likewise.
48713         * modules/vsnprintf (Depends-on): Likewise.
48714         * modules/vsprintf-posix (Depends-on): Likewise.
48715         * modules/xvasprintf (Depends-on): Likewise.
48716         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48717         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
48718         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
48719         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
48720         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48721         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
48722         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
48723         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
48724         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48725         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
48726         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
48727         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
48728         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48729         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
48730         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
48731         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
48732         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48733         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
48734         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
48735         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
48736         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48737         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
48738         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
48739         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
48740         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
48741         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48742         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
48743         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
48744         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
48745         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
48746         * MODULES.html.sh: Remove EOVERFLOW.
48747         * NEWS: Mention the change.
48748
48749 2008-09-13  Bruno Haible  <bruno@clisp.org>
48750
48751         * modules/errno-tests: New file.
48752         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
48753
48754         * lib/errno.in.h: New file.
48755         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
48756         * modules/errno: New file.
48757         * doc/posix-headers/errno.texi: Update documentation.
48758         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
48759
48760 2008-09-13  Bruno Haible  <bruno@clisp.org>
48761
48762         * tests/test-poll.c: Use #if for native Windows, rather than testing
48763         __MSVCRT__.
48764
48765 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48766             Bruno Haible  <bruno@clisp.org>
48767
48768         * lib/glob.c: Don't include <pwd.h> on native Windows.
48769         (WINDOWS32): New macro.
48770         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
48771
48772 2008-09-13  Bruno Haible  <bruno@clisp.org>
48773
48774         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
48775         (ETIMEDOUT): Remove macro.
48776         (glthread_cond_timedwait_multithreaded): New declaration.
48777         (glthread_cond_timedwait): Use it.
48778         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
48779         (glthread_cond_timedwait_multithreaded): New function.
48780
48781 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48782
48783         * modules/poll-tests: Do not check for io.h.
48784         * tests/test-poll.c: Check for __MSVCRT__ instead.
48785
48786 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48787
48788         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
48789         * modules/poll-tests: Add inet_pton, stdbool, sockets.
48790         * tests/test-poll.c: Use them.  Use _pipe on Windows.
48791
48792 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48793
48794         * modules/poll-tests: New.
48795         * tests/test-poll.c: New.
48796
48797 2008-09-12  Eric Blake  <ebb9@byu.net>
48798
48799         frexp: test for NetBSD failure on -0.0
48800         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
48801         not all, bugs from NetBSD 3.0 have been fixed.
48802         * doc/posix-functions/frexp.texi (frexp): Document bug.
48803         Reported by Thomas Klausner.
48804
48805         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
48806         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
48807         literal -0.0.
48808         Reported by Jonathan C. Patschke <jp@centtech.com>.
48809
48810 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48811
48812         * lib/glthread/cond.h: Use dummy implementation also if
48813         USE_WIN32_THREADS.
48814
48815 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48816
48817         * modules/fnmatch-posix (License): Change to LGPLv2+.
48818         * modules/fnmatch-gnu (License): Likewise.
48819
48820 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48821
48822         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
48823
48824 2008-09-11  Jim Meyering  <meyering@redhat.com>
48825
48826         * users.txt: Add gtk-vnc.
48827
48828 2008-09-08  Simon Josefsson  <simon@josefsson.org>
48829
48830         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
48831         rotate amounts.
48832
48833         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
48834         required for 16-bit and 8-bit rotates.
48835         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
48836         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
48837         UINT8_MAX instead of hard-coded constants.
48838         Suggested by Paul Eggert.
48839
48840 2008-09-07  Bruno Haible  <bruno@clisp.org>
48841
48842         * tests/test-striconveh.c (main): Check behaviour when converting from
48843         UTF-7.
48844
48845         Make striconveh work better with stateful encodings.
48846         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
48847         that iconv does not increment the inptr when returning -1/EINVAL.
48848
48849 2008-09-07  Bruno Haible  <bruno@clisp.org>
48850
48851         * build-aux/config.rpath: Update according to libtool-2.2.6.
48852         * build-aux/config.libpath: Likewise.
48853
48854 2008-09-06  Bruno Haible  <bruno@clisp.org>
48855
48856         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
48857         * lib/freadptr.c (freadptr): Likewise.
48858         * lib/freadseek.c (freadptrinc): Likewise.
48859         Reported by Simon Josefsson.
48860
48861 2008-09-06  Bruno Haible  <bruno@clisp.org>
48862
48863         * modules/freadptr (License): Change to LGPLv2+.
48864         * modules/freadseek (License): Likewise.
48865         Suggested by Eric Blake.
48866
48867         * modules/memchr2 (License): Change to LGPLv2+.
48868         Approved by Eric Blake.
48869
48870 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48871             Bruno Haible  <bruno@clisp.org>
48872
48873         Make gnulib-tool work with native 'sed' on AIX.
48874         * gnulib-tool (sed_noop): New variable.
48875         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
48876         func_add_or_update, func_create_testdir): Use it to initialize sed
48877         script variables.
48878         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48879
48880 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
48881             Bruno Haible  <bruno@clisp.org>
48882
48883         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
48884         also works after #include directives.
48885
48886 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
48887
48888         getdate.y: reject an out-of-range timezone value
48889         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
48890         the range [-24...+24].  When specified with only one or two digits,
48891         * tests/test-getdate.c: Tests for the fix.
48892         * doc/getdate.texi: Document this change.
48893
48894 2008-09-03  Bruno Haible  <bruno@clisp.org>
48895
48896         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
48897
48898 2008-09-02  Simon Josefsson  <simon@josefsson.org>
48899
48900         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
48901         <bruce.korb@gmail.com> with ideas from Ben Pfaff
48902         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
48903         Blake <ebb9@byu.net>.
48904
48905         * tests/test-bitrotate.c: Add more test vectors.
48906
48907 2008-09-02  Eric Blake  <ebb9@byu.net>
48908
48909         vasnprintf-posix: handle large precision via %.*d
48910         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
48911         when handling it ourselves.
48912         * tests/test-vasnprintf-posix.c (test_function): Add test.
48913         * tests/test-snprintf-posix.h (test_function): Likewise.
48914         * tests/test-sprintf-posix.h (test_function): Likewise.
48915         * tests/test-vasprintf-posix.c (test_function): Likewise.
48916         Reported by Alain Guibert.
48917
48918 2008-09-01  Eric Blake  <ebb9@byu.net>
48919
48920         c-stack: make configure-time check more robust
48921         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
48922         successful sigaction call.
48923         Reported by Tom G. Christensen.
48924
48925 2008-09-01  Bruno Haible  <bruno@clisp.org>
48926
48927         New module 'findprog-lgpl'.
48928         * modules/findprog-lgpl: New file.
48929         * lib/findprog-lgpl.c: New file.
48930         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
48931         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
48932         to decide whether to use strdup or xstrdup, concatenated_filename or
48933         xconcatenated_filename.
48934
48935 2008-09-01  Bruno Haible  <bruno@clisp.org>
48936
48937         Split module 'concat-filename' into 'concat-filename' (LGPL) and
48938         'xconcat-filename' (GPL).
48939         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
48940         (License): Change to LGPLv2+.
48941         * modules/xconcat-filename: New file.
48942         * lib/concat-filename.h (concatenated_filename): Change specification.
48943         (xconcatenated_filename): New declaration.
48944         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
48945         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
48946         memory situations.
48947         * lib/xconcat-filename.c: New file.
48948         * NEWS: Mention the change.
48949         * lib/findprog.c: Include concat-filename.h, not filename.h.
48950         (find_in_path): Use xconcatenated_filename instead of
48951         concatenated_filename.
48952         * lib/javacomp.c: Include concat-filename.h, not filename.h.
48953         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48954         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48955         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48956         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
48957         instead of concatenated_filename.
48958         * lib/javaexec.c: Include concat-filename.h, not filename.h.
48959         (execute_java_class): Use xconcatenated_filename instead of
48960         concatenated_filename.
48961         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
48962         * modules/javacomp (Depends-on): Likewise.
48963         * modules/javaexec (Depends-on): Likewise.
48964
48965 2008-09-01  Bruno Haible  <bruno@clisp.org>
48966
48967         Split module 'filename' into 'filename' and 'concat-filename'.
48968         * modules/filename: Keep only lib/filename.h.
48969         (License): Change to LGPLv2+.
48970         * modules/concat-filename: New file, extracted from modules/filename.
48971         * lib/filename.h (concatenated_filename): Remove declaration.
48972         * lib/concat-filename.h: New file, extracted from lib/filename.h.
48973         * lib/concat-filename.c: Include concat-filename.h.
48974         * NEWS: Mention the change.
48975
48976 2008-09-01  Simon Josefsson  <simon@josefsson.org>
48977
48978         * lib/bitrotate.h (rotl8, rotr8): Add.
48979
48980         * modules/bitrotate (configure.ac): Need
48981         AC_REQUIRE([AC_C_INLINE]).
48982         (Description): Mention stdint.h.  Reported by Bruno Haible
48983         <bruno@clisp.org>.
48984
48985         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
48986         Paolo Bonzini <bonzini@gnu.org>.
48987
48988 2008-08-31  Bruno Haible  <bruno@clisp.org>
48989
48990         Assume Solaris specific bi-arch conventions on Solaris systems.
48991         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
48992         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
48993         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
48994         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
48995         like acl_libdirstem.
48996         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
48997         acl_libdirstem.
48998         * NEWS: Mention the change.
48999         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
49000
49001 2008-08-31  Jim Meyering  <meyering@redhat.com>
49002
49003         * lib/strftime.h: Add comments describing the two added arguments.
49004
49005         remove duplicate #include directives
49006         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
49007         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
49008
49009 2008-08-31  Bruno Haible  <bruno@clisp.org>
49010
49011         New module 'sigpipe-die'.
49012         * modules/sigpipe-die: New file.
49013         * lib/sigpipe-die.h: New file.
49014         * lib/sigpipe-die.c: New file.
49015         * MODULES.html.sh (Signal handling): Add sigpipe-die.
49016
49017 2008-08-31  Bruno Haible  <bruno@clisp.org>
49018
49019         Don't override previously installed signal handlers.
49020         * lib/fatal-signal.c (saved_sigactions): New variable.
49021         (uninstall_handlers): Reset the signal to the saved handler, not
49022         to SIG_DFL (except when ignored).
49023         (install_handlers): Save the previous handlers.
49024
49025 2008-08-30  Bruno Haible  <bruno@clisp.org>
49026
49027         * gnulib-tool (func_reset_sigpipe): New function.
49028         (func_get_automake_snippet, func_modules_transitive_closure,
49029         func_import): Invoke it before a join command that reads from stdin,
49030         to avoid "echo: write error: Broken pipe" error messages on stderr.
49031         Reported by Sam Steingold <sds@gnu.org>.
49032
49033 2008-08-30  Bruno Haible  <bruno@clisp.org>
49034
49035         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
49036         Code copied from m4/open.m4.
49037         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
49038         access and the filename ends in a slash. Code copied from lib/open.c.
49039         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
49040         * tests/test-fopen.c (main): Check against bug with trailing slash.
49041
49042 2008-08-29  Bruno Haible  <bruno@clisp.org>
49043
49044         Avoid some "gcc -pedantic" warnings.
49045         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
49046         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
49047         * lib/dirent.in.h: Likewise.
49048         * lib/fcntl.in.h: Likewise.
49049         * lib/float.in.h: Likewise.
49050         * lib/iconv.in.h: Likewise.
49051         * lib/inttypes.in.h: Likewise.
49052         * lib/locale.in.h: Likewise.
49053         * lib/math.in.h: Likewise.
49054         * lib/netinet_in.in.h: Likewise.
49055         * lib/search.in.h: Likewise.
49056         * lib/signal.in.h: Likewise.
49057         * lib/stdarg.in.h: Likewise.
49058         * lib/stdint.in.h: Likewise.
49059         * lib/stdio.in.h: Likewise.
49060         * lib/stdlib.in.h: Likewise.
49061         * lib/string.in.h: Likewise.
49062         * lib/strings.in.h: Likewise.
49063         * lib/sys_select.in.h: Likewise.
49064         * lib/sys_socket.in.h: Likewise.
49065         * lib/sys_stat.in.h: Likewise.
49066         * lib/sys_time.in.h: Likewise.
49067         * lib/sysexits.in.h: Likewise.
49068         * lib/time.in.h: Likewise.
49069         * lib/unistd.in.h: Likewise.
49070         * lib/wchar.in.h: Likewise.
49071         * lib/wctype.in.h: Likewise.
49072         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
49073         * modules/fchdir (Makefile.am): Likewise.
49074         * modules/fcntl (Makefile.am): Likewise.
49075         * modules/float (Makefile.am): Likewise.
49076         * modules/iconv_open (Makefile.am): Likewise.
49077         * modules/inttypes (Makefile.am): Likewise.
49078         * modules/locale (Makefile.am): Likewise.
49079         * modules/math (Makefile.am): Likewise.
49080         * modules/netinet_in (Makefile.am): Likewise.
49081         * modules/search (Makefile.am): Likewise.
49082         * modules/signal (Makefile.am): Likewise.
49083         * modules/stdarg (Makefile.am): Likewise.
49084         * modules/stdint (Makefile.am): Likewise.
49085         * modules/stdio (Makefile.am): Likewise.
49086         * modules/stdlib (Makefile.am): Likewise.
49087         * modules/string (Makefile.am): Likewise.
49088         * modules/strings (Makefile.am): Likewise.
49089         * modules/sys_select (Makefile.am): Likewise.
49090         * modules/sys_socket (Makefile.am): Likewise.
49091         * modules/sys_stat (Makefile.am): Likewise.
49092         * modules/sys_time (Makefile.am): Likewise.
49093         * modules/sysexits (Makefile.am): Likewise.
49094         * modules/time (Makefile.am): Likewise.
49095         * modules/unistd (Makefile.am): Likewise.
49096         * modules/wchar (Makefile.am): Likewise.
49097         * modules/wctype (Makefile.am): Likewise.
49098         Reported by Reuben Thomas <rrt@sc3d.org>.
49099
49100 2008-08-29  Bruno Haible  <bruno@clisp.org>
49101
49102         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
49103         any more.
49104
49105 2008-08-29  Simon Josefsson  <simon@josefsson.org>
49106
49107         * MODULES.html.sh (Misc): Add bitrotate.
49108
49109         * modules/bitrotate: New file.
49110
49111         * lib/bitrotate.h: New file.
49112
49113         * modules/bitrotate-tests: New file.
49114
49115         * tests/test-bitrotate.c: New file.
49116
49117         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
49118         on the bitrotate module.
49119
49120         * lib/arctwo.c: Use new bitrotate module.
49121
49122 2008-08-29  Jim Meyering  <meyering@redhat.com>
49123
49124         bootstrap: merge changes from coreutils
49125         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
49126         of copied files.  Remove a kludge, now that this is fixed.
49127         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
49128         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
49129         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
49130
49131 2008-08-29  Bruno Haible  <bruno@clisp.org>
49132
49133         * MODULES.html.sh: Remove --cvs-urls option.
49134
49135 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
49136
49137         maint.mk: adjust to file name change
49138         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
49139
49140 2008-08-28  Jim Meyering  <meyering@redhat.com>
49141
49142         * modules/getndelim2 (License): Relicense to LGPLv2+.
49143         Approved by Richard Stallman for the version of 1995, and by
49144         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
49145
49146 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
49147
49148         * lib/getdelim.c (flockfile, funlockfile): Make all of them
49149         dummy if one is not available.  Do not touch them if
49150         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
49151         (getc_maybe_unlocked): New.
49152         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
49153
49154 2008-08-26  Eric Blake  <ebb9@byu.net>
49155
49156         doc/INSTALL: resync from autoconf
49157         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
49158         (INSTALL_PRELUDE): Delete; this is done more efficiently by
49159         moving...
49160         * install.texi [!autoconf]: ...here.  Resync from autoconf.
49161         * INSTALL: Regenerate.
49162         * INSTALL.ISO: New file.
49163         * INSTALL.UTF-8: Likewise.
49164
49165 2008-08-26  Jim Meyering  <meyering@redhat.com>
49166
49167         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
49168         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
49169         these definitions conditional, so that they may be overridden, too.
49170
49171 2008-08-26  Bruno Haible  <bruno@clisp.org>
49172
49173         Generate INSTALL file variants with prettier quotes.
49174         * doc/Makefile (INSTALL_PRELUDE): New macro.
49175         (INSTALL): Use it.
49176         (INSTALL.ISO, INSTALL.UTF-8): New rules.
49177
49178 2008-08-26  Bruno Haible  <bruno@clisp.org>
49179
49180         Run makeinfo in an English locale.
49181         * doc/Makefile (MAKEINFO): New variable.
49182
49183 2008-08-26  Bruno Haible  <bruno@clisp.org>
49184
49185         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
49186         Suggested by Eric Blake.
49187
49188 2008-08-25  Bruno Haible  <bruno@clisp.org>
49189
49190         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
49191
49192 2008-08-25  Eric Blake  <ebb9@byu.net>
49193
49194         c-stack: test that stack overflow can be caught
49195         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
49196         that platform allows handling stack overflow; at least OS/2 EMX
49197         has sigaltstack, but crashes before transferring control to
49198         handler on stack overflow.
49199         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
49200         check for HAVE_STACK_OVERFLOW_HANDLING.
49201         Reported by Elbert Pol.
49202
49203 2008-08-25  Bruno Haible  <bruno@clisp.org>
49204
49205         * doc/posix-functions/strftime.texi: Fix description of strftime
49206         module.
49207
49208 2008-08-24  Bruno Haible  <bruno@clisp.org>
49209
49210         * tests/uniwidth/test-uc_width2.c: New file.
49211         * tests/uniwidth/test-uc_width2.sh: New file.
49212         * modules/uniwidth/width-tests (Files): Add the new files.
49213         (TESTS): Add uniwidth/test-uc_width2.sh.
49214         (TESTS_ENVIRONMENT): New variable.
49215         (check_PROGRAMS): Add test-uc_width2.
49216         (test_uc_width2_SOURCES): New variable.
49217
49218         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
49219         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
49220         not 0x00AB.
49221         Reported by Alexander V. Lukyanov <lav@netis.ru>.
49222
49223 2008-08-22  Eric Blake  <ebb9@byu.net>
49224
49225         test-lock, test-tls: mention why a test is skipped
49226         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
49227         skipped.
49228         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
49229
49230         count-one-bits: relax license
49231         * modules/count-one-bits (License): Relicense to LGPLv2+.
49232         Suggested by Ludovic Courtès, approved by Ben Pfaff.
49233
49234 2008-08-22  Andreas Schwab  <schwab@suse.de>
49235
49236         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
49237         Remove spurious space in assignment.
49238
49239 2008-08-21  Simon Josefsson  <simon@josefsson.org>
49240
49241         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
49242         Paul Eggert <eggert@CS.UCLA.EDU>.
49243
49244 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
49245
49246         * modules/gettext: Add m4/threadlib.m4.
49247
49248 2008-08-19  Eric Blake  <ebb9@byu.net>
49249
49250         test-c-stack: fix compilation failure on FreeBSD 5.0
49251         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
49252         headers before <sys/resource.h>.
49253         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
49254         the bug.
49255         Reported by Nelson H. F. Beebe.
49256
49257         strverscmp: migrate from "strverscmp.h" to <string.h>
49258         * modules/string (Makefile.am): Add new hooks.
49259         * modules/strverscmp (Files): Remove strverscmp.h.
49260         (Depends-on): Add string.
49261         (configure.ac): Add indicator.
49262         (Include): Mention new header.
49263         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
49264         defaults.
49265         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
49266         results.
49267         * lib/strverscmp.h: Delete.
49268         * lib/string.in.h (strverscmp): Provide declaration, when needed.
49269         * tests/test-strverscmp.c (includes): Adjust client.
49270         * lib/check-version.c (includes): Likewise.
49271         * NEWS: Document the change.
49272
49273         strverscmp: add unit test
49274         * modules/strverscmp-tests: New file.
49275         * tests/test-strverscmp.c: Likewise.
49276
49277 2008-08-19  Simon Josefsson  <simon@josefsson.org>
49278
49279         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
49280         regarding Windows crypto stuff, from Mono.
49281
49282 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
49283
49284         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
49285         if present, for intel RND.  Return error on failures.
49286
49287 2008-08-18  Ben Pfaff  <blp@gnu.org>
49288
49289         gitlog-to-changelog: give better diagnostic for failed pipe-open
49290         * build-aux/gitlog-to-changelog: Improve error message: suggest
49291         that the version of Git may be too old.
49292
49293 2008-08-18  Simon Josefsson  <simon@josefsson.org>
49294
49295         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
49296         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
49297
49298 2008-08-18  Bruno Haible  <bruno@clisp.org>
49299
49300         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
49301         pthread_in_use().
49302
49303 2008-08-18  Bruno Haible  <bruno@clisp.org>
49304
49305         * lib/glthread/threadlib.c: Include <pthread.h>.
49306
49307 2008-08-18  Bruno Haible  <bruno@clisp.org>
49308
49309         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
49310         glthread_recursive_lock_* macros.
49311         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
49312         Fix syntax error.
49313
49314 2008-08-18  Bruno Haible  <bruno@clisp.org>
49315
49316         * lib/glthread/thread.c: Avoid forcing a context switch right after
49317         thread creation.
49318
49319 2008-08-17  Bruno Haible  <bruno@clisp.org>
49320
49321         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
49322         * lib/glthread/thread.h: Provide Win32 specific implementation.
49323         * modules/thread (Files): Add lib/glthread/thread.c.
49324         (Depends-on): Add lock.
49325         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
49326
49327 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49328
49329         New module 'yield'.
49330         * modules/yield: New file.
49331         * lib/glthread/yield.h: New file.
49332         * m4/yield.m4: New file.
49333         * MODULES.html.sh (Multithreading): Add yield.
49334
49335 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49336
49337         New module 'thread'.
49338         * modules/thread: New file.
49339         * lib/glthread/thread.h: New file.
49340         * m4/thread.m4: New file.
49341         * MODULES.html.sh (Multithreading): Add thread.
49342
49343 2008-08-17  Bruno Haible  <bruno@clisp.org>
49344
49345         * lib/glthread/lock.h: Include <stdlib.h> always.
49346         * lib/glthread/tls.h: Likewise.
49347         * lib/glthread/cond.h: Likewise.
49348
49349 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49350
49351         New module 'cond'.
49352         * modules/cond: New file.
49353         * lib/glthread/cond.h: New file.
49354         * lib/glthread/cond.c: New file.
49355         * m4/cond.m4: New file.
49356         * MODULES.html.sh (Multithreading): Add cond.
49357
49358 2008-08-16  Eric Blake  <ebb9@byu.net>
49359
49360         c-stack: fix regression on Irix 5.3 from 2008-06-21
49361         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
49362         sa_sigaction...
49363         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
49364         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
49365         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
49366         * modules/signal (Makefile.am): Use the value.
49367         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
49368         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
49369         * doc/posix-headers/signal.texi (signal.h): Document this
49370         portability issue.
49371         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
49372         Reported by Tom G. Christensen.
49373
49374 2008-08-17  Bruno Haible  <bruno@clisp.org>
49375
49376         New module 'threadlib'.
49377         * modules/threadlib: New file.
49378         * lib/glthread/threadlib.c: New file, extracted from
49379         lib/glthread/lock.c.
49380         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
49381         functions.
49382         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
49383         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
49384         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
49385         macros.
49386         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
49387         (gl_DISABLE_THREADS): Remove macro.
49388         * modules/lock (Files): Remove build-aux/config.rpath.
49389         (Depends-on): Remove havelib. Add threadlib.
49390         (configure.ac-early): Remove section.
49391         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
49392         * modules/tls (Depends-on): Remove lock. Add threadlib.
49393         (Link): New section, copied from threadlib.
49394         * MODULES.html.sh (Multithreading): Add threadlib.
49395
49396 2008-08-14  Bruno Haible  <bruno@clisp.org>
49397
49398         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
49399         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
49400         glthread_rwlock_unlock, glthread_rwlock_destroy,
49401         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
49402         glthread_recursive_lock_destroy): Define as macros always.
49403         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
49404         glthread_lock_lock.
49405         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
49406         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
49407         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
49408         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
49409         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
49410         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
49411         (glthread_recursive_lock_lock_func): Renamed from
49412         glthread_recursive_lock_lock.
49413         (glthread_recursive_lock_unlock_func): Renamed from
49414         glthread_recursive_lock_unlock.
49415         (glthread_recursive_lock_destroy_func): Renamed from
49416         glthread_recursive_lock_destroy.
49417
49418 2008-08-14  Bruno Haible  <bruno@clisp.org>
49419
49420         * lib/glthread/lock.h: Renamed from lib/lock.h.
49421         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
49422         * lib/glthread/tls.h: Renamed from lib/tls.h.
49423         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
49424         * lib/fstrcmp.c: Update includes.
49425         * lib/strsignal.c: Update includes.
49426         * modules/lock (Files, Makefile.am): Update.
49427         (Include): Change to "glthread/lock.h".
49428         * modules/tls (Files, Makefile.am): Update.
49429         (Include): Change to "glthread/tls.h".
49430         * tests/test-lock.c: Update includes.
49431         * tests/test-tls.c: Update includes.
49432         * NEWS: Mention the renamed header files.
49433
49434 2008-08-11  Jim Meyering  <meyering@redhat.com>
49435
49436         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
49437
49438 2008-08-11  Eric Blake  <ebb9@byu.net>
49439
49440         test-c-stack: avoid C99-ism
49441         * tests/test-c-stack.c (main): Fix whitespace, move declaration
49442         before statement.
49443         Reported by Alain Guibert.
49444
49445 2008-08-10  Jim Meyering  <meyering@redhat.com>
49446
49447         ensure that return value of uinttostr et al are not ignored
49448         * lib/inttostr.h (__GNUC_PREREQ): Define.
49449         (__attribute_warn_unused_result__): Define.
49450         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
49451
49452 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
49453
49454         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
49455         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
49456
49457 2008-08-07  Jim Meyering  <meyering@redhat.com>
49458
49459         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
49460
49461         * modules/mkstemp (License): Relicense under LGPLv2+.
49462         * modules/tempname (License): Likewise.
49463
49464 2008-08-06  Bruno Haible  <bruno@clisp.org>
49465
49466         * lib/poll.c (poll): Further micro-optimization.
49467
49468 2008-08-06  Jim Meyering  <meyering@redhat.com>
49469
49470         inet_pton.c: use locale-independent tolower
49471         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
49472         (inet_pton6): Use c_tolower rather than tolower.
49473         * modules/inet_pton (Depends-on): Add c-ctype.
49474
49475 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
49476
49477         * lib/poll.c (poll): Avoid division when timeout is 0, cache
49478         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
49479
49480 2008-08-06  Jim Meyering  <meyering@redhat.com>
49481
49482         * modules/inet_pton (License): Relicense under LGPLv2+.
49483
49484 2008-08-03  Bruno Haible  <bruno@clisp.org>
49485
49486         Additional non-aborting API for lock and tls.
49487         * lib/lock.h: Include <errno.h>.
49488         (glthread_lock_init): New macro/function.
49489         (gl_lock_init): Define as wrapper around glthread_lock_init.
49490         (glthread_lock_lock): New macro/function.
49491         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
49492         (glthread_lock_unlock): New macro/function.
49493         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
49494         (glthread_lock_destroy): New macro/function.
49495         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
49496         (glthread_rwlock_init): New macro/function.
49497         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
49498         (glthread_rwlock_rdlock): New macro/function.
49499         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
49500         (glthread_rwlock_wrlock): New macro/function.
49501         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
49502         (glthread_rwlock_unlock): New macro/function.
49503         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
49504         (glthread_rwlock_destroy): New macro/function.
49505         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
49506         (glthread_recursive_lock_init): New macro/function.
49507         (gl_recursive_lock_init): Define as wrapper around
49508         glthread_recursive_lock_init.
49509         (glthread_recursive_lock_lock): New macro/function.
49510         (gl_recursive_lock_lock): Define as wrapper around
49511         glthread_recursive_lock_lock.
49512         (glthread_recursive_lock_unlock): New macro/function.
49513         (gl_recursive_lock_unlock): Define as wrapper around
49514         glthread_recursive_lock_unlock.
49515         (glthread_recursive_lock_destroy): New macro/function.
49516         (gl_recursive_lock_destroy): Define as wrapper around
49517         glthread_recursive_lock_destroy.
49518         (glthread_once): New macro/function.
49519         (gl_once): Define as wrapper around glthread_once.
49520         Update function declarations.
49521         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
49522         glthread_rwlock_init. Return error code.
49523         (glthread_rwlock_rdlock_multithreaded): Renamed from
49524         glthread_rwlock_rdlock. Return error code.
49525         (glthread_rwlock_wrlock_multithreaded): Renamed from
49526         glthread_rwlock_wrlock. Return error code.
49527         (glthread_rwlock_unlock_multithreaded): Renamed from
49528         glthread_rwlock_unlock. Return error code.
49529         (glthread_rwlock_destroy_multithreaded): Renamed from
49530         glthread_rwlock_destroy. Return error code.
49531         (glthread_recursive_lock_init_multithreaded): Renamed from
49532         glthread_recursive_lock_init. Return error code.
49533         (glthread_recursive_lock_lock_multithreaded): Renamed from
49534         glthread_recursive_lock_lock. Return error code.
49535         (glthread_recursive_lock_unlock_multithreaded): Renamed from
49536         glthread_recursive_lock_unlock. Return error code.
49537         (glthread_recursive_lock_destroy_multithreaded): Renamed from
49538         glthread_recursive_lock_destroy. Return error code.
49539         (glthread_once_call): Make static.
49540         (glthread_once_multithreaded): Renamed from glthread_once.
49541         * lib/tls.h: Include <errno.h>.
49542         (glthread_tls_key_init): New macro/function.
49543         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
49544         (glthread_tls_set): New macro/function.
49545         (gl_tls_set): Define as wrapper around glthread_tls_set.
49546         (glthread_tls_key_destroy): New macro/function.
49547         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
49548         Update function declarations.
49549         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
49550         glthread_tls_get.
49551         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49552
49553 2008-08-04  Eric Blake  <ebb9@byu.net>
49554
49555         gnumakefile: use space, not TAB, outside of targets
49556         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
49557
49558 2008-08-02  Jim Meyering  <meyering@redhat.com>
49559
49560         getdate.y: avoid locale-dependent date parsing failure
49561         In Turkish locales, getdate would fail to recognize keywords
49562         containing a lowercase "i".  The solution is not to rely on
49563         locale-sensitive case-conversion.
49564         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
49565         (lookup_word): Use c_toupper in place of toupper.
49566         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
49567         Reported by Vefa Bicakci <bicave@superonline.com> in
49568         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
49569         * modules/getdate (Depends-on): Add c-ctype.
49570
49571 2008-08-02  Bruno Haible  <bruno@clisp.org>
49572
49573         * gnulib-tool (func_import): When updating or creating a .gitignore
49574         file, prepend each added line with a slash, and ignore leading slashes
49575         from the existing lines.
49576         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49577
49578 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49579
49580         Portability fix for GNU make 3.79.1.
49581         * top/GNUmakefile: Avoid 'else COND', which older GNU make
49582         versions do not understand.
49583
49584 2008-08-01  Bruno Haible  <bruno@clisp.org>
49585
49586         Work around bug of HP-UX 10.20 cc with -0.0 literal.
49587         * tests/test-isnanf.h (zero): New variable.
49588         (main): Avoid literal -0.0f.
49589         * tests/test-isnand.h (zero): New variable.
49590         (main): Avoid literal -0.0.
49591         * tests/test-isnanl.h (zero): New variable.
49592         (main): Avoid literal -0.0L.
49593         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
49594         (test_float, test_double, test_long_double): Avoid literals -0.0f,
49595         -0.0, -0.0L.
49596         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
49597         (test_signbitd): Avoid literal -0.0.
49598         (test_signbitl): Avoid literal -0.0L.
49599         * tests/test-ceilf1.c (zero): New variable.
49600         (main): Avoid literal -0.0f.
49601         * tests/test-ceill.c (zero): New variable.
49602         (main): Avoid literal -0.0L.
49603         * tests/test-floorf1.c (zero): New variable.
49604         (main): Avoid literal -0.0f.
49605         * tests/test-floorl.c (zero): New variable.
49606         (main): Avoid literal -0.0L.
49607         * tests/test-roundf1.c (zero): New variable.
49608         (main): Avoid literal -0.0f.
49609         * tests/test-round1.c (zero): New variable.
49610         (main): Avoid literal -0.0.
49611         * tests/test-roundl.c (zero): New variable.
49612         (main): Avoid literal -0.0L.
49613         * tests/test-truncf1.c (zero): New variable.
49614         (main): Avoid literal -0.0f.
49615         * tests/test-trunc1.c (zero): New variable.
49616         (main): Avoid literal -0.0.
49617         * tests/test-truncl.c (zero): New variable.
49618         (main): Avoid literal -0.0L.
49619         * tests/test-frexp.c (zero): New variable.
49620         (main): Avoid literal -0.0.
49621         * tests/test-frexpl.c (zero): New variable.
49622         (main): Avoid literal -0.0L.
49623         * tests/test-ldexpl.c (zero): New variable.
49624         (main): Avoid literal -0.0L.
49625         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49626         (zerod, zerol): New variables.
49627         (test_function): Avoid literals -0.0, -0.0L.
49628         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49629         (zerod, zerol): New variables.
49630         (test_function): Avoid literals -0.0, -0.0L.
49631         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49632         (zerod, zerol): New variables.
49633         (test_function): Avoid literals -0.0, -0.0L.
49634         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49635         (zerod, zerol): New variables.
49636         (test_function): Avoid literals -0.0, -0.0L.
49637         * tests/test-strtod.c (zero): New variable.
49638         (main): Avoid literal -0.0.
49639         Reported by Jonathan C. Patschke <jp@centtech.com>.
49640
49641 2008-07-31  Jim Meyering  <meyering@redhat.com>
49642
49643         sha256.h: correct definition of SHA224_DIGEST_SIZE
49644         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
49645         Reported by Paulie Pena IV <paulie4@gmail.com>.
49646         Define as 224 / 8, rather than as a literal.
49647         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
49648         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
49649         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
49650
49651 2008-07-31  Bruno Haible  <bruno@clisp.org>
49652
49653         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
49654         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
49655         Reported by Jonathan Patschke <jp@centtech.com>.
49656
49657 2008-07-31  Bruno Haible  <bruno@clisp.org>
49658
49659         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
49660         Reported by Paolo Bonzini <bonzini@gnu.org>.
49661
49662 2008-07-30  Eric Blake  <ebb9@byu.net>
49663
49664         test-strtod: allow compilation without -lm
49665         * tests/test-strtod.c (main): Avoid link dependence on fabs.
49666         Reported by Dennis Clarke <blastwave@gmail.com>.
49667
49668 2008-07-28  Jim Meyering  <meyering@redhat.com>
49669
49670         bootstrap: work also when there are no .po files in po/
49671         * build-aux/bootstrap (update_po_files): Complete the change
49672         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
49673
49674 2008-07-27  Jim Meyering  <meyering@redhat.com>
49675
49676         * users.txt: Add zile.
49677
49678 2008-07-26  Ben Pfaff  <blp@gnu.org>
49679
49680         Add missing dependencies on new m4/exponent[fdl].m4 files.
49681         * modules/isnanf-nolibm: Add m4/exponentf.m4.
49682         * modules/isnand-nolibm: Add m4/exponentd.m4.
49683         * modules/isnanl-nolibm: Add m4/exponentl.m4.
49684         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
49685         m4/isnan[fdl].m4, because the macros actually used moved.
49686         Reported by Jim Meyering.
49687
49688 2008-07-14  Ben Pfaff  <blp@gnu.org>
49689
49690         Add isinf module.
49691         * lib/isinf.c: New file.
49692         * lib/math.in.h: Define isinf macro if we have decided to replace
49693         it.
49694         * m4/isinf.m4: New file.
49695         * m4/math_h.m4: Initialize and substitute variables for isinf
49696         module.
49697         * modules/isinf: New file.
49698         * modules/isinf-tests: New file.
49699         * modules/math: Add substitutions for new module.
49700         * tests/test-isinf.c: New file.
49701         * doc/posix-functions/isinf.texi: Mention new module.
49702         * MODULES.html.sh: Mention new module.
49703
49704 2008-07-14  Ben Pfaff  <blp@gnu.org>
49705
49706         Factor out some macros for use by additional modules.
49707         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
49708         exponentf.m4.
49709         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
49710         exponentd.m4.
49711         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
49712         file exponentl.m4.
49713         * m4/exponentf.m4: New file.
49714         * m4/exponentd.m4: New file.
49715         * m4/exponentl.m4: New file.
49716         * modules/isnanf: Use new file m4/exponentf.m4.
49717         * modules/isnand: Use new file m4/exponentd.m4.
49718         * modules/isnanl: Use new file m4/exponentl.m4.
49719
49720 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
49721
49722         mktime.c: normalize tp->tm_isdst value to -1/0/1.
49723         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
49724         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
49725         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
49726
49727         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
49728         readlink on platforms without PATH_MAX.
49729
49730 2008-07-21  Eric Blake  <ebb9@byu.net>
49731
49732         Warn, not fail, on stale version.
49733         * top/GNUmakefile (_curr-ver): Tone down previous patch.
49734
49735         Don't allow installation with stale devel version number.
49736         * top/GNUmakefile (_is-install-target): New macro.
49737         (_curr-ver): Forbid installation with stale version number.
49738
49739 2008-07-20  Bruno Haible  <bruno@clisp.org>
49740
49741         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
49742         TESTS_ENVIRONMENT.
49743         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
49744
49745 2008-07-20  Bruno Haible  <bruno@clisp.org>
49746
49747         * lib/c-stack.h (c_stack_action): Add documentation.
49748         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
49749
49750 2008-07-20  Bruno Haible  <bruno@clisp.org>
49751
49752         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
49753         * modules/readlink (License): Likewise.
49754
49755 2008-07-17  Eric Blake  <ebb9@byu.net>
49756
49757         * modules/c-stack (Link): Fix typo.
49758
49759         Make c-stack use libsigsegv, when available.
49760         * modules/c-stack (Depends-on): Add libsigsegv.
49761         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
49762         needed.
49763         * lib/c-stack.c (SIGSTKSZ): Define fallback.
49764         (segv_handler, overflow_handler, c_stack_action)
49765         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
49766         implementation when libsigsegv is available, but only when using
49767         the library is necessary.
49768         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
49769         comment, explaining why XSI check fails on Linux.
49770         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
49771         * tests/test-c-stack2.sh: Tweak skip message.
49772         * NEWS: Document new link-time requirements.
49773
49774 2008-07-16  Eric Blake  <ebb9@byu.net>
49775
49776         c-stack: Expose false positives when not using libsigsegv.
49777         * modules/c-stack-tests (Files): Expand test.
49778         * tests/test-c-stack.c (main): Add means to conditionally trigger
49779         non-overflow SIGSEGV.
49780         * tests/test-c-stack2.sh: New file.
49781
49782 2008-07-14  Bruno Haible  <bruno@clisp.org>
49783
49784         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
49785         Reported by Eric Blake.
49786
49787 2008-07-14  Sam Steingold  <sds@gnu.org>
49788             Bruno Haible  <bruno@clisp.org>
49789
49790         New module libsigsegv.
49791         * modules/libsigsegv: New file.
49792         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
49793         modifications.
49794         * MODULES.html.sh (Signal handling): New section.
49795
49796 2008-07-14  Bruno Haible  <bruno@clisp.org>
49797
49798         * modules/unictype/ctype-* (Description): Add the word "function".
49799         Improves the resulting doc in MODULES.html.
49800
49801 2008-07-12  Ben Pfaff  <blp@gnu.org>
49802
49803         Add longlong module.
49804         * modules/longlong: New file.
49805
49806 2008-07-12  Bruno Haible  <bruno@clisp.org>
49807
49808         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
49809         to empty.
49810
49811 2008-07-10  Ben Pfaff  <blp@gnu.org>
49812
49813         Add isnan module.
49814         * doc/posix-functions/isnan.texi: Mention new module.
49815         * lib/math.in.h: Define isnan macro if we have decided to replace
49816         it.
49817         * m4/isnan.m4: New file.
49818         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
49819         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
49820         also.
49821         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
49822         redundancy.
49823         * m4/math_h.m4: Initialize and substitute variables for isnan
49824         module.
49825         * modules/isnan: New file.
49826         * modules/isnan-tests: New file.
49827         * modules/math: Add substitutions for new module.
49828         * tests/test-isnan.c: New file.
49829         * MODULES.html.sh: Mention new module.
49830
49831 2008-07-10  Ben Pfaff  <blp@gnu.org>
49832
49833         Add isnanf module.
49834         * lib/isnanf.m4: New file.
49835         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
49836         (gl_HAVE_ISNANF_IN_LIBM): New macro.
49837         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
49838         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
49839         * modules/isnanf: New file.
49840         * modules/isnanf-tests: New file.
49841         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
49842         files.
49843         * tests/test-isnanf-nolibm.c: factored most of its contents into
49844         new file tests/test-isnanf.h.
49845         * tests/test-isnanf.h: New file.
49846         * tests/test-isnanf.c: New file.
49847         * MODULES.html.sh: Mention new module.
49848         * doc/glibc-functions/isnanf.texi: Mention new module.
49849
49850 2008-07-10  Ben Pfaff  <blp@gnu.org>
49851
49852         Add isnand module.
49853         * lib/isnand.h: New file.
49854         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
49855         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
49856         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
49857         functionality also.
49858         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
49859         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
49860         (gl_HAVE_ISNAND_IN_LIBM): New macro.
49861         * modules/isnand: New file.
49862         * modules/isnand-tests: New file.
49863         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
49864         files.
49865         * tests/test-isnand-nolibm.c: factored most of its contents into
49866         new file tests/test-isnand.h.
49867         * tests/test-isnand.h: New file.
49868         * tests/test-isnand.c: New file.
49869         * MODULES.html.sh: Mention new module.
49870
49871 2008-07-10  Ben Pfaff  <blp@gnu.org>
49872
49873         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
49874         * lib/isnand.h: Rename lib/isnand-nolibm.h.
49875         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
49876         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
49877         * modules/isnanf-nolibm: Update references to renamed files.
49878         * modules/isnand-nolibm: Likewise.
49879         * modules/isnanf-nolibm-tests: Likewise.
49880         * modules/isnand-nolibm-tests: Likewise.
49881         * lib/frexp.c: Likewise.
49882         * lib/isfinite.c: Likewise.
49883         * lib/signbitd.c: Likewise.
49884         * lib/signbitf.c: Likewise.
49885         * lib/vasnprintf.c: Likewise.
49886         * tests/test-ceilf1.c: Likewise.
49887         * tests/test-ceilf2.c: Likewise.
49888         * tests/test-floorf1.c: Likewise.
49889         * tests/test-floorf2.c: Likewise.
49890         * tests/test-frexp.c: Likewise.
49891         * tests/test-round1.c: Likewise.
49892         * tests/test-round2.c: Likewise.
49893         * tests/test-roundf1.c: Likewise.
49894         * tests/test-strtod.c: Likewise.
49895         * tests/test-trunc1.c: Likewise.
49896         * tests/test-trunc2.c: Likewise.
49897         * tests/test-truncf1.c: Likewise.
49898         * tests/test-truncf2.c: Likewise.
49899         * NEWS: Mention the renamed header files.
49900
49901 2008-07-11  Jim Meyering  <meyering@redhat.com>
49902
49903         vc-list-files: make the last-resort awk code more portable
49904         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
49905         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
49906         does not support it.
49907
49908 2008-07-10  Eric Blake  <ebb9@byu.net>
49909
49910         Work with tar's bootstrap.
49911         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
49912         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
49913         an m4 comment.
49914
49915 2008-07-09  Jim Meyering  <meyering@redhat.com>
49916
49917         posix-shell.m4: fix typo that made this test malfunction
49918         * m4/posix-shell.m4: Remove capitalization in variable name.
49919
49920 2008-07-08  Bruno Haible  <bruno@clisp.org>
49921
49922         * m4/onceonly.m4: Update comments.
49923         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49924
49925 2008-07-04  Jim Meyering  <meyering@redhat.com>
49926
49927         * users.txt: Add vc-dwim.
49928         (bison, coreutils): Use the gitweb URL.
49929
49930 2008-07-03  Jim Meyering  <meyering@redhat.com>
49931
49932         * users.txt: Add libffcall.  From Sam Steingold.
49933
49934 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
49935
49936         getdate.y: do not ignore TZ with relative day, month or year offset
49937         * lib/getdate.y (get_date): Move the tz-handling block to follow the
49938         relative-date-handling, since otherwise, the latter would clobber the
49939         sole output (an updated Start value) of the tz-handling block.
49940         * tests/test-getdate.c: Tests for the fix
49941
49942 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49943
49944         Recognize 'foo_LIBRARIES += libgnu.a'.
49945         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
49946         makefile snippet has already specified an installation location,
49947         also using '+='.
49948
49949 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
49950
49951         getdate.y: factor out common actions
49952         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
49953         Use them in place of open-coded actions.
49954
49955 2008-07-01  Simon Josefsson  <simon@josefsson.org>
49956
49957         Add self-test for getdate module.
49958         * modules/getdate-tests: New file.
49959         * tests/test-getdate.c: New file.
49960
49961 2008-06-29  Bruno Haible  <bruno@clisp.org>
49962
49963         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
49964         .gitignore.
49965         Reported by Sylvain Beucler <beuc@beuc.net>.
49966
49967 2008-06-29  Bruno Haible  <bruno@clisp.org>
49968
49969         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
49970         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
49971
49972 2008-06-29  Bruno Haible  <bruno@clisp.org>
49973
49974         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
49975         EXTRA_DIST.
49976         Reported by Sylvain Beucler <beuc@beuc.net>.
49977
49978 2008-06-26  Jim Meyering  <meyering@redhat.com>
49979
49980         make several modules depend on the "open" module
49981         This provides slightly increased consistency when opening-for-write
49982         the name of a non-directory spelled with a trailing slash.
49983         * modules/chdir-safer: Likewise.
49984         * modules/chown: Likewise.
49985         * modules/clean-temp: Likewise.
49986         * modules/copy-file: Likewise.
49987         * modules/fchdir: Likewise.
49988         * modules/fcntl-safer: Likewise.
49989         * modules/pipe: Likewise.
49990         * modules/utime: Likewise.
49991         Prompted by Eric Blake and Bruno Haible.
49992
49993 2008-06-24  Andreas Schwab  <schwab@suse.de>
49994
49995         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
49996         literals can be used as initializers for global variables.
49997
49998 2008-06-23  Eric Blake  <ebb9@byu.net>
49999
50000         Make gnulib-cache.m4 easier to diff.
50001         * gnulib-tool (func_import): Allow newlines when reading cached
50002         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
50003
50004 2008-06-23  Bruno Haible  <bruno@clisp.org>
50005
50006         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
50007         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
50008         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
50009         m4/signalblocking.m4.
50010         (gl_PREREQ_SIGACTION): Don't invoke it.
50011         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
50012         gl_PREREQ_SIG_HANDLER_H.
50013         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50014         Don't check for sigaction here.
50015
50016 2008-06-23  Bruno Haible  <bruno@clisp.org>
50017
50018         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
50019         (install_handlers): Don't set the SA_RESETHAND flag.
50020
50021 2008-06-23  Bruno Haible  <bruno@clisp.org>
50022
50023         * m4/sigaction.m4: Comment fixes.
50024         * lib/signal.in.h: Likewise.
50025
50026 2008-06-23  Eric Blake  <ebb9@byu.net>
50027
50028         Fix typo.
50029         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
50030
50031         Avoid SA_ namespace.
50032         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
50033         Reported by Ralf Wildenhues.
50034
50035         Avoid test failure due to SA_RESTORER.
50036         * tests/test-sigaction.c (SA_MASK): New macro.
50037         (main): Avoid failing due to extension flags being set.
50038         Reported by Jim Meyering.
50039
50040         Revert use of sig-handler.h in sigprocmask.c.
50041         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
50042         it requires the existence of struct sigaction.
50043         * lib/sigprocmask.c (handler_t): Restore typedef.
50044         (rpl_signal, old_handlers): Use local type.
50045
50046 2008-06-22  Bruno Haible  <bruno@clisp.org>
50047
50048         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
50049         conditionally.
50050         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50051
50052 2008-06-22  Bruno Haible  <bruno@clisp.org>
50053
50054         * doc/posix-functions/siginterrupt.texi: Move note.
50055
50056         * lib/signal.in.h (SA_RESTART): New macro.
50057         * lib/sigaction.c: Update comment.
50058
50059         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
50060
50061         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
50062         (gl_PREREQ_SIGPROCMASK): Invoke it.
50063         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
50064
50065         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
50066
50067         * lib/sigprocmask.c: Update a comment.
50068
50069 2008-06-21  Eric Blake  <ebb9@byu.net>
50070
50071         Use sigaction module rather than signal().
50072         * modules/c-stack (Depends-on): Add sigaction.
50073         * modules/fatal-signal (Depends-on): Likewise.
50074         * modules/nanosleep (Depends-on): Likewise.
50075         * modules/sigprocmask (Files): Add sig-handler.h.
50076         * modules/sigaction (Files): Likewise.
50077         * lib/sig-handler.h (get_handler): New file, suggested by Paul
50078         Eggert.
50079         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
50080         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
50081         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
50082         (init_fatal_signals): Likewise.
50083         * lib/nanosleep.c (rpl_nanosleep): Likewise.
50084         (siginterrupt): Delete fallback.
50085         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
50086         instead.
50087         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
50088         siginterrupt.
50089
50090         New module sigaction, for mingw.
50091         * modules/sigaction: New module...
50092         * modules/sigaction-tests: ...and its test.
50093         * m4/sigaction.m4: New file.
50094         * lib/sigaction.c: Likewise.
50095         * tests/test-sigaction.c: Likewise.
50096         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
50097         * modules/signal (Makefile.am): Likewise.
50098         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
50099         needed.
50100         * doc/posix-headers/signal.texi (signal.h): Mention provided
50101         types.
50102         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
50103         that sigaction is preferable.
50104         * doc/posix-functions/sigaction.texi (sigaction): Mention new
50105         module.
50106         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50107         sigaction.
50108
50109         Improve robustness of sigprocmask by overriding signal.
50110         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
50111         is in use.
50112         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
50113         (SIGKILL, SIGSTOP): Provide fallbacks.
50114         (rpl_signal): Implement.
50115         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
50116         signal can be called inside handlers.
50117
50118         Fix nanosleep module on mingw.
50119         * modules/nanosleep (Depends-on): Add sys_select.
50120         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
50121
50122         Fix licensing of sigprocmask.
50123         * modules/raise (License): Relicense as LGPL.
50124
50125 2008-06-21  Bruno Haible  <bruno@clisp.org>
50126
50127         * lib/propername.c (proper_name_utf8): Don't use the transliterated
50128         result if it contains question marks.
50129         Reported by Michael Geng <linux@michaelgeng.de>.
50130
50131 2008-06-19  Bruno Haible  <bruno@clisp.org>
50132
50133         Fix CVS-ism.
50134         * doc/gnulib.texi: Include updated-stamp.texi.
50135         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
50136         (updated-stamp.texi): New rule.
50137         (gnulib.info): Depend on it.
50138         * doc/.gitignore: Add updated-stamp.texi.
50139         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
50140
50141 2008-06-19  Bruno Haible  <bruno@clisp.org>
50142
50143         * doc/Makefile (gnulib.info): Update and simplify dependencies.
50144         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50145
50146 2008-06-19  Eric Blake  <ebb9@byu.net>
50147
50148         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
50149         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
50150         Reported by Stepan Kasal.
50151
50152 2008-06-18  Bruno Haible  <bruno@clisp.org>
50153
50154         * lib/fatal-signal.c (init_fatal_signals): Add comment.
50155         Reported by Eric Blake.
50156
50157 2008-06-18  Eric Blake  <ebb9@byu.net>
50158
50159         Work around cygwin 1.5.25 strsignal bug.
50160         * tests/test-strsignal.c: Allow for const char *.
50161         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
50162
50163 2008-06-18  Simon Josefsson  <simon@josefsson.org>
50164
50165         * users.txt: Update URL to article and add author/date
50166         information.
50167
50168 2008-06-17  Bruno Haible  <bruno@clisp.org>
50169
50170         New macro gl_DISABLE_THREADS.
50171         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
50172         if the user did not pass --enable-threads or --disable-threads option.
50173         (gl_DISABLE_THREADS): New macro.
50174         Reported by Eric Blake <ebb9@byu.net>.
50175
50176 2008-06-17  Bruno Haible  <bruno@clisp.org>
50177
50178         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
50179         when the macro ignores it.
50180         Based on a patch by Eric Blake <ebb9@byu.net>.
50181
50182 2008-06-17  Bruno Haible  <bruno@clisp.org>
50183
50184         * modules/tls (License): Change to LGPLv2+.
50185         Reported by Eric Blake.
50186
50187 2008-06-17  Eric Blake  <ebb9@byu.net>
50188
50189         Simplify c-stack prerequisites.
50190         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
50191         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
50192         no longer requires <ucontext.h> to exist.  Optimize setrlimit
50193         check.
50194         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
50195         <sys/resource.h>.
50196
50197         Move c-stack test into testsuite.
50198         * modules/c-stack-tests: New file.
50199         * lib/c-stack.c [DEBUG]: Move test program...
50200         * tests/test-c-stack.c: ...into this new file.  Skip rather than
50201         fail test if sigaltstack is lacking.
50202         * tests/test-c-stack.sh: New driver file.
50203
50204 2008-06-16  Eric Blake  <ebb9@byu.net>
50205
50206         Use raise module consistently.
50207         * modules/fatal-signal (Depends-on): Add raise.
50208         * modules/sigprocmask (Depends-on): Likewise.
50209         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
50210         * lib/sigprocmask.c (sigprocmask): Likewise.
50211         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50212         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
50213
50214         Fix compliance bug in sigpending.
50215         * lib/sigprocmask.c (sigpending): Return pending array via
50216         parameter, not return value.
50217
50218 2008-06-14  Eric Blake  <ebb9@byu.net>
50219
50220         Improve obstack-printf test code.
50221         * tests/test-obstack-printf.c (test_function): Fix comment, and
50222         simplify usage of obstack_* in macros.  Add a test for coverage.
50223         Reported by Bruno Haible.
50224
50225 2008-06-14  Bruno Haible  <bruno@clisp.org>
50226
50227         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
50228         array size as a constant, not as a const variable.
50229         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
50230         AC_USE_SYSTEM_EXTENSIONS.
50231         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50232         Test whether the obstack_printf function actually exists.
50233         * modules/obstack-printf (Depends-on): Add extensions.
50234         (Include): Remove obstack.h.
50235         * modules/obstack-printf-posix (Depends-on): Add extensions.
50236         (Include): Remove obstack.h.
50237
50238 2008-06-13  Eric Blake  <ebb9@byu.net>
50239
50240         Add obstack-printf and obstack-printf-posix modules.
50241         * modules/obstack-printf: New file.
50242         * modules/obstack-printf-posix: Likewise.
50243         * MODULES.html.sh (Misc): Mention them.
50244         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50245         Likewise.
50246         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50247         Likewise.
50248         * modules/stdio (Makefile.am): Accomodate new modules.
50249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50250         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
50251         Declare.
50252         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
50253         functions.
50254         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
50255         (gl_REPLACE_OBSTACK_PRINTF): New macros
50256         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
50257         * tests/test-obstack-printf.c: New file.
50258         * modules/obstack-printf-tests: Likewise.
50259         * modules/obstack-printf-posix-tests: Likewise.
50260
50261 2008-06-11  Bruno Haible  <bruno@clisp.org>
50262
50263         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
50264         * lib/open.c: Include errno.h.
50265         (open): Fail when attempting to write to a file that has a trailing
50266         slash.
50267         * tests/test-open.c (main): Test against trailing slash bug.
50268         * doc/posix-functions/open.texi: Mention the trailing slash bug.
50269
50270 2008-06-10  Bruno Haible  <bruno@clisp.org>
50271
50272         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
50273         for $? to work inside the trap command, with various /bin/sh-s.
50274         * tests/test-vc-list-files-cvs.sh: Likewise.
50275
50276 2008-06-10  Bruno Haible  <bruno@clisp.org>
50277
50278         * lib/acl-internal.h: Don't include gettext.h here.
50279         * lib/set-mode-acl.c: Include gettext.h here.
50280         * lib/copy-acl.c: Likewise.
50281
50282 2008-06-10  Bruno Haible  <bruno@clisp.org>
50283
50284         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
50285         * lib/wait-process.c (wait_subprocess): Likewise.
50286         * lib/execute.h (execute): Add termsigp argument.
50287         * lib/execute.c (execute): Likewise.
50288         * lib/csharpcomp.c (compile_csharp_using_pnet,
50289         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
50290         * lib/csharpexec.c (execute_csharp_using_pnet,
50291         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
50292         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
50293         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
50294         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
50295         is_jikes_present): Update.
50296         * lib/javaexec.c (execute_java_class): Update.
50297         * lib/javaversion.c (execute_and_read_line): Update.
50298         * NEWS: Document the changes.
50299         Reported by Eric Blake.
50300
50301 2008-06-10  Eric Blake  <ebb9@byu.net>
50302
50303         Add missing include.
50304         * tests/test-strstr.c (includes): Add <signal.h>.
50305         * tests/test-strcasestr.c (includes): Likewise.
50306         * tests/test-memmem.c (includes): Likewise.
50307
50308 2008-06-10  Bruno Haible  <bruno@clisp.org>
50309
50310         * lib/wait-process.c (wait_subprocess): Add an assertion.
50311
50312 2008-06-10  Bruno Haible  <bruno@clisp.org>
50313
50314         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
50315
50316 2008-06-10  Bruno Haible  <bruno@clisp.org>
50317
50318         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
50319         using alarm().
50320         * tests/test-strcasestr.c (main): Likewise.
50321         * tests/test-strstr.c (main): Likewise.
50322
50323 2008-06-09  Bruno Haible  <bruno@clisp.org>
50324
50325         Work around the Solaris 10 ACE ACLs ABI change.
50326         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
50327         declare if ACL_NO_TRIVIAL is present.
50328         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
50329         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
50330         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
50331         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
50332         define if ACL_NO_TRIVIAL is present.
50333         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
50334         and use the current ABI.
50335         (file_has_acl): Use same #if condition as elsewhere.
50336         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
50337         in use, and use the current ABI.
50338         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
50339         Reported by Jim Meyering.
50340
50341 2008-06-09  Eric Blake  <ebb9@byu.net>
50342
50343         Work around environments that (stupidly) ignore SIGALRM.
50344         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
50345         before using alarm().
50346         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50347         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50348         Reported by Ian Beckwith <ianb@erislabs.net>.
50349
50350         Produce autobuild blurb earlier in log.
50351         * modules/autobuild (configure.ac-early): Move AB_INIT here.
50352
50353 2008-06-09  Jim Meyering  <meyering@redhat.com>
50354         and Ondřej Vašík  <ovasik@redhat.com>
50355
50356         utimens.c: correct kernel bug work-around
50357         Ondřej Vašík found that the invalid return value of 280 indicates
50358         failure, not success, and the kernel bug we're trying to work
50359         around affects not just the utimensat call, but also the fallback
50360         futimens call.
50361         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
50362         not success.
50363         [HAVE_FUTIMENS]: Use the same work-around, here.
50364
50365 2008-06-09  Jim Meyering  <meyering@redhat.com>
50366
50367         add more guards around definition of ACE_-related code
50368         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
50369         ALLOW and ACE_OWNER are also defined.
50370
50371 2008-06-08  Bruno Haible  <bruno@clisp.org>
50372
50373         * lib/acl-internal.h: Add me as co-author.
50374         * lib/file-has-acl.c: Likewise.
50375         * lib/set-mode-acl.c: Likewise.
50376         * lib/copy-acl.c: Likewise.
50377
50378 2008-06-08  Bruno Haible  <bruno@clisp.org>
50379
50380         Add support for AIX ACLs.
50381         * lib/acl-internal.h (acl_nontrivial): New declaration.
50382         * lib/file-has-acl.c (acl_nontrivial): New function.
50383         (file_has_acl): Add implementation using AIX 4 ACL API.
50384         * lib/set-mode-acl.c (qset_acl): Likewise.
50385         * lib/copy-acl.c (qcopy_acl): Likewise.
50386
50387 2008-06-08  Bruno Haible  <bruno@clisp.org>
50388
50389         Add support for HP-UX ACLs.
50390         * lib/acl-internal.h (acl_nontrivial): New declaration.
50391         * lib/file-has-acl.c (acl_nontrivial): New function.
50392         (file_has_acl): Add implementation using HP-UX 11 ACL API.
50393         * lib/set-mode-acl.c (qset_acl): Likewise.
50394         * lib/copy-acl.c (qcopy_acl): Likewise.
50395
50396 2008-06-08  Bruno Haible  <bruno@clisp.org>
50397
50398         Add support for Cygwin ACLs.
50399         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
50400         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
50401         the chmod_or_fchmod call.
50402         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
50403
50404 2008-06-08  Bruno Haible  <bruno@clisp.org>
50405
50406         Fix bug with setuid modes in Solaris 10+ code.
50407         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
50408         succeeded, when the mode contains some special bits.
50409
50410 2008-06-08  Bruno Haible  <bruno@clisp.org>
50411
50412         Add support for Solaris 7..10 ACLs.
50413         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
50414         declarations.
50415         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
50416         functions.
50417         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
50418         * lib/set-mode-acl.c (qset_acl): Likewise.
50419         * lib/copy-acl.c (qcopy_acl): Likewise.
50420
50421 2008-06-08  Bruno Haible  <bruno@clisp.org>
50422
50423         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
50424         declaration.
50425         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
50426         (acl_access_nontrivial): Remove MacOS X case.
50427         (file_has_acl): Use acl_extended_nontrivial.
50428         * lib/copy-acl.c (qcopy_acl): Likewise.
50429
50430 2008-06-08  Bruno Haible  <bruno@clisp.org>
50431
50432         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
50433
50434 2008-06-08  Jim Meyering  <meyering@redhat.com>
50435
50436         * modules/acl (Maintainer): Add Bruno Haible.
50437
50438 2008-06-07  Bruno Haible  <bruno@clisp.org>
50439
50440         Improve support for Tru64 ACLs.
50441         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
50442         ACL on OSF/1.
50443
50444 2008-06-07  Bruno Haible  <bruno@clisp.org>
50445
50446         Add support for MacOS X ACLs.
50447         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
50448         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
50449         * lib/set-mode-acl.c (qset_acl): Likewise.
50450         * lib/copy-acl.c (qcopy_acl): Likewise.
50451
50452 2008-06-07  Bruno Haible  <bruno@clisp.org>
50453
50454         Fix memory leak introduced on 2008-05-22.
50455         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
50456         use.
50457
50458 2008-06-07  Bruno Haible  <bruno@clisp.org>
50459
50460         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
50461         to construct an empty ACL.
50462
50463 2008-06-07  Bruno Haible  <bruno@clisp.org>
50464
50465         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
50466         precisely.
50467         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
50468
50469 2008-06-07  Bruno Haible  <bruno@clisp.org>
50470
50471         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
50472         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
50473
50474 2008-06-07  Bruno Haible  <bruno@clisp.org>
50475
50476         * doc/posix-functions/_setjmp.texi: Explain the use of this function
50477         regardless of POSIX.
50478         * doc/posix-functions/_longjmp.texi: Likewise.
50479         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
50480         SystemV platform in this case.
50481
50482 2008-06-06  Eric Blake  <ebb9@byu.net>
50483
50484         Document abort() bugs.
50485         * doc/posix-functions/abort.texi (abort): Mention anomalies.
50486
50487         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
50488         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
50489         sigsetjmp.
50490         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
50491         siglongjmp, but only as a macro.
50492         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
50493         is obsolete.
50494         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
50495
50496         Tweak documentation to cover cygwin argz bugs.
50497         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
50498         argz bug fix; no code change needed since no cygwin releases
50499         occurred between the last fix and the bug being tested.
50500         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
50501         module and recently fixed cygwin bugs.
50502         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
50503         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
50504         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
50505         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
50506         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
50507         Likewise.
50508         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
50509         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
50510         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
50511         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
50512         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
50513         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
50514         Likewise.
50515
50516         Avoid gcc warning on cygwin.
50517         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
50518         !ACL_NO_TRIVIAL]: Avoid unused variable.
50519
50520 2008-06-05  Eric Blake  <ebb9@byu.net>
50521
50522         Be tolerant of UNKNOWN version in gnulib-tool test dir.
50523         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
50524         git-version-gen fails to come up with a version.
50525         Reported by Simon Josefsson.
50526
50527 2008-06-05  Jim Meyering  <meyering@redhat.com>
50528             Paul Eggert  <eggert@cs.ucla.edu>
50529
50530         utimens.c: work around a probable Linux kernel bug
50531         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
50532         appears to be a kernel bug that causes utimensat to return 280
50533         instead of 0, indicating success.
50534
50535 2008-06-04  Bruno Haible  <bruno@clisp.org>
50536
50537         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
50538         2008-06-01 commit.
50539
50540 2008-06-04  Bruno Haible  <bruno@clisp.org>
50541
50542         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
50543         * lib/file-has-acl.c (acl_access_nontrivial): New function.
50544         (file_has_acl): Use it. Save errno afterwards.
50545         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
50546
50547 2008-06-03  Bruno Haible  <bruno@clisp.org>
50548
50549         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
50550         draft code. Simplify #ifs.
50551         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
50552         Put Solaris code after POSIX-draft code. Fix comments regarding
50553         Solaris 10, HP-UX. Mention Cygwin.
50554         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
50555
50556 2008-06-03  Eric Blake  <ebb9@byu.net>
50557
50558         Provide fallback for older kernels.
50559         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
50560         Provide runtime fallback if kernel lacks support.
50561         Reported by Mike Frysinger.
50562
50563 2008-06-02  Bruno Haible  <bruno@clisp.org>
50564
50565         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
50566         it exists.
50567
50568 2008-06-02  Bruno Haible  <bruno@clisp.org>
50569
50570         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
50571         * lib/copy-acl.c (qcopy_acl): Update comment.
50572
50573 2008-06-02  Bruno Haible  <bruno@clisp.org>
50574
50575         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
50576         like ACL APIs.
50577
50578 2008-06-02  Bruno Haible  <bruno@clisp.org>
50579
50580         * tests/test-file-has-acl.sh: Use different code for Cygwin.
50581         * tests/test-set-mode-acl.sh: Likewise.
50582         * tests/test-copy-acl.sh: Likewise.
50583         * tests/test-copy-file.sh: Likewise.
50584
50585 2008-06-02  Bruno Haible  <bruno@clisp.org>
50586
50587         * tests/test-file-has-acl.sh: Remove unused code.
50588
50589 2008-06-01  Bruno Haible  <bruno@clisp.org>
50590
50591         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
50592         (copy_acl): Just a wrapper around qcopy_acl that emits the error
50593         messages.
50594         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
50595
50596 2008-06-01  Bruno Haible  <bruno@clisp.org>
50597
50598         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
50599         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
50600         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
50601         APIs.
50602         * modules/acl-tests (configure.ac): Remove tests now contained in
50603         m4/acl.m4.
50604
50605 2008-06-02  Jim Meyering  <meyering@redhat.com>
50606
50607         announce-gen: use a better key-server host name
50608         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
50609         it may be more consistently reliable.  Suggested by Werner Koch
50610         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
50611
50612 2008-06-01  Bruno Haible  <bruno@clisp.org>
50613
50614         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
50615         Reported by Voroskoi Andras <voroskoi@gmail.com>.
50616
50617 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
50618
50619         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
50620
50621 2008-06-01  Bruno Haible  <bruno@clisp.org>
50622
50623         New ACL tests.
50624         * tests/test-file-has-acl.sh: New file.
50625         * tests/test-file-has-acl.c: New file.
50626         * tests/test-set-mode-acl.sh: New file.
50627         * tests/test-set-mode-acl.c: New file.
50628         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
50629         * tests/test-copy-acl.c: New file.
50630         * modules/acl-tests: New file, based on modules/copy-file-tests.
50631         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
50632         (Depends-on): Add acl-tests.
50633         (configure.ac): Remove checks.
50634         (Makefile.am): Don't create test-sameacls program here any more.
50635
50636 2008-06-01  Bruno Haible  <bruno@clisp.org>
50637
50638         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
50639         * tests/test-sameacls.c: Include progname.h.
50640         (main): Invoke set_program_name. Portability fixes for MacOS X,
50641         Solaris, HP-UX.
50642
50643 2008-06-01  Bruno Haible  <bruno@clisp.org>
50644
50645         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
50646         function.
50647         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
50648
50649 2008-06-01  Bruno Haible  <bruno@clisp.org>
50650
50651         * modules/rpmatch (Depends-on): Add strdup.
50652
50653 2008-06-01  Bruno Haible  <bruno@clisp.org>
50654
50655         * lib/pipe.c: Include unistd-safer.h.
50656         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
50657         * modules/pipe (Depends-on): Add unistd-safer.
50658
50659 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50660
50661         * modules/autobuild (configure.ac): Call AB_INIT.
50662
50663 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50664
50665         * tests/test-getaddrinfo.c: Don't print debug messages by default.
50666         Suggested by Bruno Haible <bruno@clisp.org>.
50667
50668 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50669
50670         * tests/test-base64.c: Cast size_t to unsigned long when invoking
50671         printf.  Use %lu instead of %d.  Reported by Bruno Haible
50672         <bruno@clisp.org>.
50673
50674 2008-05-29  Eric Blake  <ebb9@byu.net>
50675
50676         Prefer new POSIX 200x interfaces over futimesat.
50677         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
50678         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
50679         when available.
50680         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
50681
50682 2008-05-28  Bruno Haible  <bruno@clisp.org>
50683
50684         * modules/stpcpy (License): Change to LGPLv2+.
50685         Requested by David Lutterkort <dlutter@redhat.com>.
50686
50687 2008-05-27  Bruno Haible  <bruno@clisp.org>
50688
50689         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
50690         current mingw.
50691         Reported by Jose E. Marchesi <jemarch@gnu.org>.
50692
50693 2008-05-27  Bruno Haible  <bruno@clisp.org>
50694
50695         * modules/iconv_open (Link): New section, from module 'iconv'.
50696         * modules/striconv (Link): Likewise.
50697         * modules/striconveh (Link): Likewise.
50698         * modules/xstriconv (Link): Likewise.
50699         * modules/unicodeio (Link): Likewise.
50700         * modules/propername (Link): Likewise.
50701         Reported by Jim Meyering.
50702
50703 2008-05-26  Jim Meyering  <meyering@redhat.com>
50704
50705         sha256: do not artificially restrict buffer length to be < 2^32
50706         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
50707         uint32_t to size_t.
50708         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
50709         to match.
50710
50711         avoid unaligned access errors, e.g., on sparc
50712         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
50713         direct access through a possibly-unaligned uint64* pointer.
50714         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
50715         direct access through a possibly-unaligned uint32* pointer.
50716         Prompted by this patch from Tom "spot" Callaway:
50717         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
50718
50719         sha512.c: fix typo in comment
50720         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
50721
50722 2008-05-25  Bruno Haible  <bruno@clisp.org>
50723
50724         * lib/set-mode-acl.c: Renamed from lib/acl.c.
50725         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
50726         (Makefile.am): Update lib_SOURCES.
50727
50728 2008-05-25  Bruno Haible  <bruno@clisp.org>
50729
50730         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
50731
50732 2008-05-25  Jim Meyering  <meyering@redhat.com>
50733
50734         useless-if-before-free: freed expr may have white-space differences
50735         * build-aux/useless-if-before-free: Recognize cases in which the
50736         freed expression differs from the tested one in embedded white
50737         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
50738         $1 was used, so we can't make any regexp shy.  Improved tests now
50739         detect this.
50740
50741         useless-if-before-free: accept white space in the expression.
50742         * build-aux/useless-if-before-free: For now, any white space
50743         in the expression must be identical in the free argument.
50744
50745         useless-if-before-free: efficiency tweak
50746         * build-aux/useless-if-before-free: Make the expression-matching
50747         regexp "shy".
50748         Make the *outer* regexp shy, not the expr-matching one.
50749
50750         update code-in-comment to accept cast of free arg
50751         * build-aux/useless-if-before-free: Update regexp.
50752
50753 2008-05-25  Bruno Haible  <bruno@clisp.org>
50754
50755         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
50756         * modules/copy-file-tests (Files, Makefile.am): Update.
50757         * tests/test-copy-file.c (func_test_copy): Update.
50758
50759 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
50760
50761         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
50762
50763 2008-05-23  Bruno Haible  <bruno@clisp.org>
50764
50765         Improve support for ACLs on OSF/1.
50766         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
50767         Remove fallback for unknown flavors of ACLs.
50768
50769 2008-05-22  Bruno Haible  <bruno@clisp.org>
50770
50771         Add support for ACLs on OSF/1.
50772         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
50773         replacements.
50774         (acl_free_text): New macro fallback.
50775         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
50776         acl_free.
50777         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
50778         acl_free_text function. Require AC_C_INLINE.
50779
50780 2008-05-22  Bruno Haible  <bruno@clisp.org>
50781
50782         Make copy_acl work on MacOS X 10.5.
50783         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
50784         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
50785         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
50786         If MODE_INSIDE_ACL, don't assume that every system has the same text
50787         representation for ACLs as FreeBSD.
50788         * lib/copy-acl.c (copy_acl): Add support for platforms with
50789         !MODE_INSIDE_ACL.
50790         * lib/file-has-acl.c (file_has_acl): Likewise.
50791         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
50792         FreeBSD, MacOS X, or IRIX, respectively.
50793
50794 2008-05-22  Bruno Haible  <bruno@clisp.org>
50795
50796         * lib/acl.h: Don't include <sys/acl.h>.
50797         (GETACLCNT): Move fallback to lib/acl-internal.h.
50798         * lib/acl-internal.h: Include <sys/acl.h> here.
50799         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
50800
50801 2008-05-22  Bruno Haible  <bruno@clisp.org>
50802
50803         Split off copy_acl function to separate file.
50804         * lib/copy-acl.c: New file, extracted from lib/acl.c.
50805         * lib/acl.c (copy_acl): Moved function to separate file.
50806         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
50807         * modules/acl (Files): Add lib/copy-acl.c.
50808         (Makefiles.am): Augment lib_SOURCES.
50809
50810 2008-05-22  Bruno Haible  <bruno@clisp.org>
50811
50812         * modules/copy-file-tests: New file.
50813         * tests/test-copy-file.sh: New file.
50814         * tests/test-copy-file.c: New file.
50815         * tests/test-copy-file-sameacls.c: New file.
50816
50817 2008-05-22  Eric Blake  <ebb9@byu.net>
50818
50819         Avoid gcc warning.
50820         * tests/test-memcmp.c (main): Pass NULL indirectly.
50821
50822 2008-05-21  Bruno Haible  <bruno@clisp.org>
50823
50824         Add reference doc about ACLs.
50825         * doc/acl-resources.txt: New file.
50826         * doc/acl-cygwin.txt: New file.
50827
50828 2008-05-21  Bruno Haible  <bruno@clisp.org>
50829
50830         Avoid one more warning from gcc.
50831         * lib/vasnprintf.c (IF_LINT): Update comments.
50832         (VASNPRINTF): Use it also for the 'prefix' array initializer.
50833
50834 2008-05-21  Jim Meyering  <meyering@redhat.com>
50835
50836         avoid a warning from gcc
50837         * lib/vasnprintf.c (IF_LINT): Define.
50838         (scale10_round_decimal_long_double):
50839         Use it to avoid a "may be used uninitialized" warning.
50840         (scale10_round_decimal_double): Likewise.
50841
50842 2008-05-21  Simon Josefsson  <simon@josefsson.org>
50843
50844         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
50845         declared.
50846
50847 2008-05-20  Bruno Haible  <bruno@clisp.org>
50848
50849         * tests/test-memcmp.c (main): Test also the sign of the result. Test
50850         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
50851
50852 2008-05-20  Simon Josefsson  <simon@josefsson.org>
50853
50854         * modules/memcmp-tests: New file.
50855         * tests/test-memcmp.c: New file.
50856
50857 2008-05-19  Bruno Haible  <bruno@clisp.org>
50858
50859         * modules/propername (Notice, configure.ac): Put quoted "..." into
50860         --keyword option.
50861         * lib/propername.h: Update comments accordingly.
50862         Reported by Eric Blake.
50863
50864 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
50865
50866         * modules/getpass-gnu (Depends-on): Add fseeko.
50867
50868 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50869
50870         * modules/base64-tests: New file.
50871
50872 2008-05-19  Bo Borgerson <gigabo@gmail.com>
50873
50874         * lib/base64.c (base64_decode_ctx): If a decode context structure
50875         was passed in use it to ignore newlines.  If a context structure
50876         was _not_ passed in, continue to treat newlines as garbage (this
50877         is the historical behavior).  Formerly base64_decode.
50878         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50879         takes a decode context structure.
50880         * lib/base64.h (base64_decode): Macro for four-argument calls.
50881         (base64_decode_alloc): Likewise.
50882         * lib/base64.c (base64_decode_ctx): If a decode context structure
50883         was passed in use it to ignore newlines.  If a context structure
50884         was _not_ passed in, continue to treat newlines as garbage (this
50885         is the historical behavior).  Formerly base64_decode.
50886         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50887         takes a decode context structure.
50888         * lib/base64.h (base64_decode): Macro for four-argument calls.
50889         (base64_decode_alloc): Likewise.
50890
50891 2008-05-19  Jim Meyering  <meyering@redhat.com>
50892
50893         avoid a warning from gcc
50894         * lib/trim.c (IF_LINT): Define.
50895         (trim2): Use it to avoid a "may be used uninitialized" warning.
50896
50897         Fix doc typo.
50898         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
50899
50900 2008-05-19  Bruno Haible  <bruno@clisp.org>
50901
50902         * doc/glibc-functions/getpass.texi: Document limits of other
50903         implementations.
50904
50905 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50906             Bruno Haible <bruno@clisp.org>
50907
50908         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
50909
50910 2008-05-18  Bruno Haible  <bruno@clisp.org>
50911
50912         * modules/propername: New file, from GNU gettext.
50913         * lib/propername.h: New file, from GNU gettext.
50914         * lib/propername.c: New file, from GNU gettext.
50915         * MODULES.html.sh (Internationalization functions): Add propername.
50916
50917 2008-05-16  Jim Meyering  <meyering@redhat.com>
50918             Bruno Haible  <bruno@clisp.org>
50919
50920         Avoid some warnings from "gcc -Wshadow".
50921         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
50922
50923 2008-05-15  Eric Blake  <ebb9@byu.net>
50924
50925         Extend previous patch to cygwin 1.7.0.
50926         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
50927         fast implementation in cygwin >= 1.7.0.
50928         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50929         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50930
50931 2008-05-15  Bruno Haible  <bruno@clisp.org>
50932
50933         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
50934         implementation in glibc >= 2.9.
50935         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50936         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50937
50938 2008-05-15  Bruno Haible  <bruno@clisp.org>
50939
50940         * MODULES.html.sh (Internationalization functions): Remove linebreak.
50941         (Unicode string functions): Add unilbrk/*.
50942         Reported by Karl Berry.
50943
50944 2008-05-15  Eric Blake  <ebb9@byu.net>
50945
50946         Fix violation of <stdbool.h> replacement in regex.
50947         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
50948         * lib/regexec.c (re_search_internal): Likewise.
50949         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
50950
50951 2008-05-15  Jim Meyering  <meyering@redhat.com>
50952
50953         avoid distracting test output when git or cvs is not found
50954         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
50955         * tests/test-vc-list-files-git.sh: Likewise.
50956
50957 2008-05-15  Eric Blake  <ebb9@byu.net>
50958
50959         Glibc finally accepted the memmem speedup code, bugzilla #5514.
50960         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
50961         glibc version.
50962         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
50963         * doc/posix-functions/strstr.texi (strstr): Likewise.
50964         * lib/str-two-way.h (MAX): Sychronize with glibc.
50965
50966 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
50967
50968         * lib/regcomp.c (optimize_utf8): Add a note on why we test
50969         opr.ctx_type.
50970         (calc_first): Initialize constraint field.
50971         (duplicate_node_closure): Use it instead of special casing ANCHORS.
50972         Fix grammar.
50973         (duplicate_node): Merge constraint field for all node types.
50974         (calc_eclosure_iter): Look at constraint field for all node types.
50975         * lib/regex_internal.c (create_cd_newstate): Don't look at
50976         opr.ctx_type.
50977
50978 2008-05-14  Bruno Haible  <bruno@clisp.org>
50979
50980         Help GCC to do better code generation.
50981         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
50982         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
50983         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
50984         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
50985         Declare with attribute 'malloc' if supported.
50986
50987 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
50988
50989         use "echo STR|wc -c" rather than unportable "expr length STR"
50990         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
50991         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
50992
50993 2008-05-14  Jim Meyering  <meyering@redhat.com>
50994
50995         use dd ibs=$n count=1 ... rather than less-portable head -c$n
50996         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
50997         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
50998         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
50999         via Collin Lasse.
51000
51001 2008-05-14  Eric Blake  <ebb9@byu.net>
51002
51003         Avoid quadratic growth in gl_LIBSOURCES.
51004         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
51005         Suggested by Bruno Haible.
51006
51007         Test xmemdup0.
51008         * modules/xmemdup0-tests: New file.
51009         * tests/test-xmemdup0.c: Likewise.
51010
51011 2008-05-13  Eric Blake  <ebb9@byu.net>
51012
51013         Split xmemdup0 into its own module.
51014         * modules/xmemdup0: New file.
51015         * lib/xmemdup0.h: Likewise.
51016         * lib/xmemdup0.c: Likewise.
51017         * MODULES.html.sh (Memory management functions): Add xmemdup0.
51018         * lib/xalloc.h (xmemdup0): Remove.
51019         * lib/xmalloc.c (xmemdup0): Likewise.
51020
51021 2008-05-13  Eric Blake  <ebb9@byu.net>
51022             Bruno Haible  <bruno@clisp.org>
51023
51024         Reduce number of forks required during autoconf.
51025         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
51026         and gl_LIBSOURCES_DIR.
51027         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
51028         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
51029         m4_syscmd per file.
51030         <m4_foreach_w>: Move...
51031         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
51032
51033 2008-05-13  Eric Blake  <ebb9@byu.net>
51034
51035         * gnulib-tool: Fix various comment typos.
51036
51037 2008-05-12  Bruno Haible  <bruno@clisp.org>
51038
51039         Tailor the linebreaking algorithm.
51040         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
51041
51042 2008-05-12  Bruno Haible  <bruno@clisp.org>
51043
51044         Update to Unicode 5.0.0.
51045         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51046         LBP_JV, LBP_JT. Redistribute values.
51047         (unilbrk_table): Change size.
51048         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
51049         Unicode TR#14 rev. 22.
51050         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51051         LBP_JV, LBP_JT. Redistribute values.
51052         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
51053         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
51054         Update.
51055         * lib/unilbrk/lbrkprop1.h: Regenerated.
51056         * lib/unilbrk/lbrkprop2.h: Regenerated.
51057         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
51058         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
51059         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
51060         Likewise.
51061         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
51062         Likewise.
51063         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
51064         result.
51065         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
51066         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
51067         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
51068         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
51069         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
51070         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
51071
51072 2008-05-11  Bruno Haible  <bruno@clisp.org>
51073
51074         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
51075
51076 2008-05-11  Bruno Haible  <bruno@clisp.org>
51077
51078         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
51079         * modules/unilbrk/gen-lbrk: New file.
51080
51081 2008-05-11  Bruno Haible  <bruno@clisp.org>
51082
51083         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
51084         * m4/sha512.m4 (gl_SHA512): Likewise.
51085
51086 2008-05-11  Jim Meyering  <meyering@redhat.com>
51087
51088         New modules: crypto/sha256, crypto/sha512 (from coreutils)
51089         * modules/crypto/sha256: New file.
51090         * modules/crypto/sha512: Likewise.
51091         * lib/sha256.c: Likewise.
51092         * lib/sha256.h: Likewise.
51093         * lib/sha512.c: Likewise.
51094         * lib/sha512.h: Likewise.
51095         * lib/u64.h: Likewise.
51096         * m4/sha256.m4: Likewise.
51097         * m4/sha512.m4: Likewise.
51098         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
51099
51100 2008-05-10  Bruno Haible  <bruno@clisp.org>
51101
51102         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
51103         (Input/Output <stdio.h>): Add xprintf.
51104         (Signal handling <signal.h>): Add strsignal.
51105         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
51106         (Core language properties): Add func.
51107         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
51108         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
51109         strings.
51110         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
51111         (Input/output): New section.
51112         (File system functions): Add openat-die, stat-macros.
51113         (Networking functions): Add sockets.
51114         (Unicode string functions): Add unictype/*.
51115         (Support for building libraries and executables): Add gperf.
51116         (Support for building documentation): Add agpl-3.0.
51117         (Misc): Add nocrash.
51118
51119 2008-05-10  Bruno Haible  <bruno@clisp.org>
51120
51121         * modules/unictype/gen-ctype: New file.
51122
51123 2008-05-10  Jim Meyering  <meyering@redhat.com>
51124
51125         Make chdir-safer.c more efficient on a system with no symlinks.
51126         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
51127         also if ELOOP is zero.  Suggested by Bruno Haible.
51128
51129         Make chdir-safer.c slightly safer.
51130         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
51131         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
51132
51133         Avoid compile failure on systems without ELOOP (like mingw).
51134         * lib/chdir-safer.c (ELOOP): Define if not already defined.
51135         Reported by Bruno Haible.
51136
51137 2008-05-10  Bruno Haible  <bruno@clisp.org>
51138
51139         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
51140         (is_utf8_encoding): Use a case-insensitive comparison.
51141         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
51142         streq.
51143
51144 2008-05-10  Bruno Haible  <bruno@clisp.org>
51145
51146         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
51147         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
51148         * lib/unilbrk/ulc-common.h (iconv_string_length,
51149         iconv_string_keeping_offsets): Remove declarations.
51150         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
51151         Don't include <iconv.h>, streq.h, xsize.h.
51152         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
51153         conversion.
51154         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
51155         <iconv.h>, streq.h, xsize.h.
51156         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
51157         conversion.
51158         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
51159         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
51160         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
51161         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
51162
51163 2008-05-10  Bruno Haible  <bruno@clisp.org>
51164
51165         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
51166         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
51167
51168         * modules/unilbrk/u32-width-linebreaks-tests: New file.
51169         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
51170
51171         * modules/unilbrk/u16-width-linebreaks-tests: New file.
51172         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
51173
51174         * modules/unilbrk/u8-width-linebreaks-tests: New file.
51175         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
51176
51177         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
51178         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
51179
51180         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
51181         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
51182
51183         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
51184         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
51185
51186         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
51187         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
51188
51189 2008-05-10  Bruno Haible  <bruno@clisp.org>
51190
51191         Split up 'linebreak' module.
51192         * lib/unilbrk.h: New file, based on lib/linebreak.h.
51193         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
51194         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
51195         modifications.
51196         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
51197         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
51198         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
51199         lib/linebreak.c.
51200         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
51201         lib/linebreak.c.
51202         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
51203         lib/linebreak.c.
51204         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
51205         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
51206         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
51207         lib/linebreak.c.
51208         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
51209         lib/linebreak.c.
51210         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
51211         lib/linebreak.c.
51212         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
51213         lib/linebreak.c.
51214         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
51215         lib/linebreak.c.
51216         * modules/unilbrk/base: New file.
51217         * modules/unilbrk/tables: New file.
51218         * modules/unilbrk/u8-possible-linebreaks: New file.
51219         * modules/unilbrk/u16-possible-linebreaks: New file.
51220         * modules/unilbrk/u32-possible-linebreaks: New file.
51221         * modules/unilbrk/ulc-common: New file.
51222         * modules/unilbrk/ulc-possible-linebreaks: New file.
51223         * modules/unilbrk/u8-width-linebreaks: New file.
51224         * modules/unilbrk/u16-width-linebreaks: New file.
51225         * modules/unilbrk/u32-width-linebreaks: New file.
51226         * modules/unilbrk/ulc-width-linebreaks: New file.
51227         * lib/linebreak.h: Remove file.
51228         * lib/linebreak.c: Remove file.
51229         * m4/linebreak.m4: Remove file.
51230         * modules/linebreak: Remove file.
51231         * NEWS: Mention the changes.
51232
51233 2008-05-09  Eric Blake  <ebb9@byu.net>
51234
51235         Add xmemdup0.
51236         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
51237         implementation.
51238         * lib/xmalloc.c (xmemdup0): New C implementation.
51239
51240 2008-05-08  Bruno Haible  <bruno@clisp.org>
51241
51242         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
51243
51244 2008-05-07  Eric Blake  <ebb9@byu.net>
51245
51246         Support cross-compilation of <wctype.h>.
51247         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
51248         AC_CACHE_CHECK.
51249
51250 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
51251
51252         * build-aux/vc-list-files: Add support for bzr.
51253
51254 2008-05-03  Jim Meyering  <meyering@redhat.com>
51255
51256         avoid failed assertion with tight malloc
51257         * tests/test-getndelim2.c: Correct an off-by-one assertion.
51258
51259 2008-05-03  Simon Josefsson  <simon@josefsson.org>
51260
51261         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
51262         are needed from arpa/inet.h.
51263         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
51264         Reported by Bruno Haible.
51265
51266 2008-05-02  Jim Meyering  <meyering@redhat.com>
51267
51268         avoid compilation error on FreeBSD 6
51269         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
51270
51271 2008-05-01  Jim Meyering  <meyering@redhat.com>
51272
51273         useless-if-before-free: correct --help's exit status description
51274         * build-aux/useless-if-before-free (usage): Like grep, exit 0
51275         for one or more matches, etc.  Reported by Bruno Haible.
51276
51277         vc-list-files: make the stand-alone gnulib test work
51278         * modules/vc-list-files-tests (configure.ac):
51279         Define and AC_SUBST abs_aux_dir.
51280         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
51281         $(abs_top_srcdir) to each script and having each of them
51282         duplicate the work of setting PATH, set PATH here, using
51283         the new variable, abs_aux_dir instead.
51284         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
51285         * tests/test-vc-list-files-git.sh: Likewise.
51286         Reported by Bruno Haible.
51287
51288 2008-05-01  Bruno Haible  <bruno@clisp.org>
51289
51290         * lib/getndelim2.c (getndelim2): Fix newsize computation during
51291         reallocation. Rename 'done' to 'found_delimiter'.
51292
51293 2008-05-01  Jim Meyering  <meyering@redhat.com>
51294
51295         vc-list-files: accommodate /bin/sh like the one from Solaris 10
51296         * build-aux/vc-list-files: Use `...`, not $(...).
51297
51298 2008-04-30  Jim Meyering  <meyering@redhat.com>
51299
51300         add tests for vc-list-files
51301         * modules/vc-list-files-tests: New module.
51302         * tests/test-vc-list-files-cvs.sh: New file.
51303         * tests/test-vc-list-files-git.sh: New file.
51304
51305         avoid a warning from gcc
51306         * lib/getndelim2.c (IF_LINT): Define.
51307         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
51308
51309         vc-list-files: work properly with build-aux/cvsu, too
51310         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
51311         to all cvs-based clauses.
51312
51313         vc-list-files: work properly in the CVS+awk case, too
51314         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
51315
51316         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
51317         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
51318         take more than one file argument, so .  Add quotes, just in case $dir
51319         ever contains a shell meta-character.  Prompted by Soren Hansen in
51320         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
51321
51322 2008-04-29  Eric Blake  <ebb9@byu.net>
51323
51324         Optimize getndelim2 to use block operations when possible.
51325         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
51326         freadseek, and memchr2.
51327         * lib/getndelim2.c (getndelim2): Use them for block reads.
51328
51329 2008-04-29  Bruno Haible  <bruno@clisp.org>
51330
51331         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
51332         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51333         * modules/inet_ntop (Depends-on): Add extensions.
51334         * modules/inet_pton (Depends-on): Likewise.
51335         Reported by Simon Josefsson.
51336
51337 2008-04-29  Jim Meyering  <meyering@redhat.com>
51338
51339         When the is more than one match in a block, match all of them.
51340         * build-aux/useless-if-before-free: Iterate through each block
51341         until there are no more matches.
51342
51343         Fix broken useless-if-before-free script.
51344         * build-aux/useless-if-before-free: Fix typo: missing "?" after
51345         the expression to match cast of argument to free-like function.
51346
51347 2008-04-29  Eric Blake  <ebb9@byu.net>
51348
51349         Use new header.
51350         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
51351
51352 2008-04-29  Jim Meyering  <meyering@redhat.com>
51353
51354         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
51355         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
51356         by gnulib to exist and to declare e.g., inet_ntop.
51357         Don't include "inet_ntop.h", now removed.
51358
51359         * m4/arpa_inet_h.m4: Remove trailing blanks.
51360
51361 2008-04-29  Eric Blake  <ebb9@byu.net>
51362
51363         Silence valgrind on safe reads beyond potential array bounds.
51364         * lib/rawmemchr.valgrind: New file.
51365         * lib/strchrnul.valgrind: Likewise.
51366         * modules/rawmemchr (Files): Distribute new file.
51367         * modules/strchrnul (Files): Likewise.
51368         Suggested by Bruno Haible.
51369
51370 2008-04-29  Bruno Haible  <bruno@clisp.org>
51371
51372         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
51373         (inet_ntop, inet_pton): Change portability warning's wording.
51374         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
51375         Invoke gl_CHECK_NEXT_HEADERS.
51376         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
51377         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
51378         set ARPA_INET_H.
51379         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51380         * modules/arpa_inet (Description): No longer only for systems that
51381         lack it.
51382         (Depends-on): Add include_next.
51383         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
51384         HAVE_ARPA_INET_H.
51385
51386 2008-04-29  Jim Meyering  <meyering@redhat.com>
51387
51388         * modules/mkdir (License): Re-license as LGPLv2+.
51389
51390 2008-04-29  Bruno Haible  <bruno@clisp.org>
51391
51392         * modules/rawmemchr (Maintainer): Set to Eric.
51393         * modules/strchrnul (Maintainer): Likewise.
51394
51395 2008-04-29  Simon Josefsson  <simon@josefsson.org>
51396
51397         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
51398         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
51399
51400         * modules/arpa_inet (arpa/inet.h): Use them.
51401
51402 2008-04-28  Eric Blake  <ebb9@byu.net>
51403
51404         Test getndelim2.
51405         * modules/getndelim2-tests: New file.
51406         * tests/test-getndelim2.c: Likewise.
51407         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
51408         stream.
51409         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
51410
51411         * MODULES.html.sh: Document new module.
51412
51413 2008-04-20  Bruno Haible  <bruno@clisp.org>
51414
51415         * lib/c-stack.c (die): Use raise.
51416         * modules/c-stack (Depends-on): Add raise.
51417
51418 2008-04-28  Bruno Haible  <bruno@clisp.org>
51419
51420         Expect rpmatch to be declared.
51421         * lib/yesno.c (rpmatch): Remove declaration.
51422
51423         Declare rpmatch.
51424         * lib/stdlib.in.h (rpmatch): New declaration.
51425         * lib/rpmatch.c: Include <stdlib.h> first.
51426         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
51427         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
51428         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
51429         HAVE_RPMATCH.
51430         * modules/rpmatch (Depends-on): Add stdlib, extensions.
51431         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51432         (Include): Set to <stdlib.h>.
51433         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
51434         HAVE_RPMATCH.
51435         * NEWS: Document the change.
51436
51437 2008-04-28  Bruno Haible  <bruno@clisp.org>
51438
51439         Change rpmatch to use nl_langinfo when appropriate.
51440         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
51441         (N_): New macro.
51442         (localized_pattern): New function/macro.
51443         (try): Remove match, nomatch arguments. Copy the pattern into safe
51444         memory before caching it.
51445         (rpmatch): Use localized_pattern. Add translator comments.
51446         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
51447         Suggested by Eric Blake.
51448         * modules/rpmatch (Depends-on): Add stdbool.
51449
51450 2008-04-28  Eric Blake  <ebb9@byu.net>
51451
51452         Add rawmemchr module, matching glibc.
51453         * modules/string (Makefile.am): New indicator.
51454         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
51455         * lib/string.in.h (rawmemchr): Declare when appropriate.
51456         * modules/rawmemchr: New file.
51457         * m4/rawmemchr.m4: Likewise.
51458         * lib/rawmemchr.c: Likewise.
51459         * modules/rawmemchr-tests: Likewise.
51460         * tests/test-rawmemchr.c: Likewise.
51461         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
51462         module.
51463         * modules/strchrnul (Depends-on): Add rawmemchr.
51464         * lib/strchrnul.c (strchrnul): Optimize a corner case.
51465
51466         Whitespace cleanup.
51467         * tests/test-strchrnul.c: Reindent.
51468         * lib/strchrnul.c: Likewise.
51469
51470         Optimize and test strchrnul.
51471         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
51472         * modules/strchrnul-tests: New file.
51473         * tests/test-strchrnul.c: Likewise.
51474
51475         Remove intprops dependency.
51476         * modules/memchr (Depends-on): Remove intprops.
51477         * modules/memrchr (Depends-on): Likewise.
51478         * modules/memchr2 (Depends-on): Likewise.
51479         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
51480         * lib/memrchr.c (__memrchr): Likewise.
51481         * lib/memrchr2.c (memchr2): Likewise.
51482         Reported by Simon Josefsson.
51483
51484 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51485
51486         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
51487         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51488
51489 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51490
51491         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
51492
51493         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
51494
51495         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
51496
51497         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
51498         declarations.
51499         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
51500
51501         * m4/inet_pton.m4: Don't check for header files.
51502
51503         * m4/inet_ntop.m4: Don't check for header files.
51504
51505 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51506
51507         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
51508         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
51509         trigger for cygwin).
51510         Reported by Bruno Haible  <bruno@clisp.org>.
51511
51512 2008-04-28  Bruno Haible  <bruno@clisp.org>
51513
51514         * doc/posix-functions/strdup.texi: Mention mingw problem.
51515
51516 2008-04-27  Bruno Haible  <bruno@clisp.org>
51517
51518         * modules/stat-time-tests (Depends-on): Add sleep.
51519         * tests/test-stat-time.c (force_unlink): New function.
51520         (cleanup): Use it.
51521         (test_mtime): Remove the ctime related tests.
51522         (test_ctime): New function, containing the ctime related tests.
51523         (main): Call test_ctime, except on native Windows platforms.
51524
51525 2008-04-27  Bruno Haible  <bruno@clisp.org>
51526
51527         * lib/rpmatch.c (rpmatch): Add some comments.
51528         Reported by James Youngman <jay@gnu.org>.
51529
51530 2008-04-27  Bruno Haible  <bruno@clisp.org>
51531
51532         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
51533         quiet NaNs.
51534
51535 2008-04-27  Bruno Haible  <bruno@clisp.org>
51536
51537         Make test-yesno.sh work on mingw.
51538         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
51539         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
51540         (main): Set stdin to binary mode.
51541         * modules/yesno-tests (Depends-on): Add binary-io.
51542
51543 2008-04-27  Bruno Haible  <bruno@clisp.org>
51544
51545         Fix 'isfinite' on x86, x86_64, ia64 platforms.
51546         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
51547         argument that lie outside the IEEE 854 domain.
51548         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
51549         (gl_ISFINITE): Use it.
51550         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
51551
51552 2008-04-27  Bruno Haible  <bruno@clisp.org>
51553
51554         Allow local renaming in config.h.
51555         * lib/memrchr.c (memrchr): Don't undefine outside libc.
51556
51557 2008-04-27  Bruno Haible  <bruno@clisp.org>
51558
51559         * lib/memchr.c (__memchr): Change type of 'i'.
51560         * lib/memchr2.c (memchr2): Likewise.
51561
51562 2008-04-26  Eric Blake  <ebb9@byu.net>
51563         and Bruno Haible  <bruno@clisp.org>
51564
51565         Optimize and test memrchr.
51566         * modules/memrchr (Depends-on): Add intprops.
51567         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
51568         * modules/memrchr-tests: New file.
51569         * tests/test-memrchr.c: New file.
51570
51571 2008-04-26  Bruno Haible  <bruno@clisp.org>
51572
51573         Add tentative support for DragonFly BSD.
51574         * lib/stdio-impl.h: Add macros for DragonFly BSD.
51575         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
51576         fp.
51577         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51578         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
51579         * lib/fpurge.c (fpurge): Likewise.
51580         * lib/freadable.c (freaadable): Likewise.
51581         * lib/freadahead.c (freadahead): Likewise.
51582         * lib/freading.c (freading): Likewise.
51583         * lib/freadptr.c (freadptr): Likewise.
51584         * lib/freadseek.c (freadptrinc): Likewise.
51585         * lib/fseeko.c (fseeko): Likewise.
51586         * lib/fseterr.c (fseterr): Likewise.
51587         * lib/fwritable.c (fwritable): Likewise.
51588         * lib/fwriting.c (fwriting): Likewise.
51589
51590 2008-04-26  Bruno Haible  <bruno@clisp.org>
51591
51592         * lib/stdio-impl.h: New file.
51593         * lib/fbufmode.c: Include stdio-impl.h.
51594         (fbufmode): Use fp_, remove redundant #defines.
51595         * lib/fflush.c: Include stdio-impl.h.
51596         (clear_ungetc_buffer): Remove redundant #defines.
51597         * lib/fpurge.c: Include stdio-impl.h.
51598         (fpurge): Remove redundant #defines.
51599         * lib/freadable.c: Include stdio-impl.h.
51600         (freadable): Remove redundant #defines.
51601         * lib/freadahead.c: Include stdio-impl.h.
51602         (freadahead): Remove redundant #defines.
51603         * lib/freading.c: Include stdio-impl.h.
51604         (freading): Remove redundant #defines.
51605         * lib/freadptr.c: Include stdio-impl.h.
51606         (freadptr): Remove redundant #defines.
51607         * lib/freadseek.c: Include stdio-impl.h.
51608         (freadptrinc): Remove redundant #defines.
51609         * lib/fseeko.c: Include stdio-impl.h.
51610         (rpl_fseeko): Remove redundant #defines.
51611         * lib/fseterr.c: Include stdio-impl.h.
51612         (fseterr): Remove redundant #defines.
51613         * lib/fwritable.c: Include stdio-impl.h.
51614         (fwritable: Remove redundant #defines.
51615         * lib/fwriting.c: Include stdio-impl.h.
51616         (fwriting): Remove redundant #defines.
51617         * modules/fbufmode (Files): Add lib/stdio-impl.h.
51618         * modules/fflush (Files): Likewise.
51619         * modules/fpurge (Files): Likewise.
51620         * modules/freadable (Files): Likewise.
51621         * modules/freadahead (Files): Likewise.
51622         * modules/freading (Files): Likewise.
51623         * modules/freadptr (Files): Likewise.
51624         * modules/freadseek (Files): Likewise.
51625         * modules/fseeko (Files): Likewise.
51626         * modules/fseterr (Files): Likewise.
51627         * modules/fwritable (Files): Likewise.
51628         * modules/fwriting (Files): Likewise.
51629
51630 2008-04-26  Bruno Haible  <bruno@clisp.org>
51631
51632         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51633         restore_seek_optimization, update_fpos_cache): New functions, extracted
51634         from rpl_fflush.
51635         (rpl_fflush): Use them.
51636         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
51637         (gl_REPLACE_FFLUSH): Use it.
51638
51639 2008-04-26  Bruno Haible  <bruno@clisp.org>
51640
51641         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
51642         on Solaris.
51643         * tests/test-xstrtoimax.sh: Likewise.
51644         * tests/test-xstrtoumax.sh: Likewise.
51645         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51646
51647 2008-04-26  Bruno Haible  <bruno@clisp.org>
51648
51649         * modules/memchr-tests: New file.
51650         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
51651
51652 2008-04-26  Eric Blake  <ebb9@byu.net>
51653             Bruno Haible  <bruno@clisp.org>
51654
51655         * lib/memchr.c: Include intprops.h.
51656         (__memchr): Optimize parallel detection of matching bytes. Rename local
51657         variables. Add explanatory comments.
51658
51659 2008-04-26  Bruno Haible  <bruno@clisp.org>
51660
51661         Fix module 'memchr', broken since 2000-10-28.
51662         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
51663
51664 2008-04-26  Bruno Haible  <bruno@clisp.org>
51665
51666         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
51667         comments.
51668
51669 2008-04-25  Eric Blake  <ebb9@byu.net>
51670
51671         Use native fstatat on cygwin 1.7.0.
51672         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
51673         first.
51674
51675 2008-04-23  Eric Blake  <ebb9@byu.net>
51676
51677         Improve memchr2 performance.
51678         * lib/memchr2.c (memchr2): Further optimize parallel detection of
51679         NUL bytes.
51680         * modules/memchr2 (Depends-on): Use intprops.h.
51681
51682 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51683
51684         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
51685         an inline function instead of a CPP macro.  Patch by Ben Pfaff
51686         <blp@cs.stanford.edu>.
51687
51688 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51689
51690         * lib/arpa_inet.in.h: New file.
51691
51692         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
51693         (Makefile.am): Sed in substitute header file.
51694
51695         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
51696         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
51697
51698         * modules/inet_ntop (configure.ac): Use
51699         gl_ARPA_INET_MODULE_INDICATOR.
51700
51701         * modules/inet_pton (configure.ac): Use
51702         gl_ARPA_INET_MODULE_INDICATOR.
51703
51704 2008-04-22  Jim Meyering  <meyering@redhat.com>
51705
51706         * modules/verify (License): Re-license as LGPLv2+.
51707
51708 2008-04-22  Simon Josefsson  <simon@josefsson.org>
51709
51710         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
51711         parameter to void* as per POSIX standard (MinGW uses char*).
51712
51713 2008-04-21  Bruno Haible  <bruno@clisp.org>
51714
51715         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51716         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51717         Define to replacements if REPLACE_ISWCNTRL is 1.
51718         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
51719         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
51720         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
51721         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
51722         what it fixes.
51723         * doc/posix-functions/iswalpha.texi: Likewise.
51724         * doc/posix-functions/iswblank.texi: Likewise.
51725         * doc/posix-functions/iswcntrl.texi: Likewise.
51726         * doc/posix-functions/iswdigit.texi: Likewise.
51727         * doc/posix-functions/iswgraph.texi: Likewise.
51728         * doc/posix-functions/iswlower.texi: Likewise.
51729         * doc/posix-functions/iswprint.texi: Likewise.
51730         * doc/posix-functions/iswpunct.texi: Likewise.
51731         * doc/posix-functions/iswspace.texi: Likewise.
51732         * doc/posix-functions/iswupper.texi: Likewise.
51733         * doc/posix-functions/iswxdigit.texi: Likewise.
51734         Reported by Alain Guibert.
51735
51736 2008-04-21  Bruno Haible  <bruno@clisp.org>
51737
51738         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
51739         Patch by Alain Guibert.
51740
51741 2008-04-21  Bruno Haible  <bruno@clisp.org>
51742
51743         Fix test failures on mingw.
51744         * tests/test-xstrtol.c (print_no_progname): New function.
51745         (main): Install it in error_print_progname hook.
51746         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
51747         * tests/test-xstrtoimax.sh: Likewise.
51748         * tests/test-xstrtoumax.sh: Likewise.
51749
51750 2008-04-21  Bruno Haible  <bruno@clisp.org>
51751
51752         Fix test failure on mingw.
51753         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
51754
51755 2008-04-21  Bruno Haible  <bruno@clisp.org>
51756
51757         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51758         Actually assign a value.
51759
51760 2008-04-20  Bruno Haible  <bruno@clisp.org>
51761
51762         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
51763         take 2.
51764         * lib/canonicalize.c (canonicalize_file_name): Elide if the
51765         'canonicalize-lgpl' module is also used.
51766         * lib/canonicalize-lgpl.c: Undo last change.
51767         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
51768
51769 2008-04-20  Bruno Haible  <bruno@clisp.org>
51770
51771         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
51772         config.h. Provide _mkdir based fallback for mingw.
51773         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
51774         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
51775         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
51776         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
51777         rather than defining mkdir in config.h.
51778         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
51779         (gl_SYS_STAT_H_DEFAULTS): New macro.
51780         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
51781         HAVE_IO_H any more.
51782         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
51783         HAVE_DECL_MKDIR and HAVE_IO_H.
51784
51785 2008-04-20  Bruno Haible  <bruno@clisp.org>
51786
51787         * lib/isapipe.c: Port to native Windows platforms.
51788
51789 2008-04-20  Bruno Haible  <bruno@clisp.org>
51790
51791         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
51792
51793 2008-04-21  Eric Blake  <ebb9@byu.net>
51794
51795         Work around preprocessors that don't handle UINTMAX_MAX.
51796         * lib/memchr2.c (memchr2): Avoid embedded #if.
51797         Reported by Alain Guibert, fix suggested by Bruno Haible.
51798
51799 2008-04-21  Simon Josefsson  <simon@josefsson.org>
51800
51801         * doc/posix-functions/strftime.texi (strftime): Explain better
51802         Windows incompatibility.  Suggested by Micah Cowan
51803         <micah@cowan.name>.
51804
51805 2008-04-20  Bruno Haible  <bruno@clisp.org>
51806
51807         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
51808         unistr/u8-mblen.
51809
51810 2008-04-20  Bruno Haible  <bruno@clisp.org>
51811
51812         Fix test failure on platforms with non-GNU iconv.
51813         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
51814         (U_TO_U8): Use it, rather than u16_to_u8.
51815         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
51816         units at the end of the input string.
51817         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
51818
51819 2008-04-20  Bruno Haible  <bruno@clisp.org>
51820
51821         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
51822         when the resulting length is 0.
51823         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
51824
51825 2008-04-20  Bruno Haible  <bruno@clisp.org>
51826
51827         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
51828         works.
51829         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
51830
51831 2008-04-20  Bruno Haible  <bruno@clisp.org>
51832
51833         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
51834         * modules/tsearch-tests (configure.ac): Test for initstate function.
51835
51836 2008-04-20  Bruno Haible  <bruno@clisp.org>
51837
51838         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
51839         for nlink_t if missing.
51840         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
51841
51842 2008-04-19  Bruno Haible  <bruno@clisp.org>
51843
51844         Work around snprintf bug on Linux libc5.
51845         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
51846         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51847         gl_SNPRINTF_SIZE1.
51848         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51849         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
51850         that test failed.
51851         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51852         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
51853         * modules/snprintf (Files): Add m4/printf.m4.
51854         * modules/vsnprintf (Files): Likewise.
51855         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
51856         * doc/posix-functions/vsnprintf.texi: Likewise.
51857
51858 2008-04-19  Bruno Haible  <bruno@clisp.org>
51859
51860         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
51861         from 0.0058 to less than 10^-7.
51862
51863 2008-04-19  Bruno Haible  <bruno@clisp.org>
51864
51865         Fix rounding when a precision is given.
51866         * lib/vasnprintf.c (is_borderline): New function.
51867         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
51868         9...9x.
51869         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
51870         %e, %g.
51871         * tests/test-vasprintf-posix.c (test_function): Likewise.
51872         * tests/test-snprintf-posix.h (test_function): Likewise.
51873         * tests/test-sprintf-posix.h (test_function): Likewise.
51874         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
51875         * tests/test-printf-posix.h (test_function): Likewise.
51876         * tests/test-printf-posix.output: Update.
51877         Reported by John Darrington <john@darrington.wattle.id.au> via
51878         Ben Pfaff <blp@cs.stanford.edu>.
51879
51880 2008-04-18  Simon Josefsson  <simon@josefsson.org>
51881
51882         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
51883         Suggested by Bruno Haible <bruno@clisp.org>.
51884
51885 2008-04-17  Bruno Haible  <bruno@clisp.org>
51886
51887         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
51888         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
51889         implementation.
51890         Patch by Bruce Merry <bmerry@gmail.com>.
51891
51892 2008-04-17  Simon Josefsson  <simon@josefsson.org>
51893
51894         * doc/posix-functions/strftime.texi (strftime): Mention that %e
51895         doesn't work under Windows.
51896
51897 2008-04-16  Bruno Haible  <bruno@clisp.org>
51898
51899         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
51900         New macros.
51901         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
51902         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
51903         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
51904         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
51905         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
51906         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
51907         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
51908         macros.
51909         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
51910         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
51911         Northern Sotho, Uighur.
51912
51913 2008-04-16  Bruno Haible  <bruno@clisp.org>
51914
51915         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
51916         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
51917         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
51918         Reported by Daniel Bergström <daniel@octocode.com>.
51919
51920 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
51921             Bruno Haible  <bruno@clisp.org>
51922
51923         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
51924         function.
51925         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
51926         New functions, mostly extracted from gl_locale_name_default.
51927         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
51928
51929 2008-04-16  Eric Blake  <ebb9@byu.net>
51930
51931         Adjust strtod detection to catch glibc 2.7 bug.
51932         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
51933         Reported by John Gatewood Ham.
51934
51935 2008-04-16  Bruno Haible  <bruno@clisp.org>
51936
51937         Add tentative support for Linux libc5.
51938         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
51939         * lib/fpurge.c (fpurge): Likewise.
51940         * lib/freadable.c (freadable): Likewise.
51941         * lib/freadahead.c (freadahead): Likewise.
51942         * lib/freading.c (freading): Likewise.
51943         * lib/freadptr.c (freadptr): Likewise.
51944         * lib/freadseek.c (freadptrinc): Likewise.
51945         * lib/fseeko.c (rpl_fseeko): Likewise.
51946         * lib/fseterr.c (fseterr): Likewise.
51947         * lib/fwritable.c (fwritable): Likewise.
51948         * lib/fwriting.c (fwriting): Likewise.
51949         Reported by Alain Guibert <alguibert+bts@free.fr>.
51950
51951 2008-04-15  Bruno Haible  <bruno@clisp.org>
51952
51953         * modules/mathl (configure.ac): Define module indicator.
51954
51955 2008-04-15  Bruno Haible  <bruno@clisp.org>
51956
51957         * lib/logl.c (logl): Remove unused variables.
51958
51959 2008-04-15  Bruno Haible  <bruno@clisp.org>
51960
51961         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
51962         fails.
51963
51964 2008-04-15  Bruno Haible  <bruno@clisp.org>
51965
51966         * lib/trim.c (trim2): Fix argument of isspace() macro.
51967
51968 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
51969
51970         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
51971         to 0.
51972         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
51973
51974 2008-04-14  Bruno Haible  <bruno@clisp.org>
51975
51976         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
51977         AC_LANG_PROGRAM argument.
51978         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
51979         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
51980         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51981         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51982         * m4/math_h.m4 (gl_MATH_H): Likewise.
51983         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51984         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51985         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51986         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
51987         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51988         * m4/regex.m4 (gl_REGEX): Likewise.
51989         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
51990         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
51991         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51992         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
51993         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51994         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51995         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51996         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51997
51998 2008-04-14  Jim Meyering  <meyering@redhat.com>
51999
52000         test-strtod: fix typos: s/abs/fabs/
52001         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
52002
52003 2008-04-13  Bruno Haible  <bruno@clisp.org>
52004
52005         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
52006         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
52007         module is also used and while not building the reloc-wrapper.
52008
52009 2008-04-13  Bruno Haible  <bruno@clisp.org>
52010
52011         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
52012
52013 2008-04-13  Bruno Haible  <bruno@clisp.org>
52014
52015         Fix AIX compilation failure introduced on 2008-04-02.
52016         * tests/test-frexp.c (exp): Undefine before redefining.
52017         * tests/test-frexpl.c (exp): Likewise.
52018
52019 2008-04-13  Bruno Haible  <bruno@clisp.org>
52020
52021         Work around a HP-UX stdio bug.
52022         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
52023         * tests/test-ftello.c (main): Likewise.
52024         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
52025         * doc/posix-functions/ftello.texi: Likewise.
52026
52027 2008-04-13  Bruno Haible  <bruno@clisp.org>
52028
52029         Make test-signbit pass on HP-UX/hppa.
52030         * tests/test-signbit.c (minus_zerol): New variable.
52031         (test_signbitl): Use it.
52032
52033 2008-04-13  Bruno Haible  <bruno@clisp.org>
52034
52035         Make truncl work on OSF/1 4.0.
52036         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
52037         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52038         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52039         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
52040         HAVE_DECL_TRUNCL.
52041         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
52042         HAVE_DECL_TRUNCL.
52043         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
52044
52045 2008-04-13  Bruno Haible  <bruno@clisp.org>
52046
52047         * lib/unictype.h: Remove trailing comma from enumeration definitions.
52048
52049 2008-04-13  Bruno Haible  <bruno@clisp.org>
52050
52051         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
52052         expression, so as to avoid HP-UX 11 cc compiler bug.
52053
52054 2008-04-13  Bruno Haible  <bruno@clisp.org>
52055
52056         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
52057
52058 2008-04-13  Bruno Haible  <bruno@clisp.org>
52059
52060         * lib/git-merge-changelog.c: Remove empty declaration outside of
52061         functions.
52062
52063 2008-04-13  Bruno Haible  <bruno@clisp.org>
52064
52065         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
52066
52067 2008-04-13  Bruno Haible  <bruno@clisp.org>
52068
52069         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
52070         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
52071         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
52072         also if it exists but lacks definitions of the SHUT_* macros.
52073         * modules/sys_socket (Description): Update.
52074         Reported by Elbert Pol <e.pol@chello.nl>.
52075
52076 2008-04-13  Bruno Haible  <bruno@clisp.org>
52077
52078         * lib/localcharset.c (OS2): Don't redefine if already defined.
52079         Reported by Elbert Pol <e.pol@chello.nl>.
52080
52081 2008-04-13  Bruno Haible  <bruno@clisp.org>
52082
52083         * lib/binary-io.h [__EMX__]: Include <io.h>.
52084         Reported by Elbert Pol <e.pol@chello.nl>.
52085
52086 2008-04-12  Bruno Haible  <bruno@clisp.org>
52087
52088         * lib/fpucw.h: Enable the definitions also for x86_64.
52089         Needed for NetBSD/x86_64.
52090         Reported by Thomas Klausner <tk@giga.or.at>.
52091
52092 2008-04-12  Bruno Haible  <bruno@clisp.org>
52093
52094         * tests/test-strtod.c: Include isnand.h.
52095         (main): Use isnand instead of isnan.
52096         Reported by Jim Meyering.
52097
52098 2008-04-12  Bruno Haible  <bruno@clisp.org>
52099
52100         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
52101         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
52102
52103 2008-04-12  Jim Meyering  <meyering@redhat.com>
52104
52105         * m4/math_h.m4 (gl_MATH_H): Fix typos.
52106
52107 2008-04-12  Bruno Haible  <bruno@clisp.org>
52108
52109         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
52110         Reported by Elbert Pol <e.pol@chello.nl>.
52111
52112 2008-04-12  Eric Blake  <ebb9@byu.net>
52113
52114         Work around Solaris 10 math.h bug.
52115         * m4/math_h.m4 (gl_MATH_H): Check for bug.
52116         (gl_MATH_H_DEFAULTS): Set up default.
52117         * modules/math (Makefile.am): Replace new indicators.
52118         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
52119         * tests/test-math.c (main): Test this.
52120         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
52121         * doc/posix-headers/math.texi (math.h): Mention bug.
52122         Reported by Nelson H. F. Beebe and Jim Meyering.
52123
52124 2008-04-11  Bruno Haible  <bruno@clisp.org>
52125
52126         Adapt to future versions of Apple GCC.
52127         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
52128         Reported by Peter O'Gorman <peter@pogma.com>.
52129
52130 2008-04-11  Bruno Haible  <bruno@clisp.org>
52131
52132         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
52133
52134 2008-04-11  Bruno Haible  <bruno@clisp.org>
52135
52136         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
52137
52138         * modules/getaddrinfo-tests (Makefile.am): Define
52139         test_getaddrinfo_LDADD.
52140
52141 2008-04-11  Bruno Haible  <bruno@clisp.org>
52142
52143         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
52144         (init): Fix syntax error.
52145         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
52146         is declared.
52147
52148 2008-04-11  Bruno Haible  <bruno@clisp.org>
52149
52150         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
52151         * modules/glob (Depends-on): Add stdbool.
52152
52153 2008-04-11  Bruno Haible  <bruno@clisp.org>
52154
52155         * lib/trim.c: Include <string.h>.
52156
52157 2008-04-11  Eric Blake  <ebb9@byu.net>
52158
52159         Avoid compile failure on OS/2.
52160         * lib/regex_internal.h (internal_function): Disable optimization
52161         on OS/2 (__EMX__), where it caused compiler error.
52162         Reported by Elbert Pol.
52163
52164 2008-04-11  Bruno Haible  <bruno@clisp.org>
52165
52166         Flush the standard error stream before aborting. Needed on mingw.
52167         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
52168         * tests/test-array_list.c (ASSERT): Likewise.
52169         * tests/test-array_oset.c (ASSERT): Likewise.
52170         * tests/test-avltree_list.c (ASSERT): Likewise.
52171         * tests/test-avltree_oset.c (ASSERT): Likewise.
52172         * tests/test-avltreehash_list.c (ASSERT): Likewise.
52173         * tests/test-binary-io.c (ASSERT): Likewise.
52174         * tests/test-byteswap.c (ASSERT): Likewise.
52175         * tests/test-c-ctype.c (ASSERT): Likewise.
52176         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
52177         * tests/test-c-strcasestr.c (ASSERT): Likewise.
52178         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
52179         * tests/test-c-strstr.c (ASSERT): Likewise.
52180         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
52181         * tests/test-canonicalize.c (ASSERT): Likewise.
52182         * tests/test-carray_list.c (ASSERT): Likewise.
52183         * tests/test-ceilf1.c (ASSERT): Likewise.
52184         * tests/test-ceilf2.c (ASSERT): Likewise.
52185         * tests/test-ceill.c (ASSERT): Likewise.
52186         * tests/test-count-one-bits.c (ASSERT): Likewise.
52187         * tests/test-fbufmode.c (ASSERT): Likewise.
52188         * tests/test-fflush2.c (ASSERT): Likewise.
52189         * tests/test-floorf1.c (ASSERT): Likewise.
52190         * tests/test-floorf2.c (ASSERT): Likewise.
52191         * tests/test-floorl.c (ASSERT): Likewise.
52192         * tests/test-fopen.c (ASSERT): Likewise.
52193         * tests/test-fpending.c (ASSERT): Likewise.
52194         * tests/test-fprintf-posix.c (ASSERT): Likewise.
52195         * tests/test-fpurge.c (ASSERT): Likewise.
52196         * tests/test-freadable.c (ASSERT): Likewise.
52197         * tests/test-freadahead.c (ASSERT): Likewise.
52198         * tests/test-freading.c (ASSERT): Likewise.
52199         * tests/test-freadptr.c (ASSERT): Likewise.
52200         * tests/test-freadptr2.c (ASSERT): Likewise.
52201         * tests/test-freadseek.c (ASSERT): Likewise.
52202         * tests/test-freopen.c (ASSERT): Likewise.
52203         * tests/test-frexp.c (ASSERT): Likewise.
52204         * tests/test-frexpl.c (ASSERT): Likewise.
52205         * tests/test-fseek.c (ASSERT): Likewise.
52206         * tests/test-fseeko.c (ASSERT): Likewise.
52207         * tests/test-fstrcmp.c (ASSERT): Likewise.
52208         * tests/test-ftell.c (ASSERT): Likewise.
52209         * tests/test-ftello.c (ASSERT): Likewise.
52210         * tests/test-func.c (ASSERT): Likewise.
52211         * tests/test-fwritable.c (ASSERT): Likewise.
52212         * tests/test-fwriting.c (ASSERT): Likewise.
52213         * tests/test-getdelim.c (ASSERT): Likewise.
52214         * tests/test-getline.c (ASSERT): Likewise.
52215         * tests/test-i-ring.c (ASSERT): Likewise.
52216         * tests/test-iconv-utf.c (ASSERT): Likewise.
52217         * tests/test-iconv.c (ASSERT): Likewise.
52218         * tests/test-isfinite.c (ASSERT): Likewise.
52219         * tests/test-isnand.c (ASSERT): Likewise.
52220         * tests/test-isnanf.c (ASSERT): Likewise.
52221         * tests/test-isnanl.h (ASSERT): Likewise.
52222         * tests/test-ldexpl.c (ASSERT): Likewise.
52223         * tests/test-linked_list.c (ASSERT): Likewise.
52224         * tests/test-linkedhash_list.c (ASSERT): Likewise.
52225         * tests/test-localename.c (ASSERT): Likewise.
52226         * tests/test-lseek.c (ASSERT): Likewise.
52227         * tests/test-mbscasecmp.c (ASSERT): Likewise.
52228         * tests/test-mbscasestr1.c (ASSERT): Likewise.
52229         * tests/test-mbscasestr2.c (ASSERT): Likewise.
52230         * tests/test-mbscasestr3.c (ASSERT): Likewise.
52231         * tests/test-mbscasestr4.c (ASSERT): Likewise.
52232         * tests/test-mbschr.c (ASSERT): Likewise.
52233         * tests/test-mbscspn.c (ASSERT): Likewise.
52234         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
52235         * tests/test-mbspbrk.c (ASSERT): Likewise.
52236         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
52237         * tests/test-mbsrchr.c (ASSERT): Likewise.
52238         * tests/test-mbsspn.c (ASSERT): Likewise.
52239         * tests/test-mbsstr1.c (ASSERT): Likewise.
52240         * tests/test-mbsstr2.c (ASSERT): Likewise.
52241         * tests/test-mbsstr3.c (ASSERT): Likewise.
52242         * tests/test-memchr2.c (ASSERT): Likewise.
52243         * tests/test-memmem.c (ASSERT): Likewise.
52244         * tests/test-open.c (ASSERT): Likewise.
52245         * tests/test-printf-frexp.c (ASSERT): Likewise.
52246         * tests/test-printf-frexpl.c (ASSERT): Likewise.
52247         * tests/test-printf-posix.c (ASSERT): Likewise.
52248         * tests/test-quotearg.c (ASSERT): Likewise.
52249         * tests/test-rbtree_list.c (ASSERT): Likewise.
52250         * tests/test-rbtree_oset.c (ASSERT): Likewise.
52251         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
52252         * tests/test-round1.c (ASSERT): Likewise.
52253         * tests/test-roundf1.c (ASSERT): Likewise.
52254         * tests/test-roundl.c (ASSERT): Likewise.
52255         * tests/test-signbit.c (ASSERT): Likewise.
52256         * tests/test-sleep.c (ASSERT): Likewise.
52257         * tests/test-snprintf-posix.c (ASSERT): Likewise.
52258         * tests/test-snprintf.c (ASSERT): Likewise.
52259         * tests/test-sprintf-posix.c (ASSERT): Likewise.
52260         * tests/test-stat-time.c (ASSERT): Likewise.
52261         * tests/test-strcasestr.c (ASSERT): Likewise.
52262         * tests/test-strerror.c (ASSERT): Likewise.
52263         * tests/test-striconv.c (ASSERT): Likewise.
52264         * tests/test-striconveh.c (ASSERT): Likewise.
52265         * tests/test-striconveha.c (ASSERT): Likewise.
52266         * tests/test-strsignal.c (ASSERT): Likewise.
52267         * tests/test-strstr.c (ASSERT): Likewise.
52268         * tests/test-strtod.c (ASSERT): Likewise.
52269         * tests/test-trunc1.c (ASSERT): Likewise.
52270         * tests/test-trunc2.c (ASSERT): Likewise.
52271         * tests/test-truncf1.c (ASSERT): Likewise.
52272         * tests/test-truncf2.c (ASSERT): Likewise.
52273         * tests/test-truncl.c (ASSERT): Likewise.
52274         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
52275         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
52276         * tests/test-vasnprintf.c (ASSERT): Likewise.
52277         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
52278         * tests/test-vasprintf.c (ASSERT): Likewise.
52279         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
52280         * tests/test-vprintf-posix.c (ASSERT): Likewise.
52281         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
52282         * tests/test-vsnprintf.c (ASSERT): Likewise.
52283         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
52284         * tests/test-wcwidth.c (ASSERT): Likewise.
52285         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
52286         * tests/test-xprintf-posix.c (ASSERT): Likewise.
52287         * tests/test-xvasprintf.c (ASSERT): Likewise.
52288         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
52289         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
52290         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
52291         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
52292         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
52293         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
52294         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
52295         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
52296         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
52297         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
52298         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
52299         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
52300         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
52301         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
52302         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
52303         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
52304         * tests/unictype/test-block_list.c (ASSERT): Likewise.
52305         * tests/unictype/test-block_of.c (ASSERT): Likewise.
52306         * tests/unictype/test-block_test.c (ASSERT): Likewise.
52307         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
52308         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
52309         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
52310         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
52311         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
52312         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
52313         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
52314         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
52315         * tests/unictype/test-combining.c (ASSERT): Likewise.
52316         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
52317         * tests/unictype/test-digit.c (ASSERT): Likewise.
52318         * tests/unictype/test-mirror.c (ASSERT): Likewise.
52319         * tests/unictype/test-numeric.c (ASSERT): Likewise.
52320         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
52321         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
52322         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
52323         * tests/unictype/test-scripts.c (ASSERT): Likewise.
52324         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
52325         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
52326         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
52327         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
52328         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
52329         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
52330         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
52331         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
52332         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
52333         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
52334         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
52335         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
52336         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
52337         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
52338         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
52339         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
52340         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
52341         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
52342         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
52343         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
52344         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
52345         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
52346         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
52347         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
52348         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
52349         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
52350         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
52351         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
52352         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
52353         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
52354         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
52355         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
52356         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
52357         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
52358         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
52359         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
52360         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
52361         Reported by Eric Blake.
52362
52363 2008-04-11  Bruno Haible  <bruno@clisp.org>
52364
52365         * lib/wchar.in.h: Tweak comment.
52366
52367 2008-04-11  Bruno Haible  <bruno@clisp.org>
52368
52369         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
52370         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
52371         gl_COMMON.
52372         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
52373
52374 2008-04-11  Bruno Haible  <bruno@clisp.org>
52375
52376         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
52377
52378 2008-04-11  Simon Josefsson  <simon@josefsson.org>
52379
52380         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
52381         of attempting to use non-existing /dev/*random.  Based on patch
52382         from Adam Strzelecki <ono@java.pl> in
52383         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
52384
52385 2008-04-08  Bruno Haible  <bruno@clisp.org>
52386
52387         Add tentative support for emx+gcc.
52388         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
52389         * lib/fpurge.c (fpurge): Likewise.
52390         * lib/freadable.c (freadable): Likewise.
52391         * lib/freadahead.c (freadahead): Likewise.
52392         * lib/freading.c (freading): Likewise.
52393         * lib/freadptr.c (freadptr): Likewise.
52394         * lib/freadseek.c (freadptrinc): Likewise.
52395         * lib/fseeko.c (rpl_fseeko): Likewise.
52396         * lib/fseterr.c (fseterr): Likewise.
52397         * lib/fwritable.c (fwritable): Likewise.
52398         * lib/fwriting.c (fwriting): Likewise.
52399         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
52400
52401 2008-04-09  Eric Blake  <ebb9@byu.net>
52402
52403         Avoid some autoconf warnings.
52404         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
52405         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
52406         * m4/afs.m4 (gl_AFS): Likewise.
52407         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
52408         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
52409         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52410         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
52411         (gl_INTEGER_TYPE_SUFFIX): Likewise.
52412         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
52413         (AC_CHECK_DECLS_ONCE): Likewise.
52414         Rename file...
52415         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
52416         gnulib-tool requires autoconf 2.59 or better.
52417         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
52418
52419 2008-04-08  Eric Blake  <ebb9@byu.net>
52420
52421         Use 'git describe --match' if present (added in git 1.5.5).
52422         * build-aux/git-version-gen: Limit result to tags that match 'v*'
52423         if possible.
52424
52425 2008-04-08  Bruno Haible  <bruno@clisp.org>
52426
52427         Add tentative support for OpenServer.
52428         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
52429         _ptr, _cnt.
52430         * lib/fpurge.c (fpurge): Likewise.
52431         * lib/freadable.c (freadable): Likewise.
52432         * lib/freadahead.c (freadahead): Likewise.
52433         * lib/freading.c (freading): Likewise.
52434         * lib/freadptr.c (freadptr): Likewise.
52435         * lib/freadseek.c (freadptrinc): Likewise.
52436         * lib/fseeko.c (rpl_fseeko): Likewise.
52437         * lib/fseterr.c (fseterr): Likewise.
52438         * lib/fwritable.c (fwritable): Likewise.
52439         * lib/fwriting.c (fwriting): Likewise.
52440         Reported by Roger Cornelius <rac@tenzing.org> and
52441         Brian K. White <brian@aljex.com>.
52442
52443 2008-04-06  Jim Meyering  <meyering@redhat.com>
52444
52445         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
52446
52447 2008-04-06  Bruno Haible  <bruno@clisp.org>
52448
52449         Avoid possible error with non-ASCII bytes in UTF-8 locales.
52450         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
52451         * tests/test-printf-posix.sh: Likewise.
52452         * tests/test-vfprintf-posix.sh: Likewise.
52453         * tests/test-vprintf-posix.sh: Likewise.
52454         * tests/test-xprintf-posix.sh: Likewise.
52455
52456 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52457
52458         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
52459         hide error from 'ls', needed on OS/2.
52460         Report by Elbert Pol <elbert.pol@gmail.com>.
52461
52462 2008-04-04  Eric Blake  <ebb9@byu.net>
52463
52464         Make test-fseeko.c failures meaningful.
52465         * tests/test-fseeko.c: Print line number on failure.
52466         * tests/test-fseek.c: Likewise.
52467         Reported by Nelson H. F. Beebe.
52468
52469         Improve strtod bug detection check.
52470         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
52471         required for Solaris 10.
52472         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
52473
52474 2008-04-04  Bruno Haible  <bruno@clisp.org>
52475
52476         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
52477         by m4/setenv.m4.
52478
52479 2008-04-03  Eric Blake  <ebb9@byu.net>
52480
52481         Ensure sane .version contents.
52482         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
52483         version string.
52484         * build-aux/git-version-gen: Improve documentation.
52485
52486         Make GNU make output nicer.
52487         * top/GNUmakefile [!_have-Makefile]: Add dependency on
52488         MAKECMDGOALS to enforce message for all command line targets.  Set
52489         srcdir for use in maint.mk.
52490
52491         Another maintainer tweak.
52492         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
52493         a target that regenerates version.
52494
52495 2008-04-03  Jim Meyering  <meyering@redhat.com>
52496
52497         vc-list-files: don't cause coreutils "make po-check" failure
52498         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
52499
52500 2008-04-03  Eric Blake  <ebb9@byu.net>
52501
52502         Allow VPATH usage of vc-list-files.
52503         * build-aux/vc-list-files (scriptversion): Add timestamp.
52504         (options): Add --help, --version, -C.
52505         (CVS): Support installed cvsu.
52506
52507 2008-04-02  Bruno Haible  <bruno@clisp.org>
52508
52509         Avoid some "statement with no effect" warnings from gcc.
52510         * tests/test-wctype.c (main): Explicitly ignore unused values.
52511         Reported by Jim Meyering.
52512
52513 2008-04-02  Jim Meyering  <meyering@redhat.com>
52514
52515         Avoid some warnings from "gcc -Wshadow".
52516         * tests/test-frexp.c (exp): Define to a different identifier.
52517         * tests/test-frexpl.c (exp): Likewise.
52518
52519 2008-04-03  Jim Meyering  <meyering@redhat.com>
52520
52521         bootstrap: remove dangling *.[ch] symlinks from lib
52522         * build-aux/bootstrap [dangling symlink removal]: Move find's
52523         -depth option to precede all others, to avoid a warning.
52524         Remove *.[ch] files too, and from "$source_base" (usually lib/).
52525
52526 2008-04-02  Bruno Haible  <bruno@clisp.org>
52527
52528         Avoid some warnings from "gcc -Wshadow".
52529         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
52530         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
52531         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
52532         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
52533         Reported by Jim Meyering.
52534
52535 2008-04-01  Bruno Haible  <bruno@clisp.org>
52536
52537         Fix test to work on IRIX 6.5 with cc.
52538         * tests/test-math.c (numeric_equal): New function.
52539         (main): Use it.
52540
52541 2008-04-01  Bruno Haible  <bruno@clisp.org>
52542
52543         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
52544
52545 2008-04-01  Bruno Haible  <bruno@clisp.org>
52546
52547         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
52548         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52549         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
52550         (Depends-on): Remove math.
52551
52552         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
52553         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52554         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
52555         (Depends-on): Remove math.
52556
52557         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
52558         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52559         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
52560         (Depends-on): Remove math.
52561         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
52562         (Depends-on): Remove math.
52563
52564         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
52565         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52566         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
52567         (Depends-on): Remove math.
52568         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
52569         (Depends-on): Remove math.
52570
52571         * tests/test-round1.c: Include nan.h.
52572         (main): Use NaNd instead of NAN.
52573         * modules/round-tests (Files): Add tests/nan.h.
52574
52575         * tests/test-trunc1.c: Include nan.h.
52576         (main): Use NaNd instead of NAN.
52577         * modules/trunc-tests (Files): Add tests/nan.h.
52578
52579         * tests/test-roundf1.c: Include nan.h.
52580         (main): Use NaNf instead of NAN.
52581         * modules/roundf-tests (Files): Add tests/nan.h.
52582
52583         * tests/test-truncf1.c: Include nan.h.
52584         (main): Use NaNf instead of NAN.
52585         * modules/truncf-tests (Files): Add tests/nan.h.
52586
52587         * tests/test-ceilf1.c: Include nan.h.
52588         (main): Use NaNf instead of NAN.
52589         * modules/ceilf-tests (Files): Add tests/nan.h.
52590
52591         * tests/test-floorf1.c: Include nan.h.
52592         (main): Use NaNf instead of NAN.
52593         * modules/floorf-tests (Files): Add tests/nan.h.
52594
52595         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
52596         (main): Use NaNf instead of NAN.
52597         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
52598
52599         * tests/test-isnand.c: Include nan.h instead of <math.h>.
52600         (main): Use NaNd instead of NAN.
52601         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
52602
52603         * tests/test-frexp.c: Include nan.h.
52604         (main): Use NaNd instead of NAN.
52605         * modules/frexp-tests (Files): Add tests/nan.h.
52606
52607         * lib/isnan.c: Don't include <math.h>.
52608         (FUNC): Don't use NAN macro.
52609         * modules/isnand-nolibm (Depends-on): Remove math.
52610         * modules/isnanf-nolibm (Depends-on): Remove math.
52611         * modules/isnanl (Depends-on): Remove math.
52612         * modules/isnanl-nolibm (Depends-on): Remove math.
52613
52614         * tests/nan.h: New file.
52615
52616 2008-04-01  Eric Blake  <ebb9@byu.net>
52617
52618         Fix typos.
52619         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
52620         values to be the right type.
52621
52622         For now, cater to gnulib strtod inaccuracies.
52623         * tests/test-strtod.c (main): Allow 1-ulp error on expected
52624         fractional results.  While not as nice from a QoI perspective, it
52625         is a quicker patch than correctly implementing decimal to binary
52626         rounding.
52627
52628 2008-03-31  Eric Blake  <ebb9@byu.net>
52629
52630         Guarantee a definition of NAN.
52631         * lib/math.in.h (NAN): Define if missing.
52632         * tests/test-math.c (main): Test it.
52633         * doc/posix-headers/math.texi (math.h): Document this.
52634         * lib/isnan.c (rpl_isnand): Use it.
52635         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
52636         * tests/test-floorf1.c (NaN): Likewise.
52637         * tests/test-frexp.c (NaN): Likewise.
52638         * tests/test-isnand.c (NaN): Likewise.
52639         * tests/test-isnanf.c (NaN): Likewise.
52640         * tests/test-round1.c (NaN): Likewise.
52641         * tests/test-roundf1.c (NaN): Likewise.
52642         * tests/test-snprintf-posix.h (NaN): Likewise.
52643         * tests/test-sprintf-posix.h (NaN): Likewise.
52644         * tests/test-trunc1.c (NaN): Likewise.
52645         * tests/test-truncf1.c (NaN): Likewise.
52646         * tests/test-vasnprintf-posix.c (NaN): Likewise.
52647         * tests/test-vasprintf-posix.c (NaN): Likewise.
52648         * modules/isnand-nolibm (Depends-on): Add math.
52649         * modules/isnanf-nolibm (Depends-on): Likewise.
52650         * modules/isnanl (Depends-on): Likewise.
52651         * modules/isnanl-nolibm (Depends-on): Likewise.
52652         * modules/snprintf-posix-tests (Depends-on): Likewise.
52653         * modules/sprintf-posix-tests (Depends-on): Likewise.
52654         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
52655         * modules/vsprintf-posix-tests (Depends-on): Likewise.
52656         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
52657         * modules/vasprintf-posix-tests (Depends-on): Likewise.
52658
52659 2008-03-31  Bruno Haible  <bruno@clisp.org>
52660
52661         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
52662         * doc/posix-functions/strtod.texi: Likewise.
52663
52664 2008-03-31  Bruno Haible  <bruno@clisp.org>
52665
52666         * tests/test-strtod.c (main): Don't use C99 syntax.
52667
52668 2008-03-31  Bruno Haible  <bruno@clisp.org>
52669
52670         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
52671         Reported by Eric Blake.
52672
52673 2008-03-31  Jim Meyering  <meyering@redhat.com>
52674
52675         Don't compare actual signbit return values.
52676         * tests/test-strtod.c (main): Rather, compare only their
52677         zero/non-zero nature.
52678
52679 2008-03-31  Eric Blake  <ebb9@byu.net>
52680
52681         More strtod documentation.
52682         * doc/posix-functions/strtod.texi (strtod): Interpret more test
52683         failures as distinct bugs.
52684
52685 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52686
52687         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
52688         Problem reported by Erik Benada in
52689         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
52690
52691 2008-03-30  Bruno Haible  <bruno@clisp.org>
52692
52693         * tests/test-strtod.c: Add comments about which assertion fails on which
52694         platform.
52695         * doc/posix-functions/strtod.texi: Add info about many more platforms.
52696
52697 2008-03-30  Eric Blake  <ebb9@byu.net>
52698
52699         Test signbit behavior on zeros.
52700         * tests/test-signbit.c (test_signbitf): Add tests for zero.
52701         (test_signbitd, test_signbitl): Likewise.
52702
52703         More strtod touchups.
52704         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
52705         sign of negative underflow, for now.  Use .5, not .1.
52706         * doc/posix-functions/strtod.texi (strtod): Mention these
52707         limitations.
52708         Reported by Jim Meyering.
52709
52710 2008-03-30  Bruno Haible  <bruno@clisp.org>
52711
52712         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
52713         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
52714
52715 2008-03-30  Bruno Haible  <bruno@clisp.org>
52716
52717         Avoid failure when attempting to return empty iconv results on some
52718         platforms.
52719         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
52720         allocation, don't report ENOMEM when the resulting string is empty.
52721
52722 2008-03-30  Bruno Haible  <bruno@clisp.org>
52723
52724         Fix buffer overrun.
52725         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
52726         Don't consider the width for tmp_length. Check count against tmp_length
52727         before doing the padding. Ensure enough allocation during padding.
52728
52729 2008-03-30  Eric Blake  <ebb9@byu.net>
52730
52731         strtod touchups.
52732         * lib/strtod.c (strtod): Avoid compiler warnings.
52733         Reported by Jim Meyering.
52734
52735 2008-03-30  Bruno Haible  <bruno@clisp.org>
52736
52737         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
52738         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
52739         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
52740         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
52741         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
52742         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
52743         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
52744         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
52745
52746         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
52747         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
52748         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
52749         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
52750         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
52751         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
52752         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
52753         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
52754
52755         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
52756         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
52757         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
52758         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
52759         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
52760         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52761         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
52762         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
52763
52764         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
52765         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
52766
52767         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
52768         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
52769
52770         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
52771         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
52772
52773         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
52774         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
52775         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
52776
52777         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
52778         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
52779         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
52780
52781         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
52782         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
52783         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
52784
52785         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
52786         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
52787         * modules/vasprintf (Depends-on): Add EOVERFLOW.
52788
52789         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
52790         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
52791         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
52792         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
52793         (Depends-on): Add EOVERFLOW.
52794         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
52795         (Depends-on): Add EOVERFLOW.
52796         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52797         (Depends-on): Add EOVERFLOW.
52798         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52799         (Depends-on): Add EOVERFLOW.
52800         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52801         (Depends-on): Add EOVERFLOW.
52802         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52803         (Depends-on): Add EOVERFLOW.
52804         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52805         (Depends-on): Add EOVERFLOW.
52806         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52807         (Depends-on): Add EOVERFLOW.
52808
52809         * lib/sprintf.c (EOVERFLOW): Remove fallback.
52810         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
52811         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
52812
52813         * lib/snprintf.c (EOVERFLOW): Remove fallback.
52814         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
52815         * modules/snprintf (Depends-on): Add EOVERFLOW.
52816
52817         * lib/poll.c (EOVERFLOW): Remove fallback.
52818         * modules/poll (Depends-on): Add EOVERFLOW.
52819
52820         * lib/getugroups.c (EOVERFLOW): Remove fallback.
52821         * modules/getugroups (Depends-on): Add EOVERFLOW.
52822
52823         * lib/getdelim.c (EOVERFLOW): Remove fallback.
52824         * modules/getdelim (Depends-on): Add EOVERFLOW.
52825
52826         * lib/ftell.c (EOVERFLOW): Remove fallback.
52827         * modules/ftell (Depends-on): Add EOVERFLOW.
52828
52829         * lib/fprintf.c (EOVERFLOW): Remove fallback.
52830         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
52831         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
52832
52833         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
52834
52835         * modules/EOVERFLOW-tests: New file.
52836         * tests/test-EOVERFLOW.c: New file.
52837
52838         * modules/EOVERFLOW: New file.
52839         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
52840
52841 2008-03-30  Bruno Haible  <bruno@clisp.org>
52842
52843         Fix bug introduced on 2007-06-10.
52844         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
52845         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
52846
52847 2008-03-30  Bruno Haible  <bruno@clisp.org>
52848
52849         Improve freadseek's efficiency after ungetc.
52850         * lib/freadseek.c: Include freadahead.h.
52851         (freadptrinc): New function, extracted from freadseek.
52852         (freadseek): Use it in a loop. Use freadahead to determine the number
52853         of loop iterations.
52854         * modules/freadseek (Depends-on): Add freadahead.
52855         (configure.ac): Require AC_C_INLINE.
52856
52857 2008-03-30  Bruno Haible  <bruno@clisp.org>
52858
52859         * lib/freadseek.c (freadseek): Don't ignore the return value of
52860         freadptr.
52861
52862 2008-03-29  Eric Blake  <ebb9@byu.net>
52863
52864         Add hex float support.
52865         * modules/strtod (Depends-on): Add c-ctype.
52866         (Link): Mention POW_LIB.
52867         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
52868         whitespace between 'e' and exponent.
52869         * tests/test-strtod.c (main): Enable hex float tests.
52870         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
52871         now provides.
52872
52873         Document various strtod bugs, with some fixes.
52874         * doc/posix-functions/strtod.texi (strtod): Document bugs with
52875         "-0x", "inf", "nan", and hex constants.
52876         * doc/posix-functions/atof.texi (atof): Likewise.
52877         * modules/stdlib (Makefile.am): Support strtod.
52878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
52879         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
52880         detect additional strtod bugs.
52881         * lib/stdlib.in.h (rpl_strtod): Add declarations.
52882         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
52883         bool where appropriate.  Parse 'inf' and 'nan'.
52884         * tests/test-strtod.c: New file.
52885         * modules/strtod (Depends-on): Add stdbool, stdlib.
52886         (configure.ac): Turn on module indicator.
52887         * modules/strtod-tests: New module.
52888
52889 2008-03-29  Eric Blake  <ebb9@byu.net>
52890
52891         Fix ftell on mingw.
52892         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
52893         * modules/ftell-tests (Depends-on): Add binary-io.
52894         * modules/ftello-tests (Depends-on): Likewise.
52895         * tests/test-ftell.c (main): Enhance test to cover behavior after
52896         ungetc.  Enforce binary mode.
52897         * tests/test-ftello.c (main): Likewise.
52898
52899         Pass test-freadseek on cygwin.
52900         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
52901         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
52902         ungetc buffer.
52903
52904         * tests/test-fflush2.c (main): Fix typo.
52905
52906 2008-03-29  Bruno Haible  <bruno@clisp.org>
52907
52908         * tests/test-fflush2.c (main): Temporarily disable the contents of
52909         this test.
52910         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
52911         Reported by Eric Blake.
52912
52913 2008-03-28  Simon Josefsson  <simon@josefsson.org>
52914
52915         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
52916         (GC_SHA224_DIGEST_SIZE): Add.
52917
52918         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
52919         (gc_hash_digest_length): Likewise.
52920         (gc_hash_buffer): Likewise.
52921
52922 2008-03-25  Bruno Haible  <bruno@clisp.org>
52923
52924         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
52925         detail which gettext release to use.
52926         Reported by Simon Josefsson.
52927
52928 2008-03-26  Jim Meyering  <meyering@redhat.com>
52929
52930         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
52931         * modules/gnumakefile (clean-GNUmakefile): Also, use
52932         test ... && ... || : syntax rather than if-then ... fi.
52933
52934         gnumakefile: Don't double-quote-expand $(VPATH) value.
52935         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
52936
52937 2008-03-24  Eric Blake  <ebb9@byu.net>
52938
52939         Alter GNUmakefile to install into top directory.
52940         * modules/maintainer-makefile: Split, and add dependency...
52941         * modules/gnumakefile: to this new module.
52942         * build-aux/GNUmakefile: Move...
52943         * top/GNUmakefile: ...here.
52944         * build-aux/maint.mk: Move...
52945         * top/maint.mk: ...here.
52946         * MODULES.html.sh (Support for maintaining...): Document new
52947         module.
52948
52949 2008-03-23  Bruno Haible  <bruno@clisp.org>
52950
52951         * gnulib-tool: New options --vc-files, --no-vc-files.
52952         (func_usage): Document them.
52953         (vc_files): New variable.
52954         (func_import): Consider vc_files.
52955         (func_create_testdir): Set vc_files to empty.
52956         Suggested by Jim Meyering and Karl Berry.
52957
52958 2008-03-23  Bruno Haible  <bruno@clisp.org>
52959
52960         Fix regex compilation error on HP-UX 11.
52961         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
52962         * modules/regex (Files): Add m4/mbstate_t.m4.
52963         Reported by Ton Voon <ton.voon@altinity.com>.
52964
52965 2008-03-23  Bruno Haible  <bruno@clisp.org>
52966
52967         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
52968
52969 2008-03-23  Eric Blake  <ebb9@byu.net>
52970             Bruno Haible  <bruno@clisp.org>
52971
52972         Install files from top/ in the destination directory.
52973         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52974         augmentation also for the files from top/.
52975         (func_import, func_create_testdir): Rewrite file names:
52976         top/filename -> filename.
52977
52978 2008-03-23  Bruno Haible  <bruno@clisp.org>
52979
52980         Tweak "gnulib --version" output.
52981         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
52982
52983 2008-03-23  Bruno Haible  <bruno@clisp.org>
52984
52985         Tweak "gnulib --version" output.
52986         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
52987         rather than contents of ChangeLog, when possible.
52988
52989 2008-03-21  Eric Blake  <ebb9@byu.net>
52990
52991         More --version tweaks.
52992         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
52993         date of last ChangeLog entry.
52994
52995 2008-03-21  Jim Meyering  <meyering@redhat.com>
52996
52997         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
52998
52999 2008-03-20  Eric Blake  <ebb9@byu.net>
53000
53001         VPATH fix.
53002         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
53003
53004 2008-03-20  Simon Josefsson  <simon@josefsson.org>
53005
53006         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
53007         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
53008
53009 2008-03-20  Eric Blake  <ebb9@byu.net>
53010
53011         Sync GNUmakefile with coreutils.
53012         * build-aux/GNUmakefile (have-Makefile): Rename...
53013         (_have-Makefile): ...to this, for namespace consideration.
53014         (GNUmakefile.cfg): Include, if present.
53015         (_autoreconf): Define a default.
53016         (_is-dist-target): New rule for rebuilds to pick up intra-release
53017         version.
53018         (maint-cfg.mk): Rename...
53019         (cfg.mk): ...to this.
53020
53021 2008-03-18  Jim Meyering  <meyering@redhat.com>
53022
53023         New script and module: mktempd
53024         * MODULES.html.sh (maint+release support): Add mktempd.
53025         * build-aux/mktempd: New file.
53026         * modules/mktempd: New file.
53027
53028 2008-03-15  Jim Meyering  <meyering@redhat.com>
53029
53030         Undo last change.
53031         * lib/sha1.c, lib/md5.c: 63 != ~63.
53032         Reported by Andreas Schwab.
53033
53034         sha1.c, md5.c: Hoist a redundant expression.
53035         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
53036         "ctx->buflen" only once, before calling *_process_block.
53037         * lib/md5.c (md5_process_bytes): Likewise.
53038
53039 2008-03-14  Eric Blake  <ebb9@byu.net>
53040
53041         Bump copyright year in files generated by gnulib-tool.
53042         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
53043         gnulib-tool, rather than hard-coding it.
53044
53045         Fix 'gnulib-tool --version' output to work with git.
53046         * gnulib-tool (func_gnulib_dir): New function, extracted from...
53047         (startup): ...here.
53048         (func_version): Use it to invoke git-version-gen, rather than
53049         relying on CVS keyword expansion.  Modernize wording.
53050         (cvsdatestamp, last_checkin_date, version): Kill unused
53051         variables.
53052
53053 2008-03-12  Jim Meyering  <meyering@redhat.com>
53054
53055         Recognize optional cast of the argument to free.
53056         * build-aux/useless-if-before-free: Update regexps.
53057
53058         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
53059
53060 2008-03-11  Bruno Haible  <bruno@clisp.org>
53061
53062         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
53063         by a single package.
53064         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
53065         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
53066         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
53067         Reported by Sam Steingold <sds@gnu.org>.
53068
53069 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53070
53071         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
53072         repositories.
53073
53074 2008-03-11  Bruno Haible  <bruno@clisp.org>
53075
53076         Avoid conflicts between local macro definitions.
53077         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
53078         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
53079
53080 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
53081             Bruno Haible  <bruno@clisp.org>
53082
53083         Make va_copy work with some version of xlc on AIX 5.1.
53084         * lib/stdarg.in.h: New file.
53085         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
53086         On AIX, use a <stdarg.h> file substitute.
53087         * modules/stdarg (Files): Add lib/stdarg.in.h.
53088         (Depends-on): Add include_next.
53089         (Makefile.am): Build a stdarg.h substitute if requested.
53090         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
53091
53092 2008-03-10  Bruno Haible  <bruno@clisp.org>
53093
53094         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
53095         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53096         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53097
53098 2008-03-10  Bruno Haible  <bruno@clisp.org>
53099
53100         * modules/stdlib (Depends-on): Add include_next, remove
53101         absolute-header.
53102
53103 2008-03-09  Bruno Haible  <bruno@clisp.org>
53104
53105         * lib/freadahead.h (freadahead): Document more precisely.
53106         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
53107         the sum of both buffer sizes.
53108         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
53109         * NEWS: Document the change.
53110
53111 2008-03-09  Bruno Haible  <bruno@clisp.org>
53112
53113         Extend freadptr to return also the buffer size.
53114         * lib/freadptr.h (freadptr): Add sizep argument.
53115         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
53116         (freadptr): Add sizep argument. Determine buffer size like freadahead
53117         does.
53118         * tests/test-freadptr.c: Don't include freadahead.h.
53119         (main): Adapt for new calling convention of freadptr.
53120         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
53121         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
53122         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
53123         tests/test-freadptr2.sh.
53124         (Depends): Remove freadahead.
53125         (TESTS): Add test-freadptr2.sh.
53126         (check_PROGRAMS): Add test-freadptr2.
53127
53128 2008-03-09  Bruno Haible  <bruno@clisp.org>
53129
53130         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
53131         Report and solution by Simon Josefsson.
53132
53133 2008-03-06  Bruno Haible  <bruno@clisp.org>
53134
53135         Make fflush after ungetc work on BSD platforms.
53136         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
53137         * tests/test-fflush2.c: New file.
53138         * tests/test-fflush2.sh: New file.
53139         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
53140         tests/test-fflush2.c.
53141         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
53142         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
53143
53144 2008-03-06  Eric Blake  <ebb9@byu.net>
53145
53146         Likewise for ftello.
53147         * modules/ftello (Dependencies): Add extensions.
53148         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
53149
53150 2008-03-06  Bruno Haible  <bruno@clisp.org>
53151
53152         * modules/fseeko (Dependencies): Add extensions.
53153         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
53154         Needed on glibc systems.
53155
53156 2008-03-06  Bruno Haible  <bruno@clisp.org>
53157
53158         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
53159         email address.
53160         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53161
53162 2008-03-06  Bruno Haible  <bruno@clisp.org>
53163
53164         * users.txt: Add libgnupdf.
53165
53166 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53167
53168         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
53169         (Header File Substitutes, Function Substitutes,
53170         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
53171         (Build robot for gnulib): Fix typo.
53172
53173 2008-03-06  Bruno Haible  <bruno@clisp.org>
53174
53175         * doc/gnulib-tool.texi (VCS Issues): Small updates.
53176         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53177
53178 2008-03-06  Bruno Haible  <bruno@clisp.org>
53179
53180         * doc/func.texi: New file, extracted from doc/gnulib.texi.
53181         * doc/gnulib.texi: Include it.
53182
53183 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53184
53185         * modules/func (License): Change license to unlimited; there was
53186         no LGPL parts in the module anyway.
53187
53188 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53189
53190         * modules/__func__: Renamed to modules/func.
53191         * modules/__func__-tests: Renamed to modules/func-tests.
53192         * tests/test-__func__.c: Renamed to tests/test-func.c.
53193         * m4/__func__.m4: Renamed to m4/func.m4.
53194         * doc/gnulib.texi (__func__): Section renamed to func.
53195         Suggested by Eric Blake <ebb9@byu.net>.
53196
53197 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53198
53199         * doc/gnulib.texi (__func__): Use C99 terminology when talking
53200         about __func__.  Make example self-contained.  Suggested by Eric
53201         Blake <ebb9@byu.net>.
53202
53203         * tests/test-__func__.c (main): Avoid extraneous () around __func.
53204         Suggested by Eric Blake <ebb9@byu.net>.
53205
53206 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53207
53208         * modules/__func__: New file.
53209         * modules/__func__-tests: New file.
53210         * tests/test-__func__.c: New file.
53211         * m4/__func__.m4: New file.
53212         * doc/gnulib.texi (__func__): Document __func__ module.
53213
53214 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53215
53216         * modules/byteswap (License): Re-license as LGPLv2+.
53217
53218 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53219
53220         * doc/Makefile: Add pdf target.
53221
53222 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53223
53224         * modules/inline (License): Use 'unlimited', since there are only
53225         *.m4 files in this module.
53226
53227 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53228             Bruno Haible  <bruno@clisp.org>
53229
53230         Add support for HP C 7.1 on OpenVMS 8.3.
53231         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
53232
53233 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53234
53235         Update VMS specifics.
53236         * lib/getopt.c [VMS]: Remove include of unixlib.h.
53237
53238 2008-03-02  Jim Meyering  <meyering@redhat.com>
53239
53240         Remove the last dependency on the "free" module.
53241         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
53242         Reported by Bob Proulx.
53243
53244         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
53245
53246         Remove useless "if" tests before free.  Deprecate "free" module.
53247         * doc/posix-functions/free.texi: Mention that this
53248         module is no longer useful.
53249         * modules/free (Notice): Say this module is obsolete.
53250         * modules/readutmp (Depends-on): Remove free.
53251         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
53252         * lib/putenv.c (putenv): Likewise.
53253         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
53254         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
53255         * tests/test-c-strcasestr.c (main): Likewise.
53256         * tests/test-c-strstr.c (main): Likewise.
53257         * tests/test-mbscasestr1.c (main): Likewise.
53258         * tests/test-mbscasestr2.c (main): Likewise.
53259         * tests/test-mbsstr1.c (main): Likewise.
53260         * tests/test-mbsstr2.c (main): Likewise.
53261         * tests/test-memmem.c (main): Likewise.
53262         * tests/test-strcasestr.c (main): Likewise.
53263         * tests/test-striconv.c (main): Likewise.
53264         * tests/test-striconveh.c (main): Likewise.
53265         * tests/test-striconveha.c (main): Likewise.
53266         * tests/test-strstr.c (main): Likewise.
53267
53268         * build-aux/git-version-gen: Adjust a comment and the Usage string.
53269
53270         bootstrap: sync from coreutils again
53271         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
53272
53273 2008-03-01  Jim Meyering  <meyering@redhat.com>
53274
53275         bootstrap: sync from coreutils
53276         * build-aux/bootstrap (update_po_files): Copy a .po file into place
53277         also when the target doesn't exist.
53278
53279 2008-03-01  Eric Blake  <ebb9@byu.net>
53280
53281         Fix bugs in last patch.
53282         * lib/memchr2.c (memchr2): Fix typo.
53283         * tests/test-memchr2.c: Test previous bug, and don't use GNU
53284         extension.
53285         Reported by Bruce Korb.
53286
53287         New module 'memchr2'.
53288         * modules/memchr2: New file.
53289         * modules/memchr2-tests: Likewise.
53290         * lib/memchr2.h: Likewise.
53291         * lib/memchr2.c: Likewise, based on memchr.c.
53292         * tests/test-memchr2.c: New test.
53293         * MODULES.html.sh (String handling): Add memchr2.
53294
53295 2008-02-29  Bruno Haible  <bruno@clisp.org>
53296
53297         * modules/freadseek-tests: New file.
53298         * tests/test-freadseek.sh: New file.
53299         * tests/test-freadseek.c: New file.
53300
53301         New module 'freadseek'.
53302         * modules/freadseek: New file.
53303         * lib/freadseek.h: New file.
53304         * lib/freadseek.c: New file.
53305         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
53306
53307 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
53308
53309         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
53310         wydawca.
53311
53312         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
53313         program_invocation_name and program_invocation_short_name are
53314         present.
53315
53316 2008-02-28  Bruno Haible  <bruno@clisp.org>
53317
53318         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
53319         * tests/test-freadptr.sh: Also test non-seekable stdin.
53320
53321 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
53322
53323         * build-aux/bootstrap (source_base, m4_base)
53324         (doc_base, tests_base): New variables.
53325         (gnulib_tool_options): Do not hardcode base directories, use
53326         the above variables instead.
53327
53328 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
53329
53330         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
53331
53332 2008-02-28  Bruno Haible  <bruno@clisp.org>
53333
53334         * modules/freadptr-tests: New file.
53335         * tests/test-freadptr.sh: New file.
53336         * tests/test-freadptr.c: New file.
53337
53338         New module 'freadptr'.
53339         * modules/freadptr: New file.
53340         * lib/freadptr.h: New file.
53341         * lib/freadptr.c: New file.
53342         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
53343
53344 2008-02-26  Karl Berry  <karl@freefriends.org>
53345
53346         Sync from Libtool:
53347         * libltdl/argz.c (argz_add, argz_count): New functions.
53348         * libltdl/argz.in.h: Declare them.
53349         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
53350
53351 2008-02-22  Bruno Haible  <bruno@clisp.org>
53352
53353         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
53354         is a pointer type.  Needed for HP-UX 10.
53355         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
53356         * doc/posix-functions/gmtime_r.texi: Likewise.
53357         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53358
53359 2008-02-24  Bruno Haible  <bruno@clisp.org>
53360
53361         * modules/environ-tests: New file.
53362         * tests/test-environ.c: New file.
53363
53364         New module 'environ'.
53365         * modules/environ: New file.
53366         * lib/unistd.in.h (environ): New declaration.
53367         * m4/environ.m4: New file.
53368         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
53369         after use.
53370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
53371         HAVE_DECL_ENVIRON.
53372         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
53373         HAVE_DECL_ENVIRON.
53374         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
53375         wrong claim that 'environ' is missing on some systems.
53376         * modules/execute (Depends-on): Add environ.
53377         * lib/execute.c (environ): Remove fallback declaration.
53378         * modules/pipe (Depends-on): Add environ.
53379         * lib/pipe.c (environ): Remove fallback declaration.
53380         * modules/setenv (Depends-on): Add environ.
53381         * lib/setenv.c (environ): Remove fallback declaration.
53382         * modules/unsetenv (Depends-on): Add environ.
53383         * lib/unsetenv.c (environ): Remove fallback declaration.
53384         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
53385         m4/environ.m4.
53386         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
53387         (gl_PREREQ_UNSETENV): Likewise.
53388
53389 2008-02-24  Bruno Haible  <bruno@clisp.org>
53390
53391         * doc/posix-functions/environ.texi: Document the MacOS X problem.
53392
53393 2008-02-20  Bob Proulx  <bob@proulx.com>
53394
53395         Enable use of older two part flavor 'git describe'.
53396         * build-aux/git-version-gen: If using the older two part flavor of
53397         git version then recreate the third part now present in the
53398         newer three part flavor of git describe.
53399
53400 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
53401
53402         * lib/fts.c (fts_build): Typo correction to comment.
53403
53404 2008-02-17  Bruno Haible  <bruno@clisp.org>
53405
53406         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
53407         generating no-op conflicts.
53408
53409 2008-02-17  Bruno Haible  <bruno@clisp.org>
53410
53411         Speed up by 10%.
53412         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
53413         result_entries, rather than an index-based loop.
53414
53415 2008-02-17  Bruno Haible  <bruno@clisp.org>
53416
53417         Speed up by 25%.
53418         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
53419         'hashcode_cached'.
53420         (entry_create): New function.
53421         (entry_hashcode): Use the cached hashcode if possible.
53422         (read_changelog_file, try_split_merged_entry): Use entry_create.
53423
53424 2008-02-17  Bruno Haible  <bruno@clisp.org>
53425
53426         Speed up from O(n^2) to O(n) for long ChangeLog files.
53427         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
53428         (read_changelog_file): Change implementation of entries_reversed list
53429         to rbtreehash.
53430         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
53431
53432 2008-02-17  Bruno Haible  <bruno@clisp.org>
53433
53434         New option --split-merged-entry.
53435         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
53436         (find_paragraph_end, try_split_merged_entry): New functions.
53437         (long_options): Add option --split-merged-entry.
53438         (usage): Document option --split-merged-entry.
53439         (main): Implement option --split-merged-entry.
53440         Reported by Eric Blake.
53441
53442 2008-02-17  Bruno Haible  <bruno@clisp.org>
53443
53444         * lib/git-merge-changelog.c: Include c-strstr.h.
53445         (main): Support the "git pull --rebase" situation.
53446         * modules/git-merge-changelog (Depends-on): Add c-strstr.
53447         Reported by Eric Blake.
53448
53449 2008-02-16  Eric Blake  <ebb9@byu.net>
53450
53451         Avoid doubling \ in common case of "c-maybe" quoting style.
53452         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
53453         eliding outer quotes.
53454         * lib/quotearg.h: Document this.
53455         * tests/test-quotearg.c (result_strings, inputs, results_g)
53456         (flag_results, locale_results): Test it by adding a new string to
53457         each test group.
53458         (compare_strings): Test new string.
53459
53460 2008-02-13  Eric Blake  <ebb9@byu.net>
53461
53462         Avoid trigraph quoting in default output.
53463         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
53464         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
53465         unless explicitly requested.
53466         * tests/test-quotearg.c (flag_results, main): Add additional tests.
53467
53468 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
53469
53470         Don't rely on signed integer overflowing to negative value.
53471         * lib/getugroups.c (getugroups): Include <limits.h>.
53472         Instead, compare against INT_MAX, and increment only if the test passes.
53473
53474 2008-02-13  Jim Meyering  <meyering@redhat.com>
53475         and Eric Blake  <ebb9@byu.net>
53476
53477         Avoid shadowing warning and compile errors on Linux.
53478         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
53479         forwarding macros on Linux.
53480         (dcgettext): Define a stub, for Linux.
53481         (results_g, main): Avoid warnings.
53482
53483 2008-02-12  Eric Blake  <ebb9@byu.net>
53484
53485         Silence warning in last patch.
53486         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
53487
53488         Quotearg part 4: add tests, fix c-maybe colon quoting.
53489         * lib/quotearg.h: Improve documentation.
53490         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
53491         escapes when adding outer quotes.  When quoting trigraphs, use
53492         valid C notation.  When quoting NUL, omit extra characters if next
53493         character is not digit.  Alter prototype.
53494         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
53495         callers.
53496         * modules/quotearg-tests: New module.
53497         * tests/test-quotearg.c: New test.
53498
53499 2008-02-07  Eric Blake  <ebb9@byu.net>
53500
53501         Quotearg part 3: add flag to control outer quote elision.
53502         * lib/quotearg.h (c_maybe_quoting_style): New style.
53503         (enum quoting_flags): Better documentation of flags.
53504         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
53505         c-maybe style.
53506         (quotearg_buffer_restyled): Handle new flag to elide outer
53507         quotes.
53508
53509         Quotearg part 2: add flag that can control NUL elision.
53510         * lib/quotearg.h (set_quoting_flags): New prototype.
53511         * lib/quotearg.c (struct quoting_options): Add flag field.
53512         (set_quoting_flags): New function.
53513         (quotearg_buffer_restyled): Add flags parameter.
53514         (quotearg_alloc_mem): Set the flag if length cannot be returned.
53515         (quotearg_n_options): Set the flag, since length cannot be
53516         returned.
53517         (quoting_options_from_style): Default flags correctly.
53518
53519         Quotearg part 1: more wrappers, restore quotearg_char state.
53520         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
53521         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
53522         (quotearg_colon_mem): New wrappers.
53523         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
53524         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
53525         functions.
53526         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
53527         (quotearg_colon_mem): New functions.
53528
53529 2008-02-11  Bruno Haible  <bruno@clisp.org>
53530
53531         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
53532         library in the current directory: it does not work with parallel make.
53533         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53534
53535 2008-02-11  Bruno Haible  <bruno@clisp.org>
53536
53537         * .gitattributes: New file.
53538
53539 2008-02-11  Jim Meyering  <meyering@redhat.com>
53540
53541         useless-if-before-free: Fix reversed exit values.
53542         * build-aux/useless-if-before-free: Use correct values
53543         for EXIT_MATCH and EXIT_NO_MATCH.
53544
53545         * build-aux/useless-if-before-free: Close stdout carefully.
53546
53547 2008-02-10  Bruno Haible  <bruno@clisp.org>
53548
53549         New module 'git-merge-changelog'.
53550         * modules/git-merge-changelog: New file.
53551         * lib/git-merge-changelog.c: New file.
53552
53553 2008-02-10  Jim Meyering  <meyering@redhat.com>
53554
53555         useless-if-before-free: New option: --list (-l).
53556
53557         useless-if-before-free: Don't exit immediately upon open failure.
53558         * build-aux/useless-if-before-free: Exit 2 for errors.
53559         Upon failure to open a file, don't exit immediately.
53560         Rather, just warn and continue with any remaining files.
53561
53562 2008-02-10  Bruno Haible  <bruno@clisp.org>
53563
53564         New abstract list operation 'node_set_value'.
53565         * lib/gl_list.h (gl_list_node_set_value): New function.
53566         (struct gl_list_implementation): New field node_set_value.
53567         * lib/gl_list.c (gl_list_node_set_value): New function.
53568         * lib/gl_array_list.c (gl_array_node_set_value): New function.
53569         (gl_array_list_implementation): Update.
53570         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
53571         (gl_carray_list_implementation): Update.
53572         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
53573         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53574         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53575         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
53576         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53577         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53578         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53579         Update.
53580         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53581         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
53582         (gl_sublist_list_implementation): Update.
53583
53584 2008-02-10  Bruno Haible  <bruno@clisp.org>
53585
53586         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
53587         Needed when ELEMENT is #defined to 'some_type *'.
53588
53589 2008-02-10  Jim Meyering  <meyering@redhat.com>
53590
53591         New script and module: useless-if-before-free
53592         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
53593         * build-aux/useless-if-before-free: New file.
53594         * modules/useless-if-before-free: New file.
53595
53596         * build-aux/gitlog-to-changelog: Use committer date, not author date.
53597
53598         xstrtol_error: Fix typo.
53599         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
53600         s/exit_failure/exit_status/.
53601
53602 2008-02-09  Jim Meyering  <meyering@redhat.com>
53603
53604         New script and module: gitlog-to-changelog
53605         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
53606         * modules/gitlog-to-changelog: New file.
53607         * build-aux/gitlog-to-changelog: New file.
53608
53609 2008-02-08  Jim Meyering  <meyering@redhat.com>
53610
53611         Avoid two "parameter unused" warnings.
53612         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
53613         Mark "st" as used.
53614
53615         Use "git COMMAND", not "git-COMMAND".
53616         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
53617         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
53618         * build-aux/git-version-gen: Use "git status", not "git-status".
53619
53620 2008-02-07  Bruno Haible  <bruno@clisp.org>
53621
53622         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
53623         Avoids a crash on Windows Vista.
53624         Reported by Adam Strzelecki <ono@java.pl> via
53625         Simon Josefsson <simon@josefsson.org>.
53626
53627 2008-02-06  Bruno Haible  <bruno@clisp.org>
53628
53629         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
53630         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
53631         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
53632         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
53633         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53634         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53635         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
53636         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53637         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53638         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53639         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53640         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53641         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53642         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53643         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53644         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
53645         left-adjust flag.
53646         * tests/test-snprintf-posix.h (test_function): Likewise.
53647         * tests/test-sprintf-posix.h (test_function): Likewise.
53648         * tests/test-vasprintf-posix.c (test_function): Likewise.
53649         * doc/posix-functions/fprintf.texi: Update.
53650         * doc/posix-functions/printf.texi: Update.
53651         * doc/posix-functions/snprintf.texi: Update.
53652         * doc/posix-functions/sprintf.texi: Update.
53653         * doc/posix-functions/vfprintf.texi: Update.
53654         * doc/posix-functions/vprintf.texi: Update.
53655         * doc/posix-functions/vsnprintf.texi: Update.
53656         * doc/posix-functions/vsprintf.texi: Update.
53657         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53658
53659 2008-02-06  Bruno Haible  <bruno@clisp.org>
53660
53661         Fix bug introduced on 2008-01-26.
53662         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
53663
53664 2008-02-06  Bruno Haible  <bruno@clisp.org>
53665
53666         Fix bug introduced on 2007-06-10.
53667         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
53668         !NEED_PRINTF_FLAG_ZERO.
53669
53670 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
53671
53672         getloadavg: use libperfstat on AIX5
53673         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
53674
53675 2008-02-03  Bruno Haible  <bruno@clisp.org>
53676
53677         * lib/diffseq.h: Add comments about required #includes.
53678         Reported by Michael Biggs <gnulib@doubleplum.net>.
53679
53680 2008-02-01  Bruno Haible  <bruno@clisp.org>
53681
53682         * users.txt: Add gnuit.
53683
53684 2008-01-31  Bruno Haible  <bruno@clisp.org>
53685
53686         * lib/md4.c (set_uint32): Mark as inline.
53687         * lib/md5.c (set_uint32): Likewise.
53688         * lib/sha1.c (set_uint32): Likewise.
53689         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
53690         * m4/md5.m4 (gl_MD5): Likewise.
53691         * m4/sha1.m4 (gl_SHA1): Likewise.
53692
53693 2008-01-31  Jim Meyering  <meyering@redhat.com>
53694
53695         Use "sizeof VAR", rather than a literal "4".
53696         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
53697         * lib/md4.c (md4_read_ctx): Likewise.
53698         * lib/sha1.c (sha1_read_ctx): Likewise.
53699
53700 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53701
53702         * tests/test-sha1.c: New file, based on test-md5.c.
53703
53704         * modules/crypto/sha1-tests: New file.
53705
53706 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53707
53708         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
53709
53710 2008-01-31  Jim Meyering  <meyering@redhat.com>
53711
53712         Prefer "sizeof v" over the equivalent "4".
53713         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
53714         * lib/md5.c (set_uint32): Likewise.
53715         * lib/sha1.c (set_uint32): Likewise.
53716
53717 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53718
53719         * lib/sha1.c (set_uint32): Mark function as static.
53720
53721 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53722
53723         md2: clarify comments to say that alignment is not required.
53724         * lib/md2.h: Remove warning about alignment in comment.
53725         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
53726         never been required.
53727
53728 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53729
53730         md4: adapt alignment constraint fix from sha1.
53731         * lib/md4.c (set_uint32): New function, from sha1.c
53732         (md4_read_ctx): Use it.
53733         (md4_finish_ctx): Doc fix.
53734         * lib/md4.h: Doc fix.
53735
53736 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53737
53738         md5: adapt alignment constraint fix from sha1.
53739         * lib/md5.c (set_uint32): New function, from sha1.c
53740         (md5_read_ctx): Use it.
53741         (md5_finish_ctx): Doc fix.
53742         * lib/md5.h: Doc fix.
53743
53744 2008-01-30  Peter Palfrader  <weasel@debian.org>
53745
53746         sha1: remove the result buffer alignment constraint
53747         * lib/sha1.c (set_uint32): New function.
53748         (sha1_read_ctx): Rewrite to remove the result buffer alignment
53749         constraint.
53750         (sha1_finish_ctx): Remove comment warning about alignment constraint.
53751         * lib/sha1.h: Likewise.
53752
53753 2008-01-30  Andreas Schwab  <schwab@suse.de>
53754             Bruno Haible  <bruno@clisp.org>
53755
53756         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
53757         correct definition of LDBL_MIN_EXP.
53758
53759 2008-01-30  Karl Berry  <karl@gnu.org>
53760
53761         * config/srclist-update: try to preserve x bit on updates.
53762         * config/srclistvars.sh: update for karl.
53763
53764 2008-01-29  Jim Meyering  <meyering@redhat.com>
53765
53766         vasnprintf.c: Avoid warning about unused label
53767         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
53768         "overflow" label definition and associated code with the
53769         same cpp condition that guards the sole use of that label.
53770
53771 2008-01-26  Bruno Haible  <bruno@clisp.org>
53772
53773         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
53774         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
53775         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
53776         * lib/isnanl-nolibm.h (isnanl): Likewise.
53777         Reported by Paul Eggert <eggert@cs.ucla.edu>.
53778
53779 2008-01-26  Bruno Haible  <bruno@clisp.org>
53780
53781         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
53782         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
53783
53784 2008-01-26  Bruno Haible  <bruno@clisp.org>
53785
53786         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
53787         GCC >= 4.0 built-in.
53788         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
53789
53790 2008-01-26  Bruno Haible  <bruno@clisp.org>
53791
53792         Rename isnan, applicable to 'double' only, to isnand.
53793         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
53794         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
53795         (configure.ac): Update.
53796         (Include): Replace "isnan.h" with "isnand.h".
53797         * m4/isnand.m4: Renamed from m4/isnan.m4.
53798         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
53799         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
53800         instead of isnan.c.
53801         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
53802         instead of HAVE_ISNAN_IN_LIBC.
53803         (isnand): Renamed from isnan.
53804         * lib/isnand.c: New file.
53805         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
53806         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
53807         (Makefile.am): Update.
53808         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
53809         Include isnand.h instead of isnan.h.
53810         (main): Test isnand instead of isnan.
53811         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
53812         isnan-nolibm.
53813         * modules/frexp (Depends-on): Likewise.
53814         * modules/frexp-tests (Depends-on): Likewise.
53815         * modules/frexp-nolibm (Depends-on): Likewise.
53816         * modules/frexp-nolibm-tests (Depends-on): Likewise.
53817         * modules/isfinite (Depends-on): Likewise.
53818         * modules/round-tests (Depends-on): Likewise.
53819         * modules/signbit (Depends-on): Likewise.
53820         * modules/signbit-tests (Depends-on): Likewise.
53821         * modules/snprintf-posix (Depends-on): Likewise.
53822         * modules/sprintf-posix (Depends-on): Likewise.
53823         * modules/trunc-tests (Depends-on): Likewise.
53824         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53825         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53826         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53827         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53828         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53829         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53830         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53831         * modules/vasnprintf-posix (Depends-on): Likewise.
53832         * modules/vasprintf-posix (Depends-on): Likewise.
53833         * modules/vfprintf-posix (Depends-on): Likewise.
53834         * modules/vsnprintf-posix (Depends-on): Likewise.
53835         * modules/vsprintf-posix (Depends-on): Likewise.
53836         * lib/frexp.c: Include isnand.h instead of isnan.h.
53837         (ISNAN): Set to isnand instead of isnan.
53838         * lib/isfinite.c: Include isnand.h instead of isnan.h.
53839         (gl_isfinited): Use isnand instead of isnan.
53840         * lib/signbitd.c: Include isnand.h instead of isnan.h.
53841         (gl_signbitd): Use isnand instead of isnan.
53842         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
53843         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
53844         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
53845         (main): Use isnand instead of isnan.
53846         * tests/test-round1.c: Include isnand.h.
53847         (main): Use isnand instead of isnan.
53848         * tests/test-round2.c: Include isnand.h instead of isnan.h.
53849         (ISNAN): Set to isnand instead of isnan.
53850         * tests/test-trunc1.c: Include isnand.h.
53851         (main): Use isnand instead of isnan.
53852         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
53853         (equal): Use isnand instead of isnan.
53854         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
53855         isnand-nolibm.
53856         * NEWS: Mention the change.
53857
53858 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53859             Bruno Haible  <bruno@clisp.org>
53860
53861         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
53862         the GCC builtins for signbits are present and set
53863         REPLACE_SIGNBIT_USING_GCC if so.
53864         * lib/math.in.h (signbit): Define using GCC builtins if
53865         REPLACE_SIGNBIT_USING_GCC is set.
53866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
53867         REPLACE_SIGNBIT_USING_GCC.
53868         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
53869
53870 2008-01-25  Jim Meyering  <meyering@redhat.com>
53871
53872         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
53873         * lib/poll.c: Include <config.h>, not "config.h".
53874         * tests/test-getaddrinfo.c: Likewise.
53875
53876 2008-01-25  Simon Josefsson  <simon@josefsson.org>
53877
53878         * modules/sockets-tests: New file.
53879
53880 2008-01-24  Simon Josefsson  <simon@josefsson.org>
53881
53882         * modules/sockets: New module, can be used to call WSA_Startup and
53883         WSA_Cleanup when needed.
53884
53885         * lib/sockets.h, lib/sockets.c: New files.
53886
53887         * m4/sockets.m4: New file.
53888
53889         * tests/test-sockets.c: New file.
53890
53891 2008-01-19  Bruno Haible  <bruno@clisp.org>
53892
53893         * doc/posix-headers: Renamed from doc/headers.
53894         * doc/posix-functions: Renamed from doc/functions.
53895         * doc/gnulib.texi: Update.
53896
53897 2008-01-19  Bruno Haible  <bruno@clisp.org>
53898
53899         * doc/glibc-functions/strcasestr.texi: Include contents of
53900         doc/functions/strcasestr.texi, fixing the list of platforms.
53901         * doc/functions/strcasestr.texi: Remove file.
53902
53903 2008-01-19  Bruno Haible  <bruno@clisp.org>
53904
53905         * doc/glibc-functions/memmem.texi: Include contents of
53906         doc/functions/memmem.texi.
53907         * doc/functions/memmem.texi: Remove file.
53908
53909 2008-01-18  Bruno Haible  <bruno@clisp.org>
53910
53911         * doc/glibc-functions/*.texi: New files.
53912         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
53913         to use the new files.
53914
53915 2008-01-17  Bruno Haible  <bruno@clisp.org>
53916
53917         * tests/test-gethostname.c (main): Fix printf statement.
53918
53919 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53920
53921         * modules/gethostname-tests: New file.
53922
53923         * tests/test-gethostname.c: New file.
53924
53925 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53926
53927         * lib/gethostname.c: Include string.h unconditionally, strncpy is
53928         used by the UNAME case.  Reported by Bruno Haible
53929         <bruno@clisp.org>.
53930
53931 2008-01-17  Eric Blake  <ebb9@byu.net>
53932
53933         Convert c-strcasestr to be more efficient.
53934         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
53935         (Depends-on): Add c-strcase, remove malloca, strnlen.
53936         * tests/test-c-strcasestr.c (main): Enhance test.
53937         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
53938
53939 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53940
53941         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
53942         Use it in creating po/Makevars.
53943
53944 2008-01-15  Simon Josefsson  <simon@josefsson.org>
53945
53946         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
53947         Applications that requires it should initialize libgcrypt
53948         manually.
53949
53950 2008-01-16  Simon Josefsson  <simon@josefsson.org>
53951
53952         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
53953
53954 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
53955
53956         Fix problem with getdate on mingw32 reported by Simon Josefsson
53957         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
53958         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
53959         tzname", when deciding whether to declare tzname.
53960         * lib/strftime.c (tzname): Likewise.
53961
53962 2008-01-15  Bruno Haible  <bruno@clisp.org>
53963
53964         Work around a MacOS X 10.5 bug in frexpl().
53965         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
53966         * doc/functions/frexpl.texi: Document the bug.
53967         Reported by Elias Pipping <pipping@gentoo.org>.
53968
53969 2008-01-14  Eric Blake  <ebb9@byu.net>
53970
53971         Touch up previous patch.
53972         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
53973         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
53974
53975         Convert strcasestr module to use Two-Way algorithm.
53976         * modules/strcasestr-simple: New module, based on the old
53977         strcasestr, but with Two-Way rather than KMP.
53978         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
53979         * lib/string.in.h (rpl_strcasestr): Declare.
53980         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
53981         performance.
53982         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
53983         * modules/string (Makefile.am): Support strcasestr.
53984         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
53985         * modules/strcasestr-tests (Depends-on): Check for alarm.
53986         * tests/test-strcasestr.c: Augment test.
53987         * lib/str-two-way.h: Clean up stray macro.
53988         * NEWS: Document new module.
53989         * MODULES.html.sh (string handling): Likewise.
53990         * doc/functions/strcasestr.texi: New file.
53991         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
53992         here, since it is not a POSIX function.
53993
53994 2008-01-14  Colin Watson  <cjwatson@debian.org>
53995             Bruno Haible  <bruno@clisp.org>
53996
53997         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
53998         works fine; if not, set REPLACE_STRSIGNAL.
53999         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
54000         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54001         REPLACE_STRSIGNAL.
54002         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
54003         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
54004         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
54005
54006 2008-01-14  Bruno Haible  <bruno@clisp.org>
54007
54008         * modules/strsignal (Include): Change to <string.h>.
54009
54010 2008-01-14  Colin Watson  <cjwatson@debian.org>
54011
54012         * modules/argp (Notice): Add a notice recommending to change
54013         XGETTEXT_OPTIONS.
54014         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
54015
54016 2008-01-13  Colin Watson  <cjwatson@debian.org>
54017
54018         * modules/strsignal-tests: New file.
54019         * tests/test-strsignal.c: New file.
54020
54021         * lib/strsignal.c: New file, from glibc with modifications.
54022         * lib/siglist.h: New file, from glibc with modifications.
54023         * lib/string.in.h (strsignal): New declaration.
54024         * m4/strsignal.m4: New file.
54025         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54026         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
54027         * modules/strsignal: New file.
54028         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
54029         HAVE_DECL_STRSIGNAL.
54030
54031 2008-01-13  Bruno Haible  <bruno@clisp.org>
54032
54033         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
54034         locale encoding is not ASCII. Needed for OpenBSD 4.0.
54035         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54036         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54037
54038 2008-01-13  Bruno Haible  <bruno@clisp.org>
54039
54040         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
54041         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
54042         * lib/argp.h (__attribute__): Likewise.
54043         * lib/c-stack.c (__attribute__): Likewise.
54044         * lib/error.h (__attribute__): Likewise.
54045         * lib/fts.c (__attribute__): Likewise.
54046         * lib/openat.h (__attribute__): Likewise.
54047         * lib/stdio.in.h (__attribute__): Likewise.
54048         * lib/string.in.h (__attribute__): Likewise.
54049         * lib/utimens.c (__attribute__): Likewise.
54050         * lib/vasnprintf.h (__attribute__): Likewise.
54051         * lib/xalloc.h (__attribute__): Likewise.
54052         * lib/xprintf.h (__attribute__): Likewise.
54053         * lib/xstrtol.h (__attribute__): Likewise.
54054         * lib/xvasprintf.h (__attribute__): Likewise.
54055
54056 2008-01-12  Bruno Haible  <bruno@clisp.org>
54057
54058         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
54059         * doc/glibc-headers/a.out.texi: New file.
54060         * doc/glibc-headers/aliases.texi: New file.
54061         * doc/glibc-headers/alloca.texi: New file.
54062         * doc/glibc-headers/ar.texi: New file.
54063         * doc/glibc-headers/argp.texi: New file.
54064         * doc/glibc-headers/argz.texi: New file.
54065         * doc/glibc-headers/byteswap.texi: New file.
54066         * doc/glibc-headers/crypt.texi: New file.
54067         * doc/glibc-headers/endian.texi: New file.
54068         * doc/glibc-headers/envz.texi: New file.
54069         * doc/glibc-headers/err.texi: New file.
54070         * doc/glibc-headers/error.texi: New file.
54071         * doc/glibc-headers/execinfo.texi: New file.
54072         * doc/glibc-headers/fpu_control.texi: New file.
54073         * doc/glibc-headers/fstab.texi: New file.
54074         * doc/glibc-headers/fts.texi: New file.
54075         * doc/glibc-headers/getopt.texi: New file.
54076         * doc/glibc-headers/ieee754.texi: New file.
54077         * doc/glibc-headers/ifaddrs.texi: New file.
54078         * doc/glibc-headers/libintl.texi: New file.
54079         * doc/glibc-headers/mcheck.texi: New file.
54080         * doc/glibc-headers/mntent.texi: New file.
54081         * doc/glibc-headers/obstack.texi: New file.
54082         * doc/glibc-headers/paths.texi: New file.
54083         * doc/glibc-headers/printf.texi: New file.
54084         * doc/glibc-headers/pty.texi: New file.
54085         * doc/glibc-headers/resolv.texi: New file.
54086         * doc/glibc-headers/shadow.texi: New file.
54087         * doc/glibc-headers/sysexits.texi: New file.
54088         * doc/glibc-headers/ttyent.texi: New file.
54089
54090 2008-01-12  Jim Meyering  <meyering@redhat.com>
54091
54092         announce-gen: emit Gnulib's git-based version string.
54093         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
54094         New option --gnulib-version=V, where V is expected to be
54095         the output of running git describe in the gnulib directory.
54096         (get_tool_versions): Request feedback on xdelta.  I suspect it's
54097         not useful, and plan to stop publishing an xdelta file with each
54098         coreutils release.
54099
54100         * build-aux/announce-gen: Also check for lzma-compressed files.
54101
54102 2008-01-11  Bruno Haible  <bruno@clisp.org>
54103
54104         * tests/test-memmem.c (main): Increase maximum allowed time.
54105         * tests/test-strstr.c (main): Likewise.
54106
54107 2008-01-11  Bruno Haible  <bruno@clisp.org>
54108
54109         * doc/functions/memmem.texi: Add more precisions about platforms.
54110         * doc/functions/strstr.texi: Likewise.
54111
54112 2008-01-10  Eric Blake  <ebb9@byu.net>
54113
54114         * m4/strstr.m4: Delete cruft from copy-n-paste.
54115         Reported by Bruno Haible.
54116
54117 2008-01-10  Bruno Haible  <bruno@clisp.org>
54118
54119         Make c-strstr rely on strstr.
54120         * lib/c-strstr.c: Don't include str-kmp.h.
54121         (c_strstr): Define in terms of strstr.
54122         * modules/c-strstr (Files): Remove lib/str-kmp.h.
54123         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
54124
54125 2008-01-10  Bruno Haible  <bruno@clisp.org>
54126
54127         * doc/gnulib.texi (String Functions in C Locale): New section.
54128         * doc/c-ctype.texi: New file.
54129         * doc/c-strcase.texi: New file.
54130         * doc/c-strcaseeq.texi: New file.
54131         * doc/c-strcasestr.texi: New file.
54132         * doc/c-strstr.texi: New file.
54133         * doc/c-strtod.texi: New file.
54134         * doc/c-strtold.texi: New file.
54135
54136 2008-01-10  Eric Blake  <ebb9@byu.net>
54137
54138         * lib/relocatable.h: Fix a comment.
54139
54140 2008-01-10  Eric Blake  <ebb9@byu.net>
54141
54142         Share two-way algorithm.
54143         * lib/str-two-way.h: New file, merged from...
54144         * lib/memmem.c: ...here...
54145         * lib/strstr.c: ...and here.
54146         * modules/memmem (Files): Use it.
54147         * modules/strstr (Files): Likewise.
54148
54149         Avoid quadratic strstr implementations.
54150         * lib/strstr.c: New file.
54151         * m4/strstr.m4: Likewise.
54152         * modules/strstr: Likewise.
54153         * modules/strstr-tests: Likewise.
54154         * tests/test-strstr.c: Likewise.
54155         * lib/string.in.h (rpl_strstr): Declare.
54156         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
54157         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
54158         * modules/string (Makefile.am): Likewise.
54159         * MODULES.html.sh (string handling): Mention new module.
54160         * doc/functions/strstr.texi (strstr): Document the bug.
54161
54162 2008-01-10  Bruno Haible  <bruno@clisp.org>
54163
54164         * lib/relocatable.h (relocate): State whether result is freshly
54165         allocated or not.
54166         * lib/relocatable.c (relocate): Return a freshly allocated string
54167         instead of a pointer to a privately held string.
54168         Reported by Sylvain Beucler <beuc@gnu.org>.
54169
54170 2008-01-10  Colin Watson  <cjwatson@debian.org>
54171
54172         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
54173         s/S_ISNLK/S_ISLNK/.
54174
54175 2008-01-09  Bruno Haible  <bruno@clisp.org>
54176
54177         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
54178         and other files.
54179         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
54180         if it's only a guess.
54181         * modules/memmem: Simplify by depending on memmem-simple.
54182
54183 2008-01-09  Bruno Haible  <bruno@clisp.org>
54184
54185         Work around OpenBSD 4.0 tdelete() bug.
54186         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
54187         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
54188         macros and don't redefine the enum values.
54189         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
54190         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
54191         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
54192
54193 2008-01-09  Bruno Haible  <bruno@clisp.org>
54194
54195         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
54196         (main): Don't perform the tests if setlocale did not install a UTF-8
54197         locale. Needed on OpenBSD 4.0.
54198         * modules/wcwidth-tests (Depends-on): Add localcharset.
54199
54200 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54201
54202         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
54203         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
54204         * NEWS: announce this.
54205         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
54206
54207 2008-01-09  Simon Josefsson  <simon@josefsson.org>
54208         and Eric Blake  <ebb9@byu.net>
54209
54210         Add memmem-simple module.
54211         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
54212         (gl_FUNC_MEMMEM): Separate performance from presence checks.
54213         * modules/memmem-simple: New file.
54214         * modules/memmem (Description): Tweak.
54215         * MODULES.html.sh (string handling): Mention new module.
54216         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
54217         addressed by memmem-simple.
54218         * NEWS: Document the difference.
54219
54220 2008-01-09  Eric Blake  <ebb9@byu.net>
54221
54222         Give gcc some memmem optimization hints.
54223         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
54224         (strcasestr): Declare as pure.
54225         * modules/memmem (Maintainer): Claim my implementation.
54226
54227 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54228
54229         Support AIX 6.1 and higher.
54230         * build-aux/config.libpath: Likewise.
54231         * build-aux/config.rpath: Likewise.
54232
54233 2008-01-08  Jim Meyering  <meyering@redhat.com>
54234             Bruno Haible  <bruno@clisp.org>
54235
54236         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
54237         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
54238         Reported by Peter Fales in
54239         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
54240
54241 2008-01-08  Bruno Haible  <bruno@clisp.org>
54242
54243         * modules/unictype/category-of (Depends-on): Add
54244         unictype/category-none.
54245         * modules/unictype/category-and-tests (Depends-on): Add
54246         unictype/category-{L,N,Lu,Nd}.
54247         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
54248         * modules/unictype/category-or-tests (Depends-on): Add
54249         unictype/category-{L,N}.
54250         * modules/unictype/category-name-tests (Depends-on): Add
54251         unictype/category-{Z,Nl}.
54252         Reported by Simon Josefsson.
54253
54254 2008-01-08  Bruno Haible  <bruno@clisp.org>
54255
54256         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
54257         convention better.
54258         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
54259         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
54260         Reported by Peter Miller <millerp@canb.auug.org.au>.
54261
54262 2008-01-08  Eric Blake  <ebb9@byu.net>
54263
54264         Rewrite memmem to guarantee linear complexity without malloc.
54265         * lib/memmem.c (memmem): Use Two-Way rather than
54266         Knuth-Morris-Pratt, to allow O(1) space usage.
54267         (critical_factorization, two_way_short_needle)
54268         (two_way_long_needle): New functions.
54269         (knuth_morris_pratt): Delete.
54270         * modules/memmem (Depends-on): No longer need malloca or stdbool.
54271         Add stdint.
54272         * tests/test-memmem.c (main): Add tests for periodic needle and
54273         sublinear performance.
54274         * doc/functions/memmem.texi (memmem): Document other deficiencies
54275         in cygwin and older glibc.
54276
54277 2008-01-08  Bruno Haible  <bruno@clisp.org>
54278
54279         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
54280         augmentation.
54281
54282 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
54283
54284         Add a configure time option: --disable-acl.
54285         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
54286         AC_ARG_ENABLE(acl).
54287
54288 2008-01-06  Simon Josefsson  <simon@josefsson.org>
54289
54290         * tests/test-localename.c: Don't include obsolete "setenv.h".
54291
54292         * modules/localename-tests (Depends-on): Need unsetenv.
54293
54294 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54295
54296         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
54297
54298 2008-01-06  Colin Watson  <cjwatson@debian.org>
54299
54300         * users.txt: Add man-db.
54301
54302 2008-01-07  Bruno Haible  <bruno@clisp.org>
54303
54304         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
54305         previous section name.
54306
54307 2008-01-07  Bruno Haible  <bruno@clisp.org>
54308
54309         * lib/progname.c (set_program_name): Don't strip off a leading
54310         "lt-" prefix outside a .libs directory.
54311         Suggested by Paul Eggert.
54312
54313 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
54314             Bruno Haible  <bruno@clisp.org>
54315
54316         Improve memory cleanup in 'relocatable' module.
54317         * lib/relocatable.h (compute_curr_prefix): Change return type to
54318         'char *'.
54319         * lib/relocatable.c (compute_curr_prefix): Change return type to
54320         'char *'. Free curr_installdir after use.
54321         (relocate): Free curr_prefix_better after use.
54322         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
54323
54324 2008-01-01  Bruno Haible  <bruno@clisp.org>
54325
54326         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
54327         failure on older glibc systems.
54328         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54329
54330 2008-01-05  Eric Blake  <ebb9@byu.net>
54331
54332         Avoid quadratic system memmem.
54333         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
54334         Reported by Ralf Wildenhues.
54335
54336         Fix memmem test for mingw.
54337         * modules/memmem-tests (configure.ac): Check for alarm.
54338         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
54339         it.
54340         * doc/functions/memmem.texi: New file.
54341         * doc/gnulib.texi (Function Substitutes): Add memmem.
54342         Reported by Bruno Haible.
54343
54344 2008-01-04  Bruno Haible  <bruno@clisp.org>
54345
54346         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
54347         Require gl_HEADER_STRINGS_H_DEFAULTS, not
54348         gl_HEADER_STRING_H_DEFAULTS.
54349
54350 2008-01-04  Eric Blake  <ebb9@byu.net>
54351
54352         Shorten duration of memmem test.
54353         * tests/test-memmem.c (main): Use alarm to declare failure if test
54354         is taking too long.
54355         Reported by Ralf Wildenhues.
54356
54357 2007-12-21  Simon Josefsson  <simon@josefsson.org>
54358
54359         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
54360         string, needed by strerror.
54361
54362 2008-01-03  Colin Watson  <cjwatson@debian.org>
54363             Bruno Haible  <bruno@clisp.org>
54364
54365         * doc/gnulib-tool.texi (Localization): New section.
54366
54367 2008-01-02  Bruno Haible  <bruno@clisp.org>
54368
54369         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
54370         variables to 'unsigned char *' type.
54371         Reported by Paul Eggert.
54372
54373 2008-01-02  Jim Meyering  <jim@meyering.net>
54374
54375         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
54376
54377 2007-12-31  Jim Meyering  <jim@meyering.net>
54378
54379         Avoid use of private FTS type name.
54380         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
54381
54382 2007-12-30  Karl Berry  <karl@gnu.org>
54383
54384         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
54385         work around defect in Texinfo and/or the standalone Info browser.
54386
54387 2007-12-30  Bruno Haible  <bruno@clisp.org>
54388
54389         Unify 5 copies of the KMP code.
54390         * lib/str-kmp.h: New file.
54391         * lib/c-strcasestr.c: Include str-kmp.h.
54392         (knuth_morris_pratt): Remove function.
54393         (c_strcasestr): Update.
54394         * lib/c-strstr.c: Include str-kmp.h.
54395         (knuth_morris_pratt): Remove function.
54396         (c_strcasestr): Update.
54397         * lib/mbscasestr.c: Include str-kmp.h.
54398         (knuth_morris_pratt_unibyte): Remove function.
54399         * lib/mbsstr.c: Include str-kmp.h.
54400         (knuth_morris_pratt_unibyte): Remove function.
54401         * lib/strcasestr.c: Include str-kmp.h.
54402         (knuth_morris_pratt): Remove function.
54403         (strcasestr): Update.
54404         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
54405         * modules/c-strstr (Files): Likewise.
54406         * modules/mbscasestr (Files): Likewise.
54407         * modules/mbsstr (Files): Likewise.
54408         * modules/strcasestr (Files): Likewise.
54409         Suggested by Paul Eggert.
54410
54411 2007-12-30  Bruno Haible  <bruno@clisp.org>
54412
54413         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
54414         defined.
54415
54416 2007-12-30  Bruno Haible  <bruno@clisp.org>
54417
54418         * lib/xmalloca.h: Include xalloc.h.
54419         (xnmalloca): New macro.
54420
54421 2007-12-30  Bruno Haible  <bruno@clisp.org>
54422
54423         * lib/malloca.h (nmalloca): New macro.
54424         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
54425         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
54426         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
54427         knuth_morris_pratt_multibyte): Likewise.
54428         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
54429         knuth_morris_pratt_multibyte): Likewise.
54430         * lib/memmem.c (knuth_morris_pratt): Likewise.
54431         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
54432
54433 2007-12-25  Bruno Haible  <bruno@clisp.org>
54434
54435         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
54436         * lib/glob.c: Don't include openat.h.
54437         (link_exists2_p): Add back the code that deals with the
54438         !GLOB_ALTDIRFUNC case.
54439         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
54440         let it do the filename concatenation.
54441         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
54442         * modules/glob (Depends-on): Remove openat.
54443
54444 2007-12-31  Bruno Haible  <bruno@clisp.org>
54445
54446         * modules/dirfd (License): Change to LGPLv2+.
54447         Approved by Jim Meyering.
54448
54449 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54450
54451         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
54452         when multiplying M by sizeof (size_t).
54453
54454 2007-12-10  Martin Lambers  <marlam@marlam.de>
54455
54456         Override getpagesize on mingw.
54457         * lib/getpagesize.c: New file.
54458         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
54459         * modules/getpagesize (Files): Add lib/getpagesize.c.
54460         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
54461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54462         REPLACE_GETPAGESIZE.
54463         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
54464
54465 2007-12-25  Bruno Haible  <bruno@clisp.org>
54466
54467         * modules/localcharset (Notice): New field.
54468         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
54469         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
54470
54471 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54472             Bruno Haible  <bruno@clisp.org>
54473
54474         Avoid using the syntax symbol() in formatted documentation.
54475         * MODULES.html.sh (func_module): When replacing symbol() with a
54476         hyperlink, remove the parentheses. Show an error if some remain.
54477         Recognize and render the '...' syntax.
54478         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
54479         Rework. Add paragraph about GCC's inlining.
54480         * doc/alloca.texi: Likewise.
54481         * doc/error.texi: Remove parentheses from symbol reference.
54482         * doc/gnulib-intro.texi: Likewise.
54483         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
54484         * modules/fnmatch (Description): Reword to say "the ... function".
54485         * modules/full-read (Description): Likewise.
54486         * modules/full-write (Description): Likewise.
54487         * modules/safe-read (Description): Likewise.
54488         * modules/safe-write (Description): Likewise.
54489         * modules/strchrnul (Description): Likewise.
54490         * modules/trim (Description): Likewise.
54491         * modules/error (Description): Remove parentheses from symbol
54492         references.
54493         * modules/verror (Description): Likewise.
54494         Reported by Karl Berry.
54495
54496 2007-12-25  Bruno Haible  <bruno@clisp.org>
54497
54498         Fixup after 2007-10-16 commit.
54499         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
54500
54501 2007-12-24  Bruno Haible  <bruno@clisp.org>
54502
54503         Make --enable-relocatable work with DESTDIR.
54504         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
54505         to compute installdir from destprog.
54506         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
54507         also set the RELOC_DESTDIR variable.
54508         Reported by Левашев Иван <octagram@bluebottle.com>.
54509
54510 2007-12-24  Bruno Haible  <bruno@clisp.org>
54511
54512         Fix link error due to xalloc_die().
54513         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
54514         of xreadlink.
54515         * lib/relocwrapper.c: Update comments.
54516         * build-aux/install-reloc: Remove xreadlink.c from file list.
54517         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
54518         xreadlink.c.
54519         Reported by Левашев Иван <octagram@bluebottle.com>.
54520
54521 2007-12-24  Bruno Haible  <bruno@clisp.org>
54522
54523         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
54524         * lib/setenv.h: Remove file.
54525         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
54526         lib/setenv.h.
54527         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
54528         (Depends-on): Add stdlib.
54529         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
54530         gl_FUNC_UNSETENV.
54531         (Include): Replace setenv.h with <stdlib.h>.
54532         * modules/unsetenv: New file.
54533         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
54534         * lib/unsetenv.c: Include <stdlib.h> first.
54535         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
54536         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
54537         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
54538         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
54539         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
54540         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54541         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
54542         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54543         * doc/functions/unsetenv.texi: Update.
54544         * modules/xsetenv (Depends-on): Add unsetenv.
54545         * modules/getdate (Depends-on): Likewise.
54546         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
54547         * lib/xsetenv.c: Don't include setenv.h.
54548         * lib/getdate.y: Likewise.
54549         * lib/relocwrapper.c: Likewise.
54550         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
54551         (Depends-on): Add stdlib.
54552         * NEWS: Mention the changes.
54553         Reported by Левашев Иван <octagram@bluebottle.com>.
54554
54555 2007-12-23  Bruno Haible  <bruno@clisp.org>
54556
54557         * lib/memmem.c (memmem): Use lowercase variable names. Tab
54558         indentation.
54559
54560 2007-12-23  Bruno Haible  <bruno@clisp.org>
54561
54562         * lib/c-strcasestr.c: Add more comments.
54563         * lib/c-strstr.c: Likewise.
54564         * lib/mbscasestr.c: Likewise.
54565         * lib/mbsstr.c: Likewise.
54566         * lib/strcasestr.c: Likewise.
54567         * lib/memmem.c: Likewise.
54568
54569 2007-12-23  Bruno Haible  <bruno@clisp.org>
54570
54571         * tests/test-memmem.c: Include <string.h> first.
54572
54573 2007-12-22  Bruno Haible  <bruno@clisp.org>
54574
54575         * gnulib-tool (func_create_testdir): Change $auxdir while generating
54576         the contents of $testsbase.
54577         Reported by Ralf Wildenhues.
54578
54579 2007-12-22  Bruno Haible  <bruno@clisp.org>
54580
54581         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
54582         two variables local_ldadd_before, local_ldadd_last.
54583
54584 2007-12-20  Eric Blake  <ebb9@byu.net>
54585
54586         Work around circular library issue when cross-compiling.
54587         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
54588         that progname.o does not need to pull in rpl_memcmp.
54589
54590 2007-12-19  Eric Blake  <ebb9@byu.net>
54591
54592         Fix memmem to avoid O(n^2) worst-case complexity.
54593         * lib/memmem.c (knuth_morris_pratt): New function.
54594         (memmem): Use it if first few naive iterations fail.
54595         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
54596         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
54597         * modules/memchr (License): Likewise.
54598         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
54599         malloca.
54600         * tests/test-memmem.c: Rewrite, borrowing ideas from
54601         test-mbsstr1.c; the old version wouldn't even compile!
54602         * modules/memmem-tests: New file.
54603         * lib/string.in.h (rpl_memmem): Add declaration.
54604         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
54605         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
54606         REPLACE_MEMMEM.
54607
54608 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54609
54610         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
54611         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
54612         before any system include files, and undef after them all.  This
54613         should fix a problem on VMS reported by John E. Malmberg in
54614         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
54615
54616 2007-12-17  Eric Blake  <ebb9@byu.net>
54617
54618         Revert addition of verify, for BSD/OS.
54619         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
54620         can't handle large files, for the sake of obsolete platforms.
54621         * modules/fseeko (Depends-on): Remove verify.
54622         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
54623         * doc/functions/ftello.texi (ftello): Likewise.
54624         * doc/functions/fgetpos.texi (fgetpos): Likewise.
54625         Reported by Larry Jones.
54626
54627 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
54628
54629         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
54630         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
54631
54632 2007-12-17  Jim Meyering  <meyering@redhat.com>
54633
54634         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
54635         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
54636         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
54637         * modules/getcwd (Depends-on): Add openat.
54638         Reported by Petr Salinger.
54639
54640 2007-12-17  Bruno Haible  <bruno@clisp.org>
54641
54642         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
54643         avoid a segmentation fault of the configure test on x86_64 systems.
54644
54645 2007-12-15  Jim Meyering  <meyering@redhat.com>
54646
54647         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
54648
54649 2007-12-13  Eric Blake  <ebb9@byu.net>
54650
54651         Another fseek test.
54652         * tests/test-fseek.c (main): Also test ungetc handling.
54653         * tests/test-fseeko.c (main): Likewise.
54654         * modules/fseeko (Depends-on): Add verify.
54655         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
54656         large.
54657         Reported by Larry Jones.
54658
54659         Fix fseeko on mingw.
54660         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
54661         seek.
54662
54663         Beef up fseek tests.
54664         * tests/test-fseek.c (main): Also test eof handling.
54665         * tests/test-fseeko.c (main): Likewise.
54666         Reported by Larry Jones.
54667
54668 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
54669
54670         Fix fseeko on BSD-based platforms.
54671         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
54672         successful seek.
54673
54674 2007-12-12  Eric Blake  <ebb9@byu.net>
54675
54676         Allow circular dependency of separate libtests.a
54677         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
54678         when use_libtests.
54679
54680 2007-12-11  Eric Blake  <ebb9@byu.net>
54681
54682         Fix bug with -0.0L in previous patch.
54683         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
54684         * tests/test-isnan.c (main): Also test on zeroes.
54685         * tests/test-isnanf.c (main): Likewise.
54686         * tests/test-isnanl.h (main): Likewise.
54687
54688         Detect pseudo-denormals on x86 even when cross-compiling.
54689         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
54690         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
54691         invalid bit patterns that happen to satisfy ==.
54692
54693         Avoid link failures with separate libtests.a.
54694         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
54695         last, to satisfy circular dependencies.
54696
54697 2007-12-11  Eric Blake  <ebb9@byu.net>
54698         and Bruno Haible  <bruno@clisp.org>
54699
54700         Fix OpenBSD 4.0 <float.h> handling of long double.
54701         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
54702         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
54703         * doc/headers/float.texi (float.h): Document OpenBSD bug.
54704
54705 2007-12-11  Jim Meyering  <meyering@redhat.com>
54706
54707         * users.txt: Add libvirt.
54708
54709         Support versions of autoconf prior to 2.59c.
54710         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
54711         if it is not already defined.
54712
54713 2007-12-09  Bruno Haible  <bruno@clisp.org>
54714
54715         Let 'gnulib-tool --import' collect sources needed for the tests in
54716         tests/ rather than in lib/.
54717         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
54718         argument. If true, add rules to generate libtests.a, and put libtests.a
54719         into $(LDADD). Consider source files in subdirectories and set
54720         uses_subdirs.
54721         (func_emit_initmacro_start, func_emit_initmacro_end,
54722         func_emit_initmacro_done): Pass all arguments explicitly.
54723         (func_import): Determine two module lists main_modules,
54724         testsrelated_modules. Determine use_libtests. Determine two variables
54725         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
54726         instead of just sed_transform_lib_file. Determine two variables
54727         main_files and testsrelated_files. Compute 'files' as the union of
54728         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
54729         func_add_or_update. In the generated gnulib-comp.m4, collect the
54730         object files for tests/ in different variables than those for lib/.
54731         Substitute LIBTESTS_LIBDEPS.
54732         (func_create_testdir): Combine the uses_subdirs results from
54733         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
54734
54735 2007-12-09  Bruno Haible  <bruno@clisp.org>
54736
54737         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
54738         the build-aux directory.
54739
54740 2007-12-09  Bruno Haible  <bruno@clisp.org>
54741
54742         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
54743         introduced on 2006-09-09.
54744
54745 2007-12-07  Jim Meyering  <meyering@redhat.com>
54746
54747         Let these macros work also with autoconf-2.59.
54748         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
54749         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
54750         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54751
54752 2007-12-06  Jim Meyering  <meyering@redhat.com>
54753
54754         Avoid a configure-time syntax error in gl_FUNC_ACL.
54755         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
54756         function in each branch, before testing the cache variable.
54757
54758 2007-12-04  Eric Blake  <ebb9@byu.net>
54759
54760         Make scripts executable.
54761         * build-aux/config.guess: Add execute permissions.
54762         * build-aux/config.sub: Likewise.
54763         * build-aux/gendocs.sh: Likewise.
54764
54765         Fix frexp on mingw.
54766         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
54767         cross-compiling.
54768         * doc/functions/frexp.texi (frexp): Document the bug.
54769
54770         Make cygwin fseeko check more reliable.
54771         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
54772         version numbers, rather than unrelated feature check.
54773         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
54774         * doc/functions/ftello.texi (ftello): Likewise.
54775         Reported by Bruno Haible.
54776
54777         * m4/strerror.m4: Bump version number.
54778
54779 2007-12-03  Bruno Haible  <bruno@clisp.org>
54780
54781         * doc/functions/mprotect.texi: Mention the mingw problem.
54782
54783 2007-12-03  Eric Blake  <ebb9@byu.net>
54784
54785         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
54786         REPLACE_STRERROR is initialized before this macro.
54787
54788 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54789
54790         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
54791         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
54792         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
54793         put -lsec in even for programs other than 'ls'.  This fixes a problem
54794         for gettext reported by Bruno Haible in
54795         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
54796         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
54797         Add support for Solaris 10.  This isn't efficient, but should get the
54798         job done for now.
54799
54800 2007-12-03  James Youngman  <jay@gnu.org>
54801
54802         * doc/regexprops-generic.texi: change "an close-group" to "a
54803         close-group" and "illegal" to "not allowed".
54804
54805 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54806
54807         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
54808         pr_byname.h. Needed for the rare case when the maintainer has done
54809         "make maintainer-clean" in the source directory and then attempts a
54810         build outside the source directory.
54811         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
54812         scripts_byname.h.
54813
54814 2007-12-02  Martin Lambers <marlam@marlam.de>
54815             Bruno Haible  <bruno@clisp.org>
54816
54817         * lib/getpagesize.h: Remove file.
54818         * lib/unistd.in.h: Include declaration of getpagesize here.
54819         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
54820         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
54821         HAVE_SYS_PARAM_H.
54822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
54823         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54824         * modules/getpagesize (Files): Remove lib/getpagesize.h.
54825         (Depends-on): Add unistd.
54826         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54827         (Include): Use <unistd.h> instead of getpagesize.h.
54828         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
54829         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54830         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
54831         gl_GETPAGESIZE invocation, already handled by module dependency.
54832         * lib/pagealign_alloc.c: Don't include getpagesize.h.
54833
54834 2007-12-02  Bruno Haible  <bruno@clisp.org>
54835
54836         * modules/strings-tests: New file.
54837         * tests/test-strings.c: New file.
54838
54839         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
54840         * lib/strings.in.h: New file.
54841         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
54842         * m4/strings_h.m4: New file.
54843         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
54844         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
54845         * modules/strings: New file.
54846         * modules/string (Makefile.am): Update.
54847         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
54848         Reported by Karl Berry.
54849
54850 2007-12-01  Eric Blake  <ebb9@byu.net>
54851
54852         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
54853         accomodate fix in cygwin 1.5.25.
54854
54855 2007-12-01  Jim Meyering  <meyering@redhat.com>
54856
54857         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
54858         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
54859         that would inhibit utf8-optimization of a regexp containing line-
54860         or buffer-anchors, e.g., `^', `$'.
54861
54862 2007-11-30  Bruno Haible  <bruno@clisp.org>
54863
54864         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
54865         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
54866         glthread_recursive_lock_init.
54867         * lib/lock.c (glthread_recursive_lock_init)
54868         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
54869         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54870
54871 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
54872
54873         New function qset_acl, like set_acl but with syscall semantics.
54874         * lib/acl.h (qset_acl): New decl.
54875         * lib/acl.c (qset_acl): New function.
54876         (set_acl): Use new function.  Use more-consistent diagnostics.
54877
54878 2007-11-28  Jim Meyering  <meyering@redhat.com>
54879
54880         * modules/physmem (License): Change from GPL to LGPLv2+.
54881
54882 2007-11-26  Bruno Haible  <bruno@clisp.org>
54883
54884         * lib/vasnprintf.c (decode_long_double): Don't abort if the
54885         'long double' type has excess precision.
54886         Reported by Jim Meyering in
54887         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
54888
54889 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54890
54891         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
54892         Sync from <http://gnu.org/licenses>.
54893         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
54894         with license text from same location.
54895         * doc/maintain.texi, doc/standards.texi:  Sync from
54896         <http://savannah.gnu.org/projects/gnustandards>.
54897
54898 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
54899         and Jim Meyering  <meyering@redhat.com>
54900
54901         Adjust getdate' grammar to accept a slightly more regular language.
54902         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
54903         Before, the former was rejected.
54904         * lib/getdate.y (digits_to_date_time): New function, factored
54905         out of ...
54906         (number): ...here.  Just call digits_to_date_time.
54907         (hybrid): New non-terminal to handle an <unsigned number,
54908         signed relative offset> sequence consistently.
54909
54910 2007-11-18  Jim Meyering  <meyering@redhat.com>
54911
54912         Pull my changes from coreutils:
54913         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
54914         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
54915         use of $gnulib_tool_option_extras, so that it's separated from the
54916         preceding argument.
54917
54918         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
54919         * build-aux/bootstrap (cp_mark_as_generated): Create any required
54920         parent destination directories before copying a file into place.
54921
54922 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54923
54924         bootstrap: work also with 4-argument variant of AC_INIT
54925         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
54926
54927 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54928
54929         Port test-getaddrinfo to Solaris.
54930         Problem reported by Bruno Haible in
54931         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
54932         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
54933         explanation of setting 'hints'.
54934         Don't reject an implementation merely because it returns EAI_SERVICE.
54935         (EAI_SERVICE): Define to 0 if not defined.
54936
54937 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54938
54939         The license of gnu-make and posix-shell is now "GPLed build tool".
54940         * modules/gnu-make (License): Likewise.
54941         * modules/posix-shell (License): Likewise.
54942
54943         New module posix-shell, for determining a POSIX shell
54944         or perhaps something that is close enough to a POSIX shell.
54945         * m4/posix-shell.m4: New file.
54946         * modules/posix-shell: New file.
54947
54948         * MODULES.html.sh: Mention new module.
54949
54950         New module gnu-make, for determining whether we're using GNU Make.
54951         * m4/gnu-make.m4: New file.
54952         * modules/gnu-make: New file.
54953         * MODULES.html.sh: Mention new module.
54954
54955 2007-11-14  Jim Meyering  <meyering@redhat.com>
54956
54957         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
54958         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
54959         use this macro to create a function _definition_.
54960         Remove useless "#undef ARGMATCH_DIE".
54961
54962 2007-11-14  Bruno Haible  <bruno@clisp.org>
54963
54964         * lib/config.charset: Update for OpenBSD 4.1.
54965         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
54966
54967 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
54968
54969         Document 64-bit #if problems in stdint.texi.
54970         * doc/headers/stdint.texi (stdint.h): Mention problems with
54971         64-bit-#if, and how to work around them.
54972
54973         Don't insist on 'long long int' support in the preprocessor.  It
54974         breaks too many things.  For example, PRIdMAX still uses a 'long
54975         long int' format with the latest Sun compiler, even though
54976         HAVE_LONG_LONG_INT isn't defined due to that compiler's
54977         preprocessor problem.  This causes the latest coreutils to dump
54978         core on Solaris 10 sparc with the Sun C compiler.
54979         Instead, fix the 2007-10-16 problem in a different way, by evaluating
54980         the troublesome expressions at configure-time, not at #if-time.
54981         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
54982         preprocessor.
54983         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
54984         compile-time C checks, done at 'configure'-time.
54985         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
54986         * modules/inttypes (Makefile): Substitute the new symbols that
54987         gl_INTTYPES_H now generates.
54988         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
54989
54990 2007-11-12  Bruno Haible  <bruno@clisp.org>
54991
54992         Tests for Unicode character classification functions.
54993
54994         * modules/unictype/bidicategory-byname-tests: New file.
54995         * modules/unictype/bidicategory-name-tests: New file.
54996         * modules/unictype/bidicategory-of-tests: New file.
54997         * modules/unictype/bidicategory-test-tests: New file.
54998         * modules/unictype/block-list-tests: New file.
54999         * modules/unictype/block-of-tests: New file.
55000         * modules/unictype/block-test-tests: New file.
55001         * modules/unictype/category-C-tests: New file.
55002         * modules/unictype/category-Cc-tests: New file.
55003         * modules/unictype/category-Cf-tests: New file.
55004         * modules/unictype/category-Cn-tests: New file.
55005         * modules/unictype/category-Co-tests: New file.
55006         * modules/unictype/category-Cs-tests: New file.
55007         * modules/unictype/category-L-tests: New file.
55008         * modules/unictype/category-Ll-tests: New file.
55009         * modules/unictype/category-Lm-tests: New file.
55010         * modules/unictype/category-Lo-tests: New file.
55011         * modules/unictype/category-Lt-tests: New file.
55012         * modules/unictype/category-Lu-tests: New file.
55013         * modules/unictype/category-M-tests: New file.
55014         * modules/unictype/category-Mc-tests: New file.
55015         * modules/unictype/category-Me-tests: New file.
55016         * modules/unictype/category-Mn-tests: New file.
55017         * modules/unictype/category-N-tests: New file.
55018         * modules/unictype/category-Nd-tests: New file.
55019         * modules/unictype/category-Nl-tests: New file.
55020         * modules/unictype/category-No-tests: New file.
55021         * modules/unictype/category-P-tests: New file.
55022         * modules/unictype/category-Pc-tests: New file.
55023         * modules/unictype/category-Pd-tests: New file.
55024         * modules/unictype/category-Pe-tests: New file.
55025         * modules/unictype/category-Pf-tests: New file.
55026         * modules/unictype/category-Pi-tests: New file.
55027         * modules/unictype/category-Po-tests: New file.
55028         * modules/unictype/category-Ps-tests: New file.
55029         * modules/unictype/category-S-tests: New file.
55030         * modules/unictype/category-Sc-tests: New file.
55031         * modules/unictype/category-Sk-tests: New file.
55032         * modules/unictype/category-Sm-tests: New file.
55033         * modules/unictype/category-So-tests: New file.
55034         * modules/unictype/category-Z-tests: New file.
55035         * modules/unictype/category-Zl-tests: New file.
55036         * modules/unictype/category-Zp-tests: New file.
55037         * modules/unictype/category-Zs-tests: New file.
55038         * modules/unictype/category-and-not-tests: New file.
55039         * modules/unictype/category-and-tests: New file.
55040         * modules/unictype/category-byname-tests: New file.
55041         * modules/unictype/category-name-tests: New file.
55042         * modules/unictype/category-none-tests: New file.
55043         * modules/unictype/category-of-tests: New file.
55044         * modules/unictype/category-or-tests: New file.
55045         * modules/unictype/category-test-withtable-tests: New file.
55046         * modules/unictype/combining-class-tests: New file.
55047         * modules/unictype/ctype-alnum-tests: New file.
55048         * modules/unictype/ctype-alpha-tests: New file.
55049         * modules/unictype/ctype-blank-tests: New file.
55050         * modules/unictype/ctype-cntrl-tests: New file.
55051         * modules/unictype/ctype-digit-tests: New file.
55052         * modules/unictype/ctype-graph-tests: New file.
55053         * modules/unictype/ctype-lower-tests: New file.
55054         * modules/unictype/ctype-print-tests: New file.
55055         * modules/unictype/ctype-punct-tests: New file.
55056         * modules/unictype/ctype-space-tests: New file.
55057         * modules/unictype/ctype-upper-tests: New file.
55058         * modules/unictype/ctype-xdigit-tests: New file.
55059         * modules/unictype/decimal-digit-tests: New file.
55060         * modules/unictype/digit-tests: New file.
55061         * modules/unictype/mirror-tests: New file.
55062         * modules/unictype/numeric-tests: New file.
55063         * modules/unictype/property-alphabetic-tests: New file.
55064         * modules/unictype/property-ascii-hex-digit-tests: New file.
55065         * modules/unictype/property-bidi-arabic-digit-tests: New file.
55066         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
55067         * modules/unictype/property-bidi-block-separator-tests: New file.
55068         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
55069         * modules/unictype/property-bidi-common-separator-tests: New file.
55070         * modules/unictype/property-bidi-control-tests: New file.
55071         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
55072         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
55073         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
55074         * modules/unictype/property-bidi-european-digit-tests: New file.
55075         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
55076         * modules/unictype/property-bidi-left-to-right-tests: New file.
55077         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
55078         * modules/unictype/property-bidi-other-neutral-tests: New file.
55079         * modules/unictype/property-bidi-pdf-tests: New file.
55080         * modules/unictype/property-bidi-segment-separator-tests: New file.
55081         * modules/unictype/property-bidi-whitespace-tests: New file.
55082         * modules/unictype/property-byname-tests: New file.
55083         * modules/unictype/property-combining-tests: New file.
55084         * modules/unictype/property-composite-tests: New file.
55085         * modules/unictype/property-currency-symbol-tests: New file.
55086         * modules/unictype/property-dash-tests: New file.
55087         * modules/unictype/property-decimal-digit-tests: New file.
55088         * modules/unictype/property-default-ignorable-code-point-tests: New file.
55089         * modules/unictype/property-deprecated-tests: New file.
55090         * modules/unictype/property-diacritic-tests: New file.
55091         * modules/unictype/property-extender-tests: New file.
55092         * modules/unictype/property-format-control-tests: New file.
55093         * modules/unictype/property-grapheme-base-tests: New file.
55094         * modules/unictype/property-grapheme-extend-tests: New file.
55095         * modules/unictype/property-grapheme-link-tests: New file.
55096         * modules/unictype/property-hex-digit-tests: New file.
55097         * modules/unictype/property-hyphen-tests: New file.
55098         * modules/unictype/property-id-continue-tests: New file.
55099         * modules/unictype/property-id-start-tests: New file.
55100         * modules/unictype/property-ideographic-tests: New file.
55101         * modules/unictype/property-ids-binary-operator-tests: New file.
55102         * modules/unictype/property-ids-trinary-operator-tests: New file.
55103         * modules/unictype/property-ignorable-control-tests: New file.
55104         * modules/unictype/property-iso-control-tests: New file.
55105         * modules/unictype/property-join-control-tests: New file.
55106         * modules/unictype/property-left-of-pair-tests: New file.
55107         * modules/unictype/property-line-separator-tests: New file.
55108         * modules/unictype/property-logical-order-exception-tests: New file.
55109         * modules/unictype/property-lowercase-tests: New file.
55110         * modules/unictype/property-math-tests: New file.
55111         * modules/unictype/property-non-break-tests: New file.
55112         * modules/unictype/property-not-a-character-tests: New file.
55113         * modules/unictype/property-numeric-tests: New file.
55114         * modules/unictype/property-other-alphabetic-tests: New file.
55115         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
55116         * modules/unictype/property-other-grapheme-extend-tests: New file.
55117         * modules/unictype/property-other-id-continue-tests: New file.
55118         * modules/unictype/property-other-id-start-tests: New file.
55119         * modules/unictype/property-other-lowercase-tests: New file.
55120         * modules/unictype/property-other-math-tests: New file.
55121         * modules/unictype/property-other-uppercase-tests: New file.
55122         * modules/unictype/property-paired-punctuation-tests: New file.
55123         * modules/unictype/property-paragraph-separator-tests: New file.
55124         * modules/unictype/property-pattern-syntax-tests: New file.
55125         * modules/unictype/property-pattern-white-space-tests: New file.
55126         * modules/unictype/property-private-use-tests: New file.
55127         * modules/unictype/property-punctuation-tests: New file.
55128         * modules/unictype/property-quotation-mark-tests: New file.
55129         * modules/unictype/property-radical-tests: New file.
55130         * modules/unictype/property-sentence-terminal-tests: New file.
55131         * modules/unictype/property-soft-dotted-tests: New file.
55132         * modules/unictype/property-space-tests: New file.
55133         * modules/unictype/property-terminal-punctuation-tests: New file.
55134         * modules/unictype/property-test-tests: New file.
55135         * modules/unictype/property-titlecase-tests: New file.
55136         * modules/unictype/property-unassigned-code-value-tests: New file.
55137         * modules/unictype/property-unified-ideograph-tests: New file.
55138         * modules/unictype/property-uppercase-tests: New file.
55139         * modules/unictype/property-variation-selector-tests: New file.
55140         * modules/unictype/property-white-space-tests: New file.
55141         * modules/unictype/property-xid-continue-tests: New file.
55142         * modules/unictype/property-xid-start-tests: New file.
55143         * modules/unictype/property-zero-width-tests: New file.
55144         * modules/unictype/scripts-tests: New file.
55145         * modules/unictype/syntax-c-ident-tests: New file.
55146         * modules/unictype/syntax-c-whitespace-tests: New file.
55147         * modules/unictype/syntax-java-ident-tests: New file.
55148         * modules/unictype/syntax-java-whitespace-tests: New file.
55149         * tests/unictype/test-bidi_byname.c: New file.
55150         * tests/unictype/test-bidi_name.c: New file.
55151         * tests/unictype/test-bidi_of.c: New file.
55152         * tests/unictype/test-bidi_test.c: New file.
55153         * tests/unictype/test-block_list.c: New file.
55154         * tests/unictype/test-block_of.c: New file.
55155         * tests/unictype/test-block_test.c: New file.
55156         * tests/unictype/test-categ_and.c: New file.
55157         * tests/unictype/test-categ_and_not.c: New file.
55158         * tests/unictype/test-categ_byname.c: New file.
55159         * tests/unictype/test-categ_name.c: New file.
55160         * tests/unictype/test-categ_none.c: New file.
55161         * tests/unictype/test-categ_of.c: New file.
55162         * tests/unictype/test-categ_or.c: New file.
55163         * tests/unictype/test-categ_test_withtable.c: New file.
55164         * tests/unictype/test-combining.c: New file.
55165         * tests/unictype/test-decdigit.c: New file.
55166         * tests/unictype/test-digit.c: New file.
55167         * tests/unictype/test-mirror.c: New file.
55168         * tests/unictype/test-numeric.c: New file.
55169         * tests/unictype/test-pr_byname.c: New file.
55170         * tests/unictype/test-pr_test.c: New file.
55171         * tests/unictype/test-predicate-part1.h: New file.
55172         * tests/unictype/test-predicate-part2.h: New file.
55173         * tests/unictype/test-scripts.c: New file.
55174         * tests/unictype/test-sy_c_ident.c: New file.
55175         * tests/unictype/test-sy_java_ident.c: New file.
55176
55177         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
55178         for Unicode 5.0.0.
55179         * tests/unictype/test-categ_Cc.c: Likewise.
55180         * tests/unictype/test-categ_Cf.c: Likewise.
55181         * tests/unictype/test-categ_Cn.c: Likewise.
55182         * tests/unictype/test-categ_Co.c: Likewise.
55183         * tests/unictype/test-categ_Cs.c: Likewise.
55184         * tests/unictype/test-categ_L.c: Likewise.
55185         * tests/unictype/test-categ_Ll.c: Likewise.
55186         * tests/unictype/test-categ_Lm.c: Likewise.
55187         * tests/unictype/test-categ_Lo.c: Likewise.
55188         * tests/unictype/test-categ_Lt.c: Likewise.
55189         * tests/unictype/test-categ_Lu.c: Likewise.
55190         * tests/unictype/test-categ_M.c: Likewise.
55191         * tests/unictype/test-categ_Mc.c: Likewise.
55192         * tests/unictype/test-categ_Me.c: Likewise.
55193         * tests/unictype/test-categ_Mn.c: Likewise.
55194         * tests/unictype/test-categ_N.c: Likewise.
55195         * tests/unictype/test-categ_Nd.c: Likewise.
55196         * tests/unictype/test-categ_Nl.c: Likewise.
55197         * tests/unictype/test-categ_No.c: Likewise.
55198         * tests/unictype/test-categ_P.c: Likewise.
55199         * tests/unictype/test-categ_Pc.c: Likewise.
55200         * tests/unictype/test-categ_Pd.c: Likewise.
55201         * tests/unictype/test-categ_Pe.c: Likewise.
55202         * tests/unictype/test-categ_Pf.c: Likewise.
55203         * tests/unictype/test-categ_Pi.c: Likewise.
55204         * tests/unictype/test-categ_Po.c: Likewise.
55205         * tests/unictype/test-categ_Ps.c: Likewise.
55206         * tests/unictype/test-categ_S.c: Likewise.
55207         * tests/unictype/test-categ_Sc.c: Likewise.
55208         * tests/unictype/test-categ_Sk.c: Likewise.
55209         * tests/unictype/test-categ_Sm.c: Likewise.
55210         * tests/unictype/test-categ_So.c: Likewise.
55211         * tests/unictype/test-categ_Z.c: Likewise.
55212         * tests/unictype/test-categ_Zl.c: Likewise.
55213         * tests/unictype/test-categ_Zp.c: Likewise.
55214         * tests/unictype/test-categ_Zs.c: Likewise.
55215         * tests/unictype/test-ctype_alnum.c: Likewise.
55216         * tests/unictype/test-ctype_alpha.c: Likewise.
55217         * tests/unictype/test-ctype_blank.c: Likewise.
55218         * tests/unictype/test-ctype_cntrl.c: Likewise.
55219         * tests/unictype/test-ctype_digit.c: Likewise.
55220         * tests/unictype/test-ctype_graph.c: Likewise.
55221         * tests/unictype/test-ctype_lower.c: Likewise.
55222         * tests/unictype/test-ctype_print.c: Likewise.
55223         * tests/unictype/test-ctype_punct.c: Likewise.
55224         * tests/unictype/test-ctype_space.c: Likewise.
55225         * tests/unictype/test-ctype_upper.c: Likewise.
55226         * tests/unictype/test-ctype_xdigit.c: Likewise.
55227         * tests/unictype/test-decdigit.h: Likewise.
55228         * tests/unictype/test-digit.h: Likewise.
55229         * tests/unictype/test-numeric.h: Likewise.
55230         * tests/unictype/test-pr_alphabetic.c: Likewise.
55231         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
55232         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
55233         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
55234         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
55235         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
55236         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
55237         * tests/unictype/test-pr_bidi_control.c: Likewise.
55238         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
55239         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
55240         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
55241         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
55242         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
55243         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
55244         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
55245         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
55246         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
55247         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
55248         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
55249         * tests/unictype/test-pr_combining.c: Likewise.
55250         * tests/unictype/test-pr_composite.c: Likewise.
55251         * tests/unictype/test-pr_currency_symbol.c: Likewise.
55252         * tests/unictype/test-pr_dash.c: Likewise.
55253         * tests/unictype/test-pr_decimal_digit.c: Likewise.
55254         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
55255         * tests/unictype/test-pr_deprecated.c: Likewise.
55256         * tests/unictype/test-pr_diacritic.c: Likewise.
55257         * tests/unictype/test-pr_extender.c: Likewise.
55258         * tests/unictype/test-pr_format_control.c: Likewise.
55259         * tests/unictype/test-pr_grapheme_base.c: Likewise.
55260         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
55261         * tests/unictype/test-pr_grapheme_link.c: Likewise.
55262         * tests/unictype/test-pr_hex_digit.c: Likewise.
55263         * tests/unictype/test-pr_hyphen.c: Likewise.
55264         * tests/unictype/test-pr_id_continue.c: Likewise.
55265         * tests/unictype/test-pr_id_start.c: Likewise.
55266         * tests/unictype/test-pr_ideographic.c: Likewise.
55267         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
55268         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
55269         * tests/unictype/test-pr_ignorable_control.c: Likewise.
55270         * tests/unictype/test-pr_iso_control.c: Likewise.
55271         * tests/unictype/test-pr_join_control.c: Likewise.
55272         * tests/unictype/test-pr_left_of_pair.c: Likewise.
55273         * tests/unictype/test-pr_line_separator.c: Likewise.
55274         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
55275         * tests/unictype/test-pr_lowercase.c: Likewise.
55276         * tests/unictype/test-pr_math.c: Likewise.
55277         * tests/unictype/test-pr_non_break.c: Likewise.
55278         * tests/unictype/test-pr_not_a_character.c: Likewise.
55279         * tests/unictype/test-pr_numeric.c: Likewise.
55280         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
55281         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
55282         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
55283         * tests/unictype/test-pr_other_id_continue.c: Likewise.
55284         * tests/unictype/test-pr_other_id_start.c: Likewise.
55285         * tests/unictype/test-pr_other_lowercase.c: Likewise.
55286         * tests/unictype/test-pr_other_math.c: Likewise.
55287         * tests/unictype/test-pr_other_uppercase.c: Likewise.
55288         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
55289         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
55290         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
55291         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
55292         * tests/unictype/test-pr_private_use.c: Likewise.
55293         * tests/unictype/test-pr_punctuation.c: Likewise.
55294         * tests/unictype/test-pr_quotation_mark.c: Likewise.
55295         * tests/unictype/test-pr_radical.c: Likewise.
55296         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
55297         * tests/unictype/test-pr_soft_dotted.c: Likewise.
55298         * tests/unictype/test-pr_space.c: Likewise.
55299         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
55300         * tests/unictype/test-pr_titlecase.c: Likewise.
55301         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
55302         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
55303         * tests/unictype/test-pr_uppercase.c: Likewise.
55304         * tests/unictype/test-pr_variation_selector.c: Likewise.
55305         * tests/unictype/test-pr_white_space.c: Likewise.
55306         * tests/unictype/test-pr_xid_continue.c: Likewise.
55307         * tests/unictype/test-pr_xid_start.c: Likewise.
55308         * tests/unictype/test-pr_zero_width.c: Likewise.
55309         * tests/unictype/test-sy_c_whitespace.c: Likewise.
55310         * tests/unictype/test-sy_java_whitespace.c: Likewise.
55311
55312 2007-11-12  Bruno Haible  <bruno@clisp.org>
55313
55314         Unicode character classification functions.
55315         * lib/unictype.h: New file.
55316         * modules/unictype/base: New file.
55317         * modules/unictype/category-L: New file.
55318         * modules/unictype/category-Lu: New file.
55319         * modules/unictype/category-Ll: New file.
55320         * modules/unictype/category-Lt: New file.
55321         * modules/unictype/category-Lm: New file.
55322         * modules/unictype/category-Lo: New file.
55323         * modules/unictype/category-M: New file.
55324         * modules/unictype/category-Mn: New file.
55325         * modules/unictype/category-Mc: New file.
55326         * modules/unictype/category-Me: New file.
55327         * modules/unictype/category-N: New file.
55328         * modules/unictype/category-Nd: New file.
55329         * modules/unictype/category-Nl: New file.
55330         * modules/unictype/category-No: New file.
55331         * modules/unictype/category-P: New file.
55332         * modules/unictype/category-Pc: New file.
55333         * modules/unictype/category-Pd: New file.
55334         * modules/unictype/category-Ps: New file.
55335         * modules/unictype/category-Pe: New file.
55336         * modules/unictype/category-Pi: New file.
55337         * modules/unictype/category-Pf: New file.
55338         * modules/unictype/category-Po: New file.
55339         * modules/unictype/category-S: New file.
55340         * modules/unictype/category-Sm: New file.
55341         * modules/unictype/category-Sc: New file.
55342         * modules/unictype/category-Sk: New file.
55343         * modules/unictype/category-So: New file.
55344         * modules/unictype/category-Z: New file.
55345         * modules/unictype/category-Zs: New file.
55346         * modules/unictype/category-Zl: New file.
55347         * modules/unictype/category-Zp: New file.
55348         * modules/unictype/category-C: New file.
55349         * modules/unictype/category-Cc: New file.
55350         * modules/unictype/category-Cf: New file.
55351         * modules/unictype/category-Cs: New file.
55352         * modules/unictype/category-Co: New file.
55353         * modules/unictype/category-Cn: New file.
55354         * modules/unictype/category-or: New file.
55355         * modules/unictype/category-of: New file.
55356         * modules/unictype/category-test: New file.
55357         * modules/unictype/category-test-withtable: New file.
55358         * modules/unictype/category-byname: New file.
55359         * modules/unictype/category-none: New file.
55360         * modules/unictype/category-and: New file.
55361         * modules/unictype/category-and-not: New file.
55362         * modules/unictype/category-name: New file.
55363         * modules/unictype/combining-class: New file.
55364         * modules/unictype/category-all: New file.
55365         * modules/unictype/bidicategory-all: New file.
55366         * modules/unictype/bidicategory-byname: New file.
55367         * modules/unictype/bidicategory-name: New file.
55368         * modules/unictype/bidicategory-of: New file.
55369         * modules/unictype/bidicategory-test: New file.
55370         * modules/unictype/decimal-digit: New file.
55371         * modules/unictype/digit: New file.
55372         * modules/unictype/numeric: New file.
55373         * modules/unictype/mirror: New file.
55374         * modules/unictype/property-white-space: New file.
55375         * modules/unictype/property-alphabetic: New file.
55376         * modules/unictype/property-other-alphabetic: New file.
55377         * modules/unictype/property-not-a-character: New file.
55378         * modules/unictype/property-default-ignorable-code-point: New file.
55379         * modules/unictype/property-other-default-ignorable-code-point: New
55380         file.
55381         * modules/unictype/property-deprecated: New file.
55382         * modules/unictype/property-logical-order-exception: New file.
55383         * modules/unictype/property-variation-selector: New file.
55384         * modules/unictype/property-private-use: New file.
55385         * modules/unictype/property-unassigned-code-value: New file.
55386         * modules/unictype/property-uppercase: New file.
55387         * modules/unictype/property-other-uppercase: New file.
55388         * modules/unictype/property-lowercase: New file.
55389         * modules/unictype/property-other-lowercase: New file.
55390         * modules/unictype/property-titlecase: New file.
55391         * modules/unictype/property-soft-dotted: New file.
55392         * modules/unictype/property-id-start: New file.
55393         * modules/unictype/property-other-id-start: New file.
55394         * modules/unictype/property-id-continue: New file.
55395         * modules/unictype/property-other-id-continue: New file.
55396         * modules/unictype/property-xid-start: New file.
55397         * modules/unictype/property-xid-continue: New file.
55398         * modules/unictype/property-pattern-white-space: New file.
55399         * modules/unictype/property-pattern-syntax: New file.
55400         * modules/unictype/property-join-control: New file.
55401         * modules/unictype/property-grapheme-base: New file.
55402         * modules/unictype/property-grapheme-extend: New file.
55403         * modules/unictype/property-other-grapheme-extend: New file.
55404         * modules/unictype/property-grapheme-link: New file.
55405         * modules/unictype/property-bidi-control: New file.
55406         * modules/unictype/property-bidi-left-to-right: New file.
55407         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
55408         * modules/unictype/property-bidi-arabic-right-to-left: New file.
55409         * modules/unictype/property-bidi-european-digit: New file.
55410         * modules/unictype/property-bidi-eur-num-separator: New file.
55411         * modules/unictype/property-bidi-eur-num-terminator: New file.
55412         * modules/unictype/property-bidi-arabic-digit: New file.
55413         * modules/unictype/property-bidi-common-separator: New file.
55414         * modules/unictype/property-bidi-block-separator: New file.
55415         * modules/unictype/property-bidi-segment-separator: New file.
55416         * modules/unictype/property-bidi-whitespace: New file.
55417         * modules/unictype/property-bidi-non-spacing-mark: New file.
55418         * modules/unictype/property-bidi-boundary-neutral: New file.
55419         * modules/unictype/property-bidi-pdf: New file.
55420         * modules/unictype/property-bidi-embedding-or-override: New file.
55421         * modules/unictype/property-bidi-other-neutral: New file.
55422         * modules/unictype/property-hex-digit: New file.
55423         * modules/unictype/property-ascii-hex-digit: New file.
55424         * modules/unictype/property-ideographic: New file.
55425         * modules/unictype/property-unified-ideograph: New file.
55426         * modules/unictype/property-radical: New file.
55427         * modules/unictype/property-ids-binary-operator: New file.
55428         * modules/unictype/property-ids-trinary-operator: New file.
55429         * modules/unictype/property-zero-width: New file.
55430         * modules/unictype/property-space: New file.
55431         * modules/unictype/property-non-break: New file.
55432         * modules/unictype/property-iso-control: New file.
55433         * modules/unictype/property-format-control: New file.
55434         * modules/unictype/property-dash: New file.
55435         * modules/unictype/property-hyphen: New file.
55436         * modules/unictype/property-punctuation: New file.
55437         * modules/unictype/property-line-separator: New file.
55438         * modules/unictype/property-paragraph-separator: New file.
55439         * modules/unictype/property-quotation-mark: New file.
55440         * modules/unictype/property-sentence-terminal: New file.
55441         * modules/unictype/property-terminal-punctuation: New file.
55442         * modules/unictype/property-currency-symbol: New file.
55443         * modules/unictype/property-math: New file.
55444         * modules/unictype/property-other-math: New file.
55445         * modules/unictype/property-paired-punctuation: New file.
55446         * modules/unictype/property-left-of-pair: New file.
55447         * modules/unictype/property-combining: New file.
55448         * modules/unictype/property-composite: New file.
55449         * modules/unictype/property-decimal-digit: New file.
55450         * modules/unictype/property-numeric: New file.
55451         * modules/unictype/property-diacritic: New file.
55452         * modules/unictype/property-extender: New file.
55453         * modules/unictype/property-ignorable-control: New file.
55454         * modules/unictype/property-test: New file.
55455         * modules/unictype/property-byname: New file.
55456         * modules/unictype/property-all: New file.
55457         * modules/unictype/scripts: New file.
55458         * modules/unictype/scripts-all: New file.
55459         * modules/unictype/block-of: New file.
55460         * modules/unictype/block-test: New file.
55461         * modules/unictype/block-list: New file.
55462         * modules/unictype/block-all: New file.
55463         * modules/unictype/syntax-c-whitespace: New file.
55464         * modules/unictype/syntax-java-whitespace: New file.
55465         * modules/unictype/syntax-c-ident: New file.
55466         * modules/unictype/syntax-java-ident: New file.
55467         * modules/unictype/ctype-alnum: New file.
55468         * modules/unictype/ctype-alpha: New file.
55469         * modules/unictype/ctype-cntrl: New file.
55470         * modules/unictype/ctype-digit: New file.
55471         * modules/unictype/ctype-graph: New file.
55472         * modules/unictype/ctype-lower: New file.
55473         * modules/unictype/ctype-print: New file.
55474         * modules/unictype/ctype-punct: New file.
55475         * modules/unictype/ctype-space: New file.
55476         * modules/unictype/ctype-upper: New file.
55477         * modules/unictype/ctype-xdigit: New file.
55478         * modules/unictype/ctype-blank: New file.
55479         * lib/unictype/bidi_byname.c: New file.
55480         * lib/unictype/bidi_name.c: New file.
55481         * lib/unictype/bidi_of.c: New file.
55482         * lib/unictype/bidi_test.c: New file.
55483         * lib/unictype/bitmap.h: New file.
55484         * lib/unictype/block_test.c: New file.
55485         * lib/unictype/blocks.c: New file.
55486         * lib/unictype/categ_C.c: New file.
55487         * lib/unictype/categ_Cc.c: New file.
55488         * lib/unictype/categ_Cf.c: New file.
55489         * lib/unictype/categ_Cn.c: New file.
55490         * lib/unictype/categ_Co.c: New file.
55491         * lib/unictype/categ_Cs.c: New file.
55492         * lib/unictype/categ_L.c: New file.
55493         * lib/unictype/categ_Ll.c: New file.
55494         * lib/unictype/categ_Lm.c: New file.
55495         * lib/unictype/categ_Lo.c: New file.
55496         * lib/unictype/categ_Lt.c: New file.
55497         * lib/unictype/categ_Lu.c: New file.
55498         * lib/unictype/categ_M.c: New file.
55499         * lib/unictype/categ_Mc.c: New file.
55500         * lib/unictype/categ_Me.c: New file.
55501         * lib/unictype/categ_Mn.c: New file.
55502         * lib/unictype/categ_N.c: New file.
55503         * lib/unictype/categ_Nd.c: New file.
55504         * lib/unictype/categ_Nl.c: New file.
55505         * lib/unictype/categ_No.c: New file.
55506         * lib/unictype/categ_P.c: New file.
55507         * lib/unictype/categ_Pc.c: New file.
55508         * lib/unictype/categ_Pd.c: New file.
55509         * lib/unictype/categ_Pe.c: New file.
55510         * lib/unictype/categ_Pf.c: New file.
55511         * lib/unictype/categ_Pi.c: New file.
55512         * lib/unictype/categ_Po.c: New file.
55513         * lib/unictype/categ_Ps.c: New file.
55514         * lib/unictype/categ_S.c: New file.
55515         * lib/unictype/categ_Sc.c: New file.
55516         * lib/unictype/categ_Sk.c: New file.
55517         * lib/unictype/categ_Sm.c: New file.
55518         * lib/unictype/categ_So.c: New file.
55519         * lib/unictype/categ_Z.c: New file.
55520         * lib/unictype/categ_Zl.c: New file.
55521         * lib/unictype/categ_Zp.c: New file.
55522         * lib/unictype/categ_Zs.c: New file.
55523         * lib/unictype/categ_and.c: New file.
55524         * lib/unictype/categ_and_not.c: New file.
55525         * lib/unictype/categ_byname.c: New file.
55526         * lib/unictype/categ_name.c: New file.
55527         * lib/unictype/categ_none.c: New file.
55528         * lib/unictype/categ_of.c: New file.
55529         * lib/unictype/categ_or.c: New file.
55530         * lib/unictype/categ_test.c: New file.
55531         * lib/unictype/combining.c: New file.
55532         * lib/unictype/ctype_alnum.c: New file.
55533         * lib/unictype/ctype_alpha.c: New file.
55534         * lib/unictype/ctype_blank.c: New file.
55535         * lib/unictype/ctype_cntrl.c: New file.
55536         * lib/unictype/ctype_digit.c: New file.
55537         * lib/unictype/ctype_graph.c: New file.
55538         * lib/unictype/ctype_lower.c: New file.
55539         * lib/unictype/ctype_print.c: New file.
55540         * lib/unictype/ctype_punct.c: New file.
55541         * lib/unictype/ctype_space.c: New file.
55542         * lib/unictype/ctype_upper.c: New file.
55543         * lib/unictype/ctype_xdigit.c: New file.
55544         * lib/unictype/decdigit.c: New file.
55545         * lib/unictype/digit.c: New file.
55546         * lib/unictype/identsyntaxmap.h: New file.
55547         * lib/unictype/mirror.c: New file.
55548         * lib/unictype/numeric.c: New file.
55549         * lib/unictype/pr_alphabetic.c: New file.
55550         * lib/unictype/pr_ascii_hex_digit.c: New file.
55551         * lib/unictype/pr_bidi_arabic_digit.c: New file.
55552         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
55553         * lib/unictype/pr_bidi_block_separator.c: New file.
55554         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
55555         * lib/unictype/pr_bidi_common_separator.c: New file.
55556         * lib/unictype/pr_bidi_control.c: New file.
55557         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
55558         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
55559         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
55560         * lib/unictype/pr_bidi_european_digit.c: New file.
55561         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
55562         * lib/unictype/pr_bidi_left_to_right.c: New file.
55563         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
55564         * lib/unictype/pr_bidi_other_neutral.c: New file.
55565         * lib/unictype/pr_bidi_pdf.c: New file.
55566         * lib/unictype/pr_bidi_segment_separator.c: New file.
55567         * lib/unictype/pr_bidi_whitespace.c: New file.
55568         * lib/unictype/pr_byname.c: New file.
55569         * lib/unictype/pr_byname.gperf: New file.
55570         * lib/unictype/pr_combining.c: New file.
55571         * lib/unictype/pr_composite.c: New file.
55572         * lib/unictype/pr_currency_symbol.c: New file.
55573         * lib/unictype/pr_dash.c: New file.
55574         * lib/unictype/pr_decimal_digit.c: New file.
55575         * lib/unictype/pr_default_ignorable_code_point.c: New file.
55576         * lib/unictype/pr_deprecated.c: New file.
55577         * lib/unictype/pr_diacritic.c: New file.
55578         * lib/unictype/pr_extender.c: New file.
55579         * lib/unictype/pr_format_control.c: New file.
55580         * lib/unictype/pr_grapheme_base.c: New file.
55581         * lib/unictype/pr_grapheme_extend.c: New file.
55582         * lib/unictype/pr_grapheme_link.c: New file.
55583         * lib/unictype/pr_hex_digit.c: New file.
55584         * lib/unictype/pr_hyphen.c: New file.
55585         * lib/unictype/pr_id_continue.c: New file.
55586         * lib/unictype/pr_id_start.c: New file.
55587         * lib/unictype/pr_ideographic.c: New file.
55588         * lib/unictype/pr_ids_binary_operator.c: New file.
55589         * lib/unictype/pr_ids_trinary_operator.c: New file.
55590         * lib/unictype/pr_ignorable_control.c: New file.
55591         * lib/unictype/pr_iso_control.c: New file.
55592         * lib/unictype/pr_join_control.c: New file.
55593         * lib/unictype/pr_left_of_pair.c: New file.
55594         * lib/unictype/pr_line_separator.c: New file.
55595         * lib/unictype/pr_logical_order_exception.c: New file.
55596         * lib/unictype/pr_lowercase.c: New file.
55597         * lib/unictype/pr_math.c: New file.
55598         * lib/unictype/pr_non_break.c: New file.
55599         * lib/unictype/pr_not_a_character.c: New file.
55600         * lib/unictype/pr_numeric.c: New file.
55601         * lib/unictype/pr_other_alphabetic.c: New file.
55602         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
55603         * lib/unictype/pr_other_grapheme_extend.c: New file.
55604         * lib/unictype/pr_other_id_continue.c: New file.
55605         * lib/unictype/pr_other_id_start.c: New file.
55606         * lib/unictype/pr_other_lowercase.c: New file.
55607         * lib/unictype/pr_other_math.c: New file.
55608         * lib/unictype/pr_other_uppercase.c: New file.
55609         * lib/unictype/pr_paired_punctuation.c: New file.
55610         * lib/unictype/pr_paragraph_separator.c: New file.
55611         * lib/unictype/pr_pattern_syntax.c: New file.
55612         * lib/unictype/pr_pattern_white_space.c: New file.
55613         * lib/unictype/pr_private_use.c: New file.
55614         * lib/unictype/pr_punctuation.c: New file.
55615         * lib/unictype/pr_quotation_mark.c: New file.
55616         * lib/unictype/pr_radical.c: New file.
55617         * lib/unictype/pr_sentence_terminal.c: New file.
55618         * lib/unictype/pr_soft_dotted.c: New file.
55619         * lib/unictype/pr_space.c: New file.
55620         * lib/unictype/pr_terminal_punctuation.c: New file.
55621         * lib/unictype/pr_test.c: New file.
55622         * lib/unictype/pr_titlecase.c: New file.
55623         * lib/unictype/pr_unassigned_code_value.c: New file.
55624         * lib/unictype/pr_unified_ideograph.c: New file.
55625         * lib/unictype/pr_uppercase.c: New file.
55626         * lib/unictype/pr_variation_selector.c: New file.
55627         * lib/unictype/pr_white_space.c: New file.
55628         * lib/unictype/pr_xid_continue.c: New file.
55629         * lib/unictype/pr_xid_start.c: New file.
55630         * lib/unictype/pr_zero_width.c: New file.
55631         * lib/unictype/scripts.c: New file.
55632         * lib/unictype/sy_c_ident.c: New file.
55633         * lib/unictype/sy_c_whitespace.c: New file.
55634         * lib/unictype/sy_java_ident.c: New file.
55635         * lib/unictype/sy_java_whitespace.c: New file.
55636
55637         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
55638         Unicode 5.0.0.
55639         * lib/unictype/blocks.h: Likewise.
55640         * lib/unictype/categ_C.h: Likewise.
55641         * lib/unictype/categ_Cc.h: Likewise.
55642         * lib/unictype/categ_Cf.h: Likewise.
55643         * lib/unictype/categ_Cn.h: Likewise.
55644         * lib/unictype/categ_Co.h: Likewise.
55645         * lib/unictype/categ_Cs.h: Likewise.
55646         * lib/unictype/categ_L.h: Likewise.
55647         * lib/unictype/categ_Ll.h: Likewise.
55648         * lib/unictype/categ_Lm.h: Likewise.
55649         * lib/unictype/categ_Lo.h: Likewise.
55650         * lib/unictype/categ_Lt.h: Likewise.
55651         * lib/unictype/categ_Lu.h: Likewise.
55652         * lib/unictype/categ_M.h: Likewise.
55653         * lib/unictype/categ_Mc.h: Likewise.
55654         * lib/unictype/categ_Me.h: Likewise.
55655         * lib/unictype/categ_Mn.h: Likewise.
55656         * lib/unictype/categ_N.h: Likewise.
55657         * lib/unictype/categ_Nd.h: Likewise.
55658         * lib/unictype/categ_Nl.h: Likewise.
55659         * lib/unictype/categ_No.h: Likewise.
55660         * lib/unictype/categ_P.h: Likewise.
55661         * lib/unictype/categ_Pc.h: Likewise.
55662         * lib/unictype/categ_Pd.h: Likewise.
55663         * lib/unictype/categ_Pe.h: Likewise.
55664         * lib/unictype/categ_Pf.h: Likewise.
55665         * lib/unictype/categ_Pi.h: Likewise.
55666         * lib/unictype/categ_Po.h: Likewise.
55667         * lib/unictype/categ_Ps.h: Likewise.
55668         * lib/unictype/categ_S.h: Likewise.
55669         * lib/unictype/categ_Sc.h: Likewise.
55670         * lib/unictype/categ_Sk.h: Likewise.
55671         * lib/unictype/categ_Sm.h: Likewise.
55672         * lib/unictype/categ_So.h: Likewise.
55673         * lib/unictype/categ_Z.h: Likewise.
55674         * lib/unictype/categ_Zl.h: Likewise.
55675         * lib/unictype/categ_Zp.h: Likewise.
55676         * lib/unictype/categ_Zs.h: Likewise.
55677         * lib/unictype/categ_of.h: Likewise.
55678         * lib/unictype/combining.h: Likewise.
55679         * lib/unictype/ctype_alnum.h: Likewise.
55680         * lib/unictype/ctype_alpha.h: Likewise.
55681         * lib/unictype/ctype_blank.h: Likewise.
55682         * lib/unictype/ctype_cntrl.h: Likewise.
55683         * lib/unictype/ctype_digit.h: Likewise.
55684         * lib/unictype/ctype_graph.h: Likewise.
55685         * lib/unictype/ctype_lower.h: Likewise.
55686         * lib/unictype/ctype_print.h: Likewise.
55687         * lib/unictype/ctype_punct.h: Likewise.
55688         * lib/unictype/ctype_space.h: Likewise.
55689         * lib/unictype/ctype_upper.h: Likewise.
55690         * lib/unictype/ctype_xdigit.h: Likewise.
55691         * lib/unictype/decdigit.h: Likewise.
55692         * lib/unictype/digit.h: Likewise.
55693         * lib/unictype/mirror.h: Likewise.
55694         * lib/unictype/numeric.h: Likewise.
55695         * lib/unictype/pr_alphabetic.h: Likewise.
55696         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55697         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55698         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55699         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55700         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55701         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55702         * lib/unictype/pr_bidi_control.h: Likewise.
55703         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55704         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55705         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55706         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55707         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55708         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55709         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55710         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55711         * lib/unictype/pr_bidi_pdf.h: Likewise.
55712         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55713         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55714         * lib/unictype/pr_combining.h: Likewise.
55715         * lib/unictype/pr_composite.h: Likewise.
55716         * lib/unictype/pr_currency_symbol.h: Likewise.
55717         * lib/unictype/pr_dash.h: Likewise.
55718         * lib/unictype/pr_decimal_digit.h: Likewise.
55719         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55720         * lib/unictype/pr_deprecated.h: Likewise.
55721         * lib/unictype/pr_diacritic.h: Likewise.
55722         * lib/unictype/pr_extender.h: Likewise.
55723         * lib/unictype/pr_format_control.h: Likewise.
55724         * lib/unictype/pr_grapheme_base.h: Likewise.
55725         * lib/unictype/pr_grapheme_extend.h: Likewise.
55726         * lib/unictype/pr_grapheme_link.h: Likewise.
55727         * lib/unictype/pr_hex_digit.h: Likewise.
55728         * lib/unictype/pr_hyphen.h: Likewise.
55729         * lib/unictype/pr_id_continue.h: Likewise.
55730         * lib/unictype/pr_id_start.h: Likewise.
55731         * lib/unictype/pr_ideographic.h: Likewise.
55732         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55733         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55734         * lib/unictype/pr_ignorable_control.h: Likewise.
55735         * lib/unictype/pr_iso_control.h: Likewise.
55736         * lib/unictype/pr_join_control.h: Likewise.
55737         * lib/unictype/pr_left_of_pair.h: Likewise.
55738         * lib/unictype/pr_line_separator.h: Likewise.
55739         * lib/unictype/pr_logical_order_exception.h: Likewise.
55740         * lib/unictype/pr_lowercase.h: Likewise.
55741         * lib/unictype/pr_math.h: Likewise.
55742         * lib/unictype/pr_non_break.h: Likewise.
55743         * lib/unictype/pr_not_a_character.h: Likewise.
55744         * lib/unictype/pr_numeric.h: Likewise.
55745         * lib/unictype/pr_other_alphabetic.h: Likewise.
55746         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55747         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55748         * lib/unictype/pr_other_id_continue.h: Likewise.
55749         * lib/unictype/pr_other_id_start.h: Likewise.
55750         * lib/unictype/pr_other_lowercase.h: Likewise.
55751         * lib/unictype/pr_other_math.h: Likewise.
55752         * lib/unictype/pr_other_uppercase.h: Likewise.
55753         * lib/unictype/pr_paired_punctuation.h: Likewise.
55754         * lib/unictype/pr_paragraph_separator.h: Likewise.
55755         * lib/unictype/pr_pattern_syntax.h: Likewise.
55756         * lib/unictype/pr_pattern_white_space.h: Likewise.
55757         * lib/unictype/pr_private_use.h: Likewise.
55758         * lib/unictype/pr_punctuation.h: Likewise.
55759         * lib/unictype/pr_quotation_mark.h: Likewise.
55760         * lib/unictype/pr_radical.h: Likewise.
55761         * lib/unictype/pr_sentence_terminal.h: Likewise.
55762         * lib/unictype/pr_soft_dotted.h: Likewise.
55763         * lib/unictype/pr_space.h: Likewise.
55764         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55765         * lib/unictype/pr_titlecase.h: Likewise.
55766         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55767         * lib/unictype/pr_unified_ideograph.h: Likewise.
55768         * lib/unictype/pr_uppercase.h: Likewise.
55769         * lib/unictype/pr_variation_selector.h: Likewise.
55770         * lib/unictype/pr_white_space.h: Likewise.
55771         * lib/unictype/pr_xid_continue.h: Likewise.
55772         * lib/unictype/pr_xid_start.h: Likewise.
55773         * lib/unictype/pr_zero_width.h: Likewise.
55774         * lib/unictype/scripts.h: Likewise.
55775         * lib/unictype/scripts_byname.gperf: Likewise.
55776         * lib/unictype/sy_c_ident.h: Likewise.
55777         * lib/unictype/sy_c_whitespace.h: Likewise.
55778         * lib/unictype/sy_java_ident.h: Likewise.
55779         * lib/unictype/sy_java_whitespace.h: Likewise.
55780
55781         * lib/unictype/Makefile: New file.
55782         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
55783         glibc.
55784         * lib/unictype/3level.h: New file, copied from glibc.
55785         * lib/unictype/3levelbit.h: New file.
55786
55787 2007-11-11  Bruno Haible  <bruno@clisp.org>
55788
55789         * modules/gperf: New file.
55790         * modules/iconv_open (Depends-on): Add it.
55791         (Makefile.am): Remove the GPERF definition.
55792
55793 2007-11-11  Bruno Haible  <bruno@clisp.org>
55794
55795         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
55796         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
55797
55798 2007-11-11  Bruno Haible  <bruno@clisp.org>
55799
55800         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
55801         (usage): Remove function.
55802
55803 2007-11-11  Bruno Haible  <bruno@clisp.org>
55804
55805         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
55806         gl_FUNC_CEILF_LIBS.
55807         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
55808         gl_FUNC_CEIL_LIBS.
55809         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
55810         gl_FUNC_CEILL_LIBS.
55811         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
55812         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
55813         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
55814
55815 2007-11-11  Bruno Haible  <bruno@clisp.org>
55816
55817         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
55818         roundf were declared but do not exist on functions.
55819         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
55820         roundl were declared but do not exist on functions.
55821         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
55822         HAVE_FLOORL_AND_CEILL, respectively.
55823         Needed for Sun C on Solaris 10.
55824
55825 2007-11-11  Bruno Haible  <bruno@clisp.org>
55826
55827         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
55828         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
55829         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
55830         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
55831         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
55832         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
55833         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
55834         HAVE_DECL_ROUNDF.
55835         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
55836         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
55837         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
55838         of HAVE_DECL_ROUND*.
55839         * modules/math (Makefile.am): Update.
55840
55841 2007-11-10  Bruno Haible  <bruno@clisp.org>
55842
55843         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
55844         ptrdiff_t as m4/intl.m4.
55845
55846 2007-11-10  Jim Meyering  <meyering@redhat.com>
55847
55848         Avoid link failure for the argmatch test.
55849         * tests/test-argmatch.c (usage): Define function to avoid a link
55850         failure: argmatch_die requires a usage function.
55851
55852 2007-11-09  Bruno Haible  <bruno@clisp.org>
55853
55854         * doc/functions/snprintf.texi: Mention BeOS deficiency.
55855         * doc/functions/vsnprintf.texi: Likewise.
55856         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
55857         with a size argument < 2.
55858
55859 2007-11-09  Bruno Haible  <bruno@clisp.org>
55860
55861         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
55862         buffer. Fixes an inefficiency introduced on 2007-11-03.
55863
55864 2007-11-09  Bruno Haible  <bruno@clisp.org>
55865
55866         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
55867         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
55868
55869 2007-11-08  Jim Meyering  <meyering@redhat.com>
55870
55871         Change cache variable name prefix "jm_" to "gl_" everywhere.
55872         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
55873         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
55874         * m4/uptime.m4: s/gl_/jm_/
55875
55876 2007-11-07  Bruno Haible  <bruno@clisp.org>
55877
55878         Update to GNU gettext 0.17.
55879         * m4/intl.m4: Update to GNU gettext 0.17.
55880         * m4/po.m4: Likewise.
55881         * modules/gettext (Files): Remove m4/ulonglong.m4.
55882         (configure.ac): Require gettext infrastructure from version 0.17.
55883
55884 2007-11-06  Bruno Haible  <bruno@clisp.org>
55885
55886         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
55887         symbolic values are not defined in a public header.
55888         * lib/freadable.c (freadable) [QNX]: Likewise.
55889         * lib/freadahead.c (freadahead) [QNX]: Likewise.
55890         * lib/freading.c (freading) [QNX]: Likewise.
55891         * lib/fseterr.c (fseterr) [QNX]: Likewise.
55892         * lib/fwritable.c (fwritable) [QNX]: Likewise.
55893         * lib/fwriting.c (fwriting) [QNX]: Likewise.
55894         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
55895         Reported by Alain Magloire.
55896
55897         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
55898
55899 2007-11-05  Bruno Haible  <bruno@clisp.org>
55900
55901         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
55902         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
55903         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
55904         Reported by Eric Blake.
55905
55906 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55907             Bruno Haible  <bruno@clisp.org>
55908
55909         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
55910         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
55911         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
55912         (malloc): Undefine also before including <stdlib.h>.
55913         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
55914         Needed on OSF/1 4.0.
55915
55916 2007-11-05  Jim Meyering  <meyering@redhat.com>
55917
55918         git-version-gen: sync from coreutils.
55919         * build-aux/git-version-gen: Add comments.
55920         Change the first '-' to '.' in the snapshot version string,
55921         e.g., 6.9-377-08144 -> 6.9.377-08144
55922         Remove first parameter.
55923         Don't declare a version "-dirty" merely because a time
55924         stamp has changed.
55925
55926 2007-11-04  Bruno Haible  <bruno@clisp.org>
55927
55928         * lib/lock.h: Protect all macro definitions containing an 'if'
55929         statement through a "do { ... } while (0)".
55930         * lib/tls.h: Likewise.
55931
55932 2007-11-04  Bruno Haible  <bruno@clisp.org>
55933
55934         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
55935
55936 2007-11-04  Bruno Haible  <bruno@clisp.org>
55937
55938         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
55939         * modules/fprintf-posix (Depends-on): Add nocrash.
55940         * modules/snprintf-posix (Depends-on): Likewise.
55941         * modules/sprintf-posix (Depends-on): Likewise.
55942         * modules/vasnprintf-posix (Depends-on): Likewise.
55943         * modules/vasprintf-posix (Depends-on): Likewise.
55944         * modules/vfprintf-posix (Depends-on): Likewise.
55945         * modules/vsnprintf-posix (Depends-on): Likewise.
55946         * modules/vsprintf-posix (Depends-on): Likewise.
55947         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55948         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55949         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55950         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55951         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55952         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55953         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55954
55955 2007-11-04  Bruno Haible  <bruno@clisp.org>
55956
55957         * modules/nocrash: New file.
55958         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
55959         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
55960
55961 2007-11-04  Bruno Haible  <bruno@clisp.org>
55962
55963         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
55964         precision handling.
55965         * tests/test-vasprintf-posix.c (test_function): Likewise.
55966         * tests/test-snprintf-posix.h (test_function): Likewise.
55967         * tests/test-sprintf-posix.h (test_function): Likewise.
55968
55969         Fix *printf behaviour for large precisions on mingw and BeOS.
55970         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
55971         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
55972         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
55973         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55974         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55975         gl_PRINTF_PRECISION and test its result. Invoke
55976         gl_PREREQ_VASNPRINTF_PRECISION.
55977         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55978         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55979         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55980         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55981         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55982         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55983         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55984         * doc/functions/fprintf.texi: Update.
55985         * doc/functions/printf.texi: Update.
55986         * doc/functions/snprintf.texi: Update.
55987         * doc/functions/sprintf.texi: Update.
55988         * doc/functions/vfprintf.texi: Update.
55989         * doc/functions/vprintf.texi: Update.
55990         * doc/functions/vsnprintf.texi: Update.
55991         * doc/functions/vsprintf.texi: Update.
55992
55993 2007-11-04  Bruno Haible  <bruno@clisp.org>
55994
55995         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
55996
55997 2007-11-04  Bruno Haible  <bruno@clisp.org>
55998
55999         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
56000         Reported by Sylvain Beucler <beuc@gnu.org>.
56001
56002 2007-11-03  Bruno Haible  <bruno@clisp.org>
56003
56004         * tests/test-fprintf-posix2.sh: New file.
56005         * tests/test-fprintf-posix2.c: New file.
56006         * modules/fprintf-posix-tests (Files): Add them.
56007         (TESTS): Add test-fprintf-posix2.sh.
56008         (configure.ac): Check for getrlimit and setrlimit.
56009         (check_PROGRAMS): Add test-fprintf-posix2.
56010
56011         * tests/test-printf-posix2.sh: New file.
56012         * tests/test-printf-posix2.c: New file.
56013         * modules/printf-posix-tests (Files): Add them.
56014         (TESTS): Add test-printf-posix2.sh.
56015         (configure.ac): Check for getrlimit and setrlimit.
56016         (check_PROGRAMS): Add test-printf-posix2.
56017
56018         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
56019         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
56020         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
56021         (decode_double): New function, copied from decode_long_double.
56022         (scale10_round_decimal_decoded): New function, extracted from
56023         scale10_round_decimal_long_double.
56024         (scale10_round_decimal_long_double): Use it.
56025         (scale10_round_decimal_double): New function.
56026         (floorlog10): New function.
56027         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
56028         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
56029         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56030         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56031         gl_PRINTF_ENOMEM and test its result. Invoke
56032         gl_PREREQ_VASNPRINTF_ENOMEM.
56033         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56034         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56035         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56036         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56037         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56038         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56039         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56040         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
56041         * modules/snprintf-posix (Depends-on): Likewise.
56042         * modules/sprintf-posix (Depends-on): Likewise.
56043         * modules/vasnprintf-posix (Depends-on): Likewise.
56044         * modules/vasprintf-posix (Depends-on): Likewise.
56045         * modules/vfprintf-posix (Depends-on): Likewise.
56046         * modules/vsnprintf-posix (Depends-on): Likewise.
56047         * modules/vsprintf-posix (Depends-on): Likewise.
56048         * doc/functions/fprintf.texi: Update.
56049         * doc/functions/printf.texi: Update.
56050         * doc/functions/snprintf.texi: Update.
56051         * doc/functions/sprintf.texi: Update.
56052         * doc/functions/vfprintf.texi: Update.
56053         * doc/functions/vprintf.texi: Update.
56054         * doc/functions/vsnprintf.texi: Update.
56055         * doc/functions/vsprintf.texi: Update.
56056
56057 2007-11-03  Bruno Haible  <bruno@clisp.org>
56058
56059         * modules/frexp-nolibm-tests: New file.
56060
56061         * modules/frexp-nolibm: New file.
56062         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
56063
56064 2007-11-03  Bruno Haible  <bruno@clisp.org>
56065
56066         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
56067         value is C99 compliant.
56068         Needed for OSF/1 5.1.
56069
56070 2007-11-03  Bruno Haible  <bruno@clisp.org>
56071
56072         Fix out-of-memory handling of vasnprintf.
56073         * lib/printf-parse.c: Include <errno.h>.
56074         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
56075         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
56076         is already set.
56077
56078 2007-11-02  Eric Blake  <ebb9@byu.net>
56079
56080         Fix tests on cygwin.
56081         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
56082
56083 2007-11-01  Bruno Haible  <bruno@clisp.org>
56084
56085         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
56086         warning.
56087         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
56088         needed for POSIX compatibility.
56089
56090 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
56091
56092         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
56093         for compatibility with GNU.
56094
56095 2007-11-01  Bruno Haible  <bruno@clisp.org>
56096
56097         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
56098         (putenv): Renamed from rpl_putenv. Change argument type from
56099         'const char *' to 'char *'.
56100         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
56101         of defining putenv in config.h, just set REPLACE_PUTENV.
56102         * modules/putenv (Depends-on): Add stdlib.
56103         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56104         (Include): Use <stdlib.h>.
56105         * lib/stdlib.in.h (putenv): New declaration.
56106         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
56107         REPLACE_PUTENV.
56108         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
56109         REPLACE_PUTENV.
56110         Needed for MacOS X 10.5.0.
56111         Reported by Peter O'Gorman <peter@pogma.com>.
56112
56113 2007-11-01  Jim Meyering  <meyering@redhat.com>
56114
56115         Treat an empty date string exactly like "0".
56116         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
56117         if the remaining date string (to be parsed) is empty, use "0".
56118         Reported by Mischa Molhoek and discussed in this thread:
56119         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
56120
56121 2007-10-31  Bruno Haible  <bruno@clisp.org>
56122
56123         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
56124         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
56125         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
56126         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
56127         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
56128         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
56129
56130 2007-10-31  Bruno Haible  <bruno@clisp.org>
56131
56132         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
56133         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
56134         (AC_TYPE_LONG_LONG_INT): Use it.
56135         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
56136         it as well.
56137         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
56138         to m4/longlong.m4.
56139         * modules/stdint (Files): Remove m4/ulonglong.m4.
56140         * modules/strtoull (Files): Use m4/longlong.m4 instead of
56141         m4/ulonglong.m4.
56142         * modules/strtoumax (Files): Likewise.
56143
56144 2007-10-30  Bruno Haible  <bruno@clisp.org>
56145
56146         * modules/xvasprintf-posix: New file.
56147         Suggested by Eric Blake.
56148
56149 2007-10-30  Bruno Haible  <bruno@clisp.org>
56150
56151         * modules/xprintf-posix-tests: New file.
56152         * tests/test-xprintf-posix.sh: New file.
56153         * tests/test-xprintf-posix.c: New file.
56154         * tests/test-xfprintf-posix.c: New file.
56155
56156         * modules/xprintf-posix: New file.
56157
56158 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56159
56160         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
56161         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
56162         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
56163
56164 2007-10-29  Bruno Haible  <bruno@clisp.org>
56165
56166         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
56167         contain the special marker '_cv_'.
56168         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
56169         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
56170         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
56171         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
56172         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
56173         Reported by Ralf Wildenhues.
56174
56175 2007-10-29  Bruno Haible  <bruno@clisp.org>
56176
56177         * gnulib-tool (func_import): When --lgpl is not specified, set
56178         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
56179         GPLv3.
56180         Reported by Simon Josefsson.
56181
56182 2007-10-28  Bruno Haible  <bruno@clisp.org>
56183
56184         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
56185         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
56186         HAVE_DECL_ISFINITE.
56187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56188         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
56189         HAVE_DECL_ISFINITE.
56190
56191 2007-10-28  Bruno Haible  <bruno@clisp.org>
56192
56193         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
56194         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
56195
56196 2007-10-28  Bruno Haible  <bruno@clisp.org>
56197
56198         Fix link errors with Sun C 5.0 on Solaris 10.
56199         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
56200         function is declared but not present in the compiler's libm.
56201         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
56202         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
56203         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
56204         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
56205         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
56206         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
56207         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
56208         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56209         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
56210         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
56211         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
56212         HAVE_DECL_FLOORL.
56213
56214 2007-10-28  Bruno Haible  <bruno@clisp.org>
56215
56216         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
56217         gl_FUNC_FLOORL. Cache the result.
56218         (gl_FUNC_FLOORL): Use it.
56219         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
56220         gl_FUNC_CEILL. Cache the result.
56221         (gl_FUNC_CEILL): Use it.
56222
56223         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
56224         gl_FUNC_FLOOR. Cache the result.
56225         (gl_FUNC_FLOOR): Use it.
56226         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
56227         gl_FUNC_CEIL. Cache the result.
56228         (gl_FUNC_CEIL): Use it.
56229
56230         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
56231         gl_FUNC_FLOORF. Cache the result.
56232         (gl_FUNC_FLOORF): Use it.
56233         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
56234         gl_FUNC_CEILF. Cache the result.
56235         (gl_FUNC_CEILF): Use it.
56236
56237 2007-10-28  Bruno Haible  <bruno@clisp.org>
56238
56239         * gnulib-tool: Allow specifying the LGPL version number through
56240         --lgpl=2 or --lgpl=3.
56241         (func_usage): Document --lgpl with argument.
56242         Handle --lgpl=... arguments.
56243         (func_import): Recognize also gl_LGPL calls with an argument. When
56244         --lgpl=2 is used and the module's license is just LGPL, report an
56245         error. Set sed_transform_lib_file according to the lgpl variable. In
56246         the generated files, use --lgpl or gl_LGPL invocations with argument,
56247         if necessary.
56248         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
56249         an LGPv2+ license.
56250         * doc/gnulib-tool.texi (Modified imports): Update explanation of
56251         gl_LGPL macro.
56252
56253 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56254             Bruno Haible  <bruno@clisp.org>
56255
56256         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
56257         (u16_uctomb_aux): Likewise.
56258         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
56259         !HAVE_INLINE.
56260         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
56261
56262 2007-10-28  Bruno Haible  <bruno@clisp.org>
56263
56264         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
56265         Invoke AM_GETTEXT_OPTION if it exists.
56266         * modules/vasprintf: Likewise.
56267         * modules/verror: Likewise.
56268         * modules/xprintf: Likewise.
56269         * modules/xvasprintf: Likewise.
56270
56271 2007-10-27  Ben Pfaff  <blp@gnu.org>
56272
56273         * lib/math.in.h: Define isfinite macro and prototypes for
56274         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
56275         implementations.
56276         * m4/math_h.m4: New substitutions for isfinite module.
56277         * lib/isfinite.c: New file.
56278         * m4/isfinite.m4: New file.
56279         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
56280         * modules/isfinite: New file.
56281         * modules/isfinite-tests: New file.
56282         * tests/tests-isfinite.c: New file.
56283         * doc/functions/isfinite.texi: Mention isfinite module.
56284         * MODULES.html.sh: Mention new module.
56285
56286 2007-10-27  Ben Pfaff  <blp@gnu.org>
56287
56288         Ralf Wildenhues reported that Tru64 4.0D declares the round
56289         functions but does not have definitions.
56290         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
56291         cannot be found in any library, set the output variable to
56292         "missing" instead of "".
56293         * m4/round.m4: Also use our substitute if we cannot find round in
56294         any library, even if it is declared.
56295         * m4/roundf.m4: Likewise for roundf.
56296         * m4/roundl.m4: Likewise for roundl.
56297         * lib/math.in.h: Undefine roundf, round, roundl before defining
56298         their replacements, to allow for hypothetical systems where these
56299         may be defined as macros but not available in libraries.
56300
56301 2007-10-27  Bruno Haible  <bruno@clisp.org>
56302
56303         * doc/gnulib.texi: Invoke @firstparagraphindent.
56304         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
56305         changes in gnulib.
56306         (Source changes): New section.
56307
56308 2007-10-26  Bruno Haible  <bruno@clisp.org>
56309
56310         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
56311         borrowed from autoconf.
56312
56313 2007-10-26  Bruno Haible  <bruno@clisp.org>
56314
56315         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
56316         strerror returned the empty string. Needed on HP-UX 11.00.
56317
56318 2007-10-24  Micah Cowan  <micah@cowan.name>
56319
56320         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
56321         * build-aux/bootstrap: Remove support for now-unnecessary option,
56322         --cvs-user, and envvars CVS_USER, CVS_RSH.
56323
56324 2007-10-24  Jim Meyering  <meyering@redhat.com>
56325
56326         Avoid diagnostics from sha1sum when there is no cached checksum.
56327         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
56328         if the po.s1 file hasn't been created yet.
56329
56330         * build-aux/bootstrap: Sync from coreutils:
56331         2007-10-24  Jim Meyering  <meyering@redhat.com>
56332         Get gnulib from the git repository, not from an obsolete cvs one.
56333         * build-aux/bootstrap: Suggestion from Micah Cowan.
56334         2007-10-04  Jim Meyering  <jim@meyering.net>
56335         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
56336         (update_po_files): Work also when there are no .po files in po/.
56337
56338 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56339
56340         * README: Append ".git" to git and cg examples.
56341         Problem reported by Benoit Sigoure.
56342
56343 2007-10-23  Micah Cowan  <micah@cowan.name>
56344
56345         * users.txt: Add wget.
56346
56347 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56348
56349         Fix linking of some unistdio tests on FreeBSD.
56350         * modules/unistdio/u16-vsnprintf-tests
56351         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
56352         * modules/unistdio/u16-vsprintf-tests
56353         (test_u16_vsnprintf1_LDADD): Likewise.
56354         * modules/unistdio/u32-vsnprintf-tests
56355         (test_u32_vsnprintf1_LDADD): Likewise.
56356         * modules/unistdio/u32-vsprintf-tests
56357         (test_u32_vsprintf1_LDADD): Likewise.
56358         * modules/unistdio/u8-vsnprintf-tests
56359         (test_u8_vsnprintf1_LDADD): Likewise.
56360         * modules/unistdio/u8-vsprintf-tests
56361         (test_u8_vsprintf1_LDADD): Likewise.
56362         * modules/unistdio/ulc-vsnprintf-tests
56363         (test_ulc_vsnprintf1_LDADD): Likewise.
56364         * modules/unistdio/ulc-vsprintf-tests
56365         (test_ulc_vsprintf1_LDADD): Likewise.
56366
56367         Fix linking of some uniconv tests on FreeBSD.
56368         * modules/uniconv/u16-conv-from-enc-tests
56369         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
56370         * modules/uniconv/u16-conv-to-enc-tests
56371         (test_u16_conv_to_enc_LDADD): Likewise.
56372         * modules/uniconv/u16-strconv-from-enc-tests
56373         (test_u16_strconv_from_enc_LDADD): Likewise.
56374         * modules/uniconv/u16-strconv-to-enc-tests
56375         (test_u16_strconv_to_enc_LDADD): Likewise.
56376         * modules/uniconv/u32-conv-from-enc-tests
56377         (test_u32_conv_from_enc_LDADD): Likewise.
56378         * modules/uniconv/u32-conv-to-enc-tests
56379         (test_u32_conv_to_enc_LDADD): Likewise.
56380         * modules/uniconv/u32-strconv-from-enc-tests
56381         (test_u32_strconv_from_enc_LDADD): Likewise.
56382         * modules/uniconv/u32-strconv-to-enc-tests
56383         (test_u32_strconv_to_enc_LDADD): Likewise.
56384         * modules/uniconv/u8-conv-from-enc-tests
56385         (test_u8_conv_from_enc_LDADD): Likewise.
56386         * modules/uniconv/u8-conv-to-enc-tests
56387         (test_u8_conv_to_enc_LDADD): Likewise.
56388         * modules/uniconv/u8-strconv-from-enc-tests
56389         (test_u8_strconv_from_enc_LDADD): Likewise.
56390         * modules/uniconv/u8-strconv-to-enc-tests
56391         (test_u8_strconv_to_enc_LDADD): Likewise.
56392
56393 2007-10-22  Bruno Haible  <bruno@clisp.org>
56394
56395         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
56396         size.
56397
56398 2007-10-22  Eric Blake  <ebb9@byu.net>
56399
56400         Tweak x*printf documentation.
56401         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
56402         variable name and comments.
56403         Suggested by Bruno Haible.
56404
56405 2007-10-22  Bruno Haible  <bruno@clisp.org>
56406
56407         * lib/acl.c (copy_acl): Fix file name in comment.
56408
56409 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56410
56411         Fix Tru64 problem with stdbool.h.
56412         * lib/stdbool.in.h (false, true):
56413         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
56414         Don't declare as an enum in this situation; it runs afoul of Tru64.
56415         Problem reported by Steven M. Schweda in
56416         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
56417
56418 2007-10-22  Eric Blake  <ebb9@byu.net>
56419
56420         Also wrap vf?printf.
56421         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
56422         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
56423         (xvprintf, xvfprintf): New functions.
56424
56425 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56426
56427         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
56428         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
56429
56430         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
56431         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
56432
56433 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56434
56435         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
56436         by Bruno Haible.
56437
56438 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56439
56440         * lib/getloadavg.c
56441         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
56442         Undef `sys' after including sys/table.h, for Tru64 4.0D.
56443
56444         * tests/test-i-ring.c: Work for C89.
56445
56446 2007-10-22  Bruno Haible  <bruno@clisp.org>
56447
56448         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
56449         -1u, in preprocessor expression, so that we don't test for the bug
56450         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
56451         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
56452
56453 2007-10-22  Eric Blake  <ebb9@byu.net>
56454
56455         * tests/test-yesno.sh: Silence stderr during test.
56456
56457 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56458
56459         * modules/crypto/gc-camellia: New file.
56460
56461         * m4/gc-camellia.m4: New file.
56462
56463         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
56464
56465         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
56466
56467 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56468
56469         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
56470         --help to stdout.  Reported by sms@antinode.org (Steven
56471         M. Schweda).
56472
56473 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56474
56475         * users.txt: Fix link to libksba.
56476
56477 2007-10-21  Ben Pfaff  <blp@gnu.org>
56478
56479         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
56480         round.c roundf implementation that depends on floorf and ceilf to
56481         be tested unconditionally.
56482
56483 2007-10-21  Ben Pfaff  <blp@gnu.org>
56484
56485         * m4/check-libm-func.m4: Removed.
56486         * m4/check-math-lib.m4: New file.
56487         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
56488         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
56489         definition and lack of AC_LIBOBJ([roundf]).
56490         * m4/roundl.m4: Ditto, and similarly for roundl.
56491         * modules/round: Reference new m4 file.
56492         * modules/roundf: Ditto.
56493         * modules/roundl: Ditto.
56494         * tests/test-round2.c (main): Use ROUND instead of round.
56495         Bug report from Bruno Haible.
56496
56497 2007-10-21  Bruno Haible  <bruno@clisp.org>
56498
56499         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
56500         context.
56501
56502 2007-10-21  Bruno Haible  <bruno@clisp.org>
56503
56504         * tests/test-wcwidth.c (main): Allow negative result for some control
56505         characters.
56506
56507         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
56508         Needed on OSF/1 5.1.
56509
56510 2007-10-21  Bruno Haible  <bruno@clisp.org>
56511
56512         * tests/test-floorf1.c: Include isnanf.h.
56513         (main): Use isnanf() instead of isnan().
56514         * tests/test-ceilf1.c: Include isnanf.h.
56515         (main): Use isnanf() instead of isnan().
56516         * tests/test-truncf1.c: Include isnanf.h.
56517         (main): Use isnanf() instead of isnan().
56518         * tests/test-roundf1.c: Include isnanf.h.
56519         (main): Use isnanf() instead of isnan().
56520
56521 2007-10-21  Eric Blake  <ebb9@byu.net>
56522
56523         * users.txt: Update URL for m4.
56524
56525 2007-10-21  Bruno Haible  <bruno@clisp.org>
56526
56527         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
56528
56529 2007-10-21  Bruno Haible  <bruno@clisp.org>
56530
56531         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
56532         Git's management files if the CVS files are not present.
56533
56534 2007-10-20  Bruno Haible  <bruno@clisp.org>
56535
56536         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
56537         gcc-3.4.x.
56538
56539 2007-10-20  Ben Pfaff  <blp@gnu.org>
56540
56541         * lib/math.in.h: Declare round, roundf, roundl if we are providing
56542         implementations.
56543         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
56544         * lib/round.c: New file.
56545         * lib/roundf.c: New file.
56546         * lib/roundl.c: New file.
56547         * m4/round.m4: New file.
56548         * m4/roundf.m4: New file.
56549         * m4/roundl.m4: New file.
56550         * m4/check-libm-func-m4: New file.
56551         * modules/math: Replace round, roundf, roundl related @VARS@ in
56552         math.in.h.
56553         * modules/round: New file.
56554         * modules/round-tests: New file.
56555         * modules/roundf: New file.
56556         * modules/roundf-tests: New file.
56557         * modules/roundl: New file.
56558         * modules/roundl-tests: New file.
56559         * tests/test-round1.c: New file.
56560         * tests/test-round2.c: New file.
56561         * tests/test-roundf1.c: New file.
56562         * tests/test-roundf2.c: New file.
56563         * tests/test-roundl.c: New file.
56564         * doc/functions/round.texi: Mention round module.
56565         * doc/functions/roundf.texi: Mention roundf module.
56566         * doc/functions/roundl.texi: Mention roundl module.
56567         * MODULES.html.sh: Mention new modules.
56568         Thanks to Bruno Haible for suggestions.
56569
56570 2007-10-20  Jim Meyering  <meyering@redhat.com>
56571
56572         * lib/xprintf.c: Include <config.h> unconditionally.
56573
56574         Change xprintf's license to GPL.
56575         * modules/xprintf (License): s/LGPL/GPL/, since this module
56576         depends on modules (exit and exitfail) which are GPL.
56577         Suggestion from Bruno Haible.
56578
56579         xprintf fixes.
56580         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
56581         Use a clearer diagnostic.
56582         Patch from Bruno Haible.
56583
56584 2007-10-20  Bruno Haible  <bruno@clisp.org>
56585
56586         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
56587         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
56588         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56589
56590 2007-10-20  Bruno Haible  <bruno@clisp.org>
56591
56592         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
56593         precision in the comparison result > x - 1 or similar.
56594         * tests/test-ceilf2.c (correct_result_p): Likewise.
56595         * tests/test-truncf2.c (correct_result_p): Likewise.
56596         * tests/test-trunc2.c (correct_result_p): Likewise.
56597         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56598
56599 2007-10-20  Bruno Haible  <bruno@clisp.org>
56600
56601         * modules/ceil: New file.
56602         * m4/ceil.m4: New file.
56603         * doc/functions/ceil.texi: Mention the 'ceil' module.
56604
56605 2007-10-20  Bruno Haible  <bruno@clisp.org>
56606
56607         * modules/floor: New file.
56608         * m4/floor.m4: New file.
56609         * doc/functions/floor.texi: Mention the 'floor' module.
56610
56611 2007-10-20  Bruno Haible  <bruno@clisp.org>
56612
56613         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
56614         of %a.
56615         * modules/floorf-tests (Depends-on): Likewise.
56616         * modules/truncf-tests (Depends-on): Likewise.
56617         * modules/trunc-tests (Depends-on): Likewise.
56618         Reported by Ben Pfaff.
56619
56620 2007-10-19  Jim Meyering  <meyering@redhat.com>
56621
56622         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
56623         Don't bother testing specific errno values.  Just test ferror.
56624
56625         New module: xprintf
56626         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
56627
56628 2007-10-19  Bruno Haible  <bruno@clisp.org>
56629
56630         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
56631         syntax.
56632         * modules/javaexec (Makefile.am): Likewise.
56633         * modules/relocatable-prog (Makefile.am): Likewise.
56634         Suggested by Jim Meyering.
56635
56636 2007-10-18  Bruno Haible  <bruno@clisp.org>
56637
56638         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
56639         Reported by Jim Meyering.
56640
56641 2007-10-18  Eric Blake  <ebb9@byu.net>
56642
56643         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
56644
56645 2007-10-18  Bruno Haible  <bruno@clisp.org>
56646
56647         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
56648         the format string into writable memory. Needed in Fortify conditions.
56649
56650 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
56651             Bruno Haible  <bruno@clisp.org>
56652
56653         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
56654         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
56655         * modules/trim (Depends-on): Add mbchar.
56656         (configure.ac): Add gl_FUNC_MBRTOWC.
56657         (Makefile.am): Augment lib_SOURCES.
56658
56659 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56660
56661         Modify glob.c to use fstatat and dirfd, to simplify it.
56662         Suggested by Eric Blake.
56663         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
56664         Don't include <stdbool.h>; not used.
56665         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
56666         (link_exists_p): Simplify implementation, since we can now assume
56667         dirfd and fstatat.
56668         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
56669
56670 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56671
56672         * gnulib-tool (func_get_dependencies): Fix sed script to
56673         match only tests.
56674
56675 2007-10-17  Bruno Haible  <bruno@clisp.org>
56676
56677         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
56678         allow locale names without encoding suffix.
56679         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56680         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56681
56682 2007-10-16  Bruno Haible  <bruno@clisp.org>
56683
56684         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
56685         * lib/getgroups.c (getgroups): Likewise.
56686         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
56687
56688 2007-10-16  Bruno Haible  <bruno@clisp.org>
56689
56690         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
56691         * modules/malloc-posix (License): Likewise.
56692         * modules/realloc-posix (License): Likewise.
56693         * modules/calloc-posix (License): Likewise.
56694         * modules/intprops (License): Change from GPL to LGPL, with
56695         Paul Eggert's approval.
56696
56697 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56698
56699         Merge glibc changes into lib/glob.c.
56700
56701         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
56702         2007-10-15 04:59:03 UTC.  Here are the changes:
56703
56704         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
56705
56706         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
56707
56708         * lib/glob.c: Add some branch prediction throughout.
56709
56710         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
56711
56712         [BZ #5103]
56713         * lib/glob.c (glob): Recognize patterns starting \/.
56714
56715         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
56716
56717         [BZ #3996]
56718         * lib/glob.c (attribute_hidden): Define if not defined.
56719         (glob): Unescape dirname, filename or username when needed and not
56720         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
56721         is NULL.  Handle unescaped [ in pattern without closing ].
56722         Don't pass GLOB_CHECK down to recursive glob for directories.
56723         (__glob_pattern_type): New function.
56724         (__glob_pattern_p): Implement using __glob_pattern_type.
56725         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
56726         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
56727         Remove unreachable code.
56728
56729         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
56730
56731         * lib/glob.c (glob_in_dir): Add some comments and asserts to
56732         explain why there are no leaks.
56733
56734         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
56735
56736         [BZ #3253]
56737         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
56738         time, rather allocate increasingly bigger arrays of pointers, if
56739         possible with alloca, if too large with malloc.
56740
56741 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56742
56743         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
56744         Problem reported by H.Merijn Brand in
56745         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
56746         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
56747         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56748
56749 2007-10-15  Bruno Haible  <bruno@clisp.org>
56750
56751         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
56752         with explicit rpl_ prefix.
56753         * lib/fopen.c (fopen): Likewise.
56754         * lib/freopen.c (freopen): Likewise.
56755         * lib/iconv.c (iconv): Likewise.
56756         * lib/iconv_close.c (iconv_close): Likewise.
56757
56758 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56759
56760         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
56761
56762 2007-10-15  Bruno Haible  <bruno@clisp.org>
56763
56764         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
56765         <stddef.h> instead of <stdlib.h> since we only need NULL.
56766         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56767
56768 2007-10-15  Bruno Haible  <bruno@clisp.org>
56769
56770         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
56771         Replace paragraph talking about LIBOBJS.
56772         Reported by Colin Watson <cjwatson@debian.org>.
56773
56774 2007-10-15  Bruno Haible  <bruno@clisp.org>
56775
56776         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
56777         <stdlib.h> before using NULL.
56778
56779 2007-10-15  Simon Josefsson  <simon@josefsson.org>
56780
56781         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
56782         Reported by Albert Chin <china@thewrittenword.com>.
56783
56784 2007-10-14  Bruno Haible  <bruno@clisp.org>
56785
56786         * modules/iconv_open-utf-tests: New file.
56787         * tests/test-iconv-utf.c: New file.
56788
56789         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
56790         * modules/iconv_open-utf: New file.
56791         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
56792         (iconv, iconv_close): New declarations.
56793         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
56794         be defined.
56795         (iconv_open): Add special handling of conversion between UTF-8 and
56796         UTF-{16,32}{BE,LE}.
56797         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
56798         * lib/iconv_close.c: New file.
56799         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
56800         gl_FUNC_ICONV_OPEN.
56801         (gl_FUNC_ICONV_OPEN): Use it.
56802         (gl_FUNC_ICONV_OPEN_UTF): New macro.
56803         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
56804         and REPLACE_ICONV_UTF.
56805         * modules/iconv_open (Depends-on): Add c-strcase.
56806         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
56807         ICONV_CONST.
56808         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
56809
56810 2007-10-13  Albert Chin  <china@thewrittenword.com>
56811             Bruno Haible  <bruno@clisp.org>
56812
56813         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
56814         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
56815
56816 2007-10-13  Bruno Haible  <bruno@clisp.org>
56817
56818         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
56819         defined, use the ISO C99 inline semantics.
56820         * lib/argp.h (ARGP_EI): Likewise.
56821
56822 2007-10-13  Bruno Haible  <bruno@clisp.org>
56823
56824         Handle 'inline' change in gcc 4.3.0.
56825         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
56826         argp_fmtstream_write, argp_fmtstream_set_lmargin,
56827         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
56828         argp_fmtstream_point): Disable 'extern' declaration if the function
56829         definition is going to be provided inline.
56830         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
56831         semantics, not the ISO C99 inline semantics.
56832         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
56833         'extern' declaration if the function definition is going to be provided
56834         inline.
56835         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
56836         the GNU C inline semantics, not the ISO C99 inline semantics. With
56837         GCC 4.2, avoid a warning.
56838
56839 2007-10-13  Bruno Haible  <bruno@clisp.org>
56840
56841         * lib/freading.h (freading): Enable the use of __freading for
56842         glibc >= 2.7.
56843         * lib/freading.c (freading): Likewise.
56844
56845 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56846
56847         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
56848         "warning: C99 inline functions are not supported; using GNU89".
56849
56850 2007-10-12  Bruno Haible  <bruno@clisp.org>
56851
56852         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
56853         of 2.
56854         * tests/test-ceilf2.c: New file.
56855         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
56856
56857         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
56858         * modules/ceilf-tests: Update.
56859
56860 2007-10-12  Bruno Haible  <bruno@clisp.org>
56861
56862         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
56863         of 2.
56864         * tests/test-floorf2.c: New file.
56865         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
56866
56867         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
56868         * modules/floorf-tests: Update.
56869
56870 2007-10-12  Bruno Haible  <bruno@clisp.org>
56871
56872         * tests/test-trunc2.c: New file.
56873         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
56874
56875         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
56876         * modules/trunc-tests: Update.
56877
56878 2007-10-12  Bruno Haible  <bruno@clisp.org>
56879
56880         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
56881         of 2.
56882         * tests/test-truncf2.c: New file.
56883         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
56884
56885         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
56886         * modules/truncf-tests: Update.
56887
56888 2007-10-11  Eric Blake  <ebb9@byu.net>
56889
56890         Don't claim strerror is broken on Interix.
56891         * doc/functions/strerror.texi (strerror): Known broken systems are
56892         now Solaris 8, and not Interix.
56893         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
56894         Interix on cross-compile.
56895         Reported by Martin Koeppe in
56896         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
56897
56898 2007-10-11  Bruno Haible  <bruno@clisp.org>
56899
56900         * modules/i-ring-tests: New file.
56901         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
56902         instead of assert.
56903
56904 2007-10-11  Bruno Haible  <bruno@clisp.org>
56905
56906         * modules/filenamecat-tests: New file.
56907         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
56908         * lib/filenamecat.c: Remove test code.
56909
56910 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56911
56912         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
56913
56914         * lib/strerror.c: Include <string.h> always, to test interface,
56915         and to remove the need for the dummy.
56916         Include intprops.h to compute width instead of doing it ourselves
56917         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
56918         (strerror): Define it to return NULL if there's no system strerror.
56919         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
56920         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
56921         ancient pre-strerror Unix systems well any more.  Saying "unknown
56922         system error" is enough.
56923         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
56924         simpler strerror.c implementation.
56925         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
56926         Simplify the tests to reflect the simpler strerror implementation.
56927         * modules/strerror (Depends-on): Add intprops.
56928
56929 2007-10-09  Eric Blake  <ebb9@byu.net>
56930
56931         Silence test-fpending.
56932         * modules/fpending-tests (Files): Add wrapper script.
56933         * tests/test-fpending.sh: New file.
56934
56935 2007-10-09  Bruno Haible  <bruno@clisp.org>
56936
56937         * MODULES.html.sh (func_module): Don't create a hyperlink for
56938         function names like 'printf_frexp'.
56939         (Misc): Add crc, memxor.
56940         (Characteristics of floating types): New section.
56941         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
56942         isnanf-nolibm, signbit, trunc, truncf, truncl.
56943         (Enhancements for ISO C 99 functions): New subsection Input/output.
56944         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
56945         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
56946         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
56947         (Compatibility checks for POSIX:2001 functions): Add clock-time.
56948         (Enhancements for POSIX:2001 functions): Add chdir-long.
56949         (File system functions): Add areadlink, chdir-safer, read-file.
56950         Remove cycle-check.
56951         (File system as inode set): New section.
56952         (Date and time): Add gethrxtime.
56953         (Multithreading): Add openmp.
56954         (Internationalization functions): Add localename.
56955         (Unicode string functions): Add unistr/u*-mbsnlen.
56956         (Support for maintaining and releasing projects): Add git-version-gen.
56957         (Lone files): Remove directories.
56958
56959 2007-10-08  Ben Pfaff  <blp@gnu.org>
56960
56961         * lib/xmalloca.h: Fix typo in comment.
56962
56963 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56964
56965         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
56966         when avoiding problems with integer overflow.  Use a portable test
56967         instead.
56968
56969 2007-10-08  Simon Josefsson  <simon@josefsson.org>
56970
56971         * modules/dummy (License): Change to LGPLv2+.
56972         * modules/float (License): Likewise
56973         * modules/realloc (License): Likewise
56974         * modules/stdlib (License): Likewise
56975
56976 2007-10-07  Bruno Haible  <bruno@clisp.org>
56977
56978         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
56979         * floor.c (TWO_MANT_DIG): Likewise.
56980         * ceil.c (TWO_MANT_DIG): Likewise.
56981         Reported by Ben Pfaff.
56982
56983 2007-10-07  Bruno Haible  <bruno@clisp.org>
56984
56985         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
56986         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
56987         * lib/frexp.c (FUNC): Likewise.
56988         * lib/printf-frexp.h (printf_frexp): Likewise.
56989         * lib/printf-frexpl.h (printf_frexpl): Likewise.
56990         * lib/printf-frexp.c (FUNC): Likewise.
56991         Suggested by Jim Meyering.
56992
56993 2007-10-07  Jim Meyering  <meyering@redhat.com>
56994
56995         Make xnanosleep's integer overflow test more robust.
56996         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
56997         so that gcc-4.3.0 doesn't optimize away this test for overflow.
56998
56999 2007-10-07  Bruno Haible  <bruno@clisp.org>
57000
57001         * NEWS: Mention the license change.
57002
57003         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
57004         abbreviations in the modules files.
57005
57006         Change copyright notice from GPLv2+ to GPLv3+.
57007         * README: Change copyright notice.
57008         * MODULES.html.sh: Likewise.
57009         * build-aux/bootstrap.conf: Likewise.
57010         * build-aux/config.libpath: Likewise.
57011         * build-aux/csharpcomp.sh.in: Likewise.
57012         * build-aux/csharpexec.sh.in: Likewise.
57013         * build-aux/install-reloc: Likewise.
57014         * build-aux/javacomp.sh.in: Likewise.
57015         * build-aux/javaexec.sh.in: Likewise.
57016         * build-aux/ldd.sh.in: Likewise.
57017         * build-aux/reloc-ldflags: Likewise.
57018         * build-aux/relocatable.sh.in: Likewise.
57019         * build-aux/x-to-1.in: Likewise.
57020         * check-module: Likewise.
57021         * config/srclistvars.sh: Likewise.
57022         * gnulib-tool: Likewise.
57023         * lib/acl-internal.h: Likewise.
57024         * lib/acl.c: Likewise.
57025         * lib/acl.h: Likewise.
57026         * lib/acl_entries.c: Likewise.
57027         * lib/areadlink-with-size.c: Likewise.
57028         * lib/areadlink.c: Likewise.
57029         * lib/areadlink.h: Likewise.
57030         * lib/argmatch.c: Likewise.
57031         * lib/argmatch.h: Likewise.
57032         * lib/argp-ba.c: Likewise.
57033         * lib/argp-eexst.c: Likewise.
57034         * lib/argp-fmtstream.c: Likewise.
57035         * lib/argp-fmtstream.h: Likewise.
57036         * lib/argp-fs-xinl.c: Likewise.
57037         * lib/argp-help.c: Likewise.
57038         * lib/argp-namefrob.h: Likewise.
57039         * lib/argp-parse.c: Likewise.
57040         * lib/argp-pin.c: Likewise.
57041         * lib/argp-pv.c: Likewise.
57042         * lib/argp-pvh.c: Likewise.
57043         * lib/argp-xinl.c: Likewise.
57044         * lib/argp.h: Likewise.
57045         * lib/at-func.c: Likewise.
57046         * lib/atanl.c: Likewise.
57047         * lib/backupfile.c: Likewise.
57048         * lib/backupfile.h: Likewise.
57049         * lib/basename.c: Likewise.
57050         * lib/binary-io.h: Likewise.
57051         * lib/byteswap.in.h: Likewise.
57052         * lib/c-stack.c: Likewise.
57053         * lib/c-stack.h: Likewise.
57054         * lib/c-strcasestr.c: Likewise.
57055         * lib/c-strcasestr.h: Likewise.
57056         * lib/c-strstr.c: Likewise.
57057         * lib/c-strstr.h: Likewise.
57058         * lib/c-strtod.c: Likewise.
57059         * lib/calloc.c: Likewise.
57060         * lib/canon-host.c: Likewise.
57061         * lib/canon-host.h: Likewise.
57062         * lib/canonicalize-lgpl.c: Likewise.
57063         * lib/canonicalize.c: Likewise.
57064         * lib/canonicalize.h: Likewise.
57065         * lib/ceil.c: Likewise.
57066         * lib/ceilf.c: Likewise.
57067         * lib/ceill.c: Likewise.
57068         * lib/chdir-long.c: Likewise.
57069         * lib/chdir-long.h: Likewise.
57070         * lib/chdir-safer.c: Likewise.
57071         * lib/chdir-safer.h: Likewise.
57072         * lib/chown.c: Likewise.
57073         * lib/classpath.c: Likewise.
57074         * lib/classpath.h: Likewise.
57075         * lib/clean-temp.c: Likewise.
57076         * lib/clean-temp.h: Likewise.
57077         * lib/cloexec.c: Likewise.
57078         * lib/close-stream.c: Likewise.
57079         * lib/closein.c: Likewise.
57080         * lib/closein.h: Likewise.
57081         * lib/closeout.c: Likewise.
57082         * lib/closeout.h: Likewise.
57083         * lib/concat-filename.c: Likewise.
57084         * lib/copy-file.c: Likewise.
57085         * lib/copy-file.h: Likewise.
57086         * lib/count-one-bits.h: Likewise.
57087         * lib/crc.c: Likewise.
57088         * lib/crc.h: Likewise.
57089         * lib/creat-safer.c: Likewise.
57090         * lib/csharpcomp.c: Likewise.
57091         * lib/csharpcomp.h: Likewise.
57092         * lib/csharpexec.c: Likewise.
57093         * lib/csharpexec.h: Likewise.
57094         * lib/cycle-check.c: Likewise.
57095         * lib/cycle-check.h: Likewise.
57096         * lib/diacrit.c: Likewise.
57097         * lib/diacrit.h: Likewise.
57098         * lib/diffseq.h: Likewise.
57099         * lib/dirchownmod.c: Likewise.
57100         * lib/dirent.in.h: Likewise.
57101         * lib/dirfd.c: Likewise.
57102         * lib/dirfd.h: Likewise.
57103         * lib/dirname.c: Likewise.
57104         * lib/dirname.h: Likewise.
57105         * lib/dummy.c: Likewise.
57106         * lib/dup-safer.c: Likewise.
57107         * lib/dup2.c: Likewise.
57108         * lib/eealloc.h: Likewise.
57109         * lib/error.c: Likewise.
57110         * lib/error.h: Likewise.
57111         * lib/euidaccess.c: Likewise.
57112         * lib/exclude.c: Likewise.
57113         * lib/exclude.h: Likewise.
57114         * lib/execute.c: Likewise.
57115         * lib/execute.h: Likewise.
57116         * lib/exitfail.c: Likewise.
57117         * lib/exitfail.h: Likewise.
57118         * lib/expl.c: Likewise.
57119         * lib/fatal-signal.c: Likewise.
57120         * lib/fatal-signal.h: Likewise.
57121         * lib/fbufmode.c: Likewise.
57122         * lib/fbufmode.h: Likewise.
57123         * lib/fchdir.c: Likewise.
57124         * lib/fchmodat.c: Likewise.
57125         * lib/fchownat.c: Likewise.
57126         * lib/fcntl--.h: Likewise.
57127         * lib/fcntl-safer.h: Likewise.
57128         * lib/fcntl.in.h: Likewise.
57129         * lib/fd-safer.c: Likewise.
57130         * lib/fflush.c: Likewise.
57131         * lib/file-has-acl.c: Likewise.
57132         * lib/file-set.c: Likewise.
57133         * lib/file-type.c: Likewise.
57134         * lib/file-type.h: Likewise.
57135         * lib/fileblocks.c: Likewise.
57136         * lib/filemode.c: Likewise.
57137         * lib/filemode.h: Likewise.
57138         * lib/filename.h: Likewise.
57139         * lib/filenamecat.c: Likewise.
57140         * lib/filenamecat.h: Likewise.
57141         * lib/findprog.c: Likewise.
57142         * lib/findprog.h: Likewise.
57143         * lib/float.in.h: Likewise.
57144         * lib/floor.c: Likewise.
57145         * lib/floorf.c: Likewise.
57146         * lib/floorl.c: Likewise.
57147         * lib/fopen-safer.c: Likewise.
57148         * lib/fopen.c: Likewise.
57149         * lib/fpending.c: Likewise.
57150         * lib/fpending.h: Likewise.
57151         * lib/fprintf.c: Likewise.
57152         * lib/fprintftime.h: Likewise.
57153         * lib/fpucw.h: Likewise.
57154         * lib/fpurge.c: Likewise.
57155         * lib/fpurge.h: Likewise.
57156         * lib/freadable.c: Likewise.
57157         * lib/freadable.h: Likewise.
57158         * lib/freadahead.c: Likewise.
57159         * lib/freadahead.h: Likewise.
57160         * lib/freading.c: Likewise.
57161         * lib/freading.h: Likewise.
57162         * lib/free.c: Likewise.
57163         * lib/freopen.c: Likewise.
57164         * lib/frexp.c: Likewise.
57165         * lib/frexpl.c: Likewise.
57166         * lib/fseek.c: Likewise.
57167         * lib/fseterr.c: Likewise.
57168         * lib/fseterr.h: Likewise.
57169         * lib/fstatat.c: Likewise.
57170         * lib/fstrcmp.c: Likewise.
57171         * lib/fstrcmp.h: Likewise.
57172         * lib/fsusage.c: Likewise.
57173         * lib/fsusage.h: Likewise.
57174         * lib/ftell.c: Likewise.
57175         * lib/ftello.c: Likewise.
57176         * lib/fts-cycle.c: Likewise.
57177         * lib/fts.c: Likewise.
57178         * lib/fts_.h: Likewise.
57179         * lib/full-read.c: Likewise.
57180         * lib/full-read.h: Likewise.
57181         * lib/full-write.c: Likewise.
57182         * lib/full-write.h: Likewise.
57183         * lib/fwritable.c: Likewise.
57184         * lib/fwritable.h: Likewise.
57185         * lib/fwriteerror.c: Likewise.
57186         * lib/fwriteerror.h: Likewise.
57187         * lib/fwriting.c: Likewise.
57188         * lib/fwriting.h: Likewise.
57189         * lib/gcd.c: Likewise.
57190         * lib/gcd.h: Likewise.
57191         * lib/getcwd.c: Likewise.
57192         * lib/getdate.h: Likewise.
57193         * lib/getdate.y: Likewise.
57194         * lib/getdomainname.c: Likewise.
57195         * lib/getdomainname.h: Likewise.
57196         * lib/getgroups.c: Likewise.
57197         * lib/gethostname.c: Likewise.
57198         * lib/gethrxtime.c: Likewise.
57199         * lib/gethrxtime.h: Likewise.
57200         * lib/getloadavg.c: Likewise.
57201         * lib/getndelim2.c: Likewise.
57202         * lib/getndelim2.h: Likewise.
57203         * lib/getnline.c: Likewise.
57204         * lib/getnline.h: Likewise.
57205         * lib/getopt.c: Likewise.
57206         * lib/getopt.in.h: Likewise.
57207         * lib/getopt1.c: Likewise.
57208         * lib/getopt_int.h: Likewise.
57209         * lib/getpagesize.h: Likewise.
57210         * lib/getsubopt.c: Likewise.
57211         * lib/gettime.c: Likewise.
57212         * lib/getugroups.c: Likewise.
57213         * lib/getugroups.h: Likewise.
57214         * lib/getusershell.c: Likewise.
57215         * lib/gl_anyavltree_list1.h: Likewise.
57216         * lib/gl_anyavltree_list2.h: Likewise.
57217         * lib/gl_anyhash_list1.h: Likewise.
57218         * lib/gl_anyhash_list2.h: Likewise.
57219         * lib/gl_anylinked_list1.h: Likewise.
57220         * lib/gl_anylinked_list2.h: Likewise.
57221         * lib/gl_anyrbtree_list1.h: Likewise.
57222         * lib/gl_anyrbtree_list2.h: Likewise.
57223         * lib/gl_anytree_list1.h: Likewise.
57224         * lib/gl_anytree_list2.h: Likewise.
57225         * lib/gl_anytree_oset.h: Likewise.
57226         * lib/gl_anytreehash_list1.h: Likewise.
57227         * lib/gl_anytreehash_list2.h: Likewise.
57228         * lib/gl_array_list.c: Likewise.
57229         * lib/gl_array_list.h: Likewise.
57230         * lib/gl_array_oset.c: Likewise.
57231         * lib/gl_array_oset.h: Likewise.
57232         * lib/gl_avltree_list.c: Likewise.
57233         * lib/gl_avltree_list.h: Likewise.
57234         * lib/gl_avltree_oset.c: Likewise.
57235         * lib/gl_avltree_oset.h: Likewise.
57236         * lib/gl_avltreehash_list.c: Likewise.
57237         * lib/gl_avltreehash_list.h: Likewise.
57238         * lib/gl_carray_list.c: Likewise.
57239         * lib/gl_carray_list.h: Likewise.
57240         * lib/gl_linked_list.c: Likewise.
57241         * lib/gl_linked_list.h: Likewise.
57242         * lib/gl_linkedhash_list.c: Likewise.
57243         * lib/gl_linkedhash_list.h: Likewise.
57244         * lib/gl_list.c: Likewise.
57245         * lib/gl_list.h: Likewise.
57246         * lib/gl_oset.c: Likewise.
57247         * lib/gl_oset.h: Likewise.
57248         * lib/gl_rbtree_list.c: Likewise.
57249         * lib/gl_rbtree_list.h: Likewise.
57250         * lib/gl_rbtree_oset.c: Likewise.
57251         * lib/gl_rbtree_oset.h: Likewise.
57252         * lib/gl_rbtreehash_list.c: Likewise.
57253         * lib/gl_rbtreehash_list.h: Likewise.
57254         * lib/gl_sublist.c: Likewise.
57255         * lib/gl_sublist.h: Likewise.
57256         * lib/group-member.c: Likewise.
57257         * lib/group-member.h: Likewise.
57258         * lib/hard-locale.c: Likewise.
57259         * lib/hard-locale.h: Likewise.
57260         * lib/hash-pjw.c: Likewise.
57261         * lib/hash-pjw.h: Likewise.
57262         * lib/hash-triple.c: Likewise.
57263         * lib/hash.c: Likewise.
57264         * lib/hash.h: Likewise.
57265         * lib/human.c: Likewise.
57266         * lib/human.h: Likewise.
57267         * lib/i-ring.c: Likewise.
57268         * lib/i-ring.h: Likewise.
57269         * lib/idcache.c: Likewise.
57270         * lib/imaxabs.c: Likewise.
57271         * lib/imaxdiv.c: Likewise.
57272         * lib/inet_pton.c: Likewise.
57273         * lib/inet_pton.h: Likewise.
57274         * lib/intprops.h: Likewise.
57275         * lib/inttostr.c: Likewise.
57276         * lib/inttostr.h: Likewise.
57277         * lib/inttypes.in.h: Likewise.
57278         * lib/isapipe.c: Likewise.
57279         * lib/isdir.c: Likewise.
57280         * lib/isnan.c: Likewise.
57281         * lib/isnan.h: Likewise.
57282         * lib/isnanf.c: Likewise.
57283         * lib/isnanf.h: Likewise.
57284         * lib/isnanl-nolibm.h: Likewise.
57285         * lib/isnanl.c: Likewise.
57286         * lib/isnanl.h: Likewise.
57287         * lib/javacomp.c: Likewise.
57288         * lib/javacomp.h: Likewise.
57289         * lib/javaexec.c: Likewise.
57290         * lib/javaexec.h: Likewise.
57291         * lib/javaversion.c: Likewise.
57292         * lib/javaversion.h: Likewise.
57293         * lib/javaversion.java: Likewise.
57294         * lib/lbrkprop.h: Likewise.
57295         * lib/lchmod.h: Likewise.
57296         * lib/lchown.c: Likewise.
57297         * lib/ldexpl.c: Likewise.
57298         * lib/linebreak.c: Likewise.
57299         * lib/linebreak.h: Likewise.
57300         * lib/linebuffer.c: Likewise.
57301         * lib/linebuffer.h: Likewise.
57302         * lib/locale.in.h: Likewise.
57303         * lib/logl.c: Likewise.
57304         * lib/long-options.c: Likewise.
57305         * lib/long-options.h: Likewise.
57306         * lib/lstat.c: Likewise.
57307         * lib/lstat.h: Likewise.
57308         * lib/math.in.h: Likewise.
57309         * lib/mbchar.c: Likewise.
57310         * lib/mbchar.h: Likewise.
57311         * lib/mbfile.h: Likewise.
57312         * lib/mbiter.h: Likewise.
57313         * lib/mbscasecmp.c: Likewise.
57314         * lib/mbscasestr.c: Likewise.
57315         * lib/mbschr.c: Likewise.
57316         * lib/mbscspn.c: Likewise.
57317         * lib/mbslen.c: Likewise.
57318         * lib/mbsncasecmp.c: Likewise.
57319         * lib/mbsnlen.c: Likewise.
57320         * lib/mbspbrk.c: Likewise.
57321         * lib/mbspcasecmp.c: Likewise.
57322         * lib/mbsrchr.c: Likewise.
57323         * lib/mbssep.c: Likewise.
57324         * lib/mbsspn.c: Likewise.
57325         * lib/mbsstr.c: Likewise.
57326         * lib/mbstok_r.c: Likewise.
57327         * lib/mbswidth.c: Likewise.
57328         * lib/mbswidth.h: Likewise.
57329         * lib/mbuiter.h: Likewise.
57330         * lib/memcasecmp.c: Likewise.
57331         * lib/memcasecmp.h: Likewise.
57332         * lib/memchr.c: Likewise.
57333         * lib/memcmp.c: Likewise.
57334         * lib/memcoll.c: Likewise.
57335         * lib/memcoll.h: Likewise.
57336         * lib/memcpy.c: Likewise.
57337         * lib/memrchr.c: Likewise.
57338         * lib/mkancesdirs.c: Likewise.
57339         * lib/mkdir-p.c: Likewise.
57340         * lib/mkdir-p.h: Likewise.
57341         * lib/mkdir.c: Likewise.
57342         * lib/mkdirat.c: Likewise.
57343         * lib/mkdtemp.c: Likewise.
57344         * lib/mkstemp-safer.c: Likewise.
57345         * lib/mkstemp.c: Likewise.
57346         * lib/modechange.c: Likewise.
57347         * lib/modechange.h: Likewise.
57348         * lib/mountlist.c: Likewise.
57349         * lib/mountlist.h: Likewise.
57350         * lib/mpsort.c: Likewise.
57351         * lib/nanosleep.c: Likewise.
57352         * lib/obstack.c: Likewise.
57353         * lib/obstack.h: Likewise.
57354         * lib/open-safer.c: Likewise.
57355         * lib/open.c: Likewise.
57356         * lib/openat-die.c: Likewise.
57357         * lib/openat-priv.h: Likewise.
57358         * lib/openat-proc.c: Likewise.
57359         * lib/openat.c: Likewise.
57360         * lib/openat.h: Likewise.
57361         * lib/pagealign_alloc.c: Likewise.
57362         * lib/pagealign_alloc.h: Likewise.
57363         * lib/physmem.c: Likewise.
57364         * lib/physmem.h: Likewise.
57365         * lib/pipe-safer.c: Likewise.
57366         * lib/pipe.c: Likewise.
57367         * lib/pipe.h: Likewise.
57368         * lib/posixtm.c: Likewise.
57369         * lib/posixtm.h: Likewise.
57370         * lib/posixver.c: Likewise.
57371         * lib/printf-frexp.c: Likewise.
57372         * lib/printf-frexp.h: Likewise.
57373         * lib/printf-frexpl.c: Likewise.
57374         * lib/printf-frexpl.h: Likewise.
57375         * lib/printf.c: Likewise.
57376         * lib/progname.c: Likewise.
57377         * lib/progname.h: Likewise.
57378         * lib/progreloc.c: Likewise.
57379         * lib/putenv.c: Likewise.
57380         * lib/quote.c: Likewise.
57381         * lib/quote.h: Likewise.
57382         * lib/quotearg.c: Likewise.
57383         * lib/quotearg.h: Likewise.
57384         * lib/raise.c: Likewise.
57385         * lib/readline.c: Likewise.
57386         * lib/readline.h: Likewise.
57387         * lib/readlink.c: Likewise.
57388         * lib/readtokens.c: Likewise.
57389         * lib/readtokens.h: Likewise.
57390         * lib/readtokens0.c: Likewise.
57391         * lib/readtokens0.h: Likewise.
57392         * lib/readutmp.c: Likewise.
57393         * lib/readutmp.h: Likewise.
57394         * lib/realloc.c: Likewise.
57395         * lib/relocwrapper.c: Likewise.
57396         * lib/rename-dest-slash.c: Likewise.
57397         * lib/rename.c: Likewise.
57398         * lib/rmdir.c: Likewise.
57399         * lib/rpmatch.c: Likewise.
57400         * lib/safe-read.c: Likewise.
57401         * lib/safe-read.h: Likewise.
57402         * lib/safe-write.c: Likewise.
57403         * lib/safe-write.h: Likewise.
57404         * lib/same-inode.h: Likewise.
57405         * lib/same.c: Likewise.
57406         * lib/same.h: Likewise.
57407         * lib/save-cwd.c: Likewise.
57408         * lib/save-cwd.h: Likewise.
57409         * lib/savedir.c: Likewise.
57410         * lib/savedir.h: Likewise.
57411         * lib/savewd.c: Likewise.
57412         * lib/savewd.h: Likewise.
57413         * lib/search.in.h: Likewise.
57414         * lib/setenv.c: Likewise.
57415         * lib/setenv.h: Likewise.
57416         * lib/settime.c: Likewise.
57417         * lib/sh-quote.c: Likewise.
57418         * lib/sh-quote.h: Likewise.
57419         * lib/sig2str.c: Likewise.
57420         * lib/sig2str.h: Likewise.
57421         * lib/signal.in.h: Likewise.
57422         * lib/signbitd.c: Likewise.
57423         * lib/signbitf.c: Likewise.
57424         * lib/signbitl.c: Likewise.
57425         * lib/sigprocmask.c: Likewise.
57426         * lib/sincosl.c: Likewise.
57427         * lib/sleep.c: Likewise.
57428         * lib/sprintf.c: Likewise.
57429         * lib/sqrtl.c: Likewise.
57430         * lib/stat-time.h: Likewise.
57431         * lib/stdio--.h: Likewise.
57432         * lib/stdio-safer.h: Likewise.
57433         * lib/stdlib--.h: Likewise.
57434         * lib/stdlib-safer.h: Likewise.
57435         * lib/stdlib.in.h: Likewise.
57436         * lib/stpcpy.c: Likewise.
57437         * lib/stpncpy.c: Likewise.
57438         * lib/strchrnul.c: Likewise.
57439         * lib/strcspn.c: Likewise.
57440         * lib/strerror.c: Likewise.
57441         * lib/strftime.c: Likewise.
57442         * lib/strftime.h: Likewise.
57443         * lib/striconveh.c: Likewise.
57444         * lib/striconveh.h: Likewise.
57445         * lib/striconveha.c: Likewise.
57446         * lib/striconveha.h: Likewise.
57447         * lib/stripslash.c: Likewise.
57448         * lib/strnlen1.c: Likewise.
57449         * lib/strnlen1.h: Likewise.
57450         * lib/strtod.c: Likewise.
57451         * lib/strtoimax.c: Likewise.
57452         * lib/strtok_r.c: Likewise.
57453         * lib/strtol.c: Likewise.
57454         * lib/strtoll.c: Likewise.
57455         * lib/strtoul.c: Likewise.
57456         * lib/strtoull.c: Likewise.
57457         * lib/sysexits.in.h: Likewise.
57458         * lib/tempname.c: Likewise.
57459         * lib/tempname.h: Likewise.
57460         * lib/timespec.h: Likewise.
57461         * lib/tls.c: Likewise.
57462         * lib/tls.h: Likewise.
57463         * lib/tmpdir.c: Likewise.
57464         * lib/tmpdir.h: Likewise.
57465         * lib/tmpfile-safer.c: Likewise.
57466         * lib/tmpfile.c: Likewise.
57467         * lib/trigl.c: Likewise.
57468         * lib/trigl.h: Likewise.
57469         * lib/trim.c: Likewise.
57470         * lib/trim.h: Likewise.
57471         * lib/trunc.c: Likewise.
57472         * lib/truncf.c: Likewise.
57473         * lib/truncl.c: Likewise.
57474         * lib/tsearch.c: Likewise.
57475         * lib/unicodeio.c: Likewise.
57476         * lib/unicodeio.h: Likewise.
57477         * lib/unistd--.h: Likewise.
57478         * lib/unistd-safer.h: Likewise.
57479         * lib/unistdio/ulc-fprintf.c: Likewise.
57480         * lib/unistdio/ulc-vfprintf.c: Likewise.
57481         * lib/unlinkdir.c: Likewise.
57482         * lib/unlinkdir.h: Likewise.
57483         * lib/unlocked-io.h: Likewise.
57484         * lib/unsetenv.c: Likewise.
57485         * lib/userspec.c: Likewise.
57486         * lib/utime.c: Likewise.
57487         * lib/utimecmp.c: Likewise.
57488         * lib/utimecmp.h: Likewise.
57489         * lib/utimens.c: Likewise.
57490         * lib/verify.h: Likewise.
57491         * lib/verror.c: Likewise.
57492         * lib/verror.h: Likewise.
57493         * lib/version-etc-fsf.c: Likewise.
57494         * lib/version-etc.c: Likewise.
57495         * lib/version-etc.h: Likewise.
57496         * lib/vfprintf.c: Likewise.
57497         * lib/vprintf.c: Likewise.
57498         * lib/vsprintf.c: Likewise.
57499         * lib/w32spawn.h: Likewise.
57500         * lib/wait-process.c: Likewise.
57501         * lib/wait-process.h: Likewise.
57502         * lib/wcwidth.c: Likewise.
57503         * lib/write-any-file.c: Likewise.
57504         * lib/xalloc-die.c: Likewise.
57505         * lib/xalloc.h: Likewise.
57506         * lib/xasprintf.c: Likewise.
57507         * lib/xgetcwd.c: Likewise.
57508         * lib/xgetcwd.h: Likewise.
57509         * lib/xgetdomainname.c: Likewise.
57510         * lib/xgetdomainname.h: Likewise.
57511         * lib/xgethostname.c: Likewise.
57512         * lib/xmalloc.c: Likewise.
57513         * lib/xmalloca.c: Likewise.
57514         * lib/xmalloca.h: Likewise.
57515         * lib/xmemcoll.c: Likewise.
57516         * lib/xnanosleep.c: Likewise.
57517         * lib/xreadlink.c: Likewise.
57518         * lib/xreadlink.h: Likewise.
57519         * lib/xsetenv.c: Likewise.
57520         * lib/xsetenv.h: Likewise.
57521         * lib/xstriconv.c: Likewise.
57522         * lib/xstriconv.h: Likewise.
57523         * lib/xstrndup.c: Likewise.
57524         * lib/xstrndup.h: Likewise.
57525         * lib/xstrtod.c: Likewise.
57526         * lib/xstrtod.h: Likewise.
57527         * lib/xstrtol-error.c: Likewise.
57528         * lib/xstrtol.c: Likewise.
57529         * lib/xstrtol.h: Likewise.
57530         * lib/xtime.h: Likewise.
57531         * lib/xvasprintf.c: Likewise.
57532         * lib/xvasprintf.h: Likewise.
57533         * lib/yesno.c: Likewise.
57534         * lib/yesno.h: Likewise.
57535         * posix-modules: Likewise.
57536         * tests/test-alloca-opt.c: Likewise.
57537         * tests/test-arcfour.c: Likewise.
57538         * tests/test-arctwo.c: Likewise.
57539         * tests/test-argmatch.c: Likewise.
57540         * tests/test-argp-2.sh: Likewise.
57541         * tests/test-argp.c: Likewise.
57542         * tests/test-arpa_inet.c: Likewise.
57543         * tests/test-array_list.c: Likewise.
57544         * tests/test-array_oset.c: Likewise.
57545         * tests/test-atexit.c: Likewise.
57546         * tests/test-avltree_list.c: Likewise.
57547         * tests/test-avltree_oset.c: Likewise.
57548         * tests/test-avltreehash_list.c: Likewise.
57549         * tests/test-base64.c: Likewise.
57550         * tests/test-binary-io.c: Likewise.
57551         * tests/test-byteswap.c: Likewise.
57552         * tests/test-c-ctype.c: Likewise.
57553         * tests/test-c-strcasecmp.c: Likewise.
57554         * tests/test-c-strcasestr.c: Likewise.
57555         * tests/test-c-strncasecmp.c: Likewise.
57556         * tests/test-c-strstr.c: Likewise.
57557         * tests/test-canonicalize-lgpl.c: Likewise.
57558         * tests/test-canonicalize.c: Likewise.
57559         * tests/test-carray_list.c: Likewise.
57560         * tests/test-ceilf.c: Likewise.
57561         * tests/test-ceill.c: Likewise.
57562         * tests/test-count-one-bits.c: Likewise.
57563         * tests/test-crc.c: Likewise.
57564         * tests/test-dirname.c: Likewise.
57565         * tests/test-fbufmode.c: Likewise.
57566         * tests/test-fcntl.c: Likewise.
57567         * tests/test-fflush.c: Likewise.
57568         * tests/test-floorf.c: Likewise.
57569         * tests/test-floorl.c: Likewise.
57570         * tests/test-fopen.c: Likewise.
57571         * tests/test-fprintf-posix.c: Likewise.
57572         * tests/test-fprintf-posix.h: Likewise.
57573         * tests/test-fpurge.c: Likewise.
57574         * tests/test-freadable.c: Likewise.
57575         * tests/test-freadahead.c: Likewise.
57576         * tests/test-freading.c: Likewise.
57577         * tests/test-freopen.c: Likewise.
57578         * tests/test-frexp.c: Likewise.
57579         * tests/test-frexpl.c: Likewise.
57580         * tests/test-fseek.c: Likewise.
57581         * tests/test-fseeko.c: Likewise.
57582         * tests/test-fseterr.c: Likewise.
57583         * tests/test-fstrcmp.c: Likewise.
57584         * tests/test-ftell.c: Likewise.
57585         * tests/test-ftello.c: Likewise.
57586         * tests/test-fwritable.c: Likewise.
57587         * tests/test-fwriting.c: Likewise.
57588         * tests/test-getaddrinfo.c: Likewise.
57589         * tests/test-getpass.c: Likewise.
57590         * tests/test-gettimeofday.c: Likewise.
57591         * tests/test-hmac-md5.c: Likewise.
57592         * tests/test-hmac-sha1.c: Likewise.
57593         * tests/test-iconv.c: Likewise.
57594         * tests/test-iconvme.c: Likewise.
57595         * tests/test-inttypes.c: Likewise.
57596         * tests/test-isnan.c: Likewise.
57597         * tests/test-isnanf.c: Likewise.
57598         * tests/test-isnanl-nolibm.c: Likewise.
57599         * tests/test-isnanl.c: Likewise.
57600         * tests/test-isnanl.h: Likewise.
57601         * tests/test-ldexpl.c: Likewise.
57602         * tests/test-linked_list.c: Likewise.
57603         * tests/test-linkedhash_list.c: Likewise.
57604         * tests/test-locale.c: Likewise.
57605         * tests/test-localename.c: Likewise.
57606         * tests/test-lock.c: Likewise.
57607         * tests/test-lseek.c: Likewise.
57608         * tests/test-malloca.c: Likewise.
57609         * tests/test-math.c: Likewise.
57610         * tests/test-mbscasecmp.c: Likewise.
57611         * tests/test-mbscasestr1.c: Likewise.
57612         * tests/test-mbscasestr2.c: Likewise.
57613         * tests/test-mbscasestr3.c: Likewise.
57614         * tests/test-mbscasestr4.c: Likewise.
57615         * tests/test-mbschr.c: Likewise.
57616         * tests/test-mbscspn.c: Likewise.
57617         * tests/test-mbsncasecmp.c: Likewise.
57618         * tests/test-mbspbrk.c: Likewise.
57619         * tests/test-mbspcasecmp.c: Likewise.
57620         * tests/test-mbsrchr.c: Likewise.
57621         * tests/test-mbsspn.c: Likewise.
57622         * tests/test-mbsstr1.c: Likewise.
57623         * tests/test-mbsstr2.c: Likewise.
57624         * tests/test-mbsstr3.c: Likewise.
57625         * tests/test-md5.c: Likewise.
57626         * tests/test-memmem.c: Likewise.
57627         * tests/test-netinet_in.c: Likewise.
57628         * tests/test-open.c: Likewise.
57629         * tests/test-printf-frexp.c: Likewise.
57630         * tests/test-printf-frexpl.c: Likewise.
57631         * tests/test-printf-posix.c: Likewise.
57632         * tests/test-printf-posix.h: Likewise.
57633         * tests/test-rbtree_list.c: Likewise.
57634         * tests/test-rbtree_oset.c: Likewise.
57635         * tests/test-rbtreehash_list.c: Likewise.
57636         * tests/test-read-file.c: Likewise.
57637         * tests/test-rijndael.c: Likewise.
57638         * tests/test-search.c: Likewise.
57639         * tests/test-signbit.c: Likewise.
57640         * tests/test-sleep.c: Likewise.
57641         * tests/test-snprintf-posix.c: Likewise.
57642         * tests/test-snprintf-posix.h: Likewise.
57643         * tests/test-snprintf.c: Likewise.
57644         * tests/test-sprintf-posix.c: Likewise.
57645         * tests/test-sprintf-posix.h: Likewise.
57646         * tests/test-stat-time.c: Likewise.
57647         * tests/test-stdbool.c: Likewise.
57648         * tests/test-stdint.c: Likewise.
57649         * tests/test-stdio.c: Likewise.
57650         * tests/test-stdlib.c: Likewise.
57651         * tests/test-stpncpy.c: Likewise.
57652         * tests/test-strcasestr.c: Likewise.
57653         * tests/test-striconv.c: Likewise.
57654         * tests/test-striconveh.c: Likewise.
57655         * tests/test-striconveha.c: Likewise.
57656         * tests/test-string.c: Likewise.
57657         * tests/test-sys_select.c: Likewise.
57658         * tests/test-sys_socket.c: Likewise.
57659         * tests/test-sys_stat.c: Likewise.
57660         * tests/test-sys_time.c: Likewise.
57661         * tests/test-sysexits.c: Likewise.
57662         * tests/test-time.c: Likewise.
57663         * tests/test-tls.c: Likewise.
57664         * tests/test-trunc.c: Likewise.
57665         * tests/test-truncf.c: Likewise.
57666         * tests/test-truncl.c: Likewise.
57667         * tests/test-unistd.c: Likewise.
57668         * tests/test-vasnprintf-posix.c: Likewise.
57669         * tests/test-vasnprintf-posix2.c: Likewise.
57670         * tests/test-vasnprintf.c: Likewise.
57671         * tests/test-vasprintf-posix.c: Likewise.
57672         * tests/test-vasprintf.c: Likewise.
57673         * tests/test-verify.c: Likewise.
57674         * tests/test-vfprintf-posix.c: Likewise.
57675         * tests/test-vprintf-posix.c: Likewise.
57676         * tests/test-vsnprintf-posix.c: Likewise.
57677         * tests/test-vsnprintf.c: Likewise.
57678         * tests/test-vsprintf-posix.c: Likewise.
57679         * tests/test-wchar.c: Likewise.
57680         * tests/test-wctype.c: Likewise.
57681         * tests/test-wcwidth.c: Likewise.
57682         * tests/test-xstrtol.c: Likewise.
57683         * tests/test-xvasprintf.c: Likewise.
57684         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57685         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57686         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57687         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57688         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57689         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57690         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57691         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57692         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57693         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57694         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57695         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57696         * tests/uniname/test-uninames.c: Likewise.
57697         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57698         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
57699         * tests/unistdio/test-u16-printf1.h: Likewise.
57700         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57701         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57702         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57703         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57704         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57705         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57706         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57707         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
57708         * tests/unistdio/test-u32-printf1.h: Likewise.
57709         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57710         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57711         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57712         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57713         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57714         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57715         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57716         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
57717         * tests/unistdio/test-u8-printf1.h: Likewise.
57718         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57719         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57720         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57721         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57722         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57723         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57724         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57725         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
57726         * tests/unistdio/test-ulc-printf1.h: Likewise.
57727         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57728         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57729         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57730         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57731         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57732         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57733         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57734         * tests/uniwidth/test-u16-width.c: Likewise.
57735         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57736         * tests/uniwidth/test-u32-width.c: Likewise.
57737         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57738         * tests/uniwidth/test-u8-width.c: Likewise.
57739         * tests/uniwidth/test-uc_width.c: Likewise.
57740         * config/srclist-update: Likewise.
57741         (fixlicense): Update to GPLv3+.
57742
57743         Change copyright notice from LGPLv2.1+ to LGPLv3+.
57744         * tests/test-tsearch.c: Change copyright notice.
57745
57746         Change copyright notice from LGPLv2.0+ to LGPLv3+.
57747         * lib/c-strcaseeq.h: Change copyright notice.
57748         * lib/streq.h: Likewise.
57749         * lib/uniconv.h: Likewise.
57750         * lib/uniconv/u-conv-from-enc.h: Likewise.
57751         * lib/uniconv/u-conv-to-enc.h: Likewise.
57752         * lib/uniconv/u-strconv-from-enc.h: Likewise.
57753         * lib/uniconv/u-strconv-to-enc.h: Likewise.
57754         * lib/uniconv/u16-conv-from-enc.c: Likewise.
57755         * lib/uniconv/u16-conv-to-enc.c: Likewise.
57756         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
57757         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
57758         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
57759         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
57760         * lib/uniconv/u32-conv-from-enc.c: Likewise.
57761         * lib/uniconv/u32-conv-to-enc.c: Likewise.
57762         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
57763         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
57764         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
57765         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
57766         * lib/uniconv/u8-conv-from-enc.c: Likewise.
57767         * lib/uniconv/u8-conv-to-enc.c: Likewise.
57768         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
57769         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
57770         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
57771         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
57772         * lib/uniname.h: Likewise.
57773         * lib/uniname/uniname.c: Likewise.
57774         * lib/unistdio.h: Likewise.
57775         * lib/unistdio/u-asnprintf.h: Likewise.
57776         * lib/unistdio/u-asprintf.h: Likewise.
57777         * lib/unistdio/u-printf-args.c: Likewise.
57778         * lib/unistdio/u-printf-args.h: Likewise.
57779         * lib/unistdio/u-printf-parse.h: Likewise.
57780         * lib/unistdio/u-snprintf.h: Likewise.
57781         * lib/unistdio/u-sprintf.h: Likewise.
57782         * lib/unistdio/u-vasprintf.h: Likewise.
57783         * lib/unistdio/u-vsnprintf.h: Likewise.
57784         * lib/unistdio/u-vsprintf.h: Likewise.
57785         * lib/unistdio/u16-asnprintf.c: Likewise.
57786         * lib/unistdio/u16-asprintf.c: Likewise.
57787         * lib/unistdio/u16-printf-parse.c: Likewise.
57788         * lib/unistdio/u16-snprintf.c: Likewise.
57789         * lib/unistdio/u16-sprintf.c: Likewise.
57790         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
57791         * lib/unistdio/u16-u16-asprintf.c: Likewise.
57792         * lib/unistdio/u16-u16-snprintf.c: Likewise.
57793         * lib/unistdio/u16-u16-sprintf.c: Likewise.
57794         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
57795         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
57796         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
57797         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
57798         * lib/unistdio/u16-vasnprintf.c: Likewise.
57799         * lib/unistdio/u16-vasprintf.c: Likewise.
57800         * lib/unistdio/u16-vsnprintf.c: Likewise.
57801         * lib/unistdio/u16-vsprintf.c: Likewise.
57802         * lib/unistdio/u32-asnprintf.c: Likewise.
57803         * lib/unistdio/u32-asprintf.c: Likewise.
57804         * lib/unistdio/u32-printf-parse.c: Likewise.
57805         * lib/unistdio/u32-snprintf.c: Likewise.
57806         * lib/unistdio/u32-sprintf.c: Likewise.
57807         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
57808         * lib/unistdio/u32-u32-asprintf.c: Likewise.
57809         * lib/unistdio/u32-u32-snprintf.c: Likewise.
57810         * lib/unistdio/u32-u32-sprintf.c: Likewise.
57811         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
57812         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
57813         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
57814         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
57815         * lib/unistdio/u32-vasnprintf.c: Likewise.
57816         * lib/unistdio/u32-vasprintf.c: Likewise.
57817         * lib/unistdio/u32-vsnprintf.c: Likewise.
57818         * lib/unistdio/u32-vsprintf.c: Likewise.
57819         * lib/unistdio/u8-asnprintf.c: Likewise.
57820         * lib/unistdio/u8-asprintf.c: Likewise.
57821         * lib/unistdio/u8-printf-parse.c: Likewise.
57822         * lib/unistdio/u8-snprintf.c: Likewise.
57823         * lib/unistdio/u8-sprintf.c: Likewise.
57824         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
57825         * lib/unistdio/u8-u8-asprintf.c: Likewise.
57826         * lib/unistdio/u8-u8-snprintf.c: Likewise.
57827         * lib/unistdio/u8-u8-sprintf.c: Likewise.
57828         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
57829         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
57830         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
57831         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
57832         * lib/unistdio/u8-vasnprintf.c: Likewise.
57833         * lib/unistdio/u8-vasprintf.c: Likewise.
57834         * lib/unistdio/u8-vsnprintf.c: Likewise.
57835         * lib/unistdio/u8-vsprintf.c: Likewise.
57836         * lib/unistdio/ulc-asnprintf.c: Likewise.
57837         * lib/unistdio/ulc-asprintf.c: Likewise.
57838         * lib/unistdio/ulc-printf-parse.c: Likewise.
57839         * lib/unistdio/ulc-snprintf.c: Likewise.
57840         * lib/unistdio/ulc-sprintf.c: Likewise.
57841         * lib/unistdio/ulc-vasnprintf.c: Likewise.
57842         * lib/unistdio/ulc-vasprintf.c: Likewise.
57843         * lib/unistdio/ulc-vsnprintf.c: Likewise.
57844         * lib/unistdio/ulc-vsprintf.c: Likewise.
57845         * lib/unistr.h: Likewise.
57846         * lib/unistr/u-cpy-alloc.h: Likewise.
57847         * lib/unistr/u-cpy.h: Likewise.
57848         * lib/unistr/u-endswith.h: Likewise.
57849         * lib/unistr/u-move.h: Likewise.
57850         * lib/unistr/u-set.h: Likewise.
57851         * lib/unistr/u-startswith.h: Likewise.
57852         * lib/unistr/u-stpcpy.h: Likewise.
57853         * lib/unistr/u-stpncpy.h: Likewise.
57854         * lib/unistr/u-strcat.h: Likewise.
57855         * lib/unistr/u-strcpy.h: Likewise.
57856         * lib/unistr/u-strcspn.h: Likewise.
57857         * lib/unistr/u-strdup.h: Likewise.
57858         * lib/unistr/u-strlen.h: Likewise.
57859         * lib/unistr/u-strncat.h: Likewise.
57860         * lib/unistr/u-strncpy.h: Likewise.
57861         * lib/unistr/u-strnlen.h: Likewise.
57862         * lib/unistr/u-strpbrk.h: Likewise.
57863         * lib/unistr/u-strspn.h: Likewise.
57864         * lib/unistr/u-strstr.h: Likewise.
57865         * lib/unistr/u-strtok.h: Likewise.
57866         * lib/unistr/u16-check.c: Likewise.
57867         * lib/unistr/u16-chr.c: Likewise.
57868         * lib/unistr/u16-cmp.c: Likewise.
57869         * lib/unistr/u16-cpy-alloc.c: Likewise.
57870         * lib/unistr/u16-cpy.c: Likewise.
57871         * lib/unistr/u16-endswith.c: Likewise.
57872         * lib/unistr/u16-mblen.c: Likewise.
57873         * lib/unistr/u16-mbsnlen.c: Likewise.
57874         * lib/unistr/u16-mbtouc-aux.c: Likewise.
57875         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
57876         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
57877         * lib/unistr/u16-mbtouc.c: Likewise.
57878         * lib/unistr/u16-mbtoucr.c: Likewise.
57879         * lib/unistr/u16-move.c: Likewise.
57880         * lib/unistr/u16-next.c: Likewise.
57881         * lib/unistr/u16-prev.c: Likewise.
57882         * lib/unistr/u16-set.c: Likewise.
57883         * lib/unistr/u16-startswith.c: Likewise.
57884         * lib/unistr/u16-stpcpy.c: Likewise.
57885         * lib/unistr/u16-stpncpy.c: Likewise.
57886         * lib/unistr/u16-strcat.c: Likewise.
57887         * lib/unistr/u16-strchr.c: Likewise.
57888         * lib/unistr/u16-strcmp.c: Likewise.
57889         * lib/unistr/u16-strcpy.c: Likewise.
57890         * lib/unistr/u16-strcspn.c: Likewise.
57891         * lib/unistr/u16-strdup.c: Likewise.
57892         * lib/unistr/u16-strlen.c: Likewise.
57893         * lib/unistr/u16-strmblen.c: Likewise.
57894         * lib/unistr/u16-strmbtouc.c: Likewise.
57895         * lib/unistr/u16-strncat.c: Likewise.
57896         * lib/unistr/u16-strncmp.c: Likewise.
57897         * lib/unistr/u16-strncpy.c: Likewise.
57898         * lib/unistr/u16-strnlen.c: Likewise.
57899         * lib/unistr/u16-strpbrk.c: Likewise.
57900         * lib/unistr/u16-strrchr.c: Likewise.
57901         * lib/unistr/u16-strspn.c: Likewise.
57902         * lib/unistr/u16-strstr.c: Likewise.
57903         * lib/unistr/u16-strtok.c: Likewise.
57904         * lib/unistr/u16-to-u32.c: Likewise.
57905         * lib/unistr/u16-to-u8.c: Likewise.
57906         * lib/unistr/u16-uctomb-aux.c: Likewise.
57907         * lib/unistr/u16-uctomb.c: Likewise.
57908         * lib/unistr/u32-check.c: Likewise.
57909         * lib/unistr/u32-chr.c: Likewise.
57910         * lib/unistr/u32-cmp.c: Likewise.
57911         * lib/unistr/u32-cpy-alloc.c: Likewise.
57912         * lib/unistr/u32-cpy.c: Likewise.
57913         * lib/unistr/u32-endswith.c: Likewise.
57914         * lib/unistr/u32-mblen.c: Likewise.
57915         * lib/unistr/u32-mbsnlen.c: Likewise.
57916         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
57917         * lib/unistr/u32-mbtouc.c: Likewise.
57918         * lib/unistr/u32-mbtoucr.c: Likewise.
57919         * lib/unistr/u32-move.c: Likewise.
57920         * lib/unistr/u32-next.c: Likewise.
57921         * lib/unistr/u32-prev.c: Likewise.
57922         * lib/unistr/u32-set.c: Likewise.
57923         * lib/unistr/u32-startswith.c: Likewise.
57924         * lib/unistr/u32-stpcpy.c: Likewise.
57925         * lib/unistr/u32-stpncpy.c: Likewise.
57926         * lib/unistr/u32-strcat.c: Likewise.
57927         * lib/unistr/u32-strchr.c: Likewise.
57928         * lib/unistr/u32-strcmp.c: Likewise.
57929         * lib/unistr/u32-strcpy.c: Likewise.
57930         * lib/unistr/u32-strcspn.c: Likewise.
57931         * lib/unistr/u32-strdup.c: Likewise.
57932         * lib/unistr/u32-strlen.c: Likewise.
57933         * lib/unistr/u32-strmblen.c: Likewise.
57934         * lib/unistr/u32-strmbtouc.c: Likewise.
57935         * lib/unistr/u32-strncat.c: Likewise.
57936         * lib/unistr/u32-strncmp.c: Likewise.
57937         * lib/unistr/u32-strncpy.c: Likewise.
57938         * lib/unistr/u32-strnlen.c: Likewise.
57939         * lib/unistr/u32-strpbrk.c: Likewise.
57940         * lib/unistr/u32-strrchr.c: Likewise.
57941         * lib/unistr/u32-strspn.c: Likewise.
57942         * lib/unistr/u32-strstr.c: Likewise.
57943         * lib/unistr/u32-strtok.c: Likewise.
57944         * lib/unistr/u32-to-u16.c: Likewise.
57945         * lib/unistr/u32-to-u8.c: Likewise.
57946         * lib/unistr/u32-uctomb.c: Likewise.
57947         * lib/unistr/u8-check.c: Likewise.
57948         * lib/unistr/u8-chr.c: Likewise.
57949         * lib/unistr/u8-cmp.c: Likewise.
57950         * lib/unistr/u8-cpy-alloc.c: Likewise.
57951         * lib/unistr/u8-cpy.c: Likewise.
57952         * lib/unistr/u8-endswith.c: Likewise.
57953         * lib/unistr/u8-mblen.c: Likewise.
57954         * lib/unistr/u8-mbsnlen.c: Likewise.
57955         * lib/unistr/u8-mbtouc-aux.c: Likewise.
57956         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
57957         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
57958         * lib/unistr/u8-mbtouc.c: Likewise.
57959         * lib/unistr/u8-mbtoucr.c: Likewise.
57960         * lib/unistr/u8-move.c: Likewise.
57961         * lib/unistr/u8-next.c: Likewise.
57962         * lib/unistr/u8-prev.c: Likewise.
57963         * lib/unistr/u8-set.c: Likewise.
57964         * lib/unistr/u8-startswith.c: Likewise.
57965         * lib/unistr/u8-stpcpy.c: Likewise.
57966         * lib/unistr/u8-stpncpy.c: Likewise.
57967         * lib/unistr/u8-strcat.c: Likewise.
57968         * lib/unistr/u8-strchr.c: Likewise.
57969         * lib/unistr/u8-strcmp.c: Likewise.
57970         * lib/unistr/u8-strcpy.c: Likewise.
57971         * lib/unistr/u8-strcspn.c: Likewise.
57972         * lib/unistr/u8-strdup.c: Likewise.
57973         * lib/unistr/u8-strlen.c: Likewise.
57974         * lib/unistr/u8-strmblen.c: Likewise.
57975         * lib/unistr/u8-strmbtouc.c: Likewise.
57976         * lib/unistr/u8-strncat.c: Likewise.
57977         * lib/unistr/u8-strncmp.c: Likewise.
57978         * lib/unistr/u8-strncpy.c: Likewise.
57979         * lib/unistr/u8-strnlen.c: Likewise.
57980         * lib/unistr/u8-strpbrk.c: Likewise.
57981         * lib/unistr/u8-strrchr.c: Likewise.
57982         * lib/unistr/u8-strspn.c: Likewise.
57983         * lib/unistr/u8-strstr.c: Likewise.
57984         * lib/unistr/u8-strtok.c: Likewise.
57985         * lib/unistr/u8-to-u16.c: Likewise.
57986         * lib/unistr/u8-to-u32.c: Likewise.
57987         * lib/unistr/u8-uctomb-aux.c: Likewise.
57988         * lib/unistr/u8-uctomb.c: Likewise.
57989         * lib/unitypes.h: Likewise.
57990         * lib/uniwidth.h: Likewise.
57991         * lib/uniwidth/cjk.h: Likewise.
57992         * lib/uniwidth/u16-strwidth.c: Likewise.
57993         * lib/uniwidth/u16-width.c: Likewise.
57994         * lib/uniwidth/u32-strwidth.c: Likewise.
57995         * lib/uniwidth/u32-width.c: Likewise.
57996         * lib/uniwidth/u8-strwidth.c: Likewise.
57997         * lib/uniwidth/u8-width.c: Likewise.
57998         * lib/uniwidth/width.c: Likewise.
57999
58000 2007-10-07  Bruno Haible  <bruno@clisp.org>
58001
58002         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
58003         The file is still under LGPL (see modules/inttypes).
58004
58005 2007-10-06  Bruno Haible  <bruno@clisp.org>
58006
58007         * modules/trunc (Dependencies): Add 'extensions'.
58008         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
58009         Reported by Ben Pfaff <blp@gnu.org>.
58010
58011 2007-10-06  Bruno Haible  <bruno@clisp.org>
58012
58013         * modules/freopen-tests: New file.
58014         * tests/test-freopen.c: New file.
58015
58016         * modules/fopen-tests: New file.
58017         * tests/test-fopen.c: New file.
58018
58019         * modules/fopen: New file.
58020         * lib/fopen.c: New file.
58021         * m4/fopen.m4: New file.
58022         * modules/freopen: New file.
58023         * lib/freopen.c: New file.
58024         * m4/freopen.m4: New file.
58025         * lib/stdio.in.h (fopen, freopen): New declarations.
58026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
58027         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58028         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
58029         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58030         * doc/functions/fopen.texi: Mention the 'fopen' module.
58031         * doc/functions/freopen.texi: Mention the 'freopen' module.
58032
58033 2007-10-06  Bruno Haible  <bruno@clisp.org>
58034
58035         * modules/open-tests: New file.
58036         * tests/test-open.c: New file.
58037
58038         * modules/open: New file.
58039         * lib/open.c: New file.
58040         * m4/open.m4: New file.
58041         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
58042         lib/open.c does.
58043         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
58044         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
58045         macros.
58046         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
58047         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
58048         REPLACE_OPEN.
58049         * doc/functions/open.texi: Mention the 'open' module.
58050
58051 2007-10-04  Bruno Haible  <bruno@clisp.org>
58052
58053         * modules/ceill-tests: New file.
58054         * tests/test-ceill.c: New file.
58055
58056         * modules/ceill: New file.
58057         * lib/ceill.c: Replace entire file.
58058         * m4/ceill.m4: New file.
58059         * lib/math.in.h (ceill): Replace declaration.
58060         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
58061         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
58062         * doc/functions/ceill.texi: Mention the 'ceill' module.
58063         * modules/mathl (Files): Remove lib/ceill.c.
58064         (Depends-on): Add ceill.
58065
58066 2007-10-04  Bruno Haible  <bruno@clisp.org>
58067
58068         * modules/ceilf-tests: New file.
58069         * tests/test-ceilf.c: New file.
58070
58071         * modules/ceilf: New file.
58072         * lib/ceil.c: New file.
58073         * lib/ceilf.c: New file.
58074         * m4/ceilf.m4: New file.
58075         * lib/math.in.h (ceilf): New declaration.
58076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
58077         HAVE_DECL_CEILF.
58078         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
58079         HAVE_DECL_CEILF.
58080         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
58081
58082 2007-10-04  Bruno Haible  <bruno@clisp.org>
58083
58084         * modules/floorl-tests: New file.
58085         * tests/test-floorl.c: New file.
58086
58087         * modules/floorl: New file.
58088         * lib/floorl.c: Replace entire file.
58089         * m4/floorl.m4: New file.
58090         * lib/math.in.h (floorl): Replace declaration.
58091         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
58092         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
58093         * doc/functions/floorl.texi: Mention the 'floorl' module.
58094         * modules/mathl (Files): Remove lib/floorl.c.
58095         (Depends-on): Add floorl.
58096
58097 2007-10-04  Bruno Haible  <bruno@clisp.org>
58098
58099         * modules/floorf-tests: New file.
58100         * tests/test-floorf.c: New file.
58101
58102         * modules/floorf: New file.
58103         * lib/floor.c: New file.
58104         * lib/floorf.c: New file.
58105         * m4/floorf.m4: New file.
58106         * lib/math.in.h (floorf): New declaration.
58107         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
58108         HAVE_DECL_FLOORF.
58109         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
58110         HAVE_DECL_FLOORF.
58111         * doc/functions/floorf.texi: Mention the 'floorf' module.
58112
58113 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
58114             Bruno Haible  <bruno@clisp.org>
58115
58116         Advertise for the Git server instead of the CVS server.
58117         * doc/gnulib-intro.texi (Steady Development): Mention the Git
58118         repository instead of the CVS one.
58119         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
58120         about all VCS systems generically.
58121         * doc/gnulib.texi (Introduction): Capitalize `Git'.
58122
58123 2007-10-04  Bruno Haible  <bruno@clisp.org>
58124
58125         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
58126         means.
58127         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
58128
58129 2007-10-04  Bruno Haible  <bruno@clisp.org>
58130
58131         * modules/truncl-tests: New file.
58132         * tests/test-truncl.c: New file.
58133
58134         * modules/truncl: New file.
58135         * lib/truncl.c: New file.
58136         * m4/truncl.m4: New file.
58137         * lib/math.in.h (truncl): New declaration.
58138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
58139         HAVE_DECL_TRUNCL.
58140         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
58141         HAVE_DECL_TRUNCL.
58142         * doc/functions/truncl.texi: Mention the 'truncl' module.
58143
58144 2007-10-04  Bruno Haible  <bruno@clisp.org>
58145
58146         * modules/truncf-tests: New file.
58147         * tests/test-truncf.c: New file.
58148
58149         * modules/truncf: New file.
58150         * lib/trunc.c: Make paramerizable through USE_* macros.
58151         * lib/truncf.c: New file.
58152         * m4/truncf.m4: New file.
58153         * lib/math.in.h (truncf): New declaration.
58154         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
58155         HAVE_DECL_TRUNCF.
58156         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
58157         HAVE_DECL_TRUNCF.
58158         * doc/functions/truncf.texi: Mention the 'truncf' module.
58159
58160 2007-10-03  Bruno Haible  <bruno@clisp.org>
58161
58162         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58163         augmentation also for tests modules.
58164         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
58165         * modules/atexit-tests (Makefile.am): Likewise.
58166         * modules/binary-io-tests (Makefile.am): Likewise.
58167         * modules/c-strcase-tests (Makefile.am): Likewise.
58168         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
58169         * modules/canonicalize-tests (Makefile.am): Likewise.
58170         * modules/closein-tests (Makefile.am): Likewise.
58171         * modules/fprintf-posix-tests (Makefile.am): Likewise.
58172         * modules/freadahead-tests (Makefile.am): Likewise.
58173         * modules/fseek-tests (Makefile.am): Likewise.
58174         * modules/fseeko-tests (Makefile.am): Likewise.
58175         * modules/ftell-tests (Makefile.am): Likewise.
58176         * modules/ftello-tests (Makefile.am): Likewise.
58177         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
58178         * modules/isnanl-tests (Makefile.am): Likewise.
58179         * modules/lseek-tests (Makefile.am): Likewise.
58180         * modules/mbscasecmp-tests (Makefile.am): Likewise.
58181         * modules/mbscasestr-tests (Makefile.am): Likewise.
58182         * modules/mbschr-tests (Makefile.am): Likewise.
58183         * modules/mbscspn-tests (Makefile.am): Likewise.
58184         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
58185         * modules/mbspbrk-tests (Makefile.am): Likewise.
58186         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
58187         * modules/mbsrchr-tests (Makefile.am): Likewise.
58188         * modules/mbsspn-tests (Makefile.am): Likewise.
58189         * modules/mbsstr-tests (Makefile.am): Likewise.
58190         * modules/printf-posix-tests (Makefile.am): Likewise.
58191         * modules/snprintf-posix-tests (Makefile.am): Likewise.
58192         * modules/sprintf-posix-tests (Makefile.am): Likewise.
58193         * modules/tsearch-tests (Makefile.am): Likewise.
58194         * modules/uniname/uniname-tests (Makefile.am): Likewise.
58195         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
58196         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
58197         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
58198         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
58199         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
58200         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
58201         * modules/vprintf-posix-tests (Makefile.am): Likewise.
58202         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
58203         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
58204         * modules/xstrtoimax-tests (Makefile.am): Likewise.
58205         * modules/xstrtol-tests (Makefile.am): Likewise.
58206         * modules/xstrtoumax-tests (Makefile.am): Likewise.
58207         * modules/yesno-tests (Makefile.am): Likewise.
58208
58209 2007-10-03  Bruno Haible  <bruno@clisp.org>
58210
58211         * modules/trunc-tests: New file.
58212         * tests/test-trunc.c: New file.
58213
58214         * modules/trunc: New file.
58215         * lib/trunc.c: New file.
58216         * m4/trunc.m4: New file.
58217         * lib/math.in.h (trunc): New declaration.
58218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
58219         HAVE_DECL_TRUNC.
58220         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
58221         HAVE_DECL_TRUNC.
58222         * doc/functions/trunc.texi: Mention the 'trunc' module.
58223
58224 2007-10-03  Bruno Haible  <bruno@clisp.org>
58225
58226         * tests/test-fpending.c: New file, mostly copied
58227         from coreutils/lib/t-fpending.c.
58228         * modules/fpending-tests: New file.
58229
58230 2007-10-03  Bruno Haible  <bruno@clisp.org>
58231
58232         Port the stdio extensions to QNX (untested).
58233         * lib/fseterr.c (fseterr): Add support for QNX.
58234         * lib/fbufmode.c (fbufmode): Likewise.
58235         * lib/freadable.c (freadable): Likewise.
58236         * lib/fwritable.c (fwritable): Likewise.
58237         * lib/freading.c (freading): Likewise.
58238         * lib/fwriting.c (fwriting): Likewise.
58239         * lib/freadahead.c (freadahed): Likewise.
58240         * lib/fpurge.c (fpurge): Likewise.
58241         * lib/fseeko.c (rpl_fseeko): Likewise.
58242
58243 2007-10-03  Bruno Haible  <bruno@clisp.org>
58244             Jim Meyering  <jim@meyering.net>
58245             Eric Blake  <ebb9@byu.net>
58246
58247         * doc/relocatable.texi: Use @command instead of @program.
58248
58249 2007-10-02  Jim Meyering  <jim@meyering.net>
58250
58251         Perform one more "_.h" -> ".in.h" substitution.
58252         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
58253         instead of unistd_.h here, too.
58254
58255 2007-10-01  Bruno Haible  <bruno@clisp.org>
58256
58257         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
58258         Needed for the alloca-opt module.
58259
58260 2007-09-30  Bruno Haible  <bruno@clisp.org>
58261
58262         * lib/alloca.in.h: Renamed from lib/alloca_.h.
58263         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
58264         alloca_.h.
58265         * lib/argz.in.h: Renamed from lib/argz_.h.
58266         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
58267         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
58268         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
58269         byteswap_.h.
58270         * lib/dirent.in.h: Renamed from lib/dirent_.h.
58271         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
58272         dirent_.h.
58273         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
58274         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
58275         fcntl_.h.
58276         * lib/float.in.h: Renamed from lib/float_.h.
58277         * modules/float (Files, Makefile.am): Use float.in.h instead of
58278         float_.h.
58279         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
58280         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
58281         fnmatch_.h.
58282         * lib/getopt.in.h: Renamed from lib/getopt_.h.
58283         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
58284         getopt_.h.
58285         * lib/glob.in.h: Renamed from lib/glob_.h.
58286         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
58287         * lib/iconv.in.h: Renamed from lib/iconv_.h.
58288         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
58289         iconv_.h.
58290         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
58291         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
58292         inttypes_.h.
58293         * lib/locale.in.h: Renamed from lib/locale_.h.
58294         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
58295         locale_.h.
58296         * lib/math.in.h: Renamed from lib/math_.h.
58297         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
58298         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
58299         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
58300         of netinet_in_.h. Add dependency.
58301         * lib/poll.in.h: Renamed from lib/poll_.h.
58302         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
58303         * lib/search.in.h: Renamed from lib/search_.h.
58304         * modules/search (Files, Makefile.am): Use search.in.h instead of
58305         search_.h.
58306         * lib/signal.in.h: Renamed from lib/signal_.h.
58307         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
58308         _signal.h.
58309         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
58310         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
58311         stdbool_.h.
58312         * lib/stdint.in.h: Renamed from lib/stdint_.h.
58313         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
58314         stdint_.h.
58315         * lib/stdio.in.h: Renamed from lib/stdio_.h.
58316         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
58317         stdio_.h.
58318         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
58319         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
58320         stdlib_.h.
58321         * lib/string.in.h: Renamed from lib/string_.h.
58322         * modules/string (Files, Makefile.am): Use string.in.h instead of
58323         string_.h.
58324         * doc/gnulib-tool.texi (Initial import): Update.
58325         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
58326         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
58327         of sys_select_.h. Add dependency.
58328         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
58329         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
58330         of sys_socket_.h.
58331         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
58332         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
58333         sys_stat_.h.
58334         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
58335         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
58336         sys_time_.h.
58337         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
58338         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
58339         sysexits_.h.
58340         * lib/time.in.h: Renamed from lib/time_.h.
58341         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
58342         * lib/unistd.in.h: Renamed from lib/unistd_.h.
58343         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
58344         unistd_.h.
58345         * lib/wchar.in.h: Renamed from lib/wchar_.h.
58346         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
58347         wchar_.h.
58348         * lib/wctype.in.h: Renamed from lib/wctype_.h.
58349         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
58350         wctype_.h.
58351         * build-aux/bootstrap (slurp): Update.
58352         * lib/.cppi-disable: Update.
58353
58354 2007-09-30  Bruno Haible  <bruno@clisp.org>
58355
58356         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
58357         Needed on BeOS.
58358
58359 2007-09-30  Bruno Haible  <bruno@clisp.org>
58360
58361         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
58362
58363 2007-09-29  Bruno Haible  <bruno@clisp.org>
58364
58365         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
58366
58367 2007-09-29  Bruno Haible  <bruno@clisp.org>
58368
58369         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
58370         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
58371         * build-aux/install-reloc: Compile also areadlink.c.
58372         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
58373
58374 2007-09-29  Bruno Haible  <bruno@clisp.org>
58375
58376         * gnulib-tool (func_emit_initmacro_done): Indentation.
58377
58378 2007-09-29  Bruno Haible  <bruno@clisp.org>
58379
58380         * README: Add CVS checkout update instructions.
58381         Info from Bob Proulx <bob@proulx.com>.
58382
58383 2007-09-28  Eric Blake  <ebb9@byu.net>
58384
58385         Provide move-if-change.
58386         * build-aux/move-if-change: New file, based on best practice
58387         rather than any canonical upstream location.
58388
58389 2007-09-28  Jim Meyering  <jim@meyering.net>
58390
58391         Fix canonicalize loop-detection corner case.
58392         Do not attempt to stat the symlink values stored via seen_triple.
58393         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
58394         on linux-2.6.18, (but not 2.6.22).
58395         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
58396         triple_compare.  The former compares dev,ino,filename, while the latter
58397         would actually stat dirname(filename) when dev and ino were equal.
58398         * lib/hash-triple.c: Install <string.h>.
58399         (STREQ): Define.
58400         (triple_compare_ino_str): New function.
58401         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
58402
58403 2007-09-28  Eric Blake  <ebb9@byu.net>
58404
58405         Enforce that AC_REPLACE_FUNCS files exist.
58406         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
58407         override check for typos.
58408
58409         Fix test-closein on Solaris 10.
58410         * tests/test-closein.c (main): Don't assume stdin can be inherited
58411         closed on all systems.
58412         * tests/test-closein.sh: Likewise.
58413         Reported by Piotr Tarnowski.
58414
58415 2007-09-28  Jim Meyering  <jim@meyering.net>
58416
58417         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
58418
58419 2007-09-27  Jim Meyering  <jim@meyering.net>
58420
58421         canonicalize: Avoid a false-positive cycle failure.
58422         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
58423         Sort.  Remove cycle-check.
58424         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
58425         not cycle-check.h.
58426         (seen_triple): New function.
58427         (canonicalize_filename_mode): Use it instead of cycle-check.
58428         * tests/test-canonicalize.c: Add a test for this bug.
58429         * tests/test-canonicalize.sh: Set up and run the test.
58430
58431         New module, file-set, from coreutils.
58432         * modules/file-set: Define it.
58433         * lib/file-set.c, lib/file-set.h: Implement.
58434
58435         New module, hash-triple, from coreutils.
58436         * modules/hash-triple: Define it.
58437         * lib/hash-triple.c, lib/hash-triple.h: Implement.
58438
58439 2007-09-25  Eric Blake  <ebb9@byu.net>
58440
58441         Fix strerror on Interix.
58442         * lib/string_.h (strerror): Declare replacement.
58443         * doc/functions/strerror.texi (strerror): Document the Interix
58444         shortcoming.
58445         * modules/string (Makefile.am): Support new hooks.
58446         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
58447         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
58448         gl_FUNC_STRERROR_SEPARATE.
58449         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
58450         * lib/strerror.c (rpl_strerror): Provide replacement.
58451         * modules/strerror (Depends-on): Add string.
58452         (configure.ac): Detect use of module.
58453         * tests/test-strerror.c: New file.
58454         * modules/strerror-tests: New test module.
58455         * modules/argp (Depends-on): Add strerror.
58456         * modules/error (Depends-on): Likewise.
58457         Reported by Martin Koeppe.
58458
58459 2007-09-24  Bruno Haible  <bruno@clisp.org>
58460
58461         * README: Update git instructions.
58462
58463 2007-09-24  Eric Blake  <ebb9@byu.net>
58464
58465         Revert fpending breakage from 2007-09-08.
58466         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
58467         __fpending.c.
58468
58469 2007-09-24  Jim Meyering  <jim@meyering.net>
58470
58471         filenamecat.c: Add a test.
58472         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
58473         showing how the function works when DIR is the empty string.
58474
58475 2007-09-21  Simon Josefsson  <simon@josefsson.org>
58476
58477         * tests/test-canonicalize.sh: Turn on executable bit.
58478
58479 2007-09-19  Eric Blake  <ebb9@byu.net>
58480
58481         * README: Update CVS instructions.
58482
58483 2007-09-18  Bruno Haible  <bruno@clisp.org>
58484
58485         * modules/areadlink: New file.
58486         * lib/areadlink.h (areadlink): New declaration.
58487         * lib/areadlink.c: New file, based on lib/xreadlink.c.
58488
58489 2007-09-17  Jim Meyering  <jim@meyering.net>
58490
58491         * lib/savewd.c (ESTALE) [!defined]: Define.
58492         Reported to be required on Interix by Martin Koeppe.
58493
58494 2007-09-17  Bruno Haible  <bruno@clisp.org>
58495
58496         * gnulib-tool (func_version): Use $version.
58497
58498 2007-09-16  Bruno Haible  <bruno@clisp.org>
58499
58500         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
58501         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
58502         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
58503         Reported by Greg Schafer <gschafer@zip.com.au>.
58504
58505 2007-09-15  Bruno Haible  <bruno@clisp.org>
58506
58507         * gnulib-tool (sed): Try a little harder to make bash understand the
58508         alias.
58509         Reported by Bruce Korb <bruce.korb@gmail.com>.
58510
58511 2007-09-13  Eric Blake  <ebb9@byu.net>
58512
58513         * ChangeLog: Remove conflict markers.
58514
58515 2007-09-13  Simon Josefsson  <simon@josefsson.org>
58516
58517         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
58518         Reported by Bruno Haible <bruno@clisp.org>.
58519
58520 2007-09-12  Bruno Haible  <bruno@clisp.org>
58521
58522         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
58523         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
58524         is not defined.
58525
58526 2007-09-12  Eric Blake  <ebb9@byu.net>
58527
58528         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
58529         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
58530         Autoconf definition.
58531         * modules/euidaccess (Depends-on): Add extensions, for
58532         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
58533         * modules/fnmatch (Depends-on): Likewise.
58534         * modules/getaddrinfo (Depends-on): Likewise.
58535         * modules/getdelim (Depends-on): Likewise.
58536         * modules/getline (Depends-on): Likewise.
58537         * modules/getsubopt (Depends-on): Likewise.
58538         * modules/gettext (Depends-on): Likewise.
58539         * modules/group-member (Depends-on): Likewise.
58540         * modules/mbchar (Depends-on): Likewise.
58541         * modules/memmem (Depends-on): Likewise.
58542         * modules/mempcpy (Depends-on): Likewise.
58543         * modules/memrchr (Depends-on): Likewise.
58544         * modules/pagealign_alloc (Depends-on): Likewise.
58545         * modules/readutmp (Depends-on): Likewise.
58546         * modules/stpcpy (Depends-on): Likewise.
58547         * modules/stpncpy (Depends-on): Likewise.
58548         * modules/strchrnul (Depends-on): Likewise.
58549         * modules/strndup (Depends-on): Likewise.
58550         * modules/strsep (Depends-on): Likewise.
58551         * modules/strverscmp (Depends-on): Likewise.
58552         * modules/vasprintf (Depends-on): Likewise.
58553         * modules/wcwidth (Depends-on): Likewise.
58554         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
58555         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
58556         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
58557         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
58558         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58559         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58560         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
58561         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58562         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
58563         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58564         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58565         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58566         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58567         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
58568         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
58569         * m4/readutmp.m4 (gl_READUTMP): Likewise.
58570         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58571         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58572         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58573         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58574         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58575         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58576         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58577         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
58578         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
58579         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58580         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
58581         so that lock.m4 can be used in gettext without extensions module.
58582
58583 2007-09-11  Bruno Haible  <bruno@clisp.org>
58584
58585         * m4/isc-posix.m4: Remove file.
58586         Suggested by Eric Blake.
58587
58588 2007-09-11  Eric Blake  <ebb9@byu.net>
58589
58590         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
58591
58592 2007-09-10  Bruno Haible  <bruno@clisp.org>
58593
58594         * posix-modules: Fix typo in error message.
58595         Reported by Matt <mkraai@beckman.com>.
58596
58597 2007-09-09  Bruno Haible  <bruno@clisp.org>
58598
58599         * doc/functions/getdelim.texi: Update list of platforms lacking the
58600         function.
58601         * doc/functions/getline.texi: Likewise.
58602
58603 2007-09-09  Jim Meyering  <jim@meyering.net>
58604
58605         * lib/hash.c (hash_initialize): Detect calloc failure.
58606         Reported by Bruno Haible.
58607
58608 2007-09-09  Bruno Haible  <bruno@clisp.org>
58609
58610         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
58611         malloc or realloc fails.
58612
58613 2007-09-09  Bruno Haible  <bruno@clisp.org>
58614
58615         * modules/getcwd (Depends-on): Add malloc-posix.
58616         * modules/glob (Depends-on): Likewise.
58617         * modules/putenv (Depends-on): Likewise.
58618         * modules/strdup (Depends-on): Likewise.
58619         * modules/getdelim (Depends-on): Add realloc-posix.
58620         * modules/read-file (Depends-on): Likewise.
58621
58622 2007-09-09  Bruno Haible  <bruno@clisp.org>
58623
58624         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
58625         (gl_FUNC_MALLOC_POSIX): Require it.
58626         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
58627         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
58628         * modules/realloc (Files): Add m4/malloc.m4.
58629         * modules/calloc (Files): Likewise.
58630
58631 2007-09-09  Bruno Haible  <bruno@clisp.org>
58632
58633         * modules/malloc-posix: New file.
58634         * modules/malloc (Depends-on): Add malloc-posix.
58635         * lib/malloc.c: Include errno.h.
58636         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
58637         and a POSIX-compatible malloc into a single function. Set ENOMEM
58638         when returning NULL.
58639         * m4/malloc.m4: New file.
58640         * doc/functions/malloc.texi: Mention the malloc-posix module.
58641         * lib/stdlib_.h (malloc): New declaration.
58642         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58643         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
58644         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
58645         and HAVE_MALLOC_POSIX.
58646
58647 2007-09-09  Bruno Haible  <bruno@clisp.org>
58648
58649         * modules/realloc-posix: New file.
58650         * modules/realloc (Depends-on): Add realloc-posix.
58651         * lib/realloc.c: Include errno.h.
58652         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
58653         and a POSIX-compatible realloc into a single function. Set ENOMEM
58654         when returning NULL.
58655         * m4/realloc.m4: New file.
58656         * doc/functions/realloc.texi: Mention the realloc-posix module.
58657         * lib/stdlib_.h (realloc): New declaration.
58658         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58659         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
58660         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
58661         and HAVE_REALLOC_POSIX.
58662
58663 2007-09-09  Bruno Haible  <bruno@clisp.org>
58664
58665         * modules/calloc-posix: New file.
58666         * modules/calloc (Depends-on): Add calloc-posix.
58667         * lib/calloc.c: Include errno.h.
58668         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
58669         and a POSIX-compatible calloc into a single function. Set ENOMEM
58670         when returning NULL.
58671         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
58672         * doc/functions/calloc.texi: Mention the calloc-posix module.
58673         * lib/stdlib_.h (calloc): New declaration.
58674         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58675         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
58676         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
58677         and HAVE_CALLOC_POSIX.
58678
58679 2007-09-09  Bruno Haible  <bruno@clisp.org>
58680
58681         Allow for modules to show an arbitrary notice.
58682         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
58683         * gnulib-tool: New option --extract-notice.
58684         (func_usage): Document it.
58685         (sed_extract_prog): Update.
58686         (func_get_notice): New function.
58687         (func_modules_notice): New function.
58688         (func_import, func_create_testdir): Invoke it.
58689         Suggested by Jim Meyering.
58690
58691 2007-09-09  Bruno Haible  <bruno@clisp.org>
58692
58693         * gnulib-tool: New options --verbose, --quiet.
58694         (func_usage): Document them.
58695         (verbose): New variable.
58696         (func_execute_command): New function.
58697         (func_import): Don't show the module list and the file list if
58698         $verbose < 0.
58699         (func_create_testdir): Likewise. Use func_execute_command.
58700         (func_create_megatestdir): Use func_execute_command.
58701
58702 2007-09-08  Bruno Haible  <bruno@clisp.org>
58703
58704         * gnulib-tool (func_import): Prefer rsync over wget when available,
58705         for fetching the PO files.
58706
58707 2007-09-08  Bruno Haible  <bruno@clisp.org>
58708
58709         * posix-modules: New file. Portions copied from gnulib-tool.
58710         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
58711
58712 2007-09-08  Jim Meyering  <jim@meyering.net>
58713
58714         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
58715         * lib/fpending.h: Rename from __fpending.h.
58716         * lib/fpending.c: Rename from __fpending.c.
58717         Include "fpending.h", not "__fpending.h".
58718         * lib/__fpending.h, lib/__fpending.c: Remove files.
58719         * modules/fpending (Files): Reflect new file names.
58720         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
58721
58722 2007-09-08  Bruno Haible  <bruno@clisp.org>
58723
58724         * m4/inttypes-h.m4: Remove stub file.
58725
58726 2007-09-07  Simon Josefsson  <simon@josefsson.org>
58727
58728         * doc/headers/stdint.texi: Discuss #include_next issue.
58729
58730 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58731
58732         * build-aux/bootstrap: Remove obsolete comment about wget --help.
58733
58734 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58735
58736         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
58737         in variable name.
58738
58739 2007-09-03  Jim Meyering  <jim@meyering.net>
58740
58741         New module: git-version-gen.
58742         * modules/git-version-gen: New file.
58743
58744         Import changes from coreutils for bootstrap script.
58745
58746         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
58747
58748         bootstrap: uses rsync to download the .po files
58749         * build-aux/bootstrap (po_download_command_format): New global.
58750         (download_po_files): Use rsync.
58751         (update_po_files): Don't remove .po files after download,
58752         so future rsync runs can take advantage of the copies.
58753
58754         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
58755
58756         Solve the unnecessary-.po-file-regeneration problem once and for all.
58757         * build-aux/bootstrap (download_po_files): New function, renamed from
58758         get_translations.  Now, downloads, but doesn't update LINGUAS.
58759         (update_po_files): New function.
58760
58761         bootstrap: Ignore more.
58762         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
58763         uniwidth to e.g., lib/.gitignore.
58764         (slurp): Handle the sys_stat_.h -> sys mapping, too.
58765
58766         * build-aux/bootstrap: New setting: vc_ignore.
58767         (insert_sorted_if_absent): Create $file if absent.
58768         Adapt to new, possibly empty, list: $vc_ignore.
58769
58770         bootstrap: generate more ignorable names
58771         * build-aux/bootstrap (slurp): When generating ignorable names,
58772         also map .sin to .sed, .gperf to .c, and .y to .c.
58773
58774 2007-09-03  Jim Meyering  <jim@meyering.net>
58775
58776         * build-aux/git-version-gen: New file, from coreutils.  For details, see
58777         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
58778
58779 2007-09-02  Bruno Haible  <bruno@clisp.org>
58780
58781         Fix mis-recognition of 'mcs' on QNX 6.
58782         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
58783         output contains the string "Mono".
58784         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
58785         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
58786
58787 2007-09-01  Bruno Haible  <bruno@clisp.org>
58788
58789         Fix collision between uniwidth/* and linebreak modules.
58790         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
58791         u32_width): Remove declarations.
58792         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
58793         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
58794         streq3, streq2, streq1, streq0): Remove functions.
58795         (STREQ): Remove macro.
58796         (is_cjk_encoding): Remove function.
58797         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
58798         (uc_width, u8_width, u16_width, u32_width): Remove functions.
58799         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
58800         * NEWS: Document the change.
58801
58802 2007-09-01  Bruno Haible  <bruno@clisp.org>
58803
58804         * lib/streq.h: Add double-inclusion guard.
58805
58806 2007-09-01  Karl Berry  <karl@gnu.org>
58807
58808         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
58809
58810 2007-08-28  Jim Meyering  <jim@meyering.net>
58811
58812         Rename mreadlink_with_size to areadlink_with_size.
58813         * NEWS: Document the change.
58814         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
58815         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
58816         * lib/mreadlink.h: Rename this to...
58817         * lib/areadlink.h: ...this.
58818         * modules/mreadlink-with-size: Rename this to...
58819         * modules/areadlink-with-size: ...this.
58820         * lib/canonicalize.c: Reflect the renaming.
58821         * modules/canonicalize: Likewise.
58822
58823 2007-08-26  Bruno Haible  <bruno@clisp.org>
58824
58825         * gnulib-tool (func_import): When deciding which files to remove,
58826         consider also dangling symbolic links.
58827         Reported by Eric Blake.
58828
58829 2007-08-26  Bruno Haible  <bruno@clisp.org>
58830
58831         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
58832
58833 2007-08-23  Simon Josefsson  <simon@josefsson.org>
58834
58835         * lib/readline.c: Don't include getline.h, the prototype is now
58836         found in stdio.h.
58837
58838 2007-08-23  Jim Meyering  <jim@meyering.net>
58839
58840         Getdelim touchup.
58841         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
58842         around the funlockfile call, since funlockfile never sets errno.
58843         Don't set errno upon failed realloc.
58844
58845 2007-08-22  Eric Blake  <ebb9@byu.net>
58846
58847         Getline touchups.
58848         * lib/getdelim.c (getdelim): Revert regression that required *n to
58849         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
58850         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
58851         getdelim, rather than whether implementation is missing.
58852         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
58853         * lib/stdio_.h (getline): Also declare if replacement is
58854         required.
58855         * doc/functions/getdelim.texi: New file.
58856         * doc/functions/getline.texi: Likewise.
58857         * doc/gnulib.texi (Function Substitutes): Add new files.
58858         Reported by Bruno Haible.
58859
58860 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
58861
58862         * users.txt: Add Guile.
58863
58864 2007-08-22  Eric Blake  <ebb9@byu.net>
58865
58866         * tests/test-getdelim.c (main): Use remove, not unlink.
58867         * tests/test-getline.c (main): Likewise.
58868
58869         Move getline and getdelim into stdio.h, per POSIX 200x.
58870         * modules/getline (Files): Remove getline.h.
58871         (Depends-on): Add stdio.
58872         (configure.ac): Add module indicator.
58873         * modules/getdelim (Files): Remove getdelim.h.
58874         (Depends-on): Add stdio.
58875         (configure.ac): Add module indicator.
58876         * modules/stdio (Makefile.am): Work with new indicators.
58877         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58878         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
58879         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58880         * lib/getdelim.h: Delete.
58881         * lib/getline.h: Delete.
58882         * lib/stdio_.h (getdelim, getline): Declare.
58883         * modules/getdelim-tests: New module.
58884         * modules/getline-tests: Likewise.
58885         * tests/test-getdelim.c: New file.
58886         * tests/test-getline.c: Likewise.
58887         * NEWS: Document the change.
58888         * lib/getline.c: Update choice of header.
58889         * lib/csharpcomp.c: Likewise.
58890         * lib/getpass.c: Likewise.
58891         * lib/javacomp.c: Likewise.
58892         * lib/javaversion.c: Likewise.
58893         * lib/yesno.c: Likewise.
58894         * lib/getdelim.c: Likewise.
58895         (getdelim): Set errno on failure, and avoid memory leak.
58896
58897 2007-08-19  Bruno Haible  <bruno@clisp.org>
58898
58899         * modules/closein (Depends-on): Add freadahead.
58900         * lib/closein.c: Include freadahead.h.
58901         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
58902         is zero.
58903
58904 2007-08-19  Bruno Haible  <bruno@clisp.org>
58905
58906         * modules/freadahead-tests: New file.
58907         * tests/test-freadahead.sh: New file.
58908         * tests/test-freadahead.c: New file.
58909
58910         * modules/freadahead: New file.
58911         * lib/freadahead.h: New file.
58912         * lib/freadahead.c: New file.
58913         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
58914         fbufmode, fpurge, freadable, fwritable.
58915
58916 2007-08-19  Eric Blake  <ebb9@byu.net>
58917
58918         Test yesno in combination with closein.
58919         * lib/yesno.c (yesno): Document use of stdin.
58920         * modules/yesno-tests (Files): New module.
58921         * tests/test-yesno.c (main): New file.
58922         * tests/test-yesno.sh: Likewise.
58923
58924 2007-08-19  Bruno Haible  <bruno@clisp.org>
58925
58926         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
58927         * lib/fseeko.c (rpl_fseeko): Likewise.
58928         * lib/fseterr.c (fseterr): Likewise.
58929
58930 2007-08-19  Bruno Haible  <bruno@clisp.org>
58931
58932         * tests/test-lseek.c (main): Disable a test for BeOS.
58933         * doc/functions/lseek.texi: Document the BeOS bug.
58934
58935 2007-08-19  Bruno Haible  <bruno@clisp.org>
58936             Eric Blake  <ebb9@byu.net>
58937
58938         * lib/lseek.c: Include <sys/stat.h>.
58939         (rpl_lseek): Add workaround code also for Unix platforms.
58940         Needed for BeOS.
58941         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
58942         * doc/functions/lseek.texi: Document BeOS definiency.
58943
58944 2007-08-18  Bruno Haible  <bruno@clisp.org>
58945
58946         * modules/fstrcmp-tests: New file.
58947         * tests/test-fstrcmp.c: New file.
58948
58949 2007-08-18  Bruno Haible  <bruno@clisp.org>
58950
58951         * modules/fstrcmp: New file, from GNU gettext with modifications.
58952         * lib/fstrcmp.h: New file, from GNU gettext.
58953         * lib/fstrcmp.c: New file, from GNU gettext.
58954         * MODULES.html.sh (String handling): Add fstrcmp.
58955
58956 2007-08-18  Bruno Haible  <bruno@clisp.org>
58957
58958         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
58959         'bool'.
58960         (diag, compareseq): Remove const from the ctxt argument.
58961         (USE_HEURISTIC): Undefine at the end.
58962
58963 2007-08-18  Jim Meyering  <jim@meyering.net>
58964
58965         New file: lib/idcache.h
58966         * NEWS: Mention the addition.
58967         * modules/idcache (Files): Add lib/idcache.h
58968         * lib/idcache.c: Include "idcache.h".
58969         Don't include <sys/types.h>.
58970         Add a FIXME comment.
58971         Move file-scoped "static" declarations to the top.
58972         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
58973
58974 2007-08-17  Bruno Haible  <bruno@clisp.org>
58975         and Paul Eggert  <eggert@cs.ucla.edu>
58976
58977         * MODULES.html.sh: Add diffseq.
58978         * modules/diffseq: New file.
58979         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
58980         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
58981
58982 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58983
58984         Import changes from coreutils for bootstrap script.
58985
58986         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
58987
58988         * build-aux/bootstrap (slurp): Work even in environments where
58989         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
58990         current code does not slurp files whose names start with ".", and
58991         this looks like it might be a troublesome area.
58992
58993         2007-07-11  Jim Meyering  <jim@meyering.net>
58994
58995         If there's a GPL vN copyright comment, require that N == 3.
58996
58997         2007-07-08  Jim Meyering  <jim@meyering.net>
58998
58999         Run the coreutils-specific code only if tests/Makefile.am.in exists.
59000         * build-aux/bootstrap (mam_template): Move definition out of loop.
59001
59002         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
59003
59004         * build-aux/bootstrap (symlink_to_dir): Rename function from
59005         symlink_to_gnulib.  Add a directory parameter.  Update all
59006         callers.
59007         (cp_mark_as_generated): Also check for -- and link to -- files in
59008         gl/.
59009
59010         2007-07-08  Jim Meyering  <jim@meyering.net>
59011
59012         Adapt to deeper hierarchy in gnulib.
59013         * build-aux/bootstrap (symlink_to_dir): If the destination
59014         directory doesn't exist, create it. This is required at least for
59015         "lib/uniwidth/cjk.h".
59016
59017         2007-05-15  Jim Meyering  <jim@meyering.net>
59018
59019         * build-aux/bootstrap: Now that generated Makefile.am files
59020         are no longer under version control, they must be created at
59021         bootstrap time.
59022
59023 2007-08-14  Ben Pfaff  <blp@gnu.org>
59024
59025         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
59026
59027 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59028
59029         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
59030         given the changes below.
59031         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
59032         even on hosts that have padding bits beyond the supported 64.
59033
59034 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59035
59036         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
59037         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
59038         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
59039         depends on it.
59040         (xstrtol_error): Remove.
59041         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
59042         but with a different signature.
59043         (ATTRIBUTE_NORETURN, __attribute__): New macros.
59044         * lib/xstrtol-error.c: Include exitfail.h.
59045         (xstrtol_fatal): New function, with a different signature from the
59046         old xstrtol_error, so that the caller need not worry about passing
59047         in an exit status, or about storage management of the option argument.
59048         (xstrtol_error): Now a static function.  Redo signature to
59049         implement xstrtol_fatal.  Output the correct number of hyphens in
59050         front of the option so that the caller need not worry about
59051         storage management.
59052         (N_): New macro.
59053         (_): Remove; not used now.
59054         * modules/xstrtol: Depend on getopt.
59055         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
59056         of old STRTOL_FATAL_ERROR macro.
59057         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
59058         of test program.
59059         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
59060         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
59061
59062 2007-08-08  Eric Blake  <ebb9@byu.net>
59063
59064         * lib/xstrtol-error.c: Add missing include.
59065
59066         Move xstrtol messages into gnulib domain, when --pobase is used.
59067         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
59068         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
59069         * modules/xstrtol (Files): Distribute new file.
59070         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
59071         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
59072         * tests/test-xstrtol.c: ...into new file.
59073         * tests/test-xstrtoul.c: Also test xstrtoul.
59074         * tests/test-xstrtoimax.c: Also test xstrtoimax.
59075         * tests/test-xstrtoumax.c: Also test xstrtoumax.
59076         * tests/test-xstrtol.sh: Drive the tests.
59077         * tests/test-xstrtoimax.sh: Likewise.
59078         * tests/test-xstrtoumax.sh: Likewise.
59079         * modules/xstrtol-tests: New module.
59080         * modules/xstrtoimax-tests: Likewise.
59081         * modules/xstrtoumax-tests: Likewise.
59082
59083 2007-08-08  Jim Meyering  <jim@meyering.net>
59084
59085         New function: mfile_name_concat.
59086         * lib/filenamecat.c (mfile_name_concat): New function, just like
59087         file_name_concat, but return NULL upon failure rather than exiting
59088         with a diagnostic.
59089         * lib/filenamecat.h: Declare it.
59090
59091 2007-08-07  Bruno Haible  <bruno@clisp.org>
59092
59093         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
59094         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
59095         warning from gcc.
59096         Reported by Eric Blake.
59097
59098 2007-08-07  Simon Josefsson  <simon@josefsson.org>
59099
59100         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
59101         * modules/crypto/arcfour (License): Likewise.
59102         * modules/crypto/des-tests (License): Likewise.
59103         * modules/crypto/gc-arctwo-tests (License): Likewise.
59104         * modules/crypto/gc-des-tests (License): Likewise.
59105         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
59106         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
59107         * modules/crypto/gc-md2-tests (License): Likewise.
59108         * modules/crypto/gc-md4-tests (License): Likewise.
59109         * modules/crypto/gc-md5-tests (License): Likewise.
59110         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
59111         * modules/crypto/gc-rijndael-tests (License): Likewise.
59112         * modules/crypto/gc-sha1-tests (License): Likewise.
59113         * modules/crypto/gc-tests (License): Likewise.
59114         * modules/crypto/hmac-md5 (License): Likewise.
59115         * modules/crypto/hmac-sha1 (License): Likewise.
59116         * modules/crypto/md2-tests (License): Likewise.
59117         * modules/crypto/md4-tests (License): Likewise.
59118         * modules/crypto/md5 (License): Likewise.
59119         * modules/crypto/rijndael (License): Likewise.
59120         * modules/crypto/sha1 (License): Likewise.
59121         * modules/memxor (License): Likewise.
59122
59123 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59124         and Bruno Haible  <bruno@clisp.org>
59125
59126         * NEWS: Describe interface changes to human, xstrtol.
59127         * lib/human.h: Include <xstrtol.h>.
59128         (human_options): Return enum strtol_error, not int.  Remove
59129         bool arg; take int * instead.
59130         * lib/human.c: Don't include "gettext.h".
59131         (_): Remove; no longer used.
59132         Don't include <xstrtol.h>, since human.h does it.
59133         (human_options): Adjust to abovementioned interface changes.
59134         Do not report error to stderr; that's now the caller's
59135         responsibility.
59136         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
59137         interface change.
59138         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
59139         Str, Argument_type_string.  All uses changed.  Put " argument"
59140         in diagnostics to make them clearer.  Change wording of suffix
59141         message for clarity.
59142         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
59143         Argument_type_string.
59144         (STRTOL_FATAL_WARN): Remove; no longer used.
59145         * modules/human (Depends-on): Remove gettext-h.
59146
59147 2007-08-06  Simon Josefsson  <simon@josefsson.org>
59148
59149         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
59150
59151 2007-07-31  Bruno Haible  <bruno@clisp.org>
59152
59153         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
59154         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
59155         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
59156
59157 2007-07-31  Bruno Haible  <bruno@clisp.org>
59158
59159         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
59160         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
59161
59162 2007-07-30  Bruno Haible  <bruno@clisp.org>
59163
59164         * modules/base64 (License): Use the synonymous term "LGPLv2+".
59165         * modules/c-ctype (License): Likewise.
59166         * modules/c-strcase (License): Likewise.
59167         * modules/check-version (License): Likewise.
59168         * modules/iconv (License): Likewise.
59169         * modules/iconv_open (License): Likewise.
59170         * modules/read-file (License): Likewise.
59171         * modules/striconv (License): Likewise.
59172         * modules/strverscmp (License): Likewise.
59173         * modules/vasprintf (License): Likewise.
59174         * modules/crypto/des (License): Likewise.
59175         * modules/crypto/gc (License): Likewise.
59176         * modules/crypto/gc-arcfour (License): Likewise.
59177         * modules/crypto/gc-arctwo (License): Likewise.
59178         * modules/crypto/gc-des (License): Likewise.
59179         * modules/crypto/gc-hmac-md5 (License): Likewise.
59180         * modules/crypto/gc-hmac-sha1 (License): Likewise.
59181         * modules/crypto/gc-md2 (License): Likewise.
59182         * modules/crypto/gc-md4 (License): Likewise.
59183         * modules/crypto/gc-md5 (License): Likewise.
59184         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
59185         * modules/crypto/gc-random (License): Likewise.
59186         * modules/crypto/gc-rijndael (License): Likewise.
59187         * modules/crypto/gc-sha1 (License): Likewise.
59188         * modules/crypto/md2 (License): Likewise.
59189         * modules/crypto/md4 (License): Likewise.
59190
59191 2007-07-30  Jim Meyering  <jim@meyering.net>
59192
59193         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
59194         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
59195         it has valid stat data.  This bug would cause du not to count the
59196         sizes of inaccessible directories.
59197         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
59198         in <http://bugzilla.redhat.com/250077>.
59199
59200 2007-07-25  Peter O'Gorman  <peter@pogma.com>
59201             Bruno Haible  <bruno@clisp.org>
59202
59203         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
59204         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
59205         #include_next, gives a diagnostic about it, but reports no error in
59206         the exit code.
59207         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
59208
59209 2007-07-24  Ben Pfaff  <blp@gnu.org>
59210
59211         Improve name: "count-one-bits" is better than "popcount".
59212         * MODULES.html.sh: Update name.
59213         * lib/popcount.h: Renamed lib/count-one-bits.h.
59214         (popcount): Renamed count_one_bits.
59215         (popcountl): Renamed count_one_bits_l.
59216         (popcountll): Renamed count_one_bits_ll.
59217         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
59218         * modules/popcount: Renamed module/count-one-bits.
59219         * modules/popcount-tests: Renamed module/count-one-bits-tests.
59220         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
59221
59222 2007-07-23  Ben Pfaff  <blp@gnu.org>
59223
59224         * lib/popcount.h (popcount32): Reduce size of constants, to allow
59225         better code generation, and add U to large constants to avoid
59226         warnings, in non-GCC case.
59227         Suggested by Bruno Haible.
59228
59229 2007-07-23  Ben Pfaff  <blp@gnu.org>
59230
59231         * lib/popcount.h: Use verify_true instead of if...abort.
59232         * modules/popcount: Depend on verify module.
59233         Suggested by Jim Meyering.
59234
59235 2007-07-23  Bruno Haible  <bruno@clisp.org>
59236
59237         * gnulib-tool (func_import): Create a .cvsignore file also when the
59238         directory is not yet in CVS but the toplevel directory is. When
59239         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
59240         Reported by Karl Berry.
59241
59242 2007-07-22  Ben Pfaff  <blp@gnu.org>
59243
59244         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
59245         case.
59246         Suggested by Eric Blake.
59247
59248 2007-07-22  Ben Pfaff  <blp@gnu.org>
59249
59250         New module: popcount.
59251         * MODULES.html.sh: Add popcount.
59252         * modules/popcount: New file.
59253         * modules/popcount-tests: New file.
59254         * tests/test-popcount.c: New file.
59255         * lib/popcount.h: New file.
59256         * m4/popcount.m4: New file.
59257
59258 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59259
59260         * build-aux/announce-gen: Update to GPLv3.
59261
59262         * build-aux/config.guess: Update from config.
59263
59264 2007-07-21  Bruno Haible  <bruno@clisp.org>
59265
59266         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
59267         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
59268
59269 2007-07-20  Jim Meyering  <jim@meyering.net>
59270
59271         * check-module: Diagnose a self-dependency.
59272
59273 2007-07-19  Bruno Haible  <bruno@clisp.org>
59274
59275         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
59276         empty.
59277         Reported by Eric Blake.
59278
59279 2007-07-18  Bruno Haible  <bruno@clisp.org>
59280
59281         * gnulib-tool: New options --po-base, --po-domain.
59282         (func_usage): Document them.
59283         (pobase, po_domain): New variables.
59284         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
59285         DEFAULT_TEXT_DOMAIN.
59286         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
59287         (func_import): Consider pobase and po_domain. Create a po/ directory.
59288         (func_create_testdir): Set pobase and po_domain to empty.
59289         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
59290         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
59291
59292 2007-07-18  Bruno Haible  <bruno@clisp.org>
59293
59294         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59295         EXTRA_DIST augmentation for files in build-aux/.
59296
59297 2007-07-16  Bruno Haible  <bruno@clisp.org>
59298
59299         * modules/lseek (License): Use the synonymous term "LGPLv2+".
59300         * modules/getdelim (License): Likewise.
59301
59302 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59303
59304         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
59305         * modules/d-type (License): Likewise.
59306         * modules/extensions (License): Likewise.
59307         * modules/fnmatch (License): Likewise.
59308         * modules/fseeko (License): Likewise.
59309         * modules/getaddrinfo (License): Likewise.
59310         * modules/getline (License): Likewise.
59311         * modules/getlogin_r (License): Likewise.
59312         * modules/getpass (License): Likewise.
59313         * modules/gettimeofday (License): Likewise.
59314         * modules/glob (License): Likewise.
59315         * modules/inet_ntop (License): Likewise.
59316         * modules/malloc (License): Likewise.
59317         * modules/malloca (License): Likewise.
59318         * modules/memmem (License): Likewise.
59319         * modules/mempcpy (License): Likewise.
59320         * modules/memset (License): Likewise.
59321         * modules/minmax (License): Likewise.
59322         * modules/mktime (License): Likewise.
59323         * modules/netinet_in (License): Likewise.
59324         * modules/pathmax (License): Likewise.
59325         * modules/poll (License): Likewise.
59326         * modules/regex (License): Likewise.
59327         * modules/snprintf (License): Likewise.
59328         * modules/stdbool (License): Likewise.
59329         * modules/stdint (License): Likewise.
59330         * modules/stdio (License): Likewise.
59331         * modules/strcase (License): Likewise.
59332         * modules/strcasestr (License): Likewise.
59333         * modules/strdup (License): Likewise.
59334         * modules/string (License): Likewise.
59335         * modules/strndup (License): Likewise.
59336         * modules/strnlen (License): Likewise.
59337         * modules/strpbrk (License): Likewise.
59338         * modules/strptime (License): Likewise.
59339         * modules/strsep (License): Likewise.
59340         * modules/sys_select (License): Likewise.
59341         * modules/sys_socket (License): Likewise.
59342         * modules/sys_stat (License): Likewise.
59343         * modules/sys_time (License): Likewise.
59344         * modules/time (License): Likewise.
59345         * modules/time_r (License): Likewise.
59346         * modules/timegm (License): Likewise.
59347         * modules/unistd (License): Likewise.
59348         * modules/vsnprintf (License): Likewise.
59349         * modules/wctype (License): Likewise.
59350
59351 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59352
59353         * modules/argz (License): LGPLv2+.
59354
59355 2007-07-15  Karl Berry  <karl@gnu.org>
59356
59357         * doc/gnulib.texi: revise node structure per new fdl.texi.
59358
59359 2007-07-14  Bruno Haible  <bruno@clisp.org>
59360
59361         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
59362         the output file.
59363         * lib/uniname/uninames.h: Regenerated.
59364
59365 2007-07-14  Karl Berry  <karl@gnu.org>
59366
59367         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
59368         omitting sectioning and index commands.
59369
59370 2007-07-13  Bruno Haible  <bruno@clisp.org>
59371
59372         New gnulib-tool option --more-symlinks.
59373         * gnulib-tool (func_usage): Document --more-symlinks.
59374         (do_copyrights): New variable.
59375         Recognize option --more-symlinks.
59376         (func_import): Don't add a copyright notice transform to
59377         sed_transform_lib_file if do_copyrights is empty.
59378
59379 2007-07-13  Bruno Haible  <bruno@clisp.org>
59380
59381         * lib/vasnprintf.c (decimal_point_char): Define also if
59382         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
59383         && !NEED_PRINTF_DIRECTIVE_A.
59384         Reported by Clemens Koller <clemens.koller@anagramm.de> via
59385         Gary V. Vaughan <gary@gnu.org>.
59386
59387 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
59388
59389         * lib/inttypes_.h: Undo previous change, since it was fixed
59390         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
59391
59392 2007-07-13  Bruno Haible  <bruno@clisp.org>
59393
59394         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
59395         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
59396
59397 2007-07-13  Jim Meyering  <jim@meyering.net>
59398
59399         df: Don't fail for Tru64's "file-on-file mount".
59400         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
59401         so we fall through and use statfs instead.  Details here:
59402         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
59403         Reported by Albert Chin.
59404
59405 2007-07-13  Bruno Haible  <bruno@clisp.org>
59406
59407         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
59408         * modules/configmake (License): Likewise.
59409         * modules/gettext (License): Likewise.
59410         * modules/gettext-h (License): Likewise.
59411         * modules/include_next (License): Likewise.
59412         * modules/link-warning (License): Likewise.
59413         * modules/localcharset (License): Likewise.
59414         * modules/localename (License): Likewise.
59415         * modules/lock (License): Likewise.
59416         * modules/relocatable-lib-lgpl (License): Likewise.
59417         * modules/size_max (License): Likewise.
59418         * modules/vasnprintf (License): Likewise.
59419         * modules/wchar (License): Likewise.
59420         * modules/xsize (License): Likewise.
59421
59422 2007-07-13  Bruno Haible  <bruno@clisp.org>
59423
59424         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
59425         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
59426
59427 2007-07-12  Bruno Haible  <bruno@clisp.org>
59428
59429         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
59430         in the modules files.
59431
59432 2007-07-11  Karl Berry  <karl@gnu.org>
59433
59434         * MODULES.html.sh (func_module): use
59435          sed -e '\|^'"${includefile}"'$|d'
59436          instead of /.../d, to avoid errors on $includefile's containing /.
59437
59438 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59439
59440         * gnulib-tool (func_import): Avoid duplication of --avoid
59441         statements
59442         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
59443         names to `_' in variable names.
59444
59445 2007-07-10  Eric Blake  <ebb9@byu.net>
59446
59447         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
59448         * NEWS: Document this change.
59449
59450 2007-07-08  Bruno Haible  <bruno@clisp.org>
59451
59452         Update to Unicode 5.0.
59453         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
59454         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
59455         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
59456         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
59457         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
59458         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
59459         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
59460         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
59461         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
59462         U+10A3F, U+1D242..U+1D244.
59463         (nonspacing_table_ind): Update.
59464         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
59465         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
59466
59467 2007-07-08  Bruno Haible  <bruno@clisp.org>
59468
59469         Update to Unicode 5.0.
59470         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
59471         code transform. Extend the name index field of unicode_name_to_code and
59472         unicode_code_to_name from 16 to 24 bits.
59473         * lib/uniname/uniname.c (unicode_character_name,
59474         unicode_name_character): Add the range 0x12xxx to the code transform.
59475         * lib/uniname/uninames.h: Regenerated.
59476         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
59477
59478 2007-07-07  Bruno Haible  <bruno@clisp.org>
59479
59480         * modules/wcwidth-tests: New file.
59481         * tests/test-wcwidth.c: New file.
59482
59483         Work around MacOS X wcwidth() bug.
59484         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
59485         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
59486         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
59487         original wcwidth in non-UTF-8 locales.
59488         * modules/wcwidth (Depends-on): Add localcharset, streq,
59489         uniwidth/width.
59490         * doc/functions/wcwidth.texi: Update.
59491
59492 2007-07-07  Bruno Haible  <bruno@clisp.org>
59493
59494         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
59495         (wcwidth): New declaration.
59496         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
59497         macros.
59498         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
59499         here. Prepare for creating <wchar.h> unconditionally.
59500         * modules/wchar (Depends-on): Add link-warning.
59501         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
59502         REPLACE_WCWIDTH, and GL_LINK_WARNING.
59503         * lib/wcwidth.h: Remove file.
59504         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
59505         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
59506         * modules/wcwidth (Files): Remove lib/wcwidth.h.
59507         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
59508         (Include): Replace wcwidth.h with <wchar.h>.
59509         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
59510         * lib/mbchar.h: Don't include wcwidth.h.
59511         * lib/mbswidth.c: Likewise.
59512         * NEWS: Mention the change.
59513
59514 2007-07-07  Bruno Haible  <bruno@clisp.org>
59515
59516         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
59517         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
59518         definition with an external declaration.
59519         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
59520         defined as a function. Remove AC_C_INLINE requirement.
59521         * modules/wcwidth (Files): Add lib/wcwidth.c.
59522         (Makefile.am): Remove redundant statement.
59523
59524 2007-07-07  Bruno Haible  <bruno@clisp.org>
59525
59526         * MODULES.html.sh (Unicode string functions): Add the new modules.
59527
59528         * tests/uniwidth/test-u32-strwidth.c: New file.
59529         * modules/uniwidth/u32-strwidth-tests: New file.
59530
59531         * lib/uniwidth/u32-strwidth.c: New file.
59532         * modules/uniwidth/u32-strwidth: New file.
59533
59534         * tests/uniwidth/test-u16-strwidth.c: New file.
59535         * modules/uniwidth/u16-strwidth-tests: New file.
59536
59537         * lib/uniwidth/u16-strwidth.c: New file.
59538         * modules/uniwidth/u16-strwidth: New file.
59539
59540         * tests/uniwidth/test-u8-strwidth.c: New file.
59541         * modules/uniwidth/u8-strwidth-tests: New file.
59542
59543         * lib/uniwidth/u8-strwidth.c: New file.
59544         * modules/uniwidth/u8-strwidth: New file.
59545
59546         * tests/uniwidth/test-u32-width.c: New file.
59547         * modules/uniwidth/u32-width-tests: New file.
59548
59549         * lib/uniwidth/u32-width.c: New file.
59550         * modules/uniwidth/u32-width: New file.
59551
59552         * tests/uniwidth/test-u16-width.c: New file.
59553         * modules/uniwidth/u16-width-tests: New file.
59554
59555         * lib/uniwidth/u16-width.c: New file.
59556         * modules/uniwidth/u16-width: New file.
59557
59558         * tests/uniwidth/test-u8-width.c: New file.
59559         * modules/uniwidth/u8-width-tests: New file.
59560
59561         * lib/uniwidth/u8-width.c: New file.
59562         * modules/uniwidth/u8-width: New file.
59563
59564         * tests/uniwidth/test-uc_width.c: New file.
59565         * modules/uniwidth/width-tests: New file.
59566
59567         * lib/uniwidth/width.c: New file, from GNU libiconv.
59568         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
59569         * modules/uniwidth/width: New file.
59570
59571         * lib/uniwidth.h: New file, from GNU libiconv.
59572         * modules/uniwidth/base: New file.
59573
59574 2007-07-07  Bruno Haible  <bruno@clisp.org>
59575
59576         * lib/uniname.h: New file, from GNU gettext.
59577         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
59578         * lib/uniname/uninames.h: New file, from GNU gettext.
59579         * lib/uniname/uniname.c: New file, from GNU gettext.
59580         * tests/uniname/test-uninames.sh: New file.
59581         * tests/uniname/test-uninames.c: New file, from GNU gettext.
59582         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
59583         * modules/uniname/base: New file.
59584         * modules/uniname/uniname: New file.
59585         * modules/uniname/uniname-tests: New file.
59586         * MODULES.html.sh (Unicode string functions): Add the new modules.
59587
59588 2007-07-06  Bruno Haible  <bruno@clisp.org>
59589
59590         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
59591
59592 2007-07-06  Bruno Haible  <bruno@clisp.org>
59593
59594         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
59595         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
59596         includes <cygwin/sys_time.h> which includes <sys/select.h> which
59597         include <sys/time.h>.
59598         Reported by Eric Blake.
59599
59600 2007-07-06  Eric Blake  <ebb9@byu.net>
59601
59602         Fix testing canonicalize on cygwin.
59603         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59604         Revert patch from 2007-06-19.
59605         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
59606         canonicalize module is also in use.
59607         * tests/test-canonicalize.c: New file.
59608         * tests/test-canonicalize.sh: Likewise.
59609         * modules/canonicalize-tests: Likewise.
59610
59611 2007-07-06  Jim Meyering  <jim@meyering.net>
59612
59613         * lib/getugroups.c (getugroups): Detect getgrent failure.
59614         Adjust comment to reflect reality: this function may return -1.
59615
59616 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
59617
59618         * build-aux/bootstrap (TP_URL,get_translations): Update to use
59619         the new TP address.
59620         (usage): Fix typo
59621         (gnulib_mk): New variable.
59622
59623 2007-07-05  Jim Meyering  <jim@meyering.net>
59624
59625         Don't let endgrent clobber errno, no matter how improbable.
59626         * lib/getugroups.c (getugroups): Save and restore errno around
59627         endgrent call.
59628
59629         Close the group DB even when failing with 2^31 or more members.
59630         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
59631
59632 2007-07-04  Jim Meyering  <jim@meyering.net>
59633
59634         * lib/getugroups.h: New file.
59635         * lib/getugroups.c: Include "getugroups.h".
59636         Remove uses of "register" keyword.
59637         Move local variable, "cp", down into scope where used.
59638         Give "username" parameter the "const" attribute.
59639         * modules/getugroups (Files): Add lib/getugroups.h
59640
59641 2007-07-04  Karl Berry  <karl@gnu.org>
59642
59643         * MODULES.html.sh (func_all_modules): Complete rename of
59644         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
59645
59646 2007-07-02  Bruno Haible  <bruno@clisp.org>
59647
59648         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
59649         mode, when inttypes.h comes from gnulib.
59650         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59651
59652 2007-07-02  Simon Josefsson  <simon@josefsson.org>
59653
59654         * NEWS: Mention lgpl module name change.
59655
59656         * modules/lgpl-2.1: Renamed from lgpl.
59657
59658         * NEWS: Mention gpl module name change.
59659
59660         * modules/gpl-3.0: New file, based on gpl-2.0.
59661
59662         * modules/gpl-2.0: Renamed from gpl.
59663
59664         * modules/gpl: Fix filename, doc/gpl.texi is now found at
59665         doc/gpl-2.0.texi.
59666
59667 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59668
59669         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
59670         #define __STDC_LIMIT_MACROS temporarily while including
59671         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
59672         Problem reported by Joel E. Denny in
59673         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
59674
59675 2007-07-01  Bruno Haible  <bruno@clisp.org>
59676
59677         * lib/unistdio.h: New file.
59678         * lib/unistdio/u-asnprintf.h: New file.
59679         * lib/unistdio/u-asprintf.h: New file.
59680         * lib/unistdio/u-printf-args.c: New file.
59681         * lib/unistdio/u-printf-args.h: New file.
59682         * lib/unistdio/u-printf-parse.h: New file.
59683         * lib/unistdio/u-snprintf.h: New file.
59684         * lib/unistdio/u-sprintf.h: New file.
59685         * lib/unistdio/u-vasprintf.h: New file.
59686         * lib/unistdio/u-vsnprintf.h: New file.
59687         * lib/unistdio/u-vsprintf.h: New file.
59688         * lib/unistdio/ulc-asnprintf.c: New file.
59689         * lib/unistdio/ulc-asprintf.c: New file.
59690         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
59691         * lib/unistdio/ulc-printf-parse.c: New file.
59692         * lib/unistdio/ulc-snprintf.c: New file.
59693         * lib/unistdio/ulc-sprintf.c: New file.
59694         * lib/unistdio/ulc-vasnprintf.c: New file.
59695         * lib/unistdio/ulc-vasprintf.c: New file.
59696         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
59697         * lib/unistdio/ulc-vsnprintf.c: New file.
59698         * lib/unistdio/ulc-vsprintf.c: New file.
59699         * lib/unistdio/u8-asnprintf.c: New file.
59700         * lib/unistdio/u8-asprintf.c: New file.
59701         * lib/unistdio/u8-printf-parse.c: New file.
59702         * lib/unistdio/u8-snprintf.c: New file.
59703         * lib/unistdio/u8-sprintf.c: New file.
59704         * lib/unistdio/u8-vasnprintf.c: New file.
59705         * lib/unistdio/u8-vasprintf.c: New file.
59706         * lib/unistdio/u8-vsnprintf.c: New file.
59707         * lib/unistdio/u8-vsprintf.c: New file.
59708         * lib/unistdio/u8-u8-asnprintf.c: New file.
59709         * lib/unistdio/u8-u8-asprintf.c: New file.
59710         * lib/unistdio/u8-u8-snprintf.c: New file.
59711         * lib/unistdio/u8-u8-sprintf.c: New file.
59712         * lib/unistdio/u8-u8-vasnprintf.c: New file.
59713         * lib/unistdio/u8-u8-vasprintf.c: New file.
59714         * lib/unistdio/u8-u8-vsnprintf.c: New file.
59715         * lib/unistdio/u8-u8-vsprintf.c: New file.
59716         * lib/unistdio/u16-asnprintf.c: New file.
59717         * lib/unistdio/u16-asprintf.c: New file.
59718         * lib/unistdio/u16-printf-parse.c: New file.
59719         * lib/unistdio/u16-snprintf.c: New file.
59720         * lib/unistdio/u16-sprintf.c: New file.
59721         * lib/unistdio/u16-vasnprintf.c: New file.
59722         * lib/unistdio/u16-vasprintf.c: New file.
59723         * lib/unistdio/u16-vsnprintf.c: New file.
59724         * lib/unistdio/u16-vsprintf.c: New file.
59725         * lib/unistdio/u16-u16-asnprintf.c: New file.
59726         * lib/unistdio/u16-u16-asprintf.c: New file.
59727         * lib/unistdio/u16-u16-snprintf.c: New file.
59728         * lib/unistdio/u16-u16-sprintf.c: New file.
59729         * lib/unistdio/u16-u16-vasnprintf.c: New file.
59730         * lib/unistdio/u16-u16-vasprintf.c: New file.
59731         * lib/unistdio/u16-u16-vsnprintf.c: New file.
59732         * lib/unistdio/u16-u16-vsprintf.c: New file.
59733         * lib/unistdio/u32-asnprintf.c: New file.
59734         * lib/unistdio/u32-asprintf.c: New file.
59735         * lib/unistdio/u32-printf-parse.c: New file.
59736         * lib/unistdio/u32-snprintf.c: New file.
59737         * lib/unistdio/u32-sprintf.c: New file.
59738         * lib/unistdio/u32-vasnprintf.c: New file.
59739         * lib/unistdio/u32-vasprintf.c: New file.
59740         * lib/unistdio/u32-vsnprintf.c: New file.
59741         * lib/unistdio/u32-vsprintf.c: New file.
59742         * lib/unistdio/u32-u32-asnprintf.c: New file.
59743         * lib/unistdio/u32-u32-asprintf.c: New file.
59744         * lib/unistdio/u32-u32-snprintf.c: New file.
59745         * lib/unistdio/u32-u32-sprintf.c: New file.
59746         * lib/unistdio/u32-u32-vasnprintf.c: New file.
59747         * lib/unistdio/u32-u32-vasprintf.c: New file.
59748         * lib/unistdio/u32-u32-vsnprintf.c: New file.
59749         * lib/unistdio/u32-u32-vsprintf.c: New file.
59750         * tests/unistdio/test-ulc-asnprintf1.c: New file.
59751         * tests/unistdio/test-ulc-asnprintf1.h: New file.
59752         * tests/unistdio/test-ulc-printf1.h: New file.
59753         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
59754         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
59755         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
59756         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
59757         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
59758         * tests/unistdio/test-ulc-vasprintf1.c: New file.
59759         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
59760         * tests/unistdio/test-ulc-vsprintf1.c: New file.
59761         * tests/unistdio/test-u8-asnprintf1.c: New file.
59762         * tests/unistdio/test-u8-asnprintf1.h: New file.
59763         * tests/unistdio/test-u8-printf1.h: New file.
59764         * tests/unistdio/test-u8-vasnprintf1.c: New file.
59765         * tests/unistdio/test-u8-vasnprintf2.c: New file.
59766         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
59767         * tests/unistdio/test-u8-vasnprintf3.c: New file.
59768         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
59769         * tests/unistdio/test-u8-vasprintf1.c: New file.
59770         * tests/unistdio/test-u8-vsnprintf1.c: New file.
59771         * tests/unistdio/test-u8-vsprintf1.c: New file.
59772         * tests/unistdio/test-u16-asnprintf1.c: New file.
59773         * tests/unistdio/test-u16-asnprintf1.h: New file.
59774         * tests/unistdio/test-u16-printf1.h: New file.
59775         * tests/unistdio/test-u16-vasnprintf1.c: New file.
59776         * tests/unistdio/test-u16-vasnprintf2.c: New file.
59777         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
59778         * tests/unistdio/test-u16-vasnprintf3.c: New file.
59779         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
59780         * tests/unistdio/test-u16-vasprintf1.c: New file.
59781         * tests/unistdio/test-u16-vsnprintf1.c: New file.
59782         * tests/unistdio/test-u16-vsprintf1.c: New file.
59783         * tests/unistdio/test-u32-asnprintf1.c: New file.
59784         * tests/unistdio/test-u32-asnprintf1.h: New file.
59785         * tests/unistdio/test-u32-printf1.h: New file.
59786         * tests/unistdio/test-u32-vasnprintf1.c: New file.
59787         * tests/unistdio/test-u32-vasnprintf2.c: New file.
59788         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
59789         * tests/unistdio/test-u32-vasnprintf3.c: New file.
59790         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
59791         * tests/unistdio/test-u32-vasprintf1.c: New file.
59792         * tests/unistdio/test-u32-vsnprintf1.c: New file.
59793         * tests/unistdio/test-u32-vsprintf1.c: New file.
59794         * modules/unistdio/base: New file.
59795         * modules/unistdio/u-printf-args: New file.
59796         * modules/unistdio/ulc-asnprintf: New file.
59797         * modules/unistdio/ulc-asprintf: New file.
59798         * modules/unistdio/ulc-fprintf: New file.
59799         * modules/unistdio/ulc-printf-parse: New file.
59800         * modules/unistdio/ulc-snprintf: New file.
59801         * modules/unistdio/ulc-sprintf: New file.
59802         * modules/unistdio/ulc-vasnprintf: New file.
59803         * modules/unistdio/ulc-vasprintf: New file.
59804         * modules/unistdio/ulc-vfprintf: New file.
59805         * modules/unistdio/ulc-vsnprintf: New file.
59806         * modules/unistdio/ulc-vsprintf: New file.
59807         * modules/unistdio/u8-asnprintf: New file.
59808         * modules/unistdio/u8-asprintf: New file.
59809         * modules/unistdio/u8-printf-parse: New file.
59810         * modules/unistdio/u8-snprintf: New file.
59811         * modules/unistdio/u8-sprintf: New file.
59812         * modules/unistdio/u8-vasnprintf: New file.
59813         * modules/unistdio/u8-vasprintf: New file.
59814         * modules/unistdio/u8-vsnprintf: New file.
59815         * modules/unistdio/u8-vsprintf: New file.
59816         * modules/unistdio/u8-u8-asnprintf: New file.
59817         * modules/unistdio/u8-u8-asprintf: New file.
59818         * modules/unistdio/u8-u8-snprintf: New file.
59819         * modules/unistdio/u8-u8-sprintf: New file.
59820         * modules/unistdio/u8-u8-vasnprintf: New file.
59821         * modules/unistdio/u8-u8-vasprintf: New file.
59822         * modules/unistdio/u8-u8-vsnprintf: New file.
59823         * modules/unistdio/u8-u8-vsprintf: New file.
59824         * modules/unistdio/u16-asnprintf: New file.
59825         * modules/unistdio/u16-asprintf: New file.
59826         * modules/unistdio/u16-printf-parse: New file.
59827         * modules/unistdio/u16-snprintf: New file.
59828         * modules/unistdio/u16-sprintf: New file.
59829         * modules/unistdio/u16-vasnprintf: New file.
59830         * modules/unistdio/u16-vasprintf: New file.
59831         * modules/unistdio/u16-vsnprintf: New file.
59832         * modules/unistdio/u16-vsprintf: New file.
59833         * modules/unistdio/u16-u16-asnprintf: New file.
59834         * modules/unistdio/u16-u16-asprintf: New file.
59835         * modules/unistdio/u16-u16-snprintf: New file.
59836         * modules/unistdio/u16-u16-sprintf: New file.
59837         * modules/unistdio/u16-u16-vasnprintf: New file.
59838         * modules/unistdio/u16-u16-vasprintf: New file.
59839         * modules/unistdio/u16-u16-vsnprintf: New file.
59840         * modules/unistdio/u16-u16-vsprintf: New file.
59841         * modules/unistdio/u32-asnprintf: New file.
59842         * modules/unistdio/u32-asprintf: New file.
59843         * modules/unistdio/u32-printf-parse: New file.
59844         * modules/unistdio/u32-snprintf: New file.
59845         * modules/unistdio/u32-sprintf: New file.
59846         * modules/unistdio/u32-vasnprintf: New file.
59847         * modules/unistdio/u32-vasprintf: New file.
59848         * modules/unistdio/u32-vsnprintf: New file.
59849         * modules/unistdio/u32-vsprintf: New file.
59850         * modules/unistdio/u32-u32-asnprintf: New file.
59851         * modules/unistdio/u32-u32-asprintf: New file.
59852         * modules/unistdio/u32-u32-snprintf: New file.
59853         * modules/unistdio/u32-u32-sprintf: New file.
59854         * modules/unistdio/u32-u32-vasnprintf: New file.
59855         * modules/unistdio/u32-u32-vasprintf: New file.
59856         * modules/unistdio/u32-u32-vsnprintf: New file.
59857         * modules/unistdio/u32-u32-vsprintf: New file.
59858         * modules/unistdio/ulc-asnprintf-tests: New file.
59859         * modules/unistdio/ulc-vasnprintf-tests: New file.
59860         * modules/unistdio/ulc-vasprintf-tests: New file.
59861         * modules/unistdio/ulc-vsnprintf-tests: New file.
59862         * modules/unistdio/ulc-vsprintf-tests: New file.
59863         * modules/unistdio/u8-asnprintf-tests: New file.
59864         * modules/unistdio/u8-vasnprintf-tests: New file.
59865         * modules/unistdio/u8-vasprintf-tests: New file.
59866         * modules/unistdio/u8-vsnprintf-tests: New file.
59867         * modules/unistdio/u8-vsprintf-tests: New file.
59868         * modules/unistdio/u16-asnprintf-tests: New file.
59869         * modules/unistdio/u16-vasnprintf-tests: New file.
59870         * modules/unistdio/u16-vasprintf-tests: New file.
59871         * modules/unistdio/u16-vsnprintf-tests: New file.
59872         * modules/unistdio/u16-vsprintf-tests: New file.
59873         * modules/unistdio/u32-asnprintf-tests: New file.
59874         * modules/unistdio/u32-vasnprintf-tests: New file.
59875         * modules/unistdio/u32-vasprintf-tests: New file.
59876         * modules/unistdio/u32-vsnprintf-tests: New file.
59877         * modules/unistdio/u32-vsprintf-tests: New file.
59878         * MODULES.html.sh (Unicode string functions): Add the new modules.
59879
59880 2007-07-01  Bruno Haible  <bruno@clisp.org>
59881
59882         * lib/sprintf.c (sprintf): Limit the available length estimation,
59883         to avoid address wraparound.
59884         * lib/vsprintf.c (vsprintf): Likewise.
59885         * modules/sprintf-posix (Dependencies): Add stdint.
59886         * modules/vsprintf-posix (Dependencies): Likewise.
59887
59888 2007-07-01  Bruno Haible  <bruno@clisp.org>
59889
59890         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
59891         Windows PATH as well. Conservative double-quoting. Comments.
59892
59893 2007-07-01  Bruno Haible  <bruno@clisp.org>
59894             Eric Blake  <ebb9@byu.net>
59895             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59896
59897         * gnulib-tool (self_abspathname): Fix algorithm to cope with
59898         empty components in $PATH, denoting '.'.
59899
59900 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59901
59902         * gnulib-tool: Fix indentation.
59903         (func_create_megatestdir): Likewise.
59904         Report by Bruno Haible.
59905
59906 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59907
59908         Sync from Automake.
59909         * build-aux/gnupload: Fix shell portability issues with for loops.
59910         Report by Karl Berry.
59911
59912 2007-06-29  Simon Josefsson  <simon@josefsson.org>
59913
59914         * build-aux/maint.mk (POURL): Use translationproject.org.
59915
59916 2007-06-27  Simon Josefsson  <simon@josefsson.org>
59917             Bruno Haible  <bruno@clisp.org>
59918
59919         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
59920         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
59921         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
59922         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
59923         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
59924
59925 2007-06-27  Bruno Haible  <bruno@clisp.org>
59926
59927         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
59928         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
59929
59930 2007-06-26  Karl Berry  <karl@gnu.org>
59931
59932         * MODULES.html.sh: remove xreadlink-with-size.
59933
59934 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59935
59936         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
59937         method that I hope also handles the double-include problem noted
59938         by Bruno Haible in
59939         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
59940
59941 2007-06-23  Bruno Haible  <bruno@clisp.org>
59942
59943         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59944         Don't let the 'mostlyclean' target fail if the last subdirectory could
59945         not be removed.
59946         Reported by Karl Berry.
59947
59948 2007-06-23  Bruno Haible  <bruno@clisp.org>
59949
59950         * gnulib-tool (echo): Add a speedier workaround for ksh.
59951         * tests/test-echo.sh: Likewise.
59952
59953 2007-06-23  Bruno Haible  <bruno@clisp.org>
59954
59955         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
59956         * tests/test-echo.sh: Likewise.
59957
59958 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59959
59960         * gnulib-tool (IFS): Initialize early, so we don't set it to
59961         empty later.
59962         (self_abspathname): Rewrite algorithm to set it, reindent.
59963         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
59964         (func_create_megatestdir): Merge some sed scripts.
59965
59966 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59967
59968         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
59969         exposed by Sun Studio 11 cc on Solaris 8.
59970
59971 2007-06-22  Bruno Haible  <bruno@clisp.org>
59972
59973         * gnulib-tool (echo): Ensure the echo primitive does not interpret
59974         backslashes.
59975         * tests/test-echo.sh: New file.
59976
59977 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59978
59979         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
59980         simplify `sed_replace_build_aux' scripts, they are portable but
59981         echoing them with `echo' is not.
59982         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
59983
59984 2007-06-21  Karl Berry  <karl@gnu.org>
59985
59986         * config/srclist.txt: guess we can't handle the licenses via
59987         srclist at the moment.
59988
59989 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59990
59991         * MODULES.html.sh: Add include_next.
59992         * modules/include_next: New file.
59993
59994 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59995
59996         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
59997         INCLUDE_NEXT.
59998         (gl_CHECK_NEXT_HEADERS): New macro.
59999         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
60000         the obsolescent gl_ABSOLUTE_HEADER.
60001         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
60002         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
60003         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
60004         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60005         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
60006         * m4/math_h.m4 (gl_MATH_H): Likewise.
60007         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60008         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60009         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
60010         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60011         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
60012         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
60013         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
60014         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60015         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60016         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
60017         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
60018         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
60019         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
60020         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60021         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
60022         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60023         * m4/inttypes.m4 (gl_INTTYPES_H): Define
60024         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
60025         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
60026         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
60027         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
60028         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
60029         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
60030         * lib/float_.h: Likewise.
60031         * lib/inttypes_.h: Likewise.
60032         * lib/math_.h: Likewise.
60033         * lib/search_.h: Likewise.
60034         * lib/signal_.h: Likewise.
60035         * lib/stdint_.h: Likewise.
60036         * lib/stdio_.h: Likewise.
60037         * lib/stdlib_.h: Likewise.
60038         * lib/string_.h: Likewise.
60039         * lib/sys_stat_.h: Likewise.
60040         * lib/sys_time_.h: Likewise.
60041         * lib/time_.h: Likewise.
60042         * lib/unistd_.h: Likewise.
60043         * lib/wchar_.h: Likewise.
60044         * lib/wctype_.h: Likewise.
60045         * lib/dirent_.h: Likewise.
60046         * lib/iconv_.h: Likewise.
60047         * lib/locale_.h: Likewise.
60048         * lib/netinet_in_.h: Likewise.
60049         * lib/sys_select_.h: Likewise.
60050         * lib/sys_socket_.h: Likewise.
60051         * lib/sysexits_.h: Likewise.
60052         * modules/fcntl (Depends-on): Depend on include_next, not
60053         absolute_header.
60054         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
60055         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
60056         * modules/fchdir: Likewise.
60057         * modules/float: Likewise.
60058         * modules/iconv_open: Likewise.
60059         * modules/inttypes: Likewise.
60060         * modules/locale: Likewise.
60061         * modules/math: Likewise.
60062         * modules/netinet_in: Likewise.
60063         * modules/search: Likewise.
60064         * modules/signal: Likewise.
60065         * modules/stdint: Likewise.
60066         * modules/stdio: Likewise.
60067         * modules/stdlib: Likewise.
60068         * modules/string: Likewise.
60069         * modules/sys_select: Likewise.
60070         * modules/sys_socket: Likewise.
60071         * modules/sys_stat: Likewise.
60072         * modules/sys_time: Likewise.
60073         * modules/sysexits: Likewise.
60074         * modules/time: Likewise.
60075         * modules/unistd: Likewise.
60076         * modules/wchar: Likewise.
60077         * modules/wctype: Likewise.
60078         * modules/sys_stat: Change maintainer to "all".
60079         * modules/unistd: Likewise.
60080
60081 2007-06-20  Karl Berry  <karl@gnu.org>
60082
60083         * config/srclist.txt: track www changes in license files.
60084
60085 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
60086
60087         * build-aux/bootstrap: Remove stray dot.
60088         Make sure build_aux settings are honored when linking
60089         gnulib_extra_files.
60090
60091 2007-06-19  Eric Blake  <ebb9@byu.net>
60092
60093         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60094         Allow compilation on cygwin.
60095
60096 2007-06-19  Jim Meyering  <jim@meyering.net>
60097
60098         xreadlink-with-size: Remove module.  No longer used.
60099         Ex-callers now use xreadlink or mreadlink-with-size.
60100         * modules/xreadlink-with-size: Remove module.
60101         * lib/xreadlink-with-size.c: Remove file.
60102         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
60103         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
60104         just before the function definition *is* accurate.
60105
60106         Eliminate one way canonicalize_filename_mode could exit.
60107         * lib/canonicalize.c (canonicalize_filename_mode):
60108         Use mreadlink_with_size, not xreadlink_with_size.
60109
60110 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
60111
60112         Detect porting problems to FreeBSD/arm, which has time_t wider than
60113         long int.  Original problem reported for GNU diff by Xin Li in
60114         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
60115         * modules/getdate (Depends-on): Add intprops, verify.
60116         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
60117         is an integer type no wider than long int.
60118
60119 2007-06-18  Jim Meyering  <jim@meyering.net>
60120
60121         New module: mreadlink-with-size.
60122         * MODULES.html.sh: Add mreadlink-with-size.
60123         * modules/mreadlink-with-size: New module
60124         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
60125         not xreadlink-with-size.
60126         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
60127
60128 2007-06-16  Bruno Haible  <bruno@clisp.org>
60129
60130         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
60131         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
60132         Reported by Gary V. Vaughan <gary@gnu.org>.
60133
60134 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
60135
60136         Revamp lchown so that it lives in unistd.h where it belongs.
60137         * lib/lchown.h: Remove.
60138         * lib/dirchownmod.c: Don't include lib/lchown.h.
60139         * lib/fchownat.c: Likewise.
60140         * lib/openat.c: Likewise.
60141         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
60142         does not follow symlinks.
60143         (EOPNOTSUPP): Define if not defined.
60144         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
60145         is defined to 0.
60146         (lchown): New decl.
60147         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
60148         Do not check for lchown decl.
60149         Set REPLACE_LCHOWN.
60150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
60151         REPLACE_LCHOWN.
60152         * modules/chown: Make it clear it follows symlinks.
60153         * modules/lchown: Make it clear it doesn't follow symlinks.
60154         (Files): Remove lib/lchown.h
60155         (Depends-on): Add unistd.
60156         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
60157         (Include): Include <unistd.h>, not "lchown.h".
60158         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
60159         REPLACE_LCHOWN.
60160
60161 2007-06-15  Jim Meyering  <jim@meyering.net>
60162
60163         Change license (GPL to LGPL) of fsusage and dependents.
60164         * modules/fsusage (License): Change to LGPL.
60165         * modules/full-read (License): Likewise.
60166         * modules/full-write (License): Likewise.
60167         * modules/safe-read (License): Likewise.
60168         * modules/safe-write (License): Likewise.
60169
60170 2007-06-14  Ben Pfaff  <blp@gnu.org>
60171
60172         Missing part of allocsa -> malloca transition.
60173         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
60174         gl_MALLOCA.
60175
60176 2007-06-12  Bruno Haible  <bruno@clisp.org>
60177
60178         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
60179         to ia64, x86_64, i386.
60180         Reported by Eric Blake.
60181
60182 2007-06-12  Bruno Haible  <bruno@clisp.org>
60183
60184         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
60185         cross-compiling to x86_64.
60186
60187 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
60188
60189         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
60190         glitch reported by Ralf Wildenhues in
60191         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
60192
60193         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
60194         Vin Shelton.
60195
60196 2007-06-11  Bruno Haible  <bruno@clisp.org>
60197
60198         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
60199         replacement string.
60200         Reported by Eric Blake.
60201
60202 2007-06-10  Bruno Haible  <bruno@clisp.org>
60203
60204         Prepare vasnprintf code for use with Unicode strings.
60205         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
60206         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
60207         TYPE_U32_STRING.
60208         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
60209         a_u32_string variants.
60210         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60211         * lib/printf-args.c: Don't include config.h and the specification
60212         header if PRINTF_FETCHARGS is already defined.
60213         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60214         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
60215         TYPE_U16_STRING, TYPE_U32_STRING.
60216         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
60217         u16_directive, u16_directives, u32_directive, u32_directives): New
60218         types.
60219         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
60220         New declarations.
60221         * lib/printf-parse.c: Don't include config.h and the specification
60222         header if PRINTF_PARSE is already defined. Eliminate the set of
60223         parameters for WIDE_CHAR_VERSION; the user of this file must provide
60224         them now. Include c-ctype.h.
60225         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
60226         directive and CHAR_T_ONLY_ASCII.
60227         * lib/vasnprintf.c: Don't include config.h and the specification header
60228         if VASNPRINTF is already defined.
60229         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
60230         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
60231         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
60232         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
60233         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
60234         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
60235         code accordingly.
60236         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
60237         pad_ourselves also in this case, with the 'c' and 's' directives, and
60238         with a different notion of "width".
60239         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
60240
60241 2007-06-10  Bruno Haible  <bruno@clisp.org>
60242
60243         * modules/unistr/u32-mbsnlen: New file.
60244         * lib/unistr/u32-mbsnlen.c: New file.
60245
60246         * modules/unistr/u16-mbsnlen: New file.
60247         * lib/unistr/u16-mbsnlen.c: New file.
60248
60249         * modules/unistr/u8-mbsnlen: New file.
60250         * lib/unistr/u8-mbsnlen.c: New file.
60251
60252         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
60253         declarations.
60254
60255 2007-06-10  Bruno Haible  <bruno@clisp.org>
60256
60257         * lib/string_.h (mbsnlen): New declaration.
60258         * lib/mbsnlen.c: New file.
60259         * m4/mbsnlen.m4: New file.
60260         * modules/mbsnlen: New file.
60261         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
60262         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
60263         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
60264
60265 2007-06-10  Bruno Haible  <bruno@clisp.org>
60266
60267         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
60268
60269 2007-06-10  Bruno Haible  <bruno@clisp.org>
60270
60271         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
60272         * lib/mbuiter.h: Likewise.
60273
60274 2007-06-10  Bruno Haible  <bruno@clisp.org>
60275
60276         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
60277         declaration.
60278
60279 2007-06-10  Karl Berry  <karl@gnu.org>
60280
60281         * config/srclist.txt: remove gettext entries, Bruno prefers
60282         to update individually.
60283
60284 2007-06-10  Bruno Haible  <bruno@clisp.org>
60285
60286         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
60287         'maxlen'. Ensure only length + width bytes are allocated, not
60288         length + 1 + width.
60289
60290 2007-06-09  Bruno Haible  <bruno@clisp.org>
60291
60292         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
60293         (CHAR_T): Remove macro.
60294         (VASNPRINTF): Update.
60295
60296 2007-06-09  Bruno Haible  <bruno@clisp.org>
60297
60298         * MODULES.html.sh (Unicode string functions): Add the new modules.
60299
60300         * modules/uniconv/u32-conv-to-enc: New file.
60301         * lib/uniconv/u32-conv-to-enc.c: New file.
60302         * modules/uniconv/u32-conv-to-enc-tests: New file.
60303         * tests/uniconv/test-u32-conv-to-enc.c: New file.
60304
60305         * modules/uniconv/u16-conv-to-enc: New file.
60306         * lib/uniconv/u16-conv-to-enc.c: New file.
60307         * lib/uniconv/u-conv-to-enc.h: New file.
60308         * modules/uniconv/u16-conv-to-enc-tests: New file.
60309         * tests/uniconv/test-u16-conv-to-enc.c: New file.
60310
60311         * modules/uniconv/u8-conv-to-enc: New file.
60312         * lib/uniconv/u8-conv-to-enc.c: New file.
60313         * modules/uniconv/u8-conv-to-enc-tests: New file.
60314         * tests/uniconv/test-u8-conv-to-enc.c: New file.
60315
60316         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
60317         u32_conv_to_encoding): New declarations.
60318
60319 2007-06-09  Bruno Haible  <bruno@clisp.org>
60320
60321         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
60322
60323 2007-06-09  Bruno Haible  <bruno@clisp.org>
60324
60325         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
60326         * modules/malloca: Renamed from modules/allocsa, updated.
60327         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
60328         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
60329         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
60330         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
60331         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
60332         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
60333         * modules/xmalloca: Renamed from modules/xallocsa, updated.
60334         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
60335         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
60336         * modules/c-strcasestr (Depends-on): Update.
60337         * lib/c-strcasestr.c: Update.
60338         * modules/c-strstr (Depends-on): Update.
60339         * lib/c-strstr.c: Update.
60340         * modules/canonicalize-lgpl (Depends-on): Update.
60341         * lib/canonicalize-lgpl.c: Update.
60342         * modules/clean-temp (Depends-on): Update.
60343         * lib/clean-temp.c: Update.
60344         * modules/csharpcomp (Depends-on): Update.
60345         * lib/csharpcomp.c: Update.
60346         * modules/csharpexec (Depends-on): Update.
60347         * lib/csharpexec.c: Update.
60348         * modules/javacomp (Depends-on): Update.
60349         * lib/javacomp.c: Update.
60350         * modules/javaexec (Depends-on): Update.
60351         * lib/javaexec.c: Update.
60352         * modules/mbscasestr (Depends-on): Update.
60353         * lib/mbscasestr.c: Update.
60354         * modules/mbsstr (Depends-on): Update.
60355         * lib/mbsstr.c: Update.
60356         * modules/setenv (Depends-on): Update.
60357         * lib/setenv.c: Update.
60358         * modules/strcasestr (Depends-on): Update.
60359         * lib/strcasestr.c: Update.
60360         * modules/striconveha (Depends-on): Update.
60361         * lib/striconveha.c: Update.
60362         * modules/relocatable-prog-wrapper (Files): Update.
60363         * lib/relocwrapper.c: Update.
60364         * build-aux/install-reloc: Update.
60365         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
60366
60367 2007-06-08  Bruno Haible  <bruno@clisp.org>
60368
60369         Port to uClibc.
60370         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
60371         * lib/fpurge.c (fpurge): Likewise.
60372         * lib/freading.c (freading): Likewise.
60373         * lib/fseeko.c (rpl_fseeko): Likewise.
60374         * lib/fseterr.c (fseterr): Likewise.
60375         * lib/fwriting.c (fwriting): Likewise.
60376         * tests/test-fflush.c (main): Avoid a failure on uClibc.
60377
60378 2007-06-08  Bruno Haible  <bruno@clisp.org>
60379
60380         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
60381         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
60382         * modules/gettext (Files): Add m4/intlmacosx.m4.
60383
60384 2007-06-07  Bruno Haible  <bruno@clisp.org>
60385
60386         * modules/localename-tests: New file.
60387         * tests/test-localename.c: New file.
60388
60389         New module 'localename'.
60390         * lib/localename.h: New file.
60391         * lib/localename.c: New file, from GNU gettext.
60392         * m4/localename.m4: New file.
60393         * modules/localename: New file.
60394
60395 2007-06-07  Bruno Haible  <bruno@clisp.org>
60396
60397         Work around the lack of <wchar.h> on some builds of uClibc.
60398         * doc/headers/wchar.texi: Update.
60399         * lib/wchar_.h: Include <wchar.h> only if it exists.
60400         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
60401         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
60402         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
60403         doesn't exist.
60404         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
60405         * modules/mbfile (Depends-on): Add wchar.
60406         * modules/mbiter (Depends-on): Likewise.
60407         * modules/mbuiter (Depends-on): Likewise.
60408         Reported by Simon Josefsson.
60409
60410 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60411
60412         Work around problem reported by Steven M. Schweda in
60413         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
60414         Tru64 5.1B with the Compaq compiler environment installed declares
60415         an 'isblank' function but does not define it in the C library.
60416         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
60417         * lib/regex_internal.h (isblank): Likewise.
60418         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
60419         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60420
60421 2007-06-05  Bruno Haible  <bruno@clisp.org>
60422
60423         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
60424         ia64.
60425         * modules/printf-safe: New file.
60426         * modules/fprintf-posix (Depends-on): Add printf-safe.
60427         * modules/printf-posix (Depends-on): Likewise.
60428         * modules/snprintf-posix (Depends-on): Likewise.
60429         * modules/sprintf-posix (Depends-on): Likewise.
60430         * modules/vasnprintf-posix (Depends-on): Likewise.
60431         * modules/vasprintf-posix (Depends-on): Likewise.
60432         * modules/vfprintf-posix (Depends-on): Likewise.
60433         * modules/vprintf-posix (Depends-on): Likewise.
60434         * modules/vsnprintf-posix (Depends-on): Likewise.
60435         * modules/vsprintf-posix (Depends-on): Likewise.
60436         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
60437         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
60438         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
60439         "no" on i386, x86_64, ia64.
60440         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
60441         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60442         on i386, x86_64, ia64.
60443         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
60444         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60445         on i386, x86_64, ia64.
60446         * tests/test-vasnprintf-posix.c: Include float.h.
60447         (LDBL80_WORDS): New macro.
60448         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60449         on i386, x86_64, ia64.
60450         * tests/test-vasprintf-posix.c: Include float.h.
60451         (LDBL80_WORDS): New macro.
60452         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60453         on i386, x86_64, ia64.
60454         * tests/test-snprintf-posix.c: Include float.h.
60455         * tests/test-sprintf-posix.c: Likewise.
60456         * tests/test-vsnprintf-posix.c: Likewise.
60457         * tests/test-vsprintf-posix.c: Likewise.
60458
60459 2007-06-05  Bruno Haible  <bruno@clisp.org>
60460
60461         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
60462         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
60463         non-IEEE numbers on i386, x86_64, ia64.
60464         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
60465         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
60466         * tests/test-isnanl.h: Include float.h.
60467         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
60468
60469 2007-06-05  Bruno Haible  <bruno@clisp.org>
60470
60471         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
60472         also the %a / %A. Handle the %a / %A code before this extra handling.
60473
60474 2007-06-05  Bruno Haible  <bruno@clisp.org>
60475
60476         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
60477         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
60478
60479 2007-06-05  Bruno Haible  <bruno@clisp.org>
60480
60481         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
60482         typo in variable name.
60483
60484 2007-06-05  Eric Blake  <ebb9@byu.net>
60485
60486         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
60487         Reported by Simon Josefsson.
60488
60489 2007-06-04  Bruno Haible  <bruno@clisp.org>
60490
60491         Avoid test failures on some PowerPC platforms.
60492         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
60493         Define differently for PowerPC.
60494         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
60495         Reported by Gary V. Vaughan <gary@gnu.org>.
60496
60497 2007-06-02  Bruno Haible  <bruno@clisp.org>
60498
60499         Fix test-stdint failure on FreeBSD/ia64.
60500         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
60501         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
60502         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
60503         * doc/headers/stdint.texi: Update.
60504
60505 2007-06-01  Bruno Haible  <bruno@clisp.org>
60506
60507         * tests/test-binary-io.c (main): Pass a third argument to open().
60508         Reported by Gary V. Vaughan <gary@gnu.org>.
60509
60510 2007-06-01  Bruno Haible  <bruno@clisp.org>
60511
60512         * doc/functions/frexpl.texi: Update for mingw.
60513
60514 2007-06-01  Bruno Haible  <bruno@clisp.org>
60515
60516         * tests/test-lseek.c (main): Disable test of errno for invalid third
60517         argument.
60518         * doc/functions/lseek.texi: Update.
60519         Reported by Gary V. Vaughan <gary@gnu.org>.
60520
60521 2007-05-28  Bruno Haible  <bruno@clisp.org>
60522
60523         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
60524
60525 2007-05-31  Eric Blake  <ebb9@byu.net>
60526
60527         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
60528         cross compiling.
60529
60530 2007-05-30  Eric Blake  <ebb9@byu.net>
60531         and Bruno Haible  <bruno@clisp.org>
60532
60533         Work around mingw test failures exposed by m4-1.4.9b.
60534         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
60535         * tests/test-unistd.c: Disable uid_t and git_t tests for the
60536         moment.
60537
60538 2007-05-30  Bruno Haible  <bruno@clisp.org>
60539
60540         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
60541         assuming that they are closed. Needed on HP-UX 11.
60542
60543 2007-05-29  Bruno Haible  <bruno@clisp.org>
60544
60545         Fix a problem with #include_next.
60546         * lib/dirent_.h: Split the double-inclusion guard.
60547         * lib/fcntl_.h: Likewise.
60548         * lib/float_.h: Likewise.
60549         * lib/iconv_.h: Likewise.
60550         * lib/inttypes_.h: Likewise.
60551         * lib/locale_.h: Likewise.
60552         * lib/math_.h: Likewise.
60553         * lib/netinet_in_.h: Likewise.
60554         * lib/search_.h: Likewise.
60555         * lib/signal_.h: Likewise.
60556         * lib/stdint_.h: Likewise.
60557         * lib/stdio_.h: Likewise.
60558         * lib/stdlib_.h: Likewise.
60559         * lib/string_.h: Likewise.
60560         * lib/sys_select_.h: Likewise.
60561         * lib/sys_socket_.h: Likewise.
60562         * lib/sys_stat_.h: Likewise.
60563         * lib/sys_time_.h: Likewise.
60564         * lib/sysexits_.h: Likewise.
60565         * lib/time_.h: Likewise.
60566         * lib/unistd_.h: Likewise.
60567         * lib/wchar_.h: Likewise.
60568         * lib/wctype_.h: Likewise.
60569
60570 2007-05-29  Bruno Haible  <bruno@clisp.org>
60571
60572         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
60573         for the moment.
60574
60575 2007-05-29  Bruno Haible  <bruno@clisp.org>
60576
60577         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
60578         invocation.
60579         Reported by Eric Blake.
60580
60581 2007-05-29  Bruno Haible  <bruno@clisp.org>
60582
60583         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
60584         compiling case.
60585
60586 2007-05-29  Eric Blake  <ebb9@byu.net>
60587             Bruno Haible  <bruno@clisp.org>
60588
60589         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
60590         cross compiles.
60591
60592 2007-05-28  Eric Blake  <ebb9@byu.net>
60593
60594         * modules/closein-tests (test_closein_LDADD): Support test on
60595         cygwin with libtool.
60596
60597 2007-05-28  Bruno Haible  <bruno@clisp.org>
60598
60599         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
60600         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60601         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60602         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60603         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60604         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60605         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60606         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60607         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60608
60609 2007-05-28  Eric Blake  <ebb9@byu.net>
60610
60611         Unconditionally include <config.h> in unit tests.
60612         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
60613         * tests/test-allocsa.c, tests/test-arcfour.c,
60614         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
60615         tests/test-array_list.c, tests/test-array_oset.c,
60616         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
60617         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
60618         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
60619         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
60620         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
60621         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
60622         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
60623         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
60624         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
60625         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
60626         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
60627         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
60628         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
60629         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
60630         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
60631         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
60632         test-md5.c, test-memmem.c, test-printf-posix.c,
60633         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
60634         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
60635         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
60636         test-strcasestr.c, test-striconv.c, test-striconveh.c,
60637         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
60638         test-vasnprintf-posix2.c, test-vasnprintf.c,
60639         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
60640         test-vfprintf-posix.c, test-vprintf-posix.c,
60641         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
60642         test-xvasprintf.c: Likewise.
60643
60644 2007-05-28  Bruno Haible  <bruno@clisp.org>
60645
60646         * gnulib-tool (func_import): Remember the --with-tests command-line
60647         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
60648         Reported by Eric Blake.
60649
60650 2007-05-28  Bruno Haible  <bruno@clisp.org>
60651
60652         * modules/ftell-tests: New file.
60653         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
60654         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
60655
60656         * lib/ftell.c: New file.
60657         * modules/ftell: New file.
60658         * m4/ftell.m4: New file.
60659         * doc/functions/ftell.texi: Update.
60660         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
60661         REPLACE_FTELL.
60662         * lib/stdio_.h (rpl_ftell): New declaration.
60663         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
60664         REPLACE_FTELL.
60665
60666 2007-05-28  Eric Blake  <ebb9@byu.net>
60667
60668         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
60669
60670 2007-05-28  Bruno Haible  <bruno@clisp.org>
60671
60672         * modules/fseek-tests: New file.
60673         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
60674         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
60675
60676         * lib/fseek.c: New file.
60677         * modules/fseek: New file.
60678         * m4/fseek.m4: New file.
60679         * doc/functions/fseek.texi: Update.
60680         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
60681         REPLACE_FSEEK.
60682         * lib/stdio_.h (rpl_fseek): New declaration.
60683         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
60684         REPLACE_FSEEK.
60685
60686 2007-05-28  Bruno Haible  <bruno@clisp.org>
60687
60688         * lib/stdio_.h (fflush): More comments.
60689
60690 2007-05-28  Bruno Haible  <bruno@clisp.org>
60691
60692         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
60693         runtime test.
60694
60695 2007-05-28  Eric Blake  <ebb9@byu.net>
60696
60697         Improve lseek module.
60698         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
60699         * lib/unistd_.h (lseek): Scale back link warning message.
60700         * tests/test-lseek.c: Beef up test.
60701         * tests/test-lseek.sh: Exercise more facets of lseek.
60702         Reported by Bruno Haible.
60703
60704 2007-05-28  Bruno Haible  <bruno@clisp.org>
60705
60706         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
60707         to define.
60708
60709 2007-05-27  Bruno Haible  <bruno@clisp.org>
60710
60711         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
60712
60713 2007-05-27  Bruno Haible  <bruno@clisp.org>
60714
60715         * modules/openmp: New file.
60716         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
60717         Noah Misch.
60718
60719 2007-05-26  Bruno Haible  <bruno@clisp.org>
60720
60721         * modules/chdir-long (Depends-on): Add fchdir.
60722         * modules/chdir-safer (Depends-on): Likewise.
60723         * modules/fts (Depends-on): Likewise.
60724         * modules/fts-lgpl (Depends-on): Likewise.
60725         * modules/openat (Depends-on): Likewise.
60726         * modules/savewd (Depends-on): Likewise.
60727
60728 2007-05-24  Eric Blake  <ebb9@byu.net>
60729
60730         Fix lseek on mingw.
60731         * modules/lseek: New module.
60732         * m4/lseek.m4: New file.
60733         * lib/lseek.c: New file.
60734         * modules/lseek-tests: New file.
60735         * tests/test-lseek.c: New file.
60736         * tests/test-lseek.sh: New file.
60737         * MODULES.html.sh: Document lseek module.
60738         * modules/fflush (Depends-on): Add lseek, fseeko.
60739         * modules/fseeko (Depends-on): Likewise.
60740         * modules/ftello (Depends-on): Likewise.
60741         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
60742         broken.
60743         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
60744         broken.
60745         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
60746         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
60747         * lib/ftello.c (rpl_ftello): Likewise.
60748         * tests/test-fseeko.c (main): Test this.
60749         * tests/test-fseeko.sh: Likewise.
60750         * tests/test-ftello.c (main): Likewise.
60751         * tests/test-ftello.sh: Likewise.
60752         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
60753         implies replacing fseek.
60754         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
60755         HAVE_FTELLO.
60756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
60757         * modules/unistd (Makefile.am): Likewise.
60758         * lib/unistd_.h (lseek): Declare a replacement.
60759         * doc/functions/lseek.texi (lseek): Document this fix.
60760         * doc/functions/fseek.texi (fseek): Likewise.
60761         * doc/functions/ftell.texi (ftell): Likewise.
60762
60763 2007-05-24  Bruno Haible  <bruno@clisp.org>
60764
60765         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
60766         in the printed representation of a NaN.
60767         * tests/test-vasprintf-posix.c (test_function): Likewise.
60768         * tests/test-snprintf-posix.h (test_function): Likewise.
60769         * tests/test-sprintf-posix.h (test_function): Likewise.
60770         Reported by Eric Blake.
60771
60772 2007-05-23  Eric Blake  <ebb9@byu.net>
60773
60774         Fix fseeko/ftello on cygwin 1.5.24.
60775         * doc/functions/fseeko.texi (fseeko): Document the fix.
60776         * doc/functions/ftello.texi (ftello): Document the fix.
60777         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
60778         * doc/functions/stdout.text (stdout): New file.
60779         * doc/functions/stderr.text (stderr): New file.
60780         * doc/gnulib.texi (Function Substitutes): Use new files.
60781         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
60782         prior to 1.7.0.
60783         * tests/test-ftello.c (main): Likewise for ftello.
60784         * tests/test-fseeko.sh: New file.
60785         * tests/test-ftello.sh: New file.
60786         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
60787         with seekable stdin.
60788         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
60789         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
60790         (gl_REPLACE_FSEEKO): New macro.
60791         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
60792         * modules/fseeko (Files): Distribute fseeko.c.
60793         * modules/ftello (Files): Distribute ftello.c.
60794         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
60795         mode.
60796         * lib/ftello.c (rpl_ftello): New file.
60797         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
60798         fseeko, ftello.
60799         (gl_STDIN_LARGE_OFFSET): New macro.
60800         * modules/stdio (Makefile.am): Perform the replacement.
60801         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
60802
60803 2007-05-23  Bruno Haible  <bruno@clisp.org>
60804
60805         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
60806         GNULIB_POSIXCHECK is defined.
60807
60808 2007-05-21  Bruno Haible  <bruno@clisp.org>
60809
60810         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
60811         Check also the output for NaN arguments. When cross-compiling, guess
60812         no on IRIX.
60813         * lib/vasnprintf.c: Update comments.
60814         * tests/test-vasnprintf-posix.c (strisnan): New function.
60815         (test_function): Use it.
60816         * tests/test-vasprintf-posix.c (strisnan): New function.
60817         (test_function): Use it.
60818         * tests/test-snprintf-posix.h (strisnan): New function.
60819         (test_function): Use it.
60820         * tests/test-sprintf-posix.h (strisnan): New function.
60821         (test_function): Use it.
60822         Reported by Eric Blake.
60823
60824 2007-05-20  Bruno Haible  <bruno@clisp.org>
60825
60826         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
60827         numbers that fails on BeOS.
60828         * doc/functions/frexpl.texi: Update.
60829
60830 2007-05-20  Jim Meyering  <jim@meyering.net>
60831
60832         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
60833         forced upon us by glibc-2.6.
60834
60835 2007-05-20  Bruno Haible  <bruno@clisp.org>
60836
60837         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
60838         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
60839         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
60840         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
60841         NEED_PRINTF_INFINITE.
60842         (is_infinitel): New function.
60843         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
60844         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
60845         gl_PREREQ_VASNPRINTF_INFINITE.
60846         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
60847         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60848         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
60849         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
60850         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
60851         gl_PREREQ_VASNPRINTF_INFINITE.
60852         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60853         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60854         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60855         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60856         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60857         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60858         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60859         * doc/functions/fprintf.texi: Update.
60860         * doc/functions/printf.texi: Update.
60861         * doc/functions/snprintf.texi: Update.
60862         * doc/functions/sprintf.texi: Update.
60863         * doc/functions/vfprintf.texi: Update.
60864         * doc/functions/vprintf.texi: Update.
60865         * doc/functions/vsnprintf.texi: Update.
60866         * doc/functions/vsprintf.texi: Update.
60867
60868 2007-05-20  Bruno Haible  <bruno@clisp.org>
60869
60870         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
60871         was not found in libc.
60872         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60873
60874 2007-05-20  Bruno Haible  <bruno@clisp.org>
60875
60876         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60877         printed as "-nan" instead of "nan".
60878         * tests/test-vasprintf-posix.c (test_function): Likewise.
60879         * tests/test-snprintf-posix.h (test_function): Likewise.
60880         * tests/test-sprintf-posix.h (test_function): Likewise.
60881         Needed for HP-UX 11.
60882
60883 2007-05-20  Jim Meyering  <jim@meyering.net>
60884
60885         Fix buggy test for the fchownat-deref bug.
60886         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
60887         symlink required for the run-test.  Without it, this test would
60888         always declare that fchownat doesn't work, and client code would
60889         unnecessarily use the replacement function with fixed libc.
60890         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
60891         Reported by Greg Schafer.
60892
60893 2007-05-19  Bruno Haible  <bruno@clisp.org>
60894
60895         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
60896         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
60897         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
60898         Needed for IRIX 6.5 and Solaris 2.5.1.
60899
60900 2007-05-19  Bruno Haible  <bruno@clisp.org>
60901
60902         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
60903         (test_function): Skip tests involving -0.0 on platforms where
60904         -0.0 = 0.0.
60905         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
60906         (test_function): Skip tests involving -0.0 on platforms where
60907         -0.0 = 0.0.
60908         * tests/test-snprintf-posix.h (have_minus_zero): New function.
60909         (test_function): Skip tests involving -0.0 on platforms where
60910         -0.0 = 0.0.
60911         * tests/test-sprintf-posix.h (have_minus_zero): New function.
60912         (test_function): Skip tests involving -0.0 on platforms where
60913         -0.0 = 0.0.
60914         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
60915         tests.
60916         * tests/test-printf-posix.h (test_function): Likewise.
60917         * tests/test-printf-posix.output: Remove all -0.0 related results.
60918         Needed for IRIX 6.5.
60919
60920 2007-05-19  Bruno Haible  <bruno@clisp.org>
60921
60922         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60923         printed as "nan0x7fffffff" instead of "nan".
60924         * tests/test-vasprintf-posix.c (test_function): Likewise.
60925         * tests/test-snprintf-posix.h (test_function): Likewise.
60926         * tests/test-sprintf-posix.h (test_function): Likewise.
60927         * tests/test-fprintf-posix.h (NaN): Remove macro.
60928         (test_function): Remove all NaN related tests.
60929         * tests/test-printf-posix.h (NaN): Remove macro.
60930         (test_function): Remove all NaN related tests.
60931         * tests/test-printf-posix.output: Remove all NaN related results.
60932         Needed for IRIX 6.5.
60933
60934 2007-05-19  Bruno Haible  <bruno@clisp.org>
60935
60936         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
60937         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60938
60939 2007-05-19  Bruno Haible  <bruno@clisp.org>
60940
60941         * lib/float_.h: New file.
60942         * m4/float_h.m4: New file.
60943         * modules/float: New file.
60944         * modules/isnanl (Dependencies): Add float.
60945         * modules/isnanl-nolibm (Dependencies): Likewise.
60946         * modules/mathl (Dependencies): Likewise.
60947         * modules/printf-frexpl (Dependencies): Likewise.
60948         * modules/signbit (Dependencies): Likewise.
60949         * modules/vasnprintf (Dependencies): Likewise.
60950         * doc/headers/float.texi: Update.
60951
60952 2007-05-19  Jim Meyering  <jim@meyering.net>
60953
60954         * lib/utimens.c (gl_futimens): Rename from futimens,
60955         now that glibc-2.6 declares futimens.
60956         * lib/utimens.h: Likewise.
60957
60958 2007-05-19  Bruno Haible  <bruno@clisp.org>
60959
60960         Avoid test failures on mingw.
60961         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
60962         * tests/test-printf-posix.sh: Likewise.
60963         * tests/test-vfprintf-posix.sh: Likewise.
60964         * tests/test-vprintf-posix.sh: Likewise.
60965
60966 2007-05-19  Bruno Haible  <bruno@clisp.org>
60967
60968         Fix *printf result for NaN, Inf, -0.0 on mingw.
60969         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
60970         * lib/vasnprintf.c: Include math.h and isnan.h.
60971         (is_infinite_or_zero): New function.
60972         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
60973         values in the %f, %F, %e, %E, %g, %G directives.
60974         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
60975         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60976         gl_PRINTF_INFINITE and test its result. Invoke
60977         gl_PREREQ_VASNPRINTF_INFINITE.
60978         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60979         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60980         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60981         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60982         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60983         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60984         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60985         * doc/functions/fprintf.texi: Update.
60986         * doc/functions/printf.texi: Update.
60987         * doc/functions/snprintf.texi: Update.
60988         * doc/functions/sprintf.texi: Update.
60989         * doc/functions/vfprintf.texi: Update.
60990         * doc/functions/vprintf.texi: Update.
60991         * doc/functions/vsnprintf.texi: Update.
60992         * doc/functions/vsprintf.texi: Update.
60993
60994 2007-05-19  Bruno Haible  <bruno@clisp.org>
60995
60996         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
60997         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
60998         Instead of multiplying with 10^k, set extra_zeroes to k.
60999         (scale10_round_long_double): Remove function.
61000
61001 2007-05-18  Bruno Haible  <bruno@clisp.org>
61002
61003         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
61004         introduced on 2007-05-06.
61005
61006 2007-05-18  Bruno Haible  <bruno@clisp.org>
61007
61008         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
61009         %g directives.
61010         * tests/test-vasprintf-posix.c (test_function): Likewise.
61011         * tests/test-snprintf-posix.h (test_function): Likewise.
61012         * tests/test-sprintf-posix.h (test_function): Likewise.
61013
61014 2007-05-18  Bruno Haible  <bruno@clisp.org>
61015
61016         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
61017         (strmatch): New function.
61018         (test_function): Test the %f directive on numbers of various exponents.
61019         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
61020         (strmatch): New function.
61021         (test_function): Test the %f directive on numbers of various exponents.
61022         * tests/test-snprintf-posix.h (strmatch): New function.
61023         (test_function): Test the %f directive on numbers of various exponents.
61024         * tests/test-sprintf-posix.h (strmatch): New function.
61025         (test_function): Test the %f directive on numbers of various exponents.
61026         * tests/test-snprintf-posix.c (SIZEOF): New macro.
61027         * tests/test-sprintf-posix.c (SIZEOF): New macro.
61028         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
61029         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
61030
61031 2007-05-18  Bruno Haible  <bruno@clisp.org>
61032
61033         Add support for 'long double' number output.
61034         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
61035         * lib/vasnprintf.c: Include math.h and float+.h.
61036         (mp_limb_t): New type.
61037         (GMP_LIMB_BITS): New macro.
61038         (mp_twolimb_t): New type.
61039         (GMP_TWOLIMB_BITS): New macro.
61040         (mpn_t): New type.
61041         (multiply, divide, convert_to_decimal, decode_long_double,
61042         scale10_round_long_double, scale10_round_decimal_long_double,
61043         floorlog10l): New functions.
61044         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
61045         for the %f, %F, %e, %E, %g, %G directives.
61046         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
61047         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61048         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
61049         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
61050         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61051         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61052         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61053         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61054         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61055         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61056         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61057         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
61058         * modules/snprintf-posix (Depends-on): Likewise.
61059         * modules/sprintf-posix (Depends-on): Likewise.
61060         * modules/vasnprintf-posix (Depends-on): Likewise.
61061         * modules/vasprintf-posix (Depends-on): Likewise.
61062         * modules/vfprintf-posix (Depends-on): Likewise.
61063         * modules/vsnprintf-posix (Depends-on): Likewise.
61064         * modules/vsprintf-posix (Depends-on): Likewise.
61065         * modules/vasnprintf (Files): Add lib/float+.h.
61066         * doc/functions/fprintf.texi: Update.
61067         * doc/functions/printf.texi: Update.
61068         * doc/functions/snprintf.texi: Update.
61069         * doc/functions/sprintf.texi: Update.
61070         * doc/functions/vfprintf.texi: Update.
61071         * doc/functions/vprintf.texi: Update.
61072         * doc/functions/vsnprintf.texi: Update.
61073         * doc/functions/vsprintf.texi: Update.
61074
61075 2007-05-18  Bruno Haible  <bruno@clisp.org>
61076
61077         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
61078
61079 2007-05-18  Bruno Haible  <bruno@clisp.org>
61080
61081         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
61082         for printing 64-bit integers. Needed for mingw.
61083
61084 2007-05-18  Bruno Haible  <bruno@clisp.org>
61085
61086         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61087         gl_FUNC_FREXPL_WORKS.
61088         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
61089
61090 2007-05-18  Bruno Haible  <bruno@clisp.org>
61091
61092         * modules/frexpl-nolibm-tests: New file.
61093
61094         * modules/frexpl-nolibm: New file.
61095         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
61096
61097 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61098
61099         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
61100         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
61101         GCC 4.2, which otherwise issues a lot of warnings.
61102         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
61103         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
61104         Likewise.
61105         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
61106         * modules/iconv_open (iconv.h): Likewise.
61107         * modules/locale (locale.h): Likewise.
61108         * modules/netinet_in (netinet/in.h): Likewise.
61109         * modules/sys_select (sys_select.h): Likewise.
61110         * modules/sys_socket (sys/socket.h): Likewise.
61111         * modules/sys_stat (sys/stat.h): Likewise.
61112         * modules/sysexits (sysexits.h): Likewise.
61113         * modules/unistd (unistd.h): Likewise.
61114
61115 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61116
61117         * modules/closein-tests (Makefile.am): Distribute
61118         `test-closein.sh'.
61119
61120 2007-05-17  Bruno Haible  <bruno@clisp.org>
61121
61122         * tests/test-printf-posix.output: Renamed from
61123         tests/test-fprintf-posix.out.
61124         * modules/fprintf-posix-tests: Update.
61125         * modules/printf-posix-tests: Update.
61126         * modules/vfprintf-posix-tests: Update.
61127         * modules/vprintf-posix-tests: Update.
61128         * tests/test-fprintf-posix.sh: Update.
61129         * tests/test-printf-posix.sh: Update.
61130         * tests/test-vfprintf-posix.sh: Update.
61131         * tests/test-vprintf-posix.sh: Update.
61132         Reported by Ralf Wildenhues.
61133
61134 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61135
61136         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
61137         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
61138         GCC 4.2, which otherwise issues a lot of warnings.
61139         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
61140         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
61141         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
61142         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
61143         it should no longer be needed.
61144         * lib/string_.h: Likewise.
61145         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
61146         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
61147         * modules/inttypes (inttypes.h): Likewise.
61148         * modules/math (math.h): Likewise.
61149         * modules/search (search.h): Likewise.
61150         * modules/signal (signal.h): Likewise.
61151         * modules/stdint (stdint.h): Likewise.
61152         * modules/stdio (stdio.h): Likewise.
61153         * modules/stdlib (stdlib.h): Likewise.
61154         * modules/string (string.h): Likewise.
61155         * modules/sys_time (sys/time.h): Likewise.
61156         * modules/time (time.h): Likewise.
61157         * modules/wchar (wchar.h): Likewise.
61158         * modules/wctype (wtype.h): Likewise.
61159
61160 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61161
61162         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
61163
61164 2007-05-13  Bruno Haible  <bruno@clisp.org>
61165
61166         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
61167         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61168         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
61169         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61170         (gl_PREREQ_STRTOK_R): Don't require it here.
61171
61172 2007-05-13  Bruno Haible  <bruno@clisp.org>
61173
61174         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
61175         when used in C++ mode.
61176
61177 2007-05-12  Bruno Haible  <bruno@clisp.org>
61178
61179         * lib/linebuffer.h: Tweak doc.
61180         * lib/linebuffer.c: Likewise.
61181
61182 2007-05-12  James Youngman  <jay@gnu.org>
61183
61184         * lib/linebuffer.c (readlinebuffer_delim): New function,
61185         like readlinebuffer, but use a caller-specified delimiter.
61186         (readlinebuffer): Just call readlinebuffer_delim with '\n'
61187         as the delimiter.
61188         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
61189
61190 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61191
61192         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
61193         * modules/openat (Files): Remove openat-die.c.
61194         (Depends-on): Add openat-die.
61195         * modules/openat-die: New module.
61196
61197 2007-05-06  Bruno Haible  <bruno@clisp.org>
61198
61199         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
61200         Update with info about Cygwin.
61201         * doc/functions/fprintf.texi: Update.
61202         * doc/functions/printf.texi: Update.
61203         * doc/functions/snprintf.texi: Update.
61204         * doc/functions/sprintf.texi: Update.
61205         * doc/functions/vfprintf.texi: Update.
61206         * doc/functions/vprintf.texi: Update.
61207         * doc/functions/vsnprintf.texi: Update.
61208         * doc/functions/vsprintf.texi: Update.
61209         Reported by Eric Blake.
61210
61211 2007-05-06  Bruno Haible  <bruno@clisp.org>
61212
61213         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
61214         padding ourselves for the floating-point directives.
61215         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
61216         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
61217         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61218         gl_PRINTF_FLAG_ZERO and test its result. Invoke
61219         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
61220         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61221         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61222         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61223         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61224         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61225         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61226         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61227         * tests/test-snprintf-posix.h (test_function): Also check the width
61228         and some flags in the %f directive.
61229         * tests/test-sprintf-posix.h (test_function): Likewise.
61230         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61231         * tests/test-vasprintf-posix.c (test_function): Likewise.
61232         * doc/functions/fprintf.texi: Update.
61233         * doc/functions/printf.texi: Update.
61234         * doc/functions/snprintf.texi: Update.
61235         * doc/functions/sprintf.texi: Update.
61236         * doc/functions/vfprintf.texi: Update.
61237         * doc/functions/vprintf.texi: Update.
61238         * doc/functions/vsnprintf.texi: Update.
61239         * doc/functions/vsprintf.texi: Update.
61240
61241 2007-05-06  Bruno Haible  <bruno@clisp.org>
61242
61243         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
61244         pass the ' flag character to sprintf or snprintf.
61245         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
61246         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
61247         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61248         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
61249         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
61250         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61251         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61252         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61253         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61254         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61255         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61256         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61257         * tests/test-snprintf-posix.h (test_function): Also check the grouping
61258         flag.
61259         * tests/test-sprintf-posix.h (test_function): Likewise.
61260         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61261         * tests/test-vasprintf-posix.c (test_function): Likewise.
61262         * doc/functions/fprintf.texi: Update.
61263         * doc/functions/printf.texi: Update.
61264         * doc/functions/snprintf.texi: Update.
61265         * doc/functions/sprintf.texi: Update.
61266         * doc/functions/vfprintf.texi: Update.
61267         * doc/functions/vprintf.texi: Update.
61268         * doc/functions/vsnprintf.texi: Update.
61269         * doc/functions/vsprintf.texi: Update.
61270
61271 2007-05-01  Bruno Haible  <bruno@clisp.org>
61272
61273         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
61274
61275 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
61276
61277         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
61278         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
61279
61280 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61281
61282         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
61283         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
61284         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
61285
61286 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
61287
61288         * lib/argp-help.c (struct hol_entry): New member `ord'.
61289         (HOL_ENTRY_PTRCMP): Use ord for comparison
61290         (hol_sort): Initialize ord.
61291
61292 2007-05-01  Bruno Haible  <bruno@clisp.org>
61293
61294         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
61295         Reported by Eric Blake.
61296         * doc/gnulib.texi (Function Substitutes): Update.
61297
61298 2007-05-01  Bruno Haible  <bruno@clisp.org>
61299
61300         * doc/functions.texi: Remove file, now redundant through
61301         doc/functions/*.texi.
61302
61303 2007-05-01  Bruno Haible  <bruno@clisp.org>
61304
61305         * modules/argp (Depends-on): Add sleep.
61306
61307 2007-05-01  Bruno Haible  <bruno@clisp.org>
61308
61309         * modules/sleep-tests: New file.
61310         * tests/test-sleep.c: New file.
61311
61312         * modules/sleep: New file.
61313         * lib/sleep.c: New file.
61314         * m4/sleep.m4: New file.
61315         * lib/unistd_.h (sleep): New declaration.
61316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
61317         HAVE_SLEEP.
61318         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
61319         * doc/functions/sleep.texi: Document the sleep module.
61320
61321 2007-05-01  Bruno Haible  <bruno@clisp.org>
61322
61323         * lib/sigprocmask.h: Remove file.
61324         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
61325         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
61326         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
61327         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
61328         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
61329         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
61330         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
61331         HAVE_SIGSET_T as a shell variable.
61332         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
61333         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
61334         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
61335         (Depends-on): Add signal. Remove verify.
61336         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
61337         (Include): Mention <signal.h> instead of sigprocmask.h.
61338         * NEWS: Mention the change.
61339         * lib/fatal-signal.c: Don't include sigprocmask.h.
61340
61341 2007-05-01  Bruno Haible  <bruno@clisp.org>
61342
61343         * modules/signal: New file.
61344         * lib/signal_.h: New file.
61345         * m4/signal_h.m4: New file.
61346
61347 2007-05-01  Bruno Haible  <bruno@clisp.org>
61348
61349         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
61350         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
61351         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
61352         HAVE_WCTYPE_CTMP_BUG into wctype.h.
61353
61354 2007-05-01  Bruno Haible  <bruno@clisp.org>
61355
61356         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
61357         configure time.
61358         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
61359         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
61360         * modules/sys_stat (Makefile.am): Substitute their values into
61361         sys/stat.h.
61362
61363 2007-05-01  Bruno Haible  <bruno@clisp.org>
61364
61365         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
61366         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
61367         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
61368
61369 2007-05-01  Bruno Haible  <bruno@clisp.org>
61370
61371         * doc/header/assert.texi: Undo last change: don't mention the gnulib
61372         'assert' module here.
61373
61374 2007-05-01  Bruno Haible  <bruno@clisp.org>
61375
61376         * doc/functions/*.texi: New files.
61377         * doc/functions/google-ranking.txt: New file.
61378         * doc/gnulib.texi (Function Substitutes): New chapter.
61379         (ctime, inet_ntoa): Remove sections.
61380         * doc/ctime.texi: Remove file.
61381         * doc/inet_ntoa.texi: Remove file.
61382         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
61383         dependencies.
61384         (%.info): New rule, specifying a --reference-limit.
61385
61386 2007-05-01  Bruno Haible  <bruno@clisp.org>
61387
61388         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
61389
61390 2007-05-01  Bruno Haible  <bruno@clisp.org>
61391
61392         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
61393         the portability of 'mkdir' to mingw systems.
61394
61395 2007-05-01  Bruno Haible  <bruno@clisp.org>
61396
61397         * doc/headers/google-ranking.txt: New file.
61398
61399 2007-04-30  Eric Blake  <ebb9@byu.net>
61400
61401         Prefer fseeko to fseek.
61402         * modules/getpass (Depends-on): Add fseeko.
61403         * lib/getpass.c (getpass): Use fseeko, not fseek.
61404
61405 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
61406
61407         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
61408         assumes the sorting is stable, while most qsort implementations
61409         are not.  Use argument addresses to ensure they never compare as
61410         equal.
61411
61412         * tests/test-argp-2.sh (usage-indent test): Fix output
61413         (func_compare): Restore diff options
61414         * tests/test-argp.c: Restore #include "progname.h"
61415
61416 2007-04-29  Bruno Haible  <bruno@clisp.org>
61417
61418         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
61419         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61420         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
61421         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61422         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
61423         (configure.ac): Define CHECK_SNPRINTF_POSIX.
61424         (TESTS, check_PROGRAMS): Add test-snprintf.
61425         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
61426         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
61427         (TESTS, check_PROGRAMS): Add test-vsnprintf.
61428         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
61429         assertions that fail on HP-UX, OSF/1, or IRIX.
61430         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
61431
61432 2007-04-29  Bruno Haible  <bruno@clisp.org>
61433
61434         * MODULES.html.sh (posix_functions): Remove 'contents'.
61435
61436 2007-04-29  Karl Berry  <karl@gnu.org>
61437
61438         * config/srclist.txt (gendocs_template_min): new entry.
61439
61440 2007-04-29  Bruno Haible  <bruno@clisp.org>
61441
61442         Work around fpurge bug on BSD systems.
61443         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
61444         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
61445         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
61446         fpurge to rpl_fpurge if the system already has this function.
61447         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
61448         the case where the system already has this function. Correct invariants
61449         on BSD systems.
61450         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
61451         BSD systems.
61452
61453 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61454
61455         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
61456         proposed by Sven Verdoolaege.
61457
61458         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
61459         options.
61460         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
61461         (usage and help tests): Update
61462
61463 2007-04-29  Bruno Haible  <bruno@clisp.org>
61464
61465         * tests/test-fflush.c (main): Use a file of size 17, not 10.
61466         Print more information in case of failure. Disable a test on BeOS.
61467
61468 2007-04-29  Bruno Haible  <bruno@clisp.org>
61469
61470         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
61471         This helps debugging on systems on which no gdb is available.
61472
61473 2007-04-29  Bruno Haible  <bruno@clisp.org>
61474
61475         * lib/freading.h: Improve comments.
61476         * lib/fwriting.h: Likewise.
61477         * tests/test-freading.c (main): Don't check freading immediately after
61478         repositioning. Needed for glibc.
61479
61480 2007-04-29  Bruno Haible  <bruno@clisp.org>
61481
61482         * lib/freading.c (freading): Trivial simplification.
61483
61484 2007-04-28  Bruno Haible  <bruno@clisp.org>
61485
61486         * tests/test-fwriting.c (main): Also test the interaction between
61487         fflush and fwriting.
61488         * modules/fwriting-tests (Depends-on): Add fflush.
61489
61490         * tests/test-freading.c (main): Also test the interaction between
61491         fflush and freading.
61492         * modules/freading-tests (Depends-on): Add fflush.
61493
61494 2007-04-28  Bruno Haible  <bruno@clisp.org>
61495
61496         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
61497         fseeko and ftello.
61498         Suggested by Eric Blake.
61499
61500 2007-04-28  Jim Meyering  <jim@meyering.net>
61501
61502         Avoid false-negative in gl_STDINT_H's C99 conformance test.
61503         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
61504         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
61505
61506 2007-04-27  Eric Blake  <ebb9@byu.net>
61507
61508         * doc/headers/assert.texi (assert.h): Document assert module use.
61509
61510 2007-04-27  Bruno Haible  <bruno@clisp.org>
61511
61512         * doc/headers/*.texi: New files.
61513         * doc/gnulib.texi (Header File Substitutes): New chapter.
61514         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
61515         dependencies.
61516         (standards.info ,standards.html, standards.dvi): Update dependencies.
61517         (mostlyclean, clean): New targets.
61518
61519 2007-04-27  Bruno Haible  <bruno@clisp.org>
61520
61521         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
61522         * modules/sysexits (Files, Makefile.am): Update.
61523
61524         * lib/sys_socket_.h: Renamed from lib/socket_.h.
61525         * modules/sys_socket (Files, Makefile.am): Update.
61526
61527         * lib/sys_stat_.h: Renamed from lib/stat_.h.
61528         * modules/sys_stat (Files, Makefile.am): Update.
61529
61530 2007-04-27  Eric Blake  <ebb9@byu.net>
61531
61532         * lib/freading.h: Improve comments.
61533         * lib/fwriting.h: Likewise.
61534         * lib/fflush.c: Likewise.
61535
61536         Fix closein for mingw.
61537         * modules/closein-tests: Add tests for closein.
61538         * tests/test-closein.c: New file.
61539         * tests/test-closein.sh: Likewise.
61540         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
61541         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
61542
61543 2007-04-27  Bruno Haible  <bruno@clisp.org>
61544
61545         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
61546         version is < 6.
61547         * lib/math_.h [__DECC]: Likewise.
61548         * lib/stdio_.h [__DECC]: Likewise.
61549         * lib/stdlib_.h [__DECC]: Likewise.
61550         * lib/string_.h [__DECC]: Likewise.
61551         * lib/time_.h [__DECC]: Likewise.
61552         * lib/wchar_.h [__DECC]: Likewise.
61553         * lib/wctype_.h [__DECC]: Likewise.
61554
61555 2007-04-27  Bruno Haible  <bruno@clisp.org>
61556
61557         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
61558
61559 2007-04-27  Bruno Haible  <bruno@clisp.org>
61560
61561         * lib/fflush.c: Add comments.
61562         * modules/fpurge-tests (Depends-on): Add fflush.
61563         * modules/freadable-tests (Depends-on): Likewise.
61564         * modules/fwritable-tests (Depends-on): Likewise.
61565
61566 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
61567
61568         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
61569         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
61570         Report by Bruno Haible <bruno@clisp.org>.
61571
61572 2007-04-26  Eric Blake  <ebb9@byu.net>
61573
61574         Fix fflush on mingw.
61575         * modules/fflush (Depends-on): Add freading.
61576         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
61577         but unread data.
61578
61579 2007-04-26  Eric Blake  <ebb9@byu.net>
61580         and Bruno Haible  <bruno@clisp.org>
61581
61582         Implement freading and fwriting.
61583         * lib/freading.c: New file.
61584         * lib/freading.h: Likewise.
61585         * m4/freading.m4: Likewise.
61586         * modules/freading: Likewise.
61587         * modules/freading-tests: Likewise.
61588         * tests/test-freading.c: Likewise.
61589         * lib/fwriting.c: New file.
61590         * lib/fwriting.h: Likewise.
61591         * m4/fwriting.m4: Likewise.
61592         * modules/fwriting: Likewise.
61593         * modules/fwriting-tests: Likewise.
61594         * tests/test-fwriting.c: Likewise.
61595         * MODULES.html.sh (File stream based Input/Output): Mention them.
61596
61597 2007-04-26  Bruno Haible  <bruno@clisp.org>
61598
61599         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
61600         'long' when we assume it.
61601         Suggested by Eric Blake.
61602
61603 2007-04-26  Bruno Haible  <bruno@clisp.org>
61604
61605         Ensure fseeko, ftello are declared on glibc systems.
61606         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
61607         * modules/fseeko (configure.ac-early): Likewise.
61608         * modules/ftello (configure.ac-early): Likewise.
61609         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
61610         AC_FUNC_FSEEKO for this.
61611         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
61612         (gl_CHECK_FSEEKO): Remove macro.
61613
61614 2007-04-26  Bruno Haible  <bruno@clisp.org>
61615
61616         * tests/test-fflush.c (main): Also check the ftell result after
61617         fflush and fseek/fseeko.
61618         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
61619         file descriptor position cache in the stream.
61620         * lib/fseeko.c (rpl_fseeko): Likewise.
61621
61622 2007-04-26  Bruno Haible  <bruno@clisp.org>
61623
61624         * modules/fflush-tests (Depends-on): Add fseeko.
61625
61626 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
61627             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61628
61629         * lib/argz_.h: ensure error_t definition is obtained in same
61630         mechanism system argz.h would have.
61631         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
61632         argz facilities are known bad.  Err on the side of caution if
61633         cross-compiling.
61634
61635 2007-04-25  Eric Blake  <ebb9@byu.net>
61636
61637         * lib/fpurge.c (includes): Use stdlib.h for free.
61638         * tests/test-fflush.c (main): Also test fflush-fseeko.
61639
61640 2007-04-25  Bruno Haible  <bruno@clisp.org>
61641
61642         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
61643         * lib/fseeko.c: New file.
61644         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
61645         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
61646         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
61647         gl_FUNC_FSEEKO.
61648         (gl_FUNC_FSEEKO): Invoke it.
61649         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
61650         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
61651         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
61652
61653 2007-04-25  Bruno Haible  <bruno@clisp.org>
61654
61655         * modules/fflush (Depends-on): Add ftello.
61656
61657 2007-04-25  Bruno Haible  <bruno@clisp.org>
61658
61659         * modules/ftello-tests: New file.
61660         * tests/test-ftello.c: New file.
61661
61662         * modules/ftello: New file.
61663         * m4/ftello.m4: New file.
61664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
61665         HAVE_FTELLO.
61666         * lib/stdio_.h (ftello): New declaration.
61667         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
61668         HAVE_FTELLO.
61669
61670 2007-04-25  Bruno Haible  <bruno@clisp.org>
61671
61672         * modules/fseeko-tests: New file.
61673         * tests/test-fseeko.c: New file.
61674
61675         * modules/fseeko: New file.
61676         * m4/fseeko.m4: New file.
61677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
61678         HAVE_FSEEKO.
61679         * lib/stdio_.h (fseeko): New declaration.
61680         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
61681         HAVE_FSEEKO.
61682
61683 2007-04-25  Bruno Haible  <bruno@clisp.org>
61684
61685         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
61686
61687 2007-04-25  Bruno Haible  <bruno@clisp.org>
61688
61689         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
61690         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
61691         * tests/test-unistd.c: Likewise.
61692         * tests/test-fcntl.c: Likewise.
61693
61694 2007-04-23  Eric Blake  <ebb9@byu.net>
61695
61696         * lib/fflush.c: Fix missing include.
61697         Reported by Bruno Haible.
61698
61699 2007-04-23  Bruno Haible  <bruno@clisp.org>
61700
61701         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
61702         Reported by Eric Blake.
61703
61704 2007-04-23  Bruno Haible  <bruno@clisp.org>
61705
61706         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
61707
61708 2007-04-23  Bruno Haible  <bruno@clisp.org>
61709
61710         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
61711
61712 2007-04-23  Bruno Haible  <bruno@clisp.org>
61713
61714         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
61715         Needed on HP-UX 11.
61716
61717 2007-04-16  Eric Blake  <ebb9@byu.net>
61718
61719         Make fflush rely on fpurge.
61720         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
61721         open coding all variants.
61722         * modules/fflush (Depends-on): Add fpurge and unistd.
61723         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
61724         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
61725
61726         Fix --with-tests compilation on cygwin.
61727         * modules/argmatch-tests (Makefile.am): List gnulib library first
61728         in LDADD.
61729         * modules/argp-tests (Makefile.am): Likewise.
61730         * modules/array-list-tests (Makefile.am): Likewise.
61731         * modules/array-oset-tests (Makefile.am): Likewise.
61732         * modules/avltree-list-tests (Makefile.am): Likewise.
61733         * modules/avltree-oset-tests (Makefile.am): Likewise.
61734         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61735         * modules/carray-list-tests (Makefile.am): Likewise.
61736         * modules/dirname-tests (Makefile.am): Likewise.
61737         * modules/frexp-tests (Makefile.am): Likewise.
61738         * modules/isnanl-tests (Makefile.am): Likewise.
61739         * modules/linked-list-tests (Makefile.am): Likewise.
61740         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61741         * modules/lock-tests (Makefile.am): Likewise.
61742         * modules/rbtree-list-tests (Makefile.am): Likewise.
61743         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61744         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61745         * modules/tls-tests (Makefile.am): Likewise.
61746         * modules/tsearch-tests (Makefile.am): Likewise.
61747         * modules/xvasprintf-tests (Makefile.am): Likewise.
61748
61749         Fix fpurge for cygwin.
61750         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
61751         value.
61752         * modules/fpurge-tests (Depends-on): Clean up trash.
61753
61754 2007-04-16  Simon Josefsson  <simon@josefsson.org>
61755
61756         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
61757
61758         * m4/autobuild.m4: Re-indent.
61759
61760 2007-04-13  Bruno Haible  <bruno@clisp.org>
61761
61762         * modules/fpurge-tests: New file.
61763         * tests/test-fpurge.c: New file.
61764
61765         * modules/fpurge: New file.
61766         * lib/fpurge.h: New file.
61767         * lib/fpurge.c: New file.
61768         * m4/fpurge.m4: New file.
61769
61770 2007-04-13  Bruno Haible  <bruno@clisp.org>
61771
61772         * modules/fbufmode-tests: New file.
61773         * tests/test-fbufmode.c: New file.
61774
61775         * modules/fbufmode: New file.
61776         * lib/fbufmode.h: New file.
61777         * lib/fbufmode.c: New file.
61778         * m4/fbufmode.m4: New file.
61779
61780 2007-04-13  Bruno Haible  <bruno@clisp.org>
61781
61782         * modules/fwritable-tests: New file.
61783         * tests/test-fwritable.c: New file.
61784
61785         * modules/fwritable: New file.
61786         * lib/fwritable.h: New file.
61787         * lib/fwritable.c: New file.
61788         * m4/fwritable.m4: New file.
61789
61790 2007-04-13  Bruno Haible  <bruno@clisp.org>
61791
61792         * modules/freadable-tests: New file.
61793         * tests/test-freadable.c: New file.
61794
61795         * modules/freadable: New file.
61796         * lib/freadable.h: New file.
61797         * lib/freadable.c: New file.
61798         * m4/freadable.m4: New file.
61799
61800 2007-04-13  Bruno Haible  <bruno@clisp.org>
61801
61802         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
61803         MOSTLYCLEANFILES.
61804
61805 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61806
61807         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
61808         gzip bootstrap.conf to avoid dragging in i18n machinery.
61809         (gnulib_tool_option): Use it.
61810
61811 2007-04-13  Bruno Haible  <bruno@clisp.org>
61812
61813         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
61814         %F directives.
61815         * tests/test-vasprintf-posix.c (test_function): Likewise.
61816         * tests/test-snprintf-posix.h (test_function): Likewise.
61817         * tests/test-sprintf-posix.h (test_function): Likewise.
61818         * tests/test-fprintf-posix.h (test_function): Likewise.
61819         * tests/test-printf-posix.h (test_function): Likewise.
61820         * tests/test-fprintf-posix.out: Likewise.
61821
61822 2007-04-13  Bruno Haible  <bruno@clisp.org>
61823
61824         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
61825         * modules/tls-tests (configure.ac): Likewise.
61826         Reported by Arto C. Nirkko <anirkko@insel.ch>.
61827
61828 2007-04-13  Bruno Haible  <bruno@clisp.org>
61829
61830         * lib/tls.c (glthread_tls_get): Fix return type.
61831         Patch by Arto C. Nirkko <anirkko@insel.ch>.
61832
61833 2007-04-12  Eric Blake  <ebb9@byu.net>
61834
61835         * modules/gettime (Depends-on): Remove gettime.
61836         Reported by Dmitry V. Levin.
61837
61838 2007-04-12  Bruno Haible  <bruno@clisp.org>
61839
61840         * modules/fflush (Include): Mention <stdio.h>.
61841         * modules/strtoimax (Include): Mention <inttypes.h>.
61842         * modules/strtoumax (Include): Likewise.
61843
61844 2007-04-12  Eric Blake  <ebb9@byu.net>
61845
61846         * .cvsignore: New file.
61847         * .gitignore: Likewise.
61848
61849 2007-04-12  Bruno Haible  <bruno@clisp.org>
61850
61851         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
61852         not before, since $(LDADD) often contains libgnu.a.
61853         * modules/striconv-tests (test_striconv_LDADD): Likewise.
61854         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
61855         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
61856         Needed on Cygwin.
61857
61858 2007-04-12  Eric Blake  <ebb9@byu.net>
61859
61860         Work around glibc's failure to flush stdin on fclose.
61861         * lib/closein.c (close_stdin): Flush stdin before closing.
61862
61863         Work around glibc's failure to reset seekable stdin on exit.
61864         * modules/closein: New module.
61865         * lib/closein.c: New file.
61866         * lib/closein.h: Likewise.
61867         * m4/closein.m4: Likewise.
61868         * MODULES.html.sh (File stream based Input/Output): Document it.
61869
61870 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61871
61872         * gnulib-tool: Rename generated 'autobuild' script to
61873         'do-autobuild' in --create-megatestdir output.
61874
61875         * doc/gnulib.texi (Build robot for gnulib): Fix.
61876
61877 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61878
61879         * modules/sysexits (Depends-on): Add absolute-header.
61880
61881 2007-04-12  Eric Blake  <ebb9@byu.net>
61882
61883         No need to preserve errno on success.
61884         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
61885         Reported by Bruno Haible.
61886
61887 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61888
61889         * MODULES.html.sh (Support for maintaining and releasing
61890         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
61891
61892 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61893
61894         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
61895
61896 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61897
61898         * modules/autobuild: New module.
61899
61900         * m4/autobuild.m4: New file.
61901
61902 2007-04-11  Bruno Haible  <bruno@clisp.org>
61903
61904         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
61905         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
61906         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
61907         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
61908         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61909         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61910         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61911         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61912         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61913         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61914         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
61915         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61916         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61917         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
61918         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61919         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61920         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
61921         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61922         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61923         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
61924         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61925         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61926         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
61927         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61928         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61929         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
61930         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61931         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61932         Reported by Eric Blake.
61933
61934 2007-04-11  Bruno Haible  <bruno@clisp.org>
61935
61936         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
61937
61938 2007-04-10  Bruno Haible  <bruno@clisp.org>
61939
61940         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
61941         for NaN and Infinity. Needed on FreeBSD 6.1.
61942         * tests/test-vasnprintf-posix.c (test_function): Undo last change
61943         regarding results for "%010a" of Infinity and NaN.
61944         * tests/test-vasprintf-posix.c (test_function): Likewise.
61945         * tests/test-snprintf-posix.h (test_function): Likewise.
61946         * tests/test-sprintf-posix.h (test_function): Likewise.
61947         * tests/test-fprintf-posix.h (test_function): Likewise.
61948         * tests/test-printf-posix.h (test_function): Likewise.
61949         * tests/test-fprintf-posix.out: Likewise.
61950
61951 2007-04-10  Bruno Haible  <bruno@clisp.org>
61952
61953         * modules/locale-tests: New file.
61954         * tests/test-locale.c: New file.
61955
61956         * modules/locale: New file.
61957         * lib/locale_.h: New file.
61958         * m4/locale_h.m4: New file.
61959
61960 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
61961             Bruno Haible  <bruno@clisp.org>
61962
61963         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
61964         be determined, test for availability of the copysignf, copysign,
61965         copysignl functions.
61966         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
61967         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
61968         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
61969
61970 2007-04-09  Eric Blake  <ebb9@byu.net>
61971
61972         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
61973         * modules/stdio (Makefile.am): Support fflush.
61974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61975         * modules/fflush: New file.
61976         * lib/fflush.c: Likewise.
61977         * m4/fflush.m4: Likewise.
61978         * modules/fflush-tests: New test.
61979         * tests/test-fflush.c: Likewise.
61980         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
61981
61982 2007-04-06  Bruno Haible  <bruno@clisp.org>
61983
61984         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
61985         (VASNPRINTF): Use signbit for faster determination whether to print a
61986         minus sign.
61987         * modules/vasnprintf (Files): Remove lib/float+.h.
61988         * modules/fprintf-posix (Depends-on): Add signbit.
61989         * modules/snprintf-posix (Depends-on): Likewise.
61990         * modules/sprintf-posix (Depends-on): Likewise.
61991         * modules/vasnprintf-posix (Depends-on): Likewise.
61992         * modules/vasprintf-posix (Depends-on): Likewise.
61993         * modules/vfprintf-posix (Depends-on): Likewise.
61994         * modules/vsnprintf-posix (Depends-on): Likewise.
61995         * modules/vsprintf-posix (Depends-on): Likewise.
61996
61997 2007-04-06  Bruno Haible  <bruno@clisp.org>
61998
61999         * tests/test-frexp.c (main): Test also the sign bit of zero results.
62000         * tests/test-frexpl.c (main): Likewise.
62001         * tests/test-ldexpl.c (main): Likewise.
62002         * modules/frexp-tests (Depends-on): Add signbit.
62003         * modules/frexpl-tests (Depdends-on): Likewise.
62004         * modules/ldexpl-tests (Depdends-on): Likewise.
62005
62006 2007-04-06  Bruno Haible  <bruno@clisp.org>
62007
62008         * modules/signbit-tests: New file.
62009         * tests/test-signbit.c: New file.
62010
62011         * modules/signbit: New file.
62012         * lib/signbitf.c: New file.
62013         * lib/signbitd.c: New file.
62014         * lib/signbitl.c: New file.
62015         * m4/signbit.m4: New file.
62016         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
62017         (signbit): New macro.
62018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
62019         REPLACE_SIGNBIT.
62020         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
62021         REPLACE_FREXPL into math.h.
62022
62023 2007-04-06  Bruno Haible  <bruno@clisp.org>
62024
62025         * modules/isnanf-nolibm-tests: New file.
62026         * tests/test-isnanf.c: New file.
62027
62028         * modules/isnanf-nolibm: New file.
62029         * lib/isnanf.h: New file.
62030         * lib/isnanf.c: New file.
62031         * lib/isnan.c: Consider the USE_FLOAT macro.
62032         * m4/isnanf.m4: New file.
62033
62034 2007-04-06  Bruno Haible  <bruno@clisp.org>
62035
62036         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
62037         (Link): New section.
62038
62039         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
62040
62041 2007-04-06  Bruno Haible  <bruno@clisp.org>
62042
62043         Assume the 'long double' type.
62044         * m4/longdouble.m4: Remove file.
62045         * config/srclist.txt: Don't mention longdouble.m4.
62046         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
62047         * lib/float+.h: Likewise.
62048         * lib/frexp.c: Likewise.
62049         * lib/printf-args.h: Likewise.
62050         * lib/printf-args.c: Likewise.
62051         * lib/printf-frexp.c: Likewise.
62052         * lib/printf-parse.c: Likewise.
62053         * lib/vasnprintf.c: Likewise.
62054         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
62055         * m4/intl.m4: Likewise.
62056         * m4/isnanl.m4: Likewise.
62057         * m4/printf.m4: Likewise.
62058         * m4/printf-frexpl.m4: Likewise.
62059         * m4/vasnprintf.m4: Likewise.
62060         * modules/allocsa (Files): Remove m4/longdouble.m4.
62061         * modules/gettext (Files): Likewise.
62062         * modules/relocatable-prog-wrapper (Files): Likewise.
62063         * modules/vasnprintf (Files): Likewise.
62064         * modules/isnanl (Files): Likewise.
62065         (Include): Simplify.
62066         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
62067         (Include): Simplify.
62068         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
62069         (Include): Simplify.
62070         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
62071         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62072         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
62073         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62074         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
62075         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62076         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
62077         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62078         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
62079         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62080         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
62081         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62082         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
62083         * tests/test-isnanl.c: Likewise.
62084         * tests/test-snprintf-posix.h: Likewise.
62085         * tests/test-sprintf-posix.h: Likewise.
62086         * tests/test-vasnprintf-posix.c: Likewise.
62087         * tests/test-vasnprintf-posix2.c: Likewise.
62088         * tests/test-vasprintf-posix.c: Likewise.
62089
62090 2007-04-06  Bruno Haible  <bruno@clisp.org>
62091
62092         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
62093         * lib/math_.h [__DECC]: Include the overridden include file through
62094         #include_next, outside the double-inclusion guard.
62095         * lib/stdio_.h [__DECC]: Likewise.
62096         * lib/stdlib_.h [__DECC]: Likewise.
62097         * lib/string_.h [__DECC]: Likewise.
62098         * lib/time_.h [__DECC]: Likewise.
62099         * lib/wchar_.h [__DECC]: Likewise.
62100         * lib/wctype_.h [__DECC]: Likewise.
62101         * lib/inttypes_.h [__DECC]: Likewise.
62102         Reported by Albert Chin <china@thewrittenword.com> in
62103         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
62104
62105 2007-04-04  Eric Blake  <ebb9@byu.net>
62106
62107         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
62108         1.5.x.
62109
62110 2007-04-04  Bruno Haible  <bruno@clisp.org>
62111
62112         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
62113         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
62114
62115 2007-04-04  Bruno Haible  <bruno@clisp.org>
62116
62117         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
62118         results for "%010a" of Infinity and NaN.
62119         * tests/test-vasprintf-posix.c (test_function): Likewise.
62120         * tests/test-snprintf-posix.h (test_function): Likewise.
62121         * tests/test-sprintf-posix.h (test_function): Likewise.
62122         * tests/test-fprintf-posix.h (test_function): Remove these tests.
62123         * tests/test-printf-posix.h (test_function): Likewise.
62124         * tests/test-fprintf-posix.out: Update.
62125         Needed for FreeBSD 6.1.
62126
62127 2007-04-04  Bruno Haible  <bruno@clisp.org>
62128
62129         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
62130         directly used by the gnulib modules nor by gnulib-tool.
62131
62132 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62133
62134         * DEPENDENCIES: Give overall description of version dependency
62135         desirability.  Use more-typical names for apps.
62136         Add shell, coreutils, diffutils, grep, tar, gzip.
62137
62138 2007-04-04  Simon Josefsson  <simon@josefsson.org>
62139
62140         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
62141
62142 2007-04-04  Karl Berry  <karl@gnu.org>
62143
62144         * MODULES.html.sh (func_module): missing '.
62145
62146 2007-04-03  Bruno Haible  <bruno@clisp.org>
62147
62148         * modules/argmatch-tests (Makefile.am): New variable
62149         test_argmatch_LDADD.
62150         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
62151         * modules/array-list-tests (Makefile.am): New variable
62152         test_array_list_LDADD.
62153         * modules/array-oset-tests (Makefile.am): New variable
62154         test_array_oset_LDADD.
62155         * modules/avltree-list-tests (Makefile.am): New variable
62156         test_avltree_list_LDADD.
62157         * modules/avltree-oset-tests (Makefile.am): New variable
62158         test_avltree_oset_LDADD.
62159         * modules/avltreehash-list-tests (Makefile.am): New variable
62160         test_avltreehash_list_LDADD.
62161         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
62162         test_canonicalize_lgpl_LDADD.
62163         * modules/carray-list-tests (Makefile.am): New variable
62164         test_carray_list_LDADD.
62165         * modules/dirname-tests (Makefile.am): New variable
62166         test_dirname_LDADD.
62167         * modules/linked-list-tests (Makefile.am): New variable
62168         test_linked_list_LDADD.
62169         * modules/linkedhash-list-tests (Makefile.am): New variable
62170         test_linkedhash_list_LDADD.
62171         * modules/rbtree-list-tests (Makefile.am): New variable
62172         test_rbtree_list_LDADD.
62173         * modules/rbtree-oset-tests (Makefile.am): New variable
62174         test_rbtree_oset_LDADD.
62175         * modules/rbtreehash-list-tests (Makefile.am): New variable
62176         test_rbtreehash_list_LDADD.
62177         * modules/xvasprintf-tests (Makefile.am): New variable
62178         test_xvasprintf_LDADD.
62179         Reported by Eric Blake.
62180
62181 2007-04-03  Eric Blake  <ebb9@byu.net>
62182
62183         * DEPENDENCIES: Weaken m4 requirements.
62184
62185 2007-04-03  Bruno Haible  <bruno@clisp.org>
62186
62187         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
62188         * modules/isnanl-tests (configure.ac): Likewise.
62189
62190 2007-04-03  Ben Pfaff  <blp@gnu.org>
62191
62192         * modules/iconv_open: Add $(srcdir)/ to source directory
62193         references in Makefile fragments that call gperf, to fix VPATH
62194         builds.
62195
62196 2007-04-03  Bruno Haible  <bruno@clisp.org>
62197
62198         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
62199         * lib/ldexpl.c: Undo last change.
62200
62201 2007-04-03  Bruno Haible  <bruno@clisp.org>
62202
62203         * modules/printf-frexpl (Depends-on): Undo last change.
62204         (Files): Add m4/ldexpl.m4.
62205
62206 2007-04-03  Bruno Haible  <bruno@clisp.org>
62207
62208         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
62209         * modules/isnanl (Link): New section.
62210
62211         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
62212         * modules/frexp (Link): New section.
62213
62214         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
62215         * modules/frexpl (Link): New section.
62216
62217         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
62218         * modules/ldexpl (Link): New section.
62219
62220 2007-04-03  Bruno Haible  <bruno@clisp.org>
62221
62222         * modules/TEMPLATE-EXTENDED: New file.
62223         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
62224
62225 2007-04-03  Bruno Haible  <bruno@clisp.org>
62226
62227         * DEPENDENCIES: New file.
62228         Suggested by Simon Josefsson.
62229
62230 2007-04-03  Bruno Haible  <bruno@clisp.org>
62231
62232         * doc/gnulib.texi: Escape @.
62233
62234 2007-04-03  James Youngman  <jay@gnu.org>
62235         and Paul Eggert  <eggert@cs.ucla.edu>
62236
62237         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
62238         birthtime on all systems that have birthtime, not just those which
62239         use st_birthtimensec rather than st_birthtim.  Putting zero in
62240         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
62241         that the birth time is not available for files on an NFS mount.
62242
62243 2007-04-03  Simon Josefsson  <simon@josefsson.org>
62244
62245         * modules/memxor: Move back from crypto/, suggested by Bruno.
62246         * modules/crypto/hmac-sha1: Fix memxor dependency.
62247
62248         * modules/crypto/gc: Moved from ../.
62249
62250 2007-04-02  Eric Blake  <ebb9@byu.net>
62251
62252         * lib/ldexpl.c (includes): Avoid libm.
62253
62254         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
62255
62256 2007-04-02  Bruno Haible  <bruno@clisp.org>
62257
62258         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
62259         on IRIX.
62260
62261 2007-04-02  Bruno Haible  <bruno@clisp.org>
62262
62263         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
62264         x86 or x86_64 platforms running MacOS X.
62265         Reported by Ryan Schmidt <@ryandesign.com>.
62266
62267 2007-04-02  Bruno Haible  <bruno@clisp.org>
62268
62269         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
62270         i386.
62271
62272 2007-04-01  Simon Josefsson  <simon@josefsson.org>
62273
62274         * modules/crypto/arcfour: Moved from ../.
62275         * modules/crypto/arcfour-tests: Moved from ../.
62276         * modules/crypto/arctwo: Moved from ../.
62277         * modules/crypto/arctwo-tests: Moved from ../.
62278         * modules/crypto/des: Moved from ../.
62279         * modules/crypto/des-tests: Moved from ../.
62280         * modules/crypto/gc-arcfour: Moved from ../.
62281         * modules/crypto/gc-arcfour-tests: Moved from ../.
62282         * modules/crypto/gc-arctwo: Moved from ../.
62283         * modules/crypto/gc-arctwo-tests: Moved from ../.
62284         * modules/crypto/gc-des: Moved from ../.
62285         * modules/crypto/gc-des-tests: Moved from ../.
62286         * modules/crypto/gc-hmac-md5: Moved from ../.
62287         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
62288         * modules/crypto/gc-hmac-sha1: Moved from ../.
62289         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
62290         * modules/crypto/gc-md2: Moved from ../.
62291         * modules/crypto/gc-md2-tests: Moved from ../.
62292         * modules/crypto/gc-md4: Moved from ../.
62293         * modules/crypto/gc-md4-tests: Moved from ../.
62294         * modules/crypto/gc-md5: Moved from ../.
62295         * modules/crypto/gc-md5-tests: Moved from ../.
62296         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
62297         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
62298         * modules/crypto/gc-random: Moved from ../.
62299         * modules/crypto/gc-rijndael: Moved from ../.
62300         * modules/crypto/gc-rijndael-tests: Moved from ../.
62301         * modules/crypto/gc-sha1: Moved from ../.
62302         * modules/crypto/gc-sha1-tests: Moved from ../.
62303         * modules/crypto/gc-tests: Moved from ../.
62304         * modules/crypto/hmac-md5: Moved from ../.
62305         * modules/crypto/hmac-md5-tests: Moved from ../.
62306         * modules/crypto/hmac-sha1: Moved from ../.
62307         * modules/crypto/hmac-sha1-tests: Moved from ../.
62308         * modules/crypto/md2: Moved from ../.
62309         * modules/crypto/md2-tests: Moved from ../.
62310         * modules/crypto/md4: Moved from ../.
62311         * modules/crypto/md4-tests: Moved from ../.
62312         * modules/crypto/md5: Moved from ../.
62313         * modules/crypto/md5-tests: Moved from ../.
62314         * modules/crypto/memxor: Moved from ../.
62315         * modules/crypto/rijndael: Moved from ../.
62316         * modules/crypto/rijndael-tests: Moved from ../.
62317         * modules/crypto/sha1: Moved from ../.
62318
62319 2007-03-30  James Youngman  <jay@gnu.org>
62320
62321         * tests/test-stat-time.c (prepare_test): use chmod() rather than
62322         rename() to change the ctime of a file (because ctime is unaffected
62323         by rename on jfs2 on AIX 5.1).
62324         (main): Start by doing cleanup, in case a previous run failed leaving
62325         test files behind.
62326
62327 2007-03-31  Bruno Haible  <bruno@clisp.org>
62328
62329         Support old proprietary implementations of iconv.
62330         * modules/iconv_open: New file.
62331         * lib/iconv_.h: New file.
62332         * m4/iconv_h.m4: New file.
62333         * lib/iconv_open.c: New file.
62334         * lib/iconv_open-aix.gperf: New file.
62335         * lib/iconv_open-hpux.gperf: New file.
62336         * lib/iconv_open-irix.gperf: New file.
62337         * lib/iconv_open-osf.gperf: New file.
62338         * m4/iconv_open.m4: New file.
62339         * modules/linebreak (Depends-on): Add iconv_open.
62340         * modules/striconv (Depends-on): Likewise.
62341         * modules/striconveh (Depends-on): Likewise.
62342         * modules/unicodeio (Depends-on): Likewise.
62343         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
62344         (iconv_t)(-1).
62345         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
62346         conversion if cd is (iconv_t)(-1).
62347         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
62348         is not possible.
62349
62350 2007-03-31  Bruno Haible  <bruno@clisp.org>
62351
62352         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62353         work on Solaris either. Protect also second use of "autodetect_jp".
62354
62355 2007-03-31  Bruno Haible  <bruno@clisp.org>
62356
62357         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
62358         the function is not present.
62359
62360 2007-03-31  Bruno Haible  <bruno@clisp.org>
62361
62362         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
62363         the function is not present.
62364
62365 2007-03-31  Bruno Haible  <bruno@clisp.org>
62366
62367         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
62368         a bug in HP-UX iconv_open().
62369
62370 2007-03-31  Bruno Haible  <bruno@clisp.org>
62371
62372         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
62373         (Mathematics <math.h>): New section, add fpieee.
62374         (Input/output <stdio.h>): Add fseterr.
62375         (Mathematics <math.h>): New section, add printf-frexp.
62376         (Container data structures): Add sublist.
62377         (Core language properties): Add fpucw, inline.
62378         (Functions for greatest-width integer types <inttypes.h>): Add
62379         imaxabs, imaxdiv, inttypes.
62380         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
62381         isnanl-nolibm, ldexp.
62382         (Mathematics <math.h>): New section, add printf-frexpl.
62383         (Support for systems lacking POSIX:2001): Add fprintf-posix,
62384         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
62385         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
62386         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
62387         (Unicode string functions): Add unistr/u*-mbtoucr.
62388         (Java): Add javacomp-script, javaexec-script.
62389         (C#): Add csharpcomp-script, csharpexec-script.
62390         (Support for building libraries and executables): Add havelib,
62391         relocatable-*.
62392         (Support for maintaining and releasing projects): Renamed from
62393         'Support for maintaining and release projects'. Add announce-gen.
62394
62395 2007-03-31  Bruno Haible  <bruno@clisp.org>
62396
62397         * README: Talk primarily about git.
62398         (git and CVS): Renamed from CVS.
62399         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
62400         gnulib is available through git.
62401         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
62402
62403 2007-03-30  Bruno Haible  <bruno@clisp.org>
62404
62405         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
62406         * lib/poll_.h: Likewise.
62407         * lib/stat_.h: Likewise.
62408         * lib/sys_time_.h: Likewise.
62409         * lib/sysexit_.h: Likewise.
62410         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
62411         * lib/stdbool_.h: Likewise.
62412         * lib/byteswap_.h: Add double-inclusion guard.
62413
62414 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
62415
62416         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
62417
62418 2007-03-30  Karl Berry  <karl@gnu.org>
62419
62420         * config/srclist-update: double space after USA in the license
62421         substitution, since that's how it's usually (?) written.
62422
62423 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62424
62425         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
62426         reported by Bruno Haible.
62427
62428 2007-03-29  Bruno Haible  <bruno@clisp.org>
62429
62430         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
62431         a bug in AIX iconv().
62432
62433 2007-03-29  Bruno Haible  <bruno@clisp.org>
62434
62435         * modules/ldexpl-tests: New file.
62436         * tests/test-ldexpl.c: New file.
62437
62438 2007-03-29  Bruno Haible  <bruno@clisp.org>
62439
62440         * lib/ldexpl.c: Include fpucw.h.
62441         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
62442         multiplication.
62443         * modules/ldexpl (Depends-on): Add fpucw.
62444
62445 2007-03-29  Bruno Haible  <bruno@clisp.org>
62446
62447         * modules/ldexpl: New file.
62448         * m4/ldexpl.m4: New file.
62449         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
62450         set.
62451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
62452         REPLACE_LDEXPL.
62453         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
62454         REPLACE_LDEXPL.
62455         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62456         gl_FUNC_LDEXPL_WORKS.
62457         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
62458         * modules/mathl (Files): Remove lib/ldexpl.c.
62459         (Depends-on): Add ldexpl.
62460
62461 2007-03-29  Bruno Haible  <bruno@clisp.org>
62462
62463         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
62464
62465 2007-03-29  Bruno Haible  <bruno@clisp.org>
62466
62467         * tests/test-striconveh.c (main): Don't assume that a direct conversion
62468         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
62469         and possibly also HP-UX.
62470         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62471         work on AIX, IRIX, HP-UX, OSF/1.
62472         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
62473         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
62474         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
62475         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
62476         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
62477         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
62478
62479 2007-03-29  Bruno Haible  <bruno@clisp.org>
62480
62481         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
62482
62483 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62484
62485         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
62486         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
62487
62488 2007-03-29  Eric Blake  <ebb9@byu.net>
62489
62490         * lib/acl-internal.h: Remove redundant include.
62491         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
62492         Cygwin when a file is locked.
62493
62494 2007-03-29  Bruno Haible  <bruno@clisp.org>
62495
62496         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
62497         file.
62498         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
62499
62500 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62501
62502         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
62503         try to remove a parent directory if the child couldn't be removed
62504         (except for the first rmdir, which could fail because the child
62505         doesn't exist).  Problem reported by Jeff Blaine in
62506         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
62507
62508 2007-03-28  Bruno Haible  <bruno@clisp.org>
62509
62510         * lib/striconveh.c (utf8conv_carefully): New function.
62511         (mem_cd_iconveh_internal): Invoke it.
62512
62513 2007-03-28  Bruno Haible  <bruno@clisp.org>
62514
62515         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
62516         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
62517         input.
62518         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
62519         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
62520         unistr/u8-uctomb.
62521
62522 2007-03-28  Bruno Haible  <bruno@clisp.org>
62523
62524         * modules/unistr/u8-mbtoucr: New file.
62525         * lib/unistr/u8-mbtoucr.c: New file.
62526         * modules/unistr/u16-mbtoucr: New file.
62527         * lib/unistr/u16-mbtoucr.c: New file.
62528         * modules/unistr/u16-mbtoucr: New file.
62529         * lib/unistr/u16-mbtoucr.c: New file.
62530         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
62531
62532 2007-03-27  Simon Josefsson  <simon@josefsson.org>
62533             Bruno Haible  <bruno@clisp.org>
62534
62535         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
62536         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
62537         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
62538
62539         * m4/stdio_h.m4: Add stubs for vasprintf too.
62540
62541         * modules/stdio: Support vasprintf in sed command.
62542
62543         * modules/vasprintf: Depend on stdio for prototypes.  Remove
62544         vasprintf.h.  Add stdio module indicator.
62545
62546         * lib/stdio_.h: Declare asprintf and vasprintf, based on
62547         vasprintf.h.
62548
62549         * lib/vasprintf.h: File removed.
62550
62551         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
62552         * lib/vasprintf.c: Ditto.
62553         * lib/xvasprintf.c: Ditto.
62554         * tests/test-vasprintf-posix.c: Ditto.
62555         * tests/test-vasprintf.c: Ditto.
62556
62557 2007-03-27  Bruno Haible  <bruno@clisp.org>
62558
62559         Make vasnprintf multithread-safe.
62560         * lib/vasnprintf.c (decimal_point_char): New function.
62561         (VASNPRINTF): Use it.
62562         Suggested by Simon Josefsson.
62563
62564 2007-03-27  Eric Blake  <ebb9@byu.net>
62565
62566         Support sub-second birthtime on cygwin.
62567         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
62568         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
62569         (get_stat_birthtime): Also work with st_birthtim.
62570
62571 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
62572
62573         * lib/stat-time.h (USE_BIRTHTIME): Remove.
62574         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
62575         (get_stat_birthtime_ns): Do not try to use "spare" fields.
62576         (get_stat_birthtime_ns): Simplify compile-time tests.
62577         (get_stat_birthtime): Change the API to look like
62578         get_stat_mtime etc., except return a negative tv_nsec on error.
62579         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
62580         Don't check for "spare" fields.
62581         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
62582         or for struct stat.st_birthtime, as these tests aren't used.
62583         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
62584
62585 2007-03-27  Bruno Haible  <bruno@clisp.org>
62586
62587         * lib/stat-time.h: Include <sys/stat.h>.
62588
62589 2007-03-27  James Youngman  <jay@gnu.org>
62590
62591         * lib/stat-time.h (get_stat_birthtime): New function for
62592           retrieving st_birthtime as provided by UFS2 (hence *BSD).
62593         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
62594           and its variants.
62595         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
62596         * modules/stat-time-test: New file.
62597         * tests/test-stat-time.c: New test, devised by Bruno Haible.
62598
62599 2007-03-26  Bruno Haible  <bruno@clisp.org>
62600
62601         Better support of signalling NaNs.
62602         * lib/atanl.c: Include isnanl.h.
62603         (atanl): Perform test for NaN at the beginning of the function and
62604         through a call to isnanl.
62605         * lib/cosl.c: Include isnanl.h.
62606         (cosl): Perform test for NaN at the beginning of the function and
62607         through a call to isnanl.
62608         * lib/ldexpl.c: Include isnanl.h.
62609         (ldexpl): Perform test for NaN through a call to isnanl.
62610         * lib/logl.c: Include isnanl.h.
62611         (logl): Perform test for NaN at the beginning of the function and
62612         through a call to isnanl.
62613         * lib/sinl.c: Include isnanl.h.
62614         (sinl): Perform test for NaN at the beginning of the function and
62615         through a call to isnanl.
62616         * lib/sqrtl.c: Include isnanl.h.
62617         (sqrtl): Perform test for NaN at the beginning of the function and
62618         through a call to isnanl.
62619         * lib/tanl.c: Include isnanl.h.
62620         (tanl): Perform test for NaN at the beginning of the function and
62621         through a call to isnanl.
62622         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
62623         * modules/mathl (Depends-on): Add isnanl.
62624
62625 2007-03-26  Eric Blake  <ebb9@byu.net>
62626
62627         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
62628         regression in logic sense of previous patch.
62629
62630 2007-03-26  Bruno Haible  <bruno@clisp.org>
62631
62632         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
62633         unportable shell command "if ! ...".
62634         Reported by Ralf Wildenhues.
62635
62636 2007-03-25  Bruno Haible  <bruno@clisp.org>
62637
62638         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
62639         <sysexits.h> file, and only add EX_CONFIG.
62640         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
62641         absolute file name and whether it is sufficient. Substitute also
62642         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
62643         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
62644         ABSOLUTE_SYSEXITS_H into sysexits.h.
62645
62646 2007-03-25  Bruno Haible  <bruno@clisp.org>
62647
62648         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
62649         hints is NULL.
62650
62651 2007-03-25  Bruno Haible  <bruno@clisp.org>
62652
62653         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
62654         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
62655
62656 2007-03-25  Bruno Haible  <bruno@clisp.org>
62657
62658         * lib/vasnprintf.c: Include langinfo.h.
62659         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
62660         multithread-safe.
62661         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
62662         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
62663         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62664         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62665         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62666         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62667         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62668         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
62669         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62670         Reported by Simon Josefsson.
62671
62672 2007-03-25  Bruno Haible  <bruno@clisp.org>
62673
62674         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
62675         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
62676         * modules/vasnprintf (Depends-on): Add stdint.
62677
62678 2007-03-25  Bruno Haible  <bruno@clisp.org>
62679
62680         * modules/fpieee: New file.
62681         * m4/fpieee.m4: New file.
62682         * modules/isnan-nolibm (Depends-on): Add fpieee.
62683         * modules/isnanl-nolibm (Depends-on): Add fpieee.
62684         * modules/isnanl (Depends-on): Add fpieee.
62685
62686 2007-03-25  Bruno Haible  <bruno@clisp.org>
62687
62688         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
62689
62690 2007-03-25  Bruno Haible  <bruno@clisp.org>
62691
62692         Avoid test failures on IRIX 6.5.
62693         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
62694         (main): Use it.
62695         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
62696         macros.
62697         (main): Use them.
62698
62699 2007-03-25  Bruno Haible  <bruno@clisp.org>
62700
62701         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
62702         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
62703         exists but doesn't work.
62704         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
62705         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
62706         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
62707         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
62708         math.h.
62709
62710 2007-03-25  Bruno Haible  <bruno@clisp.org>
62711
62712         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
62713         returns inf. Needed on IRIX 6.5.
62714
62715 2007-03-25  Bruno Haible  <bruno@clisp.org>
62716
62717         * tests/test-frexpl.c: Include isnanl-nolibm.h.
62718         (main): Use isnanl instead of x != x idiom.
62719         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
62720
62721         * tests/test-frexp.c: Include isnan.h.
62722         (main): Use isnan instead of x != x idiom.
62723         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
62724
62725 2007-03-25  Bruno Haible  <bruno@clisp.org>
62726
62727         * tests/test-frexp.c (NaN): New function/macro.
62728         (main): Use it instead of 0.0 / 0.0.
62729         * tests/test-isnan.c (NaN): New function/macro.
62730         (main): Use it instead of 0.0 / 0.0.
62731         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
62732         (test_function): Use it instead of 0.0 / 0.0.
62733         * tests/test-vasprintf-posix.c (NaN): New function/macro.
62734         (test_function): Use it instead of 0.0 / 0.0.
62735         * tests/test-snprintf-posix.h (NaN): New function/macro.
62736         (test_function): Use it instead of 0.0 / 0.0.
62737         * tests/test-sprintf-posix.h (NaN): New function/macro.
62738         (test_function): Use it instead of 0.0 / 0.0.
62739         * tests/test-fprintf-posix.h (NaN): New function/macro.
62740         (test_function): Use it instead of 0.0 / 0.0.
62741         * tests/test-printf-posix.h (NaN): New function/macro.
62742         (test_function): Use it instead of 0.0 / 0.0.
62743
62744         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
62745
62746 2007-03-25  Bruno Haible  <bruno@clisp.org>
62747
62748         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
62749
62750 2007-03-25  Bruno Haible  <bruno@clisp.org>
62751
62752         * lib/regexec.c (merge_state_with_log): Make static.
62753
62754 2007-03-25  Bruno Haible  <bruno@clisp.org>
62755
62756         * lib/trigl.c (kernel_rem_pio2): Make static.
62757
62758 2007-03-25  Bruno Haible  <bruno@clisp.org>
62759
62760         * lib/sincosl.c (sincosl_table): Make static.
62761
62762 2007-03-25  Bruno Haible  <bruno@clisp.org>
62763
62764         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
62765         if the compiler does not support C99.
62766
62767 2007-03-25  Bruno Haible  <bruno@clisp.org>
62768
62769         * modules/time (Makefile.am): Ensure all rule action lines start with a
62770         tab.
62771
62772 2007-03-24  Bruno Haible  <bruno@clisp.org>
62773
62774         * modules/tsearch-tests: New file.
62775         * tests/test-tsearch.sh: New file.
62776         * tests/test-tsearch.c: New file, mostly copied from glibc.
62777
62778         * modules/search-tests: New file.
62779         * tests/test-search.c: New file.
62780
62781         * modules/search: New file.
62782         * lib/search_.h: New file, incorporating lib/tsearch.h.
62783         * m4/search_h.m4: New file.
62784         * lib/tsearch.h: Remove file.
62785         * lib/tsearch.c: Include search.h instead of tsearch.h.
62786         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
62787         HAVE_TSEARCH.
62788         * modules/tsearch (Files): Remove lib/tsearch.h.
62789         (Depends-on): Add search.
62790         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
62791         (Include): Change tsearch.h into search.h.
62792
62793 2007-03-24  Bruno Haible  <bruno@clisp.org>
62794
62795         * modules/fpucw: New file.
62796         * lib/fpucw.h: New file.
62797         * lib/frexp.c: Include fpucw.h.
62798         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62799         (FUNC): Use them.
62800         * lib/printf-frexp.c: Include fpucw.h.
62801         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62802         (FUNC): Use them.
62803         * lib/vasnprintf.c: Include fpucw.h.
62804         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
62805         'long double' calculations.
62806         * tests/test-frexpl.c: Include fpucw.h.
62807         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62808         * tests/test-printf-frexpl.c: Include fpucw.h.
62809         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62810         * modules/frexpl (Depends-on): Add fpucw.
62811         * modules/printf-frexpl (Depends-on): Likewise.
62812         * modules/fprintf-posix (Depends-on): Likewise.
62813         * modules/snprintf-posix (Depends-on): Likewise.
62814         * modules/sprintf-posix (Depends-on): Likewise.
62815         * modules/vasnprintf-posix (Depends-on): Likewise.
62816         * modules/vasprintf-posix (Depends-on): Likewise.
62817         * modules/vfprintf-posix (Depends-on): Likewise.
62818         * modules/vsnprintf-posix (Depends-on): Likewise.
62819         * modules/vsprintf-posix (Depends-on): Likewise.
62820         * modules/frexpl-tests (Depends-on): Likewise.
62821         * modules/printf-frexpl-tests (Depends-on): Likewise.
62822
62823 2007-03-24  Bruno Haible  <bruno@clisp.org>
62824
62825         * lib/float+.h: New file.
62826         * lib/isnan.c: Include float+.h.
62827         (SIZE): New macro.
62828         (FUNC): Compare only SIZE bytes of the value.
62829         * lib/vasnprintf.c: Include float+.h.
62830         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
62831         SIZEOF_LDBL or SIZEOF_DBL bytes.
62832         * modules/isnan-nolibm (Files): Add lib/float+.h.
62833         * modules/isnanl-nolibm (Files): Add lib/float+.h.
62834         * modules/isnanl (Files): Add lib/float+.h.
62835         * modules/vasnprintf (Files): Add lib/float+.h.
62836
62837 2007-03-24  Bruno Haible  <bruno@clisp.org>
62838
62839         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
62840         include isnanl-nolibm.h.
62841
62842 2007-03-24  Bruno Haible  <bruno@clisp.org>
62843
62844         * tests/test-read-file.c (main): Don't produce spurious output for
62845         expected situations. Make the test fail if it encountered unexpected
62846         results.
62847
62848 2007-03-24  Bruno Haible  <bruno@clisp.org>
62849
62850         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
62851         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
62852
62853 2007-03-24  Bruno Haible  <bruno@clisp.org>
62854
62855         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
62856
62857 2007-03-24  Bruno Haible  <bruno@clisp.org>
62858
62859         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
62860         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
62861
62862         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
62863         * modules/utf8-ucs4: Turn into a symbolic link to module
62864         unistr/u8-mbtouc.
62865
62866         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
62867         utf8-ucs4-unsafe.
62868         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
62869         unistr/u8-mbtouc-unsafe.
62870
62871         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
62872         * modules/utf16-ucs4: Turn into a symbolic link to module
62873         unistr/u16-mbtouc.
62874
62875         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
62876         utf16-ucs4-unsafe.
62877         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
62878         unistr/u16-mbtouc-unsafe.
62879
62880         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
62881         * modules/ucs4-utf8: Turn into a symbolic link to module
62882         unistr/u8-ubtomb.
62883
62884         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
62885         * modules/ucs4-utf16: Turn into a symbolic link to module
62886         unistr/u16-ubtomb.
62887
62888 2007-03-24  Bruno Haible  <bruno@clisp.org>
62889
62890         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
62891         Enable the function only if HAVE_INLINE.
62892         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
62893         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62894         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
62895         Enable the function only if HAVE_INLINE.
62896         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
62897         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62898         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
62899         Enable the function only if HAVE_INLINE.
62900         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
62901         Enable the function only if HAVE_INLINE.
62902         * modules/utf8-ucs4: Update.
62903         * modules/utf8-ucs4-unsafe: Update.
62904         * modules/utf16-ucs4: Update.
62905         * modules/utf16-ucs4-unsafe: Update.
62906         * modules/ucs4-utf8: Update.
62907         * modules/ucs4-utf16: Update.
62908
62909 2007-03-24  Bruno Haible  <bruno@clisp.org>
62910
62911         * lib/utf8-ucs4.h: Remove file.
62912         * lib/utf8-ucs4-unsafe.h: Remove file.
62913         * lib/utf16-ucs4.h: Remove file.
62914         * lib/utf16-ucs4-unsafe.h: Remove file.
62915         * lib/ucs4-utf8.h: Remove file.
62916         * lib/ucs4-utf16.h: Remove file.
62917         * lib/unistr.h: Include their previous contents.
62918         * m4/utf-ucs4.m4: Remove file.
62919         * m4/ucs4-utf.m4: Remove file.
62920         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
62921         (Depends-on): Add unistr/base.
62922         (configure.ac): Remove gl_UTF_UCS4.
62923         (Makefile.am): Update.
62924         (Include): Change to unistr.h.
62925         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
62926         (Depends-on): Add unistr/base.
62927         (configure.ac): Remove gl_UTF_UCS4.
62928         (Makefile.am): Update.
62929         (Include): Change to unistr.h.
62930         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
62931         (Depends-on): Add unistr/base.
62932         (configure.ac): Remove gl_UTF_UCS4.
62933         (Makefile.am): Update.
62934         (Include): Change to unistr.h.
62935         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
62936         (Depends-on): Add unistr/base.
62937         (configure.ac): Remove gl_UTF_UCS4.
62938         (Makefile.am): Update.
62939         (Include): Change to unistr.h.
62940         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
62941         (Depends-on): Add unistr/base.
62942         (configure.ac): Remove gl_UCS4_UTF.
62943         (Makefile.am): Update.
62944         (Include): Change to unistr.h.
62945         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
62946         (Depends-on): Add unistr/base.
62947         (configure.ac): Remove gl_UCS4_UTF.
62948         (Makefile.am): Update.
62949         (Include): Change to unistr.h.
62950         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
62951         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
62952         utf8-ucs4-unsafe.h.
62953         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
62954         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
62955         utf16-ucs4-unsafe.h.
62956         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
62957         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
62958         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
62959         * lib/unistr/u8-strchr.c: Likewise.
62960         * lib/unistr/u8-strrchr.c: Likewise.
62961         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
62962         * lib/unistr/u16-strchr.c: Likewise.
62963         * lib/unistr/u16-strrchr.c: Likewise.
62964         * lib/striconveh.c: Update.
62965         * lib/linebreak.c: Update.
62966
62967 2007-03-24  Bruno Haible  <bruno@clisp.org>
62968
62969         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
62970         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
62971
62972 2007-03-22  Bruno Haible  <bruno@clisp.org>
62973
62974         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
62975
62976 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62977
62978         * MODULES.html.sh (File system functions): New module write-any-file.
62979         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
62980         * m4/write-any-file.m4: New files.
62981
62982 2007-03-23  Eric Blake  <ebb9@byu.net>
62983
62984         * gnulib-tool: Rearrange space-tab sequences, since some editors
62985         like to eat them.
62986
62987 2007-03-23  Eric Blake  <ebb9@byu.net>
62988
62989         * lib/version-etc.c (version_etc_va): Update license wording to
62990         be more concise.  Recommended by Richard Stallman.
62991
62992 2007-03-22  Bruno Haible  <bruno@clisp.org>
62993
62994         * lib/poll.c (MSG_PEEK): New fallback definition.
62995
62996 2007-03-22  Bruno Haible  <bruno@clisp.org>
62997
62998         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
62999         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
63000         (main): Update.
63001         Fixes a compilation error on BeOS.
63002
63003 2007-03-22  Bruno Haible  <bruno@clisp.org>
63004
63005         * modules/frexpl-tests: New file.
63006         * tests/test-frexpl.c: New file.
63007
63008         * modules/frexpl: New file.
63009         * m4/frexpl.m4: New file.
63010         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
63011         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
63012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
63013         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
63014         (Depends-on): Add frexpl. Remove isnanl-nolibm.
63015         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
63016
63017 2007-03-22  Bruno Haible  <bruno@clisp.org>
63018
63019         * lib/frexpl.c: Share code with lib/frexp.c.
63020         * modules/mathl (Files): Add lib/frexp.c.
63021         (Depends-on): Add isnanl-nolibm.
63022
63023 2007-03-22  Bruno Haible  <bruno@clisp.org>
63024
63025         * modules/printf-frexp (Files): Add m4/frexp.m4.
63026         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
63027         only if the found frexp function actually works.
63028
63029 2007-03-22  Bruno Haible  <bruno@clisp.org>
63030
63031         * lib/frexp.c: Remove older implementation that uses divisions.
63032
63033 2007-03-21  Bruno Haible  <bruno@clisp.org>
63034
63035         * modules/frexp-tests: New file.
63036         * tests/test-frexp.c: New file.
63037
63038         * modules/frexp: New file.
63039         * lib/frexp.c: New file.
63040         * m4/frexp.m4: New file.
63041         * lib/math_.h (frexp): New declaration.
63042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
63043         REPLACE_FREXP.
63044         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
63045
63046 2007-03-21  Bruno Haible  <bruno@clisp.org>
63047
63048         * modules/isnanl-tests: New file.
63049         * tests/test-isnanl.c: New file.
63050
63051         * modules/isnanl: New file.
63052         * lib/isnanl.h: New file.
63053         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
63054         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
63055         gl_FUNC_ISNANL_WORKS.
63056         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
63057         New macros.
63058
63059 2007-03-21  Bruno Haible  <bruno@clisp.org>
63060
63061         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
63062         lib/isnanl.h.
63063         (Include): Update.
63064         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
63065         * lib/vasnprintf.c: Update.
63066         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
63067         tests/test-isnanl.h, remove tests/test-isnanl.c.
63068         (Makefile.am): Update.
63069         * tests/test-isnanl-nolibm.c: New file.
63070         * tests/test-isnanl.h: New file.
63071         * tests/test-isnanl.c: Remove file.
63072
63073 2007-03-21  Jim Meyering  <jim@meyering.net>
63074
63075         When trying to open ".", treat ESTALE like EACCES.
63076         * lib/savewd.c (savewd_save): Resort to forking not just upon
63077         failure with EACCES, but also when errno is ESTALE.
63078
63079 2007-03-20  Bruno Haible  <bruno@clisp.org>
63080
63081         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
63082         Needed on AIX 5.1. Reported by Matthew Woehlke.
63083
63084 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63085
63086         Suggestions by Bruno Haible:
63087         * lib/acl-internal.h: Include "gettext.h" rather than rolling
63088         our own.
63089         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
63090         * modules/acl (Depends-on): Add gettext.
63091
63092 2007-03-19  Bruno Haible  <bruno@clisp.org>
63093
63094         * modules/iconvme: Remove file.
63095         * lib/iconvme.h: Remove file.
63096         * lib/iconvme.c: Remove file.
63097         * m4/iconvme.m4: Remove file.
63098
63099 2007-03-19  Bruno Haible  <bruno@clisp.org>
63100
63101         * doc/relocatable-maint.texi: Break long shell script line.
63102         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63103
63104 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63105
63106         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
63107         handle file_has_acl.
63108         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
63109         * lib/acl.c: Move header inclusions and related macro defns into
63110         lib/acl-internal.h.
63111         (S_ISLNK): Remove defn, since that's now done for us.
63112         (file_has_acl): Move to lib/file-has-acl.c.
63113         Call acl_trivial if available.  This is the crucial part of the fix.
63114         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
63115         shared within the library.  Rewrite a bit, partly to make it compatible
63116         with the GNU coding style.
63117         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
63118         Remove unnecessary double-quotes.
63119         Don't test for acl_to_text; the build will catch that.
63120         Replace acl_entries if it doesn't exist and it is needed.
63121         Check for -lsec and acl_trivial (as used on Solaris 10).
63122         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
63123         lib/file-has-acl.c.
63124         (Depends-on): Add sys_stat, for S_ISLNK.
63125
63126 2007-03-19  Ben Pfaff  <blp@gnu.org>
63127
63128         * doc/gnulib.texi: Fix typos.
63129         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63130
63131 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63132
63133         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
63134         If size is zero here, buf must be zero.
63135
63136 2007-03-19  Simon Josefsson  <simon@josefsson.org>
63137
63138         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
63139         <bruno@clisp.org>.
63140
63141 2007-03-18  Bruno Haible  <bruno@clisp.org>
63142
63143         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
63144         Suggested by Eric Blake.
63145
63146 2007-03-18  Ben Pfaff  <blp@gnu.org>
63147
63148         * doc/relocatable.texi: Recommend using as prefix a directory
63149         that does not exist and will never be created.  Based on
63150         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
63151         and others.
63152
63153 2007-03-17  Bruno Haible  <bruno@clisp.org>
63154
63155         * lib/fchownat.c: Include lchown.h.
63156
63157 2007-03-17  Bruno Haible  <bruno@clisp.org>
63158
63159         Fix endless loop when the given allocated size was > INT_MAX.
63160         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
63161         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
63162         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
63163         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
63164         * lib/sprintf.c (sprintf): Likewise.
63165
63166 2007-03-17  Bruno Haible  <bruno@clisp.org>
63167
63168         * tests/test-argp-2.sh (func_compare): Output a context diff.
63169
63170 2007-03-17  Bruno Haible  <bruno@clisp.org>
63171
63172         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
63173         locale's decimal-point character.
63174
63175 2007-03-17  Bruno Haible  <bruno@clisp.org>
63176
63177         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
63178         before comparing it. Needed because on some platforms (e.g. x86) a
63179         'long double' occupies less bytes than sizeof (long double).
63180
63181 2007-03-17  Bruno Haible  <bruno@clisp.org>
63182
63183         * tests/test-crc.c (main): Make printf statements 64-bit clean.
63184         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
63185         * tests/test-getaddrinfo.c (simple): Likewise.
63186         * tests/test-read-file.c (main): Likewise.
63187
63188 2007-03-17  Bruno Haible  <bruno@clisp.org>
63189
63190         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
63191
63192 2007-03-17  Bruno Haible  <bruno@clisp.org>
63193
63194         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
63195         unused variable.
63196
63197 2007-03-17  Bruno Haible  <bruno@clisp.org>
63198
63199         * tests/test-c-strcasecmp.c: Include c-strcase.h.
63200         * tests/test-c-strncasecmp.c: Likewise.
63201
63202 2007-03-17  Bruno Haible  <bruno@clisp.org>
63203
63204         * modules/stdlib (Depends-on): Add unistd.
63205         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
63206         Needed for MacOS X 10.3.
63207
63208 2007-03-17  Bruno Haible  <bruno@clisp.org>
63209
63210         * lib/unistr/u-strdup.h: Include <stdlib.h>.
63211
63212 2007-03-17  Bruno Haible  <bruno@clisp.org>
63213
63214         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
63215
63216 2007-03-17  Bruno Haible  <bruno@clisp.org>
63217
63218         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
63219         to reflect files copied from gnulib (with or without modifications).
63220         Suggested by Jim Meyering.
63221
63222 2007-03-17  Eric Blake  <ebb9@byu.net>
63223
63224         * NEWS: Document stdlib change from 2007-02-18.
63225
63226 2007-03-17  Jim Meyering  <jim@meyering.net>
63227
63228         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
63229         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
63230         someone uses a name containing shell meta-characters.
63231         Reported by Alfred M. Szmidt.
63232
63233         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
63234
63235 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63236
63237         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
63238         and copy gettext configuration files only if configure.ac contains
63239         a use of AM_GNU_GETTEXT_VERSION.
63240
63241 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63242
63243         * build-aux/bootstrap (gnulib_name): New variable.
63244         (gnulib_tool_options): Use it.
63245
63246 2007-03-13  Simon Josefsson  <simon@josefsson.org>
63247
63248         * tests/test-des.c: Use new namespace.
63249
63250 2007-03-15  Bruno Haible  <bruno@clisp.org>
63251
63252         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
63253         Reported by James Youngman <jay@gnu.org>.
63254
63255 2007-03-15  Bruno Haible  <bruno@clisp.org>
63256
63257         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
63258         declared prototype. Needed with cc on OSF/1 5.1.
63259
63260 2007-03-15  Bruno Haible  <bruno@clisp.org>
63261
63262         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
63263         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
63264         (struct gl_list_implementation): Add dispose_fn argument to the
63265         'create_empty', 'create' methods.
63266         (struct gl_list_impl_base): Add field 'dispose_fn'.
63267         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
63268         argument.
63269         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
63270         dispose_fn argument.
63271         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
63272         dispose_fn on the dropped values.
63273         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
63274         dispose_fn argument.
63275         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
63276         dropped values.
63277         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
63278         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63279         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
63280         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63281         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
63282         argument.
63283         (gl_tree_list_free): Call dispose_fn on the dropped values.
63284         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
63285         the dropped values.
63286         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63287         Add dispose_fn argument.
63288         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
63289         Call dispose_fn on the dropped values.
63290         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
63291         Add dispose_fn argument.
63292         (gl_sublist_create): Initialize the 'dispose_fn' field.
63293         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
63294         * tests/test-array_list.c (main): Update.
63295         * tests/test-carray_list.c (main): Update.
63296         * tests/test-avltree_list.c (main): Update.
63297         * tests/test-rbtree_list.c (main): Update.
63298         * tests/test-avltreehash_list.c (main): Update.
63299         * tests/test-rbtreehash_list.c (main): Update.
63300         * tests/test-linked_list.c (main): Update.
63301         * tests/test-linkedhash_list.c (main): Update.
63302         * tests/test-array_oset.c (main): Update.
63303
63304 2007-03-15  Bruno Haible  <bruno@clisp.org>
63305
63306         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
63307         (gl_oset_create_empty): Add dispose_fn argument.
63308         (struct gl_oset_implementation): Add dispose_fn argument to
63309         'create_empty' method.
63310         (struct gl_oset_impl_base): Add dispose_fn field.
63311         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
63312         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
63313         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
63314         values.
63315         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
63316         (gl_tree_oset_free): Call dispose_fn on the dropped values.
63317         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63318         dropped value.
63319         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63320         dropped value.
63321         * tests/test-array_oset.c (main): Update.
63322         * tests/test-avltree_oset.c (main): Update.
63323         * tests/test-rbtree_oset.c (main): Update.
63324         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
63325
63326 2007-03-13  Bruno Haible  <bruno@clisp.org>
63327
63328         * tests/test-stdbool.c (i): Update after last patch.
63329
63330 2007-03-12  Bruno Haible  <bruno@clisp.org>
63331
63332         * lib/quotearg.c: Include <wctype.h> early, before the definition of
63333         the iswprint macro. Needed on Solaris 2.5.1.
63334
63335 2007-03-12  Bruno Haible  <bruno@clisp.org>
63336
63337         * tests/test-printf-frexp.c (main): Declare x as volatile.
63338
63339 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63340
63341         * doc/gnulib.texi (Build robot for gnulib): New section.
63342
63343 2007-03-12  Jim Meyering  <jim@meyering.net>
63344
63345         * build-aux/bootstrap: New file.
63346         * build-aux/bootstrap.conf: New file, from coreutils.
63347
63348 2007-03-11  Bruno Haible  <bruno@clisp.org>
63349
63350         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
63351
63352 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63353
63354         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
63355         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
63356         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
63357
63358 2007-03-11  Bruno Haible  <bruno@clisp.org>
63359
63360         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
63361         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
63362
63363 2007-03-11  Bruno Haible  <bruno@clisp.org>
63364
63365         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
63366         formula. Needed for SunPRO C 5.0.
63367
63368 2007-03-11  Bruno Haible  <bruno@clisp.org>
63369
63370         * modules/long-options (Depends-on): Add getopt.
63371
63372 2007-03-11  Bruno Haible  <bruno@clisp.org>
63373
63374         * modules/modechange (Depends-on): Add stdbool.
63375
63376 2007-03-11  Bruno Haible  <bruno@clisp.org>
63377
63378         * modules/i-ring (Depends-on): Add stdbool.
63379
63380 2007-03-11  Bruno Haible  <bruno@clisp.org>
63381
63382         * modules/gc-des (Depends-on): Add stdbool.
63383
63384 2007-03-11  Bruno Haible  <bruno@clisp.org>
63385
63386         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
63387
63388 2007-03-11  Bruno Haible  <bruno@clisp.org>
63389
63390         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
63391
63392 2007-03-11  Bruno Haible  <bruno@clisp.org>
63393
63394         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
63395
63396 2007-03-11  Bruno Haible  <bruno@clisp.org>
63397
63398         * lib/vasnprintf.c (sprintf): Undefine.
63399
63400 2007-03-11  Bruno Haible  <bruno@clisp.org>
63401
63402         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
63403         initializers in SunPRO C and Compaq C compilers.
63404
63405 2007-03-11  Bruno Haible  <bruno@clisp.org>
63406
63407         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
63408         decrementing code ANSI C compliant.
63409
63410 2007-03-11  Bruno Haible  <bruno@clisp.org>
63411
63412         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
63413         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
63414
63415 2007-03-11  Bruno Haible  <bruno@clisp.org>
63416
63417         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
63418         <stdbool.h> substitute doesn't pass.
63419
63420 2007-03-11  Bruno Haible  <bruno@clisp.org>
63421
63422         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
63423
63424 2007-03-11  Bruno Haible  <bruno@clisp.org>
63425
63426         * gnulib-tool (func_create_megatestdir): Create also an autobuild
63427         script, for submission to autobuild.josefsson.org.
63428
63429 2007-03-10  Bruno Haible  <bruno@clisp.org>
63430
63431         * modules/canonicalize-lgpl-tests: New file.
63432         * tests/test-canonicalize-lgpl.sh: New file.
63433         * tests/test-canonicalize-lgpl.c: New file.
63434
63435         * modules/c-strcase-tests: New file.
63436         * tests/test-c-strcase.sh: New file.
63437         * tests/test-c-strcasecmp.c: New file.
63438         * tests/test-c-strncasecmp.c: New file.
63439
63440         * modules/atexit-tests: New file.
63441         * tests/test-atexit.sh: New file.
63442         * tests/test-atexit.c: New file.
63443
63444 2007-03-10  Bruno Haible  <bruno@clisp.org>
63445
63446         * tests/test-binary-io.sh: Use temporary filenames that are not so
63447         likely to clash with those of other tests (in a parallel make).
63448         * tests/test-binary-io.c: Likewise.
63449
63450 2007-03-10  Bruno Haible  <bruno@clisp.org>
63451
63452         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
63453         fallback; use #error instead.
63454         Suggested by Simon Josefsson.
63455
63456 2007-03-10  Bruno Haible  <bruno@clisp.org>
63457
63458         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
63459         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
63460         first and the last.
63461
63462 2007-03-10  Bruno Haible  <bruno@clisp.org>
63463
63464         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
63465
63466 2007-03-10  Bruno Haible  <bruno@clisp.org>
63467
63468         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
63469         "make distcheck".
63470         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
63471         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
63472         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
63473
63474 2007-03-10  Bruno Haible  <bruno@clisp.org>
63475
63476         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
63477         variable.
63478         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
63479         variable.
63480
63481 2007-03-09  Eric Blake  <ebb9@byu.net>
63482         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
63483
63484         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
63485         types are not being provided by gnulib.
63486         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
63487         types are supported.
63488
63489 2007-03-10  Bruno Haible  <bruno@clisp.org>
63490
63491         * lib/stdio_.h (__attribute__): New macro.
63492         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
63493         vsprintf): Specify __attribute__ __format__ for GCC.
63494         Suggested by Eric Blake.
63495
63496 2007-03-09  Bruno Haible  <bruno@clisp.org>
63497
63498         * modules/printf-posix-tests: New file.
63499         * tests/test-printf-posix.sh: New file.
63500         * tests/test-printf-posix.c: New file.
63501
63502         * modules/printf-posix: New file.
63503         * lib/printf.c: New file.
63504         * m4/printf-posix-rpl.m4: New file.
63505         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
63506         REPLACE_PRINTF.
63507         * lib/stdio_.h (printf): New declaration.
63508         (format, __format__, ____printf____, ____scanf____, ____strftime____,
63509         ____strfmon____): New macros.
63510         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
63511         REPLACE_PRINTF.
63512
63513 2007-03-09  Bruno Haible  <bruno@clisp.org>
63514
63515         * tests/test-vasnprintf-posix2.sh: New file.
63516         * tests/test-vasnprintf-posix2.c: New file.
63517         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
63518         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
63519         (Makefile.am): Activate test-vasnprintf-posix2.sh.
63520
63521         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
63522         a locale dependent decimal point, rather than always '.'.
63523
63524 2007-03-09  Eric Blake  <ebb9@byu.net>
63525
63526         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
63527         spite of platforms like Tandem/NSK that define it to -1.
63528
63529 2007-03-08  Bruno Haible  <bruno@clisp.org>
63530
63531         * modules/vprintf-posix-tests: New file.
63532         * tests/test-vprintf-posix.sh: New file.
63533         * tests/test-vprintf-posix.c: New file.
63534         * tests/test-printf-posix.h: New file.
63535
63536         * modules/vprintf-posix: New file.
63537         * lib/vprintf.c: New file.
63538         * m4/vprintf-posix.m4: New file.
63539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
63540         REPLACE_VPRINTF.
63541         * lib/stdio_.h (vprintf): New declaration.
63542         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
63543         REPLACE_VPRINTF.
63544
63545 2007-03-08  Bruno Haible  <bruno@clisp.org>
63546
63547         * modules/fprintf-posix-tests: New file.
63548         * tests/test-fprintf-posix.sh: New file.
63549         * tests/test-fprintf-posix.c: New file.
63550
63551         * modules/fprintf-posix: New file.
63552         * lib/fprintf.c: New file.
63553         * m4/fprintf-posix.m4: New file.
63554         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
63555         REPLACE_FPRINTF.
63556         * lib/stdio_.h (fprintf): New declaration.
63557         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
63558         REPLACE_FPRINTF.
63559
63560 2007-03-08  Bruno Haible  <bruno@clisp.org>
63561
63562         * modules/vfprintf-posix-tests: New file.
63563         * tests/test-vfprintf-posix.sh: New file.
63564         * tests/test-vfprintf-posix.c: New file.
63565         * tests/test-fprintf-posix.h: New file.
63566         * tests/test-fprintf-posix.out: New file.
63567
63568         * modules/vfprintf-posix: New file.
63569         * lib/vfprintf.c: New file.
63570         * m4/vfprintf-posix.m4: New file.
63571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
63572         REPLACE_VFPRINTF.
63573         * lib/stdio_.h (vfprintf): New declaration.
63574         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
63575         REPLACE_VFPRINTF.
63576
63577 2007-03-08  Bruno Haible  <bruno@clisp.org>
63578
63579         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
63580
63581 2007-03-08  Bruno Haible  <bruno@clisp.org>
63582
63583         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
63584         instead of 'expr' invocations.
63585         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63586         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63587         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63588         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63589         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63590         Suggested by Paul Eggert.
63591
63592 2007-03-08  Bruno Haible  <bruno@clisp.org>
63593
63594         * modules/fseterr-tests: New file.
63595         * tests/test-fseterr.c: New file.
63596
63597         * modules/fseterr: New file.
63598         * lib/fseterr.h: New file.
63599         * lib/fseterr.c: New file.
63600
63601 2007-03-08  Bruno Haible  <bruno@clisp.org>
63602
63603         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
63604         * lib/getopt_.h: Likewise.
63605         * lib/mbswidth.h: Likewise.
63606         * lib/setenv.h: Likewise.
63607         * lib/vasnprintf.h: Likewise.
63608         * lib/vasprintf.h: Likewise.
63609         * lib/verror.h: Likewise.
63610         * lib/xsetenv.h: Likewise.
63611         * lib/xvasprintf.h: Likewise.
63612
63613 2007-03-08  Jim Meyering  <jim@meyering.net>
63614
63615         * users.txt: Add parted.
63616
63617         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
63618
63619 2007-03-07  Bruno Haible  <bruno@clisp.org>
63620
63621         * m4/printf.m4: Make the shell script snippets copy&pastable.
63622
63623 2007-03-02  Bruno Haible  <bruno@clisp.org>
63624
63625         * lib/netinet_in_.h: New file.
63626         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
63627         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
63628         * modules/netinet_in (Files): Add lib/netinet_in_.h.
63629         (Depends-on): Add absolute-header.
63630         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
63631         into netinet/in.h.
63632
63633 2007-03-03  Bruno Haible  <bruno@clisp.org>
63634
63635         * lib/sys_select_.h: New file.
63636         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
63637         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
63638         * modules/sys_select (Files): Add lib/sys_select_.h.
63639         (Depends-on): Add absolute-header.
63640         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
63641         into sys/select.h.
63642
63643 2007-03-02  Bruno Haible  <bruno@clisp.org>
63644
63645         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
63646         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
63647         values.
63648         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
63649         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
63650         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
63651         * modules/sys_socket (Depends-on): Add absolute-header.
63652         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
63653         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
63654         (Include): Remove requirement of inclusion of <sys/types.h>.
63655
63656 2007-03-02  Bruno Haible  <bruno@clisp.org>
63657
63658         * lib/byteswap_.h (bswap_32): Fix formula.
63659
63660 2007-03-06  Bruno Haible  <bruno@clisp.org>
63661
63662         * modules/sprintf-posix-tests: New file.
63663         * tests/test-sprintf-posix.c: New file.
63664
63665         * modules/sprintf-posix: New file.
63666         * lib/sprintf.c: New file.
63667         * m4/sprintf-posix.m4: New file.
63668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
63669         REPLACE_SPRINTF.
63670         * lib/stdio_.h (sprintf): New declaration.
63671         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
63672         REPLACE_SPRINTF.
63673
63674 2007-03-06  Bruno Haible  <bruno@clisp.org>
63675
63676         * modules/vsprintf-posix-tests: New file.
63677         * tests/test-vsprintf-posix.c: New file.
63678         * tests/test-sprintf-posix.h: New file.
63679
63680         * modules/vsprintf-posix: New file.
63681         * lib/vsprintf.c: New file.
63682         * m4/vsprintf-posix.m4: New file.
63683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
63684         REPLACE_VSPRINTF.
63685         * lib/stdio_.h (vsprintf): New declaration.
63686         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
63687         REPLACE_VSPRINTF.
63688
63689 2007-03-06  Bruno Haible  <bruno@clisp.org>
63690
63691         * modules/vsnprintf (Depend-on): Remove minmax.
63692
63693 2007-03-06  Bruno Haible  <bruno@clisp.org>
63694
63695         * modules/snprintf-posix-tests: New file.
63696         * tests/test-snprintf-posix.c: New file.
63697
63698         * modules/snprintf-posix: New file.
63699         * m4/snprintf-posix.m4: New file.
63700         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
63701         gl_FUNC_SNPRINTF.
63702         (gl_FUNC_SNPRINTF): Invoke it.
63703         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
63704         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
63705         is set.
63706         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
63707
63708 2007-03-06  Bruno Haible  <bruno@clisp.org>
63709
63710         * modules/vsnprintf-posix-tests: New file.
63711         * tests/test-vsnprintf-posix.c: New file.
63712         * tests/test-snprintf-posix.h: New file.
63713
63714         * modules/vsnprintf-posix: New file.
63715         * m4/vsnprintf-posix.m4: New file.
63716         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
63717         gl_FUNC_VSNPRINTF.
63718         (gl_FUNC_VSNPRINTF): Invoke it.
63719         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
63720         * lib/stdio_.h (vsnprintf): Define as a replacement if
63721         REPLACE_VSNPRINTF is set.
63722         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
63723
63724 2007-03-06  Bruno Haible  <bruno@clisp.org>
63725
63726         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
63727         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
63728
63729 2007-03-06  Bruno Haible  <bruno@clisp.org>
63730
63731         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
63732         (asinl): Declare also if HAVE_DECL_ASINL is set.
63733         (atanl): Declare also if HAVE_DECL_ATANL is set.
63734         (ceill): Declare also if HAVE_DECL_CEILL is set.
63735         (cosl): Declare also if HAVE_DECL_COSL is set.
63736         (expl): Declare also if HAVE_DECL_EXPL is set.
63737         (floorl): Declare also if HAVE_DECL_FLOORL is set.
63738         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
63739         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
63740         (logl): Declare also if HAVE_DECL_LOGL is set.
63741         (sinl): Declare also if HAVE_DECL_SINL is set.
63742         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
63743         (tanl): Declare also if HAVE_DECL_TANL is set.
63744         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
63745         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
63746         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
63747         declaration of frexpl, ldexpl.
63748         * modules/printf-frexpl (Depends-on): Add math.
63749         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
63750
63751 2007-03-05  Bruno Haible  <bruno@clisp.org>
63752
63753         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
63754         frexpl and ldexpl are declared.
63755         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
63756
63757 2007-03-05  Bruno Haible  <bruno@clisp.org>
63758
63759         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
63760         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
63761
63762 2007-03-05  Bruno Haible  <bruno@clisp.org>
63763
63764         * lib/stdio_.h: Include <stddef.h>.
63765
63766 2007-03-05  Bruno Haible  <bruno@clisp.org>
63767
63768         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
63769
63770 2007-03-05  Bruno Haible  <bruno@clisp.org>
63771
63772         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
63773         NetBSD 4, from Ralf Wildenhues.
63774
63775 2007-03-04  Bruno Haible  <bruno@clisp.org>
63776
63777         * lib/vasprintf.h: Update #if logic for the case when the functions
63778         exist but are overridden.
63779
63780 2007-03-04  Bruno Haible  <bruno@clisp.org>
63781
63782         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
63783         implementations: glibc-2.4 and MacOS X 10.3.
63784         * tests/test-vasnprintf-posix.c (test_function): Test also the case
63785         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
63786         * tests/test-vasprintf-posix.c (test_function): Likewise.
63787
63788 2007-03-04  Bruno Haible  <bruno@clisp.org>
63789
63790         * modules/vasprintf-posix-tests: New file.
63791         * tests/test-vasprintf-posix.c: New file.
63792
63793         * modules/vasprintf-posix: New file.
63794         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
63795         defined.
63796         * m4/vasprintf-posix.m4: New file.
63797         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
63798         gl_FUNC_VASPRINTF.
63799         (gl_FUNC_VASPRINTF): Invoke it.
63800         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
63801         here.
63802         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
63803
63804 2007-03-04  Bruno Haible  <bruno@clisp.org>
63805
63806         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
63807         REPLACE_GETTIMEOFDAY.
63808         * modules/sys_time (Makefile.am): Likewise.
63809         * m4/sys_time_h.m4: Likewise.
63810         * m4/gettimeofday.m4: Likewise.
63811
63812 2007-03-04  Bruno Haible  <bruno@clisp.org>
63813
63814         * modules/vasnprintf-posix-tests: New file.
63815         * tests/test-vasnprintf-posix.c: New file.
63816
63817         * modules/vasnprintf-posix: New file.
63818         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
63819         printf-frexpl.h.
63820         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
63821         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
63822         REPLACE_VASNPRINTF is defined.
63823         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
63824         gl_FUNC_VASNPRINTF.
63825         (gl_FUNC_VASNPRINTF): Invoke it.
63826         * m4/vasnprintf-posix.m4: New file.
63827         * m4/printf.m4: New file.
63828
63829 2007-03-04  Bruno Haible  <bruno@clisp.org>
63830
63831         Compile progreloc.c only if --enable-relocatable is specified.
63832         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
63833         if --enable-relocatable was specified.
63834         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
63835         lib_SOURCES.
63836
63837 2007-03-04  Jim Meyering  <jim@meyering.net>
63838
63839         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
63840         Use it consistently, rather than enumerating errno constants.
63841
63842 2007-03-04  Bruno Haible  <bruno@clisp.org>
63843
63844         * modules/xvasprintf-tests: New file.
63845         * tests/test-xvasprintf.c: New file.
63846
63847         * modules/vasprintf-tests: New file.
63848         * tests/test-vasprintf.c: New file.
63849
63850         * modules/vasnprintf-tests: New file.
63851         * tests/test-vasnprintf.c: New file.
63852
63853         * modules/vsnprintf-tests: New file.
63854         * tests/test-vsnprintf.c: New file.
63855
63856         * modules/snprintf-tests: New file.
63857         * tests/test-snprintf.c: New file.
63858
63859 2007-03-04  Bruno Haible  <bruno@clisp.org>
63860
63861         Compile relocatable.c only if --enable-relocatable is specified.
63862         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
63863         gl_RELOCATABLE_LIBRARY.
63864         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
63865         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
63866         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
63867         gl_RELOCATABLE_LIBRARY.
63868         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
63869         (Makefile.am): Remove lib_SOURCES.
63870         * modules/relocatable-lib-lgpl (configure.ac): Invoke
63871         gl_RELOCATABLE_LIBRARY.
63872         (Makefile.am): Remove lib_SOURCES.
63873         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
63874         always.
63875         * modules/relocatable-prog-wrapper (configure.ac): Invoke
63876         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
63877
63878 2007-03-04  Bruno Haible  <bruno@clisp.org>
63879
63880         * modules/argmatch-tests: New file.
63881         * tests/test-argmatch.c: New file.
63882
63883         * tests/test-allocsa.c (main): Halve the number of loop runs.
63884
63885         * modules/alloca-opt-tests: New file.
63886         * tests/test-alloca-opt.c: New file.
63887
63888 2007-03-04  Jim Meyering  <jim@meyering.net>
63889
63890         Work around difference between Linux ACLs and Solaris 10 ZFS.
63891         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
63892         for EINVAL.
63893
63894 2007-03-03  Bruno Haible  <bruno@clisp.org>
63895
63896         * modules/relocatable-prog (Depends-on): Add back progreloc's
63897         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
63898
63899 2007-03-03  Bruno Haible  <bruno@clisp.org>
63900
63901         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
63902         * modules/relocatable-lib: New file.
63903
63904 2007-03-03  Bruno Haible  <bruno@clisp.org>
63905
63906         * modules/relocatable-prog: Renamed from modules/relocatable.
63907         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
63908
63909 2007-03-03  Bruno Haible  <bruno@clisp.org>
63910
63911         * modules/relocatable-script (Files): Add doc/relocatable.texi,
63912         m4/relocatable-lib.m4.
63913         (Depends-on): Remove 'relocatable'.
63914         (configure.ac): Add gl_RELOCATABLE_NOP.
63915
63916 2007-03-03  Bruno Haible  <bruno@clisp.org>
63917
63918         * modules/relocatable-prog-wrapper: New file.
63919         * modules/relocatable (Depends-on): Add it. Remove all other
63920         dependencies except progname.
63921         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
63922
63923         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
63924         (gl_FUNC_STRERROR): Nop.
63925         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
63926
63927         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
63928         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
63929
63930         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
63931         (gl_FUNC_READLINK): Update.
63932
63933         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
63934
63935 2007-03-03  Bruno Haible  <bruno@clisp.org>
63936
63937         * lib/xreadlink.c: Include <unistd.h> unconditionally.
63938         * modules/xreadlink (Depends-on): Add unistd.
63939         * modules/xreadlink-with-size (Depends-on): Likewise.
63940
63941 2007-03-03  Bruno Haible  <bruno@clisp.org>
63942
63943         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
63944         extracted from gt_FUNC_SETENV.
63945         (gt_FUNC_SETENV): Remove macro.
63946         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
63947         remove gt_FUNC_SETENV.
63948
63949 2007-03-03  Bruno Haible  <bruno@clisp.org>
63950
63951         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
63952         ENABLE_RELOCATABLE here.
63953         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
63954
63955 2007-03-03  Bruno Haible  <bruno@clisp.org>
63956
63957         * modules/rbtreehash-list-tests (Depends-on): Add progname.
63958         * tests/test-rbtreehash_list.c: Include progname.h.
63959         (main): Call set_program_name.
63960
63961         * modules/rbtree-oset-tests (Depends-on): Add progname.
63962         * tests/test-rbtree_oset.c: Include progname.h.
63963         (main): Call set_program_name.
63964
63965         * modules/rbtree-list-tests (Depends-on): Add progname.
63966         * tests/test-rbtree_list.c: Include progname.h.
63967         (main): Call set_program_name.
63968
63969         * modules/linked-list-tests (Depends-on): Add progname.
63970         * tests/test-linked_list.c: Include progname.h.
63971         (main): Call set_program_name.
63972
63973 2007-03-03  Bruno Haible  <bruno@clisp.org>
63974
63975         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
63976         All uses of __restrict changed to _Restrict_.
63977         * lib/glob_.h (__restrict): Remove macro.
63978
63979 2007-03-02  Bruno Haible  <bruno@clisp.org>
63980
63981         * modules/gettext (configure.ac): Require gettext infrastructure
63982         from version 0.16.1.
63983
63984 2007-03-02  Bruno Haible  <bruno@clisp.org>
63985
63986         * modules/linkedhash-list-tests (Depends-on): Add progname.
63987         * tests/test-linkedhash_list.c: Include progname.h.
63988         (main): Call set_program_name.
63989
63990         * modules/carray-list-tests (Depends-on): Add progname.
63991         * tests/test-carray_list.c: Include progname.h.
63992         (main): Call set_program_name.
63993
63994         * modules/avltreehash-list-tests (Depends-on): Add progname.
63995         * tests/test-avltreehash_list.c: Include progname.h.
63996         (main): Call set_program_name.
63997
63998         * modules/avltree-oset-tests (Depends-on): Add progname.
63999         * tests/test-avltree_oset.c: Include progname.h.
64000         (main): Call set_program_name.
64001
64002         * modules/avltree-list-tests (Depends-on): Add progname.
64003         * tests/test-avltree_list.c: Include progname.h.
64004         (main): Call set_program_name.
64005
64006         * modules/array-oset-tests (Depends-on): Add progname.
64007         * tests/test-array_oset.c: Include progname.h.
64008         (main): Call set_program_name.
64009
64010         * modules/array-list-tests (Depends-on): Add progname.
64011         * tests/test-array_list.c: Include progname.h.
64012         (main): Call set_program_name.
64013
64014         * modules/argp-tests (Depends-on): Add progname.
64015         * tests/test-argp.c: Include argp.h first. Include progname.h.
64016         (main): Call set_program_name.
64017
64018 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
64019
64020         * doc/gnulib-tool.texi (Initial import): Reword description of
64021         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
64022         limited effect even if defined after the first system include.
64023
64024 2007-03-01  Bruno Haible  <bruno@clisp.org>
64025
64026         * build-aux/config.libpath: Update to libtool-1.5.22.
64027         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64028
64029 2007-03-01  Bruno Haible  <bruno@clisp.org>
64030
64031         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
64032         foo_CFLAGS.
64033         Reported by Ralf Wildenhues.
64034
64035 2007-03-01  Bruno Haible  <bruno@clisp.org>
64036
64037         * build-aux/install-reloc: Remove object files left over by some
64038         compilers.
64039         Reported by Ralf Wildenhues.
64040
64041 2007-03-01  Bruno Haible  <bruno@clisp.org>
64042
64043         * build-aux/install-reloc: Break long lines.
64044
64045 2007-03-01  Bruno Haible  <bruno@clisp.org>
64046
64047         * doc/relocatable.texi: Document that it may not work on OpenBSD.
64048         Reported by Ralf Wildenhues.
64049
64050 2007-03-01  Bruno Haible  <bruno@clisp.org>
64051
64052         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
64053         include ordering constraints.
64054
64055 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64056
64057         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
64058         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
64059         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
64060         as another example.
64061         * lib/time_.h: Fix misspelling.
64062         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64063         Require gl_HEADER_TIME_H_DEFAULTS.
64064         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
64065         * m4/time_r.m4 (gl_TIME_R): Likewise.
64066         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
64067
64068 2007-03-01  Bruno Haible  <bruno@clisp.org>
64069
64070         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
64071         * m4/utimens.m4 (gl_UTIMENS): Likewise.
64072
64073 2007-03-01  Jim Meyering  <jim@meyering.net>
64074
64075         * modules/xreadlink (Maintainer): Add my name.
64076         * modules/xreadlink-with-size (Depends-on): Alphabetize.
64077
64078 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
64079             Bruno Haible  <bruno@clisp.org>
64080
64081         * build-aux/install-reloc: Compile also c-ctype.c.
64082         * build-aux/relocatable.sh.in: New file.
64083         * doc/relocatable.texi: New file.
64084         * doc/relocatable-maint.texi: New file.
64085         * doc/gnulib.texi: Include relocatable-maint.texi.
64086         * lib/progreloc.c: Include unistd.h unconditionally.
64087         * lib/relocwrapper.c: Include unistd.h unconditionally.
64088         Include c-ctype.h.
64089         (add_dotbin): Use c_tolower.
64090         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
64091         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
64092         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
64093         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
64094         to m4/relocatable-lib.m4.
64095         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
64096         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
64097         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
64098         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
64099         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
64100         * modules/relocatable: New file.
64101         * modules/relocatable-lib: New file.
64102         * modules/relocatable-script: New file.
64103
64104 2007-02-28  Bruno Haible  <bruno@clisp.org>
64105
64106         Import --enable-relocatable infrastructure.
64107         * build-aux/config.libpath: New file, from GNU gettext.
64108         * build-aux/install-reloc: New file, from GNU gettext.
64109         * build-aux/reloc-ldflags: New file, from GNU gettext.
64110         * lib/relocatable.h: New file, from GNU gettext.
64111         * lib/relocatable.c: New file, from GNU gettext.
64112         * lib/relocwrapper.c: New file, from GNU gettext.
64113         * m4/relocatable.m4: New file, from GNU gettext.
64114
64115 2007-02-28  Bruno Haible  <bruno@clisp.org>
64116
64117         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
64118
64119         * modules/xreadlink: New file, from GNU gettext with modifications.
64120         * lib/xreadlink.c: New file, from GNU gettext.
64121         * lib/xreadlink.h: Add comments.
64122         (xreadlink): New declaration.
64123
64124         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
64125         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
64126         lib/xreadlink-with-size.c.
64127         (configure.ac): Remove gl_XREADLINK invocation.
64128         (Makefile.am): Augment lib_SOURCES.
64129         * m4/xreadlink.m4: Remove file.
64130         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
64131         (xreadlink_with_size): Renamed from xreadink.
64132         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
64133         * modules/canonicalize (Depends-on): Replace xreadlink with
64134         xreadlink-with-size.
64135         * lib/canonicalize.c (canonicalize_filename_mode): Update.
64136
64137 2007-02-25  Jim Meyering  <jim@meyering.net>
64138
64139         * build-aux/announce-gen: When complaining about excess arguments,
64140         list them.
64141
64142 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
64143
64144         * README: Document signed integer overflow situation more
64145         accurately.
64146
64147 2007-02-25  Bruno Haible  <bruno@clisp.org>
64148
64149         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
64150         'a' or 'A' conversion.
64151
64152 2007-02-25  Bruno Haible  <bruno@clisp.org>
64153
64154         * modules/filename: Renamed from modules/pathname.
64155         (Files): Replace lib/pathname.h with lib/filename.h. Replace
64156         lib/concatpath.c with lib/concat-filename.c.
64157         (Makefile.am): Update.
64158         (Include): Replace pathname.h with filename.h.
64159         * lib/filename.h: Renamed from lib/pathname.h.
64160         (concatenated_filename): Renamed from concatenated_pathname.
64161         * lib/concat-filename.c: Renamed from lib/concatpath.c.
64162         (concatenated_filename): Renamed from concatenated_pathname.
64163         * lib/findprog.c: Include filename.h instead of pathname.h.
64164         (find_in_path): Update.
64165         * lib/javacomp.c: Include filename.h instead of pathname.h.
64166         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
64167         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
64168         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
64169         is_oldgcj_14_13_usable, is_javac_usable): Update.
64170         * lib/javaexec.c: Include filename.h instead of pathname.h.
64171         (execute_java_class): Update.
64172         * modules/findprog: Update.
64173         * modules/javacomp: Update.
64174         * modules/javaexec: Update.
64175         * MODULES.html.sh (File system functions): Add 'filename', remove
64176         'pathname'.
64177
64178 2007-02-25  Bruno Haible  <bruno@clisp.org>
64179
64180         * modules/printf-frexpl-tests: New file.
64181         * tests/test-printf-frexpl.c: New file.
64182
64183         * modules/printf-frexpl: New file.
64184         * lib/printf-frexpl.h: New file.
64185         * lib/printf-frexpl.c: New file.
64186         * m4/printf-frexpl.m4: New file.
64187
64188 2007-02-25  Bruno Haible  <bruno@clisp.org>
64189
64190         * modules/printf-frexp-tests: New file.
64191         * tests/test-printf-frexp.c: New file.
64192
64193         * modules/printf-frexp: New file.
64194         * lib/printf-frexp.h: New file.
64195         * lib/printf-frexp.c: New file.
64196         * m4/printf-frexp.m4: New file.
64197
64198 2007-02-25  Bruno Haible  <bruno@clisp.org>
64199
64200         Assume automake >= 1.10 for the tests.
64201         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
64202         * modules/arctwo-tests: Likewise.
64203         * modules/argp-tests: Likewise.
64204         * modules/avltree-list-tests: Likewise.
64205         * modules/avltree-oset-tests: Likewise.
64206         * modules/avltreehash-list-tests: Likewise.
64207         * modules/carray-list-tests: Likewise.
64208         * modules/crc-tests: Likewise.
64209         * modules/des-tests: Likewise.
64210         * modules/gc-arcfour-tests: Likewise.
64211         * modules/gc-arctwo-tests: Likewise.
64212         * modules/gc-des-tests: Likewise.
64213         * modules/gc-hmac-md5-tests: Likewise.
64214         * modules/gc-hmac-sha1-tests: Likewise.
64215         * modules/gc-md2-tests: Likewise.
64216         * modules/gc-md4-tests: Likewise.
64217         * modules/gc-md5-tests: Likewise.
64218         * modules/gc-pbkdf2-sha1-tests: Likewise.
64219         * modules/gc-rijndael-tests: Likewise.
64220         * modules/gc-sha1-tests: Likewise.
64221         * modules/gc-tests: Likewise.
64222         * modules/getaddrinfo-tests: Likewise.
64223         * modules/hmac-md5-tests: Likewise.
64224         * modules/hmac-sha1-tests: Likewise.
64225         * modules/linked-list-tests: Likewise.
64226         * modules/linkedhash-list-tests: Likewise.
64227         * modules/lock-tests: Likewise.
64228         * modules/md2-tests: Likewise.
64229         * modules/md4-tests: Likewise.
64230         * modules/md5-tests: Likewise.
64231         * modules/rbtree-list-tests: Likewise.
64232         * modules/rbtree-oset-tests: Likewise.
64233         * modules/rbtreehash-list-tests: Likewise.
64234         * modules/read-file-tests: Likewise.
64235         * modules/rijndael-tests: Likewise.
64236         * modules/stdint-tests: Likewise.
64237         * modules/tls-tests: Likewise.
64238
64239 2007-02-24  Bruno Haible  <bruno@clisp.org>
64240
64241         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
64242         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
64243         function; instead check whether isnan with a double argument links.
64244         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
64245         function; instead check whether isnan with a 'long double' argument
64246         links.
64247         Reported by Eric Blake <ebb9@byu.net>.
64248
64249 2007-02-24  Bruno Haible  <bruno@clisp.org>
64250
64251         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
64252         defined.
64253         * lib/isnanl.c: Remove all code. Just include isnan.c.
64254         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
64255
64256 2007-02-25  Jim Meyering  <jim@meyering.net>
64257
64258         Avoid conflicting types for 'unsetenv' on FreeBSD.
64259         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
64260         conflicting with FreeBSD's (5.0 and 6.1) function declaration
64261         in stdlib.h.
64262
64263 2007-02-24  Bruno Haible  <bruno@clisp.org>
64264
64265         * modules/isnanl-nolibm-tests: New file.
64266         * tests/test-isnanl.c: New file.
64267
64268         * modules/isnanl-nolibm: New file.
64269         * lib/isnanl.h: New file.
64270         * lib/isnanl.c: New file.
64271         * m4/isnanl.m4: New file.
64272
64273 2007-02-24  Bruno Haible  <bruno@clisp.org>
64274
64275         * modules/isnan-nolibm-tests: New file.
64276         * tests/test-isnan.c: New file.
64277
64278         * modules/isnan-nolibm: New file.
64279         * lib/isnan.h: New file.
64280         * lib/isnan.c: New file.
64281         * m4/isnan.m4: New file.
64282
64283 2007-02-24  Bruno Haible  <bruno@clisp.org>
64284
64285         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
64286         assume that an exponent fits in 20 bits.
64287
64288 2007-02-24  Jim Meyering  <jim@meyering.net>
64289
64290         * m4/regex.m4: Update the description of the configure-time option,
64291         --without-included-regex, to state accurately what the defaults are,
64292         and perhaps to give people an idea why using this option is risky.
64293
64294 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64295
64296         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
64297         loops on small arguments.  This attempts to avoid the problem
64298         Bruno Haible reported for AIX 4.3.2 in
64299         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
64300
64301 2007-02-23  Bruno Haible  <bruno@clisp.org>
64302
64303         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
64304         Needed for help2man.
64305
64306 2007-02-23  Karl Berry  <karl@gnu.org>
64307
64308         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
64309         exists, foo.h should be cvs-ignored, not committed.
64310
64311 2007-02-23  Eric Blake  <ebb9@byu.net>
64312
64313         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
64314         * lib/stat-time.h (includes): Likewise.
64315         * lib/utimecmp.c (includes): Likewise.
64316         * lib/utimens.h (includes): Likewise.
64317         * lib/getdate.y (includes): Also include "timespec.h" for use
64318         internal to the module.
64319         * modules/utimens (Depends-on): Revert yesterday's patch.
64320         * modules/nanosleep (Depends-on): Add missing dependency.
64321
64322 2007-02-22  Bruno Haible  <bruno@clisp.org>
64323
64324         * lib/glob.c: Don't include getlogin_r.h.
64325
64326 2007-02-22  Jim Meyering  <jim@meyering.net>
64327
64328         * modules/utimens (Depends-on): Add timespec, required for
64329         utimens.h's inclusion of timespec.h.
64330
64331 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
64332
64333         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
64334         long unreadable paths in GNU/Linux.  Problem reported by Andreas
64335         Schwab in
64336         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
64337         I'll try to think of a better way to fix the Solaris problem.
64338
64339         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
64340         like glibc; on Solaris 10, it fails with errno == EINVAL.
64341         POSIX says the behavior is unspecified if the first argument is NULL,
64342         so play it safe and never pass NULL to the system getcwd.
64343
64344 2007-02-21  Jim Meyering  <jim@meyering.net>
64345
64346         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
64347         of gettimeofday.  It would conflict with the one now always
64348         provided via sys_time_.h.  Reported by Matthew Woehlke, as
64349         an IRIX 6.5 build failure.
64350
64351 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64352
64353         Minor fixups to port to Solaris 10 with Sun C 5.8.
64354         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
64355         * modules/getcwd (Depends-on): Add dirfd.
64356         * lib/putenv.c (putenv): #undef it.
64357         (rpl_putenv): New decl.
64358         (malloc, free): Include <stdlib.h> rather than prototyping separately.
64359
64360 2007-02-20  Bruno Haible  <bruno@clisp.org>
64361
64362         * modules/stdio-tests: New file.
64363         * tests/test-stdio.c: New file.
64364
64365         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
64366         (Depends-on): Add stdio.
64367         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64368         (Include): Use <stdio.h> instead of vsnprintf.h.
64369         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64370         HAVE_DECL_VSNPRINTF.
64371         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
64372
64373         * modules/snprintf (Files): Remove lib/snprintf.h.
64374         (Depends-on): Add stdio.
64375         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64376         (Include): Use <stdio.h> instead of snprintf.h.
64377         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64378         HAVE_DECL_SNPRINTF.
64379         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
64380         * lib/getaddrinfo.c: Likewise.
64381
64382         * modules/stdio: New file.
64383         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
64384         * lib/snprintf.h: Remove file.
64385         * lib/vsnprintf.h: Remove file.
64386         * lib/.cppi-disable: Remove snprintf.h.
64387         * m4/stdio_h.m4: New file.
64388         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
64389
64390 2007-02-20  Jim Meyering  <jim@meyering.net>
64391
64392         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
64393         used by e.g., mingw.  From Bruno Haible.
64394
64395 2007-02-19  Bruno Haible  <bruno@clisp.org>
64396
64397         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
64398         warnings.
64399         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64400
64401 2007-02-19  Bruno Haible  <bruno@clisp.org>
64402
64403         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
64404         from mingw users.
64405
64406 2007-02-19  Bruno Haible  <bruno@clisp.org>
64407
64408         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
64409         warnings.
64410         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
64411
64412 2007-02-19  Jim Meyering  <jim@meyering.net>
64413
64414         Don't use FD after a successful "fdopendir (fd)".
64415         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
64416         Reset it by calling dirfd on the just-obtained DIR*.
64417
64418         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
64419         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
64420
64421 2007-02-18  Bruno Haible  <bruno@clisp.org>
64422
64423         * lib/readlink.c: Include <unistd.h>.
64424         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
64425         HAVE_READLINK.
64426         * modules/readlink (Depends-on): Add unistd.
64427         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64428         (Include): Add <unistd.h>.
64429
64430         * lib/getlogin_r.h: Remove file.
64431         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
64432         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
64433         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
64434         HAVE_DECL_GETLOGIN_R.
64435         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
64436         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64437         (Include): Use <unistd.h> instead of getlogin_r.h.
64438
64439         * lib/getcwd.h: Remove file.
64440         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
64441         * lib/xgetcwd.c: Likewise.
64442         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
64443         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
64444         * modules/getcwd (Files): Remove lib/getcwd.h.
64445         (Depends-on): Add unistd.
64446         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64447         (Include): Use <unistd.h> instad of getcwd.h.
64448
64449         * lib/ftruncate.c: Include <unistd.h> first.
64450         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
64451         Set HAVE_FTRUNCATE.
64452         * modules/ftruncate (Depends-on): Add unistd.
64453         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64454
64455         * lib/fchdir.c: Include <unistd.h> first.
64456         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
64457         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
64458         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
64459         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64460         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
64461
64462         * lib/dup2.c: Include <unistd.h> first.
64463         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
64464         HAVE_DUP2.
64465         * modules/dup2 (Depends-on): Add unistd.
64466         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64467
64468         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
64469         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
64470         REPLACE_CHOWN. Don't define chown as a macro here.
64471         * modules/chown (Depends-on): Add unistd.
64472         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64473
64474         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
64475         Add definition for GL_LINK_WARNING.
64476         (chown, dup2): New declarations.
64477         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
64478         link warning.
64479         (ftruncate): New declaration.
64480         (getcwd): New declaration, taken from old getcwd.h.
64481         (getlogin_r): New declaration, taken from old getlogin_r.h.
64482         (readlink): New declaration.
64483         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
64484         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
64485         (gl_PREREQ_UNISTD): Remove macro.
64486         (gl_UNISTD_MODULE_INDICATOR): New macro.
64487         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
64488         many new variables. Don't set UNISTD_H.
64489         * modules/unistd (Description): Change.
64490         (Depends-on): Add link-warning.
64491         (configure.ac): Update.
64492         (Makefile.am): Create unistd.h always. Substitute many new variables
64493         into it.
64494
64495 2007-02-18  Bruno Haible  <bruno@clisp.org>
64496
64497         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
64498         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
64499         HAVE_GETSUBOPT.
64500         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
64501         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
64502         * lib/getsubopt.h: Remove file.
64503         * modules/getsubopt (Files): Remove lib/getsubopt.h.
64504         (Depends-on): Add stdlib.
64505         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64506         (Includes): Use <stdlib.h> instead of getsubopt.h.
64507         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
64508         Set HAVE_GETSUBOPT.
64509         * lib/getsubopt.c: Don't include getsubopt.h.
64510
64511 2007-02-18  Bruno Haible  <bruno@clisp.org>
64512
64513         * modules/fchdir (Depends-on): Add dup2.
64514
64515 2007-02-18  Bruno Haible  <bruno@clisp.org>
64516
64517         * lib/stdlib_.h: Handle glibc's special invocation convention
64518         specially.
64519
64520 2007-02-18  Bruno Haible  <bruno@clisp.org>
64521
64522         * modules/stdlib-tests: New file.
64523         * tests/test-stdlib.c: New file.
64524
64525         * modules/mkstemp (Files): Remove lib/mkstemp.h.
64526         (Depends-on): Add stdlib.
64527         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64528         (Includes): Use <stdlib.h> instead of mkstemp.h.
64529         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64530         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
64531         * lib/mkstemp.c: Don't include mkstemp.h.
64532         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
64533         * lib/stdlib--.h: Don't include mkstemp.h.
64534
64535         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
64536         (Depends-on): Add stdlib.
64537         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64538         (Includes): Use <stdlib.h> instead of mkdtemp.h.
64539         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64540         HAVE_MKDTEMP.
64541         * lib/mkdtemp.c: Don't include mkdtemp.h.
64542         * lib/clean-temp.c: Don't include mkdtemp.h.
64543
64544         * modules/exit (Files): Remove lib/exit.h.
64545         (Depends-on): Add stdlib.
64546         (Makefile.am): Remove lib_SOURCES.
64547         (Include): Use <stdlib.h> instead of exit.h.
64548         * lib/argmatch.c: Don't include exit.h.
64549         * lib/execute.c: Likewise.
64550         * lib/pagealign_alloc.c: Likewise.
64551         * lib/pipe.c: Likewise.
64552         * lib/wait-process.c: Likewise.
64553         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
64554         * lib/exitfail.c: Likewise.
64555         * lib/savewd.c: Likewise.
64556         * lib/xsetenv.c: Likewise.
64557
64558         * modules/stdlib: New file.
64559         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
64560         and extra comments about mkstemp().
64561         * lib/exit.h: Remove file.
64562         * lib/mkdtemp.h: Remove file.
64563         * lib/mkstemp.h: Remove file.
64564         * m4/stdlib_h.m4: New file.
64565         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
64566
64567 2007-02-18  Bruno Haible  <bruno@clisp.org>
64568
64569         * modules/math-tests: New file.
64570         * tests/test-math.c: New file.
64571
64572         * modules/math: New file.
64573         * modules/mathl (Files): Remove lib/mathl.h.
64574         (Depends-on): Add math.
64575         (Makefile.am): Don't mention mathl.h.
64576         (Include): Use <math.h> instead of mathl.h.
64577         * lib/math_.h: New file.
64578         * lib/mathl.h: Remove file.
64579         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
64580         mathl.h.
64581         * lib/asinl.c: Likewise.
64582         * lib/atanl.c: Likewise.
64583         * lib/ceill.c: Likewise.
64584         * lib/cosl.c: Likewise.
64585         * lib/expl.c: Likewise.
64586         * lib/floorl.c: Likewise.
64587         * lib/frexpl.c: Likewise.
64588         * lib/ldexpl.c: Likewise.
64589         * lib/logl.c: Likewise.
64590         * lib/sincosl.c: Likewise.
64591         * lib/sinl.c: Likewise.
64592         * lib/sqrtl.c: Likewise.
64593         * lib/tanl.c: Likewise.
64594         * lib/trigl.c: Likewise.
64595         * m4/math_h.m4: New file.
64596         * MODULES.html.sh (Mathematics): Add math.
64597
64598 2007-02-17  Bruno Haible  <bruno@clisp.org>
64599
64600         * modules/wctype-tests: New file.
64601         * tests/test-wctype.c: New file.
64602
64603         * modules/wchar-tests: New file.
64604         * tests/test-wchar.c: New file.
64605
64606         * modules/unistd-tests: New file.
64607         * tests/test-unistd.c: New file.
64608
64609         * modules/time-tests: New file.
64610         * tests/test-time.c: New file.
64611
64612         * modules/sysexits-tests: New file.
64613         * tests/test-sysexits.c: New file.
64614
64615         * modules/sys_time-tests: New file.
64616         * tests/test-sys_time.c: New file.
64617
64618         * modules/sys_stat-tests: New file.
64619         * tests/test-sys_stat.c: New file.
64620
64621         * modules/sys_socket-tests: New file.
64622         * tests/test-sys_socket.c: New file.
64623
64624         * modules/sys_select-tests: New file.
64625         * tests/test-sys_select.c: New file.
64626
64627         * modules/string-tests: New file.
64628         * tests/test-string.c: New file.
64629
64630         * modules/stdbool-tests: New file.
64631         * tests/test-stdbool.c: New file.
64632
64633         * modules/netinet_in-tests: New file.
64634         * tests/test-netinet_in.c: New file.
64635
64636         * modules/inttypes-tests: New file.
64637         * tests/test-inttypes.c: New file.
64638
64639         * modules/fcntl-tests: New file.
64640         * tests/test-fcntl.c: New file.
64641
64642         * modules/byteswap-tests: New file.
64643         * tests/test-byteswap.c: New file.
64644
64645         * modules/arpa_inet-tests: New file.
64646         * tests/test-arpa_inet.c: New file.
64647
64648 2007-02-17  Bruno Haible  <bruno@clisp.org>
64649
64650         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
64651         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
64652         if the corresponding module is not enabled. Emit link warnings if
64653         the function is used nevertheless.
64654         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
64655         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
64656         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
64657         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
64658         * modules/inttypes (Depends-on): Add link-warning.
64659         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64660         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
64661         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
64662         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
64663         * modules/imaxdiv (configure.ac): Likewise.
64664         * modules/strtoimax (configure.ac): Likewise.
64665         * modules/strtoumax (configure.ac): Likewise.
64666
64667 2007-02-17  Bruno Haible  <bruno@clisp.org>
64668
64669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
64670         gl_STRING_MODULE_INDICATOR_DEFAULTS.
64671         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
64672         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
64673
64674 2007-02-17  Bruno Haible  <bruno@clisp.org>
64675
64676         * modules/link-warning: New file.
64677         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
64678         * lib/string_.h (GL_LINK_WARNING): Remove definition.
64679         * modules/string (Depends-on): Add link-warning.
64680         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64681         string.h.
64682         * MODULES.html.sh (Support for building libraries and executables): Add
64683         link-warning.
64684
64685 2007-02-17  Bruno Haible  <bruno@clisp.org>
64686
64687         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
64688         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
64689         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
64690         long lines.
64691
64692 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
64693             Bruno Haible  <bruno@clisp.org>
64694
64695         * modules/tmpfile: New file.
64696         * lib/tmpfile.c: New file.
64697         * m4/tmpfile.m4: New file.
64698         * MODULES.html.sh (func_all_modules): New section "Input/output".
64699
64700 2007-02-15  Bruno Haible  <bruno@clisp.org>
64701
64702         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
64703         (supports_delete_on_close): New function.
64704         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
64705
64706 2007-02-14  Bruno Haible  <bruno@clisp.org>
64707
64708         * modules/mbspcasecmp-tests: New file.
64709         * tests/test-mbspcasecmp.sh: New file.
64710         * tests/test-mbspcasecmp.c: New file.
64711
64712         New module mbspcasecmp.
64713         * modules/mbspcasecmp: New file.
64714         * lib/mbspcasecmp.c: New file.
64715         * lib/string_.h (strncasecmp): Change warning message.
64716         (mbspcasecmp): New declaration.
64717         * m4/mbspcasecmp.m4: New file.
64718         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64719         GNULIB_MBSPCASECMP.
64720         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
64721         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
64722
64723 2007-02-14  Bruno Haible  <bruno@clisp.org>
64724
64725         * modules/mbsncasecmp-tests: New file.
64726         * tests/test-mbsncasecmp.sh: New file.
64727         * tests/test-mbsncasecmp.c: New file.
64728
64729         New module mbsncasecmp.
64730         * modules/mbsncasecmp: New file.
64731         * lib/mbsncasecmp.c: New file.
64732         * lib/string_.h (mbsncasecmp): New declaration.
64733         * m4/mbsncasecmp.m4: New file.
64734         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64735         GNULIB_MBSNCASECMP.
64736         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
64737         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
64738
64739 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64740
64741         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
64742         Verify that it doesn't overlap with our flags.
64743         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
64744         do not have the desired effect in multibyte locales; instead, use
64745         mbscasecmp.
64746         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
64747         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
64748         we don't require GNU fnmatch ourselves (if our users require it, they
64749         should do so explicitly).
64750
64751         Fix regex code so it doesn't rely on strcasecmp.
64752         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
64753         Otherwise, include gnulib's langinfo.h.
64754         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
64755         undesirable behavior in non-C locales.  Instead, rely on localecharset.
64756         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
64757         * modules/regex (FILES): Remove m4/codeset.m4.
64758         (Depends-on): Add localcharset.  Remove strcase.
64759
64760 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64761
64762         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
64763         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
64764
64765 2007-02-13  Bruno Haible  <bruno@clisp.org>
64766
64767         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
64768         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64769
64770 2007-02-12  Bruno Haible  <bruno@clisp.org>
64771
64772         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64773         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
64774         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
64775         time warning rather than a link error.
64776
64777 2007-02-12  Bruno Haible  <bruno@clisp.org>
64778
64779         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
64780         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64781         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64782
64783 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64784
64785         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
64786         args, not 2.
64787
64788 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64789
64790         New module 'time', so that apps can include <time.h> as per
64791         POSIX and GNU instead of separate include files like time_r.h
64792         and timegm.h.  This implementation tries out a simpler approach
64793         for replacing decls in standard include files (as compared to
64794         the string module), somewhat as an experiment.
64795
64796         * config/srclist.txt: Comment out mktime.c for now.
64797         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
64798         since it doesn't apply any more.  Use generic wording instead.
64799         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
64800         'time'.
64801         * lib/time_.h, m4/time_h.m4, modules/time: New files.
64802         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
64803         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
64804         Don't include <sys/types.h>; no longer needed since we assume C89.
64805         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
64806         * lib/strftime.c: Likewise.
64807         * lib/time_r.c: Likewise.
64808         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
64809         * lib/nanosleep.c: Include <time.h> first, to check interface.
64810         * lib/strptime.c: Likewise.
64811         * lib/time_r.c: Likewise.
64812         * lib/timegm.c: Likewise.
64813         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
64814         needed.
64815         * lib/timegm.c: Don't include timegm.h; no longer needed.
64816         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
64817         time.h now handles any problems in that area.
64818         (struct timespec, nanosleep): Remove; time.h now arranges for these.
64819         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
64820         that time.h defines struct timespec.
64821         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
64822         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
64823         handles that.
64824         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
64825         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
64826         needed.  Set REPLACE_LOCALTIME.
64827         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
64828         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
64829         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
64830         nanosleep; time_h.m4 now does that.  Don't require
64831         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
64832         module handles this now.
64833         * modules/getdate (Depends-on): Remove timespec.  Add time.
64834         * modules/nanosleep (Depends-on): Likewise.
64835         * modules/stat-time (Depends-on): Likewise.
64836         * modules/nanosleep (Include): Include time.h, not timespec.h.
64837         * modules/strptime (Files): Remove lib/strptime.h.
64838         (Depends-on): Add extensions, time.
64839         (Include): Include time.h, not strptime.h.
64840         * modules/time_r (Files): Remove lib/time_r.h.
64841         (Depends-on): Add time.
64842         (Include): Include time.h, not time_r.h.
64843         * modules/timegm: Likewise.
64844         * modules/timespec (Description): Now does timespec-related decls
64845         of our own, instead of struct timespec itself.
64846         (Depends-on): Add time; remove extensions.
64847         (Maintainer): Add self.
64848         * modules/utimecmp (Depends-on): Add time; remove timespec.
64849         * modules/utimens (Depends-on): Likewise.
64850         * modules/xnanosleep (Depends-on): Likewise.
64851
64852 2007-02-11  Bruno Haible  <bruno@clisp.org>
64853
64854         * lib/c-strstr.c: Include allocsa.h.
64855         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64856         * lib/c-strcasestr.c: Include allocsa.h.
64857         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64858         * lib/strcasestr.c: Include allocsa.h.
64859         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64860         * lib/mbsstr.c: Include allocsa.h.
64861         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64862         allocsa/freesa instead of malloc/free.
64863         * lib/mbscasestr.c: Include allocsa.h.
64864         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64865         allocsa/freesa instead of malloc/free.
64866         * modules/c-strstr (Depends-on): Add allocsa.
64867         * modules/c-strcasestr (Depends-on): Likewise.
64868         * modules/strcasestr (Depends-on): Likewise.
64869         * modules/mbsstr (Depends-on): Likewise.
64870         * modules/mbscasestr (Depends-on): Likewise.
64871
64872 2007-02-11  Bruno Haible  <bruno@clisp.org>
64873
64874         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
64875
64876         * modules/mbsspn-tests: New file.
64877         * tests/test-mbsspn.sh: New file.
64878         * tests/test-mbsspn.c: New file.
64879
64880 2007-02-11  Bruno Haible  <bruno@clisp.org>
64881
64882         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
64883
64884         * modules/mbspbrk-tests: New file.
64885         * tests/test-mbspbrk.sh: New file.
64886         * tests/test-mbspbrk.c: New file.
64887
64888 2007-02-11  Bruno Haible  <bruno@clisp.org>
64889
64890         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
64891         unneeded cast.
64892
64893         * modules/mbscspn-tests: New file.
64894         * tests/test-mbscspn.sh: New file.
64895         * tests/test-mbscspn.c: New file.
64896
64897 2007-02-11  Bruno Haible  <bruno@clisp.org>
64898
64899         * modules/mbscasecmp-tests: New file.
64900         * tests/test-mbscasecmp.sh: New file.
64901         * tests/test-mbscasecmp.c: New file.
64902
64903 2007-02-11  Bruno Haible  <bruno@clisp.org>
64904
64905         Ensure O(n) worst-case complexity of mbscasestr.
64906         * lib/mbscasestr.c: Include stdbool.h.
64907         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64908         functions.
64909         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
64910         the bookkeeping indicates that it's worth it.
64911         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
64912
64913         * modules/mbscasestr-tests: New file.
64914         * tests/test-mbscasestr1.c: New file.
64915         * tests/test-mbscasestr2.sh: New file.
64916         * tests/test-mbscasestr2.c: New file.
64917         * tests/test-mbscasestr3.sh: New file.
64918         * tests/test-mbscasestr3.c: New file.
64919         * tests/test-mbscasestr4.sh: New file.
64920         * tests/test-mbscasestr4.c: New file.
64921         * m4/locale-tr.m4: New file.
64922
64923 2007-02-11  Bruno Haible  <bruno@clisp.org>
64924
64925         Ensure O(n) worst-case complexity of mbsstr.
64926         * lib/mbsstr.c: Include stdbool.h.
64927         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64928         functions.
64929         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
64930         bookkeeping indicates that it's worth it.
64931         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
64932
64933         * modules/mbsstr-tests: New file.
64934         * tests/test-mbsstr1.c: New file.
64935         * tests/test-mbsstr2.sh: New file.
64936         * tests/test-mbsstr2.c: New file.
64937         * tests/test-mbsstr3.sh: New file.
64938         * tests/test-mbsstr3.c: New file.
64939         * m4/locale-fr.m4: New file.
64940
64941 2007-02-11  Bruno Haible  <bruno@clisp.org>
64942
64943         * lib/mbsrchr.c (mbsrchr): Fix bug.
64944
64945         * modules/mbsrchr-tests: New file.
64946         * tests/test-mbsrchr.sh: New file.
64947         * tests/test-mbsrchr.c: New file.
64948
64949 2007-02-11  Bruno Haible  <bruno@clisp.org>
64950
64951         * lib/mbschr.c (mbschr): Fix bug.
64952
64953         * modules/mbschr-tests: New file.
64954         * tests/test-mbschr.sh: New file.
64955         * tests/test-mbschr.c: New file.
64956         * m4/locale-zh.m4: New file.
64957
64958 2007-02-11  Bruno Haible  <bruno@clisp.org>
64959
64960         Support for copying multibyte string iterators.
64961         * lib/mbiter.h: Include <string.h>.
64962         (mbiter_multi_copy): New function.
64963         (mbi_copy): New macro.
64964         * lib/mbuiter.h: Include <string.h>.
64965         (mbuiter_multi_copy): New function.
64966         (mbui_copy): New macro.
64967
64968 2007-02-11  Bruno Haible  <bruno@clisp.org>
64969
64970         New module mbslen.
64971         * modules/mbslen: New file.
64972         * lib/mbslen.c: New file.
64973         * lib/string_.h (mbslen): New declaration.
64974         * m4/mbslen.m4: New file.
64975         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64976         GNULIB_MBSLEN.
64977         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
64978         * MODULES.html.sh (Internationalization functions): Add mbslen.
64979
64980 2007-02-11  Bruno Haible  <bruno@clisp.org>
64981
64982         Ensure O(n) worst-case complexity of strcasestr substitute.
64983         * lib/strcasestr.c: Include stdbool.h.
64984         (knuth_morris_pratt): New function.
64985         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64986         bookkeeping indicates that it's worth it.
64987         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
64988
64989         * modules/strcasestr-tests: New file.
64990         * tests/test-strcasestr.c: New file.
64991
64992 2007-02-11  Bruno Haible  <bruno@clisp.org>
64993
64994         Ensure O(n) worst-case complexity of c_strcasestr.
64995         * lib/c-strcasestr.c: Include stdbool.h, string.h.
64996         (knuth_morris_pratt): New function.
64997         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
64998         the bookkeeping indicates that it's worth it.
64999         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
65000
65001         * modules/c-strcasestr-tests: New file.
65002         * tests/test-c-strcasestr.c: New file.
65003
65004 2007-02-11  Bruno Haible  <bruno@clisp.org>
65005
65006         Ensure O(n) worst-case complexity of c_strstr.
65007         * lib/c-strstr.c: Include stdbool.h, string.h.
65008         (knuth_morris_pratt): New function.
65009         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65010         bookkeeping indicates that it's worth it.
65011         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
65012
65013         * lib/c-strstr.c: Complete rewrite for maintainability.
65014
65015         * modules/c-strstr-tests: New file.
65016         * tests/test-c-strstr.c: New file.
65017
65018 2007-02-11  Bruno Haible  <bruno@clisp.org>
65019
65020         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
65021         5.2.1 and earlier, whereby \055 was treated just like the range
65022         delimiter '-'.
65023         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65024
65025 2007-02-08  Bruno Haible  <bruno@clisp.org>
65026
65027         * modules/regex (Depends-on): Add stdbool.
65028         Reported by Dalibor Topic <robilad@kaffe.org>.
65029
65030 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65031
65032         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
65033         Prefer returning from main to exiting from it.
65034         Remove unnecessary parens after sizeof.
65035
65036 2007-02-05  Bruno Haible  <bruno@clisp.org>
65037
65038         New module mbssep.
65039         * modules/mbssep: New file.
65040         * lib/mbssep.c: New file.
65041         * lib/string_.h (strsep): Add a conditional link warning.
65042         (mbssep): New declaration.
65043         * m4/mbssep.m4: New file.
65044         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65045         GNULIB_MBSSEP.
65046         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
65047         * MODULES.html.sh (Internationalization functions): Add mbssep.
65048
65049 2007-02-05  Bruno Haible  <bruno@clisp.org>
65050
65051         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
65052         Optimize search in case of 1 delimiter.
65053
65054 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65055
65056         * lib/acl.h: Include sys/types.h before sys/acl.h.
65057
65058 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65059
65060         Merge upstream fix for glibc bugzilla #3957:
65061
65062         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
65063
65064         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
65065         bit for RE_HAT_LISTS_NOT_NEWLINE.
65066         (build_charclass_op): Remove bogus comment.
65067
65068 2007-02-05  Simon Josefsson  <simon@josefsson.org>
65069
65070         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
65071
65072 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65073
65074         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
65075         * lib/memmem.c [!defined _LIBC]: Include config.h.
65076
65077 2007-02-04  Bruno Haible  <bruno@clisp.org>
65078
65079         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
65080         warning message.
65081
65082 2007-02-04  Bruno Haible  <bruno@clisp.org>
65083
65084         New module mbstok_r.
65085         * modules/mbstok_r: New file.
65086         * lib/mbstok_r.c: New file.
65087         * lib/string_.h (strtok_r): Change argument names to match the
65088         comments. Add a conditional link warning.
65089         (mbstok_r): New declaration.
65090         * m4/mbstok_r.m4: New file.
65091         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65092         GNULIB_MBSTOK_R.
65093         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
65094         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
65095
65096 2007-02-04  Bruno Haible  <bruno@clisp.org>
65097
65098         New module mbsspn.
65099         * modules/mbsspn: New file.
65100         * lib/mbsspn.c: New file.
65101         * lib/string_.h (strspn): Add a conditional link warning.
65102         (mbsspn): New declaration.
65103         * m4/mbsspn.m4: New file.
65104         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65105         GNULIB_MBSSPN.
65106         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
65107         * MODULES.html.sh (Internationalization functions): Add mbsspn.
65108
65109 2007-02-04  Bruno Haible  <bruno@clisp.org>
65110
65111         New module mbspbrk.
65112         * modules/mbspbrk: New file.
65113         * lib/mbspbrk.c: New file.
65114         * lib/string_.h (strpbrk): Add a conditional link warning.
65115         (mbspbrk): New declaration.
65116         * m4/mbspbrk.m4: New file.
65117         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65118         GNULIB_MBSPBRK.
65119         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
65120         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
65121
65122 2007-02-04  Bruno Haible  <bruno@clisp.org>
65123
65124         New module mbscspn.
65125         * modules/mbscspn: New file.
65126         * lib/mbscspn.c: New file.
65127         * lib/string_.h (strcspn): Add a conditional link warning.
65128         (mbscspn): New declaration.
65129         * m4/mbscspn.m4: New file.
65130         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65131         GNULIB_MBSCSPN.
65132         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
65133         * MODULES.html.sh (Internationalization functions): Add mbscspn.
65134
65135 2007-02-04  Bruno Haible  <bruno@clisp.org>
65136
65137         New module mbscasestr, reduced goal of strcasestr.
65138         * modules/mbscasestr: New file.
65139         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
65140         (mbscasestr): Renamed from strcasestr.
65141         * lib/strcasestr.c: Don't include mbuiter.h.
65142         (strcasestr): Remove support for multibyte locales.
65143         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
65144         Change the conditional link warning.
65145         (mbscasestr): New declaration.
65146         * m4/mbscasestr.m4: New file.
65147         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
65148         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
65149         REPLACE_STRCASESTR.
65150         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
65151         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65152         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65153         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
65154         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
65155         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65156         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
65157         (Depends-on): Remove mbuiter.
65158         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
65159
65160 2007-02-04  Bruno Haible  <bruno@clisp.org>
65161
65162         Simplify handling of strncasecmp.
65163         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
65164         the conditional link warning.
65165         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65166         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
65167         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
65168         * modules/strcase (configure.ac): Don't invoke
65169         gl_STRING_MODULE_INDICATOR.
65170         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
65171
65172 2007-02-04  Bruno Haible  <bruno@clisp.org>
65173
65174         New module mbscasecmp, reduced goal of strcasecmp.
65175         * modules/mbscasecmp: New file.
65176         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
65177         (mbscasecmp): Renamed from strcasecmp.
65178         * lib/strcasecmp.c: Don't include mbuiter.h.
65179         (strcasecmp): Remove support for multibyte locales.
65180         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
65181         Change the conditional link warning.
65182         (mbscasecmp): New declaration.
65183         * m4/mbscasecmp.m4: New file.
65184         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
65185         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
65186         REPLACE_STRCASECMP.
65187         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
65188         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65189         GNULIB_MBSCASECMP.
65190         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
65191         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
65192         * modules/strcase (Files): Remove m4/mbrtowc.m4.
65193         (Depends-on): Remove mbuiter.
65194         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
65195
65196 2007-02-04  Bruno Haible  <bruno@clisp.org>
65197
65198         New module mbsstr. Remove module strstr.
65199         * modules/mbsstr: New file.
65200         * modules/strstr: Remove file.
65201         * lib/mbsstr.c: Renamed from lib/strstr.c.
65202         (mbsstr): Renamed from strstr.
65203         * lib/string_.h (strstr): Remove declaration. Change the conditional
65204         link warning.
65205         (mbsstr): New declaration.
65206         * m4/mbsstr.m4: New file.
65207         * m4/strstr.m4: Remove file.
65208         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
65209         REPLACE_STRSTR.
65210         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
65211         Don't initialize GNULIB_STRSTR.
65212         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
65213         substitute GNULIB_STRSTR and REPLACE_STRSTR.
65214         * MODULES.html.sh (Internationalization functions): Add mbsstr.
65215         (Support for systems lacking ANSI C 89): Remove strstr.
65216
65217 2007-02-04  Bruno Haible  <bruno@clisp.org>
65218
65219         New module mbsrchr.
65220         * modules/mbsrchr: New file.
65221         * lib/mbsrchr.c: New file.
65222         * lib/string_.h (strrchr): Add a conditional link warning.
65223         (mbsrchr): New declaration.
65224         * m4/mbsrchr.m4: New file.
65225         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65226         GNULIB_MBSRCHR.
65227         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
65228         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
65229
65230 2007-02-04  Bruno Haible  <bruno@clisp.org>
65231
65232         New module mbschr.
65233         * modules/mbschr: New file.
65234         * lib/mbschr.c: New file.
65235         * lib/string_.h (strchr): Add a conditional link warning.
65236         (mbschr): New declaration.
65237         * m4/mbschr.m4: New file.
65238         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65239         GNULIB_MBSCHR.
65240         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
65241         * MODULES.html.sh (Internationalization functions): Add mbschr.
65242
65243 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65244
65245         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
65246
65247         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
65248
65249 2007-02-04  Bruno Haible  <bruno@clisp.org>
65250
65251         New module description section 'configure.ac-early'.
65252         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
65253         (func_get_autoconf_early_snippet): New function.
65254         (func_import, func_create_testdir): Use it. Remove special cases for
65255         modules 'extensions' and 'lock'.
65256         * modules/extensions (configure.ac-early): Require
65257         gl_USE_SYSTEM_EXTENSIONS.
65258         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
65259
65260 2007-02-04  Bruno Haible  <bruno@clisp.org>
65261
65262         Make use of gcj-4.3's -fsource and -ftarget option.
65263         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
65264         and if so try the options -fsource and -ftarget.
65265         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
65266         source_version, ftarget_option, target_version arguments.
65267         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
65268         (is_envjavac_oldgcj_14_14_usable): Renamed from
65269         is_envjavac_gcj_14_14_usable.
65270         (is_envjavac_oldgcj_14_13_usable): Renamed from
65271         is_envjavac_gcj_14_13_usable.
65272         (is_gcj_present): Update.
65273         (is_gcj_43, is_gcj43_usable): New functions.
65274         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
65275         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
65276         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
65277         try the options -fsource and -ftarget.
65278
65279 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65280
65281         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
65282         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
65283         larger value.
65284
65285 2007-02-03  Jim Meyering  <jim@meyering.net>
65286
65287         Give tools a better chance to allocate space for very large buffers.
65288         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
65289
65290         Make pwd and readlink work also when run with an unreadable parent dir
65291         on systems with openat support.
65292         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
65293         provided getcwd function, even when we have openat support.
65294         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
65295
65296 2007-02-02  Bruno Haible  <bruno@clisp.org>
65297
65298         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65299         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
65300         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
65301         portability problems if one of these functions is only used on specific
65302         platforms.
65303         Reported by Paul Eggert.
65304
65305 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
65306
65307         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
65308         is causing more trouble than it's curing.
65309         * lib/regex_internal.h (__mempcpy): Remove.
65310         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
65311         (and make the code a tad smaller to boot).
65312         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
65313
65314 2007-02-02  Jim Meyering  <jim@meyering.net>
65315
65316         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
65317         section, not in the Makefile.am: one.
65318
65319 2007-02-02  Eric Blake  <ebb9@byu.net>
65320
65321         * lib/strchrnul.c: Always include config.h first.
65322
65323         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
65324         gnulib strstr is not necessary here.
65325
65326 2007-02-02  Simon Josefsson  <simon@josefsson.org>
65327
65328         * m4/socklen.m4: Fix typo.
65329
65330 2007-02-02  Eric Blake  <ebb9@byu.net>
65331
65332         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
65333         * modules/netinet_in (Makefile.am): Likewise.
65334
65335 2007-02-01  Bruno Haible  <bruno@clisp.org>
65336
65337         * lib/string_.h (GL_LINK_WARNING): New macro.
65338         (strcasecmp, strstr, strcasestr): If provided by the system,
65339         conditionally define as a macro that leads to a warning instead of to
65340         an error.
65341         (strncasecmp): Conditionally define as a macro that leads to a warning.
65342
65343 2007-02-01  Karl Berry  <karl@gnu.org>
65344
65345         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
65346
65347 2007-02-01  Bruno Haible  <bruno@clisp.org>
65348
65349         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
65350         renamings.
65351
65352 2007-02-01  Eric Blake  <ebb9@byu.net>
65353
65354         * modules/regex (Depends-on): Revert dependence on mempcpy.
65355         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
65356         module's definition of mempcpy.
65357         Reported by Paul Eggert.
65358
65359 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65360
65361         * lib/string_.h: If the gnulib module XYZ is not present, undefine
65362         the symbol XYZ before redefining it.  This fixes a problem with
65363         programs that don't use XYZ, when compiled on systems that define
65364         XYZ to something else.
65365
65366 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
65367
65368         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
65369         occurs when "mkdir -m foo" creates a setgid directory that is (1)
65370         writeable to group or other and (2) is intended to have a special
65371         mode bit that is set or cleared.  In such a case, the directory
65372         should be neither group- nor other-writeable until the special
65373         mode bits are right.
65374
65375 2007-01-31  Eric Blake  <ebb9@byu.net>
65376
65377         * modules/mountlist (Depends-on): Add strstr.
65378
65379         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
65380         bug.
65381         * modules/string (Makefile.am): Remove redundant replacement.
65382         * modules/regex (Depends-on): Add mempcpy.
65383
65384 2007-01-31  Bruno Haible  <bruno@clisp.org>
65385
65386         New module description field 'Link'.
65387         * gnulib-tool (func_usage): Document --extract-link-directive.
65388         (sed_extract_prog): Recognize 'Link' directive.
65389         (func_get_link_directive): New function.
65390         (func_import): Show summary of link directives.
65391         Handle --extract-link-directive option.
65392         * modules/acl (Link): New section.
65393         * modules/clock-time (Link): New section.
65394         * modules/euidaccess (Link): New section.
65395         * modules/gettext (Link): New section.
65396         * modules/iconv (Link): New section.
65397         * modules/lock (Link): New section.
65398         * modules/nanosleep (Link): New section.
65399         * modules/readline (Link): New section.
65400
65401 2007-01-27  Bruno Haible  <bruno@clisp.org>
65402
65403         Enforce the use of gnulib modules for unportable <string.h> functions.
65404         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
65405         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
65406         (gl_HEADER_STRING_H_BODY): Require it.
65407         * lib/string_.h: If the gnulib module XYZ is not present, redefine
65408         the symbol XYZ to one that gives a link error.
65409         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
65410         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
65411         * modules/mempcpy (configure.ac): Likewise.
65412         * modules/memrchr (configure.ac): Likewise.
65413         * modules/stpcpy (configure.ac): Likewise.
65414         * modules/stpncpy (configure.ac): Likewise.
65415         * modules/strcase (configure.ac): Likewise.
65416         * modules/strcasestr (configure.ac): Likewise.
65417         * modules/strchrnul (configure.ac): Likewise.
65418         * modules/strdup (configure.ac): Likewise.
65419         * modules/strndup (configure.ac): Likewise.
65420         * modules/strnlen (configure.ac): Likewise.
65421         * modules/strpbrk (configure.ac): Likewise.
65422         * modules/strsep (configure.ac): Likewise.
65423         * modules/strstr (configure.ac): Likewise.
65424         * modules/strtok_r (configure.ac): Likewise.
65425
65426 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
65427
65428         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
65429
65430 2007-01-30  Jim Meyering  <jim@meyering.net>
65431
65432         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
65433
65434 2007-01-29  Bruno Haible  <bruno@clisp.org>
65435
65436         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
65437         * lib/execute.c: Likewise.
65438         * lib/pipe.c: Likewise.
65439         * lib/printf-args.h: Likewise.
65440         * lib/printf-args.c: Likewise.
65441         * lib/printf-parse.c: Likewise.
65442         * lib/vasnprintf.c: Likewise.
65443
65444 2007-01-29  Eric Blake  <ebb9@byu.net>
65445
65446         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
65447         declaration.
65448
65449 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
65450
65451         * lib/strptime.h (strptime): Use 'restrict' for args where
65452         POSIX requires this.
65453         * lib/strptime.c (strptime): Likewise.
65454         Change license notice from LGPL to GPL, since gnulib-tool will
65455         change this as needed.
65456         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
65457         defined.
65458         Include "strptime.h" first, to check interface.
65459         Do not #undef _LIBC and _NL_CURRENT.
65460         Do not include <stdlib.h>; no longer needed.
65461         Include "time_r.h" and declare ptime_locale_status
65462         only if _LIBC is not defined.
65463         (__P): Remove unused macro.
65464         (match_string): Bring back glibc version, but use it only if _LIBC
65465         is defined.
65466         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
65467         Remove unnecessary assertion and abort() call.
65468         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
65469         * m4/strptime.m4: Fix serial number comment.
65470         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
65471         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
65472         (Depends-on): Add time_r.
65473
65474 2007-01-29  Bruno Haible  <bruno@clisp.org>
65475
65476         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65477         strptime.
65478         * modules/strptime (Depends-on): Add stdbool.
65479         * lib/strptime.h: Include <time.h> always. Add comments.
65480
65481 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65482
65483         * modules/strptime: New file.
65484         * lib/strptime.h: New file.
65485         * lib/strptime.c: New file.
65486         * m4/strptime.m4: New file.
65487
65488 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65489
65490         * MODULES.html.sh: New module mpsort.
65491         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
65492
65493         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
65494         a circularity problem with HP-UX ia64 reported by Bob Proulx in
65495         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
65496         All uses changed.
65497         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
65498         All uses changed.
65499         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
65500         to _Restrict_.
65501         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
65502         the parameter matches the prototype.
65503
65504 2007-01-28  Jim Meyering  <jim@meyering.net>
65505
65506         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
65507         sys/time.h here, reverting that part of the previous patch:
65508         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
65509
65510 2007-01-28  Bruno Haible  <bruno@clisp.org>
65511
65512         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
65513         value of $(SYS_TIME_H).
65514         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
65515         remove it conditionally, too. [added by Jim Meyering]
65516         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
65517         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65518         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
65519         GETTIMEOFDAY_REPLACEMENT to 1.
65520
65521 2007-01-28  Bruno Haible  <bruno@clisp.org>
65522
65523         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
65524         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
65525         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
65526         Set UNISTD_H instead of UNISTD_H2.
65527         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
65528
65529 2007-01-28  Bruno Haible  <bruno@clisp.org>
65530
65531         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
65532         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
65533
65534 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65535
65536         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
65537         (func_create_testdir): Ensure C locale for `grep' and `tr'
65538         character ranges.
65539         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
65540         ACLOCAL_AMFLAGS parsing state machine.
65541
65542 2007-01-27  Bruno Haible  <bruno@clisp.org>
65543
65544         * modules/unistr/base: Update.
65545
65546 2007-01-27  Bruno Haible  <bruno@clisp.org>
65547
65548         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
65549         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
65550         * modules/unistr/u32-mbtouc-unsafe: Renamed from
65551         modules/unistr/u32-mbtouc.
65552         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
65553         * lib/unistr.h: Update.
65554         * lib/linebreak.c: Update.
65555         * modules/unistr/u32-mbtouc: Renamed from
65556         modules/unistr/u32-mbtouc-safe.
65557         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
65558         * lib/unistr.h: Update.
65559         * lib/unistr/u32-to-u8.c: Update.
65560         * lib/unistr/u32-to-u16.c: Update.
65561
65562 2007-01-27  Bruno Haible  <bruno@clisp.org>
65563
65564         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
65565         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
65566         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
65567         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
65568         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
65569         * modules/unistr/u16-mbtouc-unsafe: Renamed from
65570         modules/unistr/u16-mbtouc.
65571         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
65572         * lib/unistr.h: Update.
65573         * lib/linebreak.c: Update.
65574         * modules/linebreak: Update.
65575         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
65576         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
65577         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
65578         * modules/unistr/u16-mbtouc: Renamed from
65579         modules/unistr/u16-mbtouc-safe.
65580         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
65581         * lib/unistr.h: Update.
65582         * lib/unistr/u16-to-u8.c: Update.
65583         * modules/unistr/u16-to-u8: Update.
65584         * lib/unistr/u16-to-u32.c: Update.
65585         * modules/unistr/u16-to-u32: Update.
65586
65587 2007-01-27  Bruno Haible  <bruno@clisp.org>
65588
65589         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
65590         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
65591         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
65592         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
65593         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
65594         * modules/unistr/u8-mbtouc-unsafe: Renamed from
65595         modules/unistr/u8-mbtouc.
65596         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
65597         * lib/unistr.h: Update.
65598         * lib/striconveh.c: Update.
65599         * modules/striconveh: Update.
65600         * lib/linebreak.c: Update.
65601         * modules/linebreak: Update.
65602         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
65603         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
65604         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
65605         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
65606         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
65607         * lib/unistr.h: Update.
65608         * lib/striconveh.c: Update.
65609         * modules/striconveh: Update.
65610         * lib/unistr/u8-to-u16.c: Update.
65611         * modules/unistr/u8-to-u16: Update.
65612         * lib/unistr/u8-to-u32.c: Update.
65613         * modules/unistr/u8-to-u32: Update.
65614
65615 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65616
65617         Sync from Libtool.
65618         * lib/argz.c: Do not include strings.h nor memory.h, include
65619         string.h unconditionally.  Patch by Simon Josefsson.
65620
65621 2007-01-27  Bruno Haible  <bruno@clisp.org>
65622
65623         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
65624         from gl_HEADER_STRING_H_BODY.
65625         (gl_HEADER_STRING_H_BODY): Require it.
65626         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
65627         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65628         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65629         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65630         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65631         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
65632         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65633         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65634         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
65635         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65636         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65637         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
65638         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65639         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
65640         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65641
65642 2007-01-27  Bruno Haible  <bruno@clisp.org>
65643
65644         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
65645         check_PROGRAMS into noinst_PROGRAMS.
65646         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
65647         check_PROGRAMS in this case.
65648         (func_import): Set for_test to false.
65649         (func_create_testdir): Set for_test to true.
65650
65651 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65652             Bruno Haible  <bruno@clisp.org>
65653
65654         * modules/strcasestr (Files): Remove lib/strcasestr.h.
65655         (Depends-on): Add string.
65656         (Includes): Use <string.h> instead of strcasestr.h.
65657         * modules/string (Makefile.am): Also substitute the value of
65658         REPLACE_STRCASESTR.
65659         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
65660         assume strcasestr is declared in <string.h> not <strings.h>. Also
65661         set REPLACE_STRCASESTR.
65662         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
65663         REPLACE_STRCASESTR.
65664         * lib/strcasestr.h: Remove file.
65665         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
65666         * lib/string_.h (strcasestr): New declaration.
65667
65668 2007-01-27  Bruno Haible  <bruno@clisp.org>
65669
65670         * lib/string_.h: Use 'extern'.
65671
65672 2007-01-27  Jim Meyering  <jim@meyering.net>
65673
65674         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
65675         of set-but-not-used local, "q".
65676
65677         * lib/mempcpy.c: Include <config.h> before <string.h>.
65678         This fixes a compilation error on HP-UX, due to the system's
65679         "restrict"-using mempcpy prototype.
65680
65681 2007-01-26  Bruno Haible  <bruno@clisp.org>
65682
65683         Small optimization.
65684         * lib/javacomp.c: Include c-strstr.h.
65685          (is_envjavac_gcj): Use c_strstr instead of strstr.
65686         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
65687
65688 2007-01-26  Bruno Haible  <bruno@clisp.org>
65689
65690         * MODULES.html.sh (Unicode string functions): Add the new modules.
65691
65692         * modules/uniconv/u32-strconv-to-locale: New file.
65693         * lib/uniconv/u32-strconv-to-locale.c: New file.
65694
65695         * modules/uniconv/u16-strconv-to-locale: New file.
65696         * lib/uniconv/u16-strconv-to-locale.c: New file.
65697
65698         * modules/uniconv/u8-strconv-to-locale: New file.
65699         * lib/uniconv/u8-strconv-to-locale.c: New file.
65700
65701         * modules/uniconv/u32-strconv-from-locale: New file.
65702         * lib/uniconv/u32-strconv-from-locale.c: New file.
65703
65704         * modules/uniconv/u16-strconv-from-locale: New file.
65705         * lib/uniconv/u16-strconv-from-locale.c: New file.
65706
65707         * modules/uniconv/u8-strconv-from-locale: New file.
65708         * lib/uniconv/u8-strconv-from-locale.c: New file.
65709
65710         * modules/uniconv/u32-strconv-to-enc: New file.
65711         * lib/uniconv/u32-strconv-to-enc.c: New file.
65712         * modules/uniconv/u32-strconv-to-enc-tests: New file.
65713         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
65714
65715         * modules/uniconv/u16-strconv-to-enc: New file.
65716         * lib/uniconv/u16-strconv-to-enc.c: New file.
65717         * lib/uniconv/u-strconv-to-enc.h: New file.
65718         * modules/uniconv/u16-strconv-to-enc-tests: New file.
65719         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
65720
65721         * modules/uniconv/u8-strconv-to-enc: New file.
65722         * lib/uniconv/u8-strconv-to-enc.c: New file.
65723         * modules/uniconv/u8-strconv-to-enc-tests: New file.
65724         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
65725
65726         * modules/uniconv/u32-strconv-from-enc: New file.
65727         * lib/uniconv/u32-strconv-from-enc.c: New file.
65728         * modules/uniconv/u32-strconv-from-enc-tests: New file.
65729         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
65730
65731         * modules/uniconv/u16-strconv-from-enc: New file.
65732         * lib/uniconv/u16-strconv-from-enc.c: New file.
65733         * modules/uniconv/u16-strconv-from-enc-tests: New file.
65734         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
65735
65736         * modules/uniconv/u8-strconv-from-enc: New file.
65737         * lib/uniconv/u8-strconv-from-enc.c: New file.
65738         * lib/uniconv/u-strconv-from-enc.h: New file.
65739         * modules/uniconv/u8-strconv-from-enc-tests: New file.
65740         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
65741
65742         * modules/uniconv/u32-conv-from-enc: New file.
65743         * lib/uniconv/u32-conv-from-enc.c: New file.
65744         * modules/uniconv/u32-conv-from-enc-tests: New file.
65745         * tests/uniconv/test-u32-conv-from-enc.c: New file.
65746
65747         * modules/uniconv/u16-conv-from-enc: New file.
65748         * lib/uniconv/u16-conv-from-enc.c: New file.
65749         * lib/uniconv/u-conv-from-enc.h: New file.
65750         * modules/uniconv/u16-conv-from-enc-tests: New file.
65751         * tests/uniconv/test-u16-conv-from-enc.c: New file.
65752
65753         * modules/uniconv/u8-conv-from-enc: New file.
65754         * lib/uniconv/u8-conv-from-enc.c: New file.
65755         * modules/uniconv/u8-conv-from-enc-tests: New file.
65756         * tests/uniconv/test-u8-conv-from-enc.c: New file.
65757
65758         * modules/uniconv/base: New file.
65759         * lib/uniconv.h: New file.
65760
65761 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65762
65763         * doc/gnulib-tool.texi (Initial import): Update to match current
65764         behavior with strdup module.
65765         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
65766         * lib/memmem.h: Remove; all uses removed.  This is now done
65767         by <string.h>.
65768         * lib/mempcpy.h: Likewise.
65769         * lib/memrchr.h: Likewise.
65770         * lib/stpcpy.h: Likewise.
65771         * lib/stpncpy.h: Likewise.
65772         * lib/strcase.h: Likewise.
65773         * lib/strchrnul.h: Likewise.
65774         * lib/strdup.h: Likewise.
65775         * lib/strndup.h: Likewise.
65776         * lib/strnlen.h: Likewise.
65777         * lib/strpbrk.h: Likewise.
65778         * lib/strsep.h: Likewise.
65779         * lib/strstr.h: Likewise.
65780         * lib/strtok_r.h: Likewise.
65781         * lib/string_.h: New file.
65782         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
65783         Rely on <string.h> instead.
65784         * lib/canon-host.c: Likewise.
65785         * lib/chdir-long.c: Likewise.
65786         * lib/concatpath.c: Likewise.
65787         * lib/exclude.c: Likewise.
65788         * lib/fchdir.c: Likewise.
65789         * lib/getaddrinfo.c: Likewise.
65790         * lib/getcwd.c: Likewise.
65791         * lib/getsubopt.c: Likewise.
65792         * lib/glob.c: Likewise.
65793         * lib/hard-locale.c: Likewise.
65794         * lib/iconvme.c: Likewise.
65795         * lib/javacomp.c: Likewise.
65796         * lib/mempcpy.c: Likewise.
65797         * lib/memrchr.c: Likewise.
65798         * lib/regex_internal.h: Likewise.
65799         * lib/stpncpy.c: Likewise.
65800         * lib/strcasecmp.c: Likewise.
65801         * lib/strchrnul.c: Likewise.
65802         * lib/strdup.c: Likewise.
65803         * lib/striconv.c: Likewise.
65804         * lib/striconveh.c: Likewise.
65805         * lib/striconveha.c: Likewise.
65806         * lib/strncasecmp.c: Likewise.
65807         * lib/strndup.c: Likewise.
65808         * lib/strnlen.c: Likewise.
65809         * lib/strsep.c: Likewise.
65810         * lib/strstr.c: Likewise.
65811         * lib/strtok_r.c: Likewise.
65812         * lib/userspec.c: Likewise.
65813         * lib/w32spawn.h: Likewise.
65814         * lib/xstrndup.c: Likewise.
65815         * lib/mountlist.c (strstr): Remove decl.
65816         * m4/string_h.m4: New file.
65817         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
65818         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
65819         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
65820         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
65821         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
65822         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
65823         Set REPLACE_STRCASECMP if necessary.
65824         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
65825         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
65826         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
65827         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
65828         HAVE_DECL_STRDUP if necessary.
65829         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
65830         since gl_FUNC_STRNDUP does that now.
65831         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
65832         Check for decl here...
65833         (gl_PREREQ_STRNLEN): ... not here.
65834         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
65835         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
65836         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
65837         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
65838         necessary.
65839         * modules/string: New file.
65840         * modules/memmem (Files): Remove special-purpose include file.
65841         (Depends-on): Add string.
65842         (Include): Include <string.h>, not the removed file.
65843         * modules/mempcpy: Likewise.
65844         * modules/memrchr: Likewise.
65845         * modules/stpcpy: Likewise.
65846         * modules/stpncpy: Likewise.
65847         * modules/strcase: Likewise.
65848         * modules/strchrnul: Likewise.
65849         * modules/strdup: Likewise.
65850         * modules/strndup: Likewise.
65851         * modules/strnlen: Likewise.
65852         * modules/strpbrk: Likewise.
65853         * modules/strsep: Likewise.
65854         * modules/strstr: Likewise.
65855         * modules/strtok_r: Likewise.
65856         * tests/test-dirname.c: Don't include "strdup.h", since
65857         <string.h> now suffices.
65858         * tests/test-memmem.c: Don't include "memmem.h", since
65859         <string.h> now suffices.
65860
65861 2007-01-25  Bruno Haible  <bruno@clisp.org>
65862
65863         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
65864         *resultp is 0.
65865
65866         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
65867         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
65868         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
65869         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
65870
65871         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
65872         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
65873         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
65874         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
65875         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
65876         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
65877
65878 2007-01-24  Bruno Haible  <bruno@clisp.org>
65879
65880         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
65881         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
65882         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
65883         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
65884         gl_FUNC_FTS_CORE.
65885         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
65886         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
65887         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65888         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
65889         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
65890         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
65891         gl_FUNC_FCHOWNAT.
65892         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
65893         gl_FUNC_STRFTIME.
65894         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
65895         Reported by Ralf Wildenhues.
65896
65897 2007-01-24  Bruno Haible  <bruno@clisp.org>
65898
65899         Drop AC_REQUIRE calls that are redundant with the module dependencies.
65900         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
65901         gl_GETADDRINFO.
65902         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
65903         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
65904         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
65905
65906 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
65907
65908         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
65909         Don't use 'exit'; just return from 'main'.
65910         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
65911
65912         * lib/fnmatch_.h: Readjust white space and comments to match
65913         glibc, to avoid spurious diffs.
65914
65915 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65916
65917         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
65918         2004-12-01 change by Jakub Jelinek, since this code won't compile
65919         if !LIBC.  Problem reported by Bob Proulx.
65920
65921 2007-01-23  Bruno Haible  <bruno@clisp.org>
65922
65923         * lib/striconveh.c: Include c-strcaseeq.h.
65924         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
65925         * modules/striconveh (Depends-on): Add c-strcaseeq.
65926
65927 2007-01-23  Bruno Haible  <bruno@clisp.org>
65928
65929         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
65930
65931         * modules/c-strcaseeq: New file.
65932         * lib/c-strcaseeq.h: New file.
65933
65934         * modules/streq: New file.
65935         * lib/streq.h: New file.
65936
65937 2007-01-23  Bruno Haible  <bruno@clisp.org>
65938
65939         * modules/striconveha-tests: New file.
65940         * tests/test-striconveha.c: New file.
65941
65942         * lib/striconveha.h: Include <stdbool.h>.
65943         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
65944         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
65945         (mem_iconveha_notranslit): Renamed from mem_iconveha.
65946         (mem_iconveha): New function.
65947         (str_iconveha_notranslit): Renamed from str_iconveha.
65948         (str_iconveha): New function.
65949         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
65950         c-strcase.
65951
65952 2007-01-23  Bruno Haible  <bruno@clisp.org>
65953
65954         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
65955         encodings without forgiving before trying any encoding with handler.
65956         (str_iconveha): Try all encodings without forgiving before trying any
65957         encoding with handler.
65958
65959 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65960
65961         Import the following changes from libc.
65962
65963         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65964
65965         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
65966
65967         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65968
65969         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
65970         normal_bracket label.
65971
65972         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
65973
65974         [BZ #361]
65975         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
65976         to normal_bracket after fetching the next character.
65977
65978 2007-01-22  Bruno Haible  <bruno@clisp.org>
65979
65980         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
65981         argument.
65982         * lib/striconveh.c (iconv_carefully_1): New function.
65983         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
65984         argument.
65985         (str_cd_iconveh): Update.
65986         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
65987         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
65988         * tests/test-striconveh.c (MAGIC): New macro.
65989         (new_offsets): New function.
65990         (main): Test call with and without offsets.
65991
65992 2007-01-22  Bruno Haible  <bruno@clisp.org>
65993
65994         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
65995         * modules/sys_select (Makefile.am): Likewise.
65996         * modules/sys_socket (Makefile.am): Likewise.
65997         * modules/sys_time (Makefile.am): Likewise.
65998
65999 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66000
66001         * modules/gettimeofday (License): Change from GPL to LGPL, since
66002         gettimeofday is a library function.
66003
66004 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66005
66006         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
66007
66008 2007-01-21  Bruno Haible  <bruno@clisp.org>
66009
66010         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
66011
66012 2007-01-21  Bruno Haible  <bruno@clisp.org>
66013
66014         * modules/striconveha: New file.
66015         * lib/striconveha.h: New file.
66016         * lib/striconveha.c: New file.
66017         * MODULES.html.sh (Internationalization functions): Add striconveha.
66018         * lib/striconv.c (str_iconv): Optimize the case of an empty input
66019         string.
66020         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
66021
66022 2007-01-21  Bruno Haible  <bruno@clisp.org>
66023
66024         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
66025         * lib/striconveh.c (str_iconveh): Likewise.
66026
66027 2007-01-21  Bruno Haible  <bruno@clisp.org>
66028
66029         * lib/striconveh.h (mem_iconveh): New declaration.
66030         * lib/striconveh.c (mem_iconveh): New function.
66031         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
66032
66033 2007-01-21  Bruno Haible  <bruno@clisp.org>
66034
66035         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
66036
66037         * lib/striconveh.h (mem_cd_iconveh): Change specification.
66038         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
66039         original result buffer.
66040         (str_cd_iconveh): Update.
66041         * tests/test-striconveh.c (main): Update.
66042
66043         * lib/striconv.h (mem_cd_iconv): Change specification.
66044         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
66045         result buffer.
66046         (str_cd_iconv): Update.
66047         * tests/test-striconv.c (main): Update.
66048
66049 2007-01-21  Bruno Haible  <bruno@clisp.org>
66050
66051         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
66052
66053 2007-01-20  Jim Meyering  <jim@meyering.net>
66054
66055         * lib/userspec.c (parse_with_separator): If a user or group string
66056         starts with "+", skip the corresponding name-to-ID look-up, since
66057         such a look-up must fail: user and group names may not include "+".
66058
66059 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
66060
66061         * lib/poll.c: Include sys/time.h and time.h unconditionally,
66062         since we now assume the sys_time module.
66063         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
66064         check for sys/time.h; no longer needed.
66065         * modules/poll (Depends-on): Depend on sys_time.
66066
66067 2007-01-18  Bruno Haible  <bruno@clisp.org>
66068
66069         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
66070         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66071
66072         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
66073         gettimeofday.
66074
66075         * tests/test-gettimeofday.c: Include <time.h>.
66076         (dummy): Remove variable.
66077
66078         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
66079         gl_HEADER_SYS_TIME_H.
66080         (gl_HEADER_SYS_TIME_H): New macro.
66081
66082         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
66083         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66084         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
66085         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
66086         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66087         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
66088         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
66089         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66090         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
66091         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
66092         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66093
66094         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
66095         last change; it caused a compilation error when cross-compiling to
66096         Cygwin.
66097
66098 2007-01-18  Jim Meyering  <jim@meyering.net>
66099
66100         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
66101         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
66102         than the race-prone "test -d sys || mkdir sys".
66103         (configure.ac): Use AC_PROG_MKDIR_P.
66104         * modules/sys_select: Likewise.
66105         * modules/sys_socket: Likewise.
66106         * modules/sys_time: Likewise.
66107
66108 2007-01-18  Eric Blake  <ebb9@byu.net>
66109
66110         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
66111         replace gettimeofday.
66112         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
66113         name, to avoid infinite recursion.
66114
66115 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
66116
66117         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
66118         module sys_time.
66119         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
66120         assume timespec.h defines struct timeval.
66121         * lib/settime.c: Likewise.
66122         * lib/utimens.c: Likewise.
66123         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
66124         since we now assume the gettimeofday module.
66125         * lib/tempname.c (__gen_tempname): Likewise.
66126         * lib/gettimeofday.h: Remove.
66127         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
66128         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
66129         Include <time.h>, for 'time()'.
66130         (localtime_buffer_addr): Also use this workaround if
66131         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
66132         to simplify the uses.  All uses changed.
66133         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
66134         that #undef is inside {}, and 'const' follows type name consistently.
66135         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
66136         (gettimeofday): Do not use the maximum possible value for
66137         tv->tv_usec, since that might break usages other than ls.c.
66138         Instead, we'll leave ls.c alone.  This undoes today's patch
66139         by Bruno.  Add a compile-time warning for 1s-clock resolution;
66140         we've never observed the problem but might as well keep the
66141         canary.
66142         * lib/nanosleep.c: Include timespec.h first, for interface check.
66143         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
66144         now assume the sys_time module.
66145         * lib/tempname.c: Likewise.
66146         * lib/timespec.h: Likewise.
66147         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
66148         needed.
66149         * lib/strftime.c: Likewise.
66150         * lib/timespec.h: Likewise.
66151         * lib/posixtm.c: Include posixtm.h first, for interface check.
66152         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
66153         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
66154         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
66155         * lib/sys_time_.h: New file.
66156         * lib/timespec.h (struct timespec): Use long int, not long.
66157         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66158         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
66159         Remove obsolescent call to AC_HEADER_TIME.
66160         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
66161         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66162         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66163         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
66164         Likewise.
66165         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
66166         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
66167         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
66168         into the sys_time module.  Check for gettimeofday just once.
66169         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
66170         for gettimeofday signature to just check the signature.  Merely
66171         compile it, since linking doesn't test signature.  Improve test for
66172         whether gettimeofday.o is actually needed.
66173         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
66174         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
66175         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
66176         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66177         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
66178         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
66179         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
66180         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
66181         than worrying about sys/time.h.
66182         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66183         Don't bother worrying about TIME_WITH_SYS_TIME.
66184         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
66185         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
66186         * m4/sys_time_h.m4: New file.
66187         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
66188         Don't include sys/time.h.  Return from main rather than exiting.
66189         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
66190         all uses changed.
66191         * modules/gethrxtime (Depends-on): Add sys_time.
66192         * modules/gettime (Depends-on): Likewise.
66193         * modules/gettimeofday (Depends-on): Likewise.
66194         * modules/nanosleep (Depends-on): Likewise.
66195         * modules/settime (Depends-on): Likewise.
66196         * modules/tempname (Depends-on): Likewise.
66197         * modules/utimens (Depends-on): Likewise.
66198         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
66199         (Include): Change back to <sys/time.h>.
66200         (Maintainer): Add self.
66201         * modules/sys_time: New file.
66202         * modules/tempname (Depends-on): Add gettimeofday.
66203         * tests/test-gettimeofday.c: Include <sys/time.h>
66204         rather than gettimeofday.h.
66205
66206 2007-01-17  Bruno Haible  <bruno@clisp.org>
66207
66208         * gnulib-tool (func_get_license): Revert last patch. Instead, let
66209         the license default to GPL.
66210         (func_create_testdir): Don't complain if a module is LGPL and its
66211         tests module depends on GPLed modules.
66212
66213 2007-01-17  Bruno Haible  <bruno@clisp.org>
66214
66215         * lib/gettimeofday.c (gettimeofday): Add code for the case
66216         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
66217         maximum possible value for tv->tv_usec, rather than the minimum one.
66218
66219 2005-10-08  Martin Lambers  <marlam@marlam.de>
66220 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66221 2007-01-16  Bruno Haible  <bruno@clisp.org>
66222
66223         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
66224         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
66225         gl_FUNC_GETTIMEOFDAY.
66226         (Include): Add gettimeofday.h.
66227         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
66228         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
66229         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
66230         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
66231         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
66232         * lib/gettimeofday.h: New file.
66233         * lib/gettimeofday.c: Include <sys/timeb.h>.
66234         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
66235         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66236         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
66237         fall back on time().
66238
66239         * tests/test-gettimeofday.c: New file.
66240         * modules/gettimeofday-tests: New file.
66241
66242 2007-01-16  Eric Blake  <ebb9@byu.net>
66243
66244         * modules/fnmatch (Depends-on): Depend on wchar.
66245         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
66246         * m4/fnmatch.m4: Likewise.
66247         * modules/mbchar (Makefile.am): Assume <wchar.h>.
66248         * m4/mbchar.m4: Likewise.
66249         * modules/mbswidth (Depends-on): Depend on wchar.
66250         * lib/mbswidth.c: Assume <wchar.h>.
66251         * m4/mbswidth.m4: Likewise.
66252         * modules/quotearg (Depends-on): Depend on wchar.
66253         * lib/quotearg.c: Assume <wchar.h>.
66254         * m4/quotearg.m4: Likewise.
66255         * modules/regex (Depends-on): Depend on wchar.
66256         * lib/regex_internal.h: Assume <wchar.h>.
66257         * m4/regex.m4: Likewise.
66258         * modules/stdint (Depends-on): Depend on wchar.
66259         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
66260         * m4/stdint.m4: Likewise.
66261         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
66262         * modules/strftime (Depends-on): Depend on wchar.
66263         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
66264         * modules/strtol (Depends-on): Depend on wchar.
66265         * lib/strtol.c: Assume <wchar.h>.
66266         * modules/wcwidth (Depends-on): Depend on wchar.
66267         * lib/wcwidth.h: Assume <wchar.h>.
66268         * m4/wcwidth.m4: Likewise.
66269
66270 2007-01-16  Bruno Haible  <bruno@clisp.org>
66271
66272         * modules/csharpexec-script: New, created from...
66273         * modules/csharpexec: ... this.
66274
66275 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
66276
66277         * modules/javaexec-script: New, created from...
66278         * modules/javaexec: ... this.
66279
66280 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66281
66282         * modules/poll (Dependencies): Add sys_select.
66283
66284 2007-01-15  Jim Meyering  <jim@meyering.net>
66285
66286         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
66287         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
66288         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
66289         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
66290
66291 2007-01-15  Bruno Haible  <bruno@clisp.org>
66292
66293         * modules/striconveh: New file.
66294         * lib/striconveh.h: New file.
66295         * lib/striconveh.c: New file.
66296         * MODULES.html.sh (Internationalization functions): Add striconveh.
66297
66298         * modules/striconveh-tests: New file.
66299         * tests/test-striconveh.c: New file.
66300
66301 2007-01-15  Bruno Haible  <bruno@clisp.org>
66302
66303         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
66304         not from GNU libiconv or GNU libc.
66305
66306 2007-01-15  Bruno Haible  <bruno@clisp.org>
66307
66308         * doc/gnulib-intro.texi (Copyright): Explain the different license
66309         terms for module descriptions, autoconf macros, tests, documentation.
66310
66311 2007-01-14  Bruno Haible  <bruno@clisp.org>
66312
66313         * modules/striconv-tests: New file.
66314         * tests/test-striconv.c: New file.
66315
66316 2007-01-14  Bruno Haible  <bruno@clisp.org>
66317
66318         * modules/iconv-tests: New file.
66319         * tests/test-iconv.c: New file.
66320
66321 2007-01-14  Bruno Haible  <bruno@clisp.org>
66322
66323         * gnulib-tool (func_get_license): For test modules, use the license of
66324         the main module.
66325
66326 2007-01-14  Bruno Haible  <bruno@clisp.org>
66327
66328         * modules/iconv (Include): Clarify that <iconv.h> can only be included
66329         if iconv is found to exist.
66330
66331 2007-01-14  Bruno Haible  <bruno@clisp.org>
66332
66333         * modules/c-ctype-tests: New file.
66334         * tests/test-c-ctype.c: New file.
66335
66336 2007-01-14  Bruno Haible  <bruno@clisp.org>
66337
66338         * modules/binary-io-tests: New file.
66339         * tests/test-binary-io.sh: New file.
66340         * tests/test-binary-io.c: New file.
66341
66342 2007-01-14  Bruno Haible  <bruno@clisp.org>
66343
66344         * modules/array-oset-tests: New file.
66345         * tests/test-array_oset.c: New file.
66346
66347 2007-01-14  Bruno Haible  <bruno@clisp.org>
66348
66349         * modules/array-list-tests: New file.
66350         * tests/test-array_list.c: New file.
66351
66352 2007-01-14  Bruno Haible  <bruno@clisp.org>
66353
66354         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
66355         and make.
66356         Reported by Simon Josefsson in
66357         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
66358
66359 2007-01-14  Bruno Haible  <bruno@clisp.org>
66360
66361         * modules/allocsa-tests: New file.
66362         * tests/test-allocsa.c: New file.
66363
66364 2007-01-14  Bruno Haible  <bruno@clisp.org>
66365
66366         * modules/fchdir (Depends-on): Add absolute-header.
66367         * modules/unistd (Depends-on): Likewise.
66368
66369 2006-12-30  Bruno Haible  <bruno@clisp.org>
66370
66371         * modules/fchdir: New file.
66372         * modules/unistd (Files): Add lib/unistd_.h.
66373         (Makefile.am): Generate unistd.h from unistd_.h.
66374         * lib/fchdir.c: New file.
66375         * lib/dirent_.h: New file.
66376         * lib/unistd_.h: New file.
66377         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
66378         * m4/fchdir.m4: New file.
66379         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
66380         (gl_HEADER_UNISTD): Invoke it.
66381         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
66382         function.
66383         * lib/backupfile.c (opendir, closedir): Undefine.
66384         * lib/chown.c (open, close): Undefine.
66385         * lib/clean-temp.c (open, close): Undefine.
66386         * lib/copy-file.c (open, close): Undefine.
66387         * lib/execute.c (open, close): Undefine.
66388         * lib/fsusage.c (open, close): Undefine.
66389         * lib/gc-gnulib.c (open, close): Undefine.
66390         * lib/getcwd.c (opendir, closedir): Undefine.
66391         * lib/glob.c (opendir, closedir): Undefine.
66392         * lib/javacomp.c (open, close): Undefine.
66393         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
66394         * lib/openat-proc.c (open, close): Undefine.
66395         * lib/pagealign_alloc.c (open, close): Undefine.
66396         * lib/pipe.c (open, close): Undefine.
66397         * lib/progreloc.c (open, close): Undefine.
66398         * lib/savedir.c (opendir, closedir): Undefine.
66399         * lib/utime.c (open, close): Undefine.
66400         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
66401
66402 2007-01-10  Bruno Haible  <bruno@clisp.org>
66403
66404         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
66405
66406 2007-01-12  Eric Blake  <ebb9@byu.net>
66407
66408         Provide a robust <wchar.h>.  Further simplifications are now
66409         possible in other modules, but not included here.
66410         * modules/wchar: New module.
66411         * m4/wchar.m4: New file.
66412         * lib/wchar_.h: Likewise.
66413         * modules/mbchar (Depends-on): Depend on wchar, as the first use
66414         of the new module.
66415         * MODULES.html.sh (Extended multibyte and wide character utilities):
66416         New section.
66417
66418 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
66419
66420         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
66421         to a reasonable default for memory allocation.
66422         (xreadlink): Don't allocate a huge buffer, to work around a buggy
66423         file system that reports garbage st_size values for symlinks.
66424         Problem reported by Liyang Hu.
66425
66426 2007-01-11  Simon Josefsson  <simon@josefsson.org>
66427
66428         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
66429         Emacs .#* auto-save files).
66430
66431 2007-01-11  Bruno Haible  <bruno@clisp.org>
66432
66433         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
66434         directory.
66435
66436 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66437
66438         Use @...@ consistently in lib/wctype_.h.
66439         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
66440         on it being set to 1 or 0.
66441         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
66442         go back to AC_SUBSTing it.
66443         * modules/wctype (Makefile.am): Undo previous change.
66444
66445 2007-01-10  Eric Blake  <ebb9@byu.net>
66446
66447         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
66448         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
66449         * modules/wctype (Makefile.am): Likewise.
66450         Reported by Chris McGuire.
66451
66452 2007-01-10  Jim Meyering  <jim@meyering.net>
66453
66454         fts.c: a small readability/maintainability improvement
66455         * lib/fts.c (fts_read): Make this code slightly more readable and
66456         maintainable by hoisting the "sp->fts_cur = p" assignments to
66457         immediately follow the statements that set P.  Derived from
66458         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
66459
66460 2007-01-10  Eric Blake  <ebb9@byu.net>
66461
66462         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
66463         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
66464         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66465         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66466         Reported by Chris McGuire.
66467
66468 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66469
66470         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
66471         in sed script.
66472
66473 2007-01-09  Bruno Haible  <bruno@clisp.org>
66474
66475         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
66476         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
66477         variables.
66478         (func_module): Use them.
66479
66480 2007-01-09  Bruno Haible  <bruno@clisp.org>
66481
66482         * modules/unistr/base: New file.
66483         * lib/unistr.h: New file.
66484
66485         * modules/unistr/u8-to-u16: New file.
66486         * lib/unistr/u8-to-u16.c: New file.
66487
66488         * modules/unistr/u8-to-u32: New file.
66489         * lib/unistr/u8-to-u32.c: New file.
66490
66491         * modules/unistr/u16-to-u8: New file.
66492         * lib/unistr/u16-to-u8.c: New file.
66493
66494         * modules/unistr/u16-to-u32: New file.
66495         * lib/unistr/u16-to-u32.c: New file.
66496
66497         * modules/unistr/u32-to-u8: New file.
66498         * lib/unistr/u32-to-u8.c: New file.
66499
66500         * modules/unistr/u32-to-u16: New file.
66501         * lib/unistr/u32-to-u16.c: New file.
66502
66503         * modules/unistr/u8-check: New file.
66504         * modules/unistr/u16-check: New file.
66505         * modules/unistr/u32-check: New file.
66506         * lib/unistr/u8-check.c: New file.
66507         * lib/unistr/u16-check.c: New file.
66508         * lib/unistr/u32-check.c: New file.
66509
66510         * modules/unistr/u8-chr: New file.
66511         * modules/unistr/u16-chr: New file.
66512         * modules/unistr/u32-chr: New file.
66513         * lib/unistr/u8-chr.c: New file.
66514         * lib/unistr/u16-chr.c: New file.
66515         * lib/unistr/u32-chr.c: New file.
66516
66517         * modules/unistr/u8-cmp: New file.
66518         * modules/unistr/u16-cmp: New file.
66519         * modules/unistr/u32-cmp: New file.
66520         * lib/unistr/u8-cmp.c: New file.
66521         * lib/unistr/u16-cmp.c: New file.
66522         * lib/unistr/u32-cmp.c: New file.
66523
66524         * modules/unistr/u8-cpy: New file.
66525         * modules/unistr/u16-cpy: New file.
66526         * modules/unistr/u32-cpy: New file.
66527         * lib/unistr/u8-cpy.c: New file.
66528         * lib/unistr/u16-cpy.c: New file.
66529         * lib/unistr/u32-cpy.c: New file.
66530         * lib/unistr/u-cpy.h: New file.
66531
66532         * modules/unistr/u8-cpy-alloc: New file.
66533         * modules/unistr/u16-cpy-alloc: New file.
66534         * modules/unistr/u32-cpy-alloc: New file.
66535         * lib/unistr/u8-cpy-alloc.c: New file.
66536         * lib/unistr/u16-cpy-alloc.c: New file.
66537         * lib/unistr/u32-cpy-alloc.c: New file.
66538         * lib/unistr/u-cpy-alloc.h: New file.
66539
66540         * modules/unistr/u8-endswith: New file.
66541         * modules/unistr/u16-endswith: New file.
66542         * modules/unistr/u32-endswith: New file.
66543         * lib/unistr/u8-endswith.c: New file.
66544         * lib/unistr/u16-endswith.c: New file.
66545         * lib/unistr/u32-endswith.c: New file.
66546         * lib/unistr/u-endswith.h: New file.
66547
66548         * modules/unistr/u8-mblen: New file.
66549         * modules/unistr/u16-mblen: New file.
66550         * modules/unistr/u32-mblen: New file.
66551         * lib/unistr/u8-mblen.c: New file.
66552         * lib/unistr/u16-mblen.c: New file.
66553         * lib/unistr/u32-mblen.c: New file.
66554
66555         * modules/unistr/u8-mbtouc: New file.
66556         * modules/unistr/u16-mbtouc: New file.
66557         * modules/unistr/u32-mbtouc: New file.
66558         * lib/unistr/u8-mbtouc.c: New file.
66559         * lib/unistr/u16-mbtouc.c: New file.
66560         * lib/unistr/u32-mbtouc.c: New file.
66561
66562         * modules/unistr/u8-mbtouc-safe: New file.
66563         * modules/unistr/u16-mbtouc-safe: New file.
66564         * modules/unistr/u32-mbtouc-safe: New file.
66565         * lib/unistr/u8-mbtouc-safe.c: New file.
66566         * lib/unistr/u16-mbtouc-safe.c: New file.
66567         * lib/unistr/u32-mbtouc-safe.c: New file.
66568
66569         * modules/unistr/u8-move: New file.
66570         * modules/unistr/u16-move: New file.
66571         * modules/unistr/u32-move: New file.
66572         * lib/unistr/u8-move.c: New file.
66573         * lib/unistr/u16-move.c: New file.
66574         * lib/unistr/u32-move.c: New file.
66575         * lib/unistr/u-move.h: New file.
66576
66577         * modules/unistr/u8-next: New file.
66578         * modules/unistr/u16-next: New file.
66579         * modules/unistr/u32-next: New file.
66580         * lib/unistr/u8-next.c: New file.
66581         * lib/unistr/u16-next.c: New file.
66582         * lib/unistr/u32-next.c: New file.
66583
66584         * modules/unistr/u8-prev: New file.
66585         * modules/unistr/u16-prev: New file.
66586         * modules/unistr/u32-prev: New file.
66587         * lib/unistr/u8-prev.c: New file.
66588         * lib/unistr/u16-prev.c: New file.
66589         * lib/unistr/u32-prev.c: New file.
66590
66591         * modules/unistr/u8-set: New file.
66592         * modules/unistr/u16-set: New file.
66593         * modules/unistr/u32-set: New file.
66594         * lib/unistr/u8-set.c: New file.
66595         * lib/unistr/u16-set.c: New file.
66596         * lib/unistr/u32-set.c: New file.
66597         * lib/unistr/u-set.h: New file.
66598
66599         * modules/unistr/u8-startswith: New file.
66600         * modules/unistr/u16-startswith: New file.
66601         * modules/unistr/u32-startswith: New file.
66602         * lib/unistr/u8-startswith.c: New file.
66603         * lib/unistr/u16-startswith.c: New file.
66604         * lib/unistr/u32-startswith.c: New file.
66605         * lib/unistr/u-startswith.h: New file.
66606
66607         * modules/unistr/u8-stpcpy: New file.
66608         * modules/unistr/u16-stpcpy: New file.
66609         * modules/unistr/u32-stpcpy: New file.
66610         * lib/unistr/u8-stpcpy.c: New file.
66611         * lib/unistr/u16-stpcpy.c: New file.
66612         * lib/unistr/u32-stpcpy.c: New file.
66613         * lib/unistr/u-stpcpy.h: New file.
66614
66615         * modules/unistr/u8-stpncpy: New file.
66616         * modules/unistr/u16-stpncpy: New file.
66617         * modules/unistr/u32-stpncpy: New file.
66618         * lib/unistr/u8-stpncpy.c: New file.
66619         * lib/unistr/u16-stpncpy.c: New file.
66620         * lib/unistr/u32-stpncpy.c: New file.
66621         * lib/unistr/u-stpncpy.h: New file.
66622
66623         * modules/unistr/u8-strcat: New file.
66624         * modules/unistr/u16-strcat: New file.
66625         * modules/unistr/u32-strcat: New file.
66626         * lib/unistr/u8-strcat.c: New file.
66627         * lib/unistr/u16-strcat.c: New file.
66628         * lib/unistr/u32-strcat.c: New file.
66629         * lib/unistr/u-strcat.h: New file.
66630
66631         * modules/unistr/u8-strchr: New file.
66632         * modules/unistr/u16-strchr: New file.
66633         * modules/unistr/u32-strchr: New file.
66634         * lib/unistr/u8-strchr.c: New file.
66635         * lib/unistr/u16-strchr.c: New file.
66636         * lib/unistr/u32-strchr.c: New file.
66637
66638         * modules/unistr/u8-strcmp: New file.
66639         * modules/unistr/u16-strcmp: New file.
66640         * modules/unistr/u32-strcmp: New file.
66641         * lib/unistr/u8-strcmp.c: New file.
66642         * lib/unistr/u16-strcmp.c: New file.
66643         * lib/unistr/u32-strcmp.c: New file.
66644
66645         * modules/unistr/u8-strcpy: New file.
66646         * modules/unistr/u16-strcpy: New file.
66647         * modules/unistr/u32-strcpy: New file.
66648         * lib/unistr/u8-strcpy.c: New file.
66649         * lib/unistr/u16-strcpy.c: New file.
66650         * lib/unistr/u32-strcpy.c: New file.
66651         * lib/unistr/u-strcpy.h: New file.
66652
66653         * modules/unistr/u8-strcspn: New file.
66654         * modules/unistr/u16-strcspn: New file.
66655         * modules/unistr/u32-strcspn: New file.
66656         * lib/unistr/u8-strcspn.c: New file.
66657         * lib/unistr/u16-strcspn.c: New file.
66658         * lib/unistr/u32-strcspn.c: New file.
66659         * lib/unistr/u-strcspn.h: New file.
66660
66661         * modules/unistr/u8-strdup: New file.
66662         * modules/unistr/u16-strdup: New file.
66663         * modules/unistr/u32-strdup: New file.
66664         * lib/unistr/u8-strdup.c: New file.
66665         * lib/unistr/u16-strdup.c: New file.
66666         * lib/unistr/u32-strdup.c: New file.
66667         * lib/unistr/u-strdup.h: New file.
66668
66669         * modules/unistr/u8-strlen: New file.
66670         * modules/unistr/u16-strlen: New file.
66671         * modules/unistr/u32-strlen: New file.
66672         * lib/unistr/u8-strlen.c: New file.
66673         * lib/unistr/u16-strlen.c: New file.
66674         * lib/unistr/u32-strlen.c: New file.
66675         * lib/unistr/u-strlen.h: New file.
66676
66677         * modules/unistr/u8-strmblen: New file.
66678         * modules/unistr/u16-strmblen: New file.
66679         * modules/unistr/u32-strmblen: New file.
66680         * lib/unistr/u8-strmblen.c: New file.
66681         * lib/unistr/u16-strmblen.c: New file.
66682         * lib/unistr/u32-strmblen.c: New file.
66683
66684         * modules/unistr/u8-strmbtouc: New file.
66685         * modules/unistr/u16-strmbtouc: New file.
66686         * modules/unistr/u32-strmbtouc: New file.
66687         * lib/unistr/u8-strmbtouc.c: New file.
66688         * lib/unistr/u16-strmbtouc.c: New file.
66689         * lib/unistr/u32-strmbtouc.c: New file.
66690
66691         * modules/unistr/u8-strncat: New file.
66692         * modules/unistr/u16-strncat: New file.
66693         * modules/unistr/u32-strncat: New file.
66694         * lib/unistr/u8-strncat.c: New file.
66695         * lib/unistr/u16-strncat.c: New file.
66696         * lib/unistr/u32-strncat.c: New file.
66697         * lib/unistr/u-strncat.h: New file.
66698
66699         * modules/unistr/u8-strncmp: New file.
66700         * modules/unistr/u16-strncmp: New file.
66701         * modules/unistr/u32-strncmp: New file.
66702         * lib/unistr/u8-strncmp.c: New file.
66703         * lib/unistr/u16-strncmp.c: New file.
66704         * lib/unistr/u32-strncmp.c: New file.
66705
66706         * modules/unistr/u8-strncpy: New file.
66707         * modules/unistr/u16-strncpy: New file.
66708         * modules/unistr/u32-strncpy: New file.
66709         * lib/unistr/u8-strncpy.c: New file.
66710         * lib/unistr/u16-strncpy.c: New file.
66711         * lib/unistr/u32-strncpy.c: New file.
66712         * lib/unistr/u-strncpy.h: New file.
66713
66714         * modules/unistr/u8-strnlen: New file.
66715         * modules/unistr/u16-strnlen: New file.
66716         * modules/unistr/u32-strnlen: New file.
66717         * lib/unistr/u8-strnlen.c: New file.
66718         * lib/unistr/u16-strnlen.c: New file.
66719         * lib/unistr/u32-strnlen.c: New file.
66720         * lib/unistr/u-strnlen.h: New file.
66721
66722         * modules/unistr/u8-strpbrk: New file.
66723         * modules/unistr/u16-strpbrk: New file.
66724         * modules/unistr/u32-strpbrk: New file.
66725         * lib/unistr/u8-strpbrk.c: New file.
66726         * lib/unistr/u16-strpbrk.c: New file.
66727         * lib/unistr/u32-strpbrk.c: New file.
66728         * lib/unistr/u-strpbrk.h: New file.
66729
66730         * modules/unistr/u8-strrchr: New file.
66731         * modules/unistr/u16-strrchr: New file.
66732         * modules/unistr/u32-strrchr: New file.
66733         * lib/unistr/u8-strrchr.c: New file.
66734         * lib/unistr/u16-strrchr.c: New file.
66735         * lib/unistr/u32-strrchr.c: New file.
66736
66737         * modules/unistr/u8-strspn: New file.
66738         * modules/unistr/u16-strspn: New file.
66739         * modules/unistr/u32-strspn: New file.
66740         * lib/unistr/u8-strspn.c: New file.
66741         * lib/unistr/u16-strspn.c: New file.
66742         * lib/unistr/u32-strspn.c: New file.
66743         * lib/unistr/u-strspn.h: New file.
66744
66745         * modules/unistr/u8-strstr: New file.
66746         * modules/unistr/u16-strstr: New file.
66747         * modules/unistr/u32-strstr: New file.
66748         * lib/unistr/u8-strstr.c: New file.
66749         * lib/unistr/u16-strstr.c: New file.
66750         * lib/unistr/u32-strstr.c: New file.
66751         * lib/unistr/u-strstr.h: New file.
66752
66753         * modules/unistr/u8-strtok: New file.
66754         * modules/unistr/u16-strtok: New file.
66755         * modules/unistr/u32-strtok: New file.
66756         * lib/unistr/u8-strtok.c: New file.
66757         * lib/unistr/u16-strtok.c: New file.
66758         * lib/unistr/u32-strtok.c: New file.
66759         * lib/unistr/u-strtok.h: New file.
66760
66761         * modules/unistr/u8-uctomb: New file.
66762         * modules/unistr/u16-uctomb: New file.
66763         * modules/unistr/u32-uctomb: New file.
66764         * lib/unistr/u8-uctomb.c: New file.
66765         * lib/unistr/u16-uctomb.c: New file.
66766         * lib/unistr/u32-uctomb.c: New file.
66767
66768         * MODULES.html.sh (Unicode string functions): Add the new modules.
66769
66770 2007-01-08  Bruno Haible  <bruno@clisp.org>
66771
66772         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
66773         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
66774         subdirectories.
66775
66776 2007-01-08  Karl Berry  <karl@gnu.org>
66777
66778         * doc/error.texi: mention that main() fns must set program_name
66779         when progname is used.
66780
66781 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
66782
66783         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
66784         WCTYPE_H is empty, for the benefit of builds from non-distclean
66785         directories.  Problem reported by Eric Blake in
66786         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
66787
66788 2007-01-08  Bruno Haible  <bruno@clisp.org>
66789
66790         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
66791         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
66792         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
66793         PROVIDE_CANONICALIZE_FILENAME_MODE.
66794         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
66795
66796 2007-01-08  Bruno Haible  <bruno@clisp.org>
66797
66798         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
66799         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
66800         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
66801         * lib/fts.c: Likewise.
66802         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
66803
66804 2006-12-25  Bruno Haible  <bruno@clisp.org>
66805
66806         * modules/utf8-ucs4-safe: New file.
66807         * lib/utf8-ucs4-safe.h: New file.
66808         * lib/unistr/utf8-ucs4-safe.c: New file.
66809
66810         * modules/utf16-ucs4-safe: New file.
66811         * lib/utf16-ucs4-safe.h: New file.
66812         * lib/unistr/utf16-ucs4-safe.c: New file.
66813
66814         * MODULES.html.sh (Unicode string functions): Add the new modules.
66815
66816 2007-01-08  Bruno Haible  <bruno@clisp.org>
66817
66818         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
66819         (Depends-on): Add unitypes.
66820         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66821         (u8_mbtouc_aux): Move out to separate file.
66822         (u8_mbtouc): Use ucs4_t, uint8_t types.
66823         * lib/unistr/utf8-ucs4.c: New file.
66824
66825         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
66826         (Depends-on): Add unitypes.
66827         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66828         (u16_mbtouc_aux): Move out to separate file.
66829         (u16_mbtouc): Use ucs4_t, uint16_t types.
66830         * lib/unistr/utf16-ucs4.c: New file.
66831
66832         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
66833         (Depends-on): Add unitypes.
66834         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
66835         (u8_uctomb_aux): Move out to separate file.
66836         (u8_uctomb): Use ucs4_t, uint8_t types.
66837         * lib/unistr/ucs4-utf8.c: New file.
66838
66839         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
66840         (Depends-on): Add unitypes.
66841         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
66842         (u16_uctomb_aux): Move out to separate file.
66843         (u16_uctomb): Use ucs4_t, uint16_t types.
66844         * lib/unistr/ucs4-utf16.c: New file.
66845
66846 2006-12-25  Bruno Haible  <bruno@clisp.org>
66847
66848         * modules/unitypes: New file.
66849         * lib/unitypes.h: New file.
66850         * MODULES.html.sh (func_all_modules): New section "Unicode string
66851         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
66852         this section. Add unitypes.
66853
66854 2007-01-08  Bruno Haible  <bruno@clisp.org>
66855
66856         Avoid variable names that conflict with those from libtool.
66857         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
66858         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
66859         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
66860         library_names_spec to acl_library_names_spec, hardcode_* to
66861         acl_hardcode_*.
66862         Reported by Ralf Wildenhues.
66863
66864 2007-01-08  Bruno Haible  <bruno@clisp.org>
66865
66866         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
66867         definition.
66868         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
66869         definition.
66870         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
66871         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
66872         definition.
66873         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
66874         definition.
66875         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
66876         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
66877         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
66878         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
66879         definition.
66880         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
66881         definition.
66882         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
66883         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
66884         GC_USE_<algorithm>.
66885         * lib/gc-libgcrypt.c: Likewise.
66886         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
66887         * modules/gc-arctwo (configure.ac): Likewise.
66888         * modules/gc-des (configure.ac): Likewise.
66889         * modules/gc-hmac-md5 (configure.ac): Likewise.
66890         * modules/gc-hmac-sha1 (configure.ac): Likewise.
66891         * modules/gc-md2 (configure.ac): Likewise.
66892         * modules/gc-md4 (configure.ac): Likewise.
66893         * modules/gc-md5 (configure.ac): Likewise.
66894         * modules/gc-random (configure.ac): Likewise.
66895         * modules/gc-rijndael (configure.ac): Likewise.
66896         * modules/gc-sha1 (configure.ac): Likewise.
66897
66898 2007-01-08  Bruno Haible  <bruno@clisp.org>
66899
66900         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
66901         macro definition.
66902         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
66903         definition.
66904         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
66905         definition.
66906         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
66907         * modules/fcntl-safer (configure.ac): Likewise.
66908         * modules/fopen-safer (configure.ac): Likewise.
66909         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
66910         GNULIB_FWRITEERROR macro definition.
66911
66912 2007-01-08  Bruno Haible  <bruno@clisp.org>
66913
66914         * m4/gnulib-common.m4: New file.
66915         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
66916         (func_get_filelist): Add m4/gnulib-common.m4.
66917
66918 2007-01-08  Bruno Haible  <bruno@clisp.org>
66919
66920         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
66921         command.
66922
66923 2007-01-08  Jim Meyering  <jim@meyering.net>
66924
66925         Use a more robust test for a "can't happen" condition.
66926         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
66927         narrowed the st_size value.  Presuming the "can't happen" condition
66928         is true, that narrowing could conceivably convert an invalid st_size
66929         value into a valid one.  Instead, use a change based on Matthew
66930         Woehlke's original patch.
66931
66932         Slight readability improvement: use an assert-like macro
66933         in place of literal "abort ()" uses.
66934         * lib/fts.c (fts_assert): Define.
66935         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
66936         Use this macro instead of a bare 'abort'.
66937
66938 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
66939
66940         Don't worry about using IRIX 5.3's wctype.h broken definitions;
66941         simply work around them.
66942         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
66943         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
66944         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
66945         declaring.
66946         Don't bother to define as macros, since the standard doesn't require it.
66947         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
66948         longer worry about IRIX 5.3.
66949         (HAVE_WCTYPE_CTMP_BUG): Remove.
66950
66951 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66952
66953         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
66954         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
66955         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66956         Problems reported by Georg Schwarz for IRIX 5.3.
66957
66958         * gnulib-tool (autoconf_minversion): Take the maximum version number
66959         found, not the minimum.  Problem reported by James Youngman.
66960
66961 2007-01-03  Karl Berry  <karl@gnu.org>
66962
66963         * doc/error.texi: new file, explaining interaction with progname.
66964         * doc/gnulib.texi: include it.  Update copyright.
66965
66966 2007-01-03  Simon Josefsson  <simon@josefsson.org>
66967
66968         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
66969         AC_CANONICAL_HOST, to improve autobuild outputs.
66970
66971 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
66972             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66973
66974         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
66975         sockets, server sockets, and other file descriptors.  Count errors
66976         to compute the return value.  Reorder the code a bit to be easier
66977         to follow.  Don't set event bits that were not requested (except
66978         POLLERR and POLLHUP).
66979
66980 2007-01-01  Bruno Haible  <bruno@clisp.org>
66981
66982         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
66983
66984 2007-01-03  Jim Meyering  <jim@meyering.net>
66985
66986         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
66987
66988 2007-01-02  Bruno Haible  <bruno@clisp.org>
66989
66990         * modules/settime (Include): Require timespec.h.
66991         * modules/nanosleep (Include): Likewise.
66992
66993 2007-01-01  Bruno Haible  <bruno@clisp.org>
66994
66995         * gnulib-tool (func_emit_copyright_notice): Bump year.
66996         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
66997
66998 2007-01-01  Bruno Haible  <bruno@clisp.org>
66999
67000         Improve support for OpenBSD.
67001         * build-aux/config.rpath (libname_spec): Export.
67002         (library_names_spec): New variable. Export.
67003         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
67004         library_names_spec from the config.rpath output. Locate shared library
67005         through the name pattern in library_names_spec.
67006
67007 2007-01-01  Eric Blake  <ebb9@byu.net>
67008
67009         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
67010
67011 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
67012
67013         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
67014         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
67015         assume the C locale, and avoid an "eval" that could cause trouble.
67016         Problem with SORT reported by Bob Proulx.
67017
67018         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
67019         Define.  Trivial patch from Henning Nielsen Lund, originally
67020         sent to bug-grep@gnu.org today.
67021
67022 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
67023
67024         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
67025         struct stat.  Problem reported by Henning Nielsen Lund.
67026         * lib/acl.c: Include acl.h first, to check interface.  Don't
67027         bother to include sys/types.h and sys/stat.h again.
67028
67029 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67030
67031         Import the following change from libc; problem reported by
67032         Sven Verdoolaege.
67033
67034         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
67035
67036         [BZ #1373]
67037         * lib/argp.h: Remove __NTH for __argp_usage inline function.
67038
67039 2006-12-28  Jim Meyering  <jim@meyering.net>
67040
67041         * build-aux/announce-gen: Do not assume that the package
67042         builds any of tar.gz, tar.bz2, and .xdelta files.
67043         Suggestion from Simon Josefsson.
67044
67045 2006-12-28  Simon Josefsson  <simon@josefsson.org>
67046
67047         * modules/announce-gen: New file.
67048
67049 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
67050
67051         * lib/mbchar.h: Just include <wctype.h>; the wctype module
67052         handles its gotchas now.
67053         * lib/mbswidth.c: Likewise.
67054         * lib/wcwidth.h: Likewise.
67055         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
67056         and iswcntrl; the wctype module does this stuff now.
67057         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67058         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67059         * modules/mbchar (Depends-on): Add wctype.
67060         * modules/mbswidth (Depends-on): Likewise.
67061         * modules/wcwidth (Depends-on): Likewise.
67062
67063 2006-12-27  Eric Blake  <ebb9@byu.net>
67064
67065         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
67066         module uses more than what <wctype.h> is required to provide.
67067
67068 2006-12-26  Eric Blake  <ebb9@byu.net>
67069
67070         * gnulib-tool (sed_extract_prog): Avoid space-tab.
67071
67072 2006-12-26  Eric Blake  <ebb9@byu.net>
67073
67074         * modules/absolute-header: New module.
67075         * modules/fcntl (Depends-on): Depend on it.
67076         * modules/inttypes (Depends-on): Likewise.
67077         * modules/stdint (Depends-on): Likewise.
67078         * modules/sys_stat (Depends-on): Likewise.
67079         * modules/wctype (Depends-on): Likewise.
67080         * MODULES.html.sh (Support for building libraries and
67081         executables): Document it.
67082
67083 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
67084
67085         * gnulib-tool (SED): Remove, undoing previous change.
67086         The problem was that it broke coreutils on Solaris, because
67087         "sed --posix" leaked into a makefile.
67088         (sed): New alias, if 'alias' and GNU sed.
67089
67090 2006-12-24  Jim Meyering  <jim@meyering.net>
67091
67092         Work around an fchownat bug in glibc-2.4:
67093         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
67094         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
67095         in spite of the -P option.
67096         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
67097         New macros.
67098         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
67099         * modules/openat (Files): Add lib/fchownat.c.
67100         * lib/openat.c (fchownat): Don't define here.  Move to...
67101         * lib/fchownat.c: ...this new file.
67102
67103 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67104
67105         Fix bug reported by Bruno Haible in
67106         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
67107         where quotearg.c didn't compile on Mac OS X 10.2 because it
67108         lacks <wchar.h> and wint_t.
67109         * lib/wctype_.h (__wctype_wint_t): New type.
67110         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
67111         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
67112         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
67113         Arg is now of type __wctype_wint_t, not wint_t.
67114         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
67115         substitute HAVE_WINT_T.
67116         * modules/wctype (Files): Add m4/wint_t.m4.
67117         (wctype.h): Substitute HAVE_WINT_T.
67118
67119 2006-12-23  Bruno Haible  <bruno@clisp.org>
67120
67121         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
67122
67123 2006-12-23  Bruno Haible  <bruno@clisp.org>
67124
67125         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
67126         S_ISLNK.
67127         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
67128         mingw.
67129
67130 2006-12-22  Bruno Haible  <bruno@clisp.org>
67131
67132         * lib/copy-file.c: Include acl.h.
67133         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
67134         Close the file descriptors only after being done with copy_acl.
67135         * modules/copy-file (Depends-on): Add acl.
67136
67137 2006-12-22  Bruno Haible  <bruno@clisp.org>
67138
67139         * gnulib-tool (SED): New variable.
67140         Use $SED instead of sed everywhere.
67141
67142 2006-12-22  Bruno Haible  <bruno@clisp.org>
67143
67144         * modules/no-c++: New file.
67145         * m4/no-c++.m4: New file.
67146         * MODULES.html.sh (Support for building libraries and executables):
67147         Add no-c++.
67148
67149 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
67150
67151         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67152         Include <limits.h>, and use its INT_MAX to rewrite the
67153         j loop so that it does not overflow 'int'.  Problem reported by
67154         Ralf Wildenhues in
67155         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
67156         Play it safe by shifting left by 1 rather than multiplying by 2,
67157         as GCC is less likely to optimize this away when the value
67158         is signed (when it assumes overflow leads to undefined behavior).
67159         Also, don't assume time_t uses two's complement.
67160
67161 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
67162
67163         * MODULES.html.sh: New module wctype.
67164         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
67165         * lib/fnmatch.c: Don't bother to include <wchar.h> before
67166         <wctype.h>, since the new wctype module should fix this.
67167         * lib/quotearg.c: Include <wctype.h> unconditionally, since
67168         the wctype module should arrange for it.
67169         * lib/regex_internal.h: Likewise.
67170         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
67171         since the wctype module should handle this now.
67172         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
67173         * modules/fnmatch (Depends-on): Add wctype.
67174         * modules/quotearg (Depends-on): Likewise.
67175         * modules/regex (Depends-on): Likewise.
67176
67177 2006-12-19  Bruno Haible  <bruno@clisp.org>
67178
67179         * lib/strdup.h [C++]: Wrap definitions in extern "C".
67180         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
67181
67182 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67183
67184         * modules/savewd (Depends-on): Fix dependency on fcntl.
67185
67186 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67187
67188         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
67189         conforms to C99, rather than relying on the user's environment
67190         setting of STDINT_H.
67191
67192 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67193         and Eric Blake  <ebb9@byu.net>
67194
67195         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
67196         This is more consistent with the other defines here.
67197         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
67198         Port to z/OS.  Problem reported by Paul Gilmartin.
67199         Change local vars to use gl_ prefix rather than ac_.
67200         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
67201         with other defines.
67202         * modules/double-slash-root: New module.
67203         * modules/dirname (Files): Remove m4/double-slash-root.m4.
67204         (Depends-on): Add double-slash-root.
67205         * MODULES.html.sh (File system functions): Mention new module.
67206
67207 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
67208
67209         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
67210         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
67211         This is for the benefit of gzip, which doesn't do i18n.
67212
67213 2006-12-12  Jim Meyering  <jim@meyering.net>
67214
67215         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
67216         Reported by Andreas Schwab <schwab@suse.de>.
67217
67218 2006-12-12  Bruno Haible  <bruno@clisp.org>
67219
67220         Merge these changes.
67221         2006-09-05  Bruno Haible  <bruno@clisp.org>
67222         * lib/iconvme.c (iconv_string): No need to save and restore errno when
67223         iconv_alloc succeeded.
67224         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
67225         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
67226         test for " && dest " at the end - dest is always != NULL there. Call
67227         iconv with 4xNULL arguments initially, to reset the state. Call iconv
67228         with 2xNULL arguments, also to flush the state storage. Handle the
67229         IRIX iconv behaviour. Realloc the final result, to throw away unused
67230         memory.
67231
67232 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
67233
67234         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
67235         and fchmodat unconditionally, since glibc 2.4 has them.
67236         Problem reported by Arkadiusz Miskiewicz.
67237
67238 2006-12-10  Bruno Haible  <bruno@clisp.org>
67239
67240         * gnulib-tool (func_import): Show the include files only for those
67241         modules that are copied and specified.
67242         Reported by Karl Berry.
67243
67244 2006-12-08  Jim Meyering  <jim@meyering.net>
67245
67246         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
67247         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
67248
67249         * build-aux/announce-gen: Add two new options, both optional:
67250         --bootstrap-tools=TOOL_LIST
67251               a comma-separated list of tools, e.g.,
67252               autoconf,automake,bison,gnulib
67253         --gnulib-snapshot-date=DATE
67254               if gnulib is in the bootstrap tool list,
67255               then report this as the snapshot date.
67256               If not specified, use the current date/time.
67257               If you specify a date here, be sure it's UTC.
67258
67259 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67260
67261         * tests/test-argp-2.sh: Fix test to match actual output.
67262         (func_compare): Fix sed script to be portable.
67263
67264 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
67265
67266         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
67267         workaround for this case.  It is not autoconfigured now; offhand
67268         it's hard to see how to autoconfigure it.
67269
67270 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
67271
67272         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
67273         a directory that is about to be chowned.  Such a directory's
67274         initial file permissions should permit the owner only and this
67275         should not be changed until after the chown, since the group and
67276         other bits would be incorrect if they granted permission before
67277         the chown.
67278
67279         Fix porting problem for iswctype reported by Georg Schwarz in:
67280         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
67281         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
67282         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
67283         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
67284         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67285
67286 2006-12-03  Jim Meyering  <jim@meyering.net>
67287
67288         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
67289         p->fts_statp may not yet be defined.
67290         (fts_read): Instead, set it in the caller, once p->fts_statp is
67291         sure to be defined, and corresponds to a top-level directory.
67292         This bug made du -x fail.  Here's the coreutils test case:
67293         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
67294         Reported by Mike Frysinger.
67295
67296 2006-12-01  Jim Meyering  <jim@meyering.net>
67297
67298         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
67299         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
67300         Reported by Simon Josefsson.
67301
67302 2006-11-30  Jim Meyering  <jim@meyering.net>
67303
67304         * m4/warning.m4: Use the all-permissive copyright notice
67305         recommended by RMS (rather than LGPL).
67306         * m4/vararrays.m4: Likewise.
67307         * m4/flexmember.m4: Likewise.
67308
67309 2006-11-29  Bruno Haible  <bruno@clisp.org>
67310
67311         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67312         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
67313         using +=.
67314         Reported by Simon Josefsson <simon@josefsson.org>.
67315
67316 2006-11-28  James Youngman <jay@gnu.org>
67317
67318         * README: Advise users that they might find the bug-gnulib@gnu.org
67319         and autotools-announce@gnu.org mailing lists useful.
67320
67321 2006-11-28  Bruno Haible  <bruno@clisp.org>
67322
67323         * m4/ptrdiff_max.m4: Remove file.
67324
67325 2006-11-21  Bruno Haible  <bruno@clisp.org>
67326
67327         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
67328         _AC_COMPUTE_INT.
67329         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67330         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
67331         _AC_COMPUTE_INT.
67332         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67333         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
67334         _AC_COMPUTE_INT.
67335         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67336
67337 2006-11-28  Jim Meyering  <jim@meyering.net>
67338
67339         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
67340         warning from "gcc -Wshadow" about shadowing the builtin.
67341
67342 2006-11-27  Bruno Haible  <bruno@clisp.org>
67343
67344         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
67345         _AC_COMPUTE_INT.
67346         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67347
67348 2006-11-27  Bruno Haible  <bruno@clisp.org>
67349             Paul Eggert  <eggert@cs.ucla.edu>
67350
67351         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
67352
67353 2006-11-26  Bruno Haible  <bruno@clisp.org>
67354
67355         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67356         noinst_LTLIBRARIES.
67357
67358 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67359             Bruno Haible  <bruno@clisp.org>
67360
67361         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
67362         if compiling with "gcc -ansi".
67363
67364 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67365
67366         Fix some incompatibilities with gcc -ansi -pedantic.
67367         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
67368         if compiling pedantically with GCC, unless it's C99 or later.
67369         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
67370         it mishandles gcc -ansi -pedantic as well.
67371         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
67372         if gcc -pedantic.
67373         * lib/regexec.c (check_node_accept_bytes): Don't use auto
67374         initializers for struct if -pedantic, unless it's C99 or later.
67375
67376 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
67377
67378         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
67379         Don't close an fd more than once. Identical atimes indicate
67380         success, not failure.
67381
67382 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
67383
67384         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
67385
67386 2006-11-23  Jim Meyering  <jim@meyering.net>
67387
67388         * build-aux/announce-gen: New file.  From coreutils.
67389
67390 2006-11-22  Jim Meyering  <jim@meyering.net>
67391
67392         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
67393         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
67394         (fts_read): Use a temporary to narrow the overused st_size member
67395         before using it in a switch statement.  Reported by Matthew Woehlke.
67396
67397         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
67398         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
67399
67400 2006-11-20  Bruno Haible  <bruno@clisp.org>
67401
67402         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
67403         changequote instead of pairs of brackets.
67404         Reported by Andreas Schwab <schwab@suse.de>.
67405
67406 2006-11-21  Jim Meyering  <jim@meyering.net>
67407
67408         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
67409         so as to remain compatible with older compilers.
67410         Patch from Michael Deutschmann.
67411
67412 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67413
67414         * MODULES.html.sh (File system functions): Add openat.
67415
67416         * lib/openat.h (rpl_fstatat): New macro, if
67417         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
67418         (fstatat): Define to rpl_fstatat under the same conditions,
67419         unless COMPILING_FSTATAT.
67420         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
67421         seems to have the bug.
67422         * lib/fstatat.c: New file.
67423         * modules/openat (Files): Add it.
67424
67425 2006-11-20  Bruno Haible  <bruno@clisp.org>
67426
67427         * Makefile: New file.
67428
67429 2006-11-20  Jim Meyering  <jim@meyering.net>
67430
67431         The beginnings of syntax-related checks for gnulib.
67432         * lib/Makefile: New file.
67433         * lib/t-idcache: New script.  Ensure that the two halves of
67434         idcache.c stay in sync.
67435
67436         * lib/idcache.c: Adjust comments in user- and group- portions to
67437         be more accurate, and to be consistent with one another.
67438
67439 2006-11-20  Jim Meyering  <jim@meyering.net>
67440
67441         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
67442         continue using the flexible array member (thus, this module performs
67443         half as many malloc calls), with the addition that...
67444         (getgroup, getuser): Consistently record a non-match via an empty
67445         "name" string, and map an empty string match to a NULL return value.
67446         * modules/idcache (Depends-on): Re-add flexmember.
67447
67448         * lib/idcache.c (getuser): Remove all uses of the register keyword.
67449         (getuidbyname, getgroup, getgidbyname): Likewise.
67450
67451         Use cleaner syntax: NULL rather than 0.
67452         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
67453
67454 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67455
67456         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
67457         It mishandled the case where the group was missing.
67458         Problem reported by Greg Schafer.
67459         * modules/idcache: Likewise.
67460
67461 2006-11-18  Jim Meyering  <jim@meyering.net>
67462
67463         * check-module (%exempt_header): Add exception for some
67464         conditionally-included headers.
67465
67466         * modules/i-ring (Depends-on): Add verify.
67467         (License): Change to LGPL.
67468
67469 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67470
67471         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
67472         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
67473         and inttostr.h.  Use snprintf rather than uinttostr, so that
67474         LGPLed code doesn't depend on GPLed.
67475
67476 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67477
67478         * modules/inline (License): Change from GPL to LGPL.
67479
67480 2006-11-17  Jim Meyering  <jim@meyering.net>
67481
67482         * modules/d-type (License): Switch to LGPL.
67483
67484 2006-11-15  Bruno Haible  <bruno@clisp.org>
67485
67486         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
67487
67488 2006-11-15  Eric Blake  <ebb9@byu.net>
67489
67490         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
67491         the module dependency.
67492
67493 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67494             Bruno Haible  <bruno@clisp.org>
67495
67496         * gnulib-tool (func_create_testdir): Add license consistency check.
67497
67498 2006-11-15  Eric Blake  <ebb9@byu.net>
67499
67500         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
67501         random "(cached)" in configure output.
67502
67503 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67504
67505         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
67506         test for conforming inttypes.h is both announced and cached.
67507
67508         * MODULES.html.sh (seen_modules, seen_files): New variables.
67509         (func_module): Rewrite to use a few less gnulib-tool and sed
67510         invocations.  Avoid a couple of quadratic algorithms for ...
67511         (missed_modules, missed_files): ... these, with ...
67512         (func_append, func_tmpdir): ... these new functions, from
67513         gnulib-tool.  Analogously, install traps for cleanup.
67514
67515         * tests/test-gc.c (main): Remove unused variables.
67516         * tests/test-read-file.c: Include stdlib.h, for 'free'.
67517
67518 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
67519
67520         * modules/inttostr (License): Change to LGPL.
67521
67522 2006-11-14  Eric Blake  <ebb9@byu.net>
67523
67524         * modules/tempname (License): Change to LGPL.
67525
67526 2006-11-14  Eric Blake  <ebb9@byu.net>
67527
67528         * doc/functions.texi (Function Portability): *printf functions on
67529         Cygwin now understand all POSIX size specifiers.
67530
67531 2006-11-14  Bruno Haible  <bruno@clisp.org>
67532
67533         * modules/c-ctype (License): Change to LGPL.
67534
67535 2006-11-12  Bruno Haible  <bruno@clisp.org>
67536
67537         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67538         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
67539         for GNOME libraries, for which the include files are installed in
67540         subdirectories of $prefix/include.
67541
67542 2006-11-12  Bruno Haible  <bruno@clisp.org>
67543
67544         * m4/lib-link.m4: Require at least autoconf-2.54.
67545         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
67546         name to underscores for the --with option.
67547
67548 2006-11-13  Bruno Haible  <bruno@clisp.org>
67549
67550         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
67551         the tests directory.
67552         Reported by Ralf Wildenhues.
67553
67554 2006-11-13  Bruno Haible  <bruno@clisp.org>
67555
67556         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
67557         (func_emit_initmacro_end): Undo the override here.
67558         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
67559         Works around the famous automake error in coreutils.
67560
67561 2006-11-13  Eric Blake  <ebb9@byu.net>
67562
67563         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
67564         element, not its node.
67565
67566 2006-11-12  Bruno Haible  <bruno@clisp.org>
67567
67568         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
67569         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
67570
67571 2006-11-12  Bruno Haible  <bruno@clisp.org>
67572
67573         * gnulib-tool: New option --local-symlink.
67574         (func_usage): Document it.
67575         (lsymbolic): New variable.
67576         (func_import, func_create_testdir): If --symlink was not specified,
67577         test whether --local-symlink was specified and the file comes from
67578         the local_gnulib_dir.
67579
67580 2006-11-12  Bruno Haible  <bruno@clisp.org>
67581
67582         * gnulib-tool (func_ln): New function.
67583         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
67584
67585 2006-11-12  Bruno Haible  <bruno@clisp.org>
67586
67587         Finish support for source files in subdirectories.
67588         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
67589         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
67590         AUTOMAKE_OPTIONS.
67591         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
67592
67593 2006-11-12  Bruno Haible  <bruno@clisp.org>
67594
67595         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67596         EXTRA_lib_SOURCES augmentation.
67597         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
67598
67599 2006-11-12  Jim Meyering  <jim@meyering.net>
67600
67601         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
67602         file descriptors.  This also averts a failure on systems with
67603         native openat support when a traversed directory lacks "x" access.
67604         * lib/fts_.h: Include "i-ring.h"
67605         (struct FTS) [fts_fd_ring]: New member.
67606         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
67607         (FCHDIR): Add parentheses.
67608         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
67609         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
67610         When descending, rather than simply closing the previous
67611         fts_cwd_fd value, push that file descriptor onto the ring.
67612         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
67613         (fts_open): Initialize the new fd_ring member.
67614         (fts_close): Clear the ring.
67615         (fts_safe_changedir): When possible, use our new fd_ring to skip
67616         the diropen and fstat and dev/ino comparison that would normally
67617         accompany a virtual `chdir ("..")'.
67618
67619         * modules/fts (Depends-on): Add i-ring.
67620         * modules/i-ring: New module.
67621         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
67622         * m4/i-ring.m4: New file.
67623
67624 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67625
67626         * gnulib-tool (func_create_testdir): Fix replacement of
67627         `build-aux' in configure.ac.  Run autotools in gltests
67628         subdirectory.
67629         (func_create_testdir, func_create_megatestdir, test): There is
67630         no need for '--force' in most autotool invocations in a new
67631         tree.  Actually fail the whole test if any of the tools, or the
67632         configure or make stages fail.
67633
67634         Sync from Automake.
67635         * build-aux/gnupload: Revert last change.  Add pointer to upload
67636         instructions of the GNU Maintenance Instructions.
67637         Suggestion by Karl Berry.
67638
67639 2006-11-10  Jim Meyering  <jim@meyering.net>
67640
67641         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
67642
67643 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67644
67645         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
67646         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
67647         (bind_textdomain_codeset) [! ENABLE_NLS]:
67648         Evaluate all the arguments.  That way, callers get compatible behavior
67649         if the arguments have side effects.  Also, it avoids some GCC
67650         diagnostics in some cases; Joel E. Denny reported problems when Bison
67651         was configured with --enable-gcc-warnigs.
67652
67653 2006-11-10  Jim Meyering  <jim@meyering.net>
67654
67655         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
67656         relevant options in CFLAGS (like -O, -fno-inline) are taken into
67657         account.
67658
67659 2006-11-10  Jim Meyering  <jim@meyering.net>
67660
67661         * modules/inline: New file/module.
67662         * modules/xalloc (Files): Remove m4/inline.m4.
67663         (Depends-on): Add inline, instead.
67664         * modules/oset: Likewise.
67665         * modules/list: Likewise.
67666
67667 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67668
67669         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
67670         Problem reported by Matthew Woehlke.
67671
67672 2006-11-09  Bruno Haible  <bruno@clisp.org>
67673
67674         * lib/tempname.c (gen_tempname): Remove variant that invokes
67675         __gen_tempname.
67676         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
67677         __gen_tempname.
67678
67679 2006-11-08  Bruno Haible  <bruno@clisp.org>
67680
67681         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
67682         to 'yes' instead of 'cross-compiling'.
67683
67684 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
67685
67686         * lib/quotearg.h (quotearg_free): New decl.
67687         * lib/quotearg.c (quotearg_free): New function.
67688         (slot0, nslots, slotvec0, slotvec):
67689         Now file-scope so that quotearg_free can get at them.
67690
67691 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67692
67693         Sync from Automake.
67694         * build-aux/gnupload: Add missing 'gnu' to example URL.
67695         Report by Karl Berry.
67696
67697 2006-11-08  Bruno Haible  <bruno@clisp.org>
67698
67699         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
67700         Suggested by Paul Eggert.
67701
67702 2006-11-08  Jim Meyering  <jim@meyering.net>
67703
67704         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
67705         It's already included if !_LIBC.
67706         (fts_safe_changedir): Add a comment.
67707
67708 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67709
67710         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
67711         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
67712         Matthew Woehlke.
67713
67714         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
67715         definitions up, to avoid colliding with change below.
67716         (static_inline) [HAVE_INLINE]: New macro.
67717         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
67718         Provide extern decls when !HAVE_INLINE.  Do not define unless
67719         static_inline is defined, either by us or by xmalloc.c.  Use
67720         static_inline rather than static inline.
67721         (XCALLOC): Optimize sizeof(T) = 1 case.
67722         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
67723
67724 2006-11-07  Bruno Haible  <bruno@clisp.org>
67725
67726         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
67727         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
67728         AC_C_INLINE.
67729         * modules/xalloc (Files): Add m4/inline.m4.
67730
67731 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67732
67733         * README: Fix typo.
67734         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
67735         (Miscellanous Notes): ...from this.
67736
67737 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67738
67739         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
67740         Mention that offsetof should be used instead of sizeof.
67741         From Bruno Haible.
67742
67743 2006-11-07  Bruno Haible  <bruno@clisp.org>
67744
67745         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
67746
67747 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67748
67749         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67750         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
67751         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67752         (gl_tree_add_before, gl_tree_add_after):
67753         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
67754         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
67755         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67756         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
67757         (gl_linked_add_after, gl_linked_add_at): Likewise.
67758         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
67759         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67760         (gl_tree_add_before, gl_tree_add_after): Likewise.
67761         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
67762         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
67763         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
67764
67765 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67766
67767         * lib/gl_oset.h: Use C comment style, not C++ comment style.
67768
67769 2006-11-06  Bruno Haible  <bruno@clisp.org>
67770
67771         * m4/inline.m4: New file.
67772         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
67773         * modules/list (Files): Add m4/inline.m4.
67774         * modules/oset (Files): Likewise.
67775
67776 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67777
67778         * lib/idcache.c: Include <stddef.h>, for offsetof.
67779         (struct userid.name): Change from char * to a flexible array member.
67780         All uses changed.
67781         * modules/idcache (Depends-on): Add flexmember.
67782
67783         * MODULES.html.sh (Core language properties): New module flexmember.
67784         * modules/flexmember, m4/flexmember.m4: New files.
67785
67786         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
67787         inline functions that are identical with the old xnmalloc_inline,
67788         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
67789         that we can avoid some unnecessary integer multiplications and
67790         divisions in the common case where the element size is known at
67791         compile time.
67792         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
67793         needed.
67794         (xnboundedmalloc): Remove.
67795         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
67796         arguments, for consistency with rest of this header.
67797         (xcharalloc): Rewrite using XNMALLOC.
67798         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
67799         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
67800         versions have been moved to lib/xalloc.h and renamed to be the
67801         non-*_inline versions.
67802         (xmalloc, xrealloc): Implement without reference to the xnmalloc
67803         and xnrealloc functions, since those functions are now inline and
67804         now call us.
67805         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
67806         renaming described above.
67807         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
67808         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
67809         captures the dependency in AC_C_INLINE.
67810
67811         New module canonicalize-lgpl, proposed by Charles Wilson in
67812         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
67813         with a few small changes afterwards.
67814         * MODULES.html.sh (File system functions): New module
67815         canonicalize-lgpl.
67816         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
67817         and canonicalize_file_name.
67818         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
67819         * modules/canonicalize-lgpl: New files.
67820
67821 2006-11-05  Bruno Haible  <bruno@clisp.org>
67822
67823         * gnulib-tool (func_import, func_create_testdir): Create directories
67824         also for files in subdirectories of lib/.
67825
67826 2006-11-05  Bruno Haible  <bruno@clisp.org>
67827
67828         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
67829         ANSI C compliant.
67830
67831 2006-11-03  Bruno Haible  <bruno@clisp.org>
67832
67833         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67834         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
67835         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
67836         (xnboundedmalloc): New inline function.
67837         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
67838         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
67839         xmalloc.
67840         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
67841         xmalloc.
67842         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
67843         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
67844         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
67845         xmalloc.
67846         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67847         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
67848         xmalloc.
67849         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
67850         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67851         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
67852         xmalloc.
67853         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67854         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
67855         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67856         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
67857         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
67858         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
67859         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
67860
67861 2006-11-03  Bruno Haible  <bruno@clisp.org>
67862
67863         * lib/c-ctype.h [C++]: Define functions without name mangling.
67864         * lib/fwriteerror.h [C++]: Likewise.
67865         * lib/gcd.h [C++]: Likewise.
67866         * lib/linebreak.h [C++]: Likewise.
67867
67868 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67869
67870         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
67871         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
67872         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
67873         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67874         Check for functions and headers just once.
67875         Check for declaration of canonicalize_file_name.
67876         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
67877
67878 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67879
67880         * gnulib-tool (func_import): Fix typo in actioncmd.
67881
67882 2006-11-02  Bruno Haible  <bruno@clisp.org>
67883
67884         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
67885         newline sequence in the Makefile.am snippet as a space, like "make"
67886         does.
67887         Reported by Roger Persson <perrog@gmail.com>.
67888
67889 2006-11-01  Bruno Haible  <bruno@clisp.org>
67890
67891         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
67892         already declared in <string.h>.
67893         * lib/strcase.h (strncasecmp): Don't declare it if yes.
67894
67895 2006-11-01  Bruno Haible  <bruno@clisp.org>
67896
67897         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
67898         * lib/strcase.h: Include <string.h>.
67899         (strcasecmp): Define to rpl_strcasecmp here.
67900
67901 2006-11-01  Bruno Haible  <bruno@clisp.org>
67902
67903         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
67904
67905 2006-11-01  Eric Blake  <ebb9@byu.net>
67906
67907         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
67908
67909         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
67910
67911 2006-10-29  Bruno Haible  <bruno@clisp.org>
67912
67913         Make it compile in C++ mode.
67914         * lib/full-write.c (full_rw): Add a cast.
67915
67916 2006-11-01  Bruno Haible  <bruno@clisp.org>
67917
67918         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
67919         be POSIX compliant.
67920         Reported by Roger Persson <perrog@gmail.com>.
67921
67922 2006-11-01  Eric Blake  <ebb9@byu.net>
67923
67924         * lib/getopt_.h: Fix comments.
67925
67926 2006-10-31  Eric Blake  <ebb9@byu.net>
67927
67928         * modules/tmpdir (Depends-on): Add sys_stat.
67929         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
67930         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
67931         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
67932         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
67933         tempname.
67934
67935 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
67936
67937         Avoid some C++ diagnostics reported by Bruno Haible.
67938         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
67939         xmalloc.
67940         (quotearg_alloc): Use xcharalloc rather than xmalloc.
67941         (struct slotvec): Move to top level.
67942         (quotearg_n_options): Rewrite to avoid xmalloc.
67943         * lib/xalloc.h (xcharalloc): New function.
67944         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
67945         [defined __cplusplus]: Add function template that provides result
67946         type propagation.  This part of the change is from Bruno Haible.
67947
67948 2006-10-29  Bruno Haible  <bruno@clisp.org>
67949
67950         Make it compile in C++ mode.
67951         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
67952         * lib/strnlen1.c (strnlen1): Cast memchr result.
67953         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
67954         * lib/clean-temp.c (string_equals, string_hash): Add casts.
67955         (create_temp_dir): Rename local variable 'template'.
67956         (compile_csharp_using_sscli): Add cast.
67957         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
67958         * lib/findprog.c (find_in_path): Likewise.
67959         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
67960         * lib/wait-process.c (register_slave_subprocess): Likewise.
67961
67962 2006-10-22  Bruno Haible  <bruno@clisp.org>
67963
67964         * modules/tsearch: New file.
67965         * lib/tsearch.h: New file.
67966         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
67967         * m4/tsearch.m4: New file.
67968         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
67969
67970 2006-10-29  Eric Blake  <ebb9@byu.net>
67971
67972         * lib/arcfour.c: Assume config.h.
67973         * lib/arctwo.c: Likewise.
67974         * lib/base64.c: Likewise.
67975         * lib/check-version.c: Likewise.
67976         * lib/crc.c: Likewise.
67977         * lib/des.c: Likewise.
67978         * lib/gc-gnulib.c: Likewise.
67979         * lib/gc-libgcrypt.c: Likewise.
67980         * lib/gc-pbkdf2-sha1.c: Likewise.
67981         * lib/getaddrinfo.c: Likewise.
67982         * lib/getdelim.c: Likewise.
67983         * lib/getline.c: Likewise.
67984         * lib/hmac-md5.c: Likewise.
67985         * lib/hmac-sha1.c: Likewise.
67986         * lib/iconvme.c: Likewise.
67987         * lib/md2.c: Likewise.
67988         * lib/md4.c: Likewise.
67989         * lib/memxor.c: Likewise.
67990         * lib/read-file.c: Likewise.
67991         * lib/readline.c: Likewise.
67992         * lib/rijndael-alg-fst.c: Likewise.
67993         * lib/rijndael-api-fst.c: Likewise.
67994         * lib/xgetdomainname.c: Likewise.
67995
67996 2006-10-28  Eric Blake  <ebb9@byu.net>
67997
67998         * lib/xstrndup.c: Assume config.h.
67999
68000 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68001
68002         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
68003         stat-macros.h is now for our own macros, whereas stat_h is for
68004         macros in the <sys/stat.h> name space.
68005         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
68006         (STAT_MACROS_H): Remove.
68007         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
68008         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
68009         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
68010         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
68011         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
68012         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
68013         Move these macros to ...
68014         * lib/stat_.h: here.  Don't include stat-macros.h.
68015         * lib/canonicalize.c: Don't include stat-macros.h.
68016         * lib/chown.c: Likewise.
68017         * lib/euidaccess.c: Likewise.
68018         * lib/file-type.c: Likewise.
68019         * lib/filemode.c: Likewise.
68020         * lib/glob.c: Likewise.
68021         * lib/isapipe.c: Likewise.
68022         * lib/lchown.c: Likewise.
68023         * lib/lstat.c: Likewise.
68024         * lib/mkdir-p.c: Likewise.
68025         * lib/rmdir.c: Likewise.
68026         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
68027         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
68028         unless mkdir isn't declared, to speed up 'configure'.
68029         Always create sys/stat.h, since it's unlikely any real sys/stat.h
68030         would define all the S_* symbols.
68031         * modules/canonicalize (Depends-on):
68032         Depend on sys_stat, not stat-macros.
68033         * modules/chown: Likewise.
68034         * modules/euidaccess: Likewise.
68035         * modules/filemode: Likewise.
68036         * modules/file-type: Likewise.
68037         * modules/glob: Likewise.
68038         * modules/isapipe: Likewise.
68039         * modules/lchown: Likewise.
68040         * modules/lstat: Likewise.
68041         * modules/mkancesdirs: Likewise.
68042         * modules/rmdir: Likewise.
68043         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
68044         * modules/modechange: Likewise.
68045         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
68046         (configure.ac): Remove gl_STAT_MACROS.
68047         * modules/sys_stat (Depends-on): Remove stat-macros.
68048
68049 2006-10-27  Bruno Haible  <bruno@clisp.org>
68050
68051         * m4/signed.m4: Remove file.
68052         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
68053         invocation.
68054         * modules/vasnprintf (Files): Remove m4/signed.m4.
68055
68056 2006-10-27  Bruno Haible  <bruno@clisp.org>
68057
68058         Update to GNU gettext 0.16.
68059         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
68060         m4/inttypes-h.m4, m4/signed.m4.
68061         * m4/gettext.m4: Update to GNU gettext 0.16.
68062         * m4/intl.m4: New file, from GNU gettext.
68063         * m4/intldir.m4: New file, from GNU gettext.
68064         * config/srclist.txt: Update
68065
68066 2006-10-27  Eric Blake  <ebb9@byu.net>
68067
68068         * MODULES.html.sh: Document tempname.
68069         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
68070         dependencies.
68071         (Files): Move lib/tempname.c...
68072         * modules/tempname: ...to this new module.
68073         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
68074         (gl_PREREQ_TEMPNAME): Move...
68075         * m4/tempname.m4: ...to this new file.
68076         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
68077         * modules/sys_stat (Depends-on): Add stat-macros.
68078         * lib/stat_.h (includes): Pick up stat macros.
68079         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
68080         if stat macros are broken.
68081         * lib/tempname.c (includes): No need to include "stat-macros.h".
68082         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
68083         (direxists, __path_search) [!_LIBC]: Don't compile these in
68084         gnulib; the tmpdir module covers that.
68085         * lib/tempname.h: New file.
68086
68087 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
68088
68089         * COPYING: Explain how gnulib-tool converts licence headers.
68090         Almost all wording by Eric Blake.
68091
68092 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
68093
68094         * lib/mbchar.h (is_basic_table): Make read-only.
68095         * lib/mbchar.c (is_basic_table): Likewise.
68096         Reported by John Darrington.
68097
68098 2006-10-25  Bruno Haible  <bruno@clisp.org>
68099
68100         * lib/progname.h (set_program_name): Undefine before defining.
68101
68102 2006-10-25  Bruno Haible  <bruno@clisp.org>
68103
68104         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
68105         false for non-gcc C++ compilers.
68106         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
68107
68108 2006-10-24  Bruno Haible  <bruno@clisp.org>
68109
68110         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
68111         iconv implementations like Irix iconv.
68112
68113 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68114
68115         * modules/vararrays: New file.
68116         * m4/vararrays.m4: New file, taken from diffutils.
68117         * MODULES.html.sh: New module vararrays.
68118
68119 2006-10-24  Karl Berry  <karl@gnu.org>
68120
68121         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
68122         Don't call GNU Unix.
68123
68124 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68125
68126         * users.txt: Add Libtool.
68127
68128         Sync from Libtool:
68129
68130         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68131
68132         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
68133         to gnulib's policy of including config.h unconditionally.
68134
68135 2006-10-24  Bruno Haible  <bruno@clisp.org>
68136
68137         * modules/wcwidth (Files): Add m4/wint_t.m4.
68138         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
68139         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
68140
68141 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68142
68143         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
68144         to pacify GCC with some -W flags enabled.  Problem reported by
68145         Bruno Haible.
68146
68147 2006-10-24  Jim Meyering  <jim@meyering.net>
68148
68149         * MODULES.html.sh: Remove uinttostr.  It's not a module.
68150         Reported by Karl Berry.
68151
68152 2006-10-23  Bruno Haible  <bruno@clisp.org>
68153
68154         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
68155
68156 2006-10-24  Bruno Haible  <bruno@clisp.org>
68157
68158         * lib/gl_list.h: Use C comment style, not C++ comment style.
68159
68160 2006-10-23  Eric Blake  <ebb9@byu.net>
68161
68162         * lib/getaddrinfo.c (includes): Add missing include.
68163
68164 2006-10-23  Bruno Haible  <bruno@clisp.org>
68165             Paul Eggert  <eggert@cs.ucla.edu>
68166
68167         Ability to rename obstack_free.
68168         * lib/obstack.h (__obstack_free): New macro. Declare instead of
68169         obstack_free.
68170         (obstack_free): Invoke the __obstack_free macro.
68171         * lib/obstack.c (obstack_free): Use __obstack_free macro.
68172
68173 2006-10-23  Bruno Haible  <bruno@clisp.org>
68174             Paul Eggert  <eggert@cs.ucla.edu>
68175
68176         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
68177         __argc, __argv from the declaration. (They are defined as macros on
68178         mingw.)
68179
68180 2006-10-22  Bruno Haible  <bruno@clisp.org>
68181
68182         * doc/gnulib-intro.texi: New file.
68183         * doc/gnulib.texi: Include it.
68184
68185 2006-10-21  Bruno Haible  <bruno@clisp.org>
68186
68187         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
68188         "Introduction", "Miscellanous Notes", "Particular Modules".
68189
68190 2006-10-21  Bruno Haible  <bruno@clisp.org>
68191
68192         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68193         Change mostlyclean-local rule to avoid sh syntax error from bash
68194         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
68195
68196 2006-10-23  Jim Meyering  <jim@meyering.net>
68197
68198         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
68199         in place of snprintf.
68200
68201         * modules/inttostr (Files): Add lib/uinttostr.c.
68202         * lib/uinttostr.c (inttostr): New file/function.
68203         * lib/inttostr.h (uinttostr): Declare.
68204         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
68205         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68206         Add uinttostr.
68207         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
68208
68209 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68210
68211         * lib/canonicalize.c (ELOOP): Define if not already defined.
68212         Problem reported by Bruno Haible in
68213         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
68214
68215 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68216
68217         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
68218         Problem reported by Perry Smith and Ville Laurikari.
68219
68220         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
68221         uses.
68222
68223 2006-10-19  Bruno Haible  <bruno@clisp.org>
68224
68225         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
68226         for mingw.
68227
68228 2006-10-19  Bruno Haible  <bruno@clisp.org>
68229
68230         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
68231         Needed for mingw.
68232
68233 2006-10-19  Bruno Haible  <bruno@clisp.org>
68234
68235         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
68236
68237 2006-10-19  Bruno Haible  <bruno@clisp.org>
68238
68239         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
68240         it.
68241
68242 2006-10-19  Bruno Haible  <bruno@clisp.org>
68243
68244         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
68245         invocation.
68246
68247 2006-10-19  Bruno Haible  <bruno@clisp.org>
68248
68249         * gnulib-tool (func_create_testdir): Don't include ftruncate and
68250         mountlist by default.
68251
68252 2006-10-16  Bruno Haible  <bruno@clisp.org>
68253
68254         * lib/c-strstr.c: Include c-strstr.h.
68255
68256 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68257
68258         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
68259         in a slash.
68260
68261 2006-10-18  Bruno Haible  <bruno@clisp.org>
68262
68263         * lib/lock.h [C++]: Wrap definitions in extern "C".
68264
68265 2006-10-18  Bruno Haible  <bruno@clisp.org>
68266
68267         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
68268         gl_LIBOBJS list.
68269
68270 2006-10-18  Bruno Haible  <bruno@clisp.org>
68271
68272         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
68273
68274 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
68275
68276         * lib/xstrtol.h: Include gettext.h.
68277         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
68278         Problem reported by Eric Blake.
68279         * modules/xstrtol (Depends-on): Add gettext-h.
68280
68281 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
68282
68283         * lib/strftime.c (advance): New macro.
68284         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
68285         incomplete type, so you can't add 0 to it.  Problem and patch
68286         reported by Eelco Dolstra for dietlibc.
68287
68288 2006-10-18  Jim Meyering  <jim@meyering.net>
68289
68290         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
68291         type for a local, and rename it: s/up/user_proc/.
68292
68293 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
68294
68295         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
68296         READ_UTMP_USER_PROCESS.
68297         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
68298
68299 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68300
68301         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
68302         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
68303
68304 2006-10-17  Eric Blake  <ebb9@byu.net>
68305
68306         * lib/sigprocmask.c (sigprocmask): Fix typo.
68307
68308         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
68309
68310         * modules/clean-temp (Makefile.am): Don't add to make output...
68311         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
68312         config.h.
68313
68314 2006-10-17  Bruno Haible  <bruno@clisp.org>
68315
68316         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
68317         differently if DEFAULT_TEXT_DOMAIN is set.
68318
68319 2006-10-16  Bruno Haible  <bruno@clisp.org>
68320
68321         * lib/clean-temp.c: Include fwriteerror.h.
68322
68323 2006-10-16  Bruno Haible  <bruno@clisp.org>
68324
68325         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
68326
68327 2006-10-16  Bruno Haible  <bruno@clisp.org>
68328
68329         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
68330         * lib/sigprocmask.h: Include <sys/types.h>.
68331         (sigset_t): Use the system's definition if present.
68332
68333 2006-10-17  Eric Blake  <ebb9@byu.net>
68334
68335         * lib/xvasprintf.c (includes): Assume config.h.
68336         * lib/xasprintf.c (includes): Likewise.
68337
68338 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
68339
68340         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
68341         at least as wide as intmax_t.
68342
68343 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
68344
68345         (Imported from Automake.)
68346         * build-aux/gnupload: Update to version 1.1 of directive file.
68347
68348 2006-10-16  Eric Blake  <ebb9@byu.net>
68349
68350         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
68351         match Automake 1.10a.
68352
68353 2006-10-14  Bruno Haible  <bruno@clisp.org>
68354
68355         * modules/sigprocmask: New file.
68356         * lib/sigprocmask.h: New file.
68357         * lib/sigprocmask.c: New file.
68358         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
68359         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
68360         request sigprocmask.o.
68361         (gl_PREREQ_SIGPROCMASK): New macro.
68362         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
68363         (Depends-on): Add sigprocmask.
68364         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
68365         gt_SIGNALBLOCKING. Test for 'raise' only once.
68366         * lib/fatal-signal.c: Include sigprocmask.h.
68367         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
68368         unblock_fatal_signals): Define always.
68369         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68370         sigprocmask.
68371
68372 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68373
68374         Sync from Automake.
68375         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
68376         which incorrectly sets the mode of an existing destination
68377         directory.  In some cases the unpatched install-sh could do the
68378         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
68379         system.  We hope this is rare in practice, but it's clearly worth
68380         fixing.  Problem reported by Alex Unleashed in
68381         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
68382         Also, don't bother to check for -m bugs unless we're using -m;
68383         suggested by Stepan Kasal.
68384
68385 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68386
68387         Sync from Automake.
68388         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
68389         `-c' flag, so they appear at the same position as in %FASTDEP%
68390         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
68391         which ignores unknown options only after the first non-option.
68392         Bug report against M4 by Nelson H. F. Beebe.
68393
68394 2006-10-13  Jim Meyering  <jim@meyering.net>
68395
68396         Fix a bug in yesterday's change.
68397         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
68398         p->fts_statp->st_dev would be used uninitialized.
68399         Ensures that we always call fts_stat on the very first entry.
68400         Miklos Szeredi reported that find -xdev stopped working.
68401
68402 2006-10-12  Bruno Haible  <bruno@clisp.org>
68403
68404         * gnulib-tool (func_get_automake_snippet): Append an automatically
68405         computed EXTRA_DIST augmentation.
68406         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
68407         * modules/alloca-opt (Makefile.am): Likewise.
68408         * modules/allocsa (Makefile.am): Likewise.
68409         * modules/arcfour (Makefile.am): Likewise.
68410         * modules/arctwo (Makefile.am): Likewise.
68411         * modules/argmatch (Makefile.am): Likewise.
68412         * modules/argz (Makefile.am): Likewise.
68413         * modules/atexit (Makefile.am): Likewise.
68414         * modules/backupfile (Makefile.am): Likewise.
68415         * modules/byteswap (Makefile.am): Likewise.
68416         * modules/c-strtod (Makefile.am): Likewise.
68417         * modules/c-strtold (Makefile.am): Likewise.
68418         * modules/calloc (Makefile.am): Likewise.
68419         * modules/canon-host (Makefile.am): Likewise.
68420         * modules/canonicalize (Makefile.am): Likewise.
68421         * modules/chdir-long (Makefile.am): Likewise.
68422         * modules/chdir-safer (Makefile.am): Likewise.
68423         * modules/check-version (Makefile.am): Likewise.
68424         * modules/chown (Makefile.am): Likewise.
68425         * modules/cloexec (Makefile.am): Likewise.
68426         * modules/close-stream (Makefile.am): Likewise.
68427         * modules/closeout (Makefile.am): Likewise.
68428         * modules/crc (Makefile.am): Likewise.
68429         * modules/csharpexec (Makefile.am): Likewise.
68430         * modules/cycle-check (Makefile.am): Likewise.
68431         * modules/des (Makefile.am): Likewise.
68432         * modules/dev-ino (Makefile.am): Likewise.
68433         * modules/dirfd (Makefile.am): Likewise.
68434         * modules/dirname (Makefile.am): Likewise.
68435         * modules/dup2 (Makefile.am): Likewise.
68436         * modules/eealloc (Makefile.am): Likewise.
68437         * modules/error (Makefile.am): Likewise.
68438         * modules/euidaccess (Makefile.am): Likewise.
68439         * modules/exclude (Makefile.am): Likewise.
68440         * modules/exitfail (Makefile.am): Likewise.
68441         * modules/fcntl-safer (Makefile.am): Likewise.
68442         * modules/fcntl (Makefile.am): Likewise.
68443         * modules/file-type (Makefile.am): Likewise.
68444         * modules/fileblocks (Makefile.am): Likewise.
68445         * modules/filemode (Makefile.am): Likewise.
68446         * modules/filenamecat (Makefile.am): Likewise.
68447         * modules/fnmatch (Makefile.am): Likewise.
68448         * modules/fopen-safer (Makefile.am): Likewise.
68449         * modules/fpending (Makefile.am): Likewise.
68450         * modules/fprintftime (Makefile.am): Likewise.
68451         * modules/free (Makefile.am): Likewise.
68452         * modules/fsusage (Makefile.am): Likewise.
68453         * modules/ftruncate (Makefile.am): Likewise.
68454         * modules/fts (Makefile.am): Likewise.
68455         * modules/gc-arcfour (Makefile.am): Likewise.
68456         * modules/gc-des (Makefile.am): Likewise.
68457         * modules/gc-hmac-md5 (Makefile.am): Likewise.
68458         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
68459         * modules/gc-md4 (Makefile.am): Likewise.
68460         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68461         * modules/gc-sha1 (Makefile.am): Likewise.
68462         * modules/gc (Makefile.am): Likewise.
68463         * modules/getaddrinfo (Makefile.am): Likewise.
68464         * modules/getcwd (Makefile.am): Likewise.
68465         * modules/getdelim (Makefile.am): Likewise.
68466         * modules/getdomainname (Makefile.am): Likewise.
68467         * modules/getgroups (Makefile.am): Likewise.
68468         * modules/gethostname (Makefile.am): Likewise.
68469         * modules/gethrxtime (Makefile.am): Likewise.
68470         * modules/getline (Makefile.am): Likewise.
68471         * modules/getloadavg (Makefile.am): Likewise.
68472         * modules/getlogin_r (Makefile.am): Likewise.
68473         * modules/getndelim2 (Makefile.am): Likewise.
68474         * modules/getopt (Makefile.am): Likewise.
68475         * modules/getpagesize (Makefile.am): Likewise.
68476         * modules/getpass-gnu (Makefile.am): Likewise.
68477         * modules/getpass (Makefile.am): Likewise.
68478         * modules/getsubopt (Makefile.am): Likewise.
68479         * modules/gettime (Makefile.am): Likewise.
68480         * modules/gettimeofday (Makefile.am): Likewise.
68481         * modules/getugroups (Makefile.am): Likewise.
68482         * modules/getusershell (Makefile.am): Likewise.
68483         * modules/glob (Makefile.am): Likewise.
68484         * modules/group-member (Makefile.am): Likewise.
68485         * modules/hard-locale (Makefile.am): Likewise.
68486         * modules/hash (Makefile.am): Likewise.
68487         * modules/hmac-md5 (Makefile.am): Likewise.
68488         * modules/hmac-sha1 (Makefile.am): Likewise.
68489         * modules/human (Makefile.am): Likewise.
68490         * modules/idcache (Makefile.am): Likewise.
68491         * modules/imaxabs (Makefile.am): Likewise.
68492         * modules/imaxdiv (Makefile.am): Likewise.
68493         * modules/inet_ntop (Makefile.am): Likewise.
68494         * modules/inet_pton (Makefile.am): Likewise.
68495         * modules/intprops (Makefile.am): Likewise.
68496         * modules/inttostr (Makefile.am): Likewise.
68497         * modules/inttypes (Makefile.am): Likewise.
68498         * modules/isapipe (Makefile.am): Likewise.
68499         * modules/javaversion (Makefile.am): Likewise.
68500         * modules/lchmod (Makefile.am): Likewise.
68501         * modules/lchown (Makefile.am): Likewise.
68502         * modules/localcharset (Makefile.am): Likewise.
68503         * modules/long-options (Makefile.am): Likewise.
68504         * modules/lstat (Makefile.am): Likewise.
68505         * modules/malloc (Makefile.am): Likewise.
68506         * modules/mathl (Makefile.am): Likewise.
68507         * modules/mbchar (Makefile.am): Likewise.
68508         * modules/md2 (Makefile.am): Likewise.
68509         * modules/md4 (Makefile.am): Likewise.
68510         * modules/md5 (Makefile.am): Likewise.
68511         * modules/memcasecmp (Makefile.am): Likewise.
68512         * modules/memchr (Makefile.am): Likewise.
68513         * modules/memcmp (Makefile.am): Likewise.
68514         * modules/memcoll (Makefile.am): Likewise.
68515         * modules/memcpy (Makefile.am): Likewise.
68516         * modules/memmem (Makefile.am): Likewise.
68517         * modules/memmove (Makefile.am): Likewise.
68518         * modules/mempcpy (Makefile.am): Likewise.
68519         * modules/memrchr (Makefile.am): Likewise.
68520         * modules/memset (Makefile.am): Likewise.
68521         * modules/memxor (Makefile.am): Likewise.
68522         * modules/mkancesdirs (Makefile.am): Likewise.
68523         * modules/mkdir-p (Makefile.am): Likewise.
68524         * modules/mkdir (Makefile.am): Likewise.
68525         * modules/mkdtemp (Makefile.am): Likewise.
68526         * modules/mkstemp (Makefile.am): Likewise.
68527         * modules/mktime (Makefile.am): Likewise.
68528         * modules/modechange (Makefile.am): Likewise.
68529         * modules/mountlist (Makefile.am): Likewise.
68530         * modules/nanosleep (Makefile.am): Likewise.
68531         * modules/obstack (Makefile.am): Likewise.
68532         * modules/openat (Makefile.am): Likewise.
68533         * modules/pagealign_alloc (Makefile.am): Likewise.
68534         * modules/pathmax (Makefile.am): Likewise.
68535         * modules/physmem (Makefile.am): Likewise.
68536         * modules/poll (Makefile.am): Likewise.
68537         * modules/posixtm (Makefile.am): Likewise.
68538         * modules/posixver (Makefile.am): Likewise.
68539         * modules/putenv (Makefile.am): Likewise.
68540         * modules/quote (Makefile.am): Likewise.
68541         * modules/quotearg (Makefile.am): Likewise.
68542         * modules/raise (Makefile.am): Likewise.
68543         * modules/read-file (Makefile.am): Likewise.
68544         * modules/readline (Makefile.am): Likewise.
68545         * modules/readlink (Makefile.am): Likewise.
68546         * modules/readtokens (Makefile.am): Likewise.
68547         * modules/readutmp (Makefile.am): Likewise.
68548         * modules/realloc (Makefile.am): Likewise.
68549         * modules/regex (Makefile.am): Likewise.
68550         * modules/rename-dest-slash (Makefile.am): Likewise.
68551         * modules/rename (Makefile.am): Likewise.
68552         * modules/rijndael (Makefile.am): Likewise.
68553         * modules/rmdir (Makefile.am): Likewise.
68554         * modules/rpmatch (Makefile.am): Likewise.
68555         * modules/safe-read (Makefile.am): Likewise.
68556         * modules/safe-write (Makefile.am): Likewise.
68557         * modules/same-inode (Makefile.am): Likewise.
68558         * modules/same (Makefile.am): Likewise.
68559         * modules/save-cwd (Makefile.am): Likewise.
68560         * modules/savedir (Makefile.am): Likewise.
68561         * modules/setenv (Makefile.am): Likewise.
68562         * modules/settime (Makefile.am): Likewise.
68563         * modules/sha1 (Makefile.am): Likewise.
68564         * modules/sig2str (Makefile.am): Likewise.
68565         * modules/snprintf (Makefile.am): Likewise.
68566         * modules/stat-macros (Makefile.am): Likewise.
68567         * modules/stat-time (Makefile.am): Likewise.
68568         * modules/stdbool (Makefile.am): Likewise.
68569         * modules/stdint (Makefile.am): Likewise.
68570         * modules/stdlib-safer (Makefile.am): Likewise.
68571         * modules/stpcpy (Makefile.am): Likewise.
68572         * modules/stpncpy (Makefile.am): Likewise.
68573         * modules/strcase (Makefile.am): Likewise.
68574         * modules/strcasestr (Makefile.am): Likewise.
68575         * modules/strchrnul (Makefile.am): Likewise.
68576         * modules/strcspn (Makefile.am): Likewise.
68577         * modules/strdup (Makefile.am): Likewise.
68578         * modules/strerror (Makefile.am): Likewise.
68579         * modules/strftime (Makefile.am): Likewise.
68580         * modules/strndup (Makefile.am): Likewise.
68581         * modules/strnlen (Makefile.am): Likewise.
68582         * modules/strpbrk (Makefile.am): Likewise.
68583         * modules/strsep (Makefile.am): Likewise.
68584         * modules/strstr (Makefile.am): Likewise.
68585         * modules/strtod (Makefile.am): Likewise.
68586         * modules/strtoimax (Makefile.am): Likewise.
68587         * modules/strtok_r (Makefile.am): Likewise.
68588         * modules/strtol (Makefile.am): Likewise.
68589         * modules/strtoll (Makefile.am): Likewise.
68590         * modules/strtoul (Makefile.am): Likewise.
68591         * modules/strtoull (Makefile.am): Likewise.
68592         * modules/strtoumax (Makefile.am): Likewise.
68593         * modules/strverscmp (Makefile.am): Likewise.
68594         * modules/sys_socket (Makefile.am): Likewise.
68595         * modules/sys_stat (Makefile.am): Likewise.
68596         * modules/sysexits (Makefile.am): Likewise.
68597         * modules/time_r (Makefile.am): Likewise.
68598         * modules/timegm (Makefile.am): Likewise.
68599         * modules/timespec (Makefile.am): Likewise.
68600         * modules/tmpfile-safer (Makefile.am): Likewise.
68601         * modules/trim (Makefile.am): Likewise.
68602         * modules/unistd-safer (Makefile.am): Likewise.
68603         * modules/unlinkdir (Makefile.am): Likewise.
68604         * modules/unlocked-io (Makefile.am): Likewise.
68605         * modules/userspec (Makefile.am): Likewise.
68606         * modules/utime (Makefile.am): Likewise.
68607         * modules/utimecmp (Makefile.am): Likewise.
68608         * modules/utimens (Makefile.am): Likewise.
68609         * modules/vasnprintf (Makefile.am): Likewise.
68610         * modules/vasprintf (Makefile.am): Likewise.
68611         * modules/vsnprintf (Makefile.am): Likewise.
68612         * modules/xalloc (Makefile.am): Likewise.
68613         * modules/xgetcwd (Makefile.am): Likewise.
68614         * modules/xnanosleep (Makefile.am): Likewise.
68615         * modules/xreadlink (Makefile.am): Likewise.
68616         * modules/xstrtod (Makefile.am): Likewise.
68617         * modules/xstrtol (Makefile.am): Likewise.
68618         * modules/xstrtold (Makefile.am): Likewise.
68619         * modules/yesno (Makefile.am): Likewise.
68620         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
68621
68622 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68623
68624         * modules/error (Makefile.am): Distribute files through
68625         EXTRA_DIST, not lib_SOURCES.
68626
68627 2006-10-12  Eric Blake  <ebb9@byu.net>
68628
68629         * modules/error (Makefile.am): Distribute files in /lib.
68630         * modules/obstack (Makefile.am): Likewise.
68631
68632 2006-10-12  Bruno Haible  <bruno@clisp.org>
68633
68634         * modules/acl (Makefile.am): Distribute all files in lib/ through
68635         EXTRA_DIST.
68636         * modules/arcfour (Makefile.am): Likewise.
68637         * modules/arctwo (Makefile.am): Likewise.
68638         * modules/argmatch (Makefile.am): Likewise.
68639         * modules/argz (Makefile.am): Likewise.
68640         * modules/atexit (Makefile.am): Likewise.
68641         * modules/backupfile (Makefile.am): Likewise.
68642         * modules/c-strtod (Makefile.am): Likewise.
68643         * modules/c-strtold (Makefile.am): Likewise.
68644         * modules/calloc (Makefile.am): Likewise.
68645         * modules/canon-host (Makefile.am): Likewise.
68646         * modules/canonicalize (Makefile.am): Likewise.
68647         * modules/chdir-long (Makefile.am): Likewise.
68648         * modules/chdir-safer (Makefile.am): Likewise.
68649         * modules/check-version (Makefile.am): Likewise.
68650         * modules/chown (Makefile.am): Likewise.
68651         * modules/cloexec (Makefile.am): Likewise.
68652         * modules/close-stream (Makefile.am): Likewise.
68653         * modules/closeout (Makefile.am): Likewise.
68654         * modules/crc (Makefile.am): Likewise.
68655         * modules/cycle-check (Makefile.am): Likewise.
68656         * modules/des (Makefile.am): Likewise.
68657         * modules/dirfd (Makefile.am): Likewise.
68658         * modules/dirname (Makefile.am): Likewise.
68659         * modules/dup2 (Makefile.am): Likewise.
68660         * modules/euidaccess (Makefile.am): Likewise.
68661         * modules/exclude (Makefile.am): Likewise.
68662         * modules/exitfail (Makefile.am): Likewise.
68663         * modules/fcntl-safer (Makefile.am): Likewise.
68664         * modules/file-type (Makefile.am): Likewise.
68665         * modules/fileblocks (Makefile.am): Likewise.
68666         * modules/filemode (Makefile.am): Likewise.
68667         * modules/filenamecat (Makefile.am): Likewise.
68668         * modules/fnmatch (Makefile.am): Likewise.
68669         * modules/fopen-safer (Makefile.am): Likewise.
68670         * modules/fpending (Makefile.am): Likewise.
68671         * modules/fprintftime (Makefile.am): Likewise.
68672         * modules/free (Makefile.am): Likewise.
68673         * modules/fsusage (Makefile.am): Likewise.
68674         * modules/ftruncate (Makefile.am): Likewise.
68675         * modules/fts (Makefile.am): Likewise.
68676         * modules/gc (Makefile.am): Likewise.
68677         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68678         * modules/getaddrinfo (Makefile.am): Likewise.
68679         * modules/getcwd (Makefile.am): Likewise.
68680         * modules/getdelim (Makefile.am): Likewise.
68681         * modules/getdomainname (Makefile.am): Likewise.
68682         * modules/getgroups (Makefile.am): Likewise.
68683         * modules/gethostname (Makefile.am): Likewise.
68684         * modules/gethrxtime (Makefile.am): Likewise.
68685         * modules/getline (Makefile.am): Likewise.
68686         * modules/getloadavg (Makefile.am): Likewise.
68687         * modules/getlogin_r (Makefile.am): Likewise.
68688         * modules/getopt (Makefile.am): Likewise.
68689         * modules/getpass (Makefile.am): Likewise.
68690         * modules/getpass-gnu (Makefile.am): Likewise.
68691         * modules/getsubopt (Makefile.am): Likewise.
68692         * modules/gettime (Makefile.am): Likewise.
68693         * modules/gettimeofday (Makefile.am): Likewise.
68694         * modules/getugroups (Makefile.am): Likewise.
68695         * modules/getusershell (Makefile.am): Likewise.
68696         * modules/glob (Makefile.am): Likewise.
68697         * modules/group-member (Makefile.am): Likewise.
68698         * modules/hard-locale (Makefile.am): Likewise.
68699         * modules/hash (Makefile.am): Likewise.
68700         * modules/hmac-md5 (Makefile.am): Likewise.
68701         * modules/hmac-sha1 (Makefile.am): Likewise.
68702         * modules/human (Makefile.am): Likewise.
68703         * modules/idcache (Makefile.am): Likewise.
68704         * modules/imaxabs (Makefile.am): Likewise.
68705         * modules/imaxdiv (Makefile.am): Likewise.
68706         * modules/inet_ntop (Makefile.am): Likewise.
68707         * modules/inet_pton (Makefile.am): Likewise.
68708         * modules/inttostr (Makefile.am): Likewise.
68709         * modules/isapipe (Makefile.am): Likewise.
68710         * modules/lchown (Makefile.am): Likewise.
68711         * modules/long-options (Makefile.am): Likewise.
68712         * modules/lstat (Makefile.am): Likewise.
68713         * modules/malloc (Makefile.am): Likewise.
68714         * modules/mathl (Makefile.am): Likewise.
68715         * modules/mbchar (Makefile.am): Likewise.
68716         * modules/md2 (Makefile.am): Likewise.
68717         * modules/md4 (Makefile.am): Likewise.
68718         * modules/md5 (Makefile.am): Likewise.
68719         * modules/memcasecmp (Makefile.am): Likewise.
68720         * modules/memchr (Makefile.am): Likewise.
68721         * modules/memcmp (Makefile.am): Likewise.
68722         * modules/memcoll (Makefile.am): Likewise.
68723         * modules/memcpy (Makefile.am): Likewise.
68724         * modules/memmem (Makefile.am): Likewise.
68725         * modules/memmove (Makefile.am): Likewise.
68726         * modules/mempcpy (Makefile.am): Likewise.
68727         * modules/memrchr (Makefile.am): Likewise.
68728         * modules/memset (Makefile.am): Likewise.
68729         * modules/memxor (Makefile.am): Likewise.
68730         * modules/mkancesdirs (Makefile.am): Likewise.
68731         * modules/mkdir (Makefile.am): Likewise.
68732         * modules/mkdir-p (Makefile.am): Likewise.
68733         * modules/mkdtemp (Makefile.am): Likewise.
68734         * modules/mkstemp (Makefile.am): Likewise.
68735         * modules/mktime (Makefile.am): Likewise.
68736         * modules/modechange (Makefile.am): Likewise.
68737         * modules/mountlist (Makefile.am): Likewise.
68738         * modules/nanosleep (Makefile.am): Likewise.
68739         * modules/openat (Makefile.am): Likewise.
68740         * modules/pagealign_alloc (Makefile.am): Likewise.
68741         * modules/physmem (Makefile.am): Likewise.
68742         * modules/poll (Makefile.am): Likewise.
68743         * modules/posixtm (Makefile.am): Likewise.
68744         * modules/posixver (Makefile.am): Likewise.
68745         * modules/putenv (Makefile.am): Likewise.
68746         * modules/quote (Makefile.am): Likewise.
68747         * modules/quotearg (Makefile.am): Likewise.
68748         * modules/raise (Makefile.am): Likewise.
68749         * modules/read-file (Makefile.am): Likewise.
68750         * modules/readline (Makefile.am): Likewise.
68751         * modules/readlink (Makefile.am): Likewise.
68752         * modules/readtokens (Makefile.am): Likewise.
68753         * modules/readutmp (Makefile.am): Likewise.
68754         * modules/realloc (Makefile.am): Likewise.
68755         * modules/regex (Makefile.am): Likewise.
68756         * modules/rename (Makefile.am): Likewise.
68757         * modules/rename-dest-slash (Makefile.am): Likewise.
68758         * modules/rijndael (Makefile.am): Likewise.
68759         * modules/rmdir (Makefile.am): Likewise.
68760         * modules/rpmatch (Makefile.am): Likewise.
68761         * modules/safe-read (Makefile.am): Likewise.
68762         * modules/safe-write (Makefile.am): Likewise.
68763         * modules/same (Makefile.am): Likewise.
68764         * modules/save-cwd (Makefile.am): Likewise.
68765         * modules/savedir (Makefile.am): Likewise.
68766         * modules/setenv (Makefile.am): Likewise.
68767         * modules/settime (Makefile.am): Likewise.
68768         * modules/sha1 (Makefile.am): Likewise.
68769         * modules/sig2str (Makefile.am): Likewise.
68770         * modules/snprintf (Makefile.am): Likewise.
68771         * modules/stdlib-safer (Makefile.am): Likewise.
68772         * modules/stpcpy (Makefile.am): Likewise.
68773         * modules/stpncpy (Makefile.am): Likewise.
68774         * modules/strcase (Makefile.am): Likewise.
68775         * modules/strcasestr (Makefile.am): Likewise.
68776         * modules/strchrnul (Makefile.am): Likewise.
68777         * modules/strcspn (Makefile.am): Likewise.
68778         * modules/strdup (Makefile.am): Likewise.
68779         * modules/strerror (Makefile.am): Likewise.
68780         * modules/strftime (Makefile.am): Likewise.
68781         * modules/strndup (Makefile.am): Likewise.
68782         * modules/strnlen (Makefile.am): Likewise.
68783         * modules/strpbrk (Makefile.am): Likewise.
68784         * modules/strsep (Makefile.am): Likewise.
68785         * modules/strstr (Makefile.am): Likewise.
68786         * modules/strtod (Makefile.am): Likewise.
68787         * modules/strtoimax (Makefile.am): Likewise.
68788         * modules/strtok_r (Makefile.am): Likewise.
68789         * modules/strtol (Makefile.am): Likewise.
68790         * modules/strtoll (Makefile.am): Likewise.
68791         * modules/strtoul (Makefile.am): Likewise.
68792         * modules/strtoull (Makefile.am): Likewise.
68793         * modules/strtoumax (Makefile.am): Likewise.
68794         * modules/strverscmp (Makefile.am): Likewise.
68795         * modules/time_r (Makefile.am): Likewise.
68796         * modules/timegm (Makefile.am): Likewise.
68797         * modules/tmpfile-safer (Makefile.am): Likewise.
68798         * modules/unistd-safer (Makefile.am): Likewise.
68799         * modules/unlinkdir (Makefile.am): Likewise.
68800         * modules/userspec (Makefile.am): Likewise.
68801         * modules/utime (Makefile.am): Likewise.
68802         * modules/utimecmp (Makefile.am): Likewise.
68803         * modules/utimens (Makefile.am): Likewise.
68804         * modules/vasnprintf (Makefile.am): Likewise.
68805         * modules/vasprintf (Makefile.am): Likewise.
68806         * modules/vsnprintf (Makefile.am): Likewise.
68807         * modules/xalloc (Makefile.am): Likewise.
68808         * modules/xgetcwd (Makefile.am): Likewise.
68809         * modules/xnanosleep (Makefile.am): Likewise.
68810         * modules/xreadlink (Makefile.am): Likewise.
68811         * modules/xstrtod (Makefile.am): Likewise.
68812         * modules/xstrtol (Makefile.am): Likewise.
68813         * modules/xstrtold (Makefile.am): Likewise.
68814         * modules/yesno (Makefile.am): Likewise.
68815
68816 2006-10-12  Jim Meyering  <jim@meyering.net>
68817
68818         * m4/getloadavg.m4: Revert the change below.
68819
68820         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
68821         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
68822         fail with a symlink, which is what coreutils' ./bootstrap now
68823         creates by default.
68824
68825 2006-10-12  Bruno Haible  <bruno@clisp.org>
68826
68827         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
68828         mingw.
68829         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
68830         MSVC and mingw explicitly.
68831
68832 2006-10-11  Simon Josefsson  <jas@extundo.com>
68833             Bruno Haible  <bruno@clisp.org>
68834
68835         Add support for multiple gnulib-tool invocations in the scope of a
68836         single configure.ac file.
68837         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
68838         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
68839         with the same contents as the _LIBADD variable.
68840         (func_emit_initmacro_start, func_emit_initmacro_end,
68841         func_emit_initmacro_done): New functions.
68842         (func_import, func_create_testdir): Invoke them. Allow the identifiers
68843         gl_LIBOBJS and gl_LTLIBOBJS.
68844
68845 2006-10-11  Bruno Haible  <bruno@clisp.org>
68846
68847         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
68848         (func_create_testdir): Don't create po/Makefile.am, don't invoke
68849         autoreconf. Instead, invoke autopoint explicitly but move back the
68850         *.m4 files from gnulib.
68851
68852 2006-10-11  Bruno Haible  <bruno@clisp.org>
68853
68854         * gnulib-tool (func_usage): Make module names after --create-testdir
68855         optional.
68856         (func_create_testdir): If no module was specified, use nearly all
68857         modules.
68858
68859 2006-10-12  Jim Meyering  <jim@meyering.net>
68860
68861         Big performance improvement for fts-based tools that use FTS_NOSTAT.
68862         Avoid spurious inode-mismatch problems on non-POSIX file systems.
68863         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
68864         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
68865         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
68866         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
68867         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
68868         (fts_set_stat_required): New function.
68869         (fts_open): Defer the calls to fts_stat, if possible or requested.
68870         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
68871         into fts_stat itself.
68872         (fts_read): Perform any required (deferred) fts_stat call.
68873         (fts_build): Likewise, for the directory we're about to open and read.
68874         In the readdir loop, carefully decide whether each entry will require
68875         an eventual call to fts_stat, using dirent.d_type info if available.
68876         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
68877         a command line argument into this function.  Update all callers.
68878         Map a return value of FTS_DOT to FTS_D for a command line argument.
68879         * modules/fts (Depends-on): Add d-type.  Alphabetize.
68880         Thanks to Miklos Szeredi for his tenacity and for the initial
68881         bug report about "find" failing on a FUSE-based file system.
68882
68883         * lib/fts.c (fts_open): Use consistent indentation.
68884
68885 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68886
68887         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
68888         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
68889         reported by Jim Meyering.  All uses of cache variables renamed
68890         to match Autoconf's.
68891         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
68892         the other one.
68893
68894         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
68895         Fix misspelling in diagnostic.
68896
68897 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68898
68899         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
68900         defined.  Problem reported by Matthew Woehlke.
68901
68902         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
68903         Add support for Tandem NonStop R series.
68904         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
68905         Use new macro.
68906
68907         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
68908         (has_trailing_slash): Omit size arg; all callers changed.
68909         Omit 'inline', since it doesn't help performance and we'd
68910         need to configure it.
68911         Don't count //, ///, etc. as having a trailing slash.
68912         As a side effect, this removes a C99ism reported by Matthew Woehlke.
68913         (rpl_rename_dest_slash): On failure, use rename's errno rather
68914         than (in some cases) an incorrect or junk errno.
68915         Simplify code by removing need to compute length; this does
68916         cause it to make two passes instead of one over the file name,
68917         but it's worth it.
68918
68919         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
68920         change, since Autoconf's version may no longer be appropriate now
68921         that we are using CVS Autoconf's version.  Add support for Tandem.
68922
68923 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68924             Bruno Haible  <bruno@clisp.org>
68925
68926         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
68927         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
68928         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
68929         gl_AC_TYPE_LONG_LONG.
68930
68931         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
68932         instead of HAVE_LONG_LONG.
68933         * lib/printf-args.c (printf_fetchargs): Likewise.
68934         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
68935         * lib/vasnprintf.c (VASNPRINTF): Likewise.
68936         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
68937         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
68938         gl_AC_TYPE_LONG_LONG.
68939
68940 2006-10-11  Bruno Haible  <bruno@clisp.org>
68941
68942         * m4/longlong.m4: Add comments.
68943         * m4/ulonglong.m4: Likewise.
68944
68945 2006-10-10  Bruno Haible  <bruno@clisp.org>
68946
68947         Make it possible to #define stpcpy, strdup to aliases.
68948         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
68949         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
68950
68951 2006-10-10  Bruno Haible  <bruno@clisp.org>
68952
68953         Make it possible to #define gcd to an alias.
68954         * lib/gcd.c: Include config.h.
68955
68956 2006-10-10  Bruno Haible  <bruno@clisp.org>
68957
68958         Make it possible to #define c_isascii to an alias.
68959         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
68960         defined. Undefine the macros before defining them, to avoid gcc
68961         warnings.
68962         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
68963         define NO_C_CTYPE_MACROS early.
68964
68965 2006-10-10  Bruno Haible  <bruno@clisp.org>
68966
68967         Make it possible to #define set_program_name to an alias.
68968         * lib/progname.c: Don't undefine set_program_name; instead, undefine
68969         ENABLE_RELOCATABLE early.
68970
68971 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68972
68973         Port to Tandem NSK OSS, which has 64-bit signed int but at most
68974         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
68975         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
68976         More generally, don't assume that 64-bit signed int is available
68977         if unsigned int is, and vice versa.
68978         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
68979         unsigned symbols, not on their signed counterparts.
68980         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
68981         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
68982         (UINT64_C, UINTMAX_C):
68983         Likewise.
68984         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
68985         unsigned counterparts.
68986         (Have_long_long, Unsigned): New macros.
68987         (Int): Renamed from INT.
68988         (strtoimax): Use the new macros.
68989         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
68990         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
68991         * modules/inttypes (inttypes.h): Substitute
68992         HAVE_UNSIGNED_LONG_LONG_INT.
68993         * modules/stdint (stdint.h): Likewise.
68994         (Files): Add m4/ulonglong.m4.
68995
68996 2006-10-10  Bruno Haible  <bruno@clisp.org>
68997
68998         Fix a gcc -Wshadow warning.
68999         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
69000         to 'bucket'.
69001         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
69002         gl_linked_indexof_from_to): Likewise.
69003         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
69004         Likewise.
69005         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
69006         Likewise.
69007         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
69008         Reported by Eric Blake.
69009
69010 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
69011
69012         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
69013         for NetBSD.  Problem reported by Bruno Haible.
69014
69015 2006-10-09  Jim Meyering  <jim@meyering.net>
69016
69017         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
69018         Patch from Bruno Haible.
69019
69020 2006-10-09  Jim Meyering  <jim@meyering.net>
69021
69022         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
69023         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
69024         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
69025
69026 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69027
69028         Don't include <config.h> twice; this doesn't work in some cases,
69029         e.g., when config.h has "#define intmax_t long long int" and
69030         we include <config.h>, <inttypes.h>, <config.h> in that order.
69031         Problem reported by Matthew Woehlke in:
69032         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
69033         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
69034         * lib/fts-cycle.c: Don't include config.h.
69035         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
69036         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
69037         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
69038         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
69039         inttypes.h.
69040         * lib/xstrtoumax.c: Likewise.
69041         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
69042         __strtol and the like, so that this module is more like its siblings.
69043         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
69044         Remove; no longer needed now that we assume gnulib inttypes.h.
69045
69046 2006-10-08  Bruno Haible  <bruno@clisp.org>
69047
69048         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
69049         option.
69050
69051 2006-10-07  Jim Meyering  <jim@meyering.net>
69052
69053         * modules/inttypes (inttypes.h): Revert what seems to have been
69054         an inadvertent part of today's change: use "|", not "/" in the
69055         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
69056
69057 2006-10-07  Bruno Haible  <bruno@clisp.org>
69058
69059         * modules/sublist: New file.
69060
69061 2006-10-07  Bruno Haible  <bruno@clisp.org>
69062
69063         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
69064         * modules/argz (argz.h): Likewise.
69065         * modules/arpa_inet (arpa/inet.h): Likewise.
69066         * modules/byteswap (byteswap.h): Likewise.
69067         * modules/configmake (configmake.h): Likewise.
69068         * modules/fcntl (fcntl.h): Likewise.
69069         * modules/fnmatch (fnmatch.h): Likewise.
69070         * modules/getopt (getopt.h): Likewise.
69071         * modules/glob (glob.h): Likewise.
69072         * modules/inttypes (inttypes.h): Likewise.
69073         * modules/netinet_in (netinet/in.h): Likewise.
69074         * modules/poll (poll.h): Likewise.
69075         * modules/stdbool (stdbool.h): Likewise.
69076         * modules/stdint (stdint.h): Likewise.
69077         * modules/sys_select (sys/select.h): Likewise.
69078         * modules/sys_socket (sys/socket.h): Likewise.
69079         * modules/sys_stat (sys/stat.h): Likewise.
69080         * modules/sysexits (sysexits.h): Likewise.
69081         * modules/unistd (unistd.h): Likewise.
69082         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69083         Add a "DO NOT EDIT" comment to the generated file.
69084         (func_import): Likewise for gnulib-comp.m4.
69085
69086 2006-10-07  Bruno Haible  <bruno@clisp.org>
69087
69088         * lib/gl_sublist.h: New file.
69089         * lib/gl_sublist.c: New file.
69090
69091 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69092
69093         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
69094         name (relative to the original working directory) and the file
69095         name component (relative to the temporary working directory).  All
69096         callers changed.
69097         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
69098         * lib/mkdir-p.c (make_dir_parents): Likewise.
69099         * lib/mkdir-p.h (make_dir_parents): Likewise.
69100
69101 2006-10-06  Eric Blake  <ebb9@byu.net>
69102
69103         Define several macros for use by the clean-temp module.
69104         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
69105         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
69106         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
69107
69108         * lib/clean-temp.h (close_stream_temp): New declaration.
69109         * lib/clean-temp.c (includes): Pull in headers according to what
69110         other modules are in use.
69111         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
69112
69113 2006-10-06  Bruno Haible  <bruno@clisp.org>
69114
69115         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
69116         instead of fopen, fwriteerror.
69117
69118 2006-10-06  Bruno Haible  <bruno@clisp.org>
69119
69120         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
69121         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
69122         int.
69123         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
69124         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
69125         Return an error indicator.
69126         Suggested by Eric Blake.
69127
69128 2006-10-06  Bruno Haible  <bruno@clisp.org>
69129
69130         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
69131         Reported by Eric Blake.
69132
69133 2006-10-06  Bruno Haible  <bruno@clisp.org>
69134
69135         * modules/closeout (Description): Mention stderr too.
69136
69137 2006-10-06  Bruno Haible  <bruno@clisp.org>
69138         and Paul Eggert  <eggert@cs.ucla.edu>
69139
69140         * lib/closeout.c (close_stdout): Also close stderr.
69141         * lib/closeout.h: Update comment.
69142
69143 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
69144
69145         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
69146         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
69147         * lib/dirchownmod.c: Include lchown.h.
69148         * lib/lchown.c: Don't include files that lchown.h now includes.
69149         Don't declare chown, since lchown.h now does that.
69150         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
69151         (lchown): Define to rpl_chown if lchown is declared but
69152         does not exist.  Declare using a prototype if lchown is not
69153         declared.  Add a copyright notice.
69154         * lib/mkstemp.h: Include <unistd.h>.
69155         * lib/openat.c: Include lchown.h.
69156
69157         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
69158         we now test for that separately.
69159         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
69160         rather than O_NOFOLLOW, when testing whether it's possible to
69161         avoid a race condition reliably.
69162         * lib/savewd.c (savewd_chdir): Likewise.
69163
69164         Remove macros that are no longer needed now that stdint.h is
69165         reliable.
69166         * lib/fsusage.c (UINTMAX_MAX): Remove.
69167         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
69168         * lib/utimecmp.c (SIZE_MAX): Remove.
69169
69170         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
69171
69172         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
69173         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
69174         O_NOATIME works.
69175
69176 2006-10-05  Bruno Haible  <bruno@clisp.org>
69177
69178         * lib/gl_list.h (gl_sortedlist_search_from_to,
69179         gl_sortedlist_indexof_from_to): New declarations.
69180         (gl_list_implementation): New fields sortedlist_search_from_to,
69181         sortedlist_indexof_from_to.
69182         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
69183         inline functions.
69184         * lib/gl_list.c (gl_sortedlist_search_from_to,
69185         gl_sortedlist_indexof_from_to): New functions.
69186         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
69187         function.
69188         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
69189         (gl_array_sortedlist_search_from_to): New function.
69190         (gl_array_list_implementation): Update.
69191         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
69192         function.
69193         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
69194         (gl_carray_sortedlist_search_from_to): New function.
69195         (gl_carray_list_implementation): Update.
69196         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
69197         gl_linked_sortedlist_indexof_from_to): New functions.
69198         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69199         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69200         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
69201         gl_tree_sortedlist_indexof_from_to): New functions.
69202         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69203         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69204         Update.
69205         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69206         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
69207         Update.
69208
69209 2006-10-05  Bruno Haible  <bruno@clisp.org>
69210
69211         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
69212         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
69213         (struct gl_list_implementation): Add fields search_from_to,
69214         indexof_from_to. Remove fields search, indexof.
69215         (gl_list_search): Use the search_from_to method.
69216         (gl_list_search_from, gl_list_search_from_to): New functions.
69217         (gl_list_indexof): Use the indexof_from_to method.
69218         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69219         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
69220         (gl_list_search_from, gl_list_search_from_to): New functions.
69221         (gl_list_indexof): Use the indexof_from_to method.
69222         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69223         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
69224         gl_array_indexof. Add start_index, end_index arguments.
69225         (gl_array_search_from_to): Renamed from gl_array_search. Add
69226         start_index, end_index arguments.
69227         (gl_array_remove, gl_array_list_implementation): Update.
69228         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
69229         gl_carray_indexof. Add start_index, end_index arguments.
69230         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
69231         start_index, end_index arguments.
69232         (gl_carray_remove, gl_carray_list_implementation): Update.
69233         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
69234         gl_linked_search. Add start_index, end_index arguments.
69235         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
69236         start_index, end_index arguments.
69237         (gl_linked_remove): Update.
69238         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69239         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69240         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
69241         field to 'size_t'.
69242         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
69243         gl_tree_search. Add start_index, end_index arguments.
69244         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69245         start_index, end_index arguments.
69246         (gl_tree_remove): Update.
69247         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69248         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69249         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
69250         function.
69251         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
69252         gl_tree_search. Add start_index, end_index arguments.
69253         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69254         start_index, end_index arguments.
69255         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69256         Update.
69257         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
69258
69259 2006-10-05  Bruno Haible  <bruno@clisp.org>
69260
69261         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
69262
69263         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
69264         fwriteerror_temp): New declarations.
69265         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
69266         (descriptors): New variable.
69267         (cleanup): First, close the descriptors.
69268         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
69269         fclose_temp, fwriteerror_temp): New functions.
69270
69271 2006-10-04  Jim Meyering  <jim@meyering.net>
69272
69273         * lib/fts.c (fts_open): Tiny comment change.
69274
69275 2006-10-04  Bruno Haible  <bruno@clisp.org>
69276
69277         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
69278         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
69279         gl_LOCK_BODY.
69280         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
69281         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
69282         gl_LOCK_EARLY_BODY.
69283         (gl_LOCK): Require gl_LOCK_BODY.
69284
69285 2006-10-04  Bruno Haible  <bruno@clisp.org>
69286
69287         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
69288         (gl_oset_search_atleast): New declaration.
69289         (struct gl_oset_implementation): Add field 'search_atleast'.
69290         (gl_oset_search_atleast): New inline function.
69291         * lib/gl_oset.c (gl_oset_search_atleast): New function.
69292         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
69293         (gl_array_oset_implementation): Update.
69294         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
69295         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
69296         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
69297
69298 2006-10-04  Bruno Haible  <bruno@clisp.org>
69299
69300         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
69301
69302 2006-10-03  Bruno Haible  <bruno@clisp.org>
69303
69304         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
69305         from gl_avltreehash_list_implementation.
69306
69307 2006-10-03  Bruno Haible  <bruno@clisp.org>
69308
69309         * lib/gl_oset.c (gl_oset_add): Fix return type.
69310
69311 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
69312
69313         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
69314
69315 2006-10-02  Eric Blake  <ebb9@byu.net>
69316
69317         * modules/strnlen (Depends-on): Add extensions.
69318
69319 2006-10-02  Eric Blake  <ebb9@byu.net>
69320
69321         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
69322         definition in 2.60+.
69323
69324 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
69325
69326         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
69327         checks.
69328
69329 2006-10-02  Bruno Haible  <bruno@clisp.org>
69330
69331         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
69332         to the AUTOMAKE_OPTIONS.
69333         Reported by Jim Meyering.
69334
69335 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69336
69337         Work around bug in Solaris 10 /proc file system:
69338         /proc/self/fd/NNN/.. isn't the parent directory of
69339         the directory whose file descriptor is NNN.  This needs to
69340         be worked around at run time, not compile time, since a
69341         program might be built on Solaris 8, where things work, and
69342         run on Solaris 10.
69343         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
69344         to use the following interface instead:
69345         (OPENAT_BUFFER_SIZE): New macro.
69346         (openat_proc_name): New function.
69347         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
69348         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
69349         Likewise.
69350         * lib/openat-proc.c: New file.
69351         * modules/openat (Files): Add lib/openat-proc.c.
69352         (Depends-on): Add same-inode, stdbool.
69353         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
69354
69355 2006-09-29  Bruno Haible  <bruno@clisp.org>
69356
69357         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
69358         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
69359         argument. Set stdout_closed before testing for ferror, not after.
69360         (fwriteerror, fwriteerror_no_ebadf): New functions.
69361
69362 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69363
69364         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
69365
69366 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
69367
69368         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
69369         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
69370
69371 2006-09-28  Jim Meyering  <jim@meyering.net>
69372
69373         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
69374         Include <unistd.h>.
69375
69376 2006-09-28  Bruno Haible  <bruno@clisp.org>
69377
69378         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
69379         * modules/linkedhash-list (Depends-on): Likewise.
69380         * modules/rbtreehash-list (Depends-on): Likewise.
69381
69382 2006-09-28  Bruno Haible  <bruno@clisp.org>
69383
69384         * lib/strndup.h: Simplify the redefinition of strndup.
69385         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
69386         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
69387
69388 2006-09-28  Bruno Haible  <bruno@clisp.org>
69389
69390         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
69391         * lib/gl_linkedhash_list.c: Likewise.
69392         * lib/gl_rbtreehash_list.c: Likewise.
69393
69394 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69395
69396         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
69397         getaddrinfo.
69398
69399         * lib/__fpending.h: Don't include <stdio_ext.h> unless
69400         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
69401         it causes <stdio_ext.h> to cause a compile-time error.
69402         Problem reported by Nelson H. F. Beebe.
69403         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
69404         of HAVE_DECL___PENDING.
69405
69406         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
69407         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
69408         declaration.
69409
69410 2006-09-27  Jim Meyering  <jim@meyering.net>
69411
69412         This file could end up with a definition for a function
69413         named __strndup, rather than rpl_strndup on a system with
69414         incomplete weak_alias support.
69415         * lib/strndup.c (strndup): Rename from __strndup.
69416         Remove #defines that used to map __strndup to strndup.
69417         Don't use K&R prototypes.
69418         Remove LIBC-related code, since this file is not sync'd with glibc.
69419         * lib/strndup.h: Revamp, accordingly.
69420         * m4/strndup.m4: Modernize.
69421
69422 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69423
69424         * modules/savewd (Depends-on): Add 'raise'.
69425         * lib/savewd.c: Include <signal.h>, for 'raise'.
69426
69427 2006-09-26  Jim Meyering  <jim@meyering.net>
69428
69429         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
69430         when we detect Darwin 8.7.0's acl_get_file bug.
69431         Rearrange to perform the new (below) run-test while $LIBS
69432         contains any acl-related library.  Set USE_ACL at the end.
69433         (gl_ACL_GET_FILE): New function.
69434
69435 2006-09-26  Eric Blake  <ebb9@byu.net>
69436
69437         * lib/verror.c: Include <config.h> unconditionally.
69438
69439 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
69440
69441         * modules/clock-time (Maintainer): Add self.
69442         * modules/getlogin_r (Depends-on): Add extensions.
69443
69444 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69445
69446         * modules/clock-time: New module.
69447         * modules/nanosleep (Depends-on): Add clock-time.
69448         * modules/gethrxtime (Depends-on): Likewise.
69449         * modules/gettime (Depends-on): Likewise.
69450         * modules/settime (Depends-on): Likewise.
69451
69452         * modules/fts-lgpl: Depend on openat.
69453         * modules/mkancesdirs: Depend on savewd.
69454         * modules/mkdir-p: Likewise.
69455
69456 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69457
69458         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
69459
69460         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
69461         `gl_have_arbitrary_file_name_length_limit' to
69462         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
69463         actually works between configure runs.
69464
69465 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69466             Bruno Haible  <bruno@clisp.org>
69467
69468         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
69469
69470 2006-09-25  Jim Meyering  <jim@meyering.net>
69471
69472         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
69473         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
69474
69475 2006-09-25  Eric Blake  <ebb9@byu.net>
69476
69477         * gnulib-tool (func_import, func_create_testdir): Fix typos in
69478         exec's in 2006-09-18 patch when shuffling fds.
69479
69480 2006-09-25  Bruno Haible  <bruno@clisp.org>
69481
69482         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
69483         Reported by Jim Meyering.
69484
69485 2006-09-24  Jim Meyering  <jim@meyering.net>
69486
69487         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
69488         compare a pointer against a literal "0".  That caused failures with
69489         at least HP-UX's hpcc.
69490
69491 2006-09-22  Simon Josefsson  <jas@extundo.com>
69492
69493         * modules/gc-sha1:
69494         * modules/gc-md4:
69495         * modules/gc-hmac-sha1:
69496         * modules/gc-hmac-md5:
69497         * modules/gc-des:
69498         * modules/gc-arcfour: Distribute more files.
69499
69500 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69501
69502         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
69503         (gl_linked_iterator_from_to): Initialize struct completely.
69504         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
69505         (gl_tree_iterator_from_to): Likewise
69506         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
69507         * lib/gl_array_list.c [lint] (gl_array_iterator)
69508         (gl_array_iterator_from_to): Likewise.
69509         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
69510         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
69511         (gl_carray_iterator_from_to): Likewise.
69512
69513         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
69514         * lib/md4.c (md4_process_block): Remove unused variable.
69515         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
69516         parentheses for clarity.
69517
69518 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69519
69520         * modules/bison-i18n (Depends-on): Add gettext.
69521
69522 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69523
69524         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
69525         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
69526         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
69527         also add missing comma that caused broken test.
69528         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
69529         stdlib.h, for `abort'.
69530         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
69531         variables.
69532         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
69533         include unistd.h if present, for `rmdir'.
69534         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
69535         variables.
69536         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
69537         in the process include standard headers for prototypes.
69538         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
69539         gets declared on GNU/Linux.
69540         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
69541         unistd.h, for `rmdir'.
69542         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
69543
69544         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
69545         always true.
69546         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
69547
69548         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
69549
69550 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69551
69552         * gnulib-tool (func_version): Create output all at once.  This
69553         may help avoid triggering unnecessary SIGPIPEs, and at any
69554         rate it doesn't hurt.
69555
69556 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69557             Bruno Haible  <bruno@clisp.org>
69558
69559         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
69560         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69561         * m4/signed.m4 (bh_C_SIGNED): Likewise.
69562
69563         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
69564         (gl_FUNC_VASPRINTF): Invoke it.
69565
69566 2006-09-22  Bruno Haible  <bruno@clisp.org>
69567
69568         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
69569         getloadavg.c as first argument.
69570
69571 2006-09-22  Bruno Haible  <bruno@clisp.org>
69572
69573         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
69574         at the beginning of the gl_INIT macro.
69575         * modules/getloadavg (configure.ac): Pass $gl_source_base to
69576         gl_GETLOADAVG.
69577
69578 2006-09-22  Bruno Haible  <bruno@clisp.org>
69579
69580         * gnulib-tool (func_create_megatestdir): Don't include the config-h
69581         module.
69582         Suggested by Ralf Wildenhues.
69583
69584 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69585
69586         Import this patch from libc:
69587
69588         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
69589
69590         * lib/regex_internal.c (re_string_reconstruct): Handle
69591         offset < pstr->valid_raw_len && pstr->offsets_needed case.
69592         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
69593         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
69594         re_string_context_at.
69595
69596         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
69597         now requires it.
69598         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
69599         gl_REGEX now does it for us.
69600         (gl_REGEX): Add test taken from
69601         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
69602
69603         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
69604         Check that large offsets work.  Modernize Autoconf usages.
69605         Prefer "yes" to mean a good thing rather than a bad.
69606         Don't put "#define mkstemp" in config.h, as this might interfere
69607         with standard system headers that "#define mkstemp mkstemp64".
69608
69609         * modules/mkstemp (Depends-on): Add extensions, so that
69610         mkstemp is visible on some platforms.
69611         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
69612         (Include): Change to "mkstemp.h" from <stdlib.h>.
69613         (Files): Add mkstemp.h.
69614
69615         * lib/mkstemp.h: New file, since some standard headers
69616         #define mkstemp.
69617         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
69618         Include "mkstemp.h".
69619         Make the _LIBC code resemble glibc original more,
69620         e.g., use K&R style.
69621         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
69622         (mkstemp): Remove, since mkstemp.h does this for us.
69623         * lib/stdlib--.h: Include mkstemp.h.
69624
69625         Import this patch from libc:
69626
69627         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69628
69629         * lib/tempname.c (__gen_tempname): Change attempts_min
69630         into a macro.  Use preprocessor to decide how to initialize
69631         attempts [Coverity CID 67].
69632
69633 2006-09-20  Bruno Haible  <bruno@clisp.org>
69634
69635         * lib/mkdtemp.c: Import from libc.
69636         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69637                 * sysdeps/posix/tempname.c (__gen_tempname): Change
69638                 attempts_min into a macro.  Use preprocessor to decide how to
69639                 initialize attempts [Coverity CID 67].
69640         2001-11-27  Paul Eggert  <eggert@twinsun.com>
69641                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
69642                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
69643
69644 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69645
69646         * gnulib-tool (func_exit): New function, to allow to pass the
69647         exit status portably through the trap.  Use everywhere.
69648         (--help, --version): Signal a write error.
69649         (trap): catch SIGPIPE, for write errors.
69650         Exit at the end of the trap, with the correct exit status.
69651
69652 2006-09-19  Karl Berry  <karl@gnu.org>
69653
69654         * doc/gnulib.texi: note about the license texinfo files.
69655
69656 2006-09-19  Eric Blake  <ebb9@byu.net>
69657
69658         * gnulib-tool: Avoid space-tab.
69659
69660 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69661
69662         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
69663         that prevented coreutils 6.1 from building.  Problem reported
69664         by Petter Reinholdtsen.
69665
69666 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69667
69668         * gnulib-tool (avoidlist): Fix typo that broke options like
69669         --avoid=lock that are used by coreutils bootstrap.
69670
69671 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
69672
69673         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
69674         more systematically.
69675
69676 2006-09-18  Jim Meyering  <jim@meyering.net>
69677
69678         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
69679
69680 2006-09-18  Bruno Haible  <bruno@clisp.org>
69681
69682         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
69683
69684 2006-09-18  Bruno Haible  <bruno@clisp.org>
69685
69686         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
69687         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
69688         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
69689         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
69690         * m4/gettext.m4: Require autoconf >= 2.52.
69691         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
69692         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
69693         of gl_cv_header_inttypes_h.
69694
69695 2006-09-18  Bruno Haible  <bruno@clisp.org>
69696
69697         * lib/javaversion.c: Include configmake.h.
69698
69699 2006-09-18  Bruno Haible  <bruno@clisp.org>
69700
69701         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
69702         avoid that the while loops be executed in a subshell.
69703
69704 2006-09-18  Bruno Haible  <bruno@clisp.org>
69705
69706         * MODULES.html.sh (func_module): Break long lines.
69707         Suggested by Bruce Korb <bkorb@gnu.org>.
69708
69709 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69710
69711         Speed up by a factor of 1.12.
69712         * gnulib-tool (nl): New variable.
69713         (func_import): Rewrite include directive extraction to only read each
69714         directive once.
69715
69716 2006-09-17  Bruno Haible  <bruno@clisp.org>
69717
69718         * modules/javaversion (Makefile.am): Remove DEFS setting.
69719         (Depends-on): Add configmake, for PKGDATADIR definition.
69720
69721 2006-09-17  Bruno Haible  <bruno@clisp.org>
69722
69723         * gnulib-tool (func_create_testdir): Rewrite all files at once.
69724
69725 2006-09-17  Bruno Haible  <bruno@clisp.org>
69726
69727         * gnulib-tool (func_append): New function, stolen from libtool.m4.
69728         (func_modules_transitive_closure, func_modules_add_dummy,
69729         func_modules_to_filelist, func_import, func_create_testdir,
69730         func_create_megatestdir, ...): Use it wherever possible.
69731         Suggested by Ralf Wildenhues.
69732
69733 2006-09-16  Karl Berry  <karl@gnu.org>
69734
69735         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
69736         to avoid sectioning errors.
69737         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
69738         [ifinfo]: blank line after @center-ed titles.
69739         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
69740         Spell FSF address consistently with others.
69741         (These changes approved by rms.)
69742
69743 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69744
69745         Speed up by a factor of 1.61.
69746         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
69747         already checked module names again.
69748
69749 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69750
69751         Speed up by a factor of 1.13.
69752         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
69753         for new_files, and the input to func_add_or_update.
69754
69755 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69756
69757         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
69758         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
69759
69760 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69761
69762         * modules/mkancesdirs (Depends-on): Add fcntl.
69763         * modules/savewd: New file.
69764         * MODULES.html.sh (File system functions): Add savewd.
69765
69766         * modules/configmake (Makefile.am): Add support for the
69767         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
69768
69769 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69770
69771         * m4/savewd.m4: New file.
69772
69773 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69774
69775         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
69776         (dirchownmod): New arg FD.  All callers changed.
69777         Use FD rather than opening the directory ourself, as opening is
69778         now the caller's responsibility.
69779         * lib/dirchownmod.h: Likewise.
69780         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
69781         hosts that require <sys/types.h> before <sys/stat.h>.  Include
69782         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
69783         (test_dir): Remove.
69784         (mkancesdirs): Return length of prefix of FILE that has already
69785         been made, or -2 if there is a child doing the work.  Redo
69786         algorithm so that it is O(N) rather than O(N**2).  Optimize away
69787         ".", and treat ".." specially since it might stray back into
69788         already-created areas.  Use a subprocess if necessary.  New arg
69789         WD; all users changed.  MAKE_DIR function should now return 1
69790         if it creates a directory that is not readable.  Return -2 if
69791         a child process is spun off.
69792         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
69793         Adjust signature to match code.
69794         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
69795         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
69796         all users changed.
69797         * lib/savewd.c, lib/savewd.h: New files.
69798
69799 2006-09-15  Jim Meyering  <jim@meyering.net>
69800
69801         * modules/rename-dest-slash: New module.
69802         * MODULES.html.sh (posix_compat): Add it here.
69803
69804         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
69805
69806 2006-09-15  Jim Meyering  <jim@meyering.net>
69807
69808         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
69809         file.
69810
69811         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
69812
69813 2006-09-15  Jim Meyering  <jim@meyering.net>
69814
69815         * lib/rename-dest-slash.c (has_trailing_slash): Use
69816         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
69817         (rpl_rename_dest_slash): Perform the cheaper trailing slash
69818         test before testing whether SRC is a directory.
69819         Suggestions from Bruno Haible.
69820
69821         Avoid a warning about an unused variable.
69822         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
69823         into the #ifdef block where it's used.
69824
69825         * lib/rename-dest-slash.c: New file.
69826
69827 2006-09-14  Bruno Haible  <bruno@clisp.org>
69828
69829         * lib/allocsa.c: Include <config.h> unconditionally.
69830         * lib/asnprintf.c: Likewise.
69831         * lib/asprintf.c: Likewise.
69832         * lib/c-strcasecmp.c: Likewise.
69833         * lib/c-strcasestr.c: Likewise.
69834         * lib/c-strncasecmp.c: Likewise.
69835         * lib/c-strstr.c: Likewise.
69836         * lib/classpath.c: Likewise.
69837         * lib/clean-temp.c: Likewise.
69838         * lib/concatpath.c: Likewise.
69839         * lib/copy-file.c: Likewise.
69840         * lib/csharpcomp.c: Likewise.
69841         * lib/csharpexec.c: Likewise.
69842         * lib/execute.c: Likewise.
69843         * lib/fatal-signal.c: Likewise.
69844         * lib/findprog.c: Likewise.
69845         * lib/fwriteerror.c: Likewise.
69846         * lib/gl_array_list.c: Likewise.
69847         * lib/gl_array_oset.c: Likewise.
69848         * lib/gl_avltree_list.c: Likewise.
69849         * lib/gl_avltree_oset.c: Likewise.
69850         * lib/gl_avltreehash_list.c: Likewise.
69851         * lib/gl_carray_list.c: Likewise.
69852         * lib/gl_linked_list.c: Likewise.
69853         * lib/gl_linkedhash_list.c: Likewise.
69854         * lib/gl_list.c: Likewise.
69855         * lib/gl_oset.c: Likewise.
69856         * lib/gl_rbtree_list.c: Likewise.
69857         * lib/gl_rbtree_oset.c: Likewise.
69858         * lib/gl_rbtreehash_list.c: Likewise.
69859         * lib/imaxabs.c: Likewise.
69860         * lib/imaxdiv.c: Likewise.
69861         * lib/javacomp.c: Likewise.
69862         * lib/javaexec.c: Likewise.
69863         * lib/javaversion.c: Likewise.
69864         * lib/linebreak.c: Likewise.
69865         * lib/localcharset.c: Likewise.
69866         * lib/lock.c: Likewise.
69867         * lib/mbchar.c: Likewise.
69868         * lib/mbswidth.c: Likewise.
69869         * lib/mkdtemp.c: Likewise.
69870         * lib/pipe.c: Likewise.
69871         * lib/printf-args.c: Likewise.
69872         * lib/printf-parse.c: Likewise.
69873         * lib/progname.c: Likewise.
69874         * lib/progreloc.c: Likewise.
69875         * lib/readlink.c: Likewise.
69876         * lib/sh-quote.c: Likewise.
69877         * lib/stpcpy.c: Likewise.
69878         * lib/stpncpy.c: Likewise.
69879         * lib/strcasecmp.c: Likewise.
69880         * lib/strcasestr.c: Likewise.
69881         * lib/strcspn.c: Likewise.
69882         * lib/striconv.c: Likewise.
69883         * lib/strncasecmp.c: Likewise.
69884         * lib/strnlen1.c: Likewise.
69885         * lib/strstr.c: Likewise.
69886         * lib/strtok_r.c: Likewise.
69887         * lib/tls.c: Likewise.
69888         * lib/tmpdir.c: Likewise.
69889         * lib/unicodeio.c: Likewise.
69890         * lib/unsetenv.c: Likewise.
69891         * lib/vasnprintf.c: Likewise.
69892         * lib/vasprintf.c: Likewise.
69893         * lib/wait-process.c: Likewise.
69894         * lib/xallocsa.c: Likewise.
69895         * lib/xsetenv.c: Likewise.
69896         * lib/xstriconv.c: Likewise.
69897
69898 2006-09-13  Simon Josefsson  <jas@extundo.com>
69899
69900         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
69901         that internally, suggested by Ralf Wildenhues
69902         <Ralf.Wildenhues@gmx.de>.
69903
69904 2006-09-13  Simon Josefsson  <jas@extundo.com>
69905
69906         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
69907         @LIBOBJS@.
69908         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69909
69910 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69911
69912         * lib/_fpending.c: Include <config.h> unconditionally, since we no
69913         longer worry about uses that don't define HAVE_CONFIG_H.
69914         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
69915         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
69916         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
69917         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
69918         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
69919         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
69920         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
69921         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
69922         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
69923         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
69924         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
69925         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
69926         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
69927         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
69928         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
69929         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
69930         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
69931         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
69932         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
69933         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
69934         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
69935         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
69936         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
69937         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
69938         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
69939         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
69940         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
69941         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
69942         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
69943         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
69944         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
69945         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
69946         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
69947         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
69948         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
69949         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
69950         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
69951         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
69952         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
69953         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
69954         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
69955         Likewise.
69956
69957 2006-09-13  Eric Blake  <ebb9@byu.net>
69958
69959         * lib/getopt.c: Fix typo in last commit.
69960
69961 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69962
69963         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
69964         dgettext.
69965
69966 2006-09-12  Jim Meyering  <jim@meyering.net>
69967
69968         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
69969         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
69970         Reported by Nelson H. F. Beebe.
69971
69972 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69973
69974         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
69975         program_invocation_name and program_invocation_short_name are
69976         initialized.
69977         * lib/argp-namefrob.h: Move declarations of program_invocation_name
69978         and program_invocation_short_name to argp.h, so they are visible
69979         to user programs.
69980         * lib/argp.h: Likewise
69981
69982 2006-09-10  Bruno Haible  <bruno@clisp.org>
69983
69984         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69985         m4/inttypes_h.m4, m4/uintmax_t.m4.
69986
69987 2006-09-10  Bruno Haible  <bruno@clisp.org>
69988
69989         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
69990         gl_AC_TYPE_UINTMAX_T.
69991
69992 2006-09-10  Bruno Haible  <bruno@clisp.org>
69993
69994         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
69995
69996 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69997
69998         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
69999         convention.  Text proposed by Bruno Haible.
70000         (struct argp_option): Document the use of N_() wrappers.
70001
70002         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
70003         '\v', and translate the two parts separately, instead of feeding
70004         the whole string to gettext.  This allows to exclude
70005         '\v' from the strings visible to the translator by writing doc
70006         strings as N_("..") "\v" N_("..").
70007
70008 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
70009
70010         * config/srclist.txt: Undo latest change; the bug was fixed.
70011
70012 2006-09-09  Bruno Haible  <bruno@clisp.org>
70013
70014         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
70015         assignments if building a library without libtool.
70016         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
70017         in func_emit_lib_Makefile_am.
70018         (func_import): When building a static library libfoo.a, arrange to
70019         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
70020         (func_create_testdir): Likewise.
70021         * modules/gc (configure.ac, Makefile.am): If building statically,
70022         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
70023         * modules/iconvme (configure.ac, Makefile.am): Likewise.
70024         * modules/striconv (configure.ac, Makefile.am): Likewise.
70025         Based on a suggestion by Ralf Wildenhues.
70026
70027 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70028
70029         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70030         Check for unistd.h too, since Autoconf doesn't assume POSIX.
70031         Also:
70032
70033         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70034         Add year_2050_test to catch glibc bug 2821
70035         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70036
70037         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70038         Prefer #ifdef to #if.
70039
70040         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
70041         Return from 'main' instead of calling 'exit'.
70042
70043 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70044
70045         * lib/mktime.c (guess_time_tm): Fix bug where mktime
70046         returned the maximum time_t value rather than (time_t) -1.
70047         Problem originally reported by William Bardwell
70048         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70049
70050         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70051         Moved to here ...
70052         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70053         ... from here.
70054
70055 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70056
70057         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
70058         2821 is fixed.
70059
70060 2006-09-08  Jim Meyering  <jim@meyering.net>
70061
70062         Don't make generated files read-only.  That would bother too many
70063         people.  However, do retain the ability to work when targets are
70064         read-only: remove the destination and temporary files before writing
70065         them (when generated via sed or echo), or by using the -f option for
70066         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
70067         * modules/alloca-opt, modules/argz, modules/arpa_inet:
70068         * modules/byteswap, modules/configmake, modules/fcntl:
70069         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
70070         * modules/localcharset, modules/netinet_in, modules/poll:
70071         * modules/stdbool, modules/stdint, modules/sys_select:
70072         * modules/sys_socket, modules/sys_stat, modules/sysexits:
70073
70074 2006-09-08  Jim Meyering  <jim@meyering.net>
70075
70076         Avoid new build failure on FreeBSD 6.0.
70077         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
70078         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
70079         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
70080
70081 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70082
70083         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
70084
70085 2006-09-07  Jim Meyering  <jim@meyering.net>
70086
70087         Fix global typo in last change: use chmod u-w, not chmod u-x.
70088         Spotted by Paul Eggert and Bruce Korb.
70089         * modules/alloca-opt, modules/argz, modules/arpa_inet:
70090         * modules/byteswap, modules/configmake, modules/fcntl:
70091         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
70092         * modules/localcharset, modules/netinet_in, modules/poll:
70093         * modules/stdbool, modules/stdint, modules/sys_select:
70094         * modules/sys_socket, modules/sys_stat, modules/sysexits:
70095
70096 2006-09-06  Jim Meyering  <jim@meyering.net>
70097
70098         Make generated files be read-only.
70099         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
70100         Ensure that each generated file is now read-only.
70101         * modules/argz: Likewise.
70102         * modules/arpa_inet: Likewise.
70103         * modules/byteswap: Likewise.
70104         * modules/configmake: Likewise.
70105         * modules/fcntl: Likewise.
70106         * modules/fnmatch: Likewise.
70107         * modules/getopt: Likewise.
70108         * modules/glob: Likewise.
70109         * modules/inttypes: Likewise.
70110         * modules/netinet_in: Likewise.
70111         * modules/poll: Likewise.
70112         * modules/stdbool: Likewise.
70113         * modules/stdint: Likewise.
70114         * modules/sys_select: Likewise.
70115         * modules/sys_socket: Likewise.
70116         * modules/sys_stat: Likewise.
70117         * modules/sysexits: Likewise.
70118         * modules/localcharset: Same as above, but continue using temporary
70119         file named "t-$@" (why different?) rather than the "$@-t" used
70120         everywhere else.
70121
70122         * modules/sysexits (Makefile.am): Replace literal occurrences
70123         of "sysexit.h" more readable, and more consistent, "$@".
70124
70125 2006-09-06  Bruno Haible  <bruno@clisp.org>
70126
70127         * modules/striconv: New file.
70128         * modules/xstriconv: New file.
70129         * MODULES.html.sh (Internationalization functions): Add striconv,
70130         xstriconv.
70131
70132 2006-09-06  Bruno Haible  <bruno@clisp.org>
70133
70134         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
70135         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
70136         not using libtool correctly.
70137
70138 2006-09-06  Bruno Haible  <bruno@clisp.org>
70139
70140         * lib/striconv.h: New file.
70141         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
70142         iconvstring.c.
70143         * lib/xstriconv.h: New file.
70144         * lib/xstriconv.c: New file.
70145
70146 2006-09-06  Bruno Haible  <bruno@clisp.org>
70147
70148         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70149         lib_..._LDFLAGS.
70150
70151 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70152
70153         * lib/argz_.h: Sync from Libtool.
70154
70155         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
70156                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70157
70158         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
70159
70160 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70161
70162         * modules/trim: New file.
70163
70164 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70165
70166         * lib/trim.h: New file.
70167         * lib/trim.c: New file.
70168
70169 2006-09-05  Bruno Haible  <bruno@clisp.org>
70170
70171         * MODULES.html.sh (String handling): Add trim.
70172
70173 2006-09-04  Karl Berry  <karl@gnu.org>
70174
70175         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
70176         until next release.
70177
70178 2006-09-03  Bruno Haible  <bruno@clisp.org>
70179
70180         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
70181         correctly.
70182
70183 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70184
70185         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
70186         not gl_GETLOADAVG.  Omit unneeded semicolons.
70187         Problems reported by Ralf Wildenhues in
70188         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70189         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
70190         at the end, which is the usual gnulib style.
70191
70192         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
70193         of doing all the work ourselves.
70194         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
70195         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
70196
70197 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70198
70199         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
70200         Problem reported by Ralf Wildenhues in
70201         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70202
70203         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
70204         HAVE_STRUCT_STATFS_F_FSTYPENAME.
70205
70206 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70207
70208         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
70209         yesterday's patch by changing test -n to test -z.
70210
70211 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70212
70213         * modules/getloadavg (Files): Add m4/getloadavg.m4.
70214         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
70215         the former is now obsolescent.
70216
70217         * modules/chdir-long (Depends-on): Add fcntl.
70218
70219 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70220
70221         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
70222         obsolescent, and programs should use gnulib instead.
70223         * m4/getloadavg.m4: New file, with contents taken from Autoconf
70224         but with prefixes changed.
70225
70226 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70227
70228         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
70229         or stdbool.h, because they might not exist while configuring.
70230
70231         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
70232         Don't include unistd.h or limits.h; not needed, since chdir-long.h
70233         does that for us.
70234         (O_DIRECTORY): Remove.
70235
70236 2006-08-31  Eric Blake  <ebb9@byu.net>
70237
70238         * gnulib-tool: Don't let emacs change spaces to TAB.
70239
70240 2006-08-31  Bruno Haible  <bruno@clisp.org>
70241
70242         * gnulib-tool: When calling func_import more than once, do it in a
70243         subshell.
70244         Reported by Eric Blake <ebb9@byu.net>.
70245
70246 2006-08-31  Bruno Haible  <bruno@clisp.org>
70247
70248         * gnulib-tool (nl): Remove variable.
70249         (sed_transform_lib_file): Use more robust test for config-h module.
70250         (func_import): Fix typo in 2006-08-25 patch.
70251
70252 2006-08-31  Bruno Haible  <bruno@clisp.org>
70253
70254         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
70255         specified, augment Makefile.am variables instead of assigning them.
70256
70257 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70258
70259         Work around a bug in both the Linux and SunOS 64-bit kernels:
70260         nanosleep mishandles sleeps for longer than 2**31 seconds.
70261         Problem reported by Frank v Waveren in
70262         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70263         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
70264         Check for nanosleep bug.
70265         (LIB_NANOSLEEP): Append clock_gettime library if needed.
70266
70267 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70268
70269         Work around a bug in both the Linux and SunOS 64-bit kernels:
70270         nanosleep mishandles sleeps for longer than 2**31 seconds.
70271         Problem reported by Frank v Waveren in
70272         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70273         * lib/nanosleep.c (BILLION): New constant.
70274         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
70275         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
70276         implementation.
70277
70278 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70279
70280         * modules/nanosleep (Depends-on): Add gettime.
70281
70282 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70283         and Simon Josefsson  <jas@extundo.com>
70284         and Oskar Liljeblad  <oskar@osk.mine.nu>
70285
70286         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
70287         * gnulib-tool (func_import): New license type 'unmodifiable license
70288         text'.
70289         * modules/fdl: Use it.  Longer description.
70290         * module/gpl, module/lgpl: New files.
70291
70292 2006-08-30  Jim Meyering  <jim@meyering.net>
70293
70294         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
70295         shadowing the parameter.
70296
70297 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70298
70299         Sync from Libtool:
70300
70301         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70302
70303         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
70304         sharing with gnulib.  Report by Eric Blake.
70305
70306 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70307
70308         * modules/isapipe: New file.
70309         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
70310
70311 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70312
70313         * modules/configmake (Makefile.am): Add a comment, and omit
70314         the CONFIGMAKE_ prefix from generated macro names.  Suggested
70315         by Bruno Haible.
70316
70317 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70318
70319         * m4/isapipe.m4: New file.
70320
70321 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70322
70323         * lib/isapipe.c, lib/isapipe.h: New files.
70324
70325 2006-08-29  Jim Meyering  <jim@meyering.net>
70326
70327         * modules/configmake (Makefile.am): Make configmake.h depend on
70328         Makefile.  Otherwise, a stale configmake.h could hang around.
70329
70330 2006-08-29  Eric Blake  <ebb9@byu.net>
70331
70332         * lib/error.c (error_at_line, print_errno_message): Match libc, after
70333         resolution of upstream bug 3044.
70334
70335 2006-08-29  Bruno Haible  <bruno@clisp.org>
70336
70337         * modules/localcharset (Depends-on): Add configmake.
70338         (Makefile.am): Remove setting of LIBDIR through DEFS.
70339
70340 2006-08-29  Bruno Haible  <bruno@clisp.org>
70341
70342         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
70343         defined.
70344
70345 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70346
70347         * modules/fcntl: New file.
70348         * modules/chdir-safer (Depends-on): Add fcntl.
70349         * modules/fts: Likewise.
70350         * modules/mkdir-p: Likewise.
70351
70352         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
70353         This undoes the most recent change, since we're now addressing the
70354         problem in a different way.
70355
70356         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
70357         into output, since the output might be called Makefile.am even
70358         if $makefile_name is something different.
70359         (func_import): Use $makefile_am rather than
70360         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
70361         empty.
70362
70363         * modules/inttypes (Files): Add m4/inttypes-h.m4.
70364
70365 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70366
70367         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
70368         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
70369         recent change to stdint.m4, since we're now addressing the problem in a
70370         different way.
70371
70372 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70373
70374         * m4/fcntl_h.m4: New file.
70375
70376 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70377
70378         * lib/fcntl_.h: New file.
70379         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
70380         the fcntl module.
70381         * lib/dirchownmod.c: Likewise.
70382         * lib/fts.c: Likewise.
70383
70384         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
70385         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
70386         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
70387         just before including <inttypes.h>, to avoid circular inclusion.
70388
70389 2006-08-28  Jim Meyering  <jim@meyering.net>
70390
70391         * doc/visibility.texi: Actually read and correct the grammar of the
70392         sentence affected by yesterday's change.
70393
70394 2006-08-28  Eric Blake  <ebb9@byu.net>
70395
70396         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
70397         needs wrapper.
70398
70399 2006-08-28  Eric Blake  <ebb9@byu.net>
70400
70401         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
70402
70403 2006-08-28  Eric Blake  <ebb9@byu.net>
70404
70405         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
70406
70407 2006-08-28  Bruno Haible  <bruno@clisp.org>
70408
70409         * modules/c-strstr: New file, from GNU gettext.
70410         * MODULES.html.sh (String handling): Add c-strstr.
70411
70412 2006-08-28  Bruno Haible  <bruno@clisp.org>
70413
70414         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
70415         macros.
70416         Reported by Eric Blake.
70417
70418 2006-08-28  Bruno Haible  <bruno@clisp.org>
70419
70420         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
70421         (VASNPRINTF): Return a string of length > INT_MAX without failing.
70422         * lib/vasprintf.c: Include errno.h, limits.h.
70423         (EOVERFLOW): New fallback definition.
70424         (vasprintf): Test here whether the string length is > INT_MAX.
70425         * lib/vsnprintf.c: Include errno.h, limits.h.
70426         (EOVERFLOW): New fallback definition.
70427         (vsnprintf): Fix bug when generated string was too long for the buffer.
70428         Test here whether the string length is > INT_MAX.
70429
70430 2006-08-28  Bruno Haible  <bruno@clisp.org>
70431
70432         * lib/inttypes_.h (SCNX*): Remove definitions.
70433         Reported by Eric Blake.
70434
70435 2006-08-28  Bruno Haible  <bruno@clisp.org>
70436
70437         * lib/c-strstr.h: New file, from GNU gettext.
70438         * lib/c-strstr.c: New file, from GNU gettext.
70439
70440 2006-08-28  Bruno Haible  <bruno@clisp.org>
70441
70442         * gnulib-tool: Reorder some statements.
70443
70444 2006-08-28  Bruno Haible  <bruno@clisp.org>
70445
70446         * gnulib-tool: New option --makefile-name.
70447         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
70448         $makefile_name.
70449         (func_import): Write $makefile_name to the cache file, and read it from
70450         there unless explicitly specified. Use $makefile_name as file name
70451         instead of Makefile.am. Adjust the recommendations accordingly.
70452
70453 2006-08-28  Bruno Haible  <bruno@clisp.org>
70454
70455         * gnulib-tool (func_verify_module): Check against misapplying patch.
70456
70457 2006-08-28  Bruno Haible  <bruno@clisp.org>
70458
70459         * gnulib-tool (func_relativize, func_relconcat): New functions.
70460         Give an error if --local-dir is given with --update.
70461         Remove trailing slashes from $local_gnulib_dir.
70462         (func_import): Store the relativized $local_gnulib_dir in
70463         gnulib-cache.m4, and read it from there if not specified explicitly.
70464
70465 2006-08-28  Bruno Haible  <bruno@clisp.org>
70466
70467         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
70468         is the current directory. Respect also $local_gnulib_dir.
70469
70470 2006-08-28  Bruno Haible  <bruno@clisp.org>
70471             Simon Josefsson  <jas@extundo.com>
70472
70473         BeOS portability.
70474         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
70475
70476 2006-08-27  Jim Meyering  <jim@meyering.net>
70477
70478         * doc/visibility.texi: Remove duplicate word: "pointer".
70479
70480 2006-08-26  Bruno Haible  <bruno@clisp.org>
70481
70482         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
70483         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
70484         (Makefile.am): Create inttypes.h from inttypes_.h.
70485         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
70486
70487         * modules/imaxabs: New file.
70488
70489         * modules/imaxdiv: New file.
70490
70491 2006-08-26  Bruno Haible  <bruno@clisp.org>
70492
70493         * m4/inttypes.m4: New file.
70494         * m4/_inttypes_h.m4: Remove file.
70495         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
70496         PRI_MACROS_BROKEN.
70497         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
70498
70499         * m4/imaxabs.m4: New file.
70500
70501         * m4/imaxdiv.m4: New file.
70502
70503 2006-08-26  Bruno Haible  <bruno@clisp.org>
70504
70505         * lib/inttypes_.h: New file.
70506         * lib/inttypes.h: Remove file.
70507         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
70508
70509         * lib/imaxabs.c: New file.
70510
70511         * lib/imaxdiv.c: New file.
70512
70513 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70514
70515         New config-h module, so that "make" output needn't be cluttered
70516         by -DHAVE_CONFIG_H.
70517         * MODULES.html.sh (Support for building libraries and executables):
70518         Add config-h.
70519         * modules/config-h: New file.
70520         * gnulib-tool (nl, sed_transform_lib_file): New vars.
70521         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
70522         the config-h module is used.
70523
70524         New configmake module, so that "make" output needn't be cluttered
70525         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
70526         * MODULES.html.sh (Support for building libraries and executables):
70527         Add configmake.
70528         * modules/configmake: New file.
70529
70530 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70531
70532         * m4/config-h.m4: New file.
70533
70534 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70535
70536         * config/srclist.txt: Add elisp-comp.
70537
70538 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70539
70540         * MODULES.html.sh (Support for building libraries and executables):
70541         Add elisp-comp.
70542         * build-aux/elisp-comp: New file.
70543         * modules/elisp-comp: New file.
70544
70545 2006-08-24  Bruno Haible  <bruno@clisp.org>
70546
70547         * gnulib-tool (func_create_testdir): Use non-default values of
70548         sourcebase and m4base.
70549
70550 2006-08-24  Bruno Haible  <bruno@clisp.org>
70551
70552         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
70553         HTML structure.
70554
70555 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70556
70557         * modules/openat (Depends-on): Add lchown.
70558
70559 2006-08-23  Bruno Haible  <bruno@clisp.org>
70560
70561         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
70562         of gl_LOCK_EARLY instead of gl_LOCK.
70563
70564 2006-08-23  Bruno Haible  <bruno@clisp.org>
70565
70566         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
70567         on OSF/1 to no.
70568         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
70569
70570 2006-08-23  Bruno Haible  <bruno@clisp.org>
70571
70572         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
70573         as unusable.
70574
70575         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
70576         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
70577         (gl_LOCK): New macro.
70578
70579 2006-08-22  Simon Josefsson  <jas@extundo.com>
70580
70581         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
70582         to md5 module.
70583
70584 2006-08-22  Simon Josefsson  <jas@extundo.com>
70585
70586         * MODULES.html.sh: Add "Support for maintaining and release
70587         projects".
70588
70589         * build-aux/gnupload: New file, from coreutils.
70590
70591 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70592
70593         Avoid the need for AC_LIBSOURCES in m4 macros.
70594         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
70595         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
70596         * modules/check-version (EXTRA_DIST): Add check-version.h.
70597         * modules/crc (EXTRA_DIST): Add crc.h.
70598         * modules/des (EXTRA_DIST): Add des.h.
70599         * modules/gc (EXTRA_DIST): Add gc.h.
70600         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
70601         * modules/getline (EXTRA_DIST): Add getline.h.
70602         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
70603         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
70604         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
70605         * modules/md2 (EXTRA_DIST): Add md2.h.
70606         * modules/md4 (EXTRA_DIST): Add md4.h.
70607         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
70608         * modules/read-file (EXTRA_DIST): Add read-file.h.
70609         * modules/readline (EXTRA_DIST): Add readline.h.
70610         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
70611         rijndael-api-fst.h.
70612
70613 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70614
70615         * m4/rijndael.m4 (gl_ARCFOUR):
70616         * m4/arctwo.m4 (gl_ARCTWO):
70617         * m4/check-version.m4 (gl_CHECK_VERSION):
70618         * m4/crc.m4 (gl_CRC):
70619         * m4/des.m4 (gl_DES):
70620         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
70621         * m4/gc.m4 (gl_GC):
70622         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
70623         * m4/getline.m4 (gl_FUNC_GETLINE):
70624         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
70625         * m4/hmac-md5.m4 (gl_HMAC_MD5):
70626         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
70627         * m4/md2.m4 (gl_MD2):
70628         * m4/md4.m4 (gl_MD4):
70629         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
70630         * m4/read-file.m4 (gl_FUNC_READ_FILE):
70631         * m4/readline.m4 (gl_FUNC_READLINE):
70632         * m4/rijndael.m4 (gl_RIJNDAEL):
70633         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70634         to get the necessary .h files and whatnot.
70635
70636 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70637
70638         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
70639         gnulib rather than the other way around.
70640         * config/srclistvars.sh (COREUTILS): Remove.
70641
70642 2006-08-22  Jim Meyering  <jim@meyering.net>
70643
70644         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
70645
70646         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
70647
70648 2006-08-22  Eric Blake  <ebb9@byu.net>
70649
70650         * modules/regexprops-generic: New file.
70651         * MODULES.html.sh (Support for building documentation): List it.
70652
70653 2006-08-22  Eric Blake  <ebb9@byu.net>
70654
70655         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
70656         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70657         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
70658         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
70659
70660 2006-08-22  Bruno Haible  <bruno@clisp.org>
70661
70662         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
70663         and lib_LTLIBRARIES like the other lib_* variables.
70664
70665 2006-08-22  Bruno Haible  <bruno@clisp.org>
70666
70667         * build-aux/x-to-1.in: New file, from GNU gettext.
70668
70669 2006-08-22  Bruno Haible  <bruno@clisp.org>
70670
70671         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
70672         <utmpx.h> exists.
70673
70674 2006-08-22  Bruno Haible  <bruno@clisp.org>
70675
70676         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
70677         <utmpx.h> exists.
70678
70679 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70680
70681         BeOS portability.
70682         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
70683         exist.
70684         Problem reported by Bruno Haible.
70685
70686 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70687
70688         Avoid the need for AC_LIBSOURCES in m4 macros.
70689         * modules/acl (EXTRA_DIST): Add acl.h.
70690         * modules/argmatch (Files): Add m4/argmatch.m4.
70691         (configure.ac): Add gl_ARGMATCH.
70692         (EXTRA_DIST): Renamed from lib_SOURCES, for
70693         consistency with the other modules.  Remove argmatch.c.
70694         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
70695         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
70696         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
70697         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
70698         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
70699         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
70700         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
70701         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
70702         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
70703         * modules/closeout (EXTRA_DIST): Add closeout.h.
70704         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
70705         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
70706         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
70707         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
70708         dirname.h; remove basename.c and stripslash.c.
70709         * modules/exclude (EXTRA_DIST): Add exclude.h.
70710         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
70711         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
70712         * modules/file-type (EXTRA_DIST): Add file-type.h.
70713         * modules/filemode (EXTRA_DIST): Add filemode.h.
70714         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
70715         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70716         * modules/fpending (EXTRA_DIST): Add __fpending.h.
70717         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
70718         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
70719         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
70720         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
70721         * modules/getdate (EXTRA_DIST): Add getdate.c.
70722         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
70723         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
70724         * modules/getpass (EXTRA_DIST): Add getpass.h.
70725         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
70726         * modules/group-member (EXTRA_DIST): Add group-member.h.
70727         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
70728         * modules/hash (EXTRA_DIST): Add hash.h.
70729         * modules/human (EXTRA_DIST): Add human.h.
70730         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
70731         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
70732         * modules/lchown (EXTRA_DIST): Add lchown.h.
70733         * modules/long-options (EXTRA_DIST): Add long-options.h.
70734         * modules/lstat (EXTRA_DIST): Add lstat.h.
70735         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
70736         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
70737         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
70738         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
70739         * modules/memxor (EXTRA_DIST): Add memxor.h.
70740         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
70741         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
70742         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
70743         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
70744         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
70745         * modules/physmem (EXTRA_DIST): Add physmem.h.
70746         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
70747         * modules/posixver (EXTRA_DIST): Add posixver.h.
70748         * modules/quote (EXTRA_DIST): Add quote.h.
70749         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
70750         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
70751         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
70752         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
70753         regex_internal.h regexec.c.
70754         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
70755         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
70756         * modules/same (EXTRA_DIST): Add same.h.
70757         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
70758         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
70759         * modules/savedir (EXTRA_DIST): Add savedir.h.
70760         * modules/sha1 (EXTRA_DIST): Add sha1.h.
70761         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
70762         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
70763         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
70764         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
70765         * modules/strdup (EXTRA_DIST): Add strdup.h.
70766         * modules/strftime (EXTRA_DIST): Add strftime.h.
70767         * modules/strndup (EXTRA_DIST): Add strndup.h.
70768         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
70769         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
70770         * modules/time_r (EXTRA_DIST): Add time_r.h.
70771         * modules/timespec (EXTRA_DIST): Add timespec.h.
70772         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70773         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
70774         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
70775         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
70776         * modules/userspec (EXTRA_DIST): Add userspec.h.
70777         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
70778         * modules/utimens (EXTRA_DIST): Add utimens.h.
70779         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
70780         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
70781         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
70782         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
70783         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
70784         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
70785         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
70786         * modules/yesno (EXTRA_DIST): Add yesno.h.
70787
70788 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70789
70790         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
70791
70792         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
70793         * m4/dev-ino.m4, same-inode.m4: Remove.
70794
70795         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
70796         * m4/acl.m4 (AC_FUNC_ACL):
70797         * m4/backupfile.m4 (gl_BACKUPFILE):
70798         * m4/c-strtod.m4 (gl_C99_STRTOLD):
70799         * m4/canon-host.m4 (gl_CANON_HOST):
70800         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70801         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
70802         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
70803         * m4/cloexec.m4 (gl_CLOEXEC):
70804         * m4/close-stream.m4 (gl_CLOSE_STREAM):
70805         * m4/closeout.m4 (gl_CLOSEOUT):
70806         * m4/dirfd.m4 (gl_FUNC_DIRFD):
70807         * m4/dirname.m4 (gl_DIRNAME):
70808         * m4/exclude.m4 (gl_EXCLUDE):
70809         * m4/exitfail.m4 (gl_EXITFAIL):
70810         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
70811         * m4/file-type.m4 (gl_FILE_TYPE):
70812         * m4/filemode.m4 (gl_FILEMODE):
70813         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
70814         * m4/fpending.m4 (gl_FUNC_FPENDING):
70815         * m4/fprintftime.m4 (gl_FPRINTFTIME):
70816         * m4/fts.m4 (gl_FUNC_FTS):
70817         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
70818         * m4/getdate.m4 (gl_GETDATE):
70819         * m4/gethrxtime.m4 (gl_GETHRXTIME):
70820         * m4/getpagesize.m4 (gl_GETPAGESIZE):
70821         * m4/getpass.m4 (gl_FUNC_GETPASS):
70822         * m4/gettime.m4 (gl_GETTIME):
70823         * m4/getugroups.m4 (gl_GETUGROUPS):
70824         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
70825         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
70826         * m4/hard-locale.m4 (gl_HARD_LOCALE):
70827         * m4/hash.m4 (gl_HASH):
70828         * m4/idcache.m4 (gl_IDCACHE):
70829         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
70830         * m4/lchown.m4 (gl_FUNC_LCHOWN):
70831         * m4/long-options.m4 (gl_LONG_OPTIONS):
70832         * m4/lstat.m4 (gl_FUNC_LSTAT):
70833         * m4/md5.m4 (gl_MD5):
70834         * m4/memcasecmp.m4 (gl_MEMCASECMP):
70835         * m4/memcoll.m4 (gl_MEMCOLL):
70836         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
70837         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
70838         * m4/memxor.m4 (gl_MEMXOR):
70839         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
70840         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
70841         * m4/modechange.m4 (gl_MODECHANGE):
70842         * m4/mountlist.m4 (gl_MOUNTLIST):
70843         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70844         * m4/openat.m4 (gl_FUNC_OPENAT):
70845         * m4/pathmax.m4 (gl_PATHMAX):
70846         * m4/physmem.m4 (gl_PHYSMEM):
70847         * m4/posixtm.m4 (gl_POSIXTM):
70848         * m4/posixver.m4 (gl_POSIXVER):
70849         * m4/quote.m4 (gl_QUOTE):
70850         * m4/quotearg.m4 (gl_QUOTEARG):
70851         * m4/readtokens.m4 (gl_READTOKENS):
70852         * m4/readutmp.m4 (gl_READUTMP):
70853         * m4/regex.m4 (gl_REGEX):
70854         * m4/safe-read.m4 (gl_SAFE_READ):
70855         * m4/safe-write.m4 (gl_SAFE_WRITE):
70856         * m4/same.m4 (gl_SAME):
70857         * m4/save-cwd.m4 (gl_SAVE_CWD):
70858         * m4/savedir.m4 (gl_SAVEDIR):
70859         * m4/settime.m4 (gl_SETTIME):
70860         * m4/sha1.m4 (gl_SHA1):
70861         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
70862         * m4/stat-macros.m4 (gl_STAT_MACROS):
70863         * m4/stat-time.m4 (gl_STAT_TIME):
70864         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
70865         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
70866         * m4/strdup.m4 (gl_FUNC_STRDUP):
70867         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
70868         * m4/strndup.m4 (gl_FUNC_STRNDUP):
70869         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
70870         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
70871         * m4/time_r.m4 (gl_TIME_R):
70872         * m4/timespec.m4 (gl_TIMESPEC):
70873         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
70874         * m4/unlinkdir.m4 (gl_UNLINKDIR):
70875         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
70876         * m4/userspec.m4 (gl_USERSPEC):
70877         * m4/utimecmp.m4 (gl_UTIMECMP):
70878         * m4/utimens.m4 (gl_UTIMENS):
70879         * m4/xalloc.m4 (gl_XALLOC):
70880         * m4/xgetcwd.m4 (gl_XGETCWD):
70881         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
70882         * m4/xreadlink.m4 (gl_XREADLINK):
70883         * m4/xstrtod.m4 (gl_XSTRTOD):
70884         * m4/yesno.m4 (gl_YESNO):
70885         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70886         to get the necessary .h files and whatnot.
70887
70888 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
70889             Bruno Haible  <bruno@clisp.org>
70890
70891         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
70892         /bin/sh understanding of '!' conditional negation.
70893
70894 2006-08-21  Jim Meyering  <jim@meyering.net>
70895
70896         * modules/openat (Depends-on): Really alphabetize.
70897
70898         * modules/acl (Depends-on): Add error and quote.
70899
70900         * check-module (find_included_lib_files): Add at-func.c to the
70901         ok-to-include-more-than-once white list.
70902
70903         * modules/openat (Depends-on): Add lstat.  Alphabetize.
70904
70905 2006-08-21  Bruno Haible  <bruno@clisp.org>
70906
70907         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70908         Emit a pkgdata_DATA variable only if some snippets add contents to it.
70909         Reported by Martin Lambers <marlam@marlam.de>.
70910
70911 2006-08-21  Bruno Haible  <bruno@clisp.org>
70912
70913         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
70914         specify an installation location, don't emit a noinst_LIBRARIES or
70915         noinst_LTLIBRARIES assignment.
70916
70917 2006-08-21  Bruno Haible  <bruno@clisp.org>
70918
70919         BeOS portability.
70920         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
70921         BeOS has mbrtowc() but no <wctype.h>.
70922
70923 2006-08-21  Bruno Haible  <bruno@clisp.org>
70924
70925         BeOS portability.
70926         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
70927         exist.
70928
70929 2006-08-21  Bruno Haible  <bruno@clisp.org>
70930
70931         BeOS portability.
70932         * lib/mbchar.h: Include <wctype.h> only if it exists.
70933
70934 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70935
70936         Remove files that are no longer needed by their respective modules.
70937         * m4/obstack.m4: Remove.
70938         * m4/strerror_r.m4: Remove.
70939         * m4/uint32_t.m4: Remove.
70940         * m4/uintptr_t.m4: Remove.
70941         * m4/ullong_max.m4: Remove.
70942         * m4/xstrtoimax.m4: Remove.
70943         * m4/xstrtoumax.m4: Remove.
70944
70945         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
70946         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
70947         dependencies now capture this.
70948
70949         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
70950         Do not use AC_LIBSOURCES, since gnulib modules now do this.
70951         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
70952         * m4/human.m4 (gl_HUMAN): Likewise.
70953         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
70954         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
70955
70956         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
70957
70958         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
70959         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
70960         stdint.
70961         * m4/human.m4 (gl_HUMAN): Likewise.
70962         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
70963         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
70964         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70965         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70966         * m4/xstrtol (gl_XSTRTOL): Likewise.
70967
70968         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
70969         AC_TYPE_LONG_LONG_INT.
70970         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70971         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
70972         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
70973         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70974
70975         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
70976         on stdbool.
70977
70978         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
70979         (gl_PREREQ_XSTRTOUL): Remove.
70980
70981         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
70982
70983         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
70984         mode.
70985
70986 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70987
70988         Add and change modules to make it easier for coreutils to use
70989         gnulib-tool.
70990         * modules/backupfile (Files): Remove m4/d-ino.m4.
70991         (Depends-on): Add d-ino.
70992         * modules/cycle-check (Depends-on): Add stdint.
70993         (lib_SOURCES): Add cycle-check.h.
70994         * modules/d-ino: New module.
70995         * modules/d-type: New module.
70996         * modules/error (Files): Remove m4/strerror_r.m4.
70997         * modules/filemode (Files): Add m4/st_dm_mode.m4.
70998         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70999         m4/inttypes_h.m4, m4/uintmax_t.m4.
71000         (Depends-on): Add stdint.
71001         (lib_SOURCES): Add fsusage.h.
71002         * modules/getcwd (Files): Remove d-ino.m4.
71003         (Depends-on): Add d-ino.
71004         * modules/getndelim2 (Depends-on): Add stdint.
71005         * modules/glob (Files): Remove m4/d-type.m4.
71006         (Depends-on): Add d-type.
71007         * modules/host-os: New module.
71008         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
71009         m4/inttypes_h.m4, m4/uintmax_t.m4.
71010         * Depends-on: Add stdint.
71011         (lib_SOURCES): Add human.h.
71012         * modules/inttostr (Files): Remove m4/intmax_t.m4,
71013         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
71014         m4/uintmax_t.m4, m4/ulonglong.m4.
71015         (Depends-on): Add stdint.
71016         (EXTRA_DIST): Add inttostr.h.
71017         * modules/lchmod: New module.
71018         * modules/link-follow: New module.
71019         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
71020         (Depends-on): Add lchmod.
71021         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
71022         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
71023         (Depends-on): Add stdint.
71024         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
71025         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
71026         (Depends-on): Add stdint.
71027         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
71028         * modules/perl: New module.
71029         * modules/regex (Depends-on): Add stdint.
71030         * modules/rmdir-errno: New module.
71031         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71032         m4/intmax_t.m4.
71033         (Depends-on): Add stdint.
71034         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71035         m4/uintmax_t.m4.
71036         (Depends-on): Add stdint.
71037         * modules/unlink-busy: New module.
71038         * modules/utimecmp (Depends-on): Add stdint.
71039         * modules/uptime: New module.
71040         * modules/winsz-ioctl: New module.
71041         * modules/winsz-termios: New module.
71042         * modules/xnanosleep (Depends-on): Add nanosleep.
71043         * modules/ullong_max: Remove.
71044         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
71045         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
71046         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
71047         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
71048         (Depends-on): Add inttypes.
71049         (lib_SOURCES): Add xstrtol.h.
71050         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
71051         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
71052         * MODULES.html.sh: Move 'assert' into the assert section.
71053         Move 'dummy' into the linking section.
71054         Remove ullong_max.
71055         Add section for compatibility checks for POSIX:2001 functions,
71056         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
71057         winsz-ioctl, and winsz-termios into it.
71058         Add lchmod.
71059         Add top-level Misc section and put host-os, perl, and uptime
71060         into it.
71061
71062 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71063
71064         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
71065         now assume the stdint module.  Do not include inttypes.h.
71066         * lib/fsusage.h: Likewise.
71067         * lib/getndelim2.c: Likewise.
71068         * lib/human.h: Likewise.
71069         * lib/inttostr.h: Likewise.
71070         * lib/obstack.c: Likewise.
71071         * lib/regex_internal.h: Likewise.
71072         * lib/tempname.c: Likewise.
71073         * lib/utimecmp.c: Likewise.
71074         * lib/xstrtol.h: Likewise.
71075
71076         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
71077
71078         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
71079         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
71080         * lib/xtime.h: Likewise.
71081
71082 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71083
71084         * modules/openat (Files): Add lib/fchmodat.c.
71085         Fixes problem reported by Jay Youngman.
71086
71087 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71088
71089         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
71090         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
71091
71092 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
71093             Bruno Haible  <bruno@clisp.org>
71094
71095         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
71096         and is a script that invokes bison. Tighten the code. Add comments.
71097
71098 2006-08-18  Jim Meyering  <jim@meyering.net>
71099
71100         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
71101         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
71102         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
71103         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
71104
71105 2006-08-18  Bruno Haible  <bruno@clisp.org>
71106
71107         * modules/bison-i18n: New file.
71108         * MODULES.html.sh (Internationalization functions): Add it.
71109
71110 2006-08-18  Bruno Haible  <bruno@clisp.org>
71111
71112         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
71113         sys/statvfs.h. When getmntinfo was found, check its declaration and
71114         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
71115
71116 2006-08-18  Bruno Haible  <bruno@clisp.org>
71117
71118         * m4/bison-i18n.m4: New file, from bison.
71119
71120 2006-08-18  Bruno Haible  <bruno@clisp.org>
71121
71122         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
71123         (ME_DUMMY): Treat "kernfs" as a dummy.
71124         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
71125
71126 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71127
71128         Update from coreutils.
71129
71130         2006-08-15  Jim Meyering  <jim@meyering.net>
71131
71132         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
71133
71134         2006-01-17  Jim Meyering  <jim@meyering.net>
71135
71136         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
71137
71138         2006-01-11  Jim Meyering  <jim@meyering.net>
71139
71140         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
71141         Check for the lchmod function.
71142
71143 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71144
71145         Update from coreutils.
71146
71147         * lib/__fpending.h: Add copyright notice.
71148         * lib/fprintftime.h: Likewise.
71149         * lib/savedir.c: Use (C) in copyright notice.
71150         * lib/savedir.h: Likewise.
71151
71152         2006-08-15  Jim Meyering  <jim@meyering.net>
71153
71154         * lib/at-func.c: New file, with the logic of all emulated at-functions.
71155         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
71156         in support of the EXPECTED_ERRNO macro.
71157         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
71158         definitions.  Instead, define the appropriate symbols and include
71159         "at-func.c".
71160         * lib/mkdirat.c (mkdirat): Likewise.
71161         * lib/fchmodat.c (fchmodat): Likewise.
71162         (ENOSYS): Remove definition.
71163         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
71164         it.  Don't include "unistd--.h" -- it wasn't ever used.
71165
71166         2006-01-17  Jim Meyering  <jim@meyering.net>
71167
71168         Rewrite fts.c not to change the current working directory,
71169         by using openat, fstatat, fdopendir, etc..
71170
71171         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
71172         (HAVE_OPENAT_SUPPORT): Define.
71173         [_LIBC] (fchdir): Don't undef or define; no longer used.
71174         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
71175         Now, this `function' always succeeds, and consumes its file descriptor
71176         parameter -- so callers must not close such FDs.  Update callers.
71177         (diropen_fd, opendirat, cwd_advance_fd): New functions.
71178         (diropen): Add parameter, SP.  Adjust all callers.
71179         Implement using diropen_fd, rather than open.
71180         (fts_open): Initialize new member, fts_cwd_fd.
71181         Remove fts_rft-setting code.
71182         (fts_close): Close fts_cwd_fd, if necessary.
71183         (__opendir2): Define in terms of opendir or opendirat,
71184         depending on whether the FST_NOCHDIR flag is set.
71185         (fts_build): Since fts_safe_changedir consumes its FD, and since
71186         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
71187         and close the dup'd file descriptor upon failure.
71188         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
71189         (fts_safe_changedir): Tweak semantics to reflect that this function
71190         now calls cwd_advance_fd and hence consumes its FD argument.
71191         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
71192         [struct FTS] (fts_rft): Remove now-unused member.
71193         [struct FTS] (fts_cycle.state): Improve comment.
71194
71195         * lib/openat.c (openat_needs_fchdir): New function.
71196         * lib/openat.h (openat_needs_fchdir): Declare it.
71197
71198 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71199
71200         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
71201         Problem and fix reported by Pádraig Brady in
71202         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
71203
71204 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71205
71206         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
71207
71208 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71209
71210         * lib/memcoll.c (memcoll): Optimize for the common case where the
71211         arguments are bytewise equal.
71212
71213 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71214
71215         * doc/regexprops-generic.texi: Add a copyright notice.
71216
71217 2006-08-15  Bruno Haible  <bruno@clisp.org>
71218
71219         * modules/tmpdir (License): Change to LGPL.
71220
71221 2006-08-15  Bruno Haible  <bruno@clisp.org>
71222
71223         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
71224         module.
71225
71226 2006-08-14  Simon Josefsson  <jas@extundo.com>
71227
71228         * config/srclist.txt: Add gnupload.
71229
71230 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71231
71232         Change copyright notice from LGPL 2 to GPL 2, since that's the
71233         standard form used in the gnulib repository.
71234         * tests/test-lock.c: Likewise.
71235         * tests/test-stdint.c: Likewise.
71236         * tests/test-tls.c: Likewise.
71237
71238         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
71239         prelude-manager.  User shorter URLs for GNU projects, without '?'.
71240         Add copyright notice.
71241
71242         * check-module: Add copyright notice.  Output a copyright
71243         notice if "--version" is specified.
71244         * modules/COPYING: New file.
71245         * tests/test-getaddrinfo.c: Add copyright notice.
71246         * tests/test-verify.c: Likewise.
71247
71248 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71249
71250         Change copyright notice from LGPL 2 to GPL 2, since that's the
71251         standard form used in the gnulib repository.
71252         * lib/lock.c: LGPL -> GPL.
71253         * lib/lock.h: Likewise.
71254         * lib/strnlen1.c: Likewise.
71255         * lib/strnlen1.h: Likewise.
71256         * lib/tls.c: Likewise.
71257         * lib/tls.h: Likewise.
71258         * lib/tmpdir.c: Likewise.
71259
71260         * lib/TODO: Remove; this belongs only in coreutils.
71261
71262 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71263
71264         Add copyright notices to long-enough files that lack them, since
71265         otherwise the files aren't clearly free.  Use the same notice that
71266         getdate.texi already uses.
71267         * doc/alloca-opt.texi: Add copyright notice.
71268         * doc/alloca.texi: Likewise.
71269         * doc/ctime.texi: Likewise.
71270         * doc/functions.texi: Likewise.
71271         * doc/gcd.texi: Likewise.
71272         * doc/gnulib-tool.texi: Likewise.
71273         * doc/inet_ntoa.texi: Likewise.
71274         * doc/visibility.texi: Likewise.
71275
71276         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
71277         * doc/quote.texi: Add copyright notice.
71278
71279         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
71280         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
71281         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
71282         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
71283         is now obsolete, and give a pointer to the Sun list.
71284         Add copyright notice.
71285
71286 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71287
71288         * config/srclistvars.sh: Add copyright notice.
71289
71290 2006-08-14  Eric Blake  <ebb9@byu.net>
71291
71292         Import the following change from libc:
71293
71294         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
71295
71296         Upstream bug 2997.
71297         * lib/misc/error.c: Add space between program name and message if file
71298         name is missing.
71299
71300 2006-08-12  Karl Berry  <karl@gnu.org>
71301
71302         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
71303         remove, these originate in gnulib now.
71304
71305 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71306
71307         * doc/Makefile (standards.info standards.html standards.dvi):
71308         Also depend on make-stds.texi.
71309
71310 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71311
71312         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
71313         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
71314
71315         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
71316         in wchar_t.  Problem reported by Eric Blake.
71317
71318         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
71319         LEN is smaller than SIZE.  Suggested by Bruno Haible.
71320         Also, help the compiler to keep LEN in a register.
71321
71322 2006-08-11  Eric Blake  <ebb9@byu.net>
71323
71324         * users.txt: Sort.  Add tar.
71325
71326 2006-08-11  Bruno Haible  <bruno@clisp.org>
71327
71328         * users.txt: New file.
71329
71330 2006-08-11  Bruno Haible  <bruno@clisp.org>
71331
71332         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
71333         before <wchar.h>. Needed for OSF/1 and BSD/OS.
71334
71335 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71336
71337         * modules/snprintf (Depends-on): Remove minmax.
71338         (Maintainer): Add self and Bruno.
71339
71340 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71341
71342         * lib/.cppi-disable: Add snprintf.h, socket_.h.
71343         * lib/snprintf.c: Include <errno.h> and <limits.h>.
71344         (EOVERFLOW): Define if the system does not.
71345         Do not include "minmax.h"; it wasn't used.
71346         (snprintf): Don't assume size_t promotes to an unsigned type.
71347         Fix bug when generated string was too long for the buffer: the
71348         buffer's contents are supposed to be the initial prefix of the
71349         output.  Don't assume vasnprintf returns EOVERFLOW if the size
71350         exceeds INT_MAX; do the check ourselves.
71351
71352         Import the following changes from libc:
71353
71354         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
71355
71356         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
71357         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
71358         set wc to the byte which couldn't be converted.
71359         (re_string_reconstruct): Don't clear valid_raw_len before calling
71360         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
71361         tip_context using re_string_context_at.
71362
71363         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
71364
71365         * lib/posix/regex.h: g++ still cannot handled [restrict].
71366
71367         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
71368
71369         * lib/posix/regex.h: Remove special handling for VMS.
71370
71371 2006-08-10  Jim Meyering  <jim@meyering.net>
71372
71373         * modules/same-inode: New module.
71374         * modules/dev-ino: New module.
71375         * modules/cycle-check: Depend on these modules, rather than simply
71376         including their .h files.
71377         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
71378         required via m4/cycle-check.m4.
71379         * modules/same: Depend on new same-inode module, rather than
71380         including same-inode.h.
71381         * modules/chdir-safer: New file.
71382
71383         * modules/chown (Depends-on): Add stat-macros.
71384
71385 2006-08-10  Jim Meyering  <jim@meyering.net>
71386
71387         * m4/cycle-check.m4: New file.
71388         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
71389         * m4/dev-ino.m4, m4/same-inode.m4: New files.
71390
71391 2006-08-10  Eric Blake  <ebb9@byu.net>
71392
71393         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
71394         in from original proposal.
71395
71396 2006-08-10  Eric Blake  <ebb9@byu.net>
71397         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71398
71399         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
71400         namespace.
71401
71402 2006-08-10  Bruno Haible  <bruno@clisp.org>
71403
71404         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
71405         as well.
71406
71407 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71408
71409         Sync from coreutils.
71410
71411         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
71412
71413         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
71414         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
71415
71416 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71417
71418         * modules/restrict: Remove; no longer needed now that we assume
71419         Autoconf 2.59 or later.
71420         * MODULES.html.sh: Remove 'restrict'.
71421         * modules/argp (Depends-on): Remove 'restrict'.
71422         * modules/base64 (Depends-on): Likewise.
71423         * modules/gc (Depends-on): Likewise.
71424         * modules/getaddrinfo (Depends-on): Likewise.
71425         * modules/glob (Depends-on): Likewise.
71426         * modules/inet_ntop (Depends-on): Likewise.
71427         * modules/inet_pton (Depends-on): Likewise.
71428         * modules/memxor (Depends-on): Likewise.
71429         * modules/regex (Depends-on): Likewise.
71430         * modules/strtok_r (Depends-on): Likewise.
71431         * modules/time_r (Depends-on): Likewise.
71432
71433 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71434
71435         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
71436         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
71437         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71438         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
71439         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
71440         * m4/memxor.m4 (gl_MEMXOR): Likewise.
71441         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
71442         gl_C_RESTRICT replaced by AC_C_RESTRICT.
71443
71444         Merge from coreutils.
71445         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
71446         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
71447         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71448         * m4/time_r.m4 (gl_TIME_R): Likewise.
71449
71450 2006-08-09  Karl Berry  <karl@gnu.org>
71451
71452         * config/srclist.txt: no more gettext-tools, per Bruno.
71453
71454 2006-08-08  Eric Blake  <ebb9@byu.net>
71455
71456         * modules/verror: New module.
71457         * MODULES.html.sh: Document it.
71458
71459 2006-08-08  Eric Blake  <ebb9@byu.net>
71460
71461         * lib/verror.h, lib/verror.c: New files.
71462
71463 2006-08-08  Eric Blake  <ebb9@byu.net>
71464
71465         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
71466         verror_at_line output complies with GNU Coding Standards even when
71467         file is NULL.
71468
71469 2006-08-07  Bruno Haible  <bruno@clisp.org>
71470
71471         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
71472         versions of AIX.
71473         Reported by Ralf Wildenhues.
71474
71475 2006-08-07  Bruno Haible  <bruno@clisp.org>
71476
71477         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
71478         in an AC_DEFUN. Needed so that the autoconf snippets can use
71479         AC_REQUIRE.
71480
71481 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71482
71483         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71484         Initialize pkgdata_DATA.
71485         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
71486         overriding it.
71487
71488 2006-08-06  Eric Blake  <ebb9@byu.net>
71489
71490         * lib/error.h: Fold in some upstream changes from glibc.
71491         * lib/error.c: Likewise.
71492
71493 2006-08-04  Bruno Haible  <bruno@clisp.org>
71494
71495         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71496         Make the mostlyclean-local rule depend on mostlyclean-generic.
71497         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
71498
71499 2006-07-31  Bruno Haible  <bruno@clisp.org>
71500
71501         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
71502         <stdlib.h>, <string.h>.
71503
71504 2006-07-30  Bruno Haible  <bruno@clisp.org>
71505
71506         * modules/readlink (License): Change to LGPL.
71507
71508 2006-07-30  Bruno Haible  <bruno@clisp.org>
71509
71510         * modules/javaversion (Makefile.am): Distribute javaversion.java and
71511         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
71512         set PKGDATADIR to point to it.
71513
71514 2006-07-30  Bruno Haible  <bruno@clisp.org>
71515
71516         * modules/csharpexec (configure.ac): Comment out macro invocation.
71517         * modules/javaexec (configure.ac): Likewise.
71518         * modules/javacomp-script (configure.ac): Likewise.
71519
71520         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
71521
71522 2006-07-30  Bruno Haible  <bruno@clisp.org>
71523
71524         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
71525         linked-list.
71526
71527 2006-07-30  Bruno Haible  <bruno@clisp.org>
71528
71529         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
71530
71531 2006-07-30  Bruno Haible  <bruno@clisp.org>
71532
71533         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71534         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
71535         get removed.
71536
71537 2006-07-29  Bruno Haible  <bruno@clisp.org>
71538
71539         Make it possible for gnulib-tool to work with locally modified or
71540         augmented gnulib repositories.
71541         * gnulib-tool (func_usage): Document --local-dir option.
71542         (local_gnulib_dir): New variable.
71543         Handle --local-dir option.
71544         (func_lookup_file): New function.
71545         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
71546         (func_get_description, func_get_filelist, func_get_description,
71547         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
71548         func_get_automake_snippet, func_get_include_directive,
71549         func_get_license, func_get_maintainer): Use func_lookup_file.
71550         (func_import, func_create_testdir): Use func_lookup_file.
71551
71552 2006-07-29  Bruno Haible  <bruno@clisp.org>
71553
71554         * modules/setenv (Depends-on): Add unistd.
71555
71556 2006-07-29  Bruno Haible  <bruno@clisp.org>
71557
71558         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
71559
71560 2006-07-29  Bruno Haible  <bruno@clisp.org>
71561
71562         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
71563
71564 2006-07-29  Bruno Haible  <bruno@clisp.org>
71565
71566         * gnulib-tool (import, update): If there is no Makefile.am, look at
71567         aclocal.m4, instead of bailing out.
71568
71569 2006-07-29  Bruno Haible  <bruno@clisp.org>
71570
71571         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
71572         Categorize the options by when they are useful.
71573
71574 2006-07-29  Bruno Haible  <bruno@clisp.org>
71575
71576         * gnulib-tool (func_usage): Document option --no-libtool.
71577         Handle option --no-libtool.
71578         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
71579         for changed semantics of $libtool variable.
71580         (func_import): Likewise. If libtool is not used, show this through
71581         an option --no-libtool.
71582         (func_create_testdir): Update.
71583
71584 2006-07-29  Bruno Haible  <bruno@clisp.org>
71585
71586         * gnulib-tool (func_import): Extend error message about missing
71587         --doc-base.
71588
71589 2006-07-29  Bruno Haible  <bruno@clisp.org>
71590
71591         * gnulib-tool (func_import): Don't create the $docbase directory if
71592         there is no file to store there.
71593
71594 2006-07-29  Bruno Haible  <bruno@clisp.org>
71595
71596         * gnulib-tool (autoconf_minversion): If a --dir option is given and
71597         relevant, look for configure.ac there, not in the current directory.
71598         Also use a simple search for AC_PREREQ, not "autoconf --trace".
71599
71600 2006-07-29  Bruno Haible  <bruno@clisp.org>
71601
71602         * gnulib-tool (SORT): New variable.
71603         (func_usage): Undocument --assume-autoconf option.
71604         Remove --assume-autoconf option handling.
71605         (autoconf_minversion): Determine from the contents of configure.ac.
71606         (func_import): Remove autoconf_minversion handling.
71607         Suggested by Eric Blake.
71608
71609 2006-07-29  Bruno Haible  <bruno@clisp.org>
71610
71611         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
71612
71613 2006-07-29  Bruno Haible  <bruno@clisp.org>
71614
71615         * config/srclist.txt (*setenv.[ch]): Remove rules.
71616
71617 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71618
71619         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
71620
71621 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71622
71623         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
71624         arpa/inet.h.
71625
71626 2006-07-28  Simon Josefsson  <jas@extundo.com>
71627
71628         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
71629         * modules/inet_pton (Depends-on): Likewise.
71630
71631 2006-07-28  Simon Josefsson  <jas@extundo.com>
71632
71633         * m4/netinet_in_h.m4: New file.
71634
71635 2006-07-28  Simon Josefsson  <jas@extundo.com>
71636
71637         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
71638         #include's.
71639
71640 2006-07-28  Simon Josefsson  <jas@extundo.com>
71641
71642         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
71643         #include's.
71644
71645 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
71646
71647         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
71648         setgid on directories only if they set these bits.
71649         * lib/modechange.h: Remove obsolete comment about masks.
71650
71651 2006-07-28  Eric Blake  <ebb9@byu.net>
71652
71653         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
71654         macro expansion.
71655
71656 2006-07-28  Bruno Haible  <bruno@clisp.org>
71657
71658         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
71659
71660 2006-07-28  Bruno Haible  <bruno@clisp.org>
71661
71662         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
71663
71664 2006-07-28  Bruno Haible  <bruno@clisp.org>
71665
71666         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71667         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71668         Define fallbacks.
71669         Avoids link error on FreeBSD 4.x.
71670         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71671
71672         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
71673         encoding.
71674         * lib/mbswidth.c (iswcntrl): Likewise.
71675
71676 2006-07-27  Bruno Haible  <bruno@clisp.org>
71677
71678         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
71679         test.
71680
71681 2006-07-27  Bruno Haible  <bruno@clisp.org>
71682
71683         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
71684         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
71685         defined.
71686
71687 2006-07-26  Eric Blake  <ebb9@byu.net>
71688
71689         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
71690
71691 2006-07-26  Eric Blake  <ebb9@byu.net>
71692
71693         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
71694         like mingw that lack mkstemp.
71695         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
71696         avoid compilation warning on mingw.
71697
71698 2006-07-26  Bruno Haible  <bruno@clisp.org>
71699
71700         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
71701         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
71702         INT_FAST*_MIN, INTPTR_MIN.
71703
71704 2006-07-25  Bruno Haible  <bruno@clisp.org>
71705
71706         * modules/version-etc (Depends-on): Add stdarg.
71707
71708 2006-07-25  Bruno Haible  <bruno@clisp.org>
71709
71710         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
71711         complex commands.
71712
71713 2006-07-25  Bruno Haible  <bruno@clisp.org>
71714
71715         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
71716         defined in <stdarg.h> or config.h.
71717
71718 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71719
71720         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
71721         (gl_STDIO_SAFER): Remove.
71722
71723 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71724
71725         * MODULES.html.sh (File stream based Input/Output):
71726         Add fopen-safer, tmpfile-safer; remove stdio-safer.
71727         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
71728         * modules/fopen-safer, modules/tmpfile-safer: New files.
71729         * modules/stdio-safer: Remove.
71730
71731 2006-07-24  Bruno Haible  <bruno@clisp.org>
71732
71733         * modules/tmpdir: New file.
71734         * MODULES.html.sh (File system functions): Add it.
71735
71736 2006-07-24  Bruno Haible  <bruno@clisp.org>
71737
71738         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
71739         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
71740
71741 2006-07-24  Bruno Haible  <bruno@clisp.org>
71742
71743         * modules/clean-temp: New file.
71744
71745 2006-07-24  Bruno Haible  <bruno@clisp.org>
71746
71747         * m4/tmpdir.m4: New file, from GNU gettext.
71748
71749 2006-07-24  Bruno Haible  <bruno@clisp.org>
71750
71751         * lib/tmpdir.h: New file, from GNU gettext.
71752         * lib/tmpdir.c: New file, from GNU gettext.
71753
71754 2006-07-24  Bruno Haible  <bruno@clisp.org>
71755
71756         * lib/clean-temp.h: New file, from GNU gettext.
71757         * lib/clean-temp.c: New file, from GNU gettext.
71758
71759 2006-07-23  Eric Blake  <ebb9@byu.net>
71760
71761         * modules/stdio-safer (Files): Add tmpfile-safer.c.
71762         (Depends-on): Add binary-io.
71763
71764 2006-07-23  Eric Blake  <ebb9@byu.net>
71765
71766         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
71767
71768 2006-07-23  Eric Blake  <ebb9@byu.net>
71769
71770         * lib/tmpfile-safer.c: New file.
71771         * lib/stdio-safer.h (fopen_safer): Add prototype.
71772         * lib/stdio--.h (tmpfile): Make safer.
71773
71774 2006-07-23  Bruno Haible  <bruno@clisp.org>
71775
71776         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
71777         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
71778         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
71779         gl_linked_remove_at): Use it.
71780
71781 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71782         and Simon Josefsson <jas@extundo.com>
71783
71784         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
71785
71786         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
71787
71788 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71789
71790         * modules/close-stream: New file.
71791         * modules/closeout (Description): Make it clear that it exits
71792         with a diagnostic on error.
71793         (Depends-on): Add close-stream.  Remove fpending, stdbool.
71794         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
71795
71796 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71797
71798         * m4/close-stream.m4: New file.
71799
71800 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71801
71802         * lib/close-stream.c, lib/close-stream.h: New files.
71803
71804 2006-07-22  Bruno Haible  <bruno@clisp.org>
71805
71806         Merge from GNU gettext 0.15.
71807
71808         2006-05-01  Bruno Haible  <bruno@clisp.org>
71809
71810                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
71811
71812         2006-07-22  Bruno Haible  <bruno@clisp.org>
71813
71814                 * modules/javaversion: New file.
71815                 * MODULES.html.sh (Java): Add javaversion.
71816
71817         2006-03-12  Bruno Haible  <bruno@clisp.org>
71818
71819                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
71820
71821         2005-12-04  Bruno Haible  <bruno@clisp.org>
71822
71823                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
71824                 (untested).
71825
71826         2006-06-21  Bruno Haible  <bruno@clisp.org>
71827
71828                 Avoid warnings from recent versions of mcs.
71829                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
71830                 -o, -L, -r any more. Use options documented since mcs-1.0
71831                 instead. Similarly for -g.
71832
71833         2005-12-04  Bruno Haible  <bruno@clisp.org>
71834
71835                 * build-aux/csharpcomp.sh.in: Suffix for resources is
71836                 .resources, not .resource.
71837
71838         2005-07-09  Bruno Haible  <bruno@clisp.org>
71839
71840                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
71841                 add a .dll suffix.
71842                 Reported by Mark Junker <mjscod@gmx.de>.
71843
71844         2006-07-22  Bruno Haible  <bruno@clisp.org>
71845
71846                 * modules/gettext: Upgrade to gettext-0.15.
71847                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
71848                 m4/visibility.m4.
71849                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
71850
71851 2006-07-22  Bruno Haible  <bruno@clisp.org>
71852
71853         Merge from GNU gettext 0.15.
71854
71855         2006-03-25  Bruno Haible  <bruno@clisp.org>
71856
71857                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
71858
71859         2006-07-21  Bruno Haible  <bruno@clisp.org>
71860
71861                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
71862                 "1.1".
71863
71864         2006-05-09  Bruno Haible  <bruno@clisp.org>
71865
71866                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
71867                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
71868                 for the conftestver execution.
71869
71870         2006-05-01  Bruno Haible  <bruno@clisp.org>
71871
71872                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
71873                 optional target-version argument. Verify that the compiler
71874                 groks source of the specified source-version, or add -source
71875                 option as necessary. Verify that the compiler produces
71876                 bytecode in the specified target-version, or add -target and
71877                 -source options as necessary. Make the result of the test
71878                 available as variable CONF_JAVAC. Also log error output in
71879                 config.log.
71880
71881         2006-03-11  Bruno Haible  <bruno@clisp.org>
71882
71883                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
71884
71885         2006-05-09  Bruno Haible  <bruno@clisp.org>
71886
71887                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
71888                 CLASSPATH_SEPARATOR to a semicolon.
71889
71890         2006-03-12  Bruno Haible  <bruno@clisp.org>
71891
71892                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
71893                 available as variable CONF_JAVA, for subsequent autoconf
71894                 tests. Also log error output in config.log.
71895
71896         2006-07-19  Bruno Haible  <bruno@clisp.org>
71897
71898                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
71899                 that getline works on glibc2 systems. Needed to avoid trouble
71900                 in relocatable.c.
71901                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
71902
71903         2005-12-04  Bruno Haible  <bruno@clisp.org>
71904
71905                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
71906                 launcher (untested).
71907
71908         2005-12-04  Bruno Haible  <bruno@clisp.org>
71909
71910                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
71911
71912         2006-07-22  Bruno Haible  <bruno@clisp.org>
71913
71914                 * gettext.m4: Update from GNU gettext-0.15.
71915                 * nls.m4: Likewise.
71916                 * po.m4: Likewise.
71917                 * inttypes-pri.m4: Likewise.
71918                 * inttypes-h.m4: Renamed from inttypes.m4.
71919                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
71920
71921 2006-07-22  Bruno Haible  <bruno@clisp.org>
71922
71923         Merge from GNU gettext 0.15.
71924
71925         2005-07-05  Bruno Haible  <bruno@clisp.org>
71926
71927                 * printf-args.c (printf_fetchargs): Work around broken
71928                 definition of wint_t on mingw.
71929
71930         2005-02-12  Bruno Haible  <bruno@clisp.org>
71931
71932                 * xallocsa.h: Add extern "C" for C++.
71933
71934         2006-05-17  Bruno Haible  <bruno@clisp.org>
71935
71936                 Cygwin portability.
71937                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
71938
71939         2006-04-30  Bruno Haible  <bruno@clisp.org>
71940
71941                 * progreloc.c: Include <mach-o/dyld.h> if available.
71942                 (find_executable): Use _NSGetExecutablePath when possible.
71943
71944         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71945
71946                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
71947                 function.
71948
71949         2005-12-29  Bruno Haible  <bruno@clisp.org>
71950
71951                 * progreloc.c (set_program_name_and_installdir): Fix
71952                 compilation error.
71953
71954         2005-12-04  Bruno Haible  <bruno@clisp.org>
71955
71956                 Cygwin portability.
71957                 * progreloc.c: Include <windows.h> also on Cygwin.
71958                 (find_executable): Add support for Cygwin.
71959                 (set_program_name_and_installdir): Handle also platforms with
71960                 nonempty EXEEXT.
71961
71962         2006-07-11  Bruno Haible  <bruno@clisp.org>
71963
71964                 * javacomp.c: Fix a comment.
71965                 Reported by Jim Meyering.
71966
71967         2006-04-30  Bruno Haible  <bruno@clisp.org>
71968
71969                 * javacomp.h (compile_java_class): Add source_version,
71970                 target_version arguments.
71971                 * javacomp.c: Rewritten to choose only a compiler that
71972                 respects the specified source_version and target_version.
71973
71974         2006-06-27  Bruno Haible  <bruno@clisp.org>
71975
71976                 Assume correct S_ISDIR macro.
71977                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
71978
71979         2006-07-22  Bruno Haible  <bruno@clisp.org>
71980
71981                 * javaversion.h: New file, from GNU gettext.
71982                 * javaversion.c: New file, from GNU gettext.
71983                 * javaversion.java: New file, from GNU gettext.
71984                 * javaversion.class: New file, from GNU gettext.
71985
71986         2006-05-17  Bruno Haible  <bruno@clisp.org>
71987
71988                 Cygwin portability.
71989                 * javaexec.c (execute_java_class): Test for jview program
71990                 also on Cygwin.
71991
71992         2006-04-09  Bruno Haible  <bruno@clisp.org>
71993
71994                 * fatal-signal.c: Don't include string.h.
71995                 (at_fatal_signal): Use a copying loop instead of memcpy.
71996
71997         2005-12-04  Bruno Haible  <bruno@clisp.org>
71998
71999                 * csharpexec.c: Add support for 'clix' launcher (untested).
72000                 (execute_csharp_using_sscli): New function.
72001                 (execute_csharp_program): Call it.
72002
72003         2006-06-21  Bruno Haible  <bruno@clisp.org>
72004
72005                 Avoid warnings from recent versions of mcs.
72006                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
72007                 -o, -L, -r any more. Use options documented since mcs-1.0
72008                 instead. Similarly for -g.
72009
72010         2005-07-09  Bruno Haible  <bruno@clisp.org>
72011
72012                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
72013                 add a .dll suffix.
72014                 Reported by Mark Junker <mjscod@gmx.de>.
72015
72016         2006-06-17  Bruno Haible  <bruno@clisp.org>
72017
72018                 * config.charset: Update for NetBSD 3.0.
72019
72020         2006-05-17  Bruno Haible  <bruno@clisp.org>
72021
72022                 Cygwin portability.
72023                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
72024
72025         2006-05-16  Bruno Haible  <bruno@clisp.org>
72026
72027                 * localcharset.c [CYGWIN]: Include <windows.h>.
72028                 (get_charset_aliases): For Cygwin, return the same CPxxx
72029                 aliases list as under WIN32.
72030                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
72031                 the environment variables. Fall back to GetACP().
72032
72033         2006-04-05  Bruno Haible  <bruno@clisp.org>
72034
72035                 * config.charset: Update Juan Manuel Guerrero's address.
72036
72037         2005-02-12  Bruno Haible  <bruno@clisp.org>
72038
72039                 * allocsa.h: Add extern "C" for C++.
72040
72041         2005-02-10  Bruno Haible  <bruno@clisp.org>
72042
72043                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
72044                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
72045
72046         2006-07-22  Bruno Haible  <bruno@clisp.org>
72047
72048                 * gettext.h: Update to GNU gettext-0.15.
72049
72050 2006-07-22  Bruno Haible  <bruno@clisp.org>
72051
72052         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
72053         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
72054         lib-prefix.m4, longdouble.m4, ssize_t.m4.
72055
72056 2006-07-21  Eric Blake  <ebb9@byu.net>
72057
72058         * modules/stdlib-safer: New file.
72059         * MODULES.html.sh (File stream based Input/Output): Add
72060         stdlib-safer.
72061
72062 2006-07-21  Eric Blake  <ebb9@byu.net>
72063
72064         * lib/stdlib-safer.h: New file from coreutils, required by
72065         stdlib--.h.
72066
72067 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
72068
72069         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
72070
72071 2006-07-20  Bruno Haible  <bruno@clisp.org>
72072
72073         * gnulib-tool: Recognize new option --assume-autoconf.
72074         (autoconf_minversion): New variable.
72075         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
72076
72077 2006-07-20  Bruno Haible  <bruno@clisp.org>
72078
72079         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
72080
72081 2006-07-19  Derek R. Price  <derek@ximbiot.com>
72082
72083         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
72084         Reindent and repaginate.
72085
72086 2006-07-19  Derek Price  <derek@ximbiot.com>
72087
72088         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
72089         Correct grammar.
72090
72091 2006-07-17  Bruno Haible  <bruno@clisp.org>
72092
72093         * modules/list: New file.
72094         * modules/array-list: New file.
72095         * modules/carray-list, modules/carray-list-tests: New files.
72096         * modules/linked-list, modules/linked-list-tests: New files.
72097         * modules/avltree-list, modules/avltree-list-tests: New files.
72098         * modules/rbtree-list, modules/rbtree-list-tests: New files.
72099         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
72100         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
72101         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
72102         * modules/oset: New file.
72103         * modules/array-oset: New file.
72104         * modules/avltree-oset, modules/avltree-oset-tests: New files.
72105         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
72106         * tests/test-carray_list.c: New file.
72107         * tests/test-linked_list.c: New file.
72108         * tests/test-avltree_list.c: New file.
72109         * tests/test-rbtree_list.c: New file.
72110         * tests/test-linkedhash_list.c: New file.
72111         * tests/test-avltreehash_list.c: New file.
72112         * tests/test-rbtreehash_list.c: New file.
72113         * tests/test-avltree_oset.c: New file.
72114         * tests/test-rbtree_oset.c: New file.
72115         * MODULES.html.sh (Container data structures): New section.
72116
72117 2006-07-17  Bruno Haible  <bruno@clisp.org>
72118
72119         * m4/gl_list.m4: New file.
72120
72121 2006-07-17  Bruno Haible  <bruno@clisp.org>
72122
72123         * lib/gl_list.h: New file.
72124         * lib/gl_list.c: New file.
72125         * lib/gl_array_list.h: New file.
72126         * lib/gl_array_list.c: New file.
72127         * lib/gl_carray_list.h: New file.
72128         * lib/gl_carray_list.c: New file.
72129         * lib/gl_linked_list.h: New file.
72130         * lib/gl_linked_list.c: New file.
72131         * lib/gl_anylinked_list1.h: New file.
72132         * lib/gl_anylinked_list2.h: New file.
72133         * lib/gl_avltree_list.h: New file.
72134         * lib/gl_avltree_list.c: New file.
72135         * lib/gl_anyavltree_list1.h: New file.
72136         * lib/gl_anyavltree_list2.h: New file.
72137         * lib/gl_rbtree_list.h: New file.
72138         * lib/gl_rbtree_list.c: New file.
72139         * lib/gl_anyrbtree_list1.h: New file.
72140         * lib/gl_anyrbtree_list2.h: New file.
72141         * lib/gl_anytree_list1.h: New file.
72142         * lib/gl_anytree_list2.h: New file.
72143         * lib/gl_linkedhash_list.h: New file.
72144         * lib/gl_linkedhash_list.c: New file.
72145         * lib/gl_anyhash_list1.h: New file.
72146         * lib/gl_anyhash_list2.h: New file.
72147         * lib/gl_avltreehash_list.h: New file.
72148         * lib/gl_avltreehash_list.c: New file.
72149         * lib/gl_rbtreehash_list.h: New file.
72150         * lib/gl_rbtreehash_list.c: New file.
72151         * lib/gl_anytreehash_list1.h: New file.
72152         * lib/gl_anytreehash_list2.h: New file.
72153
72154         * lib/gl_oset.h: New file.
72155         * lib/gl_oset.c: New file.
72156         * lib/gl_array_oset.h: New file.
72157         * lib/gl_array_oset.c: New file.
72158         * lib/gl_avltree_oset.h: New file.
72159         * lib/gl_avltree_oset.c: New file.
72160         * lib/gl_rbtree_oset.h: New file.
72161         * lib/gl_rbtree_oset.c: New file.
72162         * lib/gl_anytree_oset.h: New file.
72163
72164 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72165
72166         * m4/mkancesdirs.m4: New file.
72167         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
72168         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
72169         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
72170         it.
72171
72172 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72173
72174         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
72175         * lib/mkancesdirs.h: New files.
72176         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
72177         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
72178         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
72179         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
72180         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
72181         callers changed.  Revamp internals significantly, by not
72182         attempting to create directories that are temporarily more
72183         permissive than the final results.  Do not attempt to use
72184         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
72185         This removes some race conditions, fixes some bugs, and simplifies
72186         things.  Use new dirchownmod function to do owner and mode changes.
72187         * lib/mkdir-p.h: Likewise.
72188         * lib/modechange.c (octal_to_mode): New function.
72189         (struct mode_change): New member mentioned.
72190         (make_node_op_equals): New arg mentioned.  All callers changed.
72191         (mode_compile): Keep track of which mode bits the user has explicitly
72192         mentioned.
72193         (mode_adjust): New arg DIR, so that we implement the X op correctly.
72194         New arg PMODE_BITS, to keep track of which mode bits the user
72195         mentioned; it treats S_ISUID and S_ISGID speciall.
72196         All callers changed.
72197         * lib/modechange.h: Likewise.
72198
72199 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72200
72201         * MODULES.html.sh: Add mkancestors.
72202         * modules/mkancesdirs: New module.
72203         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
72204         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
72205         The chdir-safer and afs files are now orphans; I'll remove them
72206         unless someone speaks up.
72207         Add lib/dirchownmod.c, lib/dirchownmod.h.
72208         (Depends-on): Remove alloca, chown, save-cwd, dirname.
72209         Add lchown, mkancesdirs.
72210         (Maintainer): Add self.
72211
72212 2006-07-15  Karl Berry  <karl@gnu.org>
72213
72214         * gnulib-tool: help message wording/arrangement.
72215
72216 2006-07-14  Simon Josefsson  <jas@extundo.com>
72217
72218         * doc/gnulib.texi (Libtool and Windows): New section.
72219
72220 2006-07-12  Simon Josefsson  <jas@extundo.com>
72221
72222         * modules/gendocs (License): Fix license, approved by Karl.
72223
72224 2006-07-12  Eric Blake  <ebb9@byu.net>
72225
72226         * MODULES.html.sh: Add gendocs.
72227
72228 2006-07-11  Eric Blake  <ebb9@byu.net>
72229
72230         * modules/fdl: New module, to install doc/fdl.texi.
72231         * MODULES.html.sh: Add new section for documentation modules.
72232         * gnulib-tool: Avoid space-tab.
72233         (--doc-base): New option, to manage files from doc.
72234
72235 2006-07-11  Eric Blake  <ebb9@byu.net>
72236
72237         * m4/absolute-header.m4: Fix comments to match recent change.
72238
72239 2006-07-11  Eric Blake  <ebb9@byu.net>
72240
72241         * gnulib-tool: List --doc-base before --tests-base.
72242
72243 2006-07-11  Derek R. Price  <derek@ximbiot.com>
72244
72245         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
72246
72247 2006-07-11  Bruno Haible  <bruno@clisp.org>
72248
72249         * README: Mention where to put documentation.
72250
72251 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72252
72253         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
72254
72255 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72256
72257         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
72258         to stdint.m4.
72259
72260 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72261
72262         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
72263         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
72264         "no/such/file/stdint.h" when there is no such file, so that
72265         the resulting C code can be parsed by dodgy compilers.
72266         Problems reported by Bob Proulx.
72267
72268 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72269
72270         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
72271         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72272         macros into the GNU _D_EXACT_NAMLEN.
72273         * lib/savedir.c:  Likewise.
72274         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
72275
72276 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72277         and Paul Eggert  <eggert@cs.ucla.edu>
72278
72279         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
72280         * m4/savedir.m4:
72281         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72282         macros into the GNU _D_EXACT_NAMLEN.
72283
72284 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72285
72286         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
72287         around the absolute name, to work around a problem with the HP-UX
72288         11.23 native C compiler, reported by Bob Proulx.
72289
72290 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72291
72292         * doc/maintain.texi, make-stds.texi: Sync from
72293         <http://savannah.gnu.org/projects/gnustandards>.
72294
72295 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72296
72297         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
72298
72299 2006-07-09  Jim Meyering  <jim@meyering.net>
72300
72301         * m4/glob.m4: Remove a doubled word in a comment.
72302
72303 2006-07-09  Jim Meyering  <jim@meyering.net>
72304
72305         * lib/argp-pv.c: Remove a doubled word in a comment.
72306         * lib/check-version.c (check_version): Likewise.
72307         * lib/javacomp.c (compile_java_class): Likewise.
72308
72309 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72310
72311         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
72312         for the benefit of people using Autoconf 2.60.  If you want to
72313         support older Autoconf versions you can copy m4/onceonly_2_57.m4
72314         (or m4/onceonly.m4, if pre-2.57) manually.
72315
72316 2006-07-08  Jim Meyering  <jim@meyering.net>
72317
72318         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
72319         comment.
72320         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
72321         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
72322         comment.
72323
72324 2006-07-08  Jim Meyering  <jim@meyering.net>
72325
72326         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
72327
72328 2006-07-07  Simon Josefsson  <jas@extundo.com>
72329
72330         * tests/test-crc.c: Change expected crc value, the test vector
72331         were probably computed using the old broken crc.c?
72332
72333 2006-07-06  Simon Josefsson  <jas@extundo.com>
72334
72335         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
72336         now the canonical place for the M4 file).
72337
72338         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
72339         from the sys_socket dependency now.
72340
72341         * modules/inet_pton (Files): Ditto.
72342
72343         * modules/inet_ntop (Files): Ditto.
72344
72345 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72346
72347         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
72348         not gl_PREREQ_GETUSERSHELL.
72349
72350 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72351
72352         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
72353         with only one argument, for Autoconf 2.60.
72354         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
72355         expand to nothing, so add a shell command to avoid syntax error.
72356         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72357
72358 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72359
72360         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
72361
72362 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72363
72364         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
72365         no longer needed.  Check for isblank decl.
72366         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
72367         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
72368         of existence.
72369
72370 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72371
72372         * lib/getloadavg.c: Use __VMS, not VMS.
72373         * lib/getopt.c: Likewise.
72374         * lib/getpagesize.h: Likewise.
72375         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
72376         and probably does not work.
72377
72378 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72379
72380         * lib/.cppi-disable: Add wcwidth.
72381         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
72382         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
72383         (ISGRAPH): Remove.  All uses changed to isgraph.
72384         (FOLD) [!defined _LIBC]: Remove special case.
72385         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
72386         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
72387         HAVE_ISBLANK.
72388         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
72389         case.
72390
72391 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72392
72393         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
72394         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
72395         brackets.  Other minor changes to suppress some compiler
72396         warnings.
72397
72398 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72399         and Paul Eggert  <eggert@cs.ucla.edu>
72400
72401         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
72402         of invoking obsolescent AC_HEADER_DIRENT macro.
72403         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
72404         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
72405         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
72406         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
72407         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
72408         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72409         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
72410         * m4/readdir.m4: Remove; no longer needed.
72411
72412 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72413         and Paul Eggert  <eggert@cs.ucla.edu>
72414
72415         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
72416         Don't worry about this obsolete case any more.
72417         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
72418         directories.
72419         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
72420         worry about this obsolete case any more.
72421         * lib/fts.c: Likewise.
72422         * lib/getcwd.c: Likewise.
72423         * lib/glob.h: Likewise.
72424         * lib/savedir.c: Likewise.
72425
72426 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72427
72428         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
72429         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
72430         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
72431         needed.
72432         All uses removed.
72433         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72434         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72435         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
72436         needed.
72437         * m4/getdate.m4 (gl_GETDATE): Likewise.
72438         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72439         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72440         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72441         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72442         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72443         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72444         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
72445         needed.
72446
72447 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72448
72449         * lib/memcasecmp.c: Include <limits.h>.
72450         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
72451         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
72452         Don't assume isdigit succeeds only on '0' through '9'.
72453
72454 2006-07-05  Eric Blake  <ebb9@byu.net>
72455
72456         * modules/getaddrinfo (Depends-on): Add snprintf.
72457
72458 2006-07-05  Eric Blake  <ebb9@byu.net>
72459
72460         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
72461         to avoid 'header present but could not be compiled' on cygwin.
72462
72463 2006-07-05  Eric Blake  <ebb9@byu.net>
72464
72465         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
72466         missing from netdb.h.
72467         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
72468
72469 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72470
72471         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
72472         no longer needed.
72473         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
72474         * m4/getdate.m4 (gl_GETDATE): Likewise.
72475         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72476         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72477         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72478         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72479         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72480
72481 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72482
72483         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
72484         All uses of is_space replaced by isspace.
72485         * lib/exit.h: Don't talk about STDC_HEADERS.
72486         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
72487         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
72488         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
72489         replaced by isprint etc.
72490         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
72491         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72492         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
72493         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
72494         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
72495         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72496
72497 2006-07-05  Bruno Haible  <bruno@clisp.org>
72498
72499         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
72500         the function exists, before testing against AIX.
72501         Reported by Martin Lambers <marlam@marlam.de>.
72502
72503 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72504
72505         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
72506         From Mark D. Baushke.
72507
72508 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72509
72510         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
72511         to the absolute name, not just one, to bypass Sun C 5.8's
72512         "warning: #include of /usr/include/... may be non-portable".
72513
72514 2006-07-04  Eric Blake  <ebb9@byu.net>
72515
72516         * modules/dirname-tests: New test module.
72517         * tests/test-dirname.c: New file, replacing dirname.c
72518         TEST_DIRNAME section that was recently deleted.
72519
72520 2006-07-04  Bruno Haible  <bruno@clisp.org>
72521
72522         Assume ANSI C header files and <ctype.h> functions.
72523         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
72524         (mbsnwidth): Use isprint, iscntrl instead.
72525
72526 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72527
72528         Merge from coreutils.
72529         * MODULES.html.sh: Add xstrtold.
72530         * modules/xstrtold: New file.
72531         * modules/cycle-check (Files): Add lib/same-inode.h.
72532         * modules/dirname (Files): Add m4/double-slash-root.m4.
72533         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
72534         * modules/mkdir-p (Files): Add lib/same-inode.h.
72535         * modules/same (Files): Add lib/same-inode.h.
72536
72537 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72538
72539         * m4/absolute-header.m4: Renamed from full-header-path.m4.
72540         This is to keep the terminology clean; POSIX talks about
72541         "absolute pathnames", not "full pathnames", but the GNU
72542         Coding Standards say to use "path" for something else;
72543         so use "absolute" to keep both sides happy.
72544         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
72545         Set gl_absolute_header, not gl_full_header_path.
72546         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
72547         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
72548         All uses changed.
72549
72550         Merge from coreutils.
72551
72552         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72553
72554         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
72555         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
72556         want to require the building of c-strtod.o.
72557         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
72558         needs -lm directly.
72559         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
72560
72561         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72562
72563         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
72564         --as-needed option if available.  Problem reported by Albert Chin in
72565         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
72566         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
72567         cc merely issues a bunch of annoying warnings for --as-needed
72568         (this problem was reported by Bob Proulx).  Also, try linking with
72569         -lm to detect a bug in binutils 2.16 (this problem was reported
72570         by Ralf Wildenhues).
72571
72572         2006-06-18  Jim Meyering  <jim@meyering.net>
72573
72574         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
72575         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
72576         macro.
72577         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
72578         also check for glibc-2.4's abort-inducing bug.
72579
72580         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
72581         Low-probability clean-up should be to use rmdir to get rid of
72582         the just-created directory, not unlink.
72583
72584         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
72585         configure fail, and request a bug report to inform us about it.
72586         Add a comment that, barring reports to the contrary, in 2007 we'll
72587         assume ftruncate is universally available.
72588
72589         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72590
72591         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
72592
72593         2006-03-12  Jim Meyering  <jim@meyering.net>
72594
72595         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
72596         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
72597         * m4/same.m4 (gl_SAME): Likewise.
72598         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
72599
72600         2006-03-11  Eric Blake  <ebb9@byu.net>
72601
72602         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
72603         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
72604         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
72605         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
72606
72607 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72608
72609         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
72610         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
72611         reported by Mark D. Baushke, one in
72612         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
72613
72614         Merge from coreutils.
72615
72616         * lib/.cppi-disable: Add stdint_.h.
72617         * lib/.cvsignore: Add stdint.h.
72618
72619         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72620
72621         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
72622         both double and long double versions.
72623         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
72624         * lib/xstrtold.c: New file.
72625         * lib/xstrtod.h (xstrtold): New decl.
72626
72627         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72628
72629         * lib/filemode.c (setst): Remove.
72630         (strmode): Rewrite to avoid setst.  This makes the code shorter,
72631         (arguably) clearer, and the generated code is a bit smaller on my
72632         Debian GNU/Linux stable x86 host.
72633
72634         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72635
72636         * lib/filemode.c: Include "filemode.h" first, to test the interface.
72637         Assume that filemode.h includes sys/types.h and sys/stat.h.
72638         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
72639         (ftypelet): Reorder to put common cases first, for efficiency.
72640         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
72641         to do 'M'.
72642         (strmode): Renamed from mode_string, and now stores 12 bytes instead
72643         of 10, for compatibility with FreeBSD.  All callers changed.
72644         (filemodestring): Now stores 12 bytes instead of 10, and sets file
72645         types that can't be deduced solely from st_mode.  First arg is now a
72646         const pointer.
72647         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
72648         (strmode): Renamed from mode_string.
72649         (filemodestring): New decl.
72650         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
72651         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
72652         needed.
72653         (S_ISPORT, S_ISWHT): New macros, if not already defined.
72654
72655         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72656
72657         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
72658         fsusage.h now does that.  Include fsusage.h first, to test interface.
72659         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
72660         at most one method (the old code could have generated decls that
72661         didn't conform to C89, not that this was ever exercised).
72662         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
72663
72664         2006-03-19  Jim Meyering  <jim@meyering.net>
72665
72666         Work even in a chroot where d_ino values for entries in "/"
72667         don't match the stat.st_ino values for the same names.
72668         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
72669         number, iterate through all entries again, using lstat instead.
72670         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
72671         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
72672
72673         * lib/getcwd.c (__getcwd): Clarify a comment.
72674         Use memcpy in place of a call to strcpy.
72675
72676         2006-03-12  Jim Meyering  <jim@meyering.net>
72677
72678         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
72679         matches that of the current directory (which we're about to chdir ".."
72680         out of), then save the dev-ino of the parent, instead.
72681
72682         * lib/same-inode.h (SAME_INODE): New file/macro.
72683         * lib/chdir-safer.c (SAME_INODE): Remove definition.
72684         Include "same-inode.h", instead.
72685         * lib/same.c: Likewise.
72686         * lib/cycle-check.h: Include "same-inode.h".
72687         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
72688         * lib/cycle-check.c (SAME_INODE): Remove definition.
72689         * lib/root-dev-ino.h: Include "same-inode.h".
72690
72691         2006-03-11  Eric Blake  <ebb9@byu.net>
72692
72693         * lib/same.c (same_name): s/base_name/last_component/
72694         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
72695         * lib/filenamecat.c (file_name_concat): Likewise.
72696
72697         2006-03-11  Eric Blake  <ebb9@byu.net>,
72698                     Paul Eggert  <eggert@cs.ucla.edu>
72699
72700         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
72701         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
72702         drive prefix.
72703         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
72704         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
72705         (last_component): New method.
72706         * lib/dirname.c (dir_len): Determine when drive letters need a
72707         subsequent slash.  Preserve // when it is special.
72708         (dir_name): Don't append dot when drive letter is absolute.
72709         [TEST_DIRNAME]: Move into a full-blown gnulib test.
72710         * lib/basename.c (base_name): New semantics - malloc the result.
72711         Preserve // when it is special.  Preserve relative files that look
72712         like drive letters.
72713         (base_len): Preserve // when it is special.
72714         (last_component): New method, similar to old base_name semantics.
72715         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
72716         base_name.  Strip redundant slashes from ///.
72717
72718 2006-07-03  Jim Meyering  <jim@meyering.net>
72719
72720         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
72721         macro is used before the first cycle_check call.
72722
72723 2006-07-03  Eric Blake  <ebb9@byu.net>
72724
72725         * modules/dirname (Depends-on): Add xstrndup.
72726
72727 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72728
72729         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
72730         test cases, so that config.log is a bit easier to follow.
72731
72732 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72733
72734         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
72735         both are 64 bits, since this seems to be the tradition, and this
72736         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
72737         we ever run into a host that prefers long long to long in this
72738         case, we'll need another configure-time test.  Problem reported by
72739         Jim Meyering.
72740
72741 2006-07-02  Eric Blake  <ebb9@byu.net>
72742
72743         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
72744
72745 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72746
72747         * modules/inttypes (Depends-on): No longer depends on stdint.
72748         * modules/stdint (Description): Say more about assumptions.
72749         Say that the fast types might differ.  Say macros are used.
72750         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
72751         (Makefile.am): Revise list of substituted symbols to match
72752         new stdint.m4.
72753         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
72754         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
72755         * tests/test-stdint.c (verify_same_types)
72756         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
72757         the code conforms to C99/C89.
72758         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
72759         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
72760
72761 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72762
72763         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
72764         but fix a bug, by requiring at least 64 bits.
72765         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
72766         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
72767         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
72768         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72769
72770         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
72771         changes.  Make 2.59 a prerequisite.  Check and substitute for
72772         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
72773         inttypes.h.  Do not use special include files; just use the
72774         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
72775         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
72776         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
72777         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
72778         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
72779         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
72780         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
72781         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
72782         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
72783         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
72784         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
72785         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
72786         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
72787         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
72788         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
72789         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
72790         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
72791         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
72792         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
72793         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
72794         WINT_MAX.  Check for C99 conformance more strictly, by detecting
72795         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
72796         not check for things that C99 does not require, e.g., int8_t.  If
72797         a test isn't needed unless <stdint.h> isn't working, and is
72798         unlikely to be needed for any other reason, then don't do it
72799         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
72800         size_t, since we assume C89 freestanding at least.  Do not check
72801         for sig_atomic_t, wchar_t, or wint_t, since the code now does
72802         the right thing even if the types are not defined.  Instead use:
72803         (gl_STDINT_TYPE_PROPERTIES): New macro.
72804         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
72805         testing whether <sys/types.h> clashes, as Autoconf does this for
72806         us now.  All uses removed.
72807         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
72808         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
72809         (gl_CHECK_TYPE_SAME):
72810         Remove; no longer needed.
72811         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
72812         exists, since we'll return 0 anyway in that case.
72813         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
72814
72815 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72816
72817         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
72818         possible collision with system files.
72819         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
72820         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
72821         WCHAR_MIN and WCHAR_MAX in this case.
72822         (<stddef.h>): Do not include; no longer needed.
72823         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
72824         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
72825         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
72826         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
72827         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
72828         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
72829         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
72830         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
72831         !defined(__c99))]: Include in this case too, since it's harmless
72832         now.
72833         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
72834         dangerous to do so.
72835         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
72836         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
72837         (_STDINT_MIN, _STDINT_MAX): New macros.
72838         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
72839         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
72840         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
72841         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
72842         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
72843         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
72844         macros, not typedefs; this simplifies things quite a bit.
72845         Use long int for all types narrower than int64_t.
72846         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
72847         Define in terms of long long int or int64_t or long int,
72848         not int64_t or int32_t.  This saves some compile-time testing.
72849         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
72850         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
72851         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
72852         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
72853         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
72854         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
72855         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
72856         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
72857         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
72858         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
72859         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72860         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72861         undef any previous version and define our own version, for
72862         simplicity and consistency with the new macros for types.
72863         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72864         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72865         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
72866         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
72867         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
72868         @WINT_T_SUFFIX@ to keep things simple here.
72869         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
72870         Simplify by assuming typical 8/16/32/64 host, since we're
72871         already doing that elsewhere anyway.
72872         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
72873         and assume long long int is 64 bits if available.  This
72874         speeds up 'configure'.
72875
72876 2006-07-01  Eric Blake  <ebb9@byu.net>
72877
72878         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
72879         Reported by Andreas Buening.
72880
72881 2006-07-01  Eric Blake  <ebb9@byu.net>
72882
72883         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
72884
72885 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72886
72887         * lib/getaddrinfo.c: fixed typo
72888
72889 2006-06-29  Jim Meyering  <jim@meyering.net>
72890
72891         * modules/strftime (Maintainer): Add my name, since with the
72892         FPRINTFTIME changes strftime.c has forked from glibc.
72893
72894 2006-06-29  Eric Blake  <ebb9@byu.net>
72895
72896         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
72897
72898 2006-06-29  Eric Blake  <ebb9@byu.net>
72899
72900         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
72901
72902 2006-06-29  Eric Blake  <ebb9@byu.net>
72903
72904         * lib/stat_.h: New file.
72905
72906 2006-06-29  Eric Blake  <ebb9@byu.net>
72907
72908         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
72909         unused static function.
72910
72911 2006-06-29  Eric Blake  <ebb9@byu.net>
72912
72913         * doc/functions.texi (Function Portability): Document missing lstat
72914         on mingw.
72915
72916 2006-06-29  Eric Blake  <ebb9@byu.net>
72917
72918         * MODULES.html.sh: Add sys_stat.
72919         * modules/sys_stat: New module.
72920         * modules/mkstemp (Depends-on): Add sys_stat.
72921
72922 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72923
72924         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
72925
72926 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72927
72928         * m4/c-bs-a.m4: Removed.
72929
72930 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72931
72932         * lib/strftime.c: Assume strftime() exists.
72933
72934 2006-06-29  Derek Price  <derek@ximbiot.com>
72935
72936         * modules/c-bs-a: Removed - \a is C89.
72937         * MODULES.html.sh: Remove c-bs-a.
72938
72939 2006-06-29  Bruno Haible  <bruno@clisp.org>
72940
72941         * modules/wcwidth (License): Change to LGPL.
72942
72943 2006-06-28  Simon Josefsson  <jas@extundo.com>
72944
72945         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
72946         on _WIN32.
72947
72948         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
72949         getnameinfo.
72950
72951 2006-06-28  Simon Josefsson  <jas@extundo.com>
72952
72953         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
72954
72955 2006-06-28  Simon Josefsson  <jas@extundo.com>
72956
72957         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
72958         functions there.  It will succeed on Windows XP, but on Windows
72959         2000 and (presumably) earlier, it will fail, and use the internal
72960         re-implementation.
72961         (use_win32_p): New function.
72962         (getaddrinfo): Use strtoul on servname, to support numeric ports.
72963         Support AI_NUMERICSERV to disable getservbyname.
72964         (getnameinfo): New function, only supports
72965         NI_NUMERICHOST|NI_NUMERICSERV for now.
72966
72967         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
72968         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
72969         getnameinfo.
72970
72971 2006-06-28  Eric Blake  <ebb9@byu.net>
72972
72973         * modules/wcwidth: New file.
72974         * modules/mbchar (Depends-on): Add wcwidth.
72975         * modules/mbswidth (Depends-on): Add wcwidth.
72976         * MODULES.html.sh: Add wcwidth.
72977
72978 2006-06-28  Eric Blake  <ebb9@byu.net>
72979
72980         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
72981         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
72982
72983 2006-06-28  Eric Blake  <ebb9@byu.net>
72984
72985         * lib/xvasprintf.h: Fix comments.
72986
72987 2006-06-28  Eric Blake  <ebb9@byu.net>
72988
72989         * lib/mbchar.h (wcwidth): Include wcwidth.h.
72990         * lib/mbswidth.c (wcwidth): Move from here...
72991         * lib/wcwidth.h: ...to this new file.
72992
72993 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72994
72995         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
72996
72997         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
72998         it's obsolete.
72999         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
73000
73001 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73002
73003         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
73004         Autoconf 2.60 says this stuff was obsolete.
73005
73006 2006-06-28  Bruno Haible  <bruno@clisp.org>
73007
73008         * modules/wcwidth (Files): Add m4/wchar_t.m4.
73009
73010 2006-06-28  Bruno Haible  <bruno@clisp.org>
73011
73012         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
73013         gt_TYPE_WCHAR_T.
73014
73015 2006-06-28  Bruno Haible  <bruno@clisp.org>
73016
73017         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
73018         declaration for wcwidth.
73019         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
73020
73021 2006-06-28  Bruno Haible  <bruno@clisp.org>
73022
73023         * lib/mkdtemp.c [MINGW]: Include <io.h>.
73024         (mkdir): Define using _mkdir.
73025
73026 2006-06-28  Bruno Haible  <bruno@clisp.org>
73027
73028         * lib/getaddrinfo.h: Fix POSIX URL.
73029         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
73030         _WIN32.
73031         (use_win32_p): Make static.
73032         (getaddrinfo): Reject service name if it is empty or does not consist
73033         solely of decimal digits, or if its value is > 65535.
73034         (getnameinfo): Remove useless casts.
73035
73036 2006-06-27  Simon Josefsson  <jas@extundo.com>
73037
73038         * modules/sys_select: New file, suggested by Bruno Haible, Paul
73039         Eggert and Martin Lambers.
73040
73041 2006-06-27  Simon Josefsson  <jas@extundo.com>
73042
73043         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
73044         Eggert and Martin Lambers.
73045
73046 2006-06-27  Bruno Haible  <bruno@clisp.org>
73047
73048         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
73049         result to 0, not to empty.
73050         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
73051
73052 2006-06-27  Bruno Haible  <bruno@clisp.org>
73053
73054         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
73055
73056 2006-06-26  Simon Josefsson  <jas@extundo.com>
73057
73058         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
73059         present.
73060
73061 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
73062
73063         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
73064         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
73065         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
73066
73067 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
73068
73069         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
73070
73071 2006-06-26  Bruno Haible  <bruno@clisp.org>
73072
73073         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
73074
73075 2006-06-26  Bruno Haible  <bruno@clisp.org>
73076
73077         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
73078
73079 2006-06-26  Bruno Haible  <bruno@clisp.org>
73080
73081         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
73082         SGI C compiler in pre-C99 mode.
73083         Suggested by Mark D. Baushke and Larry Jones.
73084
73085 2006-06-26  Bruno Haible  <bruno@clisp.org>
73086
73087         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
73088         WCHAR_MAX.
73089         Reported by Mark D. Baushke and Larry Jones.
73090
73091 2006-06-26  Bruno Haible  <bruno@clisp.org>
73092
73093         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
73094         in pre-C99 mode.
73095         Suggested by Mark D. Baushke and Larry Jones.
73096
73097 2006-06-23  Simon Josefsson  <jas@extundo.com>
73098             Bruno Haible  <bruno@clisp.org>
73099
73100         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
73101         Emit mostlyclean-local rule.
73102         (func_emit_tests_Makefile_am): Likewise.
73103         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
73104
73105 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
73106
73107         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
73108
73109 2006-06-23  Bruno Haible  <bruno@clisp.org>
73110
73111         * tests/test-stdint.c: Update to match ISO C 99 Technical
73112         Corrigendum 1.
73113
73114 2006-06-23  Bruno Haible  <bruno@clisp.org>
73115
73116         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
73117
73118 2006-06-23  Bruno Haible  <bruno@clisp.org>
73119
73120         * lib/stdint_.h: Treat IRIX like OpenBSD.
73121
73122 2006-06-23  Bruno Haible  <bruno@clisp.org>
73123
73124         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
73125         ISO C 99 Technical Corrigendum 1.
73126
73127 2006-06-22  Simon Josefsson  <jas@extundo.com>
73128
73129         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
73130         MinGW.
73131
73132 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73133
73134         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
73135         needed.  Some compiler complained about some of them.  Problem reported
73136         by Larry Jones in
73137         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
73138
73139 2006-06-21  Simon Josefsson  <jas@extundo.com>
73140
73141         * tests/test-getaddrinfo.c: New file.
73142
73143         * modules/getaddrinfo-tests: New file.
73144
73145         * MODULES.html.sh: Add inet_pton.
73146
73147         * modules/inet_pton: New file.
73148
73149 2006-06-21  Simon Josefsson  <jas@extundo.com>
73150
73151         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
73152         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
73153         of using the (limited) gnulib implementation on Windows XP.
73154
73155         * m4/inet_pton.m4: New file.
73156
73157 2006-06-21  Simon Josefsson  <jas@extundo.com>
73158
73159         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
73160         variable.
73161
73162         * lib/socket_.h: Don't define WINVER.
73163
73164         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
73165         slightly modified to work in gnulib.
73166
73167 2006-06-21  Simon Josefsson  <jas@extundo.com>
73168
73169         * doc/gnulib.texi (Windows sockets): Add.
73170
73171 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
73172
73173         * lib/read-file.c (fread_file): Start with buffer allocation of
73174         0 bytes rather than 1 byte; this simplifies the code.
73175         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
73176         code to free buffer and save/restore errno.
73177         (internal_read_file): Remove unused local.
73178
73179 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
73180
73181         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
73182         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
73183         Problem reported by Denis Excoffier in
73184         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
73185
73186 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73187
73188         * modules/sys_socket, modules/socklen: Include sys/types since
73189         FreeBSD 4.x's sys/socket.h needs it.
73190
73191 2006-06-19  Simon Josefsson  <jas@extundo.com>
73192
73193         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
73194
73195 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73196
73197         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
73198
73199 2006-06-19  Bruno Haible  <bruno@clisp.org>
73200
73201         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
73202         and FULL_PATH_INTTYPES_H in angle brackets.
73203         Reported by Mark D. Baushke <mdb@gnu.org>.
73204
73205 2006-06-17  Eric Blake  <ebb9@byu.net>
73206
73207         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
73208         errno.
73209
73210 2006-06-17  Bruno Haible  <bruno@clisp.org>
73211
73212         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
73213         <sys/inttypes.h>.
73214
73215 2006-06-17  Bruno Haible  <bruno@clisp.org>
73216
73217         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
73218         whether errno is declared. Assume <errno.h> declares errno.
73219
73220 2006-06-17  Bruno Haible  <bruno@clisp.org>
73221
73222         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
73223
73224 2006-06-17  Bruno Haible  <bruno@clisp.org>
73225
73226         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
73227         problem on Solaris 2.5.1.
73228
73229 2006-06-16  Eric Blake  <ebb9@byu.net>
73230
73231         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
73232         * lib/unicodeio.c [!defined errno]: Likewise.
73233         * lib/strtol.c [!defined errno]: Likewise.
73234         * lib/strtod.c [!defined errno]: Likewise.
73235
73236 2006-06-15  Eric Blake  <ebb9@byu.net>
73237
73238         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
73239
73240 2006-06-15  Eric Blake  <ebb9@byu.net>
73241
73242         * config/srclist.txt (ssize_t.m4): Lose sync.
73243
73244 2006-06-15  Bruno Haible  <bruno@clisp.org>
73245
73246         * modules/stdint (Files): Include m4/full-header-path.m4,
73247         m4/size_max.m4, m4/wchar_t.m4.
73248         (Makefile.am): Many more substitutions.
73249         * modules/stdint-tests: New file.
73250         * tests/test-stdint.c: New file.
73251
73252 2006-06-15  Bruno Haible  <bruno@clisp.org>
73253
73254         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
73255         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
73256         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
73257         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
73258         gl_CHECK_TYPE_SAME): New macros.
73259
73260 2006-06-15  Bruno Haible  <bruno@clisp.org>
73261
73262         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
73263
73264 2006-06-15  Bruno Haible  <bruno@clisp.org>
73265
73266         * lib/stdint_.h: Rewritten to be fully auto-configured.
73267         Fixes bug on HP-UX/IA64.
73268
73269 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
73270
73271         * lib/getdate.y (__attribute__): Don't define if already defined.
73272         Problem reported by Larry Jones.
73273         * lib/utimens.c (__attribute__): Likewise.
73274
73275 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
73276
73277         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
73278         reported by Andreas Schwab.
73279
73280 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73281             Bruno Haible  <bruno@clisp.org>
73282
73283         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
73284         check for the declaration of strnlen and a run test that exposes the
73285         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
73286         rpl_strndup.
73287
73288 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73289             Bruno Haible  <bruno@clisp.org>
73290
73291         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
73292
73293 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73294
73295         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
73296         compile test, for Tru64 4.0D.
73297
73298 2006-05-28  Karl Berry  <karl@gnu.org>
73299
73300         * config/srclist.txt (printf-args.c): lose sync.
73301
73302 2006-05-26  Martin Lambers  <marlam@marlam.de>
73303
73304         * lib/getpass.c: Updates the test for the native W32 API, and adds
73305         missing includes, thus fixing compilation warnings.
73306
73307 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73308
73309         * lib/exclude.c (exclude_fnmatch): New function.
73310         (excluded_file_name): Call exclude_fnmatch.
73311         * lib/exclude.h (excluded_file_name): New prototype
73312
73313 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
73314
73315         * lib/tempname.c (small_open, large_open): New macros.
73316         (__open, __open64) [!_LIBC]: Remove.
73317         (__gen_tempname): Use small_open and large_open instead of __open
73318         and __open64.  This fixes a portability bug on HP-UX 11.11i
73319         reported by Simon Wing-Tang in
73320         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
73321
73322 2006-05-24  Bruno Haible  <bruno@clisp.org>
73323
73324         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
73325         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
73326         Reported by Thorsten Maerz <torte@netztorte.de> via
73327         Aaron Stone <aaron@serendipity.cx>.
73328
73329 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73330
73331         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
73332         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
73333         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
73334         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
73335         not really conditional on the cache.
73336         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
73337
73338 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73339
73340         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
73341         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
73342         (my_usleep): Don't mishandle maximum value.
73343
73344 2006-05-19  Jim Meyering  <jim@meyering.net>
73345
73346         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
73347
73348 2006-05-17  Bruno Haible  <bruno@clisp.org>
73349
73350         Cygwin portability.
73351         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
73352
73353 2006-05-17  Bruno Haible  <bruno@clisp.org>
73354
73355         * lib/stdint_.h: Fix recognition of Cygwin.
73356
73357 2006-05-15  Bruno Haible  <bruno@clisp.org>
73358
73359         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
73360         on libtool patch by Ralf Wildenhues.
73361
73362 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73363
73364         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
73365         test for C99 conformance; (bool) 0.5 is an integer constant
73366         expression, but (bool) -0.5 is not.  Problem reported by Fedor
73367         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
73368
73369 2006-05-11  Simon Josefsson  <jas@extundo.com>
73370
73371         * m4/xvasprintf.m4: Fix obvious typo.
73372
73373 2006-05-11  Jim Meyering  <jim@meyering.net>
73374
73375         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
73376         James Lemley.
73377
73378 2006-05-10  Simon Josefsson  <jas@extundo.com>
73379
73380         * lib/md4.c: Typo fix, update copyright years.
73381         (K1, K2): Don't use L because it turn computations into 64-bit on
73382         64-bit platforms.
73383
73384 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
73385
73386         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
73387         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
73388         unwanted sign propagation, e.g., on hosts with 64-bit int.
73389         There still are some problems with reeelly weird theoretical hosts
73390         (e.g., 33-bit int) but it's not worth worrying about now.
73391         * lib/sha1.c (rol): Likewise.
73392         (K1, K2, K3, K4): Remove unnecessary L suffix.
73393
73394 2006-05-10  Bruno Haible  <bruno@clisp.org>
73395
73396         * lib/des.c: Cast to avoid warnings.
73397
73398 2006-05-09  Bruno Haible  <bruno@clisp.org>
73399
73400         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
73401         (Depends-on): Depend also on xsize, stdarg.
73402         (configure.ac): Add gl_XVASPRINTF.
73403
73404 2006-05-09  Bruno Haible  <bruno@clisp.org>
73405
73406         * m4/xvasprintf.m4: New file.
73407
73408 2006-05-09  Bruno Haible  <bruno@clisp.org>
73409
73410         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
73411         (EOVERFLOW): Define fallback value.
73412         (xstrcat): New function.
73413         (xvasprintf): Recognize the special case of a string concatenation.
73414
73415 2006-05-08  Eric Blake  <ebb9@byu.net>
73416
73417         * gnulib-tool (func_version): Base copyright year on CVS date.
73418         (func_emit_copyright_notice): New function.
73419         (func_emit_lib_Makefile_am): Use it.
73420         (func_emit_tests_Makefile_am): Likewise.
73421         (func_import): Likewise.
73422
73423 2006-05-08  Bruno Haible  <bruno@clisp.org>
73424
73425         * modules/stdarg: New file.
73426         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
73427
73428 2006-05-08  Bruno Haible  <bruno@clisp.org>
73429
73430         * m4/stdarg.m4: New file, from GNU gettext.
73431
73432 2006-05-08  Bruno Haible  <bruno@clisp.org>
73433
73434         * config/srclist.txt (build-aux/config.rpath): different from latest
73435         release.
73436
73437 2006-05-08  Bruno Haible  <bruno@clisp.org>
73438
73439         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
73440
73441 2006-05-05  Jim Meyering  <jim@meyering.net>
73442
73443         * m4/warning.m4: New file, derived from bison's file by the same name.
73444
73445 2006-05-03  Bruno Haible  <bruno@clisp.org>
73446
73447         * lib/stdint_.h: Shorter URL.
73448         * lib/inttypes.h: Likewise.
73449
73450 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73451
73452         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
73453
73454 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73455
73456         * lib/verify.h: Document the internals better.  Most of this change
73457         was written by Bruno Haible.
73458
73459 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73460
73461         * doc/verify.texi: New file, partly based on a proposal by
73462         Bruno Haible.
73463
73464 2006-05-02  Bruno Haible  <bruno@clisp.org>
73465
73466         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
73467         test from here...
73468         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
73469
73470 2006-04-29  Bruno Haible  <bruno@clisp.org>
73471
73472         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
73473         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
73474
73475 2006-04-29  Bruno Haible  <bruno@clisp.org>
73476
73477         * gnulib-tool: Make --update option actually work.
73478
73479 2006-04-29  Bruno Haible  <bruno@clisp.org>
73480
73481         * doc/gcd.texi: New file.
73482         * doc/gnulib.texi: Include it.
73483
73484 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
73485
73486         * lib/getdate.y (get_date): When adding relative date, start with the
73487         initial time, not with the result of the first mktime call.
73488
73489 2006-04-25  Bruno Haible  <bruno@clisp.org>
73490
73491         * gnulib-tool (func_import): Output the include directives in three
73492         blocks, sorted separately.
73493         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73494
73495 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73496
73497         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
73498         to define main with arguments, for C++.  Reported by Eric Blake.
73499         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
73500         Prefer 'int main ()' to 'int main (void)', for C++.
73501         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
73502         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
73503         for 'main', for C99 and C++.
73504
73505 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73506
73507         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
73508         Don't assume that exit status -1 is valid.
73509         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73510         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
73511         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
73512         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
73513         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
73514         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
73515         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
73516         functions can be used without declaring them, or that you can
73517         exit with status -1.
73518         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
73519
73520 2006-04-24  Karl Berry  <karl@gnu.org>
73521
73522         * config/srclist.txt (longdouble.m4): sync lost.
73523
73524 2006-04-24  Eric Blake  <ebb9@byu.net>
73525
73526         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
73527
73528 2006-04-24  Bruno Haible  <bruno@clisp.org>
73529
73530         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
73531         poll() implementation in AIX.
73532         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73533
73534 2006-04-24  Bruno Haible  <bruno@clisp.org>
73535
73536         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
73537         assigned exactly once.
73538
73539 2006-04-23  Claudio Fontana  <claudio@gnu.org>
73540             Bruno Haible  <bruno@clisp.org>
73541
73542         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
73543         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
73544         for AM_CPPFLAGS.
73545
73546 2006-04-23  Bruno Haible  <bruno@clisp.org>
73547
73548         * modules/copy-file: Depend on unistd.
73549         * modules/execute: Likewise.
73550         * modules/fatal-signal: Likewise.
73551         * modules/findprog: Likewise.
73552         * modules/mkdtemp : Likewise.
73553         * modules/pipe: Likewise.
73554         * modules/wait-process: Likewise.
73555
73556 2006-04-23  Bruno Haible  <bruno@clisp.org>
73557
73558         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
73559         condition was already detected.
73560         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73561
73562 2006-04-23  Bruno Haible  <bruno@clisp.org>
73563
73564         * lib/copy-file.c: Include <unistd.h> unconditionally.
73565         * lib/execute.c: Likewise.
73566         * lib/fatal-signal.c: Likewise.
73567         * lib/findprog.c: Likewise.
73568         * lib/mkdtemp.c: Likewise.
73569         * lib/pipe.h: Likewise.
73570         * lib/pipe.c: Likewise.
73571         * lib/wait-process.h: Likewise.
73572
73573 2006-04-23  Bruno Haible  <bruno@clisp.org>
73574
73575         * gnulib-tool (func_usage): Fix --import description. Document
73576         --update.
73577         (func_import): Create temporary file in a temporary directory, if
73578         --dry-run is specified. Silence errors from 'grep' when there are no
73579         m4 files in $m4dir.
73580         (func_create_testdir): Silence errors from 'grep' when there are no
73581         m4 files in $m4dir.
73582         Reported by Karl Berry <karl@freefriends.org>.
73583
73584 2006-04-20  Bruno Haible  <bruno@clisp.org>
73585
73586         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
73587         one argument, so that the code will be portable to Autoconf 2.60.
73588         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
73589         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73590         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
73591
73592 2006-04-19  Derek Price  <derek@ximbiot.com>
73593             Eric Blake  <ebb9@byu.net>
73594
73595         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
73596         rather than "/full/path.h".  Update comment to match.  Shorten &
73597         generalize m4_translit call via AS_TR_CPP.
73598
73599 2006-04-19  Derek Price  <derek@ximbiot.com>
73600             Eric Blake  <ebb9@byu.net>
73601
73602         * lib/inttypes.h: Correct grammar in comment.
73603
73604 2006-04-18  Derek Price  <derek@ximbiot.com>
73605             Paul Eggert  <eggert@cs.ucla.edu>
73606
73607         * modules/inttypes: New file.
73608         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
73609
73610 2006-04-18  Derek Price  <derek@ximbiot.com>
73611             Paul Eggert  <eggert@cs.ucla.edu>
73612
73613         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
73614         New files.
73615
73616 2006-04-18  Derek Price  <derek@ximbiot.com>
73617             Paul Eggert  <eggert@cs.ucla.edu>
73618
73619         * lib/inttypes.h: New file.
73620         * lib/strtoimax.c: Assume <inttypes.h>.
73621
73622 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
73623
73624         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
73625         isn't mounted.  Problem reported by Kir Kolyshkin.
73626
73627 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73628
73629         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
73630         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
73631         Derek R. Price.
73632         * lib/regex.h (RE_DUP_MAX): Update comment to match current
73633         implementation.
73634
73635 2006-04-12  Eric Blake  <ebb9@byu.net>
73636
73637         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
73638         is now done automatically by the corresponding Autoconf macro.
73639
73640 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
73641
73642         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
73643         time_r.h.
73644
73645 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73646
73647         Merge regex changes from libc, removing some of our
73648         POSIX-conformance changes that were rejected and redoing them in a
73649         less-intrusive way.
73650
73651         * lib/regcomp.c (re_compile_internal, init_dfa):
73652         Length arg is now size_t, not Idx.  All uses changed.
73653         (peek_token): Forward decl now says internal_function.
73654         (__re_error_msgid, __re_error_msgid_idx):
73655         Now static rather than extern with attribute_hidden.
73656         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
73657         For some reason libc prefers K&R style defns for external functions.
73658         (regerror) [!defined _LIBC]: Likewise.
73659         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
73660         (seek_collating_symbol_entry, lookup_collation_sequence_value):
73661         (build_range_exp, build_collating_symbol):
73662         Use K&R-style defn.
73663         (re_compile_fastmap): Use '\0' to memset, not 0.
73664         (utf8_sb_map): Make the calculations more obvious.
73665         (init_dfa, parse_bracket_exp, build_charclass_op):
73666         Call calloc and cast result, as glibc does.
73667         (init_word_char, fetch_token, peek_token, peek_token_bracket):
73668         (build_range_exp, build_collating_symbol):
73669         Now internal functions.
73670
73671         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
73672
73673         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
73674         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
73675         Don't depend on VMS; depend on __VMS instead, for POSIX
73676         namespace cleanness.
73677         (regoff_t): Define to ssize_t, not long int.
73678
73679         Remove the REG_ macros named below.  Instead, make the old names
73680         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
73681         __USE_GNU_REGEX.
73682         (REG_BACKSLASH_ESCAPE_IN_LISTS):
73683         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
73684         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
73685         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
73686         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
73687         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
73688         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
73689         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
73690         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
73691         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
73692         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
73693         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
73694         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
73695         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
73696         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
73697         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
73698         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
73699         (REG_NREGS):
73700         Remove.  All uses replaced by the old RE_* names.
73701         (RE_BACKSLASH_ESCAPE_IN_LISTS):
73702         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
73703         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
73704         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
73705         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
73706         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
73707         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
73708         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
73709         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
73710         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
73711         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
73712         Don't bother having these macros be independent of each others'
73713         values, since they no longer exist in the POSIX name space.
73714
73715         Rename the following member names back to their old names,
73716         unless !__USE_GNU_REGEX.  All uses changed back.
73717         (buffer): Renamed from re_buffer.
73718         (allocated): Renamed from re_allocated.
73719         (used): Renamed from re_used.
73720         (syntax): Renamed from re_syntax.
73721         (fastmap): Renamed from re_fastmap.
73722         (translate): Renamed from re_translate.
73723         (can_be_null): Renamed from re_can_be_null.
73724         (regs_allocated): Renamed from re_regs_allocated.
73725         (fastmap_accurate): Renamed from re_fastmap_accurate.
73726         (no_sub): Renamed from re_no_sub.
73727         (not_bol): Renamed from re_not_bol.
73728         (not_eol): Renamed from re_not_eol.
73729         (newline_anchor): Renamed from re_newline_anchor.
73730         (num_regs): Renamed from rm_num_regs.
73731         (start): Renamed from rm_start.
73732         (end): Renamed from rm_end.
73733
73734         (free_state): Move up a bit.
73735
73736         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
73737         #define to be empty.
73738         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
73739         when that is what is intended.
73740         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
73741         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
73742         (MAX): New macro.
73743         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
73744         All uses changed back to re_malloc, etc.  It's now the caller's
73745         responsibility to check for overflow; all callers changed.
73746         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
73747         (re_x2nrealloc): Remove.
73748         (free_state): Remove decl.
73749
73750         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
73751         (re_set_registers, re_exec):
73752         Use K&R-style defn.
73753
73754         2006-01-31  Roland McGrath  <roland@redhat.com>
73755
73756         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
73757         Reported by Mike Frysinger <vapier@gentoo.org>.
73758
73759         2006-01-15  Andreas Jaeger  <aj@suse.de>
73760
73761         [BZ #1950]
73762         * lib/regex_internal.c (re_string_reconstruct): Adjust for
73763         build_wcs_upper_buffer change.
73764         (build_wcs_upper_buffer): Change return type.
73765
73766         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
73767
73768         * lib/regex_internal.h: Include <stdint.h> if available.
73769
73770         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
73771
73772         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
73773
73774         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73775
73776         * lib/regcomp.c: Adjust for changed secondary hash function.
73777
73778         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
73779
73780         * lib/regex.h: Pretty printing.
73781         Clean up namespace a bit.
73782
73783         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
73784
73785         * lib/regexec.c (update_cur_sifted_state, check_arrival,
73786         check_arrival_add_next_nodes): Avoid using uninitialized variable.
73787
73788         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73789                     Ulrich Drepper  <drepper@redhat.com>
73790
73791         [BZ #1302]
73792         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
73793         changed.
73794         (bitset_word_t): Renamed from bitset_word.  All uses changed.
73795
73796         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
73797
73798         [BZ #281]
73799         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
73800         * lib/regcomp.c: Remove unnecessary uses of
73801         unsigned RE_TRANSLATE_TYPE.
73802         * lib/regex_internal.h: Likewise.
73803         * lib/regex_internal.c: Likewise.
73804         * lib/regexec.c: Likewise.
73805         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
73806
73807         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
73808
73809         * lib/regexec.c (find_recover_state): Remove unnecessary
73810         initialization.
73811         (transit_state_bkref): Make DFA a const pointer.
73812         (get_subexp): Likewise.
73813         (check_arrival): Likewise.
73814         (update_cur_sifted_state): Likewise.
73815         (re_search_internal): Likewise.
73816         (prune_impossible_nodes): Likewise.
73817         (acquire_init_state_context): Likewise.
73818         (proceed_next_node): Likewise.
73819         (set_regs): Likewise.
73820         (free_fail_stack_return): Likewise.
73821         (check_arrival_expand_ecl): Mark DFA parameter as const.
73822         (check_arrival_expand_ecl_sub): Likewise.
73823         (check_subexp_limits): Likewise.
73824         (sub_epsilon_src_nodes):  Likewise.
73825         (add_epsilon_src_nodes):  Likewise.
73826         (merge_state_array): Likewise.
73827         (update_regs): Likewise.
73828         (build_trtable): Likewise.
73829         (sift_states_backward): Mark MCTX parameter as const.
73830         (build_sifted_states): Likewise.
73831         (update_cur_sifted_state): Likewise.
73832         (sift_states_mkref): Likewise.
73833         (check_arrival_expand_ecl): Mark eclosure as const.
73834         (check_dst_limits_calc_pos_1): Likewise.
73835         * lib/regex_internal.h (re_match_context_t): Make dfa a const
73836         pointer.
73837
73838         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
73839
73840         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
73841         (transit_state_sb): Likewise.
73842         (transit_state_mb): Likewise.
73843         (sift_states_iter_mb): Likewise.
73844         (check_arrival_add_next_nodes): Likewise.
73845         (check_node_accept_bytes): Change first parameter to pointer-to-const.
73846         [_LIBC] (re_search_2_stub): Use mempcpy.
73847
73848         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
73849         mbrtowc for very simple UTF-8 case.
73850
73851         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
73852         a pointer-to-const.
73853         (re_acquire_state_context): Likewise.
73854         * lib/regex_internal.h: Adjust prototypes.
73855
73856         * lib/regex.c: Prevent using C++ compilers.
73857
73858         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
73859         (re_acquire_state_context): Likewise.
73860
73861 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73862
73863         * modules/regex (Depends-on): Add ssize_t.
73864
73865 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73866
73867         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
73868         translation table.
73869
73870 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73871
73872         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
73873
73874 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
73875             Bruno Haible  <bruno@clisp.org>
73876
73877         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
73878         <sys/types.h> and <inttypes.h>.
73879
73880 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73881
73882         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
73883         `__error_t_defined', so argp.h will not typedef the former.
73884
73885 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73886
73887         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
73888         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
73889         glibc names.  Even if glibc is changed to conform to POSIX, the
73890         traditional names will be available anyway, since regex depends on
73891         the extensions module.  Also, fix a longstanding typo in the
73892         implementation of Spencer ERE test #75 from grep 2.3.  Problems
73893         reported by Emanuele Giaquinta.  Also, change sense of cached
73894         variable, so that the message makes sense.
73895
73896 2006-03-24  Simon Josefsson  <jas@extundo.com>
73897
73898         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
73899         including some doc fixes.
73900         (base64_encode_alloc): Fix +1 bug on allocation failures.
73901
73902 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73903
73904         * lib/base64.c (base64_encode): Do not read past end of array with
73905         unsanitized input on systems with CHAR_BIT > 8.
73906
73907 2006-03-24  Eric Blake  <ebb9@byu.net>
73908
73909         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
73910
73911 2006-03-22  Karl Berry  <karl@gnu.org>
73912
73913         * config/srclist.txt (*setenv.[ch]): get from coreutils.
73914         * config/srclistvars.sh (COREUTILS): new var.
73915
73916 2006-03-17  Jim Meyering  <jim@meyering.net>
73917
73918         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
73919         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
73920
73921 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73922
73923         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
73924         no longer needs it.  Instead, check that regoff_t is as least
73925         as wide as ptrdiff_t.
73926
73927         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
73928         so that our regex.h stays compatible with the installed regex.
73929         This is helpful for installers who configure --without-included-regex.
73930         Problem reported by Emanuele Giaquinta.
73931
73932 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73933
73934         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
73935         Typedef to long int, not to off_, as POSIX will likely change
73936         in that direction.
73937
73938 2006-03-15  Eric Blake  <ebb9@byu.net>
73939
73940         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
73941
73942 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73943
73944         * lib/argp-help.c (validate_uparams): Fix typo
73945         * lib/argp-parse.c (argp_default_options): Consistently begin help
73946         messages with a lowercase letter.
73947
73948 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
73949
73950         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
73951         overrun buffers and shouldn't be used (much as gets shouldn't be
73952         used).
73953         * lib/time_r.c (asctime_r, ctime_r): Likewise.
73954
73955 2006-03-08  Simon Josefsson  <jas@extundo.com>
73956
73957         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
73958         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73959
73960 2006-03-08  Simon Josefsson  <jas@extundo.com>
73961
73962         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
73963         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73964
73965 2006-03-08  Simon Josefsson  <jas@extundo.com>
73966
73967         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
73968         signal that configure disabled the device.
73969
73970 2006-03-08  Simon Josefsson  <jas@extundo.com>
73971
73972         * build-aux/maint.mk: Fix refresh-po, to handle no translated
73973         languages.
73974
73975 2006-03-07  Simon Josefsson  <jas@extundo.com>
73976
73977         * modules/getopt (Depends-on): Add unistd.
73978
73979         * modules/unistd: New file.
73980
73981 2006-03-07  Simon Josefsson  <jas@extundo.com>
73982
73983         * modules/gc-random: New file.
73984
73985 2006-03-07  Simon Josefsson  <jas@extundo.com>
73986
73987         * m4/unistd_h.m4: New file.
73988
73989 2006-03-07  Simon Josefsson  <jas@extundo.com>
73990
73991         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
73992         test to be side-effect free by storing the result in the cache
73993         variable gl_cv_lib_readline, and moving the assignment of
73994         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
73995         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73996
73997 2006-03-07  Simon Josefsson  <jas@extundo.com>
73998
73999         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
74000         error on missing devices (the functions will return an error).
74001
74002         * m4/gc.m4: Move random stuff to gc-random.m4
74003
74004 2006-03-07  Simon Josefsson  <jas@extundo.com>
74005
74006         * lib/unistd_.h: New file.
74007
74008 2006-03-07  Simon Josefsson  <jas@extundo.com>
74009
74010         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
74011
74012 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74013
74014         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
74015         Problem reported by Juan Manuel Guerrero.
74016
74017 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74018
74019         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
74020         the unistd module.
74021         * lib/getlogin_r.c: Likewise.
74022         * lib/getlogin_r.h: Likewise.
74023         * lib/glob.c: Likewise.
74024         * lib/pagealign_alloc.c: Likewise.
74025         * lib/unistd_.h: Remove; no longer needed.
74026
74027 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74028
74029         * MODULES.html.sh (Support for systems lacking POSIX:2001):
74030         Add unistd.
74031         * modules/c-stack (Depends-on): Add unistd.
74032         * modules/getlogin_r: Likewise.
74033         * modules/glob: Likewise.
74034         * modules/pagealign_alloc: Likewise.
74035         * modules/unistd (Files): Remove lib/unistd_.h.
74036         (EXTRA_DIST): Remove.
74037         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
74038         need unistd_.h.
74039         (MOSTLYCLEANFILES): Remove unistd.h-t.
74040
74041 2006-03-03  Simon Josefsson  <jas@extundo.com>
74042
74043         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
74044
74045 2006-03-03  Simon Josefsson  <jas@extundo.com>
74046
74047         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
74048         libidn and bison.
74049
74050 2006-03-03  Simon Josefsson  <jas@extundo.com>
74051
74052         * build-aux/maint.mk: Add indent target.
74053
74054 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
74055
74056         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
74057         our replacement poll.h in any case, to avoid a differing
74058         declaration from a system header.  Seen on AIX.
74059
74060 2006-03-01  Simon Josefsson  <jas@extundo.com>
74061
74062         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
74063         <kasal@ucw.cz>.
74064
74065 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74066
74067         * modules/gettime (Depends-on): Add extensions module.
74068         * modules/nanosleep (Depends-on): Likewise.
74069         * modules/settime (Depends-on): Likewise.
74070
74071 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74072
74073         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
74074         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
74075         pedantically.
74076         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74077         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
74078
74079         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
74080         not "==".  Reported by Ralf Wildenhues.
74081
74082 2006-03-01  Karl Berry  <karl@gnu.org>
74083
74084         * doc/Copyright/request-*: new files, synced from gnuorg.
74085
74086 2006-03-01  Karl Berry  <karl@gnu.org>
74087
74088         * config/srclist.txt (Copyright/*): new entries.
74089
74090 2006-02-28  Simon Josefsson  <jas@extundo.com>
74091
74092         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
74093
74094 2006-02-27  Simon Josefsson  <jas@extundo.com>
74095
74096         * lib/base64.h: Indent #define's.  From Jim Meyering
74097         <jim@meyering.net>.
74098
74099 2006-02-27  Jim Meyering  <jim@meyering.net>
74100
74101         Revert the change of 2006-02-24, so these files can continue
74102         to be sync'd from gettext.
74103         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
74104         of `config.h'.
74105
74106 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74107
74108         * modules/intprops: New file.
74109         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
74110         Add intprops.
74111         * modules/getloadavg (Files): Remove lib/intprops.h.
74112         (Depends-on): Add intprops.
74113         * modules/human: Likewise.
74114         * modules/inttostr: Likewise.
74115         * modules/openat: Likewise.
74116         * modules/sig2str: Likewise.
74117         * modules/userspec: Likewise.
74118         * modules/utimecmp: Likewise.
74119         * modules/xnanosleep: Likewise.
74120         * modules/xstrtol: Likewise.
74121
74122 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
74123
74124         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
74125         * modules/lock-tests (TESTS): Use $(EXEEXT).
74126         * modules/tls-tests: Likewise.
74127         * modules/argp-tests: Likewise.
74128         (check_PROGRAMS): New var, replacing...
74129         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
74130
74131 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74132
74133         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
74134         `config.h'.
74135
74136 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
74137
74138         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
74139
74140 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74141
74142         Sync from coreutils.
74143         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
74144         gl_CHDIR_SAFER.
74145
74146 2006-02-22  Jim Meyering  <jim@meyering.net>
74147
74148         Sync from coreutils.
74149         * m4/chdir-safer.m4: New file.
74150
74151 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
74152
74153         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
74154         AT_FDCWD exceeds INT_MAX.
74155         * lib/openat.h (AT_FDCWD): Likewise.
74156
74157 2006-02-17  Eric Blake  <address@hidden>
74158
74159         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
74160
74161 2006-02-16  Simon Josefsson  <jas@extundo.com>
74162
74163         * modules/getaddrinfo (Depends-on): Add sys_socket.
74164
74165 2006-02-15  Simon Josefsson  <jas@extundo.com>
74166
74167         * build-aux/maint.mk: Add dsyntax-check rule.
74168
74169 2006-02-15  Eric Blake  <ebb9@byu.net>
74170
74171         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
74172         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
74173         'present but cannot compile' warnings on cygwin.
74174         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
74175         use ws2tcpip.h if sys/socket.h works.
74176         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
74177         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
74178
74179 2006-02-14  Simon Josefsson  <jas@extundo.com>
74180
74181         * modules/maintainer-makefile (Files): Rename.
74182
74183         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
74184         and (the local) Makefile.cfg to maint-cfg.mk.
74185
74186         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
74187         to the latter.
74188
74189         * modules/maintainer-makefile: New module.
74190
74191         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
74192         severaly stripped to make it possible to build it up from scratch
74193         with reliable tests.
74194
74195         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
74196         fixes to permit overriding the default actions when configure and
74197         makefile are not available.
74198
74199 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74200
74201         Sync from coreutils.
74202         * modules/lstat (Depends-on): Don't depend on xalloc.
74203         (License): Change from GPL to LGPL, since this is now simply a
74204         replacement for a libc function.
74205
74206 2006-02-14  Jim Meyering  <jim@meyering.net>
74207
74208         Sync from coreutils.
74209
74210         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
74211         failure on deficient systems, and simplify gnulib lgpl dependencies.
74212         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
74213         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
74214
74215         * lib/xalloc-die.c: Remove unused definition of N_.
74216
74217 2006-02-14  Jim Meyering  <jim@meyering.net>
74218
74219         Sync from coreutils.
74220         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
74221         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
74222         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
74223         double-quote uses of that variable, to accommodate the rare case in
74224         which getmntent is available in none of the libraries checked.  This
74225         happens at least on FreeBSD 5.0.
74226
74227 2006-02-13  Simon Josefsson  <jas@extundo.com>
74228
74229         * gnulib-tool (Usage): Fix --import, from
74230         karl@freefriends.org (Karl Berry).
74231
74232 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74233
74234         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
74235
74236 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
74237
74238         * lib/argp-namefrob.h: Restore changes accidentally lost during the
74239         "autoupdate" on 2005-12-12.
74240
74241 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74242
74243         * modules/closeout (Depends-on): Remove atexit.
74244
74245 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74246
74247         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
74248         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
74249
74250 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74251
74252         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
74253         __EXTENSIONS__ if this causes compilation to fail.  Problem
74254         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
74255         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
74256
74257 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
74258
74259         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
74260         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
74261         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
74262         All uses changed.
74263
74264 2006-01-26  Simon Josefsson  <jas@extundo.com>
74265
74266         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
74267         prototype is visible on mingw32.
74268
74269         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
74270         for mingw32.
74271
74272         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
74273         mingw32).
74274
74275 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74276
74277         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
74278         attempt to open for write; this always fails, at least on POSIX
74279         hosts.  This reinstates the 2006-01-09 change, which was
74280         inadvertently removed.
74281
74282 2006-01-26  Bruno Haible  <bruno@clisp.org>
74283
74284         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
74285         Reported by Paul Eggert.
74286
74287 2006-01-26  Bruno Haible  <bruno@clisp.org>
74288             Paul Eggert  <eggert@cs.ucla.edu>
74289
74290         * lib/stdbool_.h (_Bool)
74291         [(! (defined __cplusplus || defined __BEOS__)
74292           && !defined __GNUC__
74293           && !(defined __HP_cc || defined __xlc__
74294                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
74295                || defined __sgi))]:
74296         #define to signed char in these cases too; this simplifies
74297         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
74298         etc., separately) and makes it more conservative.
74299
74300 2006-01-25  Simon Josefsson  <jas@extundo.com>
74301
74302         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
74303         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
74304         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
74305
74306 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74307
74308         * lib/argp-namefrob.h: Bugfix. Remove stray #
74309
74310 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
74311
74312         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
74313         so that we test the test.
74314         Check for yet another HP-UX cc bug involving *bool |= bool.
74315
74316 2006-01-25  Karl Berry  <karl@gnu.org>
74317
74318         * config/srclist.txt (vasnprintf.c): sync lost.
74319
74320 2006-01-25  Jim Meyering  <jim@meyering.net>
74321
74322         Sync from the stable (b5) branch of coreutils:
74323
74324         * lib/fts.c (fts_children): Don't let close() clobber errno from
74325         failed fchdir().
74326
74327         * lib/fts.c (fts_stat): When following a symlink-to-directory,
74328         don't necessarily interpret stat-fails+lstat-succeeds as indicating
74329         a dangling symlink.  That can also happen at least for ELOOP.
74330         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
74331         FYI, this bug predates the inclusion of fts.c in coreutils.
74332
74333         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
74334         in their own block, so pre-c99 compilers don't object.
74335
74336         Avoid the double-free (first in fts_read, second in fts_close) that
74337         would occur when an `active' directory is made inaccessible (e.g.,
74338         via chmod a-x) during a traversal.
74339         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74340         before returning.  Reproduce this failure by
74341         mkdir -p a/b; cd a; chmod a-x . b
74342         Reported by Stavros Passas.
74343
74344 2006-01-25  Jim Meyering  <jim@meyering.net>
74345
74346         * lib/fileblocks.c: Remove more useless parentheses.
74347         * lib/readutmp.h: Likewise.
74348
74349 2006-01-25  Bruno Haible  <bruno@clisp.org>
74350
74351         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
74352         warnings.
74353         Reported by Paul Eggert.
74354
74355 2006-01-25  Bruno Haible  <bruno@clisp.org>
74356
74357         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
74358         rid of a trap command. For Solaris sh.
74359         Reported by Mark D. Baushke <mdb@gnu.org>.
74360
74361 2006-01-24  Simon Josefsson  <jas@extundo.com>
74362
74363         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
74364         Bruno.
74365
74366 2006-01-24  Karl Berry  <karl@gnu.org>
74367
74368         * config/srclist.txt (argp-namefrob.h): sync lost.
74369
74370 2006-01-24  Jim Meyering  <jim@meyering.net>
74371
74372         * modules/openat (Files): Add lib/intprops.h.
74373         From Mark D. Baushke.
74374
74375 2006-01-24  Jim Meyering  <jim@meyering.net>
74376
74377         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
74378         Reported by Mark D. Baushke.
74379
74380 2006-01-24  Jim Meyering  <jim@meyering.net>
74381
74382         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
74383
74384 2006-01-24  Bruno Haible  <bruno@clisp.org>
74385
74386         * modules/strnlen (Maintainer): Change from glibc to all.
74387
74388 2006-01-24  Bruno Haible  <bruno@clisp.org>
74389
74390         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
74391         Patch by Paul Eggert.
74392
74393 2006-01-24  Bruno Haible  <bruno@clisp.org>
74394
74395         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
74396         already has it.
74397         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
74398         2005-11-26.
74399
74400         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
74401         'signed char' to avoid problems with the built-in _Bool type.
74402         Reported by Paul Eggert on 2005-11-26.
74403
74404 2006-01-24  Bruno Haible  <bruno@clisp.org>
74405
74406         * gnulib-tool (func_import): Avoid constructing complicated sed
74407         expressions inside backquote.
74408         Report and solution by Mark D. Baushke <mdb@gnu.org>.
74409
74410 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
74411
74412         These changes imported from libc.
74413         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
74414         test and two separate function calls.
74415         * lib/strndup.c (__strndup): Add libc_hidden_def.
74416
74417 2006-01-23  Simon Josefsson  <jas@extundo.com>
74418
74419         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
74420         Remove the test_*_SOURCES variable: automake infers it by default.
74421         * modules/tls-tests: Likewise.
74422
74423 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74424
74425         Work around porting bugs reported by Dieter in
74426         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
74427         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
74428         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
74429         Include "getopt.h" first, to check interface.
74430         (getenv): Declare only if defined HAVE_DECL_GETENV &&
74431         !HAVE_DECL_GETENV.
74432         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
74433         (__strndup): Revert to K&R-style function dfns, the glibc style.
74434         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
74435         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
74436         Include strnlen.h first, to get prototype properly.
74437         (strnlen): Renamed from __strnlen.
74438         Remove weak alias.
74439
74440 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74441
74442         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
74443
74444 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74445
74446         * config/srclist.txt: Adjust to reflect glibc reorganization.
74447         This affects only comments.
74448
74449 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74450
74451          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
74452          Reported by Bruce Korb <bkorb@gnu.org>.
74453
74454 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74455
74456         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
74457         to pacify gcc -Wswitch-default.
74458
74459 2006-01-22  Bruno Haible  <bruno@clisp.org>
74460
74461         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
74462         temporary buffer for sprintf, take into account the precision also
74463         for 'd', 'i', 'u', 'o', 'x', 'X'.
74464
74465 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74466
74467         * modules/argp-tests: New module
74468         * tests/test-argp.c: New file
74469         * tests/test-argp-2.sh: New file
74470
74471 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74472
74473         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
74474         (__argp_base_name): Removed
74475         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
74476         typo.
74477         (__argp_base_name): Provide macro definition or extern declaration
74478         depending on the configuration
74479
74480 2006-01-20  Simon Josefsson  <jas@extundo.com>
74481
74482         * modules/inet_ntop (Depends-on): Depend on sys_socket.
74483
74484 2006-01-20  Simon Josefsson  <jas@extundo.com>
74485
74486         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
74487
74488 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74489
74490         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
74491         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
74492         Suggested by Bruno Haible.
74493
74494 2006-01-20  Karl Berry  <karl@gnu.org>
74495
74496         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
74497         until changes propagate, I guess.
74498
74499 2006-01-19  Simon Josefsson  <jas@extundo.com>
74500
74501         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
74502
74503 2006-01-19  Simon Josefsson  <jas@extundo.com>
74504
74505         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
74506
74507 2006-01-19  Simon Josefsson  <jas@extundo.com>
74508
74509         * gnulib-tool: Set check_PROGRAMS.
74510
74511         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74512         modules/des-tests, modules/gc-arcfour-tests,
74513         modules/gc-arctwo-tests, modules/gc-des-tests,
74514         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74515         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74516         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74517         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74518         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74519         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
74520         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
74521         test_*_SOURCES.
74522
74523 2006-01-18  Simon Josefsson  <jas@extundo.com>
74524
74525         * modules/socklen (Depends-on): Depend on sys_socket.
74526
74527 2006-01-18  Simon Josefsson  <jas@extundo.com>
74528
74529         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74530         modules/des-tests, modules/gc-arcfour-tests,
74531         modules/gc-arctwo-tests, modules/gc-des-tests,
74532         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74533         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74534         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74535         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74536         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74537         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
74538         $(EXEEXT) to automake TESTS variable, for mingw32.
74539
74540 2006-01-17  Simon Josefsson  <jas@extundo.com>
74541
74542         * modules/socklen (Include): Need sys/socket.h.
74543
74544 2006-01-17  Bruno Haible  <bruno@clisp.org>
74545
74546         * modules/ssize_t (Include): Add <sys/types.h>.
74547
74548 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
74549
74550         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
74551         it's not portable and it doesn't work with cross-compiles.
74552         Problem reported by Bruno Haible.  Fix missing-$ typo in
74553         'test "gl_cv_ignore_unused_libraries" ...' that prevented
74554         -zignore from being used with Sun's C compiler.
74555
74556 2006-01-12  Simon Josefsson  <jas@extundo.com>
74557
74558         * lib/base64.c: Fix warning, reported by Bruno Haible
74559         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
74560
74561 2006-01-12  Bruno Haible  <bruno@clisp.org>
74562
74563         * modules/ldd: New file.
74564         * build-aux/ldd.sh.in: New file.
74565         * MODULES.html.sh (Support for building libraries and executables): Add
74566         ldd.
74567
74568 2006-01-12  Bruno Haible  <bruno@clisp.org>
74569
74570         * m4/ldd.m4: New file.
74571
74572 2006-01-12  Bruno Haible  <bruno@clisp.org>
74573
74574         * gnulib-tool (func_import, func_create_testdir): Don't go into an
74575         endless loop while replacing $auxdir with build-aux.
74576
74577 2006-01-11  Simon Josefsson  <jas@extundo.com>
74578
74579         * lib/stdint_.h (SIZE_MAX): Add missing (.
74580
74581 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
74582
74583         Sync from coreutils.
74584         * lib/md5.c: Fix commentary typos.
74585         (alignof, UNALIGNED_P): No need for a GCC-specific version.
74586         * lib/md5.h (__attribute__): Remove; unused.
74587         * lib/sha1.c: Fix commentary to match md5 better.
74588         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
74589         so that we don't need to worry about alignment.  All uses changed.
74590         This merges the 2005-10-28 md5 change into sha1.
74591
74592 2006-01-11  Jim Meyering  <jim@meyering.net>
74593
74594         Sync from coreutils.
74595         * lib/md5.c (OP): Fix spacing.
74596
74597 2006-01-11  Bruno Haible  <bruno@clisp.org>
74598
74599         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74600         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
74601         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
74602
74603 2006-01-11  Bruno Haible  <bruno@clisp.org>
74604
74605         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74606         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
74607         the "early" section as well.
74608
74609 2006-01-11  Bruno Haible  <bruno@clisp.org>
74610
74611         Avoid "ar: no archive members specified" error on MacOS X.
74612         * gnulib-tool (func_modules_add_dummy): New function.
74613         (func_import, func_create_testdir): Invoke it.
74614
74615 2006-01-11  Bruno Haible  <bruno@clisp.org>
74616
74617         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
74618         with $auxdir in AC_CONFIG_FILES statements.
74619
74620 2006-01-11  Bruno Haible  <bruno@clisp.org>
74621
74622         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74623         Initialize also noinst_HEADERS to empty.
74624
74625 2006-01-11  Bruno Haible  <bruno@clisp.org>
74626
74627         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
74628         variables.
74629         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
74630         autoreconf.
74631
74632 2006-01-11  Bruno Haible  <bruno@clisp.org>
74633
74634         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
74635         overridable by the user.
74636         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74637
74638 2006-01-10  Simon Josefsson  <jas@extundo.com>
74639
74640         * modules/sys_socket: New file.
74641
74642 2006-01-10  Simon Josefsson  <jas@extundo.com>
74643
74644         * m4/sys_socket_h.m4: New file.
74645
74646 2006-01-10  Simon Josefsson  <jas@extundo.com>
74647
74648         * lib/socket_.h: New file.
74649
74650 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74651
74652         * modules/readutmp (Maintainer): Add myself.
74653
74654 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74655
74656         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
74657         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
74658         People who are still concerned with buggy memcmp implementations
74659         can invoke gl_FUNC_MEMCMP themselves.
74660
74661 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74662
74663         * lib/regex_internal.h (BITSET_WORD_BITS):
74664         Work around a bug in 64-bit PGC (before version 6.1-2), where the
74665         preprocessor mishandles large unsigned values as if they were signed.
74666         Problem reported by Claudio Fontana in
74667         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
74668
74669 2006-01-10  Jim Meyering  <jim@meyering.net>
74670
74671         Avoid the double-free (first in fts_read, second in fts_close) that
74672         would occur when an `active' directory is made inaccessible (e.g.,
74673         via chmod a-x) during a traversal.
74674         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74675         before returning.  Reproduce this failure by
74676         mkdir -p a/b; cd a; chmod a-x . b
74677         Reported by Stavros Passas.
74678
74679         Sync from coreutils.
74680         * lib/sha1.c: Tweak grammar in a comment.
74681
74682 2006-01-10  Jim Meyering  <jim@meyering.net>
74683
74684         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
74685         Patch by Joerg Sonnenberger.
74686
74687 2006-01-10  Bruno Haible  <bruno@clisp.org>
74688
74689         * modules/readutmp: Depend on module free.
74690         * modules/strtok_r: Depend on module restrict.
74691
74692 2006-01-10  Bruno Haible  <bruno@clisp.org>
74693
74694         * modules/gettext (configure.ac): Add an invocation of
74695         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
74696
74697 2006-01-10  Bruno Haible  <bruno@clisp.org>
74698
74699         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
74700         Reported by Werner Lemberg <wl@gnu.org>.
74701
74702 2006-01-10  Bruno Haible  <bruno@clisp.org>
74703
74704         * lib/localcharset.c: Update from GNU gettext.
74705
74706 2006-01-10  Bruno Haible  <bruno@clisp.org>
74707
74708         * lib/argp.h (__const): Remove macro. Use const instead.
74709         * lib/argp-fmtstream.h (__const): Likewise.
74710         * lib/glob_.h (__const): Remove macro.
74711         * lib/glob-libc.h: Use const instead of __const.
74712
74713 2006-01-10  Bruno Haible  <bruno@clisp.org>
74714
74715         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
74716         variable.
74717         Needed to avoid an automake error regarding the 'gettext' module.
74718
74719 2006-01-09  Simon Josefsson  <jas@extundo.com>
74720
74721         * modules/inet_ntop (Depends-on): Add restrict.
74722
74723 2006-01-09  Simon Josefsson  <jas@extundo.com>
74724
74725         * modules/gc-rijndael-tests (License): Put under LGPL.
74726
74727         * modules/gc-des-tests (License): Likewise.
74728
74729         * modules/gc-arcfour-tests (License): Likewise.
74730
74731         * modules/gc-arctwo-tests (License): Likewise.
74732
74733         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
74734
74735         * modules/gc-hmac-sha1-tests (Files): Likewise.
74736
74737         * modules/gc-hmac-md5-tests (License): Likewise.
74738
74739         * modules/gc-sha1-tests (License): Likewise.
74740
74741         * modules/gc-md5-tests (License): Likewise.
74742
74743         * modules/gc-md4-tests (License): Likewise.
74744
74745         * modules/gc-md2-tests (License): Likewise.
74746
74747         * modules/gc-tests (License): Likewise.
74748
74749         * modules/des-tests (License): Likewise.
74750
74751         * modules/md4-tests (License): Likewise.
74752
74753         * modules/md2-tests (License): Likewise.
74754
74755 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74756
74757         Sync from coreutils:
74758
74759         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
74760         * modules/lib-ignore: New file.
74761         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
74762         chdir-safer.m4, lchmod.m4.
74763         * modules/openat: Add mkdirat.c, openat-priv.h.
74764
74765 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74766
74767         Sync from coreutils.
74768         * m4/lib-ignore.m4: New file.
74769         * m4/lchmod.m4: New file.
74770
74771 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74772
74773         Sync from coreutils.
74774         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
74775         for write access: POSIX says that must fail.
74776         * lib/fts.c (diropen): Likewise.
74777         * lib/save-cwd.c (save_cwd): Likewise.
74778         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
74779         well, for minor improvements on hosts that lack O_DIRECTORY.
74780         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
74781         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
74782         Fall back on chown if open failed with EACCES.
74783
74784         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
74785         Report an error at compile-time if only a 1-second nominal clock
74786         resolution is found.
74787
74788         * lib/lchmod.h: New file.
74789         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
74790         (make_dir_parents): Use lchown rather than chown, and
74791         lchmod rather than chmod.
74792
74793         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
74794         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
74795         "proc" reported by n0dalus.
74796
74797         * lib/mountlist.c: Include <limits.h>.
74798         (dev_from_mount_options)
74799         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
74800         New function.  It no longer assumes "dev=" has the System V meaning
74801         on Linux (since it doesn't).  It also parses "dev=" more carefully.
74802         (read_file_system_list)
74803         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
74804         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
74805         dev= in that case.
74806
74807         * lib/posixtm.h (PDS_PRE_2000): New macro.
74808         * lib/posixtm.c (year): Arg is now syntax_bits rather than
74809         allow_century.  All usages changed.  Reject dates outside the range
74810         1969-1999 if PDS_PRE_2000 is used.
74811
74812 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74813
74814         Sync from coreutils.
74815         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
74816         (Time of day items): Mention the possibility of leap seconds.
74817         Problem reported by Dr. David Alan Gilbert.
74818
74819 2006-01-09  Jim Meyering  <jim@meyering.net>
74820
74821         Sync from coreutils.
74822
74823         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
74824
74825         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
74826
74827         * lib/modechange.c (mode_compile): Reject an invalid mode string
74828         that starts with an octal digit.  From Andreas Gruenbacher.
74829
74830         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
74831         and dup to open_safer and dup_safer, respectively.
74832         (openat_permissive): Fix typo in comment.
74833
74834         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
74835         "gettext.h"; either no longer needed or are guaranteed by openat.h.
74836         (_): Remove; no longer needed.
74837         (openat): Renamed from rpl_openat; no need for rpl_openat
74838         since openat.h renames openat for us.
74839         Replace most of the body with a call to openat_permissive,
74840         to avoid duplicate code.
74841         Port to (probably hypothetical) environments were mode_t is
74842         wider than int.
74843         (openat_permissive): Require mode arg, so that we can check
74844         types better.  Put it just after flags.  Change cwd failure
74845         indicator from pointer-to-bool to pointer-to-errno-value.
74846         All callers changed.
74847         Invoke openat_save_fail and/or openat_restore_fail if
74848         cwd_errno is null, so that openat can call us.
74849         (openat_permissive, fdopendir, fstatat, unlinkat):
74850         Simplify errno handling to avoid some duplicate code,
74851         as it's OK to set errno on success.
74852         * lib/openat.h: Revamp code so that function macros depend on
74853         __OPENAT_PREFIX only, not also on AT_FDCWD.
74854         (openat_ro): Remove.  Caller changed to use openat_permissive.
74855         (openat_permissive): Now a macro, if not a function.
74856         (openat_restore_fail, openat_save_fail): Now always functions,
74857         since mkdirat needs them even if __OPENAT_PREFIX is defined.
74858
74859         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
74860         and openat.c.
74861         * lib/mkdirat.c: Include openat-priv.h.
74862         Remove definitions of macros defined therein.
74863         * lib/openat.c: Likewise.
74864
74865         * lib/mkdirat.c (mkdirat): New file and function.
74866         * lib/openat.h (mkdirat): Declare.
74867
74868         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
74869
74870         * lib/openat.h (openat_permissive): Declare.
74871         (openat_ro): Define.
74872
74873         * lib/openat.c (EXPECTED_ERRNO): New macro.
74874         (openat_permissive): New function -- used in remove.c rewrite.
74875         (all functions): Set errno just before returning, only if there
74876         was an actual failure.
74877         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
74878
74879         Emulate openat-family functions using Linux's procfs, if possible.
74880         Idea and some code based on Ulrich Drepper's glibc changes.
74881
74882         * lib/openat.c: (BUILD_PROC_NAME): New macro.
74883         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
74884         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
74885         before falling back on save_cwd and restore_cwd.
74886         (fdopendir, fstatat, unlinkat): Likewise.
74887
74888         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
74889         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
74890
74891         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
74892         as second argument to va_arg.  Otherwise, some versions of gcc
74893         warn that `if this code is reached, the program will abort'.
74894
74895 2006-01-09  Jim Meyering  <jim@meyering.net>
74896
74897         Sync from coreutils.
74898         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
74899         Require openat-priv.h.
74900
74901 2006-01-09  Bruno Haible  <bruno@clisp.org>
74902
74903         * modules/strnlen (Include): Use strnlen.h.
74904
74905 2006-01-09  Bruno Haible  <bruno@clisp.org>
74906
74907         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
74908
74909 2006-01-09  Bruno Haible  <bruno@clisp.org>
74910
74911         * lib/sysexit_.h (EX_OK): New macro.
74912         Suggested by Martin Lambers <marlam@marlam.de>.
74913
74914 2006-01-09  Bruno Haible  <bruno@clisp.org>
74915
74916         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
74917         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
74918
74919 2006-01-09  Bruno Haible  <bruno@clisp.org>
74920
74921         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
74922         numbers.
74923
74924 2006-01-09  Bruno Haible  <bruno@clisp.org>
74925
74926         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
74927         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
74928         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
74929         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
74930
74931 2006-01-09  Bruno Haible  <bruno@clisp.org>
74932
74933         * build-aux/javacomp.sh.in: New file, moved from lib/.
74934         * modules/javacomp-script (Files): Update.
74935         (configure.ac): Add AC_CONFIG_FILES invocation.
74936         (EXTRA_DIST): Remove variable.
74937
74938         * build-aux/javaexec.sh.in: New file, moved from lib/.
74939         * modules/javaexec (Files): Update.
74940         (configure.ac): Add AC_CONFIG_FILES invocation.
74941         (EXTRA_DIST): Remove javaexec.sh.in.
74942
74943         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
74944         * modules/csharpcomp-script (Files): Update.
74945         (configure.ac): Add AC_CONFIG_FILES invocation.
74946         (EXTRA_DIST): Remove variable.
74947
74948         * build-aux/csharpexec.sh.in: New file, moved from lib/.
74949         * modules/csharpexec (Files): Update.
74950         (configure.ac): Add AC_CONFIG_FILES invocation.
74951         (EXTRA_DIST): Remove csharpexec.sh.in.
74952
74953 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74954
74955         Sync from coreutils.
74956
74957         Add POSIX ACL support
74958         * lib/acl.h (copy_acl, set_acl): Add declarations.
74959         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
74960         systems other than Linux.
74961         (chmod_or_fchmod): New function: use fchmod when possible,
74962         and chmod otherwise.
74963         (file_has_acl): Add a POSIX ACL implementation, with a
74964         Linux-specific subcase.
74965         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
74966         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
74967         acls are unsupported.
74968         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
74969         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
74970         are unsupported.
74971
74972 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74973
74974         Sync from coreutils.
74975         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
74976
74977 2006-01-07  Bruno Haible  <bruno@clisp.org>
74978
74979         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
74980         gl_EARLY.
74981
74982 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74983
74984         * lib/strftime.c (tzname): Don't declare if it is already #defined.
74985         Problem reported for Mingw by Mark Junker.
74986
74987 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74988
74989         * README: Gnulib normally doesn't generate a tarball.
74990
74991 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
74992
74993         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
74994         long int, not int, for nanosecond counts, so that people who are
74995         used to POSIX struct timespec won't be surprised.  Reported by Jim
74996         Meyering.
74997
74998 2005-12-28  Bruno Haible  <bruno@clisp.org>
74999
75000         * build-aux/config.rpath: Update from GNU gettext.
75001
75002 2005-12-16  Jim Meyering  <jim@meyering.net>
75003
75004         * modules/fprintftime: New module.
75005         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
75006
75007 2005-12-16  Jim Meyering  <jim@meyering.net>
75008
75009         * m4/fprintftime.m4: New file.
75010
75011 2005-12-16  Jim Meyering  <jim@meyering.net>
75012
75013         * lib/fprintftime.c, lib/fprintftime.h: New files.
75014
75015 2005-12-15  Simon Josefsson  <jas@extundo.com>
75016
75017         * modules/socklen (configure.ac): Fix M4 macro name, to align with
75018         new m4/socklen.m4.
75019
75020 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75021
75022         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
75023         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
75024
75025 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75026
75027         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
75028         * lib/argp-help.c (fill_in_uparams): Check if the constructed
75029         struct uparams is valid. Fall back to the default values if it is
75030         not.
75031
75032 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75033
75034         * modules/argp (Files): Add argp-pin.c
75035         (Depends-on): dirname
75036         (lib_SOURCES): Add argp-pin.c
75037
75038 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75039
75040         * m4/argp.m4:  Check if program_invocation_name and
75041         program_invocation_short_name are declared and define appropriate
75042         macros if they are not.
75043
75044 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75045
75046         * lib/argp-help.c (__argp_base_name): New function
75047         (__argp_short_program_name): Rewrite using __argp_base_name
75048         * lib/argp-namefrob.h: Define program_invocation_name and
75049         program_invocation_short_name if requested
75050         (__argp_base_name): Add prototype
75051         * lib/argp-parse.c (argp_def): Use gettext wrappers
75052         (argp_default_parser): Use __argp_base_name
75053         * lib/argp-pin.c: New file. Defines program_invocation_name and
75054         program_invocation_short_name on systems that lack them.
75055
75056 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75057
75058         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
75059         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75060         porting problem reported by Georg Schwarz in
75061         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75062
75063 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75064
75065         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
75066         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75067         porting problem reported by Georg Schwarz in
75068         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75069
75070 2005-12-05  Bruno Haible  <bruno@clisp.org>
75071
75072         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
75073         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
75074         Reported by Mark Junker <mjscod@gmx.de>.
75075
75076 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
75077
75078         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
75079         Use implementation from Albert Chin, with some
75080         comments/corrections by Stepan Kasal and myself.
75081
75082 2005-12-02  Bruno Haible  <bruno@clisp.org>
75083
75084         * gnulib-tool (func_import): Accept GPLed build tool modules when
75085         --lgpl is given.
75086         * modules/csharpcomp-script: New file.
75087         * modules/csharpcomp: Depend on it.
75088         * modules/javacomp-script: New file.
75089         * modules/javacomp: Depend on it.
75090         Suggested by Simon Josefsson.
75091
75092 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
75093
75094         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
75095         statement, to work around an HP-UX 10.20 compiler bug reported by
75096         Peter O'Gorman.
75097
75098 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
75099
75100         * modules/savedir (Depends-on): Add openat.
75101
75102 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
75103
75104         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
75105         (uintmax_t) [defined uintmax_t]: Do not declare.
75106         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
75107         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
75108         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
75109         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
75110         sake of portability to weird hosts that C allows (though we don't
75111         know of any practical examples).
75112
75113         * lib/savedir.h (fdsavedir): New decl.
75114         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
75115         contains most of the former guts of savedir.
75116         (savedir): Use savedirstream.
75117         Include "openat.h".
75118
75119 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75120
75121         * modules/obstack (Files): Add m4/ulonglong.m4.
75122         Problem reported by Davide Angelocola.
75123
75124 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
75125
75126         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
75127         coreutils no longer futzes with rounding modes.
75128
75129 2005-11-14  Jim Meyering  <jim@meyering.net>
75130
75131         * lib/mkstemp-safer.c: Include <config.h>, required for possible
75132         replacement of mkstemp.
75133
75134 2005-11-10  Simon Josefsson  <jas@extundo.com>
75135
75136         * lib/readline.c: Remove EOL.
75137
75138 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75139
75140         * modules/gethrxtime (Depends-on): Add gettime.
75141
75142 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75143
75144         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
75145         or gettimeofday; no longer needed.
75146
75147 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75148
75149         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
75150         time business.
75151         (gethrxtime) [! (HAVE_NANOUPTIME
75152         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
75153         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
75154         our own approximation.
75155
75156 2005-11-08  Eric Blake  <ebb9@byu.net>
75157
75158         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75159
75160 2005-11-08  Eric Blake  <ebb9@byu.net>
75161
75162         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75163
75164 2005-11-04  Bruno Haible  <bruno@clisp.org>
75165
75166         * gnulib-tool: Implement --update mode.
75167
75168 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75169
75170         Fix porting problem reported by Theodoros V. Kalamatianos.
75171         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
75172         Don't assume that futimes failing means we must fail.
75173
75174 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75175
75176         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
75177         variables to suggest the intended function of the PATH_MAX check.
75178
75179 2005-10-30  Kean Johnston  <jkj@sco.com>
75180
75181         Trivial changes to support SCO systems.
75182         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
75183         as PATH_MAX.
75184         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
75185         where __ptr is null when no I/O is pending.
75186
75187 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75188
75189         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
75190         leave errno alone.  Problem reported by Dmitry V. Levin.
75191
75192 2005-10-28  Simon Josefsson  <jas@extundo.com>
75193
75194         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
75195         Test more.
75196
75197         * tests/test-gc-md2.c, tests/test-md2.c: New files.
75198
75199         * modules/md2, modules/md2-tests: New files.
75200
75201 2005-10-28  Simon Josefsson  <jas@extundo.com>
75202
75203         * m4/inet_ntop.m4: More tests.
75204
75205         * m4/gc-md2.m4, md2.m4: New file.
75206
75207 2005-10-28  Simon Josefsson  <jas@extundo.com>
75208
75209         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
75210         "restrict" keywords, as per POSIX.  Protect the function
75211         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
75212         Don't use K&R prototypes.  Check the sprintf return values.
75213         Re-define EAFNOSUPPORT if not present.  Indent.
75214
75215         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
75216         suggested by Bruno Haible <bruno@clisp.org>.
75217
75218         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
75219
75220         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
75221
75222         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
75223         libgcrypt).
75224
75225         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
75226
75227         * lib/md2.h, lib/md2.c: New files.
75228
75229 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
75230
75231         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
75232         errno alone.  Problem reported by Frederic Jolliton.
75233
75234 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75235
75236         * modules/verify (License): Change from GPL to LGPL.  This is a
75237         tiny module and there are apparently near-equivalents that are
75238         under the BSD license.
75239
75240 2005-10-24  Simon Josefsson  <jas@extundo.com>
75241
75242         * modules/sha1: Relicense to LGPL.
75243
75244 2005-10-24  Simon Josefsson  <jas@extundo.com>
75245
75246         * lib/md4.h: Shrink buffer size, now that we changed the type.
75247
75248 2005-10-23  Simon Josefsson  <jas@extundo.com>
75249
75250         * gnulib-tool (func_import): Fix --tests-base.
75251
75252 2005-10-22  Simon Josefsson  <jas@extundo.com>
75253
75254         * modules/arcfour (Depends-on): Need stdint.
75255
75256 2005-10-22  Simon Josefsson  <jas@extundo.com>
75257
75258         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
75259         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
75260
75261 2005-10-22  Simon Josefsson  <jas@extundo.com>
75262
75263         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
75264         suggested by Bruno Haible <bruno@clisp.org>.
75265
75266 2005-10-22  Simon Josefsson  <jas@extundo.com>
75267
75268         * lib/crc.h: Include stddef.h, for size_t.
75269
75270 2005-10-22  Simon Josefsson  <jas@extundo.com>
75271
75272         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
75273         arcfour_context struct (simplify test vector testing in GNU
75274         Shishi).
75275
75276 2005-10-21  Simon Josefsson  <jas@extundo.com>
75277
75278         * modules/des, modules/des-tests: New files.
75279
75280         * modules/gc-des, modules/gc-des-tests: New files.
75281
75282         * tests/test-des.c, tests/test-gc-des.c: New file.
75283
75284 2005-10-21  Simon Josefsson  <jas@extundo.com>
75285
75286         * modules/arctwo, modules/arctwo-tests: New files.
75287
75288         * tests/test-arctwo.c: New file.
75289
75290         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
75291
75292         * tests/test-gc-arctwo.c: New file.
75293
75294 2005-10-21  Simon Josefsson  <jas@extundo.com>
75295
75296         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
75297         Bruno Haible <bruno@clisp.org>.
75298
75299         * m4/gc-des.m4: New file.
75300
75301 2005-10-21  Simon Josefsson  <jas@extundo.com>
75302
75303         * m4/arctwo.m4: New file.
75304
75305         * m4/gc-arctwo.m4: New file.
75306
75307 2005-10-21  Simon Josefsson  <jas@extundo.com>
75308
75309         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
75310         block.
75311
75312 2005-10-21  Simon Josefsson  <jas@extundo.com>
75313
75314         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
75315         <bruno@clisp.org>.
75316
75317         * lib/hmac-sha1.c (hmac_sha1): Likewise.
75318
75319         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
75320         Bruno Haible <bruno@clisp.org>.
75321
75322         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
75323         <bruno@clisp.org>.
75324
75325 2005-10-21  Simon Josefsson  <jas@extundo.com>
75326
75327         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
75328
75329 2005-10-21  Simon Josefsson  <jas@extundo.com>
75330
75331         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
75332
75333 2005-10-21  Simon Josefsson  <jas@extundo.com>
75334
75335         * lib/des.h, lib/des.c: New files.
75336
75337         * lib/gc-gnulib.c: Support DES.c
75338
75339 2005-10-21  Simon Josefsson  <jas@extundo.com>
75340
75341         * lib/arctwo.h, lib/arctwo.c: New files.
75342
75343         * lib/gc-gnulib.c: Support ARCTWO.
75344
75345 2005-10-21  Simon Josefsson  <jas@extundo.com>
75346
75347         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
75348         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75349
75350 2005-10-21  Simon Josefsson  <jas@extundo.com>
75351
75352         * gnulib-tool (func_import, func_create_testdir): Define automake
75353         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
75354         Makefile.am snippet),
75355         suggested by Bruno Haible <bruno@clisp.org>.
75356
75357         * modules/gc (Makefile.am): Use it.
75358
75359 2005-10-21  Bruno Haible  <bruno@clisp.org>
75360
75361         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
75362         patch.
75363
75364 2005-10-19  Simon Josefsson  <jas@extundo.com>
75365
75366         * tests/test-gc-rijndael.c: New file.
75367
75368         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
75369
75370 2005-10-19  Simon Josefsson  <jas@extundo.com>
75371
75372         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
75373         interface too.
75374
75375 2005-10-19  Simon Josefsson  <jas@extundo.com>
75376
75377         * tests/test-gc-arcfour.c: New file.
75378
75379         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
75380
75381 2005-10-19  Simon Josefsson  <jas@extundo.com>
75382
75383         * modules/gc-md4, modules/gc-md4-tests: New file.
75384
75385         * tests/test-gc-md4.c: New file.
75386
75387 2005-10-19  Simon Josefsson  <jas@extundo.com>
75388
75389         * m4/gc-md4.m4: New file.
75390
75391 2005-10-19  Simon Josefsson  <jas@extundo.com>
75392
75393         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
75394         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
75395         <kasal@ucw.cz>.
75396
75397 2005-10-19  Simon Josefsson  <jas@extundo.com>
75398
75399         * m4/gc-arcfour.m4: New file.
75400
75401         * m4/gc-rijndael.m4: New file.
75402
75403 2005-10-19  Simon Josefsson  <jas@extundo.com>
75404
75405         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
75406
75407 2005-10-19  Simon Josefsson  <jas@extundo.com>
75408
75409         * lib/gc-gnulib.c: Support ARCFOUR.
75410
75411 2005-10-19  Simon Josefsson  <jas@extundo.com>
75412
75413         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
75414         support.
75415
75416         * lib/gc.h: Add ECB enum type.
75417
75418         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
75419
75420 2005-10-18  Simon Josefsson  <jas@extundo.com>
75421
75422         * tests/test-md5.c: New file.
75423
75424         * modules/md5-tests: New file.
75425
75426 2005-10-18  Simon Josefsson  <jas@extundo.com>
75427
75428         * tests/test-md4.c: New file.
75429
75430         * modules/md4, modules/md4-tests: New files.
75431
75432 2005-10-18  Simon Josefsson  <jas@extundo.com>
75433
75434         * m4/md4.m4: New file.
75435
75436 2005-10-18  Simon Josefsson  <jas@extundo.com>
75437
75438         * lib/md4.h, lib/md4.c: New files, based on md5.?.
75439
75440 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
75441
75442         * gnulib-tool (func_create_testdir): Omit the second check whether
75443         BUILT_SOURCES in nonempty.
75444
75445 2005-10-17  Simon Josefsson  <jas@extundo.com>
75446
75447         * tests/test-rijndael.c: New file.
75448
75449 2005-10-17  Simon Josefsson  <jas@extundo.com>
75450
75451         * modules/sha1: Depend on stdint instead of md5.
75452
75453         * modules/md5: Depend on stdint, remove uint32_t.
75454
75455 2005-10-17  Simon Josefsson  <jas@extundo.com>
75456
75457         * modules/gc-sha1-tests: New file.
75458
75459         * tests/test-gc-sha1.c: New file.
75460
75461 2005-10-17  Simon Josefsson  <jas@extundo.com>
75462
75463         * m4/md5.m4: Remove call to uint32_t.m4.
75464
75465 2005-10-17  Simon Josefsson  <jas@extundo.com>
75466
75467         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
75468
75469         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
75470         md5.h.
75471
75472         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
75473
75474         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
75475
75476 2005-10-17  Simon Josefsson  <jas@extundo.com>
75477
75478         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
75479
75480 2005-10-17  Simon Josefsson  <jas@extundo.com>
75481
75482         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
75483
75484 2005-10-17  Simon Josefsson  <jas@extundo.com>
75485
75486         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
75487
75488         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
75489
75490 2005-10-17  Bruno Haible  <bruno@clisp.org>
75491
75492         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
75493         that it can also be used in a test.
75494
75495 2005-10-16  Bruno Haible  <bruno@clisp.org>
75496
75497         * gnulib-tool (func_emit_tests_Makefile_am): Also define
75498         TESTS_ENVIRONMENT, so that individual tests can augment it.
75499
75500         * gnulib-tool (func_create_testdir): Use an intermediate target for
75501         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
75502         macros, like $(ALLOCA_H), which cannot be passed through the command
75503         line.
75504
75505 2005-10-15  Simon Josefsson  <jas@extundo.com>
75506
75507         * modules/rijndael-tests: New file.
75508
75509         * modules/rijndael: New file.
75510
75511 2005-10-15  Simon Josefsson  <jas@extundo.com>
75512
75513         * m4/rijndael.m4: New file.
75514
75515 2005-10-15  Simon Josefsson  <jas@extundo.com>
75516
75517         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
75518
75519         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
75520
75521 2005-10-14  Simon Josefsson  <jas@extundo.com>
75522
75523         * tests/test-arcfour.c: New file.
75524
75525         * modules/arcfour, modules/arcfour-tests: New files.
75526
75527 2005-10-14  Simon Josefsson  <jas@extundo.com>
75528
75529         * m4/arcfour.m4: New file.
75530
75531 2005-10-14  Simon Josefsson  <jas@extundo.com>
75532
75533         * lib/arcfour.h, lib/arcfour.c: New files.
75534
75535 2005-10-14  Roland McGrath  <roland@redhat.com>
75536
75537         Import from libc.  [BZ #1331]
75538         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
75539         macro argument.
75540         Reported by Matej Vela <vela@debian.org>.
75541
75542 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75543
75544         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
75545         include <wchar.h>; no longer needed.
75546
75547 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75548
75549         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
75550
75551 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
75552         and  Ulrich Drepper  <drepper@redhat.com>
75553
75554         Import from libc.
75555         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
75556         instead of inline stream orientation test and two separate
75557         function calls.  Pay no attention to USE_IN_LIBIO.
75558
75559 2005-10-13  Simon Josefsson  <jas@extundo.com>
75560
75561         * modules/gc-hmac-md5-tests: New file.
75562
75563         * tests/test-gc-hmac-sha1.c: New file.
75564
75565         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
75566
75567         * modules/gc-hmac-md5-tests: New file.
75568
75569         * tests/test-gc-md5.c: New file.
75570
75571         * modules/gc-md5-tests: New file.
75572
75573 2005-10-13  Simon Josefsson  <jas@extundo.com>
75574
75575         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
75576         Move memory allocation outside of loop.
75577
75578 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
75579
75580         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
75581         intermediate directory is in a read-only file system.  Problem
75582         reported by Eric Blake.
75583
75584 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
75585
75586         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
75587
75588 2005-10-12  Simon Josefsson  <jas@extundo.com>
75589
75590         * tests/test-hmac-sha1.c: New file.
75591
75592         * modules/hmac-sha1-tests: New file.
75593
75594         * modules/hmac-sha1: New file.
75595
75596 2005-10-12  Simon Josefsson  <jas@extundo.com>
75597
75598         * modules/gc-sha1: New file.
75599
75600 2005-10-12  Simon Josefsson  <jas@extundo.com>
75601
75602         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
75603
75604         * tests/test-gc-pbkdf2-sha1.c: New file.
75605
75606 2005-10-12  Simon Josefsson  <jas@extundo.com>
75607
75608         * modules/gc-md5, modules/gc-hmac-md5: New files.
75609
75610         * modules/gc (Files): Remove md5, memxor and hmac files.
75611
75612 2005-10-12  Simon Josefsson  <jas@extundo.com>
75613
75614         * m4/gc-pbkdf2-sha1.m4: New file.
75615
75616         * m4/gc-hmac-sha1.m4: New file.
75617
75618         * m4/gc-sha1: New file.
75619
75620         * m4/hmac-sha1.m4: New file.
75621
75622 2005-10-12  Simon Josefsson  <jas@extundo.com>
75623
75624         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
75625
75626         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
75627
75628 2005-10-12  Simon Josefsson  <jas@extundo.com>
75629
75630         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
75631         suggested by Bruno Haible <bruno@clisp.org>.
75632
75633 2005-10-12  Simon Josefsson  <jas@extundo.com>
75634
75635         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
75636
75637 2005-10-12  Simon Josefsson  <jas@extundo.com>
75638
75639         * lib/gc-pbkdf2-sha1.c: New file.
75640
75641         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
75642
75643 2005-10-12  Simon Josefsson  <jas@extundo.com>
75644
75645         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
75646
75647         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
75648
75649 2005-10-12  Simon Josefsson  <jas@extundo.com>
75650
75651         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
75652         GC_USE_HMAC_MD5, respectively.
75653
75654         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
75655         (gc_md5): Fix typo.
75656
75657         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
75658
75659         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
75660
75661         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
75662
75663 2005-10-12  Bruno Haible  <bruno@clisp.org>
75664
75665         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
75666         Reported by Stepan Kasal <kasal@ucw.cz>.
75667
75668 2005-10-11  Simon Josefsson  <jas@extundo.com>
75669
75670         * tests/test-crc.c: New file.
75671
75672         * modules/crc, modules/crc-tests: New files.
75673
75674 2005-10-11  Simon Josefsson  <jas@extundo.com>
75675
75676         * m4/crc.m4: New file.
75677
75678 2005-10-11  Simon Josefsson  <jas@extundo.com>
75679
75680         * lib/gc.h: Add gc_hash and gc_hash_buffer.
75681
75682         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
75683
75684         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
75685
75686 2005-10-11  Simon Josefsson  <jas@extundo.com>
75687
75688         * lib/crc.h, lib/crc.c: New files.
75689
75690         * lib/gc.h (gc_hash_buffer): Add doc.
75691
75692 2005-10-11  Bruno Haible  <bruno@clisp.org>
75693
75694         * modules/c-strcasestr: New file.
75695         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
75696
75697 2005-10-11  Bruno Haible  <bruno@clisp.org>
75698
75699         * modules/c-strcase: New file.
75700         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
75701
75702 2005-10-11  Bruno Haible  <bruno@clisp.org>
75703
75704         * lib/strcasecmp.c: Include limits.h.
75705         (strcasecmp): Avoid integer overflow on exotic platforms.
75706         * lib/strncasecmp.c: Include limits.h.
75707         (strncasecmp): Avoid integer overflow on exotic platforms.
75708         Reported by Paul Eggert.
75709
75710 2005-10-11  Bruno Haible  <bruno@clisp.org>
75711
75712         * lib/c-strcasestr.h: New file, from GNU gettext.
75713         * lib/c-strcasestr.c: New file, from GNU gettext.
75714
75715 2005-10-11  Bruno Haible  <bruno@clisp.org>
75716
75717         * lib/c-strcase.h: New file, from GNU gettext.
75718         * lib/c-strcasecmp.c: New file, from GNU gettext.
75719         * lib/c-strncasecmp.c: New file, from GNU gettext.
75720
75721 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75722
75723         * modules/mempcpy (License): GPL -> LGPL.
75724         * modules/strchrnul (License): Likewise.
75725         * modules/sysexits (License): Likewise.
75726
75727 2005-10-08  Simon Josefsson  <jas@extundo.com>
75728
75729         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
75730
75731 2005-10-07  Simon Josefsson  <jas@extundo.com>
75732
75733         * m4/memxor.m4: Remove gl_C_RESTRICT call.
75734
75735 2005-10-06  Simon Josefsson  <jas@extundo.com>
75736
75737         * tests/test-hmac-md5.c: New file.
75738
75739         * modules/hmac-md5-tests: New file.
75740
75741         * modules/hmac-md5: New file.
75742
75743 2005-10-06  Simon Josefsson  <jas@extundo.com>
75744
75745         * m4/hmac-md5.m4: New file.
75746
75747         * m4/memxor.m4: Require gl_C_RESTRICT.
75748
75749 2005-10-06  Simon Josefsson  <jas@extundo.com>
75750
75751         * lib/memxor.c (memxor): Avoid casts and warnings.
75752
75753 2005-10-06  Simon Josefsson  <jas@extundo.com>
75754
75755         * lib/hmac-md5.c: New file.
75756
75757         * lib/hmac.h: New file.
75758
75759 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75760
75761         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
75762         promotes to int, not unsigned int, to catch the AIX 5.3
75763         compiler bug.
75764
75765 2005-10-05  Simon Josefsson  <jas@extundo.com>
75766
75767         * modules/memxor: New file.
75768
75769         * modules/iconv (Files): Move config.rpath to havelib, it is used
75770         there.
75771
75772         * modules/havelib (Files): Add config.rpath.
75773
75774 2005-10-05  Simon Josefsson  <jas@extundo.com>
75775
75776         * m4/memxor.m4: New file.
75777
75778 2005-10-05  Simon Josefsson  <jas@extundo.com>
75779
75780         * lib/memxor.c (memxor): Fix compiler error.
75781
75782         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
75783         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
75784
75785         * lib/memxor.h, lib/memxor.c: New files.
75786
75787         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
75788         we assume all systems have it, suggested by Jim Meyering
75789         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
75790         any systems lack sys/socket.h; mingw32 is known to lack it, but we
75791         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
75792         same reasons.
75793
75794 2005-10-05  Simon Josefsson  <jas@extundo.com>
75795
75796         * config/srclist.txt: Add glibc bug 1423 for md5.h.
75797
75798 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75799
75800         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
75801         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
75802         needed, since the source code now assumes these .h files.
75803
75804 2005-10-05  Derek Price  <derek@ximbiot.com>
75805
75806         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
75807
75808 2005-10-05  Bruno Haible  <bruno@clisp.org>
75809
75810         * modules/stdint (License): Change to LGPL.
75811
75812 2005-10-04  Simon Josefsson  <jas@extundo.com>
75813
75814         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
75815         D. Baushke" <mdb@gnu.org>.
75816
75817 2005-10-04  Bruno Haible  <bruno@clisp.org>
75818
75819         * lib/verify.h (verify_true): Provide alternative definition for C++.
75820
75821 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
75822
75823         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
75824         (SSIZE_MAX): New macro, if not already defined.
75825         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
75826         than 2 GiB.
75827
75828 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75829
75830         Sync from coreutils.
75831         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
75832         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
75833         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
75834         ULLONG_MAX doesn't work with 2.7.2.1.
75835
75836 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75837
75838         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
75839         From Ben Pfaff.
75840
75841         * modules/exclude (Depends-on): Depend on verify.
75842         * modules/strtoimax (Depends-on): Likewise.
75843         * modules/utimecmp (Depends-on): Likewise.
75844
75845 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75846
75847         * lib/exclude.c: Include verify.h.
75848         (verify): Remove.  All callers changed to use verify.h's version.
75849         * lib/strtoimax.c: Likewise.
75850         * lib/utimecmp.c: Likewis.e
75851
75852         Sync from coreutils.
75853         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
75854         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
75855         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
75856         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
75857         bother returning ENOSYS if settimeofday or stime fails; just let
75858         them return whatever errno they want to return.
75859         * lib/utimens.c: Include unistd.h, for dup2.
75860         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
75861         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
75862
75863 2005-10-02  Jim Meyering  <jim@meyering.net>
75864
75865         Sync from coreutils.
75866         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
75867         from glibc-2.2.5 that fails for read-only files.
75868
75869 2005-10-02  Jim Meyering  <jim@meyering.net>
75870
75871         Sync from coreutils.
75872         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
75873         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
75874         `#if HAVE_CONFIG_H'.
75875         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
75876         Remove AT_FDCWD test.
75877         Do not consume the fd unless successful.
75878         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
75879         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
75880         block, so that we don't even try to compile it if settimeofday is
75881         available.  This works around a compilation failure on OSF1 V5.1,
75882         due to stime requiring a `long int*' while tv_sec is `int'.
75883
75884 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
75885
75886         Sync from coreutils.
75887         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
75888         against `yes', rather than just testing for nonempty.
75889
75890 2005-10-01  Simon Josefsson  <jas@extundo.com>
75891
75892         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
75893         and Darwin.
75894
75895         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
75896         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
75897         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
75898         freeaddrinfo and gai_strerror are declared by the POSIX headers.
75899         Check if struct addrinfo is declared.
75900
75901 2005-10-01  Simon Josefsson  <jas@extundo.com>
75902
75903         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
75904         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
75905         AI_* and EAI_* definitions.  Protect function declarations.
75906
75907 2005-10-01  Jim Meyering  <jim@meyering.net>
75908
75909         Sync from coreutils.
75910
75911         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
75912         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
75913         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
75914         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75915         in the inet and nsl libraries.  Required on Solaris 5.7.
75916
75917 2005-10-01  Jim Meyering  <jim@meyering.net>
75918
75919         Sync from coreutils.
75920         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75921         in the inet and nsl libraries.  Required on Solaris 5.7.
75922
75923 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
75924
75925         * lib/getdelim.c (getdelim): Remove unused variables.
75926
75927 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75928
75929         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
75930         so that the code works even with ancient cpp.  Portability problem
75931         with GCC 2.7.2.1 reported by Thomas M.Ott.
75932
75933 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75934
75935         * modules/regex (Depends-on): Add strcase.
75936
75937         * modules/gethostname (Licence): Change from GPL to LGPL, since
75938         gethostname.c is a trivial implementation of a standard library
75939         function.
75940         * modules/poll (License): Change from GPL to LGPL, since it's
75941         derived from LGPL code.
75942
75943 2005-09-27  Jim Meyering  <jim@meyering.net>
75944
75945         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
75946         HAVE_CONFIG_H.
75947
75948         * lib/intprops.h (signed_type_or_expr__): Define.
75949         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
75950         for unsigned types.
75951
75952 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75953
75954         * lib/verify.h (verify_expr): Remove, replacing with:
75955         (verify_true): New macro that returns true instead of void.
75956         (verify_type__): Remove.
75957         (verify): Use verify_true rather than verify_type__.
75958
75959 2005-09-26  Bruno Haible  <bruno@clisp.org>
75960
75961         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
75962         is necessary.
75963         (lib_SOURCES): Remove mbchar.c.
75964         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
75965         (Files): Add m4/mbrtowc.m4.
75966         * modules/mbiter: Likewise.
75967         * modules/mbuiter: Likewise.
75968
75969 2005-09-26  Bruno Haible  <bruno@clisp.org>
75970
75971         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
75972         compile mbchar.c if they are not both present.
75973         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
75974         * m4/mbiter.m4 (gl_MBITER): Likewise.
75975         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
75976         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
75977         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
75978
75979 2005-09-25  Jim Meyering  <jim@meyering.net>
75980
75981         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
75982         also uses socklen_t.
75983
75984 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
75985
75986         * lib/utimens.c (ENOSYS): Define if not already defined.
75987         (futimens): Support having a null PATH if the file descriptor
75988         is nonnegative.
75989
75990         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
75991         Remove.
75992         (__attribute): Define to empty unless GCC 3.1 or later.
75993         This works around a core dump on OpenBSD 3.4, which has GCC
75994         2.95.3, which dumps core when given __attribute__(()).  It also
75995         simplifies other tests, since we really don't want to bother with
75996         worrying about which ancient version of GCC supported what.
75997         Original problem reported by Yoann Vandoorselaere, with part of
75998         the fix suggested by Derek Price.
75999
76000 2005-09-24  Jim Meyering  <jim@meyering.net>
76001
76002         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
76003         so we can once again use a positive bitfield width of 1 -- now we
76004         don't have to explain why we were using a bitfield width of 2.
76005
76006 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76007
76008         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
76009         and similarly for the other external symbols.  Problem reported
76010         by James Gallager.
76011
76012         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
76013         bug reported by Jim Meyering.
76014
76015         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
76016         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
76017         not needed, since socklen is a prerequisite module.
76018
76019 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76020
76021         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
76022         Problem reported by Eric Blake.
76023         (getaddrinfo): Initialize se so that it's not garbage.
76024         Redo internal storage allocation so that it doesn't make unportable
76025         assumptions about alignment.
76026         Fix a memory leak.
76027
76028         * lib/utimens.c (futimens): Use futimesat if available.
76029         Prefer it to futimes since it doesn't have the futimes bug.
76030
76031         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
76032         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
76033         Instead, declare a function that returns a pointer to an array,
76034         and use verify_type__ to declare the size of the array.
76035         Problem and germ of a solution reported by Bruno Haible.
76036         (verify_type__): Use 2, not 1, for bitfield size, to avoid
76037         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
76038
76039 2005-09-23  Jim Meyering  <jim@meyering.net>
76040
76041         Sync from coreutils.
76042         Correct build failure (socklen_t not defined) on at least
76043         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
76044         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
76045
76046 2005-09-23  Jim Meyering  <jim@meyering.net>
76047
76048         * modules/getaddrinfo (Depends-on): Add socklen.
76049
76050 2005-09-23  Bruno Haible  <bruno@clisp.org>
76051
76052         * tests/test-verify.c: New file.
76053
76054 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76055
76056         Sync from coreutils.
76057
76058         * modules/argmatch (Depends-on): Add verify.
76059         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
76060         unistd-safer.
76061         * modules/save-cwd (Depends-on): Likewise.
76062
76063         * modules/openat (Files): Add lib/openat-die.c.
76064         (Depends-on): Remove error, exitfail.
76065         Add dirname.
76066
76067         * modules/verify: New file.
76068         * MODULES.html.sh (Diagnostics <assert.h>): New section,
76069         with "verify" module.
76070
76071 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76072
76073         Sync from coreutils.
76074
76075         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
76076         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
76077         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
76078         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
76079         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
76080         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
76081         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
76082         Don't bother checking for string.h, stdlib.h, unistd.h.
76083         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
76084         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
76085         module's job.
76086         * m4/jm-macros.m4 (gl_MACROS): Likewise.
76087         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
76088
76089         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
76090         (gl_GETDATE): Use it.
76091
76092         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
76093
76094 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76095
76096         Sync from coreutils.
76097
76098         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
76099         stat-time.h.
76100         * lib/argmatch.h: Include verify.h
76101         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
76102         (ARGMATCH_ASSERT): Remove; unused.
76103         * lib/canonicalize.c: Assume STDC_HEADERS.
76104         * lib/exclude.c: Include "strcase.h".
76105         * lib/regex_internal.h [!defined _LIBC]: Likewise.
76106         * lib/getusershell.c: Include stdio--.h rather than stdio.h
76107         and stdio-safer.h.
76108         (getusershell): Call fopen, not fopen_safer.
76109         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
76110         Do not include unistd-safer.h.
76111         (save_cwd): Don't call fd_safer; no longer needed
76112         now that we include fcntl--.h.
76113
76114         * lib/getdate.y (relative_time): New type.
76115         (RELATIVE_TIME_0): New constant.
76116         (parser_control): Use relative_time instead of doing it ourselves.
76117         (%union): Add new relative_time rel member.
76118         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
76119         Now typeless.
76120         (relunit, relunit_snumber): Now of type rel.
76121         (zone, rel, relunit, get_date): Adjust to above changes.
76122
76123         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
76124         Do not include unistd-safer.h.
76125         (getloadavg): Don't call fd_safer; no longer needed
76126         now that we include fcntl--.h.
76127
76128         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
76129         (make_dir_parents): Treat ENOSYS like EEXIST.
76130
76131         Improve quality of diagnostics on restore_cwd failure.
76132         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
76133         (make_dir_parents): Last arg is now int * (for errno), not bool *.
76134         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
76135         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
76136         each time through the loop.  Do not diagnose restore_cwd failure;
76137         that is the caller's job (and perhaps the caller does not care).
76138
76139         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
76140         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
76141         If the file already exists but is not a directory, don't bother
76142         to try to make its parents.
76143         Close potential file descriptor leak if we can't chdir("/") (!).
76144         Don't always return true if chdir($PWD) fails; return true only
76145         if the requested action was done successfully (except for the
76146         chdir($PWD)).
76147         Don't log final directory unless we actually made it.
76148         Refactor to avoid duplicate code to fix up permissions.
76149         Don't attempt to fix up parent permissions if chdir($PWD) fails.
76150
76151         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
76152         to make it a bit faster and (I hope) clearer.
76153         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
76154         Fix bug in formats like %2N.
76155
76156         * lib/verify.h: New file.
76157
76158 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76159
76160         Sync from coreutils.
76161         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
76162
76163 2005-09-22  Jim Meyering  <jim@meyering.net>
76164
76165         Sync from coreutils.
76166
76167         * m4/lstat.m4 (gl_FUNC_LSTAT):
76168         Use AC_LIBSOURCES to require lstat.c and lstat.h.
76169         Remove obsolete comment.
76170         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
76171         * m4/xstrtod.m4: Likewise.
76172
76173         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
76174
76175 2005-09-22  Jim Meyering  <jim@meyering.net>
76176
76177         Sync from coreutils.
76178
76179         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
76180
76181         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
76182         the .tm_year member, since otherwise gcc-4.0 would now warn about
76183         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
76184
76185         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
76186         order to avoid an unsuppressible warning from gcc on 64-bit systems.
76187
76188         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
76189         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
76190         when run in a time zone for which daylight savings time is in effect
76191         for the starting date.
76192
76193         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
76194         stop us from restricting permissions of just-created absolute-named
76195         directories.
76196         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
76197         to restore initial working directory.
76198         * lib/mkdir-p.c (make_dir_parents): New parameter:
76199         different_working_dir, to tell caller if/when we change the working
76200         directory and are unable to return to the initial one.
76201         * lib/mkdir-p.h (make_dir_parents): Update prototype.
76202         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
76203         `return false'.  This fixes a bug introduced on 2004-07-30.
76204
76205         * lib/openat.c (fdopendir): Be sure to close the supplied
76206         file descriptor before returning.  This makes our replacement
76207         implementation a little closer to Solaris's, where fdopendir
76208         ties the file descriptor to the returned DIR* pointer.
76209         * lib/openat.c (unlinkat): New function.
76210         * lib/openat.h (unlinkat): Add prototype.
76211         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
76212         (openat_restore_fail): Rename from openat_restore_die.
76213         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
76214
76215         Provide an alternative to exiting immediately upon save_cwd or
76216         restore_cwd failure.  Now, an application can arrange e.g.,
76217         to perform a longjump in that case.
76218         * lib/openat.c: Include dirname.h.
76219         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
76220         (rpl_openat, fdopendir, fstatat): Call openat_save_die
76221         and openat_restore_die rather than calling error directly.
76222         Don't include "error.h" or "exitfail.h"; they're no longer needed.
76223
76224         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
76225         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
76226         define.
76227
76228         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
76229         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
76230                             int utc, int nanoseconds);
76231         Background:
76232         date should not have to allocate a megabyte of virtual memory to
76233         handle a format argument like +%1048575T.  When implemented with
76234         strftime, it must allocate such a buffer, use strftime to fill it
76235         in, print it, then free it.
76236         With fprintftime, it simply prints everything and exits.
76237         With no need for memory allocation, that's one fewer way to fail.
76238         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
76239         optional field width, not before, so we accept %9:z, not %:9z.
76240         (my_strftime): Be sure to use L_('x') for literals.
76241
76242         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
76243         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
76244         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
76245         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
76246         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
76247         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
76248         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
76249         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
76250         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
76251         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
76252         * lib/xgethostname.c, lib/xreadlink.c:
76253         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
76254
76255         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
76256         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
76257         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
76258         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76259         and don't include <sys/file.h>).
76260
76261 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
76262
76263         Sync from coreutils.
76264
76265         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
76266         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
76267         [!LDAV_DONE]: Avoid unused variable warning.
76268
76269 2005-09-21  Bruno Haible  <bruno@clisp.org>
76270
76271         * lib/unicodeio.h (unicode_to_mb): New declaration.
76272
76273 2005-09-20  Derek Price  <derek@ximbiot.com>
76274
76275         * lib/getaddrinfo.c: Don't include <netdb.h> included from
76276         getaddrinfo.h.
76277
76278 2005-09-20  Bruno Haible  <bruno@clisp.org>
76279
76280         * gnulib-tool: Remove trailing slashes from the values specified for
76281         --source-base, --m4-base, --tests-base, --aux-dir.
76282         Suggested by Simon Josefsson <jas@extundo.com>.
76283
76284 2005-09-20  Bruno Haible  <bruno@clisp.org>
76285
76286         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
76287         func_modules_to_filelist, func_import, func_create_testdir): Make all
76288         sorting results locale-independent, so that gnulib-cache.m4 doesn't
76289         change when gnulib-tool is invoked in a different locale.
76290
76291 2005-09-19  Simon Josefsson  <jas@extundo.com>
76292
76293         * m4/socklen.m4: Fix typo.
76294
76295 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76296
76297         Use a consistent style for including <config.h>.
76298         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
76299         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
76300         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
76301         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
76302         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
76303         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
76304         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
76305         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
76306         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
76307         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
76308         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
76309         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
76310         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
76311         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
76312         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
76313         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
76314         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
76315         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
76316         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
76317         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
76318         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
76319         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
76320         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
76321         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
76322         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
76323         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
76324         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
76325         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
76326         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
76327         lib/xstrtoumax.c, lib/yesno.c:
76328         Standardize inclusion of config.h.
76329         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
76330         lib/inttostr.h:  Removed inclusion of config.h from header files.
76331         * lib/inttostr.c:  Adjusted in-tree users.
76332         * lib/timespec.h: Remove superfluous warning to include config.h.
76333         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
76334         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
76335         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
76336         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
76337         config.h with HAVE_CONFIG_H.
76338
76339 2005-09-19  Jim Meyering  <jim@meyering.net>
76340
76341         * modules/pathmax (License): Change to LGPL.
76342
76343 2005-09-19  Derek Price  <derek@ximbiot.com>
76344
76345         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
76346
76347 2005-09-19  Bruno Haible  <bruno@clisp.org>
76348
76349         * gnulib-tool (import): Provide default for --tests-base.
76350
76351 2005-09-19  Bruno Haible  <bruno@clisp.org>
76352
76353         * doc/quote.texi: New file, extracted from gnulib.texi.
76354         * doc/ctime.texi: New file, extracted from gnulib.texi.
76355         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
76356         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
76357         * doc/gnulib.texi: Include them.
76358
76359 2005-09-18  Bruno Haible  <bruno@clisp.org>
76360
76361         Portability fix.
76362         * gnulib-tool (func_readlink): New function.
76363         (func_ln_if_changed): Use it.
76364
76365 2005-09-18  Bruno Haible  <bruno@clisp.org>
76366
76367         * gnulib-tool: Support --with-tests also with --import.
76368         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
76369         (func_import): Use variables $testsbase and $inctests. Emit a
76370         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
76371         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
76372         SUBDIRS += $testsdir.
76373         (func_create_testdir): Update.
76374
76375 2005-09-18  Bruno Haible  <bruno@clisp.org>
76376
76377         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
76378         instead of $dry_run.
76379         (func_cp_if_changed, func_mv_if_changed): Remove functions.
76380         (func_ln_if_changed): Don't handle dry-run here.
76381         (func_import): In dry-run mode, detect more precisely which actions
76382         would be performed, and don't use "...ing" verbs.
76383
76384 2005-09-18  Bruno Haible  <bruno@clisp.org>
76385
76386         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
76387         (func_import): Use join on two temporary files instead of three nested
76388         loops, in order to determine which files are new or old.
76389
76390 2005-09-18  Bruno Haible  <bruno@clisp.org>
76391
76392         * gnulib-tool (func_import): Comment out code that spits out the
76393         new files with --dry-run.
76394
76395 2005-09-18  Bruno Haible  <bruno@clisp.org>
76396
76397         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
76398
76399 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76400
76401         * lib/stat-time.h: New file.
76402         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
76403         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
76404         in a different way.
76405         (timespec_cmp): New function.
76406         * lib/utimecmp.c: Include stat-time.h.
76407         (SYSCALL_RESOLUTION): Depend on whether various struct stat
76408         members exist, not on the obsolescent ST_MTIM_NSEC.
76409         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
76410
76411 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76412
76413         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
76414
76415 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76416
76417         * MODULES.html.sh (File system functions): Add stat-time.
76418         * modules/stat-time: New file.
76419         * modules/timespec (Files): Remove m4/st_mtim.m4; this
76420         is now done in a different way, by the stat-time module.
76421         * modules/utimecmp (Depends-on): Add stat-time.
76422
76423 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76424
76425         * m4/st_mtim.m4: Remove.  Superseded by...
76426         * m4/stat-time.m4: New file.
76427         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
76428         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
76429
76430 2005-09-15  Derek Price  <derek@ximbiot.com>
76431
76432         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
76433
76434 2005-09-15  Derek Price  <derek@ximbiot.com>
76435
76436         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
76437         * lib/regex_internal.c: Ditto, using this...
76438         (__GNUC_PREREQ): ...new macro.
76439         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
76440         using...
76441         (__GNUC_PREREQ): ...this new macro.
76442
76443         * lib/strstr.h: Include string.h. Define strstr as a macro here.
76444
76445 2005-09-15  Derek Price  <derek@ximbiot.com>
76446             Paul Eggert  <eggert@cs.ucla.edu>
76447
76448         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
76449         changes, consolidating in...
76450         * lib/regex_internal.h: ...this file.
76451
76452 2005-09-13  Jim Meyering  <jim@meyering.net>
76453
76454         * lib/canon-host.c: Filter through gnu indent and reword comments
76455         slightly.
76456         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
76457
76458 2005-09-13  Derek Price  <derek@ximbiot.com>
76459
76460         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
76461         failure.
76462         Reported by Jim Meyering  <jim@meyering.net>.
76463
76464 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76465
76466         * lib/base64.c: Typo.
76467         (base64_encode): Put b64str in initialized data section.
76468
76469 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
76470
76471         Merge glibc and coreutils changes into gnulib, plus a few
76472         extra fixes.
76473         * lib/md5.c: Use #error rather than a string.
76474         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
76475         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
76476         (__attribute__): Define to empty for non recent-GCC.
76477         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
76478         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
76479         Renamed from their non-__ counterparts, with new macros replacing
76480         them if not _LIBC.  Add __THROW attribute.
76481         (rol): Remove.
76482         (struct md5_ctx): Align buffer if using GCC.
76483         * lib/sha1.h (struct sha1_ctx): Likewise.
76484         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
76485         The old name was backwards.
76486         (NOTSWAP): Remove; not used.
76487         (rol): New macro, moved here from md5.h.
76488         (sha1_process_block): Remove a FIXME that doesn't make sense.
76489
76490 2005-09-12  Derek Price  <derek@ximbiot.com>
76491
76492         Return usable errors from canon-host.
76493         * lib/canon-host.h: New file.
76494         * lib/canon-host.c (canon_host): Wrap...
76495         (canon_host_r): ...this new function, which now relies exclusively on
76496         getaddrinfo.
76497         (ch_strerror): New function.
76498         (last_cherror): New global.
76499         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
76500         interface.
76501         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
76502         void *.
76503         (freeaddrinfo): Free ai->ai_canonname when set.
76504
76505 2005-09-12  Derek Price  <derek@ximbiot.com>
76506
76507         Make canon-host require getaddrinfo.
76508         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
76509         AC_LIBSOURCE canon-host.h.  Call...
76510         (gl_PREREQ_CANON_HOST): ...this new function, which requires
76511         gl_GETADDRINFO.
76512         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
76513
76514 2005-09-12  Derek Price  <derek@ximbiot.com>
76515
76516         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
76517         LGPL.
76518         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
76519
76520 2005-09-12  Derek Price  <derek@ximbiot.com>
76521
76522         * lib/gai_strerror.c: Include config.h when available.  Include
76523         getaddrinfo.h before other headers to test interface.
76524         Reported by Larry Jones <lawrence.jones@ugs.com>.
76525
76526 2005-09-12  Derek Price  <derek@ximbiot.com>
76527             Paul Eggert  <eggert@cs.ucla.edu>
76528
76529         * modules/glob (Files): Add glob-libc.h.
76530
76531 2005-09-12  Derek Price  <derek@ximbiot.com>
76532             Paul Eggert  <eggert@cs.ucla.edu>
76533
76534         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
76535         glob_.h, glob-libc.h.
76536         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
76537
76538 2005-09-12  Derek Price  <derek@ximbiot.com>
76539             Paul Eggert  <eggert@cs.ucla.edu>
76540
76541         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
76542         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
76543         protecting things that should be done only in gnulib contexts.
76544         * lib/glob_.h: New file, containing only the glob things needed for
76545         gnulib.
76546         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
76547         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
76548         (glob, globfree, glob_pattern_p): Now defined simply in terms of
76549         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
76550         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
76551         and to respect the namespace rules better.
76552
76553 2005-09-08  Simon Josefsson  <jas@extundo.com>
76554
76555         * modules/socklen: New file.
76556
76557 2005-09-08  Simon Josefsson  <jas@extundo.com>
76558
76559         * m4/socklen.m4: New file.
76560
76561 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76562
76563         * modules/utimens (Files): Add m4/utimbuf.m4, since
76564         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
76565         Reported by Sergey Poznyakoff.
76566
76567 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76568
76569         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
76570         definitions, since that's the preferred style in glibc.
76571         Fix a minor spacing issue, and update copyright notice to match
76572         glibc's.
76573
76574 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76575
76576         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
76577
76578 2005-09-06  Simon Josefsson  <jas@extundo.com>
76579
76580         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
76581         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
76582
76583 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76584
76585         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
76586         warning.
76587
76588 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76589
76590         * config/srclist.txt: Add glibc bug 1302.
76591
76592 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
76593
76594         Change bitset word type from unsigned int to unsigned long int,
76595         as this has better performance on typical 64-bit hosts.
76596         Port bitset code to hosts with unusual word sizes.
76597         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
76598         (build_collating_symbol):
76599         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
76600         argument is a bitset.  This is merely a style issue, but it makes
76601         it clearer that an entire array is expected.
76602         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
76603         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
76604         Port to the case where bitset_word is not the same as unsigned int.
76605         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76606         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
76607         Likewise.
76608         * lib/regexec.c (check_dst_limits_calc_pos_1,
76609         check_subexp_matching_top):
76610         (build_trtable, group_nodes_into_DFAstates):
76611         Likewise.
76612         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
76613         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
76614         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
76615         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
76616         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
76617         * lib/regcomp.c (optimize_subexps, lower_subexp):
76618         Work even if bitset_word has holes in its bitwise representation.
76619         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
76620         * lib/regexec.c (check_dst_limits_calc_pos_1,
76621         check_subexp_matching_top):
76622         Likewise.
76623         * lib/regex_internal.c (re_string_reconstruct):
76624         Don't assume UCHAR_MAX == 255.
76625         * lib/regex_internal.h (bitset_set_all): Likewise.
76626         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
76627         All uses changed.
76628         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
76629         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
76630         All uses changed.
76631         (BITSET_WORD_MAX): New macro.
76632         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
76633         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
76634         (bitset_empty, bitset_copy):
76635         Prefer sizeof (bitset) to multiplying it out ourselves.
76636         (bitset_not_merge): Remove; unused.
76637         (bitset_contain): Return bool, not unsigned int with one bit on.
76638         All callers changed.
76639         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
76640         alignment than re_node_set; do this by defining a new internal
76641         type struct dests_alloc and using it to allocate memory.
76642
76643 2005-09-05  Bruno Haible  <bruno@clisp.org>
76644
76645         * gnulib-tool (func_import): Fix comparison in handling of symbolic
76646         links.
76647
76648 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
76649
76650         * modules/size_max (Makefile.am): Add size_max.h
76651
76652 2005-09-04  Derek Price  <derek@ximbiot.com>
76653
76654         * gnulib-tool (func_import): Fix reversed $symbolic logic.
76655
76656 2005-09-03  Simon Josefsson  <jas@extundo.com>
76657
76658         * gnulib-tool: Fix typo.
76659
76660 2005-09-03  Simon Josefsson  <jas@extundo.com>
76661
76662         * config/srclist.txt: Add glibc bug 1293.
76663
76664 2005-09-03  Derek Price  <derek@ximbiot.com>
76665
76666         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
76667         From Larry Jones <lawrence.jones@ugs.com>.
76668
76669 2005-09-02  Simon Josefsson  <jas@extundo.com>
76670
76671         * modules/socklen: New file.
76672
76673 2005-09-02  Simon Josefsson  <jas@extundo.com>
76674
76675         * modules/havelib: New module.
76676
76677         * modules/gettext, modules/iconv, modules/lock, modules/readline:
76678         Use havelib.
76679
76680 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76681
76682         Check for arithmetic overflow when calculating sizes, to prevent
76683         some buffer-overflow issues.  These patches are conservative, in the
76684         sense that when I couldn't determine whether an overflow was possible,
76685         I inserted a run-time check.
76686         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
76687         macros.
76688         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
76689         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
76690         (re_xnrealloc, re_x2nrealloc): New inline functions.
76691         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
76692         parse_bracket_exp):
76693         (build_equiv_class, build_charclass): Check for arithmetic overflow
76694         in size expression calculations.
76695         * lib/regex_internal.c (re_string_realloc_buffers):
76696         (build_wcs_upper_buffer, re_node_set_add_intersect):
76697         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
76698         (re_dfa_add_node, register_state): Likewise.
76699         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
76700         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
76701         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
76702         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
76703
76704 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76705
76706         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76707         m4/ulonglong.m4.  Problem reported by Martin Lambers.
76708
76709 2005-09-02  Bruno Haible  <bruno@clisp.org>
76710
76711         Support for lib vs. lib64 distinction on biarch platforms.
76712         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
76713         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
76714         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
76715
76716 2005-09-02  Bruno Haible  <bruno@clisp.org>
76717
76718         * gnulib-tool (import): In the other first-use case, provide defaults
76719         as well.
76720
76721 2005-09-02  Bruno Haible  <bruno@clisp.org>
76722
76723         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
76724         patches not yet found in the latest gettext release.
76725
76726 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76727
76728         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
76729         to avoid a collision with bits/local_lim.h in glibc.
76730         All uses changed.  Problem reported by Dmitry V. Levin in
76731         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
76732
76733         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
76734         bugs in int versus size_t comparisons.
76735         (re_string_context_at): Fix bug where the code assumed that
76736         Idx is signed.
76737
76738         Use bool where appropriate.
76739         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
76740         All callers changed.
76741         (calc_eclosure_iter): Likewise, for ROOT arg.
76742         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
76743         (build_charclass_op): Likewise, for NON_MATCH arg.
76744         * lib/regex_internal.c (re_string_allocate, re_string_construct):
76745         (re_string_construct_common): Likewise, for ICASE arg.
76746         * lib/regexec.c (re_search_2_stub, re_search_stub):
76747         Likewise, for RET_LEN arg.
76748         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
76749         (set_regs): Likewise, for FL_BACKTRACK arg.
76750         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
76751         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
76752         (calc_eclosure_iter, parse_bracket_exp):
76753         Use bool for internal variables that are booleans.
76754         * lib/regexec.c (re_search_internal, check_matching,
76755         proceed_next_node):
76756         (set_regs, build_sifted_states, sift_states_bkref):
76757         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
76758         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76759         (find_collation_sequence_value):
76760         Likewise.
76761         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
76762         (re_node_set_compare):
76763         Return bool, not int. All callers changed.
76764         * lib/regexec.c (check_halt_node_context, check_dst_limits):
76765         (build_trtable, check_node_accept): Likewise.
76766         * lib/regex_internal.h: Include stdbool.h.
76767
76768         Fix bugs uncovered when converting to bool.
76769         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
76770         failure instead of charging ahead blindly.
76771         * lib/regex_internal.c (register_state): Likewise.
76772         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
76773         for freeing internal storage.
76774         (group_nodes_into_DFA_states): Use unsigned int, not int, for
76775         bitset pieces used as boolean, to avoid undefined behavior
76776         on hosts that do int overflow checking.
76777
76778 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76779
76780         * config/srclist.txt: Add glibc bugs 1285-1287.
76781
76782 2005-09-01  Jim Meyering  <jim@meyering.net>
76783
76784         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
76785         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
76786         Require gl_STAT_MACROS, too.
76787
76788 2005-09-01  Bruno Haible  <bruno@clisp.org>
76789
76790         * gnulib-tool (import): In the first-use case, provide defaults.
76791
76792 2005-09-01  Bruno Haible  <bruno@clisp.org>
76793
76794         * gnulib-tool (func_import): Remove the .tmp files.
76795
76796 2005-09-01  Bruno Haible  <bruno@clisp.org>
76797
76798         * gnulib-tool (func_import): Fix handling of symbolic links.
76799
76800 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76801
76802         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
76803         old glibc regex code mishandles strings longer than 2**31 bytes.
76804         This patch fixes this when the regex code is used in gnulib
76805         (i.e., outside glibc).
76806
76807         This patch should not affect the use of the regex code inside
76808         glibc.  No doubt this problem also needs to be handled for glibc
76809         as well, but the result will be an incompatible change to the
76810         glibc ABI, and the old ABI will have to be supported too.  That
76811         can be the the subject for another patch.
76812
76813         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
76814         governing whether the rest of this patch is active.  By default,
76815         the macro is disabled and the patch has no effect.
76816         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
76817         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
76818         (struct re_pattern_buffer, re_search, re_search_2, re_match):
76819         (re_match_2, re_set_registers): Use the new types.
76820         * lib/regex_internal.h (Idx, re_hashval_t): New types.
76821         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
76822         New macros.
76823         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
76824         (re_string_context_at, bin_tree_t, re_dfastate_t):
76825         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
76826         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
76827         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
76828         (re_string_char_size_at, re_string_wchar_at):
76829         (re_string_elem_size_at):
76830         Use the new types and macros to port to 64-bit hosts.
76831         Use unsigned types for internal values, so that the code
76832         mostly works even for arrays larger than SSIZE_MAX.
76833         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
76834         (search_duplicated_node, calc_eclosure_iter, fetch_number):
76835         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
76836         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
76837         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
76838         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
76839         (calc_inveclosure, parse_dup_op, build_range_exp):
76840         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
76841         (fetch_number, create_token_tree, mark_opt_subexp):
76842         Likewise.
76843         * lib/regex_internal.c (re_string_construct_common,
76844         create_ci_newstate):
76845         (create_cd_newstate, re_string_allocate, re_string_construct):
76846         (re_string_realloc_buffers, build_wcs_upper_buffer):
76847         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76848         (re_string_reconstruct, re_string_peek_byte_case):
76849         (re_string_fetch_byte_case, re_string_context_at):
76850         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76851         (re_node_set_init_copy, re_node_set_add_intersect):
76852         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76853         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76854         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76855         (re_acquire_state, re_acquire_state_context, register_state):
76856         Likewise.
76857         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
76858         search_cur_bkref_entry):
76859         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
76860         (re_search_internal, re_search_2_stub, re_search_stub)
76861         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
76862         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
76863         (update_cur_sifted_state, check_dst_limits):
76864         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76865         (check_subexp_limits, sift_states_bkref, merge_state_array):
76866         (check_subexp_matching_top, get_subexp, get_subexp_sub):
76867         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
76868         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76869         (expand_bkref_cache, check_node_accept_bytes):
76870         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
76871         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
76872         (acquire_init_state_context, check_halt_node_context):
76873         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
76874         (sift_states_backward, clean_state_log_if_needed):
76875         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
76876         (find_recover_state, transit_state_sb, transit_state_mb):
76877         (transit_state_bkref, build_trtable, match_ctx_clean):
76878         Likewise.
76879         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
76880         to work around an assumption that REG_MISSING is negative.
76881
76882         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
76883         (seek_collating_symbol_entry) [defined _LIBC]:
76884         (lookup_collation_sequence_value) [defined _LIBC]:
76885         (build_range_exp, build_collating_symbol) [defined _LIBC]:
76886         Use prototypes rather than old-style function definitions.
76887         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
76888         (transit_state_sb) [0]:
76889         (find_collation_sequence_value) [defined _LIBC]: Likewise.
76890
76891         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
76892         rm_eo.
76893
76894         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
76895         (optimize_subexps, lower_subexp):
76896         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
76897         since the signed shift might overflow.  Use 1u<<31 instead.
76898         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76899         Likewise.
76900         * lib/regexec.c (check_dst_limits_calc_pos_1,
76901         check_subexp_matching_top): Likewise.
76902
76903         * lib/regcomp.c (optimize_subexps, lower_subexp):
76904         Use CHAR_BIT rather than 8, for clarity.
76905         * lib/regexec.c (check_dst_limits_calc_pos_1):
76906         (check_subexp_matching_top): Likewise.
76907         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
76908         have to worry about portability issues when shifting it left.
76909         Remove no-longer-needed test for table_size > 0.
76910         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
76911         in a word, as the resulting behavior is undefined.
76912         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
76913         in one case, a <= should have been an <, and in another case the
76914         whole test was missing.
76915         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
76916         the standard name CHAR_BIT.
76917         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
76918         this is not true on one's complement and signed-magnitude hosts.
76919
76920         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
76921         next_last_offset.
76922         (struct re_dfa_t): Remove unused member states_alloc.
76923         * lib/regcomp.c (init_dfa): Don't initialize unused members.
76924
76925 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76926
76927         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
76928         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
76929         and large-file glibc and in 32-bit large-file Solaris.
76930
76931 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76932
76933         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
76934         lengths fit in regoff_t; this isn't true if regoff_t is the same
76935         width as size_t.
76936         * lib/regex.c (re_search_internal): 5th arg is LAST_START
76937         (= START + RANGE) instead of RANGE.  This avoids overflow
76938         problems when regoff_t is the same width as size_t.
76939         All callers changed.
76940         (re_search_2_stub): Check for overflow when adding the
76941         sizes of the two strings.
76942         (re_search_stub): Check for overflow when adding START
76943         to RANGE; if it occurs, substitute the extreme value.
76944
76945 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76946
76947         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
76948
76949 2005-08-31  Jim Meyering  <jim@meyering.net>
76950
76951         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
76952         a pointer-to-const.
76953         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
76954         (register_state): Likewise.
76955         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
76956         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76957         (group_nodes_into_DFAstates): Likewise.
76958
76959 2005-08-31  Jim Meyering  <jim@meyering.net>
76960
76961         * check-module: Add a FIXME comment.
76962
76963 2005-08-31  Eric Blake  <ebb9@byu.net>
76964
76965         * modules/unistd-safer (Files): Add unistd--.h.
76966         * modules/stdio-safer (Files): Add stdio--.h.
76967
76968 2005-08-31  Derek Price  <derek@ximbiot.com>
76969
76970         * lib/getdelim.c (getdelim): Return EOF on EOF.
76971         Reported by Larry Jones <lawrence.jones@ugs.com>.
76972
76973 2005-08-31  Bruno Haible  <bruno@clisp.org>
76974
76975         Avoid unnecessary diffs in the generated lib/Makefile.am.
76976         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
76977         the generated files.
76978         (func_import): Don't set cmd.
76979
76980 2005-08-31  Bruno Haible  <bruno@clisp.org>
76981
76982         * lib/strstr.c: Include <stddef.h>, for NULL.
76983         * lib/strcasestr.c: Likewise.
76984         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76985
76986 2005-08-31  Bruno Haible  <bruno@clisp.org>
76987
76988         * gnulib-tool: New option --macro-prefix.
76989         (func_import): Use macro_prefix.
76990         (import): Handle option --macro-prefix.
76991
76992 2005-08-31  Bruno Haible  <bruno@clisp.org>
76993
76994         * gnulib-tool (import): Rename most ac_* variables to cached_*.
76995         Also use new variables cached_lgpl, cached_libtool.
76996
76997 2005-08-31  Bruno Haible  <bruno@clisp.org>
76998
76999         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
77000         always instantiating them.
77001
77002 2005-08-31  Bruno Haible  <bruno@clisp.org>
77003
77004         * gnulib-tool (func_import): Read the previous cached settings
77005         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
77006         earlier added by gnulib but are now dropped. Warn when a gnulib file
77007         overwrites a non-gnulib file.
77008
77009 2005-08-31  Bruno Haible  <bruno@clisp.org>
77010
77011         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
77012         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
77013         projects that don't keep autogenerated files in CVS. Put into
77014         actioncmd only the specified modules, not the transitive closure.
77015
77016 2005-08-31  Bruno Haible  <bruno@clisp.org>
77017
77018         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
77019         Create directories that shall be filled.
77020         (import): Don't look for gl_* macros in configure.ac. Recurse across
77021         all directories containing a gnulib-cache.m4 files, if meaningful.
77022
77023 2005-08-31  Bruno Haible  <bruno@clisp.org>
77024
77025         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
77026         (import): Set seen_libtool when we see gl_LIBTOOL.
77027
77028 2005-08-31  Bruno Haible  <bruno@clisp.org>
77029
77030         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
77031         declaration macro definitions from generated gnulib.m4.
77032
77033 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
77034
77035         * lib/iconvme.h: Add prototype for iconv_alloc.
77036
77037 2005-08-29  Simon Josefsson  <jas@extundo.com>
77038
77039         * lib/iconvme.c: Fix errno.
77040
77041 2005-08-29  Bruno Haible  <bruno@clisp.org>
77042
77043         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
77044         that it works when the directory contains spaces.
77045
77046 2005-08-29  Bruno Haible  <bruno@clisp.org>
77047
77048         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
77049
77050 2005-08-29  Bruno Haible  <bruno@clisp.org>
77051
77052         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
77053         Emit more advice.
77054
77055 2005-08-29  Bruno Haible  <bruno@clisp.org>
77056         and Stepan Kasal  <kasal@ucw.cz>
77057
77058         * check-module: If more parameters are given, check each of them
77059         separately; add more exceptions, as noted by Jim Meyering.
77060         (check_module): New procedure.
77061         (%exempt_header): Now contains all exceptions.
77062
77063 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
77064
77065         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
77066
77067 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
77068
77069         * lib/iconvme.c: Split iconv_string into iconv_alloc.
77070
77071 2005-08-28  Bruno Haible  <bruno@clisp.org>
77072
77073         * m4/gnulib-tool.m4: New file.
77074
77075 2005-08-27  Jim Meyering  <jim@meyering.net>
77076
77077         * modules/unistd-safer (Files): Add pipe-safer.c.
77078         * modules/fcntl-safer (Files): Add creat-safer.c.
77079
77080 2005-08-27  Jim Meyering  <jim@meyering.net>
77081
77082         * m4/stdlib-safer.m4: New file.  From coreutils.
77083         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
77084         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
77085         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
77086         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
77087         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
77088
77089 2005-08-27  Jim Meyering  <jim@meyering.net>
77090
77091         * lib/fopen-safer.c: Merge minor changes from coreutils.
77092         * lib/dup-safer.c: Likewise.
77093         * lib/fd-safer.c: Likewise.
77094
77095         Merge from coreutils.
77096         * lib/stdio--.h: New file.
77097         * lib/stdlib--.h: New file.
77098         * lib/mkstemp-safer.c: New file.
77099
77100         GNU tar needs these.
77101         * lib/pipe-safer.c: New file.
77102         * lib/creat-safer.c: New file.
77103         * lib/fcntl--.h (creat): Define to creat_safer.
77104         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
77105         * lib/unistd--.h (pipe): Define to pipe_safer.
77106         * lib/unistd-safer.h: Declare pipe_safer.
77107
77108 2005-08-26  Simon Josefsson  <jas@extundo.com>
77109
77110         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
77111         Haible <bruno@clisp.org>.
77112
77113 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
77114
77115         * lib/regex_internal.h: Remove all references to
77116         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
77117         or better.
77118         (bitset_not, bitset_merge, bitset_not_merge):
77119         (bitset_mask, re_string_allocate, re_string_construct):
77120         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
77121         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
77122         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
77123         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
77124         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77125         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77126         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
77127         (re_acquire_state_context):
77128         Remove unnecessary forward decls.
77129         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
77130         Put __attribute at function definition,
77131         now that the function decl has been removed.
77132         * lib/regex_internal.c (re_string_peek_byte_case):
77133         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
77134         Likewise.
77135
77136 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
77137
77138         * m4/regex.m4: Add AC_PREREQ(2.50).
77139         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
77140
77141 2005-08-25  Simon Josefsson  <jas@extundo.com>
77142
77143         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
77144         __fsetlocking.
77145
77146 2005-08-25  Simon Josefsson  <jas@extundo.com>
77147
77148         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
77149         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
77150         GLIBC specific code.
77151
77152 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77153
77154         Make regex safe for g++.  This fixes one real bug (an "err"
77155         that should have been "*err").  g++ problem reported by
77156         Sam Steingold.
77157         * lib/regex_internal.h (re_calloc): New macro, consistent with
77158         re_malloc etc.  All callers of calloc changed to use re_calloc.
77159         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
77160         not int.  All callers changed.
77161         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
77162         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
77163         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
77164         (find_recover_state): Change "err" to "*err"; this fixes what
77165         appears to be a real bug.
77166         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
77167         versus int.
77168
77169 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77170
77171         * modules/regex (Depends-on): Add malloc, since the code
77172         assumes that !malloc(0) means failure.
77173
77174 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77175
77176         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
77177
77178         alloca modernization/simplification for regex.
77179         * lib/regex.c: Remove portability cruft for alloca.  This no longer
77180         needs to be at the start of the file, and can be moved into
77181         regex_internal.h and simplified.
77182         * lib/regex_internal.h: Include <alloca.h>.
77183         (__libc_use_alloca) [!defined _LIBC]: New macro.
77184         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
77185         now works outside glibc.
77186
77187 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77188
77189         * config/srclist.txt: Add glibc bugs 1241, 1245.
77190
77191 2005-08-25  Jim Meyering  <jim@meyering.net>
77192
77193         * lib/open-safer.c: Include <config.h>.
77194         Otherwise, we'd lose LARGEFILE support in any file using
77195         e.g. "fcntl--.h"
77196
77197 2005-08-25  Bruno Haible  <bruno@clisp.org>
77198
77199         * m4/minmax.m4: Require autoconf 2.52.
77200         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
77201         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
77202         alternatives of translit over the alphabet.
77203         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
77204
77205 2005-08-24  Simon Josefsson  <jas@extundo.com>
77206
77207         * tests/test-getpass.c: New file.
77208
77209 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77210
77211         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
77212         for GNU regex features.
77213
77214 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77215
77216         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
77217         * lib/regex.h (regerror): Likewise.
77218
77219         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
77220         requires this.  (The code never needed it.)
77221
77222         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
77223         All uses of recently-renamed identifiers changed to use the new,
77224         POSIX-compliant names.  The code will build and run just fine
77225         without these changes, but it's better to eat our own dog food
77226         and use the standard-conforming names.
77227
77228         * lib/regex.h: Fix a multitude of POSIX name space violations.
77229         These changes have an effect only for programs that define
77230         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
77231         do not change anything for programs compiled in the normal way.
77232         Also, there is no effect on the ABI.
77233
77234         (_REGEX_SOURCE): New macro.
77235         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
77236         defined and _GNU_SOURCE is not; this fixes a name space violation.
77237
77238         Rename the following macros to obey POSIX requirements.
77239         The old names are still visible as macros if _REGEX_SOURCE is defined.
77240         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
77241         RE_BACKSLASH_ESCAPE_IN_LISTS.
77242         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
77243         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
77244         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
77245         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
77246         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
77247         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
77248         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
77249         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
77250         (REG_INTERVALS): renamed from RE_INTERVALS.
77251         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
77252         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
77253         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
77254         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
77255         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
77256         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
77257         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
77258         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
77259         RE_UNMATCHED_RIGHT_PAREN_ORD.
77260         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
77261         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
77262         (REG_DEBUG): renamed from RE_DEBUG.
77263         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
77264         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
77265         unusual, since we can't clash with the POSIX REG_ICASE.
77266         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
77267         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
77268         (REG_NO_SUB): renamed from RE_NO_SUB.
77269         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
77270         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
77271         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
77272         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
77273         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
77274         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
77275         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
77276         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
77277         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
77278         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
77279         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
77280         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
77281         RE_SYNTAX_POSIX_MINIMAL_BASIC.
77282         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
77283         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
77284         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
77285         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
77286         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
77287         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
77288         (REG_FIXED): Renamed from REGS_FIXED.
77289         (REG_NREGS): Renamed from RE_NREGS.
77290
77291         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
77292         of other REG_* macros, since POSIX says the user is allowed to
77293         #undef these macros selectively.
77294
77295         (reg_errcode_t): Update comment stating what other tables need
77296         to be consistent.
77297
77298         Rename the following enum values to obey POSIX requirements.
77299         The old names are still visible as macros.
77300         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
77301         is not defined, since GNU is supposed to be a superset of POSIX as
77302         much as possible, and since we want reg_errcode_t to be a signed
77303         type for implementation consistency.
77304         (_REG_NOERROR): Renamed from REG_NOERROR.
77305         (_REG_NOMATCH): Renamed from REG_NOMATCH.
77306         (_REG_BADPAT): Renamed from REG_BADPAT.
77307         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
77308         (_REG_ECTYPE): Renamed from REG_ECTYPE.
77309         (_REG_EESCAPE): Renamed from REG_EESCAPE.
77310         (_REG_ESUBREG): Renamed from REG_ESUBREG.
77311         (_REG_EBRACK): Renamed from REG_EBRACK.
77312         (_REG_EPAREN): Renamed from REG_EPAREN.
77313         (_REG_EBRACE): Renamed from REG_EBRACE.
77314         (_REG_BADBR): Renamed from REG_BADBR.
77315         (_REG_ERANGE): Renamed from REG_ERANGE.
77316         (_REG_ESPACE): Renamed from REG_ESPACE.
77317         (_REG_BADRPT): Renamed from REG_BADRPT.
77318         (_REG_EEND): Renamed from REG_EEND.
77319         (_REG_ESIZE): Renamed from REG_ESIZE.
77320         (_REG_ERPAREN): Renamed from REG_ERPAREN.
77321         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
77322         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
77323         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
77324         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
77325
77326         (_REG_RE_NAME, _REG_RM_NAME): New macros.
77327         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
77328         changed.  But support the old name if the new one is not defined
77329         and if _REGEX_SOURCE.
77330
77331         Change the following member names in struct re_pattern_buffer.
77332         The old names are still supported if !_REGEX_SOURCE.
77333         The new names are always supported, regardless of _REGEX_SOURCE.
77334         (re_buffer): Renamed from buffer.
77335         (re_allocated): Renamed from allocated.
77336         (re_used): Renamed from used.
77337         (re_syntax): Renamed from syntax.
77338         (re_fastmap): Renamed from fastmap.
77339         (re_translate): Renamed from translate.
77340         (re_can_be_null): Renamed from can_be_null.
77341         (re_regs_allocated): Renamed from regs_allocated.
77342         (re_fastmap_accurate): Renamed from fastmap_accurate.
77343         (re_no_sub): Renamed from no_sub.
77344         (re_not_bol): Renamed from not_bol.
77345         (re_not_eol): Renamed from not_eol.
77346         (re_newline_anchor): Renamed from newline_anchor.
77347
77348         Change the following member names in struct re_registers.
77349         The old names are still supported if !_REGEX_SOURCE.
77350         The new names are always supported, regardless of _REGEX_SOURCE.
77351         (rm_num_regs): Renamed from num_regs.
77352         (rm_start): Renamed from start.
77353         (rm_end): Renamed from end.
77354
77355         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
77356         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
77357         Prepend __ to parameter names.
77358
77359         Undo yesterday's changes.
77360
77361 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77362
77363         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
77364         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
77365         lib/regex.c.
77366
77367 2005-08-24  Jim Meyering  <jim@meyering.net>
77368
77369         Sync from coreutils.
77370         * m4/fcntl-safer.m4: New file.
77371
77372         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
77373         and object files for this module.
77374
77375 2005-08-24  Jim Meyering  <jim@meyering.net>
77376
77377         Sync from coreutils.
77378         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
77379
77380 2005-08-24  Jim Meyering  <jim@meyering.net>
77381
77382         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
77383         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
77384
77385 2005-08-24  Jim Meyering  <jim@meyering.net>
77386
77387         * modules/fcntl-safer: New module.
77388         * modules/fts (Depends-on): Add fcntl-safer.
77389         * MODULES.html.sh (File descriptor based Input/Output):
77390         Add fcntl-safer.
77391
77392 2005-08-24  Bruno Haible  <bruno@clisp.org>
77393
77394         Support for unit test modules.
77395         * modules/README: Mention tests modules.
77396         * modules/TEMPLATE-TESTS: New file.
77397         * gnulib-tool: New options --extract-tests-module, --with-tests and
77398         --tests-base (unused for the moment).
77399         (testsbase, inctests): New variables.
77400         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
77401         (func_verify_module): Exclude TEMPLATE-TESTS.
77402         (func_verify_nontests_module, func_verify_tests_module): New functions.
77403         (func_get_dependencies): Add implicit dependency for tests modules.
77404         (func_get_tests_module): New function.
77405         (func_modules_transitive_closure): When --with-tests was specified,
77406         include the unit tests as well, unless explicitly avoided.
77407         (func_emit_lib_Makefile_am): Ignore the tests modules here.
77408         (func_emit_tests_Makefile_am): New function.
77409         (func_create_testdir): When --with-tests was specified, emit a
77410         tests/ directory.
77411         * MODULES.html.sh (Future developments): Update.
77412
77413 2005-08-24  Bruno Haible  <bruno@clisp.org>
77414
77415         * modules/tls-tests: New file.
77416         * tests/test-tls.c: New file, from GNU gettext.
77417
77418 2005-08-24  Bruno Haible  <bruno@clisp.org>
77419
77420         * modules/lock-tests: New file.
77421         * tests/test-lock.c: New file, from GNU gettext.
77422
77423 2005-08-24  Bruno Haible  <bruno@clisp.org>
77424
77425         * lib/lock.h: Add multiple inclusion guard.
77426         * lib/tls.h: Add multiple inclusion guard.
77427
77428 2005-08-24  Bruno Haible  <bruno@clisp.org>
77429
77430         * gnulib-tool: Add support for the --aux-dir option to
77431         --create-testdir, --create-megatestdir, --test, --megatest.
77432         (func_create_testdir, func_create_megatestdir): Optionally emit a
77433         AC_CONFIG_AUX_DIR directive.
77434         (create-testdir, create-megatestdir, test, megatest): Provide a
77435         default value for $auxdir.
77436
77437 2005-08-24  Bruno Haible  <bruno@clisp.org>
77438
77439         * gnulib-tool (import): Use compound statement instead of subshell
77440         where possible.
77441
77442 2005-08-24  Bruno Haible  <bruno@clisp.org>
77443
77444         * gnulib-tool (import): Change --aux-dir default to "build-aux".
77445
77446 2005-08-24  Bruno Haible  <bruno@clisp.org>
77447
77448         * gnulib-tool (func_version): Update.
77449
77450 2005-08-24  Bruno Haible  <bruno@clisp.org>
77451
77452         * gnulib-tool (func_import, func_create_testdir,
77453         func_create_megatestdir): Quote all autoconf macro arguments.
77454
77455 2005-08-24  Bruno Haible  <bruno@clisp.org>
77456
77457         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
77458         option --force, because --force causes the aclocal.m4 of each
77459         subdirectory to be newer than the corresponding config.h.in.
77460
77461 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77462
77463         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
77464         All contents moved to gl_REGEX.
77465         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
77466         assume that it does.
77467
77468 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77469
77470         * lib/regex.h (REG_NOSYS)
77471         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
77472         Define, since POSIX requires it as of 2001.
77473         (_REG_ENOSYS)
77474         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
77475         New private symbol, used to keep the enum signed in all cases.
77476         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
77477         Youngman in
77478         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
77479
77480         * lib/regex_internal.c (re_string_skip_chars, register_state):
77481         (calc_state_hash):
77482         Remove forward decls; no longer needed now that we use prototypes.
77483         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
77484         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
77485         (clean_state_log_if_needed): Likewise.
77486
77487 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77488
77489         * config/srclist.txt: Add glibc bugs 1231-1233.
77490
77491 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77492
77493         Fix problems reported by Sam Steingold in
77494         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
77495         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
77496         assumed that reg_errcode_t is a signed type, which is not
77497         necessarily true if _XOPEN_SOURCE is not defined.
77498         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
77499         since some compilers warn about it otherwise.
77500
77501 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77502
77503         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
77504         (init_word_char, create_initial_state, duplicate_node_closure):
77505         (fetch_token, peek_token_bracket, build_range_exp):
77506         (build_collating_symbol): Remove forward decls; no longer needed
77507         now that we use prototypes.
77508
77509         * lib/regcomp.c:
77510         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
77511         (re_compile_fastmap_iter, regcomp, regerror, regfree):
77512         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
77513         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
77514         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
77515         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
77516         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
77517         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
77518         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
77519         (build_range_exp, build_collating_symbol, parse_bracket_exp):
77520         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
77521         (build_charclass, build_charclass_op, fetch_number, create_tree):
77522         (create_token_tree, mark_opt_subexp, duplicate_tree):
77523         Use prototypes rather than old-style definitions.
77524
77525         * lib/regex_internal.c:
77526         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
77527         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
77528         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77529         (re_string_reconstruct, re_string_peek_byte_case):
77530         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
77531         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77532         (re_node_set_init_copy, re_node_set_add_intersect):
77533         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77534         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77535         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77536         (re_acquire_state, re_acquire_state_context, register_state):
77537         (create_ci_newstate, create_cd_newstate, free_state):
77538         Likewise.
77539         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
77540         re_search_2):
77541         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
77542         (re_search_internal, prune_impossible_nodes):
77543         (acquire_init_state_context, check_matching, static):
77544         (check_halt_node_context, check_halt_state_context, proceed_next_node):
77545         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
77546         (update_regs, sift_states_backward, build_sifted_states):
77547         (clean_state_log_if_needed, merge_state_array):
77548         (update_cur_sifted_state, add_epsilon_src_nodes):
77549         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
77550         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
77551         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
77552         (find_recover_state, check_subexp_matching_top, transit_state_mb):
77553         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
77554         (check_arrival, check_arrival_add_next_nodes):
77555         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77556         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77557         (check_node_accept_bytes, check_node_accept, extend_buffers):
77558         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
77559         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
77560         (sift_ctx_init):
77561         Likewise.
77562
77563         * lib/regex_internal.h:
77564         (re_string_allocate, re_string_construct, re_string_reconstruct):
77565         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
77566         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
77567         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
77568         (re_string_context_at, re_string_peek_byte_case):
77569         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
77570         is defined, since we now use prototypes always.
77571
77572         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
77573         C89 or better.  All uses removed.
77574
77575 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77576
77577         * config/srclist.txt: Add glibc bugs 1220-1227.
77578
77579 2005-08-20  Jim Meyering  <jim@meyering.net>
77580
77581         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
77582         of unused local, dfa.
77583
77584 2005-08-20  Bruno Haible  <bruno@clisp.org>
77585
77586         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
77587
77588 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77589
77590         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
77591         (re_node_set_insert_last, re_dfa_add_node):
77592         Rename local variables to avoid GCC shadowing warnings.
77593
77594 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77595
77596         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
77597         [defined lint]: Suppress bogus uninitialized-variable warnings.
77598
77599         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
77600         and let the caller return REG_ESPACE if out of space.  This
77601         removes an uninitialied-variable warning with GCC 4.0.1, and also
77602         avoids taking the address of a local variable.  All callers
77603         changed.
77604
77605 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77606
77607         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
77608         $LIBCSRC/posix/regexec.c.
77609         Add glibc bug 1217 for regcomp.c.
77610
77611 2005-08-19  Jim Meyering  <jim@meyering.net>
77612
77613         * lib/regexec.c (proceed_next_node): Redo local variables to
77614         avoid GCC shadowing warnings.
77615
77616 2005-08-18  Bruno Haible  <bruno@clisp.org>
77617
77618         * lib/strstr.c (strstr): Fix return value in multibyte case.
77619         * lib/strcasestr.c (strcasestr): Likewise.
77620
77621 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77622
77623         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
77624
77625 2005-08-17  Jim Meyering  <jim@meyering.net>
77626
77627         Make the %s format (seconds since the epoch) work for a negative
77628         number and when used with a zero-padded field width, e.g. %015s.
77629
77630         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
77631         label so that it precedes the code to set `digits'.  Otherwise,
77632         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
77633         print `00-22'.  Now, it prints `-0022', as it should.
77634
77635 2005-08-17  Bruno Haible  <bruno@clisp.org>
77636
77637         * modules/strstr (Files): Add m4/mbrtowc.m4.
77638         (Depends-on): Add mbuiter.
77639
77640 2005-08-17  Bruno Haible  <bruno@clisp.org>
77641
77642         * modules/strcasestr: New file.
77643         * MODULES.html.sh (String handling, based on ANSI C 89): Add
77644         strcasestr.
77645
77646 2005-08-17  Bruno Haible  <bruno@clisp.org>
77647
77648         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
77649
77650 2005-08-17  Bruno Haible  <bruno@clisp.org>
77651
77652         * modules/mbuiter: New file.
77653         * MODULES.html.sh (Extended multibyte and wide character utilities):
77654         Add mbuiter.
77655
77656 2005-08-17  Bruno Haible  <bruno@clisp.org>
77657
77658         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
77659         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
77660
77661 2005-08-17  Bruno Haible  <bruno@clisp.org>
77662
77663         * m4/strcasestr.m4: New file.
77664
77665 2005-08-17  Bruno Haible  <bruno@clisp.org>
77666
77667         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
77668         * lib/strstr.c: Completely rewritten, with multibyte locale support.
77669
77670 2005-08-17  Bruno Haible  <bruno@clisp.org>
77671
77672         * lib/strcasestr.h: New file.
77673         * lib/strcasestr.c: New file.
77674
77675 2005-08-17  Bruno Haible  <bruno@clisp.org>
77676
77677         * lib/strcasecmp.c: Use mbuiter.h.
77678
77679 2005-08-17  Bruno Haible  <bruno@clisp.org>
77680
77681         * lib/mbuiter.h: New file.
77682
77683 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77684
77685         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
77686         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
77687         and gl_GETOPT are both invoked via different paths (as happens
77688         with GNU tar CVS because it uses both argp and getopt), the former
77689         wins.
77690
77691 2005-08-16  Bruno Haible  <bruno@clisp.org>
77692
77693         * modules/tls: New file.
77694         * MODULES.html.sh (Multithreading): Add tls.
77695
77696 2005-08-16  Bruno Haible  <bruno@clisp.org>
77697
77698         * modules/strnlen1: New file.
77699         * MODULES.html.sh (String handling): Add strnlen1.
77700
77701 2005-08-16  Bruno Haible  <bruno@clisp.org>
77702
77703         * modules/strcase (Files): Add m4/mbrtowc.m4.
77704         (Depends-on): Add strnlen1, mbchar.
77705
77706 2005-08-16  Bruno Haible  <bruno@clisp.org>
77707
77708         * modules/mbiter: New file.
77709         * MODULES.html.sh (Extended multibyte and wide character utilities):
77710         Add mbiter.
77711
77712 2005-08-16  Bruno Haible  <bruno@clisp.org>
77713
77714         * modules/mbfile: New file.
77715         * MODULES.html.sh (Extended multibyte and wide character utilities):
77716         Add mbfile.
77717
77718 2005-08-16  Bruno Haible  <bruno@clisp.org>
77719
77720         * modules/mbchar: New file.
77721         * MODULES.html.sh (Extended multibyte and wide character utilities):
77722         New section.
77723
77724 2005-08-16  Bruno Haible  <bruno@clisp.org>
77725
77726         * m4/tls.m4: New file, from GNU gettext.
77727
77728 2005-08-16  Bruno Haible  <bruno@clisp.org>
77729
77730         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
77731         always.
77732         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
77733
77734 2005-08-16  Bruno Haible  <bruno@clisp.org>
77735
77736         * m4/mbiter.m4: New file.
77737
77738 2005-08-16  Bruno Haible  <bruno@clisp.org>
77739
77740         * m4/mbfile.m4: New file.
77741
77742 2005-08-16  Bruno Haible  <bruno@clisp.org>
77743
77744         * m4/mbchar.m4: New file.
77745
77746 2005-08-16  Bruno Haible  <bruno@clisp.org>
77747
77748         * lib/tls.h: New file, from GNU gettext.
77749         * lib/tls.c: New file, from GNU gettext.
77750
77751 2005-08-16  Bruno Haible  <bruno@clisp.org>
77752
77753         * lib/strnlen1.h: New file.
77754         * lib/strnlen1.c: New file.
77755
77756 2005-08-16  Bruno Haible  <bruno@clisp.org>
77757
77758         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
77759         (mbi_init): Update.
77760         (mbi_avail, mbi_advance): Let the iteration end before the terminating
77761         NUL byte, not after it.
77762
77763 2005-08-16  Bruno Haible  <bruno@clisp.org>
77764
77765         * lib/strcase.h (strcasecmp): Add note in comments.
77766         * lib/strncasecmp.c: Use code from strcasecmp.c.
77767         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
77768         (strcasecmp): Work correctly in multibyte locales.
77769
77770 2005-08-16  Bruno Haible  <bruno@clisp.org>
77771
77772         * lib/mbiter.h: New file.
77773
77774 2005-08-16  Bruno Haible  <bruno@clisp.org>
77775
77776         * lib/mbfile.h: New file.
77777
77778 2005-08-16  Bruno Haible  <bruno@clisp.org>
77779
77780         * lib/mbchar.h: New file.
77781         * lib/mbchar.c: New file.
77782
77783 2005-08-16  Bruno Haible  <bruno@clisp.org>
77784
77785         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
77786         the valid ones. Makes the comparison operations transitive:
77787         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
77788         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
77789
77790 2005-08-15  Simon Josefsson  <jas@extundo.com>
77791
77792         * modules/ssize_t (License): Change to 'unlimited'.
77793
77794         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
77795
77796 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77797
77798         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
77799         Add comments for each pending glibc patch.
77800
77801 2005-08-15  Bruno Haible  <bruno@clisp.org>
77802
77803         * lib/regex.h (__restrict_arr): Don't define to __restrict if
77804         __cplusplus is defined.
77805
77806 2005-08-14  Jim Meyering  <jim@meyering.net>
77807
77808         Sync from coreutils.
77809
77810         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
77811         Use the hash-table-based cycle-detection code not just when
77812         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
77813         Reported by James Youngman in
77814         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
77815         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
77816         FTS_TIGHT_CYCLE_CHECK.
77817         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
77818         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
77819         once again.
77820         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
77821         * lib/fts.c (fd_safer): Remove decl.
77822         Include fcntl--.h rather than unistd-safer.h
77823         (fts_safe_changedir): Don't call fd_safer; no longer needed
77824         now that we include fcntl--.h.
77825
77826 2005-08-12  Simon Josefsson  <jas@extundo.com>
77827
77828         * modules/getndelim2: Use ssize_t module.
77829         * modules/getnline: Likewise.
77830         * modules/safe-read: Likewise.
77831         * modules/xreadlink: Likewise.
77832
77833         * modules/ssize_t: New file.
77834
77835 2005-08-12  Simon Josefsson  <jas@extundo.com>
77836
77837         * m4/readline.m4: Look for termcap, curses or ncurses if required.
77838
77839 2005-08-12  Simon Josefsson  <jas@extundo.com>
77840
77841         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77842         ssize_t.
77843
77844 2005-08-12  Simon Josefsson  <jas@extundo.com>
77845
77846         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
77847         readline, getdelim and check_version.
77848         (Support for systems lacking ISO C 99: Sizes of integer types):
77849         Add size_max.
77850
77851 2005-08-12  Bruno Haible  <bruno@clisp.org>
77852
77853         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
77854
77855 2005-08-11  Simon Josefsson  <jas@extundo.com>
77856
77857         * modules/readline: New file.
77858
77859         * modules/strnlen (Files): Add strnlen.h.
77860
77861 2005-08-11  Simon Josefsson  <jas@extundo.com>
77862
77863         * m4/readline.m4: New file.
77864
77865 2005-08-11  Simon Josefsson  <jas@extundo.com>
77866
77867         * lib/readline.h, readline.c: New file.
77868
77869 2005-08-11  Simon Josefsson  <jas@extundo.com>
77870
77871         * doc/gnulib.texi (Initial import, Finishing touches): Mention
77872         gl_AVOID.
77873
77874 2005-08-11  Bruno Haible  <bruno@clisp.org>
77875
77876         * lib/strnlen.h (strnlen): Change parameter name to match comment.
77877
77878 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
77879
77880         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
77881
77882 2005-08-10  Simon Josefsson  <jas@extundo.com>
77883
77884         * tests/test-iconvme.c: New file.
77885
77886 2005-08-10  Simon Josefsson  <jas@extundo.com>
77887
77888         * m4/strnlen.m4: New file.
77889
77890         * m4/strndup.m4: Don't check for strnlen declaration, done in
77891         strnlen.m4.
77892
77893 2005-08-10  Simon Josefsson  <jas@extundo.com>
77894
77895         * lib/strndup.c: Use strnlen.h.
77896
77897         * lib/strnlen.h: New file.
77898
77899 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77900
77901         * README: Typos.
77902
77903 2005-08-02  Simon Josefsson  <jas@extundo.com>
77904
77905         * modules/readline: New file.
77906
77907 2005-08-02  Simon Josefsson  <jas@extundo.com>
77908
77909         * modules/getdelim: New file.
77910
77911         * modules/getline: Rewrite, don't use getndelim2.
77912
77913 2005-08-02  Simon Josefsson  <jas@extundo.com>
77914
77915         * m4/getline.m4: Separate out getdelim stuff into separate module.
77916
77917         * m4/getdelim.m4: New file.
77918
77919 2005-08-02  Simon Josefsson  <jas@extundo.com>
77920
77921         * lib/getline.h, getline.c: Rewrite.
77922
77923         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
77924
77925 2005-07-31  Bruno Haible  <bruno@clisp.org>
77926
77927         * lib/lock.h (gl_lock_initializer): New macro.
77928         (gl_lock_define_initialized): Use it.
77929         (gl_rwlock_initializer): New macro.
77930         (gl_rwlock_define_initialized): Use it.
77931         (gl_recursive_lock_initializer): New macro.
77932         (gl_recursive_lock_define_initialized): Use it.
77933
77934 2005-07-30  Karl Berry  <karl@gnu.org>
77935
77936         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
77937         Report from Ben Pfaff, regarding getopt.
77938
77939 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
77940
77941         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
77942         normal way.
77943         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
77944         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
77945         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
77946         (gl_GETOPT): Use the new macros.  Most of the implementation
77947         is moved to the new macros.  This is for programs like Emacs
77948         that don't want all the functionality of gl_GETOPT.
77949
77950 2005-07-26  Bruno Haible  <bruno@clisp.org>
77951
77952         * m4/lock.m4: Update from GNU gettext.
77953
77954 2005-07-26  Bruno Haible  <bruno@clisp.org>
77955
77956         * lib/lock.h: Update from GNU gettext.
77957         * lib/lock.c: Update from GNU gettext.
77958
77959 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
77960
77961         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
77962         obsolescent AC_TRY_RUN.  Include the default includes files, for
77963         'exit'.
77964
77965 2005-07-24  Bruno Haible  <bruno@clisp.org>
77966
77967         * modules/visibility: New file.
77968         * MODULES.html.sh (Misc): Add visibility.
77969
77970 2005-07-24  Bruno Haible  <bruno@clisp.org>
77971
77972         * m4/visibility.m4: New file.
77973
77974 2005-07-24  Bruno Haible  <bruno@clisp.org>
77975
77976         * doc/visibility.texi: New file.
77977
77978 2005-07-22  Bruno Haible  <bruno@clisp.org>
77979
77980         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
77981         $(ALLOCA_H), redundant through BUILT_SOURCES.
77982         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
77983         redundant through BUILT_SOURCES.
77984         * modules/byteswap (Makefile.am): Remove explicit dependency on
77985         $(BYTESWAP_H), redundant through BUILT_SOURCES.
77986         * modules/fnmatch (Makefile.am): Remove explicit dependency on
77987         $(FNMATCH_H), redundant through BUILT_SOURCES.
77988         * modules/getopt (Makefile.am): Remove explicit dependency on
77989         $(GETOPT_H), redundant through BUILT_SOURCES.
77990         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
77991         redundant through BUILT_SOURCES.
77992         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
77993         redundant through BUILT_SOURCES.
77994         * modules/stdbool (Makefile.am): Remove explicit dependency on
77995         $(STDBOOL_H), redundant through BUILT_SOURCES.
77996         * modules/stdint (Makefile.am): Remove explicit dependency on
77997         $(STDINT_H), redundant through BUILT_SOURCES.
77998         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
77999         Remove explicit dependency on $(SYSEXITS_H).
78000         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
78001
78002 2005-07-18  Simon Josefsson  <jas@extundo.com>
78003
78004         * lib/check-version.c (check_version): Accept identical versions too.
78005
78006 2005-07-18  Bruno Haible  <bruno@clisp.org>
78007
78008         * modules/lock: New file.
78009         * MODULES.html.sh (Multithreading): New section.
78010
78011 2005-07-18  Bruno Haible  <bruno@clisp.org>
78012
78013         * m4/lock.m4: New file, from GNU gettext.
78014
78015 2005-07-18  Bruno Haible  <bruno@clisp.org>
78016
78017         * lib/lock.h: New file, from GNU gettext.
78018         * lib/lock.c: New file, from GNU gettext.
78019
78020 2005-07-18  Bruno Haible  <bruno@clisp.org>
78021
78022         * lib/lock.h (gl_once_t): New type.
78023         (gl_once_define, gl_once): New macros.
78024         * lib/lock.c (fresh_once): New variable.
78025         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
78026         functions.
78027
78028 2005-07-16  Simon Josefsson  <jas@extundo.com>
78029
78030         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
78031         workaround, suggested by Bruno.
78032
78033 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78034
78035         * modules/xalloc (Depends-on): Add xalloc-die.
78036         * modules/xvasprintf (Depends-on): Add xalloc-die.
78037
78038 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78039
78040         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
78041         with a minor change.
78042
78043 2005-07-15  Bruno Haible  <bruno@clisp.org>
78044
78045         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
78046         When using lib/poll.c, define poll as rpl_poll.
78047
78048 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
78049
78050         * modules/argp (Depends-on): Remove unlocked-io.
78051
78052 2005-07-14  Derek Price  <derek@ximbiot.com>
78053
78054         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
78055         for glob symlink bug.
78056
78057 2005-07-14  Bruno Haible  <bruno@clisp.org>
78058
78059         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
78060         Instead, test for *_unlocked function declarations directly.
78061
78062 2005-07-11  Simon Josefsson  <jas@extundo.com>
78063
78064         * modules/size_max: New file.
78065
78066         * modules/xsize: Depend on size_max module for size_max.m4.
78067
78068 2005-07-11  Simon Josefsson  <jas@extundo.com>
78069
78070         * lib/size_max.h: New file.
78071
78072 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
78073
78074         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
78075         copyright symbol and the year.
78076         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
78077         (version_etc_va): Use parameterized copyright notice.
78078         Reword to conform to the current GNU coding standards.
78079
78080 2005-07-11  Karl Berry  <karl@gnu.org>
78081
78082         * doc/gnulib.texi (Quoting): new node.
78083         (Initial import): more info, from Patrice.
78084
78085 2005-07-11  Bruno Haible  <bruno@clisp.org>
78086
78087         * gnulib-tool (func_usage): Document option --avoid.
78088         (Command line options): Handle --avoid.
78089         (func_acceptable): New function.
78090         (func_modules_transitive_closure): Use it.
78091
78092 2005-07-11  Bruno Haible  <bruno@clisp.org>
78093
78094         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
78095         Reported by Jim Meyering.
78096
78097 2005-07-10  Bruno Haible  <bruno@clisp.org>
78098
78099         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
78100         Needed when size_t is smaller than 'unsigned int'.
78101         Reported by Paul Eggert.
78102
78103 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78104
78105         * modules/argp (Depends-on): Add unlocked-io
78106
78107 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78108
78109         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
78110         block of defines.
78111
78112 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
78113
78114         * config/srclist.txt: Comment out regcomp.c, since we have a porting
78115         fix now.
78116
78117 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
78118         and Paul Eggert  <eggert@cs.ucla.edu>
78119
78120         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
78121         in wint_t, not wchar_t.  Remove now-unnecessary cast.
78122
78123 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78124
78125         * modules/regex (Files): Add lib/regex_internal.c,
78126         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
78127         (Depends-on): Add extensions.
78128         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
78129
78130 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78131
78132         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
78133         pathconf.
78134         * m4/same.m4 (gl_SAME): Likewise.
78135         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
78136
78137         * m4/regex.m4: Adjust to new libc regex implementation.
78138         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
78139         all the .c and .h parts of (the new) regex.
78140         Quote the m4 stuff better.
78141         Check for RE_ICASE bug of old gnulib.
78142         Check for REG_STARTEND of recent libc.
78143         Rename local variables from jm_* to gl_*.
78144         Quote operand of "test -f".
78145         Say "recent enough" version of libc, not "version 2".
78146         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
78147         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
78148         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
78149         Remove check for btowc, isascii.
78150         Require AM_LANGINFO_CODESET.
78151
78152 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78153
78154         * lib/regex.c, regex.h: Sync from libc.
78155         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
78156         * lib/regexec.c:
78157         New files, synced from libc, except that regex_internal.h
78158         currently has a small porting fix.
78159
78160 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78161
78162         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
78163         regex_internal.c, regexec.c.
78164         Add regex_internal.h too, but as a comment, since the libc version
78165         is currently broken in gnulib mode.
78166
78167 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78168
78169         Support programs like Emacs that use gnulib but not gettext.
78170         * MODULES.html.sh (Internationalization functions): Add gettext-h.
78171         * modules/gettext-h: New file.
78172         * modules/gettext (Files): Remove lib/gettext.h.
78173         (Depends-on): Add gettext-h.
78174         (Makefile.am): Remove lib_SOURCES.
78175         * modules/argmatch, modules/c-stack, modules/closeout:
78176         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
78177         * modules/execute, modules/file-type, modules/getaddrinfo:
78178         * modules/getopt, modules/human, modules/javacomp:
78179         * modules/javaexec, modules/mkdir-p, modules/obstack:
78180         * modules/openat, modules/pagealign_alloc, modules/pipe:
78181         * modules/quotearg, modules/regex, modules/rpmatch:
78182         * modules/unicodeio, modules/userspec, modules/version-etc:
78183         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
78184         * modules/xsetenv:
78185         Depend on gettext-h, not gettext.
78186
78187 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78188
78189         * gnulib-tool (func_import): Add support for 'public domain' license.
78190         * modules/alloca, modules/atexit, modules/memmove:
78191         Now public domain, not GPL.
78192         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
78193         * modules/realloc, modules/strerror, modules/strtod:
78194         Now LGPL, not GPL.
78195
78196 2005-07-05  Bruno Haible  <bruno@clisp.org>
78197
78198         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
78199         autoconf CVS. Needed for mingw.
78200
78201 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78202
78203         Remove the dependency of the strftime module on the tzset module.
78204         * modules/strftime (Depends-on): Remove dependency on tzset.
78205
78206 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78207
78208         Remove the dependency of the strftime module on the tzset module.
78209         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
78210         gl_FUNC_TZSET_CLOBBER.
78211
78212 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78213
78214         Remove the dependency of the strftime module on the tzset module.
78215         * lib/strftime.c (my_strftime)
78216         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
78217         Copy the input structure, to work around some of the bug with
78218         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
78219         Solaris releases, you should also use the tzset module, but we won't
78220         require it as a dependency any more since we don't want LGPLed code
78221         to depend on GPLed code.
78222
78223 2005-07-02  Jim Meyering  <jim@meyering.net>
78224
78225         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
78226         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
78227         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
78228         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
78229
78230 2005-07-02  Jim Meyering  <jim@meyering.net>
78231
78232         * lib/backupfile.c (backup_args): Change a `0' to NULL.
78233
78234 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78235
78236         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
78237         declares only 'struct timespec;' (!).
78238
78239 2005-07-01  Jim Meyering  <jim@meyering.net>
78240
78241         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
78242         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
78243         * lib/save-cwd.c, tempname.c:
78244         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
78245         and don't include <sys/file.h>).
78246
78247 2005-06-29  Jim Meyering  <jim@meyering.net>
78248
78249         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
78250         type name.  Use the variable name instead.
78251         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
78252         Likewise.
78253
78254 2005-06-28  Simon Josefsson  <jas@extundo.com>
78255
78256         * modules/check-version (Files): Add check-version.m4.
78257
78258 2005-06-28  Simon Josefsson  <jas@extundo.com>
78259
78260         * m4/check-version.m4: New file, suggested by Jim Meyering
78261         <jim@meyering.net>.
78262
78263 2005-06-28  Simon Josefsson  <jas@extundo.com>
78264
78265         * lib/check-version.h, lib/check-version.c: New files.
78266
78267 2005-06-28  Simon Josefsson  <jas@extundo.com>
78268
78269         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
78270         collision with global variable.  Better indentation.  Don't
78271         increment buffer pointer beyond buffer end.  Based on comments
78272         from Paul Eggert <eggert@cs.ucla.edu>.
78273
78274         * lib/base64.h: Indent.
78275
78276 2005-06-28  Simon Josefsson  <jas@extundo.com>
78277
78278         * doc/gnulib.texi (Library version handling): New section.
78279
78280 2005-06-28  Jim Meyering  <jim@meyering.net>
78281
78282         * check-module (find_included_lib_files): Hard-code another
78283         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
78284         but modules/fts-lgpl (correctly) does not list those files.
78285
78286         * modules/canonicalize (Files): Add lib/pathmax.h.
78287
78288 2005-06-25  Simon Josefsson  <jas@extundo.com>
78289
78290         * modules/check-version: New file.
78291
78292 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
78293
78294         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
78295         initializer of struct addrinfo, as an indication that we don't
78296         care how many members the structure has.
78297
78298 2005-06-24  Derek Price  <derek@ximbiot.com>
78299         and Bruno Haible  <bruno@clisp.org>
78300
78301         Remove stat module & update lstat.
78302         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
78303         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78304         * m4/stat.m4: Remove this file.
78305
78306 2005-06-24  Derek Price  <derek@ximbiot.com>
78307         and Bruno Haible  <bruno@clisp.org>
78308
78309         Remove stat module & update lstat.
78310         * lib/stat.c: Remove this file...
78311         (slash_aware_lstat): ...moving this content and its support...
78312         * lib/lstat.c (rpl_lstat): ...into here.
78313         * lib/lstat.h: New file.
78314
78315 2005-06-24  Derek Price  <derek@ximbiot.com>
78316         and Bruno Haible  <bruno@clisp.org>
78317
78318         Remove stat module & update lstat.
78319         * config/srclist.txt (libc sources): Remove stat.
78320
78321 2005-06-24  Derek Price  <derek@ximbiot.com>
78322         and Bruno Haible  <bruno@clisp.org>
78323
78324         Remove stat module & update lstat.
78325         * MODULES.html.sh (stat): Remove.
78326         * MODULES.html: Regenerated.
78327         * modules/lstat (Description): Correct function name.
78328         (Files): Add "lstat.h".
78329         (Depends-on): Remove stat, add xalloc, stat-macros.
78330         * modules/stat: Remove this file.
78331         (Include): Add "lstat.h", remove <sys/stat.h>.
78332
78333 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
78334
78335         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
78336         (ranged_convert): Don't save conversion in a temporary struct.
78337         This causes a warning with GCC 4.0.0, and anyway in the typical
78338         case it's not worth the extra 100 bytes or so of code.
78339         (ranged_convert, __mktime_internal): When calling a function via a
78340         pointer P, use P () rather than (*P) (), as we now assume C89 or
78341         better.
78342
78343 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78344
78345         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
78346         "who -r" failed to give output.  Problem reported by Tim Waugh.
78347
78348         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
78349         (xcalloc): Use it to avoid needless tests.
78350         Problem reported by Jim Meyering.
78351
78352 2005-06-20  Derek Price  <derek@ximbiot.com>
78353
78354         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
78355         unnecessary for Autoconfs > 2.59c.
78356
78357 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78358
78359         * lib/argp.h (__option_is_short): Check upper limit of
78360         __key. Isprint() requires its argument to have the value
78361         of an unsigned char or EOF.
78362
78363 2005-06-16  Jim Meyering  <jim@meyering.net>
78364
78365         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
78366         when either N or S is zero.
78367
78368 2005-06-16  Derek Price  <derek@ximbiot.com>
78369
78370         * m4/bison.m4: Declare YACC & YFLAGS precious.
78371
78372 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
78373
78374         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
78375         multibyte string or pattern, fall back on unibyte matching.
78376         Problem reported by James Youngman.
78377
78378 2005-06-08  Bruno Haible  <bruno@clisp.org>
78379
78380         * modules/csharpcomp: New file.
78381         * MODULES.html.sh (C#): Add csharpcomp.
78382
78383 2005-06-08  Bruno Haible  <bruno@clisp.org>
78384
78385         * m4/csharpcomp.m4: New file, from GNU gettext.
78386
78387 2005-06-08  Bruno Haible  <bruno@clisp.org>
78388
78389         * lib/csharpcomp.h: New file, from GNU gettext.
78390         * lib/csharpcomp.c: New file, from GNU gettext.
78391         * lib/csharpcomp.sh.in: New file, from GNU gettext.
78392
78393 2005-06-08  Bruno Haible  <bruno@clisp.org>
78394
78395         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
78396         warning on mingw.
78397
78398 2005-06-07  Derek Price  <derek@ximbiot.com>
78399
78400         Sync from CVS.
78401         * lib/glob_.h: Indent nested #ifdef.
78402
78403 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78404
78405         Sync from coreutils.
78406         Use "file name" when talking about file names, instead of "filename"
78407         or "path", as per the GNU coding standards.
78408         * lib/mkdir-p.c: Renamed from makepath.c.
78409         (make_dir_parents): Renamed from make_path.  All callers changed.
78410         * lib/mkdir-p.h: Likewise.  All includers changed.
78411         * lib/filenamecat.c: Renamed from path-concat.c.
78412         (file_name_concat): Renamed from path_concat.  All callers changed.
78413         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
78414         * lib/filenamecat.h: Likewise.  All includers changed.
78415         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
78416         in comments or local variable names.
78417         * lib/basename.c: Likewise.
78418         * lib/canonicalize.c, canonicalize.h: Likewise.
78419         * lib/dirname.c, dirname.h: Likewise.
78420         * lib/euidaccess.c: Likewise.
78421         * lib/exclude.c: Likewise
78422         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
78423         * lib/fsusage.c, fsuage.h: Likewise.
78424         * lib/fts.c, fts_.h: Likewise.
78425         * lib/getcwd.c: Likewise.
78426         * lib/getloadavg.c: Likewise.
78427         * lib/mkstemp.c: Likewise.
78428         * lib/mountlist.c, mountlist.h: Likewise.
78429         * lib/openat.c, openat.h: Likewise.
78430         * lib/readlink-stub.c: Likewise.
78431         * lib/readutmp.c, readutmp.h: Likewise.
78432         * lib/rename.c: Likewise.
78433         * lib/rmdir.c: Likewise.
78434         * lib/same.c: Likewise.
78435         * lib/savedir.c: Likewise.
78436         * lib/stripslash.c: Likewise.
78437         * lib/tempname.c: Likewise.
78438         * lib/xreadlink.c: Likewise.
78439         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
78440         All uses changed.
78441         * lib/exclude.h: Likewise.
78442
78443         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
78444         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78445         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
78446         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78447         * lib/pathmax.h: Include <limits.h> unconditionally, since other
78448         files have been getting away with it for years (MORE/BSD 4.3
78449         is extinct now).
78450         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
78451         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78452
78453         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
78454         Define to 256, not 255, as per modern POSIX.
78455
78456 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78457
78458         Sync from coreutils.
78459         Use "file name" when talking about file names, instead of "filename"
78460         or "path", as per the GNU coding standards.
78461         * MODULES.html.sh: mkdir-p renamed from makepath.
78462         filenamecat renamed from path-concat.
78463         * modules/filenamecat: Renamed from modules/path-concat.
78464         (Files): filenamecat.h and filenamecat.c renamed from
78465         path-concat.h and path-concat.c.
78466         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
78467         (Include): filenamecat.h, not path-concat.h.
78468         * modules/mkdir-p: Renamed from modules/makepath.
78469         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
78470         makepath.c.
78471         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
78472         (Include): mkdir-p.h, not makepath.h.
78473
78474 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78475
78476         Sync from coreutils.
78477         * m4/mkdir-p.m4: Renamed from makepath.m4.
78478         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
78479         Rename files from makepath.c to mkdir-p.c, and from
78480         makepath.h to mkdir-p.h.
78481         * m4/filenamecat.m4: Renamed from path-concat.m4.
78482         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
78483         Rename files from path-concat.c to filenamecat.c,
78484         and from path-concat.h to filenamecat.h.
78485         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
78486         "file name" in local variables or comments.
78487         * m4/rename.m4: Likewise.
78488
78489 2005-06-01  Bruno Haible  <bruno@clisp.org>
78490
78491         * modules/csharpexec: New file.
78492         * MODULES.html.sh (C#): New section.
78493
78494 2005-06-01  Bruno Haible  <bruno@clisp.org>
78495
78496         * m4/csharp.m4: New file, from GNU gettext.
78497         * m4/csharpexec.m4: New file, from GNU gettext.
78498
78499 2005-06-01  Bruno Haible  <bruno@clisp.org>
78500
78501         * lib/csharpexec.h: New file, from GNU gettext.
78502         * lib/csharpexec.c: New file, from GNU gettext.
78503         * lib/csharpexec.sh.in: New file, from GNU gettext.
78504
78505 2005-05-31  Derek Price  <derek@ximbiot.com>
78506             Paul Eggert  <eggert@cs.ucla.edu>
78507
78508         Sync from cvs.
78509         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78510
78511 2005-05-31  Derek Price  <derek@ximbiot.com>
78512             Paul Eggert  <eggert@cs.ucla.edu>
78513
78514         Sync from cvs.
78515         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78516
78517 2005-05-29  Derek Price  <derek@ximbiot.com>
78518
78519         * config/srclist.txt (glob_.h, glob.c): Add these files.
78520
78521 2005-05-29  Derek Price  <derek@ximbiot.com>
78522
78523         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
78524         * modules/glob: New file.
78525         * modules/getlogin_r: Add link to POSIX spec in description.
78526
78527 2005-05-29  Derek Price  <derek@ximbiot.com>
78528             Paul Eggert  <eggert@cs.ucla.edu>
78529
78530         * m4/glob.m4: New file.
78531
78532 2005-05-29  Derek Price  <derek@ximbiot.com>
78533             Paul Eggert  <eggert@cs.ucla.edu>
78534
78535         * lib/glob_.h, lib/glob.c: New files.
78536
78537 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78538
78539         * modules/fts (Files): Remove m4/inttypes-pri.m4.
78540         * modules/fts-lgpl (Depends-on): Remove gettext.
78541
78542 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78543
78544         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
78545         and don't require gt_INTTYPES_PRI.
78546
78547 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78548
78549         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
78550
78551         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
78552         the configuration hassle isn't worth it.
78553         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
78554         (LONGEST_MODIFIER, PRIuMAX): Remove.
78555
78556 2005-05-27  Bruno Haible  <bruno@clisp.org>
78557
78558         * lib/getlogin_r.h: Remove second include of <stddef.h>.
78559
78560 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
78561
78562         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
78563         _POSIX_PTHREAD_SEMANTICS for Solaris.
78564
78565 2005-05-25  Derek Price  <derek@ximbiot.com>
78566
78567         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
78568
78569 2005-05-25  Derek Price  <derek@ximbiot.com>
78570             Paul Eggert  <eggert@cs.ucla.edu>
78571
78572         * modules/getlogin_r, m4/getlogin_r.m4: New files.
78573         * lib/getlogin_r.c, getlogin_r.h: New files.
78574
78575 2005-05-25  Bruno Haible  <bruno@clisp.org>
78576             Derek Price  <derek@ximbiot.com>
78577
78578         * lib/getlogin_r.h: Simplify API documentation.
78579
78580 2005-05-23  Derek Price  <derek@ximbiot.com>
78581
78582         * modules/minmax (Files): Add m4/minmax.m4.
78583         (configure.ac): Add gl_MINMAX.
78584
78585 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78586
78587         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
78588         so that unistd-safer.h (GPL'ed code) need not be included.
78589
78590 2005-05-22  Bruno Haible  <bruno@clisp.org>
78591
78592         * m4/minmax.m4: New file.
78593         Based on a patch by Derek Price <derek@ximbiot.com>.
78594
78595 2005-05-22  Bruno Haible  <bruno@clisp.org>
78596
78597         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
78598         (INT64_MIN): Fix definition.
78599         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
78600
78601         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
78602         NEED_SIGNED_INT_TYPES.
78603
78604         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
78605         HAVE_SYSTEM_INTTYPES.
78606
78607 2005-05-22  Bruno Haible  <bruno@clisp.org>
78608
78609         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
78610         Also include <sys/param.h> if it defines MIN, MAX.
78611         Based on a patch by Derek Price <derek@ximbiot.com>.
78612
78613 2005-05-21  Jim Meyering  <jim@meyering.net>
78614
78615         * modules/fts (Files): Add m4/inttypes-pri.m4.
78616         (Depends-on): Add lstat and remove gettext.  Alphabetize.
78617
78618 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78619
78620         New fts module.
78621         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
78622         (setup_dir, free_dir): New functions.
78623         (enter_dir, leave_dir): Define trivial
78624         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
78625         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
78626         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
78627         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
78628         Move to fts-cycle.c.
78629         (fts_open): Use setup_dir.
78630         (fts_close): Use free_dir.
78631         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
78632         This adds a label and some gotos, but the alternatives were messier.
78633         Check for memory allocation failure when entering a dir.
78634         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
78635         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
78636         (FTS): New member fts_cycle, that is a union that contains the
78637         old active_dir_ht and cycle_state.  All uses changed to mention
78638         fts_cycle.ht and fts_cycle.state.
78639         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
78640         fts.c, with the following changes:
78641         (setup_dir, free_dir): New functions.
78642         (enter_dir): Now returns bool.  Return true if successful, false
78643         if memory exhausted.  All callers changed.
78644         Do not bother partly cleaning up on
78645         memory allocation failure; that is free_dir's job.
78646         However, free ad if hash_insert fails, to avoid memory leak.
78647         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
78648         fts->fts_options to see which union member to use.
78649
78650 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78651
78652         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
78653         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
78654
78655 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78656
78657         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
78658
78659 2005-05-20  Jim Meyering  <jim@meyering.net>
78660
78661         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
78662         Now a macro, to pacify GCC.
78663
78664 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78665
78666         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
78667         of -1.
78668
78669 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78670
78671         * lib/chown.c (rpl_chown): Return -1 on failure.
78672
78673 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78674
78675         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
78676         Don't check for stddef.h.
78677         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
78678         don't use its results.
78679         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
78680         since we include them unconditionally.  Don't require
78681         AM_STDBOOL_H, since stdbool is a prerequisite.
78682         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
78683         since we assume C89 or better.
78684         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
78685         as we don't use their results.
78686         Don't check for fchdir, memmove, memset, strrchr, as we use
78687         them unconditionally.
78688         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
78689         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
78690
78691 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78692
78693         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
78694         Include <stddef.h> unconditionally, since we assume C89 now.
78695         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
78696         * lib/fts.c: Include fts_.h first, to check interface.
78697         Do not include intprops.h; no longer needed.
78698         Include cycle-check.h and hash.h, since fts_.h no longer does.
78699         Remove unnecessary casts of closedir to void.
78700         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
78701         decide whether to decrement nlinks.
78702         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
78703         (FTS): Use struct hash_table * instead of Hash_table, so that
78704         we no longer need to include hash.h here.
78705
78706 2005-05-18  Jim Meyering  <jim@meyering.net>
78707
78708         * modules/dirfd (License): Change to LGPL.  Most of the code
78709         is already in the public domain.
78710
78711 2005-05-18  Jim Meyering  <jim@meyering.net>
78712
78713         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
78714         Reported by Yoann Vandoorselaere.
78715
78716 2005-05-17  Jim Meyering  <jim@meyering.net>
78717
78718         * m4/fts.m4: New file, from coreutils.
78719
78720 2005-05-17  Jim Meyering  <jim@meyering.net>
78721
78722         * lib/fts.c, lib/fts_.h: New files, from coreutils.
78723
78724 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78725
78726         Sync from coreutils.
78727         * m4/unlinkdir.m4: New file.
78728
78729 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78730
78731         Sync from coreutils.
78732         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
78733         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
78734         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
78735         White space changes only.
78736         * lib/makepath.c (make_path): Port to hosts where leading "//" is
78737         special.
78738         * lib/yesno.c: Include getline.h, not ctype.h.
78739         (yesno): Don't remove leading white space; POSIX doesn't allow it.
78740         Use getline to remove arbitrary restriction on response length.
78741
78742 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78743
78744         * config/srclist-update: Spell out "Street" in FSF postal
78745         mail address; this is the style the FSF seems to prefer.
78746
78747         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
78748         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
78749         this updates FSF postal mail address.
78750
78751         Sync from coreutils.
78752         * modules/unlinkdir: New file.
78753         * modules/yesno (Depends-on): Add getline.
78754         * MODULES.html.sh (File system functions): Add unlinkdir.
78755
78756 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78757
78758         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
78759         lib/strsep.h:
78760         Change the initial comment to refer to GPL, not LGPL.
78761         gnulib-tool will change it to LGPL as needed.
78762
78763         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
78764         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
78765         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
78766         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
78767         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
78768         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
78769         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
78770         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
78771         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
78772         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
78773         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
78774         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
78775         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
78776         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
78777         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
78778         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
78779         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
78780         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
78781         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
78782         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
78783         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
78784         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
78785         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
78786         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
78787         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
78788         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
78789         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
78790         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
78791         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
78792         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
78793         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
78794         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
78795         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
78796         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
78797         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
78798         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
78799         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
78800         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
78801         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
78802         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
78803         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
78804         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
78805         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
78806         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
78807         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
78808         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
78809         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
78810         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
78811         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
78812         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
78813         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78814         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
78815         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
78816         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
78817         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
78818         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
78819         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
78820         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
78821         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
78822         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
78823         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
78824         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
78825         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
78826         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
78827         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
78828         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
78829         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
78830         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
78831         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
78832         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
78833         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
78834         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
78835         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
78836         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
78837         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
78838         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
78839         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
78840         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
78841         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
78842         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
78843         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
78844         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
78845         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
78846         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
78847         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
78848         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
78849         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
78850         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
78851         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
78852         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
78853         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
78854         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
78855         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
78856         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
78857         lib/yesno.c, lib/yesno.h:
78858         Update FSF postal mail address.
78859
78860 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78861
78862         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
78863         tests/test-memmem.c, tests/test-stpncpy.c:
78864         Update FSF postal mail address.
78865
78866 2005-05-13  Bruno Haible  <bruno@clisp.org>
78867
78868         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
78869         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
78870         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
78871         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
78872         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
78873         Add support for 64-bit integers in the MSVC compiler.
78874
78875 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78876
78877         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
78878
78879 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
78880
78881         * gnulib-tool (func_import): Sort and uniquify recommended includes.
78882
78883 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
78884
78885         * doc/getdate.texi (General date syntax): Don't say that date
78886         date --iso-8601=ns generates acceptable dates; it doesn't yet.
78887         Problem reported by Nic Ferrier.
78888
78889 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78890
78891         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
78892         specified in ai_socktype. Fix invalid ai_protocol
78893         check. ai_protocol is usually set to 0 or depending on
78894         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
78895         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
78896         ai_socktype / ai_protocol in the returned addrinfo structure.
78897
78898 2005-05-10  Simon Josefsson  <jas@extundo.com>
78899
78900         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
78901         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78902
78903 2005-05-10  Karl Berry  <karl@gnu.org>
78904
78905         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
78906         (from http://www.gnu.org/licenses).
78907         * doc/COPYING.LIB: also rename to COPYING.LESSER.
78908         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
78909         fdl.texi suffices.
78910
78911 2005-05-10  Karl Berry  <karl@gnu.org>
78912
78913         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
78914         (COPYING.DOC): remove.
78915
78916         * config/srclist-update: new FSF address.
78917
78918 2005-05-10  Derek Price  <derek@ximbiot.com>
78919
78920         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
78921         possible.
78922
78923 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78924             Bruno Haible  <bruno@clisp.org>
78925
78926         * modules/inet_ntop: New file.
78927         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78928         inet_ntop.
78929
78930 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78931             Bruno Haible  <bruno@clisp.org>
78932
78933         * m4/inet_ntop.m4: New file.
78934
78935 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78936             Bruno Haible  <bruno@clisp.org>
78937
78938         * lib/inet_ntop.h: New file.
78939         * lib/inet_ntop.c: New file, from glibc with modifications.
78940
78941 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
78942
78943         * modules/time_r (License): Change to LGPL.
78944         * modules/extensions (License): Change to LGPL.  Actually,
78945         the license is more permissive than that, but currently gnulib-tool
78946         doesn't know how to handle more-permissive licenses.
78947
78948         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
78949         Problem reported by Dave Love.
78950
78951 2005-05-08  Jim Meyering  <jim@meyering.net>
78952
78953         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
78954         blank.
78955
78956 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78957
78958         * modules/argmatch (Depends-on): Add stdbool.
78959         * modules/backupfile (Depends-on): Likewise.
78960         * modules/chdir-long (Depends-on): Likewise.
78961         * modules/closeout (Depends-on): Likewise.
78962         * modules/cycle-check (Depends-on): Likewise.
78963         * modules/dirname (Depends-on): Likewise.
78964         * modules/fnmatch (Depends-on): Likewise.
78965         * modules/fsusage (Depends-on): Likewise.
78966         * modules/fwriteerror (Depends-on): Likewise.
78967         * modules/getcwd (Depends-on): Likewise.
78968         * modules/getloadavg (Depends-on): Likewise.
78969         * modules/hard-locale (Depends-on): Likewise.
78970         * modules/makepath (Depends-on): Likewise.
78971         * modules/mountlist (Depends-on): Likewise.
78972         * modules/nanosleep (Depends-on): Likewise.
78973         * modules/posixtm (Depends-on): Likewise.
78974         * modules/quotearg (Depends-on): Likewise.
78975         * modules/readtokens (Depends-on): Likewise.
78976         * modules/readtokens0 (Depends-on): Likewise.
78977         * modules/readutmp (Depends-on): Likewise.
78978         * modules/save-cwd (Depends-on): Likewise.
78979         * modules/strftime (Depends-on): Likewise.
78980         * modules/userspec (Depends-on): Likewise.
78981         * modules/utimecmp (Depends-on): Likewise.
78982         * modules/xgetcwd (Depends-on): Likewise.
78983         * modules/xnanosleep (Depends-on): Likewise.
78984         * modules/xstrtod (Depends-on): Likewise.
78985         * modules/yesno (Depends-on): Likewise.
78986
78987 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
78988
78989         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
78990         needless checks.
78991
78992 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78993
78994         Merge from coreutils.  Among other things,
78995         add bulletproofing for cases where stdin, stdout, or stderr are closed.
78996         * lib/fd-safer.c: New file.
78997         * lib/fcntl-safer.h, open-safer.c: Remove.
78998         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
78999         * lib/dup-safer.c: Include unistd-safer.h first.
79000         Don't include errno.h.
79001         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
79002         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
79003         * lib/file-type.c: Rely on file-type.h change.
79004         * lib/getloadavg.c: Include unistd-safer.h.
79005         (getloadavg): Use safer open.
79006         * lib/getusershell.c: Include "stdio-safer.h".
79007         (getusershell): Use safer fopen.
79008         * lib/long-options.c (long_options): Use NULL rather than 0.
79009         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
79010         'free'.
79011         * lib/modechange.c: Likewise.
79012         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
79013         (MODE_DONE): New constant.
79014         (struct mode_change): Remove 'next' member.
79015         (make_node_op_equals): New function; like the old one of the
79016         same name, except it allocates an array.
79017         (mode_compile, mode_create_from_ref): Use it.
79018         (mode_compile): Allocate result as an array, not a linked list.
79019         Parse octal string ourself, so that we catch mistakes like "+0".
79020         (mode_adjust): Arg is an array, not a linked list.
79021         * lib/modechange.c: Include stat-macros.h, xalloc.h.
79022         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
79023         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
79024         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
79025         Remove.  This is now stat-macros.h's job.
79026         (talloc): Remove.  All callers replaced by xalloc, so that
79027         our invokers don't have to worry about reporting memory failures.
79028         (make_node_op_equals): Remove.
79029         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79030         New constants.
79031         (struct mode_change): Moved here from modechange.h.
79032         (mode_append_entry): Remove.
79033         (mode_compile): Remove MASKED_OPS arg, since it encouraged
79034         apps to have incorrect behavior.  Use simpler algorithm for head
79035         and tail.  Don't futz with umask; that's now the job of mode_adjust.
79036         Detect more invalid usages rather than having somewhat-random behavior.
79037         Don't insert an "a=" action, as that leads to incorrect behavior.
79038         (mode_compile, mode_create_from_ref): Return NULL on error instead
79039         of an enum, since now there's only one way to have an error.  All
79040         callers changed.
79041         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
79042         at the correct time.  Simplify calculation of "+u" and its ilk.
79043         Don't mishandle "+X".
79044         (mode_free): Remove "register" and localize decls.
79045         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79046         (struct mode_change): Move to modechange.c; callers don't
79047         need to see this stuff.
79048         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
79049         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
79050         (mode_change, mode_adjust): Reflect the new signatures noted above.
79051         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
79052         that might redefine system include files.
79053         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
79054         (my_usleep): Use NULL rather than (void *) 0.
79055         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
79056         Use siginterrupt to specify that system calls should be interrupted.
79057         (rpl_nanosleep): Move initialization of suspended closer to call of
79058         my_usleep.
79059         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
79060         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
79061         (desirable_utmp_entry): New function.
79062         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
79063         using x2nrealloc, to simplify logic.
79064         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
79065         size calculation.  Do not assume utmp file is a regular file.
79066         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
79067         (READ_UTMP_CHECK_PIDS): New constant.
79068         * lib/save-cwd.c: Include unistd-safer.h.
79069         (save_cwd): Use fd_safer.
79070         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
79071         [!_LIBC] Include "stat-macros.h" instead.
79072         * lib/unistd-safer.h (fd_safer): New decl.
79073
79074 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79075
79076         * modules/getloadavg (Depends-on): Add unistd-safer.
79077         * modules/getusershell (Depends-on): Add stdio-safer.
79078         * modules/lstat (Depends-on): Remove xalloc.
79079         * modules/mkstemp (Depends-on): Add stat-macros.
79080         * modules/modechange (Depends-on): Remove xstrtol.
79081         Add stat-macros, xalloc.
79082         * modules/save-cwd (Depends-on): Add unistd-safer.
79083         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
79084         * modules/unistd-safer (Files): Add lib/fd-safer.c
79085         (Makefile.am): Remove lib_SOURCES.
79086
79087         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
79088         Remove fcntl-safer; unistd-safer supersedes it.
79089
79090 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79091
79092         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
79093         AC_HEADER_STAT.
79094         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
79095         (gl_PREREQ_CHOWN): Remove.
79096         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
79097         it.  Don't require AC_HEADER_STAT.
79098         (gl_PREREQ_LSTAT): Remove.
79099         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
79100         Don't require AC_HEADER_STAT.
79101         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
79102         (gl_PREREQ_RMDIR): Remove.
79103         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
79104         mention stat-macros.h or AC_HEADER_STAT, since we'll make
79105         the stat-macros module a prerequisite.
79106         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
79107         * m4/filemode.m4 (gl_FILEMODE): Likewise.
79108         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
79109         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
79110         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
79111         variable names.
79112         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
79113         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
79114         variable prefixes.
79115         * m4/fcntl-safer.m4: Remove.
79116         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
79117         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
79118         Invoke gl_PREREQ_FD_SAFER.
79119         (gl_PREREQ_FD_SAFER): New macro.
79120         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
79121         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
79122         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
79123         Remove duplicate call to AC_LIBOBJ(readutmp).
79124         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
79125
79126         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
79127         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
79128
79129 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79130
79131         * MODULES.html.sh (Misc): Add byteswap.
79132
79133 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79134
79135         * modules/getcwd (Depends-on): Add extensions.
79136         * modules/openat (Depends-on): Likewise.
79137
79138 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79139
79140         * modules/byteswap: New file.
79141
79142 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79143
79144         * m4/byteswap.m4: New file.
79145
79146 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79147
79148         * lib/byteswap_.h: New file.
79149
79150 2005-04-25  Karl Berry  <karl@gnu.org>
79151
79152         * m4/gettext.m4: Update from GNU gettext 0.14.4.
79153
79154 2005-04-25  Albert Chin  <china@thewrittenword.com>
79155
79156         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
79157         Toolkit C bug.
79158
79159 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
79160
79161         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
79162         (func_ln_if_changed): Remove forcibly for no error message
79163         in case file does not exist.
79164
79165 2005-04-19  Simon Josefsson  <jas@extundo.com>
79166
79167         * gnulib-tool (Options): Make --symlink mean --symbolic.
79168
79169 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
79170
79171         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
79172
79173 2005-04-16  Simon Josefsson  <jas@extundo.com>
79174
79175         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
79176
79177 2005-04-15  Simon Josefsson  <jas@extundo.com>
79178
79179         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
79180
79181 2005-04-15  Simon Josefsson  <jas@extundo.com>
79182
79183         * gnulib-tool: Rename --symlink to --symbolic.
79184
79185 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
79186
79187         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
79188         symbolic links to files instead of copying/moving.  Add --aux-dir,
79189         specifying directory relative --dir where auxiliary build tools
79190         are placed.
79191
79192 2005-04-14  Bruno Haible  <bruno@clisp.org>
79193
79194         * modules/allocsa (License): Change to LGPL.
79195         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
79196
79197 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79198
79199         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
79200         that "UTC +1 second" continues to work.  Problem reported
79201         by Dmitry V. Levin.
79202         (relunit_snumber): New rule.
79203         (relunit): Use it.
79204
79205 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79206
79207         * lib/getdate.y (universal_time_zone_table): New constant.
79208         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
79209         universal_time_zone_table.
79210         (lookup_zone): Prefer universal_time_zone_table to
79211         local_time_zone_table, so that "GMT" time stamps are allowed in
79212         London during the summer.  Problem reported by Ian Abbott.
79213
79214 2005-04-12  Jim Meyering  <jim@meyering.net>
79215
79216         * lib/human.c (humblock): Set *options even when returning due to
79217         xstrtoumax conversion failure.  Thanks to a used-uninitialized
79218         warning from gcc-4.
79219
79220 2005-04-09  Jim Meyering  <jim@meyering.net>
79221
79222         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
79223         -Wuninitialized: initialize tm0.tm_year.
79224
79225 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
79226
79227         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
79228         count, since there's no maximum.  All uses changed.
79229         Add member dsts_seen.
79230         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
79231         not being INT_MAX.
79232         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
79233         Use pc_rels_seen to decide whther a date is absolute.
79234
79235         * lib/getdate.y (number): Don't overwrite year.
79236         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
79237         check.
79238
79239 2005-04-02  Simon Josefsson  <jas@extundo.com>
79240
79241         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
79242         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
79243
79244 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
79245
79246         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
79247         where no absolute path name can be longer than PATH_MAX.
79248
79249 2005-03-27  Jim Meyering  <jim@meyering.net>
79250
79251         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
79252
79253 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
79254
79255         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
79256         "one's complement" -> "ones' complement" in comment, as per Knuth.
79257         "value of type" -> "type or expression" in comment.
79258         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
79259
79260 2005-03-26  Jim Meyering  <jim@meyering.net>
79261
79262         Comment nits.
79263         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
79264         Correct typos: s/or/of/.
79265
79266 2005-03-26  Jim Meyering  <jim@meyering.net>
79267
79268         * modules/check-include-files: Move to ../ and rename to...
79269         * check-module: ...this.
79270
79271 2005-03-25  Jim Meyering  <jim@meyering.net>
79272
79273         * modules/xvasprintf (Files): Add xalloc.h.
79274
79275 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
79276
79277         * modules/gettext (Files): config/config.rpath ->
79278         build-aux/config.rpath
79279         * modules/iconv (Files): Likewise.
79280         Problem reported by Oskar Liljeblad.
79281
79282 2005-03-23  Jim Meyering  <jim@meyering.net>
79283
79284         * modules/check-include-files: New script to check for
79285         missing dependencies, multiple includes, etc.
79286
79287         * modules/c-strtold (Depends-on): Add xalloc.
79288         * modules/c-strtod (Depends-on): Add xalloc.
79289         * modules/hash (Depends-on): Add xalloc.
79290         (Files): Remove lib/xalloc.h.
79291
79292         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
79293         * modules/userspec (Files): Add lib/inttostr.h.
79294
79295 2005-03-23  Jim Meyering  <jim@meyering.net>
79296
79297         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
79298
79299 2005-03-22  Jim Meyering  <jim@meyering.net>
79300
79301         * modules/stat-macros: New module.
79302         * modules/canonicalize, modules/euidaccess, modules/file-type,
79303         * modules/filemode, modules/lchown, modules/makepath,
79304         * modules/rmdir, modules/stat: Depend on new stat-macros module
79305         rather than listing lib/stat-macros.h manually.
79306         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
79307
79308 2005-03-22  Jim Meyering  <jim@meyering.net>
79309
79310         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
79311
79312 2005-03-22  Bruno Haible  <bruno@clisp.org>
79313
79314         * config/srclist.txt: Replace target directory 'config' with
79315         'build-aux'.
79316         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
79317         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
79318         ../build-aux/.
79319
79320 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
79321
79322         * modules/chdir-long (Depends-on): Add mempcpy.
79323
79324         * modules/acl, modules/backupfile, modules/c-strtod,
79325         modules/c-strtold, modules/canon-host, modules/canonicalize,
79326         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
79327         modules/exclude, modules/exitfail, modules/file-type,
79328         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
79329         modules/getdate, modules/getline, modules/getpagesize,
79330         modules/getpass, modules/getugroups, modules/group-member,
79331         modules/hard-locale, modules/hash, modules/human, modules/idcache,
79332         modules/inttostr, modules/long-options, modules/makepath,
79333         modules/md5, modules/memcasecmp, modules/memcoll,
79334         modules/modechange, modules/mountlist, modules/path-concat,
79335         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
79336         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
79337         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
79338         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
79339         modules/strftime, modules/strndup, modules/strverscmp,
79340         modules/timespec, modules/unlocked-io, modules/userspec,
79341         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
79342         modules/yesno:
79343         Remove lib_SOURCES line from Makefile.am section, as this is now
79344         done automatically by the corresponding Autoconf macro.
79345
79346 2005-03-21  Jim Meyering  <jim@meyering.net>
79347
79348         Changes imported from coreutils.
79349
79350         * lib/cycle-check.c: Don't include xalloc.h.
79351
79352         * lib/path-concat.c: Don't include assert.h.
79353         (path_concat): Remove assertion that would have triggered
79354         for ABASE starting with more than one slash.
79355         Reported by Andreas Schwab.
79356
79357         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
79358         properly when ABASE is an absolute file name.
79359         Correct the description of this function.
79360         Include <assert.h>.
79361         Add an assertion and a test driver.
79362         This fixes a bug introduced on 2004-07-02.
79363         Andreas Schwab reported the resulting failure of cp --parents:
79364         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
79365
79366 2005-03-21  Jim Meyering  <jim@meyering.net>
79367
79368         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
79369         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
79370
79371 2005-03-21  Jim Meyering  <jim@meyering.net>
79372         and  Paul Eggert  <eggert@cs.ucla.edu>
79373
79374         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
79375         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
79376         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
79377         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
79378         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
79379         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
79380         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
79381         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
79382         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
79383         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
79384         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
79385         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
79386         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
79387         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
79388         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
79389         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
79390         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
79391         for these modules.
79392
79393 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
79394
79395         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
79396         (which shouldn't happen), generate nothing instead of returning 0
79397         immediately, so that nstrftime (NULL, ...) doesn't return 0.
79398
79399 2005-03-16  Bruno Haible  <bruno@clisp.org>
79400
79401         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
79402         HAVE_LONGLONG_64BIT.
79403
79404 2005-03-16  Bruno Haible  <bruno@clisp.org>
79405
79406         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
79407         HAVE_LONGLONG_64BIT.
79408
79409 2005-03-16  Bruno Haible  <bruno@clisp.org>
79410
79411         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
79412         HAVE_LONGLONG_64BIT.
79413
79414 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79415
79416         * lib/strftime.c (my_strftime): Prepend space to format so that we can
79417         reliably distinguish strftime failure from empty output on POSIX
79418         hosts.
79419
79420 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79421
79422         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
79423         (iconv_string): Don't guess a size-zero buffer, as that might cause
79424         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
79425         result would be 'too large', where 'too large' is (heuristically)
79426         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
79427         overflow concerns.  This will prevent some unwanted malloc failures
79428         when the inputs are very large.
79429
79430 2005-03-15  Karl Berry  <karl@gnu.org>
79431
79432         * config/srclist.txt (config.rpath): from gettext.
79433         * config/config.rpath: update.
79434
79435 2005-03-15  Bruno Haible  <bruno@clisp.org>
79436
79437         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
79438         to 'negate'.
79439
79440         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
79441         variable.
79442
79443         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
79444         results.
79445
79446 2005-03-14  Simon Josefsson  <jas@extundo.com>
79447
79448         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
79449         <fx@gnu.org>.
79450
79451 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
79452
79453         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
79454         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
79455         intprops.h.
79456         * lib/strtol.c: Likewise.
79457
79458 2005-03-14  Jim Meyering  <jim@meyering.net>
79459
79460         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
79461         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
79462         to be nonzero so that we (and caller) can detect the difference
79463         between a valid zero-length expansion and an error return, even
79464         when the underlying strftime fails before writing anything into
79465         that location.
79466
79467 2005-03-14  Bruno Haible  <bruno@clisp.org>
79468
79469         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
79470         Update from GNU gettext 0.14.3.
79471
79472 2005-03-10  Jim Meyering  <jim@meyering.net>
79473
79474         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
79475
79476 2005-03-10  Jim Meyering  <jim@meyering.net>
79477
79478         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
79479         so that this module works on systems without fchdir.
79480
79481 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
79482
79483         Factor int-properties macros into a single file, except for
79484         glibc-related files.
79485         * lib/intprops.h: New file.
79486         * lib/getloadavg.c: Include it instead of limits.h.
79487         (INT_STRLEN_BOUND): Remove.
79488         * lib/human.c: Include intprops.h.
79489         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
79490         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
79491         302/1000.
79492         * lib/inttostr.h: Include intprops.h instead of limits.h.
79493         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
79494         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
79495         for consistency with intprops.h.
79496         (time_t_is_integer, twos_complement_arithmetic): Use them.
79497         * lib/sig2str.h: Include <signal.h>, intprops.h.
79498         (INT_STRLEN_BOUND): Remove.
79499         * lib/strftime.c (TYPE_SIGNED): Remove.
79500         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
79501         * lib/strtol.c: Adjust comments to match intprops.h.
79502         * lib/userspec.c: Include intprops.h.
79503         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
79504         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
79505         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
79506         instead of rolling our own expressions.
79507         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
79508
79509         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
79510         instead of int.
79511         (my_strftime): Do not mishandle years close to INT_MAX, by doing
79512         the right thing even if adding 1900 would overflow.  Similarly
79513         for tm_mon + 1 and tm_yday + 1.
79514         Make %Y always equivalent to %C%y, and similarly for %G and %g.
79515         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
79516         (DO_SIGNED_NUMBER): New macro.
79517         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
79518
79519 2005-03-07  Bruno Haible  <bruno@clisp.org>
79520
79521         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
79522
79523 2005-03-07  Bruno Haible  <bruno@clisp.org>
79524
79525         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
79526
79527 2005-03-04  Derek R. Price  <derek@ximbiot.com>
79528
79529         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
79530         (func_import): Only replace files via --import when they have actually
79531         changed.
79532
79533 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79534
79535         * m4/mmap-anon.m4: New file.
79536         * m4/pagealign_alloc.m4: New file.
79537
79538 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79539             Bruno Haible  <bruno@clisp.org>
79540
79541         * modules/pagealign_alloc: New file.
79542         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
79543
79544 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79545             Bruno Haible  <bruno@clisp.org>
79546
79547         * lib/pagealign_alloc.h: New file.
79548         * lib/pagealign_alloc.c: New file.
79549
79550 2005-03-03  Bruno Haible  <bruno@clisp.org>
79551
79552         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
79553         Use an all-permissive copyright notice, recommended by RMS.
79554
79555 2005-03-02  Bruno Haible  <bruno@clisp.org>
79556
79557         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
79558         of AIX, the replacement has to be done only after <string.h> is
79559         included, therefore not in config.h. stpncpy.h does the replacement,
79560         and stpncpy.c uses it.
79561
79562 2005-03-02  Bruno Haible  <bruno@clisp.org>
79563
79564         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
79565         stpncpy.c uses it.
79566
79567 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79568
79569         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
79570         The workaround isn't strictly needed for POSIX conformance, and
79571         it's too much of a pain to configure and maintain.  We'll ask
79572         people to fix their kernels instead.
79573         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
79574         (NANOSLEEP_BUG_WORKAROUND): Remove.
79575         (xnanosleep): Remove the workaround.
79576
79577 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79578
79579         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
79580         Reported by Derek Price.
79581         (Include): Add "timespec.h".
79582
79583         * modules/xnanosleep (Depends-on): Remove gethrxtime.
79584
79585 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79586
79587         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
79588         to detect nanosleep bug.
79589
79590 2005-03-01  Bruno Haible  <bruno@clisp.org>
79591
79592         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
79593
79594 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79595
79596         * modules/gethrxtime: New file.
79597         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
79598         (Depends-on): Add gethrxtime.
79599         (configure.ac): Add gl_XNANOSLEEP.
79600         (Makefile.am): Remove lib_SOURCES line.
79601
79602 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79603
79604         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
79605         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
79606
79607 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79608
79609         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
79610         * lib/timespec.h (gettime): Return void, since it always
79611         succeeds now.  All uses changed.
79612         * lib/gettime.c (gettime): Likewise.
79613         [HAVE_NANOTIME]: Prefer nanotime.
79614         Assume gettimeofday succeeds, as POSIX requires.
79615         Assime time () succeeds, since other code already does.
79616         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
79617         (timespec_subtract): Remove.
79618         (NANOSLEEP_BUG_WORKAROUND): New constant.
79619         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
79620         things considerably.  Use it only on GNU/Linux hosts, since the
79621         workaround shouldn't be needed elsewhere.
79622
79623 2005-02-24  Bruno Haible  <bruno@clisp.org>
79624
79625         * modules/gettext (Files): Add m4/glibc2.m4.
79626
79627 2005-02-24  Bruno Haible  <bruno@clisp.org>
79628
79629         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
79630         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
79631         * m4/progtest.m4:
79632         Update from GNU gettext 0.14.2.
79633         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
79634
79635 2005-02-24  Bruno Haible  <bruno@clisp.org>
79636
79637         * lib/localcharset.c: Update from GNU gettext 0.14.2.
79638         * lib/config.charset: Update from GNU gettext 0.14.2.
79639
79640 2005-02-24  Bruno Haible  <bruno@clisp.org>
79641
79642         * lib/gettext.h: Update from GNU gettext 0.14.2.
79643
79644 2005-02-23  Simon Josefsson  <jas@extundo.com>
79645
79646         * m4/iconvme.m4: New file.
79647
79648 2005-02-23  Jim Meyering  <jim@meyering.net>
79649
79650         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
79651         change.
79652         Thanks to Bruno Haible for catching it.
79653
79654 2005-02-22  Simon Josefsson  <jas@extundo.com>
79655
79656         * modules/iconvme: New file.
79657
79658         * MODULES.html.sh: Add iconvme.
79659
79660 2005-02-22  Simon Josefsson  <jas@extundo.com>
79661
79662         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
79663
79664 2005-02-22  Simon Josefsson  <jas@extundo.com>
79665
79666         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
79667
79668 2005-02-22  Jim Meyering  <jim@meyering.net>
79669
79670         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
79671         s/ifndef/ifdef/.
79672
79673 2005-02-20  Neil Conway  <neilc@samurai.com>
79674
79675         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
79676         returned by OSX/Darwin if the specified buffer is not large
79677         enough for the hostname.
79678
79679 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79680
79681         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
79682         pass it to _help, otherwise the latter coredumps trying to
79683         dereference state.root_argp.
79684
79685 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79686
79687         * modules/chdir-long (Depends-on): Add memrchr.
79688         * modules/memrchr (Files): Add lib/memrchr.h.
79689         (Include): "memrchr.h".
79690
79691 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79692
79693         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
79694
79695 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79696
79697         * lib/memrchr.h: New file.
79698         * lib/chdir-long.c: Include it.
79699         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
79700         Don't bother including stddef.h.
79701
79702 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
79703
79704         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
79705         inclusion.
79706         Include <sys/types.h>, for dev_t.
79707         (ME_DUMMY, ME_REMOTE): Move from here....
79708         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
79709         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
79710         Dmitry V. Levin.
79711         Include mountlist.h first, to test the interface.
79712
79713 2005-01-29  Bruno Haible  <bruno@clisp.org>
79714
79715         * lib/progname.c (program_name): Initialize.
79716         Needed when linking statically on MacOS X.
79717
79718 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79719
79720         Sync from coreutils.
79721         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
79722         (Depends-on): Add c-strtod.
79723         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
79724
79725 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79726
79727         Sync from coreutils.
79728         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
79729
79730         Remove files that are specific to coreutils.
79731         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
79732
79733 2005-01-28  Bruno Haible  <bruno@clisp.org>
79734
79735         * modules/javacomp: New file.
79736         * MODULES.html.sh (Java): Add javacomp.
79737
79738 2005-01-28  Bruno Haible  <bruno@clisp.org>
79739
79740         * m4/javacomp.m4: New file, from GNU gettext.
79741
79742 2005-01-28  Bruno Haible  <bruno@clisp.org>
79743
79744         * lib/javacomp.sh.in: New file, from GNU gettext.
79745         * lib/javacomp.h: New file, from GNU gettext.
79746         * lib/javacomp.c: New file, from GNU gettext.
79747
79748 2005-01-26  Simon Josefsson  <jas@extundo.com>
79749
79750         * lib/gai_strerror.c: Use GPL in header.
79751
79752 2005-01-26  Bruno Haible  <bruno@clisp.org>
79753
79754         * modules/javaexec: New file.
79755         * MODULES.html.sh (Java): Add javaexec.
79756
79757 2005-01-26  Bruno Haible  <bruno@clisp.org>
79758
79759         * m4/javaexec.m4: New file, from GNU gettext.
79760
79761 2005-01-26  Bruno Haible  <bruno@clisp.org>
79762
79763         * lib/javaexec.sh.in: New file, from GNU gettext.
79764         * lib/javaexec.h: New file, from GNU gettext.
79765         * lib/javaexec.c: New file, from GNU gettext.
79766
79767 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79768
79769         * modules/lchown (Depends-on): Remove lchown.h
79770
79771 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79772
79773         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
79774         must be defined if the header file was not found, in order
79775         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
79776
79777 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79778
79779         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
79780         initializers for struct pentry_state.
79781         (__argp_error): Check return value of __asprintf
79782         (__argp_failure): Translate error message
79783
79784         * lib/argp-parse.c: Removed braces around the expansion of N_()
79785
79786 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79787
79788         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
79789         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
79790         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
79791         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
79792         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
79793         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
79794         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
79795         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
79796         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
79797         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
79798         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
79799         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
79800         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
79801         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
79802         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
79803         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
79804         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
79805         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
79806         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
79807         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
79808         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
79809         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
79810         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
79811         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
79812         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
79813         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
79814         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
79815         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
79816         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
79817         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
79818         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
79819         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
79820         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
79821         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
79822         xstrtol.m4, xstrtoumax.m4, yesno.m4:
79823         Use an all-permissive copyright notice, recommended by RMS.
79824
79825 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
79826
79827         * modules/chdir-long (Depends-on): Remove mempcpy.
79828
79829 2005-01-21  Jim Meyering  <jim@meyering.net>
79830
79831         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
79832         same value as for Solaris 9.
79833
79834         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
79835         component length.  This included changing the parameter to be
79836         of type `char *' rather than `char const *'.
79837         * lib/chdir-long.h (chdir_long): Update prototype.
79838
79839         * lib/openat.c (fdopendir, fstatat): New functions.
79840         * lib/openat.h: Include headers required for use of DIR and struct
79841         stat.
79842         [AT_SYMLINK_NOFOLLOW]: Define.
79843         (fdopendir, fstatat): Add prototypes.
79844
79845 2005-01-21  Bruno Haible  <bruno@clisp.org>
79846
79847         * modules/classpath: New file.
79848         * MODULES.html.sh (Java): Add classpath.
79849
79850 2005-01-21  Bruno Haible  <bruno@clisp.org>
79851
79852         * lib/classpath.h: New file, from GNU gettext.
79853         * lib/classpath.c: New file, from GNU gettext.
79854
79855 2005-01-20  Simon Josefsson  <jas@extundo.com>
79856
79857         * modules/version-etc-fsf: New file.
79858
79859 2005-01-20  Simon Josefsson  <jas@extundo.com>
79860
79861         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
79862         * lib/version-etc.c: Remove version_etc_copyright.
79863         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
79864         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
79865
79866 2005-01-20  Simon Josefsson  <jas@extundo.com>
79867
79868         * lib/base64.h (isbase64): Add.
79869
79870         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
79871         using a unsigned prototype, don't inline.
79872         (base64_decode): Use it.
79873
79874 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79875
79876         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
79877         it.
79878
79879 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79880
79881         * lib/save-cwd.c (save_cwd): Remove code to support the case
79882         where fchdir is missing or flaky.
79883
79884 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79885
79886         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
79887
79888 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
79889
79890         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
79891         AC_LIBSOURCES now does this.
79892         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
79893         with new ullong_max module.
79894
79895 2005-01-19  Bruno Haible  <bruno@clisp.org>
79896
79897         * modules/sh-quote: New file.
79898         * MODULES.html.sh (Executing programs): Add sh-quote.
79899
79900 2005-01-19  Bruno Haible  <bruno@clisp.org>
79901
79902         * lib/sh-quote.h: New file, from GNU gettext.
79903         * lib/sh-quote.c: New file, from GNU gettext.
79904
79905 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79906
79907         Merge from coreutils.
79908         * m4/ullong_max.m4: New file.
79909         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
79910         (gl_MACROS): Assume localeconv exists.
79911
79912 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79913
79914         Merge changes from coreutils, as described below in several
79915         changelogs dated today.
79916
79917         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
79918         (O_DIRECTORY): Remove; not needed here, since "." must be
79919         a directory.  All uses removed.
79920         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
79921         universal on Suns, and we also need to test for IRIX.
79922         Revamp code to use 'if' rather than '#if'.
79923         Avoid unnecessary comparison of cwd->desc to 0.
79924
79925         * lib/utimens.c (futimens): Robustify the previous patch, by checking
79926         for known valid error numbers rather than observed invalid ones.
79927
79928 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79929
79930         * modules/ullong_max: New file.
79931
79932         * modules/chdir-long, modules/openat: New files.
79933         * modules/save-cwd (Depends-on): Depend on chdir-long.
79934         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
79935
79936 2005-01-18  Jim Meyering  <jim@meyering.net>
79937
79938         Merge from coreutils.
79939         * m4/chdir-long.m4, m4/openat.m4: New files.
79940         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
79941         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
79942         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
79943         is sane and DOES follow symlinks.  Besides, testing 20 different
79944         systems found no broken chown implementations.
79945         Prompted by a change in rsync's copy of this macro.
79946         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
79947
79948         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
79949
79950         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
79951         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
79952         NULL-means-set-to-current-time semantics.
79953         Remove temporary file immediately, rather than waiting
79954         for configure's at-exit trap code to do it.
79955
79956 2005-01-18  Jim Meyering  <jim@meyering.net>
79957
79958         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79959
79960         * lib/utimens.c (futimens): Account for the fact that futimes
79961         can also fail with errno == ENOSYS or errno == ENOENT.
79962         Patch from Dmitry V. Levin.
79963
79964         Change the name of the robust chdir function from chdir to chdir_long.
79965         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
79966         (restore_cwd): Use chdir_long, not chdir.
79967         * lib/chdir-long.c: Renamed from chdir.c.
79968         * lib/chdir-long.h: Renamed from chdir.h.
79969         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
79970         Hurd.
79971
79972 2005-01-18  Bruno Haible  <bruno@clisp.org>
79973
79974         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
79975         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
79976         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
79977         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
79978         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
79979         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
79980         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
79981         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
79982         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
79983         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
79984         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
79985         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
79986         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
79987         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
79988         Use an all-permissive copyright notice, recommended by RMS.
79989
79990 2005-01-18  Bob Proulx  <bob@proulx.com>
79991
79992         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
79993         simplify offsetof() macro construct to avoid compile failure with
79994         native HP-UX 11.0 ANSI C compiler.
79995
79996 2005-01-17  Bruno Haible  <bruno@clisp.org>
79997
79998         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
79999         redundant because stpncpy.m4 takes care of it.
80000
80001 2005-01-17  Bruno Haible  <bruno@clisp.org>
80002
80003         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
80004
80005 2005-01-17  Bruno Haible  <bruno@clisp.org>
80006
80007         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
80008         used.
80009
80010 2005-01-17  Bruno Haible  <bruno@clisp.org>
80011
80012         * lib/fwriteerror.h (fwriteerror): Change specification to include
80013         fclose.
80014         * lib/fwriteerror.c: Include <stdbool.h>.
80015         (fwriteerror): At the end, close the file stream. Record whether
80016         stdout was already closed.
80017
80018 2005-01-17  Bruno Haible  <bruno@clisp.org>
80019
80020         * lib/execute.c (environ): Declare if needed.
80021         * lib/pipe.c (environ): Likewise.
80022         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
80023
80024 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80025
80026         * modules/argp: Depend on vsnprintf
80027
80028 2005-01-10  Jim Meyering  <jim@meyering.net>
80029
80030         * modules/closeout (Depends-on): Add atexit.
80031
80032 2005-01-06  Bruno Haible  <bruno@clisp.org>
80033
80034         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
80035
80036 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80037
80038         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
80039         definitions to be after all include files, to avoid collisions.
80040         Problem reported by Bob Proulx.
80041
80042 2005-01-04  Jim Meyering  <jim@meyering.net>
80043
80044         Changes imported from coreutils.
80045         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
80046         as the mkstemp template, use a temporary directory and an
80047         8.3-friendly template to avoid trouble on systems like DJGPP.
80048         Reported by Juan M. Guerrero via Stepan Kasal.
80049         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
80050         close. Remove the temporary directory right away, rather than waiting
80051         for configure's at-exit trap code to do it.
80052         Suggestion from Stepan Kasal.
80053
80054 2005-01-01  Simon Josefsson  <jas@extundo.com>
80055
80056         * gnulib-tool: Print #include directives when --import'ing.
80057
80058 2004-12-28  Simon Josefsson  <jas@extundo.com>
80059
80060         * tests/test-base64.c: Include required header files.  Remove
80061         unused variables.
80062
80063 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
80064
80065         * modules/error (Depends-on): Remove gettext.
80066
80067 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
80068
80069         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
80070         not needed.  This removes a dependency on the gettext module.
80071         [defined _LIBC]: Do not include <libintl.h>; not needed.
80072
80073 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
80074
80075         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
80076         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
80077
80078 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
80079
80080         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
80081         HAVE_DECL_STRTOLD.
80082
80083 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80084
80085         * modules/getdate (Depends-on): Remove alloca-opt.
80086
80087 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80088
80089         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
80090
80091 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80092
80093         * lib/argp-parse.c: Include <stddef.h>.
80094         (alignof, alignto): New macros.
80095         (parser_init): Don't assume that void * is aligned sufficiently
80096         for struct option.
80097
80098         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
80099         need to extend the stack.
80100         (YYINITDEPTH): New macro, so that the initial stack isn't overly
80101         large.
80102
80103 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80104
80105         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
80106
80107 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
80108
80109         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
80110         (2004-10-24) change.  Apparently this was a false alarm.
80111
80112         * modules/getdate: Depend on alloca-opt, not alloca.
80113
80114 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
80115
80116         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
80117         Remove now-obsolete comment about AIX.
80118         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
80119         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
80120         (YYMAXDEPTH): New macro.
80121
80122 2004-12-18  Simon Josefsson  <jas@extundo.com>
80123
80124         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
80125
80126 2004-12-18  Bruno Haible  <bruno@clisp.org>
80127
80128         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
80129
80130 2004-12-18  Bruno Haible  <bruno@clisp.org>
80131
80132         * lib/fatal-signal.c (fatal_signals): Make non-const.
80133         (init_fatal_signals): New function.
80134         (uninstall_handlers, install_handlers): Ignore signals that were set to
80135         SIG_IGN.
80136         (at_fatal_signal): Call init_fatal_signals.
80137         (init_fatal_signal_set): Likewise. Ignore signals that were set to
80138         SIG_IGN.
80139         Reported by Paul Eggert.
80140
80141 2004-12-18  Bruno Haible  <bruno@clisp.org>
80142
80143         * doc/alloca.texi: New file.
80144         * doc/alloca-opt.texi: New file.
80145
80146 2004-12-17  Jim Meyering  <jim@meyering.net>
80147
80148         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
80149         Otherwise, install-sh could exit with improper exit status when
80150         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
80151
80152 2004-12-16  Simon Josefsson  <jas@extundo.com>
80153
80154         * tests/test-base64.c: Add license.
80155
80156 2004-12-15  Stepan Kasal  <address@hidden>
80157
80158         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
80159
80160 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
80161
80162         * modules/getcwd (Files): Add m4/d-ino.m4.
80163         Suggested by Mark D. Baushke.
80164
80165 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80166
80167         * lib/getdate.y (textint): New member "negative".
80168         (time_zone_hhmm): New function.
80169         Expect 14 shift-reduce conflicts, not 13.
80170         (o_colon_minutes): New rule.
80171         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
80172         (yylex): Set the "negative" member of signed numbers.
80173
80174 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80175
80176         * doc/getdate.texi (Time of day items, Time zone items):
80177         Describe new formats +00:00, UTC+00:00.
80178
80179 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80180
80181         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
80182         spurious "-l"s.  Problem reported by Stepan Kasal.
80183
80184 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
80185
80186         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
80187         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
80188
80189 2004-12-04  Simon Josefsson  <jas@extundo.com>
80190
80191         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
80192         Vandoorselaere <yoann@prelude-ids.org>.
80193
80194 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80195
80196         Changes imported from coreutils.
80197         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
80198         exist.
80199         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
80200
80201 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80202
80203         Changes imported from coreutils.
80204         * lib/hard-locale.c: Assume <locale.h> exists.
80205         Include "strdup.h".
80206         (GLIBC_VERSION): New macro.
80207         (hard_locale): Assume setlocale exists.
80208         Rewrite to avoid #ifdef.
80209         Use strdup rather than malloc + strcpy.
80210         * lib/human.c: Assume <locale.h> exists.
80211         (human_readable): Assume localeconv exists.
80212
80213 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80214
80215         * modules/hard-locale (Depends-on): Add strdup.
80216
80217 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
80218
80219         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
80220         convert T2, not T.  (Imported from libc.)
80221
80222 2004-11-30  Simon Josefsson  <jas@extundo.com>
80223
80224         * modules/restrict (License): Change to LGPL.
80225
80226 2004-11-30  Simon Josefsson  <jas@extundo.com>
80227
80228         * m4/restrict.m4: Add copyright and copying conditions.
80229
80230 2004-11-30  Simon Josefsson  <jas@extundo.com>
80231
80232         * m4/base64.m4: New file.
80233
80234 2004-11-30  Simon Josefsson  <jas@extundo.com>
80235
80236         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
80237         base64.
80238
80239         * tests/test-base64.c: New file.
80240
80241         * modules/base64: New file.
80242
80243 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80244
80245         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
80246         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
80247
80248         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
80249
80250 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80251
80252         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
80253         (__getcwd.c): Don't restore errno; glibc doesn't.
80254         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
80255         first, falling back to our code only if its results look suspicious.
80256         Ensure that the resulting buffer is only as large as necessary.
80257
80258         * lib/readutmp.c: Include readutmp.h first.
80259         Include <errno.h>, since readutmp.h no longer does that.
80260         * lib/readutmp.h: Don't include <errno.h>,
80261         <sys/param.h>, <time.h>; not needed to establish interface.
80262         (errno): Remove decl.
80263         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
80264         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
80265         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
80266
80267 2004-11-28  Simon Josefsson  <jas@extundo.com>
80268
80269         * lib/base64.h, base64.c: New file.
80270
80271 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
80272
80273         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
80274
80275 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
80276
80277         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
80278         (Depends-on): Remove pathmax, same.  Add mempcpy.
80279         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
80280         (Makefile.am): Append getcwd.h to lib_SOURCES.
80281         (Include): Add getcwd.h.
80282         (Maintainer): Change from Jim Meyering to "all, glibc",
80283         since getdate now uses intended-for-glibc code.
80284         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
80285         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
80286
80287 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80288
80289         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
80290         HP's ANSI C compiler.
80291         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
80292         Declaring int functions causes warnings on some modern systems and
80293         shouldn't be needed to compile on ancient ones.
80294         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
80295         defined.
80296
80297         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
80298         with the following changes.
80299         (__set_errno): Parenthesize properly.
80300         Include <stdbool.h>.
80301         (MIN, MAX, MATCHING_INO): New macros.
80302         (__getcwd): Define with prototype, not K&R form.
80303         Use heuristics to allocate default buffer on stack if possible.
80304         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
80305         behavior, and to avoid the PATH_MAX limit when computing
80306         ../../../../...
80307         Use MATCHING_INO to compare inode number to file.
80308         Check for arithmetic overflow in size calculations.
80309         Fix bug in reallocation of dot array that caused getcwd to fail
80310         on directories nested deeper than 75.
80311         Be more careful about saving errno on error.
80312         Do not use realloc; use only free+malloc, as this is a bit
80313         more flexible and avoids a needless copy operation.
80314         Do not inspect st_dev and st_ino for symbolic links; POSIX
80315         doesn't specify the latter.
80316         Check for closedir errors.
80317         Avoid needless casts.
80318         Use "#ifdef weak_alias" around weak_alias, to be like other
80319         glibc code.
80320         The following changes to getcwd.c have effect only when used in
80321         gnulib; they have no effect inside glibc proper.
80322         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
80323         as alloca isn't used.
80324         (alloca, __alloca): Likewise.
80325         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
80326         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80327         unconditionally, as gnulib assumes C89 or better.
80328         Do not include <sys/param.h>.
80329         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
80330         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
80331         better.
80332         (NULL) [!defined NULL]: Remove; we assume C89 or better.
80333         Include <dirent.h> in a way that is compatible with modern Autoconf.
80334         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
80335         New macros, if not already defined.
80336         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
80337         Use "_LIBC", not "defined _LIBC", for consistency.
80338         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
80339         a mempcpy module.
80340         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
80341         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
80342         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
80343         credit only to Jim Meyering and adjust the copyright dates.
80344         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
80345         <stdlib.h>, <unistd.h>, "pathmax.h".
80346         Instead, include "xgetcwd.h" (first) and "getcwd.h".
80347         (INITIAL_BUFFER_SIZE): Remove.
80348         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
80349
80350 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80351
80352         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
80353         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
80354         Use the _ONCE methods, for efficiency.
80355         Check for fcntl.h.  In test program, include <errno.h>
80356         and <fcntl.h> if available.  Remove old K&R cruft from
80357         test program.  Check for common errors in GNU/Linux,
80358         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
80359         don't do AC_LIBOBJ, as that's getcwd.m4's job.
80360         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
80361         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
80362         name accordingly.
80363         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
80364         accommodate new getcwd.c.
80365         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
80366         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
80367         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
80368         that's all we need now.
80369
80370 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80371
80372         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
80373         argp-parse.c depends on getopt internals, that means we should
80374         always use our getopt, to be on the safe side.
80375         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
80376         order not to spoil the result of an eventual previous invocation
80377         of gl_GETOPT_SUBSTITUTE.
80378
80379 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80380
80381         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
80382         redefinition warnings. To avoid them, include the defines
80383         in `#if !defined __need_getopt ... #endif'. The only place
80384         where __getopt_argv_const is used is in definitions
80385         of getopt_long and getopt_long_only below, which are as well
80386         protected by `#ifndef __need_getopt'.
80387         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
80388         __need_getopt after including <stdio.h> and <unistd.h> These
80389         headers might have defined it.
80390
80391 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80392
80393         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
80394
80395 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80396
80397         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
80398         (futimens): New function, which uses futimes if available.
80399         (futimens, utimens): Support timespec==NULL, with same semantics
80400         as utime and utimens.
80401         * lib/utimens.h (futimens): New decl.
80402
80403 2004-11-23  Jim Meyering  <jim@meyering.net>
80404
80405         * lib/getopt_.h: Remove trailing blanks.
80406
80407 2004-11-23  Jim Meyering  <jim@meyering.net>
80408
80409         * lib/__fpending.c: Add comment.
80410
80411 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
80412
80413         * modules/canonicalize (Depends-on): Add xreadlink.
80414         Problem reported by James Youngman.
80415
80416 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
80417
80418         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
80419         New macros.
80420         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
80421         optopt): Use them instead of invoking ## directly; otherwise, the
80422         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
80423
80424 2004-11-19  Bruno Haible  <bruno@clisp.org>
80425
80426         * lib/strtok_r.c: Move comments from here...
80427         * lib/strtok_r.h: ... to here.
80428
80429 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80430
80431         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
80432         implementations that mishandle size_t overflow.
80433
80434 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80435
80436         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
80437         might fail.  Problem reported by Yoann Vandoorselaere.
80438         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
80439         implementations that mishandle size_t overflow.
80440
80441 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80442
80443         * modules/canon-host (Depends-on): Add strdup.
80444
80445 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80446
80447         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
80448
80449 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80450
80451         * lib/canon-host.c: Include "strdup.h".
80452         (canon_host): Use getaddrinfo if available, so that IPv6 works.
80453         Use strdup instead of malloc/strcpy to duplicate strings.
80454
80455         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
80456         (human_space_before_unit): New constant.
80457         * lib/human.c (human_readable): Support it.
80458
80459         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
80460         (xgetcwd): Set errno correctly when failing.
80461         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
80462         the failure is actually due to a PATH_MAX problem.
80463
80464         Further getopt changes to make it more likely that glibc will
80465         buy the changes back.
80466         * lib/getopt.c (POSIXLY_CORRECT): New constant.
80467         (getopt): Use it, so to preserve glibc semantic
80468         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
80469         when compiling for libc.
80470         * lib/getopt_.h (__getopt_argv_const): Bring it back.
80471         (getopt_long, getopt_long_only): Use it.
80472
80473         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80474         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
80475         (getopt): Argv is now char * const *, as per standard.
80476         (_getopt_internal_r, _getopt_internal): Argv is now char **,
80477         not char *__getopt_argv_const *.
80478         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80479         _getopt_long_only_r): Likewise.
80480         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
80481         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80482         _getopt_long_r, _getopt_long_only_r): Likewise.
80483         * lib/getopt_.h (__getopt_argv_const): Remove.
80484         (getopt): Argv is now char * const *, as per standard.
80485
80486         * lib/getdate.y (tORDINAL): New token.
80487         (day, relunit): Allow it for relative times.
80488         (relative_time_table): Use tORDINAL for ordinals.
80489
80490 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80491
80492         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
80493         Document that "second" isn't allowed as an ordinal number.
80494
80495 2004-11-16  Jim Meyering  <jim@meyering.net>
80496
80497         * modules/closeout (Depends-on): Add fpending.
80498
80499 2004-11-15  Jim Meyering  <jim@meyering.net>
80500
80501         * lib/closeout.c: Include "__fpending.h" once again.
80502         Include <stdbool.h>.
80503         (close_stdout): Don't fail just because stdout was closed initially,
80504         since some programs don't write to stdout in the normal course of
80505         operation (other than --version and --help), and we don't want this
80506         function to make e.g. `touch file >&-' fail.
80507         But do fail if it was closed and someone has tried to write to it.
80508         E.g., `printf foo >&-' must fail.
80509
80510 2004-11-13  Jim Meyering  <jim@meyering.net>
80511
80512         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
80513
80514 2004-11-12  Simon Josefsson  <jas@extundo.com>
80515
80516         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
80517         small doc fix is still pending.
80518
80519 2004-11-11  Simon Josefsson  <jas@extundo.com>
80520
80521         * modules/strtok_r: New file.
80522
80523         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80524         strtok_r.
80525
80526 2004-11-11  Simon Josefsson  <jas@extundo.com>
80527
80528         * m4/strtok_r.m4: New file.
80529
80530         * m4/getopt.m4: Replace opterr.
80531
80532 2004-11-11  Simon Josefsson  <jas@extundo.com>
80533
80534         * lib/strtok_r.h, strtok_r.c: New file.
80535
80536 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80537
80538         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
80539         of replacing opterr, getopt, etc.  This should handle the
80540         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
80541
80542 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80543
80544         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
80545         we can stop lying to compilers about the constness of argv when we
80546         are compiled outside glibc.
80547         (getopt, getopt_long, getopt_long_only): Use it.
80548         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80549         _getopt_internal, getopt): Likewise.
80550         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80551         _getopt_long_only_r): Likewise.
80552         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80553         _getopt_long_r, _getopt_long_only_r): Likewise.
80554
80555         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
80556         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
80557         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
80558         the other external symbols.
80559         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
80560         declaration, since the above renaming now works around collisions.
80561
80562 2004-11-11  Jim Meyering  <jim@meyering.net>
80563
80564         * lib/linebreak.c: Remove trailing blanks.
80565         * lib/alloca_.h: Likewise.
80566         * lib/acosl.c: Likewise.
80567         * lib/euidaccess.c: Likewise.
80568         * lib/allocsa.h: Likewise.
80569
80570 2004-11-10  Simon Josefsson  <jas@extundo.com>
80571
80572         * m4/getaddrinfo.m4: New file.
80573
80574 2004-11-10  Simon Josefsson  <jas@extundo.com>
80575
80576         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
80577
80578 2004-11-10  Simon Josefsson  <jas@extundo.com>
80579
80580         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80581         getaddrinfo.
80582
80583         * modules/getaddrinfo: New file.
80584
80585 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80586
80587         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
80588
80589 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80590
80591         * lib/mktime.c (SHR): New macro, which is a portable
80592         substitute for >> that should work even on Crays.
80593         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
80594         Problem reported by Mark D. Baushke in
80595         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
80596         * lib/getdate.y (SHR): Likewise.
80597         (tm_diff): Use it.
80598         * lib/strftime.c (SHR): Likewise.
80599         (tm_diff): Use it.
80600         * lib/quotearg.c (struct quoting_options): Use unsigned int for
80601         quote_these_too, so that right shifts are well defined.  All uses
80602         changed.
80603
80604 2004-11-10  Jim Meyering  <jim@meyering.net>
80605
80606         Ensure that no close failure goes unreported.
80607         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
80608         return early when it seems there's nothing to flush.
80609         Don't include __fpending.h.
80610
80611 2004-11-10  Jim Meyering  <jim@meyering.net>
80612
80613         * modules/closeout (Depends-on): Remove fpending.
80614
80615 2004-11-10  Jim Meyering  <jim@meyering.net>
80616
80617         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
80618
80619 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80620
80621         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
80622         gl_FUNC_STRFTIME.
80623         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
80624         and AC_REQUIRE when possible, to avoid duplicate checks.
80625         Check for <wchar.h>.
80626
80627 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80628
80629         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
80630
80631 2004-11-09  Bruno Haible  <bruno@clisp.org>
80632
80633         * m4/sockpfaf.m4: New file.
80634
80635 2004-11-05  Bruno Haible  <bruno@clisp.org>
80636
80637         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
80638         Reported by Mark D. Baushke <mdb@cvshome.org>.
80639
80640 2004-11-04  Bruno Haible  <bruno@clisp.org>
80641
80642         2004-09-11  Bruno Haible  <bruno@clisp.org>
80643                 * allocsa.valgrind: New file.
80644         2004-02-06  Bruno Haible  <bruno@clisp.org>
80645                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
80646                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
80647                 Reported by Christopher Seip <chris.seip@hp.com>.
80648
80649 2004-11-04  Bruno Haible  <bruno@clisp.org>
80650
80651         * modules/allocsa (Files): Add lib/allocsa.valgrind.
80652         (Makefile.am): Distribute it.
80653
80654 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
80655
80656         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
80657         with errno == ERANGE if the buffer is too small.
80658         Problem reported by Mark D. Baushke.
80659
80660 2004-11-03  Albert Chin  <china@thewrittenword.com>
80661             Paul Eggert  <eggert@cs.ucla.edu>
80662
80663         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
80664         equivalent, substitute $ac_type for equivalent type rather than
80665         blindly using uint32_t *always* which won't work if uint32_t is not
80666         available.  Define _UINT32_T to work around typedef of uint32_t if
80667         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
80668         2.5.1.
80669
80670 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80671
80672         * m4/jm-macros.m4: Sync from coreutils.
80673         (gl_MACROS): Check for mbrlen, for pathchk.
80674         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
80675
80676 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80677
80678         * lib/xreadlink.c (MAXSIZE): New macro.
80679         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
80680         size does not exceed MAXSIZE.  Avoid cast.
80681         As suggested by Mark D. Baushke in
80682         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
80683         if readlink fails with buffer size just under MAXSIZE, try again
80684         with MAXSIZE.
80685
80686 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80687
80688         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
80689
80690 2004-11-02  Derek R. Price  <derek@ximbiot.com>
80691         and  Paul Eggert  <eggert@cs.ucla.edu>
80692
80693         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
80694         (get_date): Overparenthesize to avoid GCC warning.
80695
80696 2004-11-02  Bruno Haible  <bruno@clisp.org>
80697
80698         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
80699         returns void.
80700
80701 2004-11-02  Bruno Haible  <bruno@clisp.org>
80702
80703         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
80704         function returns void.
80705
80706 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80707
80708         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
80709         fflush_unlocked, flockfile, funlockfile, funlockfile,
80710         fputs_unlocked, putc_unlocked.
80711
80712 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80713
80714         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80715         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
80716         already declared.
80717
80718 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80719
80720         * modules/getdate (Files): Add doc/getdate.texi.
80721         (Depends-on): Add setenv, xalloc.
80722
80723 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80724
80725         * lib/getdate.y: Add support for TZ="foo" within a date string.
80726         Fix some bugs near time_t boundaries.  Reject dates with
80727         out-of-range components, e.g., "Sept 31".
80728         Include <stdlib.h>, "setenv.h", "xalloc.h".
80729         (ISDIGIT_LOCALE): Remove; unused.
80730         Note that the TZ and time functions used here are not reentrant.
80731         (mktime_ok, get_tz): New functions.
80732         (TZBUFSIZE): New constant.
80733         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
80734         This requires that we sometimes generate our own TZ="XXX..." setting.
80735
80736 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80737
80738         * doc/getdate.texi: New file, from coreutils with modifications for
80739         the new TZ parsing.
80740
80741 2004-10-27  Derek R. Price  <derek@ximbiot.com>
80742
80743         * lib/mktime.c (not_equal_tm): Remove redundant check.
80744
80745 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80746
80747         * modules/regex (lib_SOURCES): Add regex.c.
80748         Reported by James Youngman in
80749         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
80750
80751 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80752
80753         * lib/getdate.y: Use Bison 1.875 features, and some minor
80754         code cleanups.  This change does not affect semantics.
80755         Don't include <stdlib.h>; no longer needed.
80756         Don't include unlocked-io.h; only the "#if TEST" code uses
80757         stdio, and performance isn't crucial there.
80758         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
80759         Bison 1.875 features as described below.
80760         All uses of "PC." replaced by "pc->".
80761         (YYSTYPE): Add a forward declaration.
80762         (yylex, yyerror): Use full prototypes in forward decls.
80763         Use "%pure-parser" rather than obsolescent "%pure_parser".
80764         Use %parse-param and %lex-param instead of obsolescent
80765         YYPARSE_PARAM and YYLEX_PARAM.
80766         (meridian_table, month_and_day_table, time_units_table,
80767         relative_time_table, time_zone_table, military_table,
80768         lookup_zone, lookup_word, get_date):
80769         Use NULL instead of 0 where appropriate.
80770         (to_hour): Avoid abort (), to avoid a dependency on
80771         stdlib.h.
80772         (yyerror, yylex): Now accepts parser_control * arg.
80773         (main) [TEST]: Use '\0' rather than 0 for char.
80774
80775 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80776
80777         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
80778
80779 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80780
80781         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
80782         It's now the caller's responsibility to handle the case where
80783         !HAVE_GETPAGESIZE && !defined getpagesize.
80784
80785         * lib/mktime.c (leapyear): Arg is long int, not int.
80786
80787 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
80788
80789         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
80790
80791 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80792
80793         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
80794         missing.  Problem reported by James Youngman.
80795
80796 2004-10-16  Simon Josefsson  <jas@extundo.com>
80797
80798         * gnulib-tool: Fix comments.  Fix parse problem.
80799         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
80800
80801 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
80802
80803         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
80804         implementation of getopt_long.  Problem reported by Alexander Taler in:
80805         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
80806
80807 2004-10-15  Bruno Haible  <bruno@clisp.org>
80808
80809         * gnulib-tool: Untabify. Initialize supplied_libname.
80810         (func_usage): More homogenous output.
80811         (func_modules_transitive_closure, func_modules_to_filelist,
80812         func_emit_lib_Makefile_am): New functions.
80813         (func_import): New function, extracted from big case statement. Use
80814         func_get_license, func_modules_transitive_closure,
80815         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
80816         opt_lgpl. Don't use test -a, as it's not portable.
80817         (func_create_testdir): Use func_modules_transitive_closure,
80818         func_modules_to_filelist, func_emit_lib_Makefile_am.
80819
80820 2004-10-15  Bruno Haible  <bruno@clisp.org>
80821
80822         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
80823
80824 2004-10-15  Bruno Haible  <bruno@clisp.org>
80825
80826         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
80827         the portions belonging to each module.
80828         Suggested by Derek Robert Price <derek@ximbiot.com>.
80829
80830 2004-10-12  Simon Josefsson  <jas@extundo.com>
80831
80832         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80833         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
80834         to real functions.
80835
80836 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80837
80838         * modules/vsnprintf: New file.
80839
80840 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80841
80842         * m4/vsnprintf.m4: New file.
80843
80844 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80845
80846         * lib/vsnprintf.h: New file.
80847         * lib/vsnprintf.c: New file.
80848
80849 2004-10-11  Bruno Haible  <bruno@clisp.org>
80850
80851         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
80852         vsnprintf.
80853
80854 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80855
80856         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
80857
80858 2004-10-07  Bruno Haible  <bruno@clisp.org>
80859
80860         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
80861         fits into the provided buffer.
80862
80863 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80864
80865         * lib/diacrit.c, diacrit.h: Add GPL notice.
80866
80867         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
80868         notice.
80869         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
80870         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
80871         This avoids a potential constant-folding bug.
80872
80873 2004-10-05  Bruno Haible  <bruno@clisp.org>
80874
80875         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
80876         for the declaration of strsep.
80877
80878 2004-10-05  Bruno Haible  <bruno@clisp.org>
80879
80880         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
80881
80882 2004-10-04  Simon Josefsson  <jas@extundo.com>
80883
80884         * modules/memmem: New file.
80885         * tests/test-memmem.c: New file.
80886         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
80887
80888 2004-10-04  Simon Josefsson  <jas@extundo.com>
80889
80890         * m4/memmem.m4: New file.
80891
80892 2004-10-04  Simon Josefsson  <jas@extundo.com>
80893
80894         * lib/memmem.h: New file.
80895         * lib/memmem.c: New file, taken from glibc.
80896
80897 2004-10-04  Simon Josefsson  <jas@extundo.com>
80898
80899         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
80900         '#ifdef USE_UNLOCKED_IO'.
80901
80902 2004-10-04  Simon Josefsson  <jas@extundo.com>
80903
80904         * config/srclist.txt: Add memmem from glibc.
80905
80906 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80907
80908         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
80909
80910         * modules/argmatch, modules/argp, modules/closeout, modules/error,
80911         modules/exclude, modules/getdate, modules/getline,
80912         modules/getndelim2, modules/getpass, modules/getpass-gnu,
80913         modules/getusershell, modules/linebuffer, modules/md5,
80914         modules/mountlist, modules/posixtm, modules/readtokens,
80915         modules/readutmp, modules/regex, modules/sha1,
80916         modules/version-etc, modules/yesno:
80917         Remove dependency on unlocked-io.
80918
80919 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80920
80921         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
80922
80923         * m4/unlocked-io.m4: Add copyright notice.
80924         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
80925
80926 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80927
80928         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
80929         * lib/xmalloc.c (xmemdup): Likewise.
80930         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
80931         XFREE): Remove these long-obsolescent macros.
80932         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
80933         * lib/xstrdup.c: Remove.
80934
80935         * lib/regex.c (re_comp): Cast gettext return value to char *,
80936         Problem reported by Martin Neitzel via Mark D. Baushke.
80937
80938 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80939
80940         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
80941         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
80942         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
80943         regex.c, sha1.c, version-etc.c, yesno.c:
80944         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
80945         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
80946         the includer's responsibility.
80947
80948         Sync from coreutils.
80949
80950         * lib/modechange.c (mode_compile): Don't decrement a pointer that
80951         points to the start of a string, as the C Standard says the
80952         resulting behavior is undefined.
80953
80954         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
80955         simple -> simple_backups, numbered_existing ->
80956         numbered_existing_backups, numbered -> numbered_backups
80957         to avoid shadowing problems.  All uses changed.
80958         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
80959         * lib/backupfile.c (check_extension, numbered_backup):
80960         Rename locals to avoid shadowing 'basename'.
80961         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
80962         once.
80963
80964         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
80965         * lib/.cvsignore: Add getopt.h.
80966
80967 2004-10-04  Bruno Haible  <bruno@clisp.org>
80968
80969         * modules/README: New file.
80970         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
80971         not a module.
80972
80973 2004-10-02  Jim Meyering  <jim@meyering.net>
80974
80975         * lib/dirfd.h, getpagesize.h: Add copyright notice.
80976
80977 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80978
80979         * modules/strsep: New file.
80980
80981 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80982
80983         * m4/strsep.m4: New file.
80984
80985 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80986
80987         * lib/strsep.h: New file.
80988         * lib/strsep.c: New file.
80989
80990 2004-10-01  Simon Josefsson  <jas@extundo.com>
80991
80992         * lib/snprintf.c (snprintf): Handle size==0.
80993
80994 2004-10-01  Simon Josefsson  <jas@extundo.com>
80995             Bruno Haible  <bruno@clisp.org>
80996
80997         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
80998         (snprintf): Declare 'args'.
80999
81000 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
81001
81002         * lib/snprintf.c: Remove comments as to why each header is needed.
81003
81004 2004-10-01  Bruno Haible  <bruno@clisp.org>
81005
81006         * MODULES.html.sh: Add strsep.
81007
81008 2004-09-30  Simon Josefsson  <jas@extundo.com>
81009
81010         * modules/snprintf: New file.
81011
81012 2004-09-30  Simon Josefsson  <jas@extundo.com>
81013
81014         * m4/snprintf.m4: New file.
81015
81016 2004-09-30  Simon Josefsson  <jas@extundo.com>
81017
81018         * lib/snprintf.h, lib/snprintf.c: New files.
81019
81020 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81021
81022         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
81023         (hol_entry_help): Never translate an empty string.
81024         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
81025         * lib/argp.h (OPTION_NO_TRANS): New option.
81026
81027 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81028
81029         * modules/argp (Maintainer): Replace Simon Josefsson
81030         by Sergey Poznyakoff.
81031
81032 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81033
81034         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
81035         changes merged back into glibc.
81036
81037 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81038
81039         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
81040
81041 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81042
81043         * lib/xvasprintf.c: Include xalloc.h.
81044         (xvasprintf): Use xalloc_die, not xmalloc_die.
81045
81046 2004-09-29  Bruno Haible  <bruno@clisp.org>
81047
81048         * modules/alloca-opt: New file, derived from modules/alloca.
81049         * modules/allocsa: Depend on alloca-opt instead of alloca.
81050         * modules/setenv: Likewise.
81051         * modules/vasnprintf: Likewise.
81052         * MODULES.html.sh: Add alloca-opt.
81053
81054 2004-09-28  Simon Josefsson  <jas@extundo.com>
81055
81056         * gnulib-tool: New parameter --lgpl, to asseert that modules are
81057         LGPL, and to replace license template from GPL to LGPL.
81058
81059 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81060
81061         * modules/dummy: Change license to LGPL.
81062
81063 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81064
81065         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
81066
81067 2004-09-24  Simon Josefsson  <jas@extundo.com>
81068
81069         * modules/minmax (License): Change from GPL to LGPL.
81070
81071 2004-09-23  Simon Josefsson  <jas@extundo.com>
81072
81073         * gnulib-tool (--import): Typo.
81074
81075 2004-09-23  Simon Josefsson  <jas@extundo.com>
81076
81077         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
81078
81079 2004-09-22  Bruno Haible  <bruno@clisp.org>
81080
81081         * modules/*: Add 'License' field.
81082         * gnulib-tool: Accept --extract-license option.
81083         (func_get_license): New function.
81084
81085 2004-09-21  Bruno Haible  <bruno@clisp.org>
81086
81087         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
81088         Reported by Simon Josefsson.
81089
81090 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
81091
81092         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
81093         gl_AC_TYPE_LONG_LONG.
81094
81095 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
81096
81097         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
81098
81099 2004-09-18  Simon Josefsson  <jas@extundo.com>
81100         and  Paul Eggert  <eggert@cs.ucla.edu>
81101
81102         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
81103         calls with autoreconf.  Define GL_LIB.
81104
81105 2004-09-14  Karl Berry  <karl@gnu.org>
81106
81107         * config/srclist.txt: unsync setenv.c, sigh.
81108
81109 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
81110
81111         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
81112         Problem reported by Bruno Haible in:
81113         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
81114
81115 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
81116
81117         * config/srclist.txt: Comment out argp-pvh.c.
81118
81119 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
81120
81121         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
81122         in case some system header has #define'd it.  Problem reported by
81123         Soeren D. Schulze in
81124         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
81125
81126 2004-09-09  Karl Berry  <karl@gnu.org>
81127
81128         * regex.[ch]: delete from the root.  These were supposed to be
81129                 synced with emacs cvs, but this has not happened for about
81130                 a year, and anyway nothing else uses emacs regex.[ch].
81131                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
81132                 lib/regex[.ch] is untouched.
81133
81134 2004-09-09  Bruno Haible  <bruno@clisp.org>
81135
81136         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
81137
81138 2004-09-09  Bruno Haible  <bruno@clisp.org>
81139
81140         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
81141         modifications.
81142         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
81143
81144 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81145
81146         * modules/xvasprintf: New file.
81147         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
81148
81149 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81150
81151         * lib/xvasprintf.h: New file.
81152         * lib/xvasprintf.c: New file.
81153         * lib/xasprintf.c: New file.
81154
81155 2004-09-08  Bruno Haible  <bruno@clisp.org>
81156
81157         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
81158
81159 2004-09-08  Bruno Haible  <bruno@clisp.org>
81160
81161         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
81162         length is > INT_MAX.
81163         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
81164         more.
81165
81166 2004-09-08  Bruno Haible  <bruno@clisp.org>
81167
81168         * lib/stdint_.h: New file, taken from GNU clisp.
81169
81170 2004-09-08  Bruno Haible  <bruno@clisp.org>
81171             Oskar Liljeblad  <oskar@osk.mine.nu>
81172
81173         * modules/stdint: New file.
81174         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
81175
81176 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81177
81178         Import from coreutils.
81179         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
81180         strings on unbounded length.  alloca's performance benefits aren't
81181         that important here.
81182         (V_STRDUP): Remove.
81183         (parse_with_separator): New function, with most of the internals
81184         of the old parse_user_spec.  Allow user to omit both user and group,
81185         for compatibility with FreeBSD.
81186         Clone only the user name, not the entire spec.
81187         Do not set *uid, *gid unless entirely successful.
81188         Avoid memory leak in some failing cases.
81189         Fix regression for USER.GROUP reported by Dmitry V. Levin in
81190         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
81191         (parse_user_spec): Rewrite to use parse_with_separator.
81192
81193 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81194
81195         * modules/userspec: Don't depend on alloca.
81196
81197 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81198
81199         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
81200
81201 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81202
81203         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
81204         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
81205         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
81206
81207 2004-08-16  Simon Josefsson  <jas@extundo.com>
81208
81209         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
81210         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
81211         Add --dry-run for --import.
81212         Let user provided command line parameters override configure.ac
81213         settings.
81214
81215 2004-08-12  Simon Josefsson  <jas@extundo.com>
81216
81217         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
81218         as discussed with Paul Eggert in threads rooted at
81219         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
81220         and
81221         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
81222         Before, the test was empty, and relied on ELIDE_CODE in source
81223         code.)
81224         (gl_PREREQ_GETOPT): New macro.
81225         (gl_GETOPT): Use them.
81226
81227 2004-08-12  Simon Josefsson  <jas@extundo.com>
81228
81229         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
81230         * lib/getopt_.h: Renamed from getopt.h.
81231
81232 2004-08-12  Simon Josefsson  <jas@extundo.com>
81233
81234         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
81235         Change default library name from libfoo to libgnu.
81236         Now, if you have a configure.ac that says:
81237                 gl_SOURCE_BASE(gl)
81238                 gl_M4_BASE(gl/m4)
81239                 gl_MODULES(error getopt etcetera)
81240                 gl_INIT
81241         you can import all you need by running:
81242                 ../gnulib/gnulib-tool --import
81243
81244         * modules/getopt (Files): Rename getopt.h to getopt_.h.
81245         (Makefile.am): Rewrite, use logic from argz.
81246         (Include): Use <getopt.h> instead of "getopt.h".
81247
81248 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81249
81250         * modules/argp (Files): Add m4/unlocked-io.m4.
81251         (Depends-on): Add extensions.
81252
81253 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81254
81255         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
81256         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
81257         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
81258         Check for program_invocation_name, program_invocation_short_name,
81259         flockfile, funlockfile, features.h, _getopt_long_only_r.
81260
81261 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81262
81263         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
81264         its complicated substitute.
81265         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
81266         and program_invocation_name.
81267         (__argp_basename) [!_LIBC]: Remove; the only use was
81268         replaced by its body.
81269         (__argp_short_program_name): Change condition from
81270         !defined __argp_short_program_name to
81271         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
81272         to match argp-namefrob.h.
81273         (__argp_failure): Don't assume strerror_r returns char *.
81274         * lib/argp-parse.c (N_): Define unconditionally.
81275         (argp_default_options): Fill out initializers with 0 to avoid
81276         gcc warnings.
81277
81278 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81279
81280         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
81281         getopt1.c.
81282
81283 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81284
81285         Merge from coreutils.
81286
81287         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
81288
81289         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
81290         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
81291
81292 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81293
81294         Merge from coreutils.
81295
81296         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
81297         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
81298         for Reliant Unix 5.43.
81299
81300         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
81301         (union fooround): Use uintmax_t, not long int.
81302         The rest is a merge from libc:
81303         [defined _LIBC]: Include <shlib-compat.h>.
81304         (_obstack) [defined _LIBC]: Remove after 2.3.4.
81305
81306         * lib/settime.c (settime): Recode to avoid warning with
81307         Sun Forte C 6U2.
81308
81309         * lib/strverscmp.c: Convert to UTF-8.
81310
81311 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81312
81313         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81314         m4/uintmax_t.m4.
81315
81316 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81317
81318         * modules/xalloc-die: New file.
81319         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
81320
81321         * modules/md5 (Files): Add m4/uint32_t.m4.
81322         * modules/sha1: Renamed from modules/sha.
81323         (Files):
81324         Rename lib/sha.h to lib/sha1.h.
81325         Rename lib/sha.c to lib/sha1.c.
81326         Rename m4/sha.m4 to m4/sha1.m4.
81327         (lib_SOURCES): Likewise.
81328         (configure.ac): Rename gl_SHA to gl_SHA1.
81329         (Include): sha.h -> sha1.h.
81330
81331 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81332
81333         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
81334         * m4/sha1.m4: Renamed from sha.m4.
81335         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
81336
81337 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81338
81339         * lib/obstack.h (obstack_empty_p):
81340         Don't assume that chunk->contents is suitably aligned.
81341         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
81342         Likewise. Problem reported by Benno in
81343         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
81344
81345         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
81346         readable.  This could be improved further but it'd take some work.
81347
81348 2004-08-08  Simon Josefsson  <jas@extundo.com>
81349
81350         * modules/xgethostname (Depends-on): Remove exit and error (not
81351         used).
81352
81353         * modules/getpass-gnu: Add getpass.h.
81354         (Depends-on): Add stdbool.
81355         * modules/getpass: Add getpass.h.
81356
81357 2004-08-08  Simon Josefsson  <jas@extundo.com>
81358
81359         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
81360         Check getpass declaration.
81361
81362 2004-08-08  Simon Josefsson  <jas@extundo.com>
81363
81364         * lib/xgethostname.c: Don't include error.h (not used).
81365
81366         * lib/getpass.h: Add.
81367         * lib/getpass.c: Include getpass.h first.
81368
81369 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
81370
81371         * lib/xalloc-die.c: New file.
81372         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
81373         All uses removed.
81374         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
81375         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
81376         xalloc-die.c.
81377         (_, N_, xalloc_die): Move to xalloc-die.c.
81378         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
81379         so that we needn't mess with xalloc_msg_memory_exhausted.
81380
81381         * lib/sha1.h: Renamed from sha.h.
81382         (SHA1_H): Renamed from _SHA_H.
81383         (sha1_ctx): Renamed from sha_ctx.
81384         (sha1_init_ctx): Renamed from sha_init_ctx.
81385         (sha1_process_block): Renamed from sha_process_block.
81386         (sha1_process_bytes): Renamed from sha_process_bytes.
81387         (sha1_finish_ctx): Renamed from sha_finish_ctx.
81388         (sha1_read_ctx): Renamed from sha_read_ctx.
81389         (sha1_stream): Renamed from sha_stream.
81390         (sha1_buffer): Renamed from sha_buffer.
81391         * lib/sha1.c: Likewise; renamed from sha.c.
81392         Do not include <sys/types.h>.
81393         Include <stddef.h> rather than <stdlib.h>.
81394
81395 2004-08-08  Bruno Haible  <bruno@clisp.org>
81396
81397         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
81398         FILESYSTEM_PREFIX_LEN.
81399         * lib/progreloc.c: Likewise.
81400         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
81401
81402 2004-08-06  Simon Josefsson  <jas@extundo.com>
81403
81404         * modules/progname (Depends-on): Don't depend on stdbool.
81405
81406 2004-08-06  Simon Josefsson  <jas@extundo.com>
81407
81408         * modules/getsubopt: New file.
81409         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81410         getsubopt.
81411
81412 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81413
81414         More merge from coreutils.
81415
81416         * m4/utimens.m4, m4/utimecmp.m4: New files.
81417         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
81418         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
81419         prereq.m4, sha.m4: Import changes from coreutils.
81420
81421 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81422
81423         More merge from coreutils.
81424         * modules/raise, modules/readtokens0, modules/utimens:
81425         * modules/utimecmp, module/xnanosleep: New files.
81426         * modules/strftime: Add lib/strftime.h.
81427         Change include from <time.h> to "strftime.h".
81428         * modules/yesno: Add lib/yesno.h.
81429         * modules/backupfile: Remove lib/addext.c.
81430         * modules/euidaccess: Add stat-macros.h.
81431         * modules/canonicalize, modules/euidaccess,
81432         modules/filemode, modules/lchown, modules/makepath,
81433         modules/rmdir, modules/stat: Likewise.
81434
81435 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81436
81437         Merge from tar.
81438         * lib/argp-help.c (make_hol, hol_append): Don't assume that
81439         SIZE_MAX is a valid preprocessor constant.
81440         (__argp_basename): Change from "#ifndef _LIBC"
81441         to "#ifndef __argp_short_program_name", so that
81442         we don't compile these functions for tar.
81443
81444         More merges from coreutils.
81445         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
81446         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
81447         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
81448         * lib/addext.c: Remove; no longer needed.
81449         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
81450         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
81451         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
81452         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
81453         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
81454         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
81455         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
81456         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
81457         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
81458         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81459         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
81460         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
81461         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
81462         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
81463         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
81464         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
81465         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
81466         Import changes from coreutils.
81467
81468 2004-08-05  Simon Josefsson  <jas@extundo.com>
81469
81470         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
81471
81472 2004-08-05  Simon Josefsson  <jas@extundo.com>
81473
81474         * m4/getsubopt.m4: New file.
81475
81476 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81477
81478         Merge from coreutils.
81479
81480         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
81481         * m4/getcwd-path-max.m4: New files.
81482
81483         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
81484         FILESYSTEM_PREFIX_LEN ->
81485         FILE_SYSTEM_PREFIX_LEN.
81486         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
81487         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
81488         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
81489         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
81490
81491         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
81492         prerequisite modules now handle the DOS stuff.
81493         Don't check for unistd.h.
81494
81495 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81496
81497         Merge from coreutils.
81498
81499         * lib/.gdb-history: Remove; this doesn't belong here.
81500
81501         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
81502         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
81503         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
81504         * lib/getcwd.c: New files.
81505
81506         * lib/dirname.h: Include <stdbool.h>.
81507         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
81508         for consistency with POSIX terminology.  All uses changed.
81509         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
81510         (strip_trailing_slashes): Use bool for booleans.
81511         * lib/stripslash.c (strip_trailing_slashes): Likewise.
81512
81513         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
81514         sometimes returns a positive errno value even when it succeeds.
81515         (print_errno_message) [!LIBC]: Fall back on strerror if
81516         __strerror_r fails.
81517
81518         * lib/path-concat.c (mempcpy): Don't define if a system header defines
81519         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
81520         (longest_relative_suffix): New function.
81521         (path_concat): Use it.  Assume first argument is not NULL.
81522         Port to DOS.  Omit redundant separators.
81523         Report an error instead of returning NULL.
81524         Use mempcpy instead of memcpy.
81525         (xpath_concat): Remove: not declared or used.
81526
81527         * lib/same.h: Include <stdbool.h>
81528         (same_name): Return bool, not int.
81529         * lib/same.c (same_name): Likewise.
81530         (errno): Don't declare; we assume C89 or better now.
81531
81532         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
81533         if not already defined.
81534
81535         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
81536         * lib/dup-safer.c (errno): Likewise.
81537
81538 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81539
81540         Merge from coreutils.
81541         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
81542         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
81543         * modules/path-concat: Don't depend on strdup.
81544
81545 2004-08-03  Simon Josefsson  <jas@extundo.com>
81546
81547         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
81548         * lib/progname.h: Don't include stdbool.h.
81549
81550 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81551
81552         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
81553         * MODULES.html.sh (func_all_modules): Remove fatal.
81554
81555 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81556
81557         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
81558
81559 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81560
81561         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
81562         working.
81563
81564 2004-08-02  Simon Josefsson  <jas@extundo.com>
81565
81566         * lib/getsubopt.h: New file, with comments from Bruno Haible.
81567         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
81568         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
81569
81570 2004-08-01  Simon Josefsson  <jas@extundo.com>
81571
81572         * lib/xgetdomainname.c: Include stdlib.h, for free().
81573
81574 2004-07-19  Bruno Haible  <bruno@clisp.org>
81575
81576         * MODULES.html.sh (func_all_modules): Add dummy.
81577
81578 2004-07-16  Simon Josefsson  <jas@extundo.com>
81579
81580         * modules/dummy: New file.
81581
81582 2004-07-16  Simon Josefsson  <jas@extundo.com>
81583
81584         * lib/dummy.c: New file.
81585
81586 2004-07-16  Bruno Haible  <bruno@clisp.org>
81587
81588         * lib/backupfile.h: Add extern "C" for C++.
81589         * lib/closeout.h: Likewise.
81590         * lib/copy-file.h: Likewise.
81591         * lib/findprog.h: Likewise.
81592         * lib/full-write.h: Likewise.
81593         * lib/pathname.h: Likewise.
81594         * lib/progname.h: Likewise.
81595         * lib/stpcpy.h: Likewise.
81596         * lib/stpncpy.h: Likewise.
81597         * lib/strcase.h: Likewise.
81598         * lib/strstr.h: Likewise.
81599         * lib/xalloc.h: Likewise.
81600
81601         * lib/mbswidth.h: Add extern "C" for C++.
81602         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
81603
81604 2004-07-13  Robert Millan  <robertmh@gnu.org>
81605
81606         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
81607
81608 2004-07-09  Simon Josefsson  <jas@extundo.com>
81609
81610         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
81611         failed without this.)
81612
81613 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81614
81615         * modules/chown (Files): Add lib/fchown-stub.c, since
81616         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
81617
81618 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81619
81620         * lib/fchown-stub.c: New file.
81621
81622 2004-06-24  Jim Meyering  <jim@meyering.net>
81623
81624         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
81625
81626 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81627
81628         * modules/argz: Omit "#include".
81629
81630         * MODULES.html.sh (func_all_modules): Add calloc, to match
81631         2004-06-01 addition of calloc module.
81632
81633 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81634
81635         * m4/argz.m4: New file, which is autoupdated from libtool.
81636
81637 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81638
81639         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
81640         libtool.
81641
81642 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81643
81644         * config/srclist-update: Don't insist on "USA." before the
81645         close-comment, as libtool omits the period and puts the */ on a
81646         separate line.
81647         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
81648         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
81649
81650 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
81651
81652         * modules/argz: New file.
81653         * MODULES.html.sh (func_all_modules): Add argz.
81654
81655 2004-06-12  Jim Meyering  <jim@meyering.net>
81656         and  Paul Eggert  <eggert@cs.ucla.edu>
81657
81658         * modules/hash (Files): Add lib/xalloc.h.
81659         * modules/pipe (Depends-on): Add wait-process.
81660         * modules/stat (Depends-on): Add xalloc.
81661         * modules/userspec (Files): Add lib/userspec.h.
81662         * modules/xstrto
81663
81664         Upgrade from gettext-0.13.
81665         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
81666         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
81667         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
81668
81669 2004-06-10  Jim Meyering  <jim@meyering.net>
81670
81671         * lib/calloc.c: New file.
81672
81673 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81674
81675         * lib/getdate.y (yylex): Allow space between sign and number.
81676         Problem reported by Dan Jacobson.
81677
81678 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81679
81680         Merge from coreutils CVS.
81681
81682         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
81683         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
81684         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
81685         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
81686         xstrtol.m4: Fix copyright date and/or serial number.
81687
81688         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
81689         See if we need an fchown replacement.
81690         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
81691         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
81692         and use the replacement function if we detect either defect.
81693
81694         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
81695         gl_UTIMECMP.
81696
81697 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81698         and  Jim Meyering  <jim@meyering.net>
81699
81700         Merge from coreutils CVS.
81701
81702         * lib/stat-macros.h: New file, with contents from file-type.h
81703         and coreutils' system.h.
81704         * lib/file-type.c: Include "stat-macros.h".
81705         * lib/file-type.h (file_type): Move all macro definitions to new file,
81706         stat-macros.h.
81707
81708         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
81709         Wrap old code with this conditional.
81710         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
81711         function that does not dereference symlinks.
81712         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
81713
81714         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
81715         dependency problems.
81716         (xreadlink): Accept new arg SIZE, for efficiency.
81717         All decls and uses changed.
81718         * lib/xreadlink.h: Include <stddef.h>, for size_t.
81719
81720         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
81721         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
81722
81723         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
81724         sysexits.h.
81725
81726 2004-06-01  Jim Meyering  <jim@meyering.net>
81727
81728         * m4/calloc.m4: New file.
81729
81730 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
81731
81732         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
81733         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
81734         Also, fix a typo in a diagnostic.
81735
81736 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81737
81738         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
81739         or AC_FUNC_REALLOC.
81740
81741 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81742
81743         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
81744         macros to be defined.
81745         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
81746         the allocator returns NULL because the requested size is zero.
81747
81748 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81749
81750         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
81751         var.  Add comment explaining why libc still defines it.  This
81752         merges the following patch from glibc:
81753         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
81754
81755 2004-05-20  Andreas Schwab  <schwab@suse.de>
81756
81757         * m4/free.m4: Replace free if it not known to work, not the other
81758         way round.
81759
81760 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81761
81762         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
81763         present in glibc since revision 1.1 of this file.
81764         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
81765         obstack_alignment_mask, obstack_alloc, obstack_base,
81766         obstack_blank, obstack_blank_fast, obstack_chunk_size,
81767         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
81768         obstack_grow0, obstack_init, obstack_int_grow,
81769         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
81770         obstack_next_free, obstack_object_size, obstack_ptr_grow,
81771         obstack_ptr_grow_fast, obstack_room): Remove declarations of
81772         nonexistent functions.
81773
81774 2004-05-18  Karl Berry  <karl@gnu.org>
81775
81776         * config/srclist.txt: break link for vasnprintf.c.
81777
81778 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81779
81780         Port obstack to the AS/400, where pointers are 16 bytes wide and
81781         you cannot cast an integer to a valid pointer.  This patch is
81782         currently waiting to be integrated into glibc; see
81783         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
81784
81785         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
81786         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
81787         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
81788         (struct obstack): temp member is now a union of a pointer and
81789         an integer, instead of an integer.  All integer uses changed.
81790         This does not affect the physical layout of struct obstack,
81791         except on hosts (like the AS/400) where the size or alignment of
81792         void * is greater than that of ptrdiff_t.
81793         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
81794         __STDC__)]: Store temporary in pointer member of union, not
81795         integer member.
81796         * lib/obstack.c: Include <stddef.h>, for offsetof.
81797         (struct fooalign): Remove; it doesn't need a name.
81798         (union fooround): Change double to long double, and add void *.
81799         (DEFAULT_ALIGNMENT): Use offsetof to compute.
81800         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
81801         not a macro.  Hence the values are always int; so remove all
81802         casts-to-int in uses.
81803
81804 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81805
81806         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
81807         we can get this patch merged into glibc.
81808
81809 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81810             Paul Eggert  <eggert@cs.ucla.edu>
81811
81812         * m4/argp: Depend on alloca.
81813
81814 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81815             Paul Eggert  <eggert@cs.ucla.edu>
81816
81817         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
81818         freecoding.
81819
81820 2004-05-17  Bruno Haible  <bruno@clisp.org>
81821
81822         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
81823         precision that consists of a '.' followed by an empty digit string.
81824         Patch by Tor Lillqvist <tml@iki.fi>.
81825
81826 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81827
81828         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
81829         for backward compatibility with older code.  We need our own
81830         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
81831         it under some other name, and our alloca.h will define it.
81832
81833 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81834             Derek Price  <derek@ximbiot.com>
81835
81836         * lib/alloca.c: Include <alloca.h>, to get our interface.
81837         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
81838         include <alloca.h> first.  Use C89 prototype for alloca; this
81839         requires including <stddef.h> for size_t.  Use extern "C" if C++.
81840         Use #elif for simplicity, since we can assume C89 now.
81841         Don't try to source the system alloca.h since it will not be found
81842         and to prevent recursively including its replacement.
81843         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
81844         * lib/regex.c: Likewise.
81845
81846 2004-05-16  Derek Price  <derek@ximbiot.com>
81847             Paul Eggert  <eggert@cs.ucla.edu>
81848
81849         getline cleanup.  This changes the getndelim2 API: both order of
81850         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
81851         no delimiter).
81852
81853         * lib/getline.c: Don't include stddef.h or stdio.h, since our
81854         interface does that.
81855         (getline): Always use getdelim, so that we don't have two
81856         copies of this code.
81857         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
81858         if available.
81859         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
81860         (GETNDELIM2_MAXIMUM): New macro.
81861         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
81862         instead of the old practice of delim2==0.  All callers changed.
81863         Return -1 on overflow, instead of returning junk.
81864         Do not set *linesize unless allocation succeeds.
81865         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
81866         that we include sys/types.h.
81867         * lib/getnline.h: Likewise.
81868         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
81869         (getndelim2): Reorder arguments.
81870         * lib/getnline.c (getnline, getndelim):
81871         Don't discard the NMAX argument.
81872         (getnline): Invoke getndelim, to avoid code duplication.
81873         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
81874         of (size_t) -1 by callers of the getnline family.
81875
81876 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81877
81878         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
81879         Check for gettimeofday.
81880         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
81881         Check for settimeofday, stime.
81882
81883 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81884
81885         * lib/nanosleep.c (suspended): Change its type from int to
81886         sig_atomic_t volatile.
81887         (first_call): Make it private to rpl_nanosleep, and have it
81888         be zero initially as that's a bit faster.
81889         (my_usleep): Round up fractional times instead of truncating them,
81890         as this is the usual meaning for 'sleep'.
81891
81892         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
81893         doesn't work.
81894         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
81895         (ENOSYS): Define if not defined.
81896         (settime): Fall back on stime if it exists and settimeofday fails.
81897         But don't bother with fallbacks if a method fails with errno == EPERM.
81898
81899 2004-05-11  Jim Meyering  <jim@meyering.net>
81900
81901         Prior to this change, the save_cwd caller required read access to the
81902         current directory on most systems (ones with the fchdir function).
81903
81904         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
81905         fails, try write-only, and finally, resort to using xgetcwd.
81906
81907 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81908
81909         * lib/obstack.c, obstack.h: Import changes from libc.
81910
81911 2004-04-28  Bruno Haible  <bruno@clisp.org>
81912
81913         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
81914         also implicitly appends .exe to executables.
81915         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
81916         accepts Windows pathnames.
81917         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81918         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81919         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81920         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81921         Reported by Derek Robert Price <derek@ximbiot.com>.
81922
81923 2004-04-21  Karl Berry  <karl@gnu.org>
81924
81925         * config/srclist.txt (localcharset.c): break sync.
81926
81927 2004-04-20  Paul Eggert  <eggert@twinsun.com>
81928
81929         * m4/host-os.m4: Add a copyright notice.
81930
81931 2004-04-20  Jim Meyering  <jim@meyering.net>
81932
81933         Change UTILS_ to gl_ in AC_DEFINE'd names.
81934         Change utils_- and jm_-prefixed variables, too.
81935         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
81936         UTILS_FUNC_MKDIR_TRAILING_SLASH.
81937         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
81938
81939         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
81940         Don't emit trailing blanks.
81941         Also rename jm_-prefixed variables to have gl_ prefix.
81942
81943         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
81944         Also rename jm_-prefixed variables to have gl_ prefix.
81945
81946         * m4/jm-macros.m4: Reflect the renamings.
81947         * m4/prereq.m4: Likewise.
81948
81949 2004-04-20  Jim Meyering  <jim@meyering.net>
81950
81951         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
81952         memory.
81953
81954 2004-04-20  Jim Meyering  <jim@meyering.net>
81955             Bruno Haible  <bruno@clisp.org>
81956
81957         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
81958         memory when realloc fails.
81959
81960 2004-04-19  Jim Meyering  <jim@meyering.net>
81961
81962         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
81963         now that readutmp.c may call `free (0)'.
81964
81965 2004-04-19  Bruno Haible  <bruno@clisp.org>
81966
81967         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
81968         * m4/inttypes_h.m4: Likewise.
81969         * m4/stdint_h.m4: Likewise.
81970         * m4/intmax_t.m4: Likewise.
81971         * m4/uintmax_t.m4: Likewise.
81972
81973 2004-04-18  Jim Meyering  <jim@meyering.net>
81974
81975         * m4/prereq.m4: Don't forbid jm_ prefix.
81976
81977         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
81978         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
81979         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
81980         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
81981         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
81982         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
81983         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
81984         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
81985         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
81986         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
81987         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
81988         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
81989         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
81990         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
81991         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
81992         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
81993         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
81994         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
81995         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
81996
81997 2004-04-18  Jim Meyering  <jim@meyering.net>
81998
81999         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
82000         failure, don't leak memory and do call END_UTMP_ENT.
82001
82002 2004-04-16  Jim Meyering  <jim@meyering.net>
82003
82004         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
82005         coreutils' stat program.
82006         (gl_PREREQ): Don't require jm_PREREQ_STAT.
82007
82008 2004-04-11  Paul Eggert  <eggert@twinsun.com>
82009
82010         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
82011         C89.
82012         (CHAR_BIT): Remove, since we assume C89.
82013         Include <stdint.h> if available, as per current Autoconf CVS advice.
82014
82015 2004-03-31  Jim Meyering  <jim@meyering.net>
82016
82017         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
82018         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
82019         * m4/xalloc.m4: Likewise.
82020
82021 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82022
82023         Merge from coreutils.
82024
82025         * m4/inttostr.m4: New file.
82026         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
82027         Require AM_STDBOOL_H and gl_TIMESPEC instead.
82028         Require gl_CLOCK_TIME.
82029         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
82030
82031 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82032
82033         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
82034         not bool, to be more consistent with Unix conventions.
82035         Suggested by Bruno Haible.
82036
82037         Merge from coreutils.
82038
82039         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
82040         * lib/umaxtostr.c: New files.
82041
82042         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
82043         the usual <time.h> dance.
82044         (get_date): Change signature to support fractional time stamps.
82045         All callers changed.
82046         * lib/getdate.y: Include "getdate.h" first, as we can now
82047         assume C89 and don't need to worry about 'const'.
82048         Similarly, include "unlocked-io.h" near start, not in middle.
82049         Include <limits.h>.
82050         (textint.value): Use long int rather than int.
82051         (textint.digits): Use size_t rather than int.
82052         (BILLION, LOG10_BILLION): New constants.
82053         (parser_control): New member rel_ns.  Members day_ordinal,
82054         time_zone, month, day, hour, minutes, rel_year, rel_month,
82055         rel_day, rel_hour, rel_minutes, rel_seconds
82056         are now long int, not int.  Member seconds is now struct timespec,
82057         not int.  New member timespec_seen.  Members dates_seen, days_seen,
82058         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
82059         not int.
82060         (%union.intval): Now long int, not int.
82061         New member timespec.
82062         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
82063         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
82064         (spec): Now is a timespec or an item list.
82065         (timespec, items): New nonterminals.
82066         (time, rel, relunit, number, get_date):
82067         Add support for fractional seconds.
82068         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
82069         (gmtime, localtime, mktime): Remove decls; not needed with C89.
82070         (to_hour): First arg is now long int, not int.
82071         (to_year): Returns long int, not int.
82072         Don't treat year -70 like 70.
82073         (tm_diff): Returns long int, not int.
82074         (lookup_word): Use bool instead of int when appropriate.
82075         (yylex): Use size_t for count, not int.
82076         Detect overflow when parsing large integer constants.
82077         Add support for fractions.
82078         (get_date): Make pointers 'const' if possible.
82079         Use more-portable code to detect integer overflow.
82080         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
82081         Don't use ctime; it's not reliable if the year has >4 digits.
82082
82083         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
82084         This is for compatibility with BSD.
82085
82086         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
82087         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
82088         From coreutils' system.h.
82089
82090         * lib/userspec.c: Don't include "posixver.h".
82091         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
82092         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
82093         compatible extension.  Simplify code by removing a boolean int
82094         that was always nonzero if a string was nonnull.
82095
82096 2004-03-30  Jim Meyering  <jim@meyering.net>
82097
82098         Merge from coreutils.
82099
82100         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
82101         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
82102         on some systems one must include <grp.h> before it.
82103         Reported by Christian Krackowizer.
82104
82105 2004-03-30  Jim Meyering  <jim@meyering.net>
82106
82107         Merge from coreutils.
82108
82109         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
82110
82111         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
82112         an empty input stream.
82113
82114         * lib/readtokens.c: Include <stdbool.h>.
82115         (readtoken): Use `size_t' rather than int/long.
82116         All callers adjusted.
82117         Use `bool' rather than `int' where appropriate.
82118         Use memset rather than an explicit loop.
82119         Use x2nrealloc rather than xrealloc.
82120         Allow the use of `\0' as a delimiter.
82121         (readtokens): Likewise.
82122         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
82123
82124 2004-03-30  Jim Meyering  <jim@meyering.net>
82125
82126         * m4/realloc.m4: Remove file, since now it does no more than
82127         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
82128         the `configure.ac' section of module/realloc.
82129         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
82130
82131 2004-03-30  Bruno Haible  <bruno@clisp.org>
82132
82133         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
82134         nonnull.
82135
82136 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82137
82138         Merge changes to getloadavg.c from coreutils and Emacs.
82139
82140         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
82141         Define to an expression, not to the empty string.
82142         Include cloexec.h and xalloc.h.
82143         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
82144         Use set_cloexec_flag rather than rolling our own.
82145         * lib/cloexec.c, lib/cloexec.h: New files.
82146
82147 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82148
82149         * m4/cloexec.m4: New file.
82150
82151 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82152
82153         * lib/getopt.h: Sync with libc CVS.
82154
82155 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82156             Bruno Haible  <bruno@clisp.org>
82157
82158         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
82159         mbswidth.
82160
82161 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82162             Bruno Haible  <bruno@clisp.org>
82163
82164         * lib/mbswidth.h: Include <wchar.h> only if
82165         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
82166         <wchar.h>.
82167         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
82168
82169 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82170
82171         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
82172         Sync with libc CVS.
82173         * lib/getopt_int.h: New file, also synced from libc.
82174
82175 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82176
82177         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
82178         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
82179         Bring back getopt.c, getopt.h, getopt1.c.
82180
82181 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82182
82183         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
82184         All uses changed.  Check for sa_sigaction member; this fixes
82185         a bug first reported by Jason Andrade in
82186         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82187
82188 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82189
82190         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
82191         '#if' expressions.  Unlike the code it replaces, it does not
82192         depend on (defined _SC_PAGESIZE).  However, it does depend on
82193         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
82194         first reported by Jason Andrade in
82195         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82196
82197 2004-02-25  Simon Josefsson  <jas@extundo.com>
82198
82199         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
82200
82201 2004-02-25  Simon Josefsson  <jas@extundo.com>
82202
82203         * lib/strdup.h: New file.
82204         * lib/strdup.c: Include it.
82205         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
82206         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
82207
82208 2004-02-23  Karl Berry  <karl@gnu.org>
82209
82210         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
82211         (from fencepost.gnu.org:/gd/gnuorg).
82212
82213 2004-02-23  Karl Berry  <karl@gnu.org>
82214
82215         * config/srclistvars.sh (GNUORG) [karl]: redefine.
82216         * config/srclist.txt: add maintain/standards documents.
82217
82218 2004-02-18  Bruno Haible  <bruno@clisp.org>
82219
82220         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
82221         Reported by Derek Robert Price <derek@ximbiot.com>.
82222
82223 2004-02-16  Karl Berry  <karl@gnu.org>
82224
82225         * config/mkinstalldirs, install-sh: update from automake.
82226
82227 2004-02-06  Karl Berry  <karl@gnu.org>
82228
82229         * m4/po.m4: update from gettext 0.14.1.
82230
82231 2004-02-06  Karl Berry  <karl@gnu.org>
82232
82233         * lib/config.charset: update from gettext 0.14.1.
82234
82235 2004-02-05  Paul Eggert  <eggert@twinsun.com>
82236
82237         Add comments and code, prompted by suggestions from Bruno Haible
82238         for sh-quote.
82239         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
82240         describing the enum quoting_style values.
82241         * lib/quotearg.c (quotearg_alloc): New function.
82242         (quotearg_buffer_restyled): Treat lone { and } as special.
82243         Treat = as special.  Work around bug with older shells
82244         that "see" a '\' that is really the 2nd byte of a multibyte char.
82245         Quote empty string with shell_quoting_style.
82246
82247 2004-02-03  Bruno Haible  <bruno@clisp.org>
82248
82249         * m4/pipe.m4: New file, from GNU gettext.
82250
82251 2004-02-03  Bruno Haible  <bruno@clisp.org>
82252
82253         * lib/pipe.h: New file, from GNU gettext.
82254         * lib/pipe.c: New file, from GNU gettext.
82255
82256 2004-01-27  Bruno Haible  <bruno@clisp.org>
82257
82258         * m4/execute.m4: New file, from GNU gettext.
82259
82260 2004-01-27  Bruno Haible  <bruno@clisp.org>
82261
82262         * lib/execute.h: New file, from GNU gettext.
82263         * lib/execute.c: New file, from GNU gettext.
82264         * lib/w32spawn.h: New file, from GNU gettext.
82265
82266 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82267
82268         Merge from diffutils.
82269
82270         * lib/file-type.c (file_type): Add typed memory objects.
82271         * lib/file-type.h (S_TYPEISTMO): New macro.
82272
82273         * lib/c-stack.h (c_stack_action): Remove argv argument.
82274         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
82275         (die): Don't calculate message unless segv_action returns.
82276         (get_stack_location, min_address_from_argv, max_address_from_argv,
82277         volatile stack_base, volatile_stack_size): Remove.
82278         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
82279         that every segmentation violation is a stack overflow.  (Ouch!)
82280         See Debian bug 136249 (still outstanding) for more info about why
82281         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
82282
82283 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82284
82285         Exit-status fix from coreutils.
82286
82287         Use exit_failure consistently in place of EXIT_FAILURE,
82288         so that program exit statuses are consistent on failure.
82289
82290         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
82291         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
82292         * lib/argmatch.h: Comment fix to match the above.
82293         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
82294         Now a macro referring to exit_failure, instead of a separate
82295         variable.  Include "exitfail.h" to get it.
82296         * lib/xstrtol.h: Include "exitfail.h".
82297         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
82298
82299         * lib/long-options.c (parse_long_options): Use prototype
82300         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
82301         for clarity.
82302
82303 2004-01-21  Jim Meyering  <jim@meyering.net>
82304
82305         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
82306         so as not to conflict with a different-sized __mktime_internal
82307         function in GNU libc.
82308         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
82309         Problem building statically-linked `ls' reported by Michael Brunnbauer.
82310
82311 2004-01-20  Karl Berry  <karl@gnu.org>
82312
82313         * config/config.guess: update from config.
82314
82315         * config/srclistvars.sh: GNUWWWLICENSES for karl.
82316
82317 2004-01-20  Bruno Haible  <bruno@clisp.org>
82318
82319         Safer stack allocation.
82320         * lib/setenv.c: Include allocsa.h.
82321         (alloca): Remove fallback definition.
82322         (freea): Remove macro.
82323         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
82324         instead of freea.
82325
82326 2004-01-20  Bruno Haible  <bruno@clisp.org>
82327
82328         * m4/eealloc.m4: New file, from GNU gettext.
82329
82330 2004-01-20  Bruno Haible  <bruno@clisp.org>
82331
82332         * m4/allocsa.m4: New file, from GNU gettext.
82333
82334 2004-01-20  Bruno Haible  <bruno@clisp.org>
82335
82336         * lib/xallocsa.h: New file, from GNU gettext.
82337         * lib/xallocsa.c: New file, from GNU gettext.
82338
82339 2004-01-20  Bruno Haible  <bruno@clisp.org>
82340
82341         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
82342
82343 2004-01-20  Bruno Haible  <bruno@clisp.org>
82344
82345         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
82346         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
82347         specially.
82348
82349 2004-01-20  Bruno Haible  <bruno@clisp.org>
82350
82351         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
82352         patch.
82353
82354 2004-01-20  Bruno Haible  <bruno@clisp.org>
82355
82356         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
82357
82358 2004-01-20  Bruno Haible  <bruno@clisp.org>
82359
82360         * lib/eealloc.h: New file.
82361
82362 2004-01-20  Bruno Haible  <bruno@clisp.org>
82363
82364         * lib/binary-io.h: Avoid warnings on Cygwin.
82365
82366 2004-01-20  Bruno Haible  <bruno@clisp.org>
82367
82368         * lib/allocsa.h: New file, from GNU gettext.
82369         * lib/allocsa.c: New file, from GNU gettext.
82370
82371 2004-01-18  Karl Berry  <karl@gnu.org>
82372
82373         * doc/gpl.texi, doc/lgpl.texi: new files.
82374
82375 2004-01-18  Karl Berry  <karl@gnu.org>
82376
82377         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
82378         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
82379
82380 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82381
82382         Merge from coreutils.
82383
82384         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
82385         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
82386         (gl_DEFAULT_POSIX2_VERSION): Move
82387         the documentation from 'configure' into 'config.hin',
82388         so that 'configure --help' isn't burdened by it and
82389         we don't have to worry about its formatting there.
82390         Reword the documentation so that it's more succinct
82391         and can be run together into a single paragraph.
82392         * m4/same.m4 (gl_SAME): Check for pathconf.
82393
82394 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82395
82396         Merge from coreutils.
82397
82398         * lib/posixver.c: Include posixver.h.
82399
82400         * lib/same.c: Include <stdbool.h>, <limits.h>.
82401         (_POSIX_NAME_MAX): Define if not defined.
82402         (MIN): New macro.
82403         (same_name): If file names are silently truncated, report
82404         that the file names are the same if they are the same after
82405         the silent truncation.
82406
82407         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
82408         conversion function.
82409         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
82410         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
82411         longer needed.
82412
82413 2004-01-15  Jim Meyering  <jim@meyering.net>
82414
82415         Merge from coreutils.
82416
82417         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
82418         if no library is required.
82419         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
82420         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
82421         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
82422         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
82423         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
82424         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
82425         value, $ac_cv_search_crypt, if it's "none required".
82426         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
82427         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
82428         not gl_FUNC_GETLOADAVG.
82429         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
82430         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
82431
82432 2004-01-15  Jim Meyering  <jim@meyering.net>
82433
82434         Merge from coreutils.
82435
82436         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
82437         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
82438         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
82439
82440         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
82441         optional configure-time default.
82442
82443         * lib/version-etc.c (version_etc_copyright): Update copyright date.
82444
82445         * lib/xreadlink.c (xreadlink): Correct outdated comment.
82446
82447 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
82448
82449         Merge from coreutils.
82450
82451         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
82452         value, $ac_cv_search_nanosleep, if it's "none required".
82453
82454 2004-01-14  Paul Eggert  <eggert@twinsun.com>
82455
82456         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
82457         with like-named macro in fnmatch.c.
82458         (EXT): Use an internal constant instead.
82459
82460         Merge fnmatch patches from glibc.
82461         * lib/fnmatch.c (mbsinit): Remove define.
82462         Add libc_hidden_ver (__fnmatch, fnmatch).
82463         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
82464         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
82465
82466 2004-01-14  Karl Berry  <karl@gnu.org>
82467
82468         * config/install-sh: update from automake.
82469
82470 2004-01-13  Karl Berry  <karl@gnu.org>
82471
82472         * config/install-sh: update from automake.
82473
82474 2004-01-09  Karl Berry  <karl@gnu.org>
82475
82476         * config/install-sh: update from automake.
82477
82478 2004-01-05  Karl Berry  <karl@gnu.org>
82479
82480         * config/config.{sub,guess}: update from config.
82481
82482 2003-12-31  Karl Berry  <karl@gnu.org>
82483
82484         * config/depcomp: update from automake.
82485
82486 2003-12-14  Karl Berry  <karl@gnu.org>
82487
82488         * lib/config.charset: update from gettext-runtime.
82489
82490 2003-12-03  Paul Eggert  <eggert@twinsun.com>
82491
82492         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
82493         Bug reported by Alfred M. Szmidt.
82494
82495 2003-12-03  Bruno Haible  <bruno@clisp.org>
82496
82497         * m4/gettext.m4: Upgrade from gettext-0.13.
82498         * m4/po.m4: Upgrade from gettext-0.13.
82499         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
82500         * m4/intmax.m4: New file, from gettext-0.13.
82501         * m4/printf-posix.m4: New file, from gettext-0.13.
82502
82503 2003-11-29  Karl Berry  <karl@gnu.org>
82504
82505         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
82506
82507 2003-11-25  Paul Eggert  <eggert@twinsun.com>
82508             Bruno Haible  <bruno@clisp.org>
82509
82510         * lib/printf-parse.h: Don't include sys/types.h.
82511         (ARG_NONE): New macro.
82512         (char_directive): Change type of *arg_index fields to size_t.
82513         * lib/printf-parse.c: Don't include sys/types.h.
82514         (SSIZE_MAX): Remove macro.
82515         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
82516         Remove unnecessary overflow check.
82517         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
82518         fields.
82519
82520 2003-11-25  Bruno Haible  <bruno@clisp.org>
82521
82522         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
82523
82524 2003-11-25  Bruno Haible  <bruno@clisp.org>
82525
82526         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
82527         gt_TYPE_SSIZE_T.
82528
82529 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82530
82531         * modules/alloca: Remove dependency on xalloc.
82532
82533 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82534
82535         * lib/alloca.c: Remove dependency on xalloc module.
82536         (xalloc_die): Remove.
82537         (memory_full) [!defined emacs]: New macro.
82538         [!defined emacs]: Don't include xalloc.h.
82539         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
82540         address arithmetic overflows.  Change datatypes a bit to avoid
82541         unnecessary casts.
82542
82543 2003-11-22  Jim Meyering  <jim@meyering.net>
82544
82545         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
82546         s/size/size_t/.
82547
82548 2003-11-21  Karl Berry  <karl@gnu.org>
82549
82550         * config/config.{sub,guess}: update from config.
82551
82552 2003-11-18  Karl Berry  <karl@gnu.org>
82553
82554         * config/config.{sub,guess}: update from config.
82555
82556         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
82557
82558 2003-11-17  Paul Eggert  <eggert@twinsun.com>
82559
82560         * README: Mention that S+T cannot overflow if S is the size of
82561         an existing object and T is sufficiently small.
82562
82563 2003-11-17  Jim Meyering  <jim@meyering.net>
82564
82565         On systems without utime and without a utimes function capable of
82566         dealing with a NULL struct utimbuf* argument, this utime replacement
82567         could -- in unusual circumstances -- leak a file descriptor.
82568         * lib/utime.c: Include <unistd.h> and <errno.h>.
82569         (utime_null): Be sure to close `fd' and to preserve errno.
82570         Reported by Geoff Collyer via Arnold Robbins.
82571
82572 2003-11-17  Bruno Haible  <bruno@clisp.org>
82573
82574         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
82575         (Depends-on): Add xsize.
82576
82577 2003-11-17  Bruno Haible  <bruno@clisp.org>
82578
82579         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
82580
82581 2003-11-17  Bruno Haible  <bruno@clisp.org>
82582
82583         * lib/vasnprintf.c (alloca): Remove fallback definition.
82584         (freea): Remove definition.
82585         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
82586         Reported by Paul Eggert.
82587
82588 2003-11-16  Paul Eggert  <eggert@twinsun.com>
82589             Bruno Haible  <bruno@clisp.org>
82590
82591         Protect against address arithmetic overflow.
82592         * lib/printf-args.h: Include stddef.h.
82593         (arguments): Change type of field 'count' to size_t.
82594         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
82595         'unsigned int' where appropriate.
82596         * lib/printf-parse.h: Include sys/types.h.
82597         (char_directive): Change type of *arg_index fields to ssize_t.
82598         (char_directives): Change type of fields 'count', max_*_length to
82599         size_t.
82600         * lib/printf-parse.c: Include sys/types.h and xsize.h.
82601         (SSIZE_MAX): Define fallback value.
82602         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
82603         instead of 'int' where appropriate. Check a_allocated, d_allocated
82604         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
82605         * lib/vasnprintf.c: Include xsize.h.
82606         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
82607         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
82608         overflow. Avoid wraparound when converting a width or precision from
82609         decimal to binary.
82610
82611 2003-11-16  Bruno Haible  <bruno@clisp.org>
82612
82613         Update from GNU gettext.
82614         * lib/printf-parse.c: Generalize to it can be compiled for wide
82615         strings.
82616         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
82617         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
82618         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
82619         SNPRINTF): New macros.
82620         Don't include <alloca.h> if the file is used inside libintl.
82621         (local_wcslen): New function, for Solaris 2.5.1.
82622         (VASNPRINTF): Use it instead of wcslen.
82623
82624 2003-11-16  Bruno Haible  <bruno@clisp.org>
82625
82626         * lib/xsize.h (xmax): New function.
82627         (xsum, xsum3, xsum4): Declare as "pure" functions.
82628
82629 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82630
82631         * modules/xalloc (Files): Undo latest change, since xalloc.h
82632         no longer needs SIZE_MAX or PTRDIFF_MAX.
82633
82634 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82635
82636         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
82637         gl_PTRDIFF_MAX.
82638
82639 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82640
82641         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
82642         "return", to pacify some unknown compiler.  Problem reported
82643         by Joerg Schilling.
82644
82645 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82646
82647         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
82648         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
82649         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
82650         heuristic is just as accurate as far as we know, and it removes a
82651         dependency on size_max.m4 and ptrdiff_max.m4.
82652
82653 2003-11-11  Bruno Haible  <bruno@clisp.org>
82654
82655         * modules/xsize (Files): Add m4/size_max.m4.
82656         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
82657
82658 2003-11-11  Bruno Haible  <bruno@clisp.org>
82659
82660         * m4/size_max.m4: New file.
82661         * m4/ptrdiff_max.m4: New file.
82662         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
82663         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
82664         (gl_XALLOC): Invoke it.
82665
82666 2003-11-11  Bruno Haible  <bruno@clisp.org>
82667
82668         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
82669         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
82670         defined.
82671
82672 2003-11-10  Paul Eggert  <eggert@twinsun.com>
82673
82674         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
82675         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
82676         rejected some allocations of exactly SIZE_MAX - 2 bytes.
82677         From Bruno Haible.
82678         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
82679         not (size_t) -1, since it's defined here.
82680
82681 2003-11-09  Karl Berry  <karl@gnu.org>
82682
82683         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
82684
82685 2003-11-06  Paul Eggert  <eggert@twinsun.com>
82686
82687         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
82688         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
82689         Reject sizes of exactly SIZE_MAX bytes.
82690         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
82691         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
82692
82693 2003-11-05  Bruno Haible  <bruno@clisp.org>
82694
82695         * lib/xsize.h: Include limits.h, to avoid a possible collision with
82696         SIZE_MAX defined in <limits.h> on Solaris.
82697
82698 2003-11-04  Jim Meyering  <jim@meyering.net>
82699
82700         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
82701         variable names, rather than @VAR@.
82702         * modules/poll: Likewise.
82703
82704 2003-11-04  Bruno Haible  <bruno@clisp.org>
82705
82706         * modules/xsize: New file.
82707         * modules/linebreak: Depend on xsize.
82708         * MODULES.html.sh (func_all_modules): Add xsize.
82709
82710 2003-11-04  Bruno Haible  <bruno@clisp.org>
82711
82712         * m4/xsize.m4: New file.
82713
82714 2003-11-04  Bruno Haible  <bruno@clisp.org>
82715
82716         * lib/xsize.h: New file.
82717         * lib/linebreak.c: Include xsize.h.
82718         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
82719         argument for overflow.
82720         Suggested by Paul Eggert.
82721
82722 2003-11-03  Karl Berry  <karl@gnu.org>
82723
82724         * config/config.{guess,sub}: update from config.
82725
82726 2003-11-03  Jim Meyering  <jim@meyering.net>
82727
82728         * modules/userspec (lib_SOURCES): Add userspec.h.
82729         (Include): Add "userspec.h".
82730         Improve description.
82731
82732 2003-11-03  Jim Meyering  <jim@meyering.net>
82733
82734         * lib/userspec.c: Include "userspec.h".
82735         * lib/userspec.h: New file.
82736
82737 2003-11-03  Bruno Haible  <bruno@clisp.org>
82738
82739         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
82740
82741 2003-11-03  Bruno Haible  <bruno@clisp.org>
82742
82743         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
82744         available, to avoid (extremely rare) race condition.
82745         Suggested by Paul Eggert.
82746
82747 2003-11-02  Karl Berry  <karl@gnu.org>
82748
82749         * config/srclist.txt (vasprintf.c): sync broken, sigh.
82750
82751 2003-10-31  Paul Eggert  <eggert@twinsun.com>
82752
82753         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
82754         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
82755         (read_filesystem_list): Set and use me_type_malloced.
82756         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
82757         whatever the type happens to be), for brevity and consistency.
82758         Check for size calculation overflow on Alphas running OSF/1.
82759
82760 2003-10-31  Jim Meyering  <jim@meyering.net>
82761
82762         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
82763
82764         * lib/linebuffer.c: Include <string.h> for declaration of memset.
82765
82766 2003-10-30  Paul Eggert  <eggert@twinsun.com>
82767             Bruno Haible  <bruno@clisp.org>
82768
82769         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
82770         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
82771
82772 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82773
82774         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
82775         netbsd*-gnu*.  Suggested by Robert Millan.
82776
82777 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82778
82779         * modules/group-member: Depend on stdbool.
82780
82781 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82782
82783         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
82784
82785 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82786
82787         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
82788         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
82789         after the 'gnu' in these cases.  This fixes some bugs in the
82790         previous change, and is based on suggestions by Robert Millan.
82791
82792 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82793
82794         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
82795         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
82796         no longer needed.
82797         * lib/quotearg.c (quotearg_n_options): Use it.
82798         * lib/group-member.c: Include <stdbool.h>.
82799         (free_group_info): Arg is now const *; don't free arg.
82800         (get_group_info): Now returns bool and accepts struct group_info *,
82801         rather than returning a malloc'ed struct group_info *.
82802         All uses changed.  Check for overflow in internal size calculation.
82803
82804         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
82805         rather than xmalloc/xrealloc.
82806         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
82807         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
82808         conformance bug: the old code used a pointer after freeing the
82809         storage that it addressed.
82810         * lib/hash.c (hash_initialize): Simplify the code by using
82811         xalloc_oversized rather than doing it by hand.
82812         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
82813         the buffer preserved.  Use free and xmalloc instead.
82814         * lib/quotearg.c (quotearg_n_options): Likewise.
82815         Use a simpler test for size overflow.  Don't use xalloc_oversized
82816         because unsigned int might be wider than size_t (!); this suggests
82817         that we should switch from unsigned int to size_t for slot numbers.
82818
82819 2003-10-28  Paul Eggert  <eggert@twinsun.com>
82820
82821         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
82822         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
82823         NetBSD kernels.  Requested by Richard Stallman.
82824
82825 2003-10-27  Paul Eggert  <eggert@twinsun.com>
82826
82827         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
82828         to allocate the returned structure.  Do not allocate a subarray,
82829         as x2nrealloc will do that.
82830         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
82831         instead of xnrealloc.
82832         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
82833
82834 2003-10-27  Bruno Haible  <bruno@clisp.org>
82835
82836         * lib/stdbool_.h: Better support for BeOS.
82837
82838 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82839
82840         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
82841         now uses inline.
82842
82843 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82844
82845         * lib/xalloc.h (xalloc_oversized): New static inline function, for
82846         callers that want to do their own size-overflow checking.  Include
82847         <stdbool.h>, since xalloc_oversized returns bool.
82848         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
82849         to use xalloc_oversized.
82850
82851         Add two functions x2realloc, x2nrealloc, for programs that grow
82852         arrays dynamically by doubling their sizes.
82853         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
82854         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
82855         New functions.
82856
82857         Port to C99 semantics for 'inline' of external functions.
82858         Bug reported by Bruno Haible.
82859         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
82860         with the old contents of xnmalloc.
82861         (xnmalloc, xmalloc): Use it.
82862         (xnrealloc_inline): New static inline function,
82863         with the old contents of xnrealloc.
82864         (xnrealloc, xrealloc): Use it.
82865
82866         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
82867         that.
82868
82869 2003-10-26  Karl Berry  <karl@gnu.org>
82870
82871         * config/srclist.txt (COPYING.DOC): no longer available from
82872         /gd/gnuorg; don't know where the ultimate source is.
82873
82874 2003-10-25  Paul Eggert  <eggert@twinsun.com>
82875
82876         Fix several address-calculation bugs in the hash modules,
82877         plus some minor code cleanup.
82878
82879         * lib/hash.h: Include <stdbool.h>, for bool.
82880         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
82881         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
82882         hash_get_n_entries, hash_get_max_bucket_length,
82883         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
82884         hash_rehash): Use size_t rather than unsigned.
82885         * lib/hash.c (struct hash_table, hash_get_n_buckets,
82886         hash_get_n_buckets_used, hash_get_n_entries,
82887         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
82888         hash_get_entries, hash_do_for_each, hash_string, is_prime,
82889         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
82890         Likewise.
82891         (SIZE_MAX): Define if not defined.
82892         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
82893         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
82894         hash_print):
82895         Use const * when possible.
82896         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
82897         (check_tuning): Fix bug: if tuning parameters were very close to
82898         0 or 1, rounding errors could have caused subscript violations.
82899         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
82900         (hash_initialize): Add 'fail:' label
82901         to free table and return NULL, and use it to simplify code.
82902         Use calloc rather than clearing the storage ourself.
82903         (hash_initialize, hash_rehash): Check for arithmetic overflow in
82904         buffer size calculations.
82905         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
82906         Include <stddef.h>, for size_t.
82907         * lib/hash-pjw.c (hash_pjw): Likewise.
82908         Switch to method described by Bruno Haible.
82909         Include <limits.h>, for CHAR_BIT.
82910         (SIZE_BITS): New macro.
82911
82912 2003-10-23  Paul Eggert  <eggert@twinsun.com>
82913
82914         * m4/getline.m4 (AM_FUNC_GETLINE):
82915         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
82916         hosts.  Problem reported by Derek Robert Price in
82917         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
82918         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
82919         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
82920
82921 2003-10-21  Paul Eggert  <eggert@twinsun.com>
82922
82923         * lib/getndelim2.c (getndelim2): When size calculation overflows,
82924         ceiling the allocation at NMAX bytes rather than silently
82925         discarding input bytes before NMAX is reached.  This makes
82926         a difference only if NMAX exceeds SIZE_MAX / 2.
82927
82928         * lib/obstack.c: Merge from glibc.
82929         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
82930         Add libc_hidden_def (_obstack_newchunk).
82931         (_obstack_free) [! defined _LIBC]: Remove.
82932         [defined _LIBC]: Make a strong alias from obstack_free, rather than
82933         a clone of the function body.
82934         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
82935         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
82936
82937         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
82938         glibc.
82939         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
82940         arg to memcpy.
82941
82942         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
82943         (obstack_ptr_grow_fast, obstack_int_grow_fast):
82944         Don't use lvalue casts, as GCC plans to remove support for them
82945         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
82946         was also present in the non-GCC version, indicating that this
82947         code had always been buggy and had never been widely used.
82948         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
82949         Use the fast variant of each macro, rather than copying the
82950         definiens of the fast variant; that way, we'll be more likely to
82951         catch future bugs in the fast variants.
82952
82953 2003-10-20  Bruno Haible  <bruno@clisp.org>
82954
82955         * modules/wait-process: New file.
82956         * MODULES.html.sh (func_all_modules): Add wait-process.
82957
82958 2003-10-20  Bruno Haible  <bruno@clisp.org>
82959
82960         * m4/wait-process.m4: New file.
82961
82962 2003-10-20  Bruno Haible  <bruno@clisp.org>
82963
82964         * lib/wait-process.h: New file, from GNU gettext.
82965         * lib/wait-process.c: New file, from GNU gettext.
82966
82967 2003-10-19  Jim Meyering  <jim@meyering.net>
82968
82969         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
82970         HPUX 10.20.
82971
82972 2003-10-18  Karl Berry  <karl@gnu.org>
82973
82974         * config/config.guess: update from config.
82975
82976 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82977
82978         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
82979         (getgroups): First arg is int, not size_t.
82980         Don't let 'free' mangle errno.
82981
82982 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82983
82984         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
82985
82986 2003-10-16  Karl Berry  <karl@gnu.org>
82987
82988         * config/config.{guess,sub}: update from config.
82989
82990 2003-10-16  Jim Meyering  <jim@meyering.net>
82991
82992         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
82993         memcpy.
82994
82995 2003-10-15  Paul Eggert  <eggert@twinsun.com>
82996
82997         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
82998         (SIZE_MAX): Remove.
82999         (new_exclude, add_exclude_file): Initial size no longer needs to
83000         be a power of 2.
83001         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
83002         our own address arithmetic overflow checking.
83003
83004         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
83005         (fnmatch): Do not alloca more than 2000 wide characters;
83006         instead, use malloc for large buffers.
83007         Check for address arithmetic overflow, and return -1
83008         with errno set to ENOMEM in that case.
83009         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
83010         (NEW_PATTERN): Do not alloca more than 8000 bytes;
83011         instead, return -1.  Check for address arithmetic overflow.
83012
83013 2003-10-14  Paul Eggert  <eggert@twinsun.com>
83014
83015         Handle invalid suffixes and overflow independently, so that
83016         callers can treat them independently as needed.  Fix some bugs in
83017         suffix handling, e.g., "100k@" was not diagnosed as an invalid
83018         suffix for a human-readable blocksize.  The major caller-visible
83019         change is the addition of a new
83020         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
83021         that both overflow and suffix chars were found.
83022
83023         * lib/human.c (humblock): Don't check separately for invalid suffix
83024         char; that is xstrtoumax's job (now that its bug is fixed).
83025         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
83026         INTMAX_MAX]: New macros.
83027         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
83028         TYPE_MAXIMUM): New macros.
83029         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
83030         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
83031         if overflow occurs, as it's what __strtol does and it's more useful
83032         in practice.
83033         (__xstrtol): If __strtol reports some error other than ERANGE,
83034         reflect it to the caller as LONGINT_INVALID.  If it reports
83035         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
83036         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
83037         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
83038         value.
83039         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
83040         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
83041         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
83042         [defined UINTMAX_MAX]: New macros.
83043
83044 2003-10-14  Bruno Haible  <bruno@clisp.org>
83045
83046         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
83047
83048 2003-10-14  Bruno Haible  <bruno@clisp.org>
83049
83050         * m4/sig_atomic_t: New file, from GNU gettext.
83051         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
83052
83053 2003-10-14  Bruno Haible  <bruno@clisp.org>
83054
83055         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
83056         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
83057         Also use volatile where needed.
83058
83059 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83060
83061         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
83062         Change maintainer from Bruno Haible to 'all'.
83063
83064 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83065
83066         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
83067
83068 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83069
83070         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
83071         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
83072         and define in terms of the other primitives.
83073         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
83074         (SIZE_MAX): Define if not already defined.
83075         (array_size_overflow): New function.
83076         (xalloc_die): Abort instead of exiting if 'error' returns.
83077         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
83078         (xmalloc, xrealloc): Use them.
83079         (xcalloc): Check for address arithmetic overflow.
83080         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
83081         a bit faster than strcpy.
83082
83083 2003-10-10  Simon Josefsson  <jas@extundo.com>
83084
83085         * modules/argp (Depends-on): Add restrict and strcase.
83086
83087 2003-10-10  Simon Josefsson  <jas@extundo.com>
83088
83089         * m4/argp.m4: Add AC_C_INLINE.
83090
83091 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83092
83093         Merge getpass from libc, plus a few fixes.
83094
83095         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
83096         Include <stdbool.h>.
83097         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
83098         __fsetlocking to empty.
83099         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
83100         do include <bits/libc-lock.h>.
83101         Do not include <fcntl.h>; not needed.
83102         [_LIBC]: Include <wchar.h>.
83103         (NOTCANCEL_MODE): New macro.
83104         (flockfile, funlockfile) [_LIBC]: New macros.
83105         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
83106         [!_LIBC]: New macros.
83107         (call_fclose): New function.
83108         (getpass): Use it.  Save tty stream separately; this simplifies the
83109         code and makes it more reliable if stdin happens to equal stdout.
83110         Invoke __fsetlocking on tty.
83111         Handle thread cancellation if needed.
83112         Namespace cleanup (use __tcgetattr, __getline).
83113         Use bool for Booleans.
83114         [USE_IN_LIBIO]: Handle wide streams.
83115         [!_LIBC]: Unconditionally do the fseek, since we don't know what
83116         stream might go where.
83117
83118         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
83119         doesn't have to include <stdio.h> before us.
83120         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
83121         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
83122         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
83123         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
83124         if not declared, so that we can use getpass.c code from libc without
83125         rewriting it.
83126         (flockfile, ftrylockfile, funlockfile): New macros.
83127
83128 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83129
83130         * modules/getpass: Depend on stdbool.
83131
83132 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83133
83134         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
83135
83136 2003-10-07  Karl Berry  <karl@gnu.org>
83137
83138         * config/config.{guess,sub}: update from config.
83139
83140 2003-10-06  Jim Meyering  <jim@meyering.net>
83141             Bruno Haible  <bruno@clisp.org>
83142
83143         This lets translators provide better translations for the
83144         "Written by ..." part of --version output.
83145         * lib/version-etc.h: Include stdarg.h.
83146         (version_etc_copyright): Declare as readonly.
83147         (version_etc): Make this function variadic with a NULL-terminated list
83148         of author name strings.
83149         (version_etc_va): New declaration.
83150         * lib/version-etc.c: Include stdarg.h, stdlib.h.
83151         (version_etc_copyright): Declare as readonly.
83152         (version_etc_va): New function. Provide a different translatable string
83153         for each possible number of authors < 10. Abbreviate when there are 10
83154         authors or more.
83155         (version_etc): Make this function variadic. Call version_etc_va.
83156         Suggestion from Gary V. Vaughan.
83157
83158         * lib/long-options.h (parse_long_options): Change prototype: the
83159         authors string is moved to the end and becomes variadic.
83160         * lib/long-options.c: Include stdarg.h.
83161         (parse_long_options): Make this function variadic, too.
83162         Call version_etc_va, not version_etc.
83163
83164 2003-10-06  Bruno Haible  <bruno@clisp.org>
83165
83166         * modules/version-etc-2: Remove file.
83167         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
83168
83169 2003-10-06  Bruno Haible  <bruno@clisp.org>
83170
83171         * modules/fatal-signal: New file.
83172         * MODULES.html.sh (func_all_modules): Add fatal-signal.
83173
83174 2003-10-06  Bruno Haible  <bruno@clisp.org>
83175
83176         * m4/fatal-signal.m4: New file.
83177         * m4/signalblocking.m4: New file, from GNU gettext.
83178
83179 2003-10-06  Bruno Haible  <bruno@clisp.org>
83180
83181         * lib/version-etc-2.h: Remove file.
83182         * lib/version-etc-2.c: Remove file.
83183
83184 2003-10-06  Bruno Haible  <bruno@clisp.org>
83185
83186         * lib/fatal-signal.h: New file, from GNU gettext.
83187         * lib/fatal-signal.c: New file, from GNU gettext.
83188
83189 2003-10-05  Paul Eggert  <eggert@twinsun.com>
83190
83191         * README: Rework advice for preventing empty .o files.
83192         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
83193         not <sys/types.h>.
83194
83195 2003-10-04  Karl Berry  <karl@gnu.org>
83196
83197         * lib/argp*: update from libc.
83198
83199 2003-10-04  Karl Berry  <karl@gnu.org>
83200
83201         * config/config.{guess,sub}: update from config.
83202
83203 2003-10-02  Bruno Haible  <bruno@clisp.org>
83204
83205         * modules/lchown (Include): Add lchown.h.
83206         * modules/time_r (Include): Use "..." syntax.
83207         * modules/xgetdomainname (Include): Add xgetdomainname.h.
83208
83209 2003-10-01  Simon Josefsson  <jas@extundo.com>
83210
83211         * MODULES.html.sh (func_all_modules): Move gethostname from section
83212         'based on' to section 'lacking' POSIX:2001.
83213
83214 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
83215
83216         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
83217         to output mode on the same stream.
83218
83219 2003-09-29  Paul Eggert  <eggert@twinsun.com>
83220
83221         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
83222         Fix arg typo in previous patch.
83223
83224 2003-09-28  Jim Meyering  <jim@meyering.net>
83225
83226         * lib/error.c: Correct cpp indentation.
83227
83228 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83229
83230         * modules/free: New file.
83231
83232 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83233
83234         * m4/free.m4: New file.
83235
83236 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83237
83238         * lib/minmax.h (MIN, MAX)
83239         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
83240         Omit the special code that used __typeof__, since we worry that
83241         it could be more trouble than it's worth.  See:
83242         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
83243         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
83244
83245         * lib/free.c: New file.
83246
83247 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
83248
83249         Trivial fixes to Makefile.am parts of module listings.
83250         * modules/strstr: Append strstr.h to lib_SOURCES.
83251         * modules/strcase: Likewise, for strcase.h.
83252
83253 2003-09-27  Karl Berry  <karl@gnu.org>
83254
83255         * config/mkinstalldirs: update from automake.
83256
83257 2003-09-26  Paul Eggert  <eggert@twinsun.com>
83258
83259         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
83260         (error_tail): Do not loop, reallocating temporary buffer, since
83261         the output cannot contain more wide characters than the input
83262         contains bytes, the size must be big enough already.  This avoids
83263         one potential size overflow calculation.  Check for size overflow
83264         when calculating temporary buffer size.  Free temporary buffer
83265         when done, if it was allocated with malloc; this plugs a memory
83266         leak.  Remove casts from void * to pointers, that are no longer
83267         needed now that we're assuming C89 or better.
83268
83269         Merge error changes from glibc.
83270
83271         * lib/error.c, error.h: Update copyright notice header to match glibc.
83272         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
83273         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
83274         Disable cancellation while printing error.
83275         * lib/error.h: Prepend __ to parameter names.
83276
83277 2003-09-26  Jim Meyering  <jim@meyering.net>
83278
83279         * lib/error.c (error_tail): Move some declarations
83280         into inner scope where the local variables are used.
83281
83282 2003-09-26  Bruno Haible  <bruno@clisp.org>
83283
83284         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
83285         stpncpy().
83286         Don't define stpncpy through config.h; it's now done through stpncpy.h.
83287
83288 2003-09-26  Bruno Haible  <bruno@clisp.org>
83289
83290         * lib/stpncpy.h (gnu_stpncpy): New declaration.
83291         (stpncpy): Define as alias for gnu_stpncpy.
83292         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
83293
83294 2003-09-25  Simon Josefsson  <jas@extundo.com>
83295
83296         * lib/xgetdomainname.h: New file.
83297         * lib/xgetdomainname.c: New file.
83298
83299 2003-09-25  Simon Josefsson  <jas@extundo.com>
83300             Bruno Haible  <bruno@clisp.org>
83301
83302         * modules/getdomainname: New file.
83303         * modules/xgetdomainname: New file.
83304         * MODULES.html.sh (func_all_modules): Add getdomainname,
83305         xgetdomainname.
83306
83307 2003-09-25  Simon Josefsson  <jas@extundo.com>
83308             Bruno Haible  <bruno@clisp.org>
83309
83310         * m4/getdomainname.m4: New file.
83311
83312 2003-09-25  Simon Josefsson  <jas@extundo.com>
83313             Bruno Haible  <bruno@clisp.org>
83314
83315         * lib/getdomainname.h: New file.
83316         * lib/getdomainname.c: New file.
83317
83318 2003-09-25  Karl Berry  <karl@gnu.org>
83319
83320         * lib/argp-fmtstream.c, argp-help.c: update from libc.
83321
83322 2003-09-25  Karl Berry  <karl@gnu.org>
83323
83324         * config/install-sh: update from automake.
83325
83326 2003-09-25  Bruno Haible  <bruno@clisp.org>
83327
83328         * modules/version-etc-2: New file, from modules/version-etc with
83329         modifications.
83330         * MODULES.html.sh (func_all_modules): Add version-etc-2.
83331
83332 2003-09-25  Bruno Haible  <bruno@clisp.org>
83333
83334         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
83335         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
83336
83337 2003-09-24  Simon Josefsson  <jas@extundo.com>
83338
83339         * modules/xgethostname: Add xgethostname.h.
83340
83341 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83342
83343         * lib/linebuffer.c (freebuffer): Don't free the argument, just
83344         the buffer associated with the argument.  Bug reported by
83345         Simon Josefsson.
83346
83347 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83348
83349         * README: Document assumptions that 'int' is at least 32 bits
83350         wide, that integer arithmetic is 2's complement without overflow,
83351         that there are no holes in integer values, that adding sizes of
83352         two nonoverlapping objects can't overflow, and that all-bits-zero
83353         yields scalar zero.  Fix spelling and capitalization typos.
83354
83355 2003-09-19  Karl Berry  <karl@gnu.org>
83356
83357         * lib/argp.h: update from libc.
83358
83359 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83360
83361         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
83362         to avoid spurious warnings like "AC_RUN_IFELSE was called before
83363         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
83364
83365 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83366
83367         * gnulib-tool: Use "test -h", not "test -L", for portability
83368         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
83369         (tags_regexp): Remove, since \| doesn't conform to POSIX.
83370         (sed_extract_prog): Issue s commands one-by-one, rather than
83371         using \| in one s command.
83372
83373 2003-09-16  Paul Eggert  <eggert@twinsun.com>
83374
83375         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
83376         input error, instead of returning NULL the next time we are called
83377         (and therefore losing track of errno).
83378
83379 2003-09-16  Bruno Haible  <bruno@clisp.org>
83380
83381         * gnulib-tool (func_create_testdir): Warn about duplicated
83382         dependencies.
83383
83384 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83385
83386         * modules/argmatch, modules/fatal, modules/obstack,
83387         modules/xalloc, modules/xgethostname: Sort dependencies by
83388         importance, not alphabetically.
83389
83390 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83391
83392         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
83393         fails, so that the caller gets the proper errno.
83394
83395         * lib/readutmp.c (read_utmp): Likewise.
83396         Check for fstat error.  Close stream and free storage
83397         when failing.
83398
83399 2003-09-14  Karl Berry  <karl@gnu.org>
83400
83401         * config/srclist.txt (strdup.c): disable for c89 changes.
83402
83403 2003-09-14  Jim Meyering  <jim@meyering.net>
83404
83405         * lib/getloadavg.c: Correct cpp indentation.
83406         * lib/strdup.c: Likewise.
83407         * lib/vasnprintf.c: Likewise.
83408
83409 2003-09-14  Bruno Haible  <bruno@clisp.org>
83410
83411         * modules/fwriteerror: New file.
83412         * MODULES.html.sh (func_all_modules): Add fwriteerror.
83413
83414 2003-09-14  Bruno Haible  <bruno@clisp.org>
83415
83416         * lib/fwriteerror.h: New file.
83417         * lib/fwriteerror.c: New file.
83418
83419 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83420
83421         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
83422         modules/xgethostname, modules/xalloc: Depend on exit.
83423
83424 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83425
83426         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
83427
83428         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
83429         and AC_MINIX, too, so that their extensions are available.
83430
83431         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
83432         This macro has been superseded by gl_BACKUPFILE.
83433
83434         More patches to assume C89 or better.
83435
83436         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
83437
83438         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
83439         unconditionally.
83440         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
83441         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
83442         Include <string.h>, <stdlib.h> unconditionally.
83443         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
83444         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
83445         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
83446         headers or for string.h.
83447         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
83448         or strtoul.
83449
83450         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
83451         headers.
83452         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
83453         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83454         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
83455         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
83456         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83457         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
83458         memcpy, memset.
83459         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
83460         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
83461         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
83462         strtol.
83463         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
83464         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
83465         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
83466         strtoul.
83467
83468 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83469
83470         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
83471         * lib/obstack.c [!defined _LIBC]: Likewise.
83472         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
83473         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
83474         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
83475
83476         More changes to assume C89 or better.
83477
83478         * lib/error.c (error_tail): Assume vprintf.
83479
83480         * lib/argmatch.c (getenv): Remove decl.
83481         * lib/progreloc.c (get_full_program_name): Define via prototype.
83482         * lib/setenv.c (clearenv): Likewise.
83483         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
83484         needed.
83485         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
83486         (malloc, memcpy): Remove decls.
83487         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
83488         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
83489         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83490         (memcpy): Remove macro.
83491         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
83492         (__P): Remove.  All uses removed.
83493         (PTR): Remove.  All uses changed to void *.
83494         (CHAR_BIT, NULL): Remove.
83495         (spaces, zeros, memset_space, memset_zero)
83496         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
83497         Remove.
83498         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
83499         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
83500         Define with prototype.
83501         Remove now-unnecessary prototype decl.
83502         (extra_args_spec): Assume ANSI C.  All uses changed.
83503         (extra_args_spec_iso): Remove.
83504         (my_strftime, emacs_strftimeu): Define via prototype.
83505         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
83506         unconditionally.
83507         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
83508         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
83509         (strtoul, strtol): Remove decls.
83510         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
83511         LONG_MAX): Remove.
83512         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83513         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
83514         (LOCALE_PARAM_PROTO): New macro.
83515         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
83516         (INTERNAL (strtol), strtol): Define with a prototype.
83517         (PARAMS): Remove.  All uses removed.
83518         * lib/tempname.c: Include <string.h> unconditionally.
83519         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
83520         * lib/xgethostname.c (main): Define with a prototype.
83521         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
83522         Include <stdlib.h> unconditionally.
83523         (calloc, malloc, realloc, free): Remove decls.
83524         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
83525         Include <stdlib.h> unconditionally.  Sort include file names.
83526         (strtod): Remove.
83527         (xstrtod): Define with a prototype.
83528         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
83529         (strtol, strtoul): Remove decls.
83530
83531 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83532
83533         More patches to assume C89 or better.
83534         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
83535         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
83536         string.h, memchr, STDC_HEADERS.
83537
83538 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83539
83540         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
83541         Include <stdlib.h>, <string.h> unconditionally.
83542         Remove now-unnecessary cast to char *.
83543         * lib/strnlen.c: Include <string.h> unconditionally.
83544         * lib/yesno.c (yesno): Define with a prototype.
83545
83546 2003-09-11  Bruno Haible  <bruno@clisp.org>
83547
83548         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
83549
83550 2003-09-10  Jim Meyering  <jim@meyering.net>
83551
83552         * lib/error.c: Correct indentation of cpp directives.
83553
83554 2003-09-10  Bruno Haible  <bruno@clisp.org>
83555
83556         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
83557         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
83558         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
83559         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
83560         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
83561         <stdlib.h> and <string.h> checks.
83562         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
83563         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
83564
83565 2003-09-10  Bruno Haible  <bruno@clisp.org>
83566
83567         * lib/strcspn.c: Include <string.h> unconditionally.
83568         * lib/strpbrk.c: Include <string.h> unconditionally.
83569         * lib/strstr.c: Include <string.h> unconditionally.
83570         * lib/unicodeio.c: Include <string.h> unconditionally.
83571         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
83572         * lib/unsetenv.c: Likewise.
83573         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
83574         * lib/yesno.c: Include <stdlib.h> unconditionally.
83575         (rpmatch): Add prototype.
83576
83577 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83578
83579         More patches to assume C89 or better.
83580         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
83581         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
83582         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
83583         or for string.h.
83584         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
83585         stdlib.h.
83586         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
83587         C headers.
83588         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
83589         string.h.
83590         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
83591         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
83592         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
83593         or for string.h.
83594         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
83595         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
83596         C headers.
83597         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
83598         memcpy.
83599         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
83600         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
83601         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
83602         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
83603         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
83604         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
83605         string.h, free.
83606         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
83607         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
83608         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
83609         C headers, or for string.h.
83610         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
83611         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
83612         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
83613         headers, memory.h, stdlib.h, string.h, strings.h.
83614         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
83615         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
83616         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
83617         strchr.
83618         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
83619         headers, memory.h, string.h.
83620         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
83621         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
83622         free.
83623         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
83624         headers.
83625         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
83626         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
83627         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
83628         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
83629         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
83630
83631 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83632
83633         More K&R removal.
83634
83635         * lib/acosl.c (main): Use a prototype.
83636         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
83637         tanl.c: Likewise.
83638
83639         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
83640
83641         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
83642         (getopt, etopt_long, getopt_long_only, _getopt_internal)
83643         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
83644         with a prototype.
83645         * lib/getopt.c (const): Remove macro.
83646         Include <string.h> unconditionally.
83647         (my_index): Remove; all uses changed to strchr.
83648         (strlen): Remove decl.
83649         (exchange): Remove forward decl; no longer needed.
83650         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
83651         Define with prototype.
83652         * lib/getopt1.c (const): Remove macro.
83653         (getopt_long, getopt_long_only, main): Define with prototype.
83654
83655         * lib/getugroups.c: Include <string.h> unconditionally.
83656
83657         * lib/getusershell.c: Include <stdlib.h> unconditionally.
83658         (getusershell, setusershell, endusershell, readname, main):
83659         Define with prototypes.
83660
83661         * lib/group-member.c: Include group-member.h first.
83662         Include <stdlib.h> unconditionally.
83663
83664         * lib/hard-locale.c: Include hard-locale.h first.
83665         Include <stdlib.h>, <string.h> unconditionally.
83666
83667         * lib/hash.c (free, malloc): Remove decls.
83668         Include <stdlib.h> unconditionally.
83669
83670         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
83671         (getenv): Do not declare.
83672
83673         * lib/idcache.c: Include <string.h> unconditionally.
83674
83675         * lib/long-options.c: Include long-options.h first, to test interface.
83676         Include <stdlib.h> unconditionally.
83677
83678         * lib/makepath.c: Include makepath.h first, to test interface.
83679         Include <stdlib.h> and <string.h> unconditionally.
83680
83681         * lib/linebuffer.c: Include <stdlib.h>.
83682         (free): Remove decl.
83683
83684         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
83685         stddef.h. rpl_malloc returns void *, not char *.
83686         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
83687         prototype.
83688
83689         * lib/md5.h: Include <limits.h> unconditionally.
83690         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
83691         (__P): Remove; all uses removed.
83692         * lib/md5.c: Include "md5.h" first.
83693         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
83694         md5_buffer, md5_process_bytes, md5_process_block):
83695         Define with prototypes.
83696         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
83697         * lib/sha.c: Include "sha.h" first.
83698         Include <stdlib.h>, <string.h> unconditionally.
83699
83700         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
83701         * lib/memcmp.c (__ptr_t): Likewise.
83702         * lib/memrchr.c (__ptr_t): Likewise.
83703         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
83704         Include <string.h> unconditionally.
83705         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
83706         * lib/memchr.c: Include <stdlib.h> unconditionally.
83707         * lib/memchr.c (LONG_MAX): Remove.
83708         * lib/memrchr.c (LONG_MAX): Likewise.
83709         * lib/memchr.c (__memchr): Define via a prototype.
83710         * lib/memrchr.c (__memrchr): Likewise.
83711         * lib/memcmp.c (__P): Remove, and remove all uses.
83712         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
83713         Remove forward decls; no longer needed.
83714         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
83715         Use types required by C89 in prototype.
83716
83717         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
83718         * lib/savedir.c: Likewise.
83719         * lib/mkdir.c (free): Remove decl.
83720         * lib/rmdir.c (rmdir): Define with a prototype.
83721         * lib/savedir.c: Include savedir.h first, to test interface.
83722
83723         * lib/mktime.c (STDC_HEADERS): Remove.
83724         Include <stdlib.h>, <string.h> unconditionally.
83725
83726         * lib/modechange.c: Include <stdlib.h> unconditionally.
83727         (malloc): Remove decl.
83728
83729         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
83730         (free): Remove decl.
83731
83732         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
83733         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
83734         (This type really should be intptr_t, but that's a C99ism.)
83735         (_obstack_memcpy): Remove: all uses changed to memcpy.
83736         Include <string.h> unconditionally.
83737         (struct obstack): Assume __STDC__ for types of members
83738         chunkfun, freefun, extra_arg.
83739         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
83740         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
83741         obstack_begin, obstack_specify_allocation,
83742         obstack_specify_allocation_with_arg, obstack_chunkfun,
83743         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
83744         Remove unprototyped decls and the macros that use them.
83745         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
83746         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
83747         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
83748         (defined __STDC__ && __STDC__)]:
83749         Remove nonprototyped code.
83750         Include <stdlib.h> unconditionally.
83751         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
83752         _obstack_allocated_p, _obstack_free, obstack_free,
83753         _obstack_memory_used, print_and_abort):
83754         Define using prototypes.
83755         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
83756         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
83757         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
83758         obstack_next_free, obstack_object_size, obstack_room) [0]:
83759         Remove unused, unprototyped code.
83760
83761         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
83762
83763         * lib/physmem.c (physmem_total, physmem_available, main): Define
83764         with prototypes.
83765
83766         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
83767         (main): Define with a prototype.
83768
83769         * lib/posixver.c (getenv): Remove decl.
83770
83771         * lib/putenv.c (malloc): Returns void *, not char *.
83772         Include <string.h> unconditionally.
83773         (strchr, memcpy, NULL): Do not define.
83774
83775         * lib/readtokens.c: Include readtokens.h first, to test interface.
83776         Include <stdlib.h>, <string.h> unconditionally.
83777         (init_tokenbuffer): Define with a prototype.
83778
83779         * lib/regex.c (PARAMS): Remove.  All uses removed.
83780         All uses of _RE_ARGS removed, too.
83781         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83782         unconditionally.
83783         (bzero): Assume memset exists.
83784         (memcmp, memcpy, NULL): Remove.
83785         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
83786         char, or assignments to local vars of type signed char.
83787         (init_syntax_once, PREFIX(extract_number_and_incr),
83788         PREFIX(print_partial_compiled_pattern),
83789         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
83790         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
83791         PREFIX(regex_grow_registers), PREFIX(regex_compile),
83792         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
83793         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
83794         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
83795         wcs_compile_range, byte_compile_range, truncate_wchar,
83796         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
83797         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
83798         count_mbs_length, wcs_re_match_2_internal,
83799         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
83800         PREFIX(alt_match_null_string_p),
83801         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
83802         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
83803         regfree, PREFIX(extract_number)): Define with prototype.  Remove
83804         now-unnecessary declaration, if any.
83805         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
83806         regcomp, regexec):
83807         Remove now-unnecessary casts among pointer types.
83808         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
83809
83810         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
83811         (free): Remove decl.
83812
83813         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
83814
83815         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
83816         (free): Remove decl.
83817
83818         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
83819         * lib/xgetcwd.c: Likewise.
83820
83821         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
83822         (free): Remove decl.
83823
83824         * lib/strchrnul.c (strchrnul): Define with a prototype.
83825         Fix bug: c_in was not converted to char before searching.
83826
83827         The following changes are not K&R related:
83828
83829         * lib/group-member.h: Include <sys/types.h>, so that this file is
83830         self-contained.
83831         * lib/makepath.h: Likewise.
83832
83833         * lib/getusershell.c (readname, default_index, line_size, readname):
83834         Use size_t, not int, for sizes.
83835         (readname): If the size overflows, report an error instead of
83836         looping forever.
83837
83838 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83839
83840         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
83841         libc.
83842
83843 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83844
83845         * README: New section: portability guidelines.
83846
83847 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83848
83849         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
83850         C89 spec.
83851
83852 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83853
83854         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
83855
83856 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83857
83858         Assume C89 or better; remove K&R cruft.
83859         A few of these changes were first proposed by Derek Robert Price
83860         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
83861
83862         * lib/addext.c: Include <string.h> unconditionally.
83863         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
83864         Don't declare getenv or malloc.
83865
83866         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
83867         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
83868         (NULL): Remove.
83869         (find_stack_direction, alloca): Use prototypes.
83870
83871         * lib/atexit.c (atexit): Define using a prototype.
83872
83873         * lib/basename.c, dirname.c, stripslash.c:
83874         Include <string.h> unconditionally.
83875
83876         * lib/bcopy.c: Include <stddef.h>.
83877         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
83878
83879         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
83880
83881         * lib/error.h (error, error_at_line, error_print_progname)
83882         [! (defined (__STDC__) && __STDC__)]: Remove decls.
83883         * lib/error.c: Include error.h first, to check interface.
83884         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83885         (VA_START): Remove; all uses changeed to va_start.
83886         (exit, strerror): Remove decls.
83887         (error_print_progname): Prototype uncondionally.
83888         Don't include <errno.h>; no longer needed.
83889         (private_strerror): Remove.
83890         (error_tail): Always define.
83891         (error, error_at_line): Assume C89 or better; always use prototypes.
83892         * lib/fatal.c: Include "fatal.h" first, to test interface.
83893         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83894         (VA_START): Remove; all uses changed to va_start.
83895         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
83896         this case.
83897         (exit): Remove decl.
83898         (fatal): Prototype unconditionally.  Assume va_start works.
83899         Abort at end, to pacify gcc.
83900
83901         * lib/euidaccess.c (main): Define with a prototype.
83902
83903         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
83904
83905         * lib/exitfail.c: Include <stdlib.h> unconditionally.
83906
83907         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
83908         prototypes.
83909         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
83910         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
83911         (getenv): Remove decl.
83912         (fnmatch): Define using a prototype.
83913         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
83914         (FCT): Define using a prototype.
83915
83916         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
83917
83918         * lib/gethostname.c: Include <stddef.h>.
83919         (gethostname): Define with prototype.  Length is size_t, not int.
83920
83921 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83922
83923         Assume C89 or better; remove K&R cruft.
83924         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
83925         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
83926         string.h, getenv, malloc.
83927         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
83928         headers.
83929         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
83930         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
83931         do not check for strerror.
83932         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
83933         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
83934         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
83935         do not check for doprnt or vprintf.
83936         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
83937         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
83938
83939 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83940
83941         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
83942         getversion.c should have been removed then, but was accidentally
83943         preserved.
83944
83945         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
83946         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
83947
83948 2003-09-08  Karl Berry  <karl@gnu.org>
83949
83950         * config/config.sub, config.guess, srclistvars.sh: update from savannah
83951                 config, forget about prep.
83952
83953         * config/depcomp, missing: update from automake.
83954
83955 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83956
83957         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
83958         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83959
83960 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83961
83962         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
83963         copy_tm_result.  Bug reported by Simon Josefsson in
83964         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83965
83966 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83967
83968         * m4/time_r.m4: New file.
83969         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
83970         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
83971         is. Check for timegm declaration.
83972         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
83973         Do not check for gmtime_r.
83974         Replace mktime if __mktime_internal does not exist and if mktime
83975         hasn't been replaced already.
83976
83977 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83978
83979         * lib/time_r.c, lib/time_r.h: New files.
83980
83981         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
83982         __localtime_r.
83983         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
83984         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
83985
83986         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
83987         __gmtime_r.
83988         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
83989         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
83990         Include <time_r.h>.
83991
83992         * lib/timegm.c: Switch to glibc implementation, with the following
83993         changes:
83994         [defined HAVE_CONFIG_H]: Include <config.h>.
83995         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
83996         (__mktime_internal) [!defined _LIBC]: New decl.
83997         (__gmtime_r) [!defined _LIBC]: New macro and function.
83998         (timegm): Use a prototype, since gnulib assumes C89.
83999         Do not bother declaring tmp to be const, as it's not really usefu.
84000         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
84001         (timegm): Declare only if HAVE_DECL_TIMEGM.
84002
84003 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84004
84005         * MODULES.html.sh (func_all_modules): Add time_r.
84006         * modules/time_r: New file.
84007         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
84008         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
84009
84010 2003-09-03  Paul Eggert  <eggert@twinsun.com>
84011
84012         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
84013         Bug reported by Lute Kamstra in
84014         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
84015
84016         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
84017         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
84018         course with correspondingly smaller numbers for tomorrow and
84019         yesterday.  From Tadayoshi Funaba.  Originally installed into
84020         sh-utils on 1999-08-07, but the patch got lost (I guess during the
84021         coreutils merge?).
84022
84023 2003-08-31  Simon Josefsson  <jas@extundo.com>
84024
84025         * modules/timegm: New file.
84026         * MODULES.html.sh (func_all_modules): Add timegm.
84027
84028 2003-08-31  Simon Josefsson  <jas@extundo.com>
84029
84030         * m4/timegm.m4: New file.
84031
84032 2003-08-31  Simon Josefsson  <jas@extundo.com>
84033
84034         * lib/timegm.h: New file.
84035         * lib/timegm.c: New file.  Based on
84036         wget-1.8.2/src/http.c:mktime_from_utc.
84037
84038 2003-08-31  Karl Berry  <karl@gnu.org>
84039
84040         * lib/argp.h: update from libc.
84041
84042 2003-08-28  Bruno Haible  <bruno@clisp.org>
84043
84044         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
84045         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
84046         followed by '#define fnmatch fnmatch_posix' gives an error.
84047
84048 2003-08-28  Bruno Haible  <bruno@clisp.org>
84049
84050         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
84051         warning on QNX, which defines O_BINARY to 000000.
84052
84053 2003-08-27  Jim Meyering  <jim@meyering.net>
84054
84055         * m4/mkstemp.m4: Require that the system mkstemp be able to create
84056         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
84057         would fail after 32.  Reported by Danny Levinson.  Details here:
84058         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
84059
84060 2003-08-24  Bruno Haible  <bruno@clisp.org>
84061
84062         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
84063         MSVC7 <stdio.h> is included later.
84064
84065 2003-08-22  Simon Josefsson  <jas@extundo.com>
84066
84067         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
84068
84069 2003-08-20  Karl Berry  <karl@gnu.org>
84070
84071         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
84072
84073 2003-08-20  Bruno Haible  <bruno@clisp.org>
84074
84075         * modules/progname: New file.
84076         * MODULES.html.sh (func_all_modules): Add progname.
84077
84078 2003-08-20  Bruno Haible  <bruno@clisp.org>
84079
84080         * lib/progname.h: New file, from GNU gettext.
84081         * lib/progname.c: New file, from GNU gettext.
84082         * lib/progreloc.c: New file, from GNU gettext.
84083
84084 2003-08-19  Jim Meyering  <jim@meyering.net>
84085
84086         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
84087         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
84088
84089 2003-08-19  Bruno Haible  <bruno@clisp.org>
84090
84091         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
84092         more.
84093
84094 2003-08-19  Bruno Haible  <bruno@clisp.org>
84095
84096         * lib/xstrdup.c: Assume <string.h> exists.
84097
84098 2003-08-18  Paul Eggert  <eggert@twinsun.com>
84099
84100         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
84101         in makefile rules.
84102
84103 2003-08-18  Jim Meyering  <jim@meyering.net>
84104
84105         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
84106         * m4/lib-ld.m4: Likewise.
84107
84108 2003-08-18  Jim Meyering  <jim@meyering.net>
84109
84110         * lib/setenv.h: Indent nested cpp directive.
84111         * lib/vasnprintf.c: Remove trailing blanks.
84112
84113 2003-08-17  Simon Josefsson  <jas@extundo.com>
84114
84115         * modules/xstrndup: New file.
84116         * MODULES.html.sh (func_all_modules): Add xstrndup.
84117
84118 2003-08-17  Simon Josefsson  <jas@extundo.com>
84119
84120         * modules/argp: Fix autoconf macro name. Add more dependencies.
84121
84122 2003-08-17  Simon Josefsson  <jas@extundo.com>
84123
84124         * m4/xstrndup.m4: New file.
84125
84126 2003-08-17  Simon Josefsson  <jas@extundo.com>
84127
84128         * m4/argp.m4: New file.
84129
84130 2003-08-17  Simon Josefsson  <jas@extundo.com>
84131             Bruno Haible  <bruno@clisp.org>
84132
84133         * lib/xstrndup.h: New file.
84134         * lib/xstrndup.c: New file.
84135
84136 2003-08-17  Bruno Haible  <bruno@clisp.org>
84137
84138         * modules/strndup (Files, Include): Add lib/strndup.h.
84139
84140 2003-08-17  Bruno Haible  <bruno@clisp.org>
84141
84142         * modules/euidaccess (Files): Add lib/euidaccess.h.
84143
84144 2003-08-17  Bruno Haible  <bruno@clisp.org>
84145
84146         * lib/strndup.h: New file.
84147
84148 2003-08-17  Bruno Haible  <bruno@clisp.org>
84149
84150         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
84151         like AC_GNU_SOURCE.
84152         * modules/extensions (configure.ac): Comment out the invocation of
84153         gl_USE_SYSTEM_EXTENSIONS.
84154
84155 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84156
84157         Merges from coreutils, etc.
84158         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
84159         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
84160         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
84161         fixing a typo.
84162         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
84163         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
84164
84165 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84166
84167         Document merge from coreutils.
84168         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
84169         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
84170         * modules/utime: Add m4/utimes-null.m4.
84171
84172 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84173
84174         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
84175         space, undoing this 2003-08-12 change:
84176         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84177
84178 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84179
84180         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
84181         strtoul.c from libc, undoing this 2003-08-12 change:
84182         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84183
84184 2003-08-16  Jim Meyering  <jim@meyering.net>
84185
84186         Merges from coreutils.
84187         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
84188         prefix.  Adjust cache variables similarly.  Create 500 rather than
84189         just 300 files, to exercise bug on Darwin6.5, too.
84190         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
84191         $missing_dir.
84192         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
84193         AM_SYS_POSIX_TERMIOS.
84194         Reported by mkc@mathdogs.com.
84195         Also change use of $am_cv_sys_posix_termios
84196         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
84197         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
84198         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
84199         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
84200         in /proc/mounts until it finds one with matching device number.  This
84201         is unnecessary when the FILE argument *is* a mount point.  No stat call
84202         is necessary in that case.  So, disable the statvfs-testing code on
84203         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
84204         as RedHat bug# 84846.
84205         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84206         to 1MB, so as not to render systems with no stack size limit (e.g.,
84207         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84208         Include <unistd.h>.  On some systems,
84209         it is required for the definition of _SC_PAGESIZE.
84210
84211 2003-08-16  Jim Meyering  <jim@meyering.net>
84212
84213         Merge from coreutils.
84214         * lib/xstrtoimax.c: #else #if -> #elif.
84215         * lib/xstrtoumax.c: Likewise.
84216
84217 2003-08-16  Jim Meyering  <jim@meyering.net>
84218
84219         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
84220         * m4/utimes.m4: Removed.
84221         * m4/utimes-null.m4: Renamed from utimes.m4.
84222
84223         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84224         to 1MB, so as not to render systems with no stack size limit (e.g.,
84225         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84226         Include <unistd.h>.  On some systems,
84227         it is required for the definition of _SC_PAGESIZE.
84228
84229 2003-08-16  Jim Meyering  <jim@meyering.net>
84230         and Paul Eggert  <eggert@cs.ucla.edu>
84231
84232         Merges from coreutils, etc.
84233
84234         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
84235         using the latest version from cvs.  This avoids problems with #line
84236         directives using a vendor (Sun) compiler.
84237         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
84238         Don't set GETGROUPS_LIB here; now it's
84239         done via getgroups.m4's wrapper function.
84240         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
84241         rather than just in sh-util/configure.in, so that the
84242         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
84243         same.
84244         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
84245         AC_FUNC_GETLOADAVG where to find getloadavg.c.
84246         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
84247         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
84248         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
84249         Remove code that is now done by the newly-required macros.
84250         Append $(EXEEXT) to DF_PROG.
84251         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
84252         Do not invoke or require the following here,
84253         since prereq.m4 or some gnulib .m4 now does this for us:
84254         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
84255         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
84256         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
84257         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
84258         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
84259         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
84260         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
84261         AC_FUNC_OBSTACK.
84262         Do not replace the following functions, as this is now the job
84263         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
84264         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
84265         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
84266         atexit getpass, strdup, getpagesize.
84267         Replace 'raise'.
84268         Do not check for the following functions, as this is now the job
84269         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
84270         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
84271         setregid.
84272         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
84273         Check for sys/sysctl.h.
84274         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
84275         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
84276         of checking for ssize_t ourselves.
84277
84278         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
84279         Require every macro that gnulib/modules/* suggests for us.
84280         (jm_PREREQ_ADDEXT): New macro.
84281         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
84282         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
84283
84284         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
84285         (gl_PHYSMEM): Use it.
84286         Also check for `table' function.
84287         Check for new headers and functions.
84288         Add check for sys/sysmp.h.
84289         With suggestions from Kaveh Ghazi.
84290         Ignore headers that are present but cannot be compiled.  This
84291         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
84292         C 5.4.
84293
84294 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84295
84296         Document merge from coreutils.
84297         * modules/userspec: Depend on posixver.
84298         * modules/strftime: Depend on tzset.
84299
84300 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84301
84302         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
84303         rather than tab, after '#' in shell-script copyright notices.
84304         Suggested by Bruno Haible.
84305
84306 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84307
84308         * config/srclist-update: Use three spaces, rather than tab, after '#'
84309         in shell-script copyright notices.  Suggested by Bruno Haible.
84310         Remove unnecessary parenthesization in regular expression.
84311
84312 2003-08-15  Jim Meyering  <jim@meyering.net>
84313
84314         Merge from coreutils.
84315         * lib/xgethostname.c: Include <stdlib.h>.
84316         (xghostname): Don't exit for anything other than memory-related
84317         failure; just return NULL.
84318         * lib/userspec.c: Include "posixver.h".
84319         (parse_user_spec): Accept `.' as a separator only
84320         in pre-POSIX-200112 mode.
84321         * lib/strtoimax.c: Use #elif rather than #else #if.
84322         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
84323         Remove function, now that we can rely on a working tzset function.
84324         [!_LIBC]: Ensure that the required autoconf test has been run.
84325         [!defined _NL_CURRENT && HAVE_STRFTIME]:
84326         Use underlying_strftime for %r.
84327         * lib/sha.c: Merge in some clean-up and optimization changes from
84328         glibc.
84329         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
84330         Ensure that it is a multiple of 64.
84331         Rearrange loop exit tests so as to avoid performing an
84332         additional fread after encountering an error or EOF.
84333         * lib/realloc.c: Update copyright date.
84334
84335 2003-08-15  Jim Meyering  <jim@meyering.net>
84336         and Paul Eggert  <eggert@twinsun.com>
84337
84338         Merge from coreutils.
84339         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
84340         member but strut utmpx does not.  Needed for AIX 4.3.3.
84341         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
84342
84343 2003-08-15  Jim Meyering  <jim@meyering.net>
84344         and Paul Eggert  <eggert@cs.ucla.edu>
84345
84346         Merges from coreutils, etc.
84347         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
84348         Require gl_FUNC_TZSET_CLOBBER.
84349         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
84350         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
84351         members.
84352
84353 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84354
84355         Help the merge from coreutils.
84356         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
84357         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
84358         * m4/tzset.m4: Use it too.
84359
84360 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84361
84362         * modules/tzset: New file.
84363
84364 2003-08-14  Jim Meyering  <jim@meyering.net>
84365
84366         Merges from coreutils.
84367         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
84368         variable names, rather than @FNMATCH_H@.
84369         * modules/alloca: Likewise for $(ALLOCA_H).
84370
84371         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
84372         the three copies of the literal target, `fnmatch.h'.
84373         * modules/alloca (alloca.h): Likewise.
84374
84375 2003-08-14  Jim Meyering  <jim@meyering.net>
84376
84377         Merge from coreutils.
84378         * m4/tzset.m4: New file.
84379         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
84380         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
84381         otherwise, AIX 5.1 systems would end up using the latter.
84382         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
84383         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
84384         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
84385         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
84386
84387 2003-08-14  Jim Meyering  <jim@meyering.net>
84388
84389         Merge from coreutils.
84390         * lib/obstack.h: Whitespace changes.
84391         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
84392         and xcalloc return values.
84393         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
84394         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
84395         hang on OSF/1 5.1 for DIR on both local and remote file systems.
84396         Reported by (and fix confirmed by) Nelson H. F. Beebe.
84397         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84398         error from mntctl.
84399         Use mntctl's return value to drive the entry-processing loop, since
84400         we can't rely on the value of the vmt_length member in the last
84401         entry.  On some systems doing so could result in exhausting
84402         virtual memory.  Based in part on a patch from Mike Jetzer.
84403
84404 2003-08-14  Jim Meyering  <jim@meyering.net>
84405         and Paul Eggert  <eggert@twinsun.com>
84406
84407         Merges from coreutils, plus other fixes.
84408         * lib/physmem.c: Merge in portability changes from gcc/libiberty
84409         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
84410         for credits and details.  Thanks to Kaveh Ghazi for helping
84411         to keep these files in sync.
84412         (ARRAY_SIZE): Define it.
84413         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
84414         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
84415         (memcasecmp): Don't assume size_t fits in unsigned int.
84416         Remove casts and duplicate code.
84417         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
84418         (memcpy): Remove definition.
84419         Merge in some clean-up and optimization changes from glibc.
84420         [BLOCKSIZE]: Move definition to top of file.
84421         Ensure that it is a multiple of 64.
84422         Rearrange loop exit tests so as to avoid performing an
84423         additional fread after encountering an error or EOF.
84424         * lib/md5.h (md5_uintptr): Define.
84425         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
84426         return to the initial working directory.  Preserve errno
84427         for caller.
84428         * lib/idcache.c: Include "xalloc.h".
84429         (xmalloc, xrealloc): Remove decls.
84430         (getuser): Remove casts no longer required in C89.
84431         * lib/human.c: Include stdio.h, for sprintf.
84432         * lib/group-member.c: Include "xalloc.h".
84433         (xmalloc, xrealloc): Remove decls.
84434         (get_group_info): Remove casts no longer required in C89.
84435         * lib/getusershell.c (readname): Remove casts no longer required in
84436         C89.
84437         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
84438         * lib/getline.c: Whitespace fix, from coreutils.
84439
84440 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84441
84442         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
84443         Check for isascii.
84444
84445         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84446         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84447         Undo previous (whitespace-only) change.
84448
84449 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84450
84451         * lib/exclude.c: Include <ctype.h>
84452         (IN_CTYPE_DOMAIN): New macro.
84453         (is_space): New fn.
84454         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
84455         and empty lines.
84456
84457         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84458         Undo previous (whitespace-only) change.
84459
84460 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84461
84462         * config/srclist-update: Change update back to the old behavior,
84463         leaving whitespace alone.  Use one 'sed' command rather than a
84464         pipeline.
84465         (fixlicense): Now a variable, not a function.
84466         (remove_trailing_blanks): Remove.
84467         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
84468         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84469         Undo previous (whitespace-only) change.
84470
84471 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84472
84473         Merge from coreutils.
84474         * modules/euidaccess: Add lib_SOURCES, include for new
84475         file euidaccess.h
84476
84477 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84478
84479         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84480         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84481         Normalize leading white space and remove trailing white space.
84482
84483         Merge from coreutils
84484         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
84485
84486         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
84487         0.12.1.  These files are now being upgraded automatically by
84488         ../config/srclist-update.
84489
84490 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84491
84492         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84493         Normalize leading white space and remove trailing white space.
84494         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
84495         notice, as per ../config/srclist-update.
84496
84497         Merge from coreutils.
84498         * lib/euidaccess.h: New file.
84499         * lib/euidaccess.c: Include it.
84500         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
84501         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
84502         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
84503
84504 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84505
84506         * config/srclist-update: Add copyright notice.
84507         (remove_id_lines, remove_trailing_blanks): New constants.
84508         (fixfile): Use them to normalize spacing a bit in copied files.
84509         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84510         Normalize leading white space and remove trailing white space.
84511
84512         * config/texinfo.tex: Sync with texinfo.
84513
84514         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
84515         strtoul.c from libc, to merge coreutils whitespace changes.
84516
84517         * config/srclist.txt: Get the following m4 files from gettext:
84518         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
84519         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
84520         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
84521         wint_t.m4.
84522
84523 2003-08-12  Karl Berry  <karl@gnu.org>
84524
84525         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
84526         been made.
84527
84528 2003-08-11  Paul Eggert  <eggert@twinsun.com>
84529
84530         * modules/gnu-source, m4/gnu-source.m4:
84531         Remove; we're assuming Autoconf 2.54 or later now.
84532         Suggested by Bruno Haible.
84533         * MODULES.html.sh (func_all_modules): Remove gnu-source.
84534
84535 2003-08-11  Bruno Haible  <bruno@clisp.org>
84536
84537         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
84538
84539 2003-08-11  Bruno Haible  <bruno@clisp.org>
84540
84541         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
84542         (vasnprintf): Use it instead of wcslen.
84543
84544 2003-08-11  Bruno Haible  <bruno@clisp.org>
84545
84546         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
84547         value to ensure that _Bool promotes to int. Use #define for _Bool when
84548         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
84549
84550 2003-08-10  Karl Berry  <karl@gnu.org>
84551
84552         * lib/regex.h: update from libc (whitespace fix).
84553
84554 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84555
84556         Merge some files from coreutils.  These changes were
84557         originally made by Jim Meyering.
84558         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
84559         many older Unixes require this.
84560         * lib/alloca.c (alloca): Remove cast to argument of free;
84561         no longer needed in C89.
84562         * lib/alloca_.h, regex.h: Fix white space to match
84563         what GNU indent does.
84564
84565 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84566
84567         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
84568         apparently Emacs's Unicode mode got confused before my 2003-08-05
84569         checkin.
84570
84571 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84572
84573         * m4/extensions.m4: New file.
84574         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
84575         Require gl_USE_SYSTEM_EXTENSIONS.
84576         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
84577         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
84578
84579 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84580
84581         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
84582         * modules/extensions, modules/gnu-source: New files.
84583         * modules/timespec, modules/unlocked-io: Depend on extensions.
84584
84585 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84586
84587         * modules/restrict: New file.
84588         * MODULES.html.sh (func_all_modules): Add restrict.
84589         * modules/regex: Depend on restrict.
84590
84591 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84592
84593         * m4/restrict.m4: New file.
84594         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
84595
84596 2003-08-07  Bruno Haible  <bruno@clisp.org>
84597
84598         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
84599         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
84600
84601 2003-08-07  Bruno Haible  <bruno@clisp.org>
84602
84603         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
84604         makes the module 'getndelim2' compatible with the module 'getline'.
84605
84606 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84607
84608         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
84609         byte with "\201" to avoid glitches when editing that source file
84610         with multi-gnome-terminal.
84611
84612 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84613
84614         * lib/bumpalloc.h: Remove.
84615
84616 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84617
84618         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
84619         * modules/bumpalloc: Remove.
84620
84621 2003-08-04  Paul Eggert  <eggert@twinsun.com>
84622
84623         * lib/getloadavg.c: Change copyright notice and spacing to conform to
84624         GNU coding style.
84625
84626         Merge from coreutils.
84627         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
84628         1. From glibc.
84629         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
84630         from Karl Berry, implemented by Jim Meyering.
84631         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
84632         from Dmitry V. Levin.
84633         Remove anachronistic cast of xrealloc.
84634         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
84635         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
84636         type. Otherwise, it wouldn't compile with at least /bin/cc on
84637         ymp-cray-unicos9.0.2.X.
84638         Combine two mostly-identical uses of alloca into one.
84639         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
84640
84641 2003-08-04  Dave Love  <d.love@dl.ac.uk>
84642
84643         [From Emacs.]
84644
84645         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
84646         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
84647         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
84648         obsolete NLIST_NAME_UNION.
84649         [__GNU__]: Undef BSD and FSCALE.
84650         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
84651
84652 2003-08-03  Paul Eggert  <eggert@twinsun.com>
84653
84654         * lib/stdbool_.h (_Bool): Make it signed char, instead of
84655         an enum type, so that it's guaranteed to promote to int.  See:
84656         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
84657
84658 2003-08-03  Karl Berry  <karl@gnu.org>
84659
84660         * config/depcomp: update from automake.
84661
84662 2003-07-31  Paul Eggert  <eggert@twinsun.com>
84663
84664         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
84665         (strerror): Don't assume that a printable int fits in 14 bytes.
84666
84667 2003-07-31  Bruno Haible  <bruno@clisp.org>
84668
84669         * modules/getpass-gnu: New file.
84670         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
84671
84672 2003-07-31  Bruno Haible  <bruno@clisp.org>
84673
84674         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
84675
84676 2003-07-24  Karl Berry  <karl@gnu.org>
84677
84678         * config/missing: update from automake.
84679
84680 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
84681             Bruno Haible  <bruno@clisp.org>
84682
84683         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
84684         * lib/getline.c (getline, getdelim): Likewise.
84685         Remove _GNU_SOURCE define; now it's defined in config.h through
84686         m4/getline.m4.
84687
84688 2003-07-23  Karl Berry  <karl@gnu.org>
84689
84690         * config/config.sub: update from prep.
84691
84692 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84693
84694         * modules/xalloc (Depends-on): Add exitfail.
84695         * modules/xmemcoll: Likewise.
84696
84697 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84698
84699         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
84700         over-parenthesization in macros.
84701
84702         Sync with coreutils.
84703
84704         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
84705         required by C99.
84706
84707         Use `exit_failure' for xalloc and xmemcoll instead of their own
84708         private exit-failure variables.
84709         * lib/xalloc.h (xalloc_exit_failure): Remove.
84710         * lib/xmalloc.c: Likewise.  Include exitfail.h.
84711         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
84712         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
84713         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
84714         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
84715
84716 2003-07-20  Jim Meyering  <jim@meyering.net>
84717
84718         * modules/closeout (Depends-on): Add exitfail.
84719         Suggestion from Bruno Haible.
84720
84721 2003-07-19  Karl Berry  <karl@gnu.org>
84722
84723         * config/config.sub: update from prep.
84724
84725 2003-07-18  Paul Eggert  <eggert@twinsun.com>
84726
84727         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
84728         Remove.
84729         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
84730         to test that it can stand by itself.  Include "exitfail.h".
84731         Clients should set exit_failure instead.
84732         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
84733
84734 2003-07-18  Bruno Haible  <bruno@clisp.org>
84735
84736         * modules/getndelim2: New file.
84737         * modules/getline: Share files with module getndelim2.
84738         * modules/getnline: Depend on getndelim2 instead of sharing files with
84739         it. Add getnline.c to lib_SOURCES.
84740         * MODULES.html.sh (func_all_modules): Add getndelim2.
84741
84742 2003-07-18  Bruno Haible  <bruno@clisp.org>
84743
84744         * m4/getndelim2.m4: New file.
84745         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
84746         invoke gl_PREREQ_GETNDELIM2.
84747         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
84748         gl_PREREQ_GETNDELIM2.
84749         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
84750         gl_GETNDELIM2.
84751
84752 2003-07-18  Bruno Haible  <bruno@clisp.org>
84753
84754         * lib/getndelim2.h: New file.
84755         * lib/getndelim2.c: Make into a module of its own. Include config.h,
84756         getndelim2.h.
84757         (getndelim2): Make non-static. Change return type to ssize_t.
84758         * lib/getline.h: Change argument names.
84759         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
84760         * lib/getnline.c: Include getndelim2.h.
84761
84762 2003-07-18  Andreas Schwab  <schwab@suse.de>
84763
84764         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
84765
84766 2003-07-17  Karl Berry  <karl@gnu.org>
84767
84768         * config/config.sub: update from prep.
84769
84770 2003-07-17  Bruno Haible  <bruno@clisp.org>
84771
84772         * modules/getnline: New file.
84773         * modules/getline: Add lib/getndelim2.c to source file list.
84774         * MODULES.html.sh (func_all_modules): Add getnline.
84775
84776 2003-07-17  Bruno Haible  <bruno@clisp.org>
84777
84778         * m4/getnline.m4: New file.
84779
84780 2003-07-17  Bruno Haible  <bruno@clisp.org>
84781
84782         * m4/Makefile.am.in: Remove file.
84783         * m4/Makefile.am: Remove file.
84784         * m4/Makefile.in: Remove file.
84785
84786 2003-07-17  Bruno Haible  <bruno@clisp.org>
84787
84788         * lib/getnline.h: New file.
84789         * lib/getnline.c: New file.
84790         * lib/getndelim2.c: New file, extracted from getline.c.
84791         (getndelim2): Renamed from getdelim2, with added nmax argument.
84792         * lib/getline.c: Include getndelim2.c.
84793         (getdelim2): Moved out to getndelim2.c.
84794         (getline, getdelim): Update.
84795
84796 2003-07-17  Bruno Haible  <bruno@clisp.org>
84797
84798         * lib/Makefile.am: Remove file.
84799         * lib/Makefile.in: Remove file.
84800
84801 2003-07-17  Bruno Haible  <bruno@clisp.org>
84802
84803         * configure.in: Remove file.
84804         * Makefile.in: Remove file.
84805
84806 2003-07-17  Bruno Haible  <bruno@clisp.org>
84807
84808         * MODULES.html.sh: Put the </BODY> right before </HTML>.
84809
84810 2003-07-16  Karl Berry  <karl@gnu.org>
84811
84812         * config/srclist-update: was running fixlicense twice, which caused
84813                 texinfo.tex to be nullified for some reason.  Simplify,
84814                 $gplsrc is no longer needed as far as I can see?
84815
84816 2003-07-16  Jim Meyering  <jim@meyering.net>
84817
84818         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
84819
84820 2003-07-15  Paul Eggert  <eggert@twinsun.com>
84821
84822         * config/srclist.txt: Get the following files from gettext-runtime/intl
84823         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
84824         ref-del.sin.  From Bruno Haible.
84825         * config/srclist-update (fixfile): Change grep pattern again, since the
84826         previous fix didn't work (there was another trailing $).  Use
84827         '[$]' to escape the $s.
84828
84829 2003-07-15  Karl Berry  <karl@gnu.org>
84830
84831         * lib/vasnprintf.c: update from gettext.
84832
84833 2003-07-15  Karl Berry  <karl@gnu.org>
84834
84835         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
84836         gets expanded when surrounded by '$'.
84837
84838 2003-07-15  Jim Meyering  <jim@meyering.net>
84839
84840         * modules/save-cwd: Don't depend on error.  From Derek Price.
84841
84842 2003-07-15  Jim Meyering  <jim@meyering.net>
84843
84844         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
84845
84846 2003-07-14  Simon Josefsson  <jas@extundo.com>
84847
84848         * modules/mempcpy: New file.
84849         * MODULES.html.sh (func_all_modules): Add mempcpy.
84850
84851 2003-07-14  Simon Josefsson  <jas@extundo.com>
84852
84853         * m4/mempcpy.m4: New file.
84854
84855 2003-07-14  Simon Josefsson  <jas@extundo.com>
84856
84857         * lib/mempcpy.h: New file.
84858         * lib/mempcpy.c: New file.
84859
84860 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84861
84862         * modules/getdate, modules/posixtm: Depend on mktime.
84863
84864 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84865
84866         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
84867         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
84868         unicodeio.c, unicodeio.h, unlocked-io.h:
84869         Switch from LGPL to GPL.
84870
84871 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84872
84873         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
84874         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
84875         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
84876         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
84877         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
84878         updated automatically by ../config/srclist-update.  This changes
84879         their license from LPGL to GPL.
84880
84881 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84882
84883         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
84884         assumed to refer to the root of the most recent stable gettext version.
84885         * config/srclistvars.sh: Add defaults for eggert.
84886         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
84887         Match "This program" as well as "The program".  This is needed
84888         for gettext.
84889
84890 2003-07-14  Jim Meyering  <jim@meyering.net>
84891
84892         Don't emit diagnostics.  Let callers do that.
84893         * lib/save-cwd.c: Don't include "error.h".
84894         (save_cwd): Don't call error.  Ensure that errno is valid
84895         when returning nonzero.
84896
84897         * lib/save-cwd.h (restore_cwd): Update prototype.
84898         * lib/save-cwd.c (restore_cwd): Remove two parameters.
84899         Simplify.  Don't call error upon failure.  Let callers do that.
84900         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
84901         when auditing is enabled.  But don't bother updating the #if.
84902
84903 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
84904
84905         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
84906         it breaks C++ compilation.
84907         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
84908
84909 2003-07-10  Simon Josefsson  <jas@extundo.com>
84910
84911         * modules/strchrnul (Makefile.am): Add strchrnul.h.
84912
84913 2003-07-10  Jim Meyering  <jim@meyering.net>
84914
84915         * m4/clock_time.m4: Remove trailing blank.
84916         * m4/intmax_t.m4: Likewise.
84917
84918 2003-07-10  Jim Meyering  <jim@meyering.net>
84919
84920         * lib/vasnprintf.c: Remove trailing blanks.
84921         Make cpp indentation consistent.
84922
84923 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84924
84925         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
84926         posixver.c, strftime.c, strnlen.c, strverscmp.c:
84927         Switch from LGPL to GPL.
84928
84929 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84930
84931         * config/srclist.txt: Sort sublists.  Add
84932         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
84933         that differ from gnulib for one reason or another; we'd like this list
84934         to be smaller but for now let's document what we have.
84935
84936 2003-07-08  Paul Eggert  <eggert@twinsun.com>
84937
84938         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
84939         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
84940         and sweeter "eval x=$x".
84941         * config/srclist.txt: Get lib/argp* from glibc.
84942
84943 2003-07-07  Paul Eggert  <eggert@twinsun.com>
84944
84945         * lib/mktime.c: Fix some boundary cases and remove need for floating
84946         point.
84947
84948         Issue a compile-time diagnostic if time_t is floating point, or if
84949         two's complement arithmetic is not in effect, or if arithmetic
84950         right shift does not propagate the sign.  These assumptions were
84951         all in the original code but they weren't checked.
84952
84953         (TIME_T_MIDPOINT, verify): New macros.
84954         (__isleap): Remove; it has integer overflow problems.
84955         (leapyear): New function, without those problems.
84956         (ydhms_tm_diff): Remove; splitting into two parts.
84957         (ydhms_diff): New function, containing the arithmetic part of
84958         the old ydhms_tm_diff function.  Issue a compile-time
84959         diagnostic if we are not using C99 integer division.
84960         Avoid casts when possible.
84961         (guess_time_tm): New function, containing the checking part of
84962         the old ydhms_tm_diff function.  Return the new value, rather than
84963         the difference between it and the old.  Accept a new argument T
84964         so that *T specifies the old value.  Check for overflow in the result.
84965
84966         (__mktime_internal): Use a time_t offset, not a long int offset.
84967         This undoes the 2003-06-04 change, which is no longer needed now
84968         that we have better overflow checking.
84969         (localtime_offset): Likewise.
84970
84971         (__mktime_internal): Avoid harmful overflow on hosts where time_t
84972         and long are 64-bit but int is only 32-bit.
84973         (ydhms_diff): Use long int to store year1 and yday1.
84974         Issue a compile-time diagnostic if long int is not wide enough.
84975
84976         (__mktime_internal): Use long int to store adjusted year and yday.
84977         Use plain C rather than preprocessor commands, if that doesn't
84978         affect efficiency.
84979         Check for overflow (and try to repair) after each probe
84980         rather than checking only at the very end.  This avoids some bugs
84981         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
84982         does not equal GMT offset at maximum time).
84983         Use integer to check for overflow rather than floating point; this
84984         is more portable to non-IEEE hosts, and is a tad faster.
84985         When we detect that we are oscillating between two values,
84986         don't check whether tm_isdst has the requested value, since
84987         we already know the answer.  When tm_isdst has the wrong value,
84988         use a different heuristic to find the right one, based on the
84989         extreme values actually observed in practice in tz2003a,
84990         rather than the (overly optimistic) "previous 3 calendar quarters".
84991
84992         (not_equal_tm, print_tm, check_result): Use "const T" rather than
84993         "T const" to accommodate glibc style.
84994         (check_result): Use less-confusing report format.  "long" -> "long int.
84995         (main): Likewise.
84996         Don't loop if the iteration overflows time_t.
84997         Allow a negative step in the iteration.
84998
84999 2003-07-06  Karl Berry  <karl@gnu.org>
85000
85001         * config/depcomp: update from automake.
85002         * config/config.sub: update from prep.
85003
85004 2003-07-03  Karl Berry  <karl@gnu.org>
85005
85006         * config/config.guess: update from prep.
85007
85008 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85009
85010         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
85011         xreadlink.c now includes it unconditionally.
85012
85013 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85014
85015         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
85016         having it depend on HAVE_SYS_TYPES_H.
85017
85018 2003-07-01  Bruno Haible  <bruno@clisp.org>
85019
85020         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
85021         <sys/types.h> should be sufficient.
85022         Reported by Paul Eggert.
85023
85024 2003-06-26  Karl Berry  <karl@gnu.org>
85025
85026         * config/depcomp: update from automake.
85027
85028 2003-06-26  Bruno Haible  <bruno@clisp.org>
85029
85030         * modules/human: Depend on module stdbool.
85031
85032 2003-06-25  Bruno Haible  <bruno@clisp.org>
85033
85034         * modules/readlink: New file.
85035         * modules/xreadlink: Depend on it.
85036         * MODULES.html.sh (func_all_modules): Add readlink.
85037
85038 2003-06-25  Bruno Haible  <bruno@clisp.org>
85039
85040         * m4/readlink.m4: New file.
85041
85042 2003-06-25  Bruno Haible  <bruno@clisp.org>
85043
85044         * lib/readlink.c: New file.
85045
85046 2003-06-22  Karl Berry  <karl@gnu.org>
85047
85048         * config/srclist.txt: update mkinstalldirs from automake.
85049         * config/mkinstalldirs: update.
85050
85051 2003-06-22  Bruno Haible  <bruno@clisp.org>
85052
85053         Portability to mingw32.
85054         * m4/ssize_t.m4: New file, from GNU gettext.
85055         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
85056         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
85057
85058 2003-06-22  Bruno Haible  <bruno@clisp.org>
85059
85060         * modules/safe-read: Add m4/ssize_t.m4.
85061         * modules/xreadlink: Add m4/ssize_t.m4.
85062
85063 2003-06-20  Bruno Haible  <bruno@clisp.org>
85064
85065         Assume C89, so PARAMS isn't needed.
85066         * lib/unicodeio.h (PARAMS): Remove.
85067         * lib/unicodeio.c: Don't use PARAMS.
85068
85069 2003-06-18  Karl Berry  <karl@gnu.org>
85070
85071         * config/config.{guess,sub}: update from prep.
85072
85073 2003-06-18  Jim Meyering  <jim@meyering.net>
85074
85075         Merge changes from coreutils.
85076         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
85077         Remove explicit declarations of xmalloc and realloc.
85078         Include xalloc.h.
85079         (read_utmp): Remove anachronistic cast of xmalloc.
85080
85081 2003-06-17  Paul Eggert  <eggert@twinsun.com>
85082
85083         Assume C89, so PARAMS isn't needed.
85084         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
85085         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
85086         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
85087         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
85088         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
85089         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
85090         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
85091         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
85092         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
85093         lib/xstrtod.h, lib/xstrtol.h: Likewise.
85094         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
85095         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
85096         no longer needed. Anyway, config.h should always be included before any
85097         other file.
85098
85099 2003-06-11  Simon Josefsson  <jas@extundo.com>
85100
85101         * modules/sysexits: New file.
85102         * MODULES.html.sh (func_all_modules): Add sysexits.
85103
85104 2003-06-11  Simon Josefsson  <jas@extundo.com>
85105
85106         * lib/sysexit_.h: New file.
85107
85108 2003-06-11  Derek Price  <derek@ximbiot.com>
85109
85110         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
85111         necessary.
85112
85113 2003-06-11  Bruno Haible  <bruno@clisp.org>
85114
85115         * m4/sysexits.m4: New file.
85116
85117 2003-06-10  Simon Josefsson  <jas@extundo.com>
85118
85119         * lib/argp.h: New file, from glibc.
85120         * lib/argp-ba.c: New file, from glibc.
85121         * lib/argp-eexst.c: New file, from glibc.
85122         * lib/argp-fmtstream.c: New file, from glibc.
85123         * lib/argp-fmtstream.h: New file, from glibc.
85124         * lib/argp-fs-xinl.c: New file, from glibc.
85125         * lib/argp-help.c: New file, from glibc.
85126         * lib/argp-namefrob.h: New file, from glibc.
85127         * lib/argp-parse.c: New file, from glibc.
85128         * lib/argp-pv.c: New file, from glibc.
85129         * lib/argp-pvh.c: New file, from glibc.
85130         * lib/argp-xinl.c: New file, from glibc.
85131
85132 2003-06-10  Simon Josefsson  <jas@extundo.com>
85133
85134         * modules/strchrnul: New file.
85135
85136 2003-06-10  Simon Josefsson  <jas@extundo.com>
85137
85138         * modules/argp: New file.
85139
85140 2003-06-10  Simon Josefsson  <jas@extundo.com>
85141
85142         * m4/strchrnul.m4: New file.
85143
85144 2003-06-10  Simon Josefsson  <jas@extundo.com>
85145
85146         * lib/strchrnul.h: New file.
85147         * lib/strchrnul.c: New file.
85148
85149 2003-06-10  Bruno Haible  <bruno@clisp.org>
85150
85151         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
85152
85153 2003-06-07  Karl Berry  <karl@gnu.org>
85154
85155         * config/config.{guess,sub}: update from prep.
85156
85157 2003-06-07  Jim Meyering  <jim@meyering.net>
85158
85159         * modules/strtod: Use $(...) notation, not @...@ for
85160         AC_REPLACE'd variables.
85161         * modules/localcharset: Likewise.
85162
85163 2003-06-07  Jim Meyering  <jim@meyering.net>
85164
85165         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
85166         in place of my name in the copyright comment.
85167         Remove definition and uses of __P.
85168
85169         From coreutils.
85170         * lib/stat.c: Don't declare xmalloc explicitly.
85171         Instead, include "xalloc.h".
85172         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
85173         xrealloc, and xcalloc return values.
85174         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
85175         Improve comment.
85176         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
85177
85178 2003-06-07  Bruno Haible  <bruno@clisp.org>
85179
85180         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
85181         avoid AC_CONFIG_LINKS.
85182         * modules/fnmatch (Makefile.am): Use explicit creation rule for
85183         fnmatch.h, to avoid AC_CONFIG_LINKS.
85184         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
85185
85186 2003-06-07  Bruno Haible  <bruno@clisp.org>
85187
85188         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
85189         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
85190         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85191         directory.
85192         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
85193         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85194         directory.
85195
85196 2003-06-06  Jim Meyering  <jim@meyering.net>
85197
85198         Merge from coreutils.
85199         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
85200         Consolidate declarations and initializations of *_base* locals.
85201
85202         Merge from coreutils.
85203         This avoids a core dump on systems without GNU putenv,
85204         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
85205         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
85206         (unsetenv): New static function, from GNU libc.
85207         (rpl_putenv): Use it.
85208
85209         * lib/modechange.c: Remove trailing blanks.
85210
85211         Merge from coreutils.
85212         * lib/fsusage.c: Remove declaration of statfs.
85213         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
85214
85215         * lib/posixtm.c: Include <stdbool.h> unconditionally.
85216
85217 2003-06-06  Jim Meyering  <jim@meyering.net>
85218
85219         * lib/stdbool_.h: Renamed from stdbool.h.in.
85220
85221 2003-06-06  Jim Meyering  <jim@meyering.net>
85222             Bruno Haible  <bruno@clisp.org>
85223
85224         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
85225         Adjust Makefile.am snippet not to redirect directly to target.
85226         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
85227
85228 2003-06-05  Paul Eggert  <eggert@twinsun.com>
85229
85230         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
85231         mismatch, look in future quarters as well as past.  This fixes a
85232         bug when processing fall-backwards gaps immediately after a long
85233         period of daylight-saving time.
85234
85235         * lib/mktime.c: Assume freestanding C89 or better.
85236         (HAVE_LIMITS_H): Remove.  Assume it's 1.
85237         (__P): Remove; not used.
85238         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
85239         (mktime, not_equal_tm, print_tm, check_result,
85240         main): Use prototypes.  Use const * where appropriate.
85241         (main): Fix typo in testing code that uncovered by above changes.
85242         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
85243
85244 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85245
85246         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
85247         locale.h, localeconv.  This merges changes from coreutils.
85248
85249         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
85250         It can be removed after the next Autoconf is released.
85251         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
85252         needed.
85253
85254 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85255
85256         * lib/mktime.c: Fix Debian bug 177940
85257         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
85258         (localtime_offset): Now long int, not time_t, because we want it
85259         to be guaranteed to be signed.  All uses changed.
85260         (__mktime_internal): If overflow would occur when adding offset,
85261         don't add it.
85262
85263         Merge 'human' changes from coreutils.  Rewrite to support
85264         locale-specific notations like thousands separators.
85265         * lib/human.c: Simplify authorship notice.
85266         Include human.h immediately after config.h.
85267         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
85268         <limits.h>: Do not include, since human.h does.
85269         (SIZE_MAX, UINTMAX_MAX): New macros.
85270         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
85271         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
85272         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
85273         (power_letter): Renamed from suffixes.
85274         (generate_suffix_backwards): Remove.
85275         (adjust_value): Now takes int style (because of human.h changes)
85276         and long double value (for greater precision on some platforms).
85277         (group_number): New function.
85278         (human_readable): Use it.  Use integer options, not enum.
85279         Put the options before the sizes in the arg list.
85280         Support all the new options.
85281         The old human_readable function has been removed;
85282         use inttostr.h instead.
85283         (human_readable, default_block_size, humblock):
85284         Use uintmax_t, not int, for block sizes.
85285         (human_readable_inexact, block_size_types): Remove.
85286         (block_size_opts): New constant.
85287         (human_options): Renamed from human_block_size, with new signature
85288         that allows block sizes up to UINTMAX_MAX.  All callers changed.
85289         * lib/human.h: Add copyright and authorship notice.
85290         Include <limits.h> and <stdbool.h> unconditionally.
85291         (PARAMS): Remove.  All uses removed.
85292         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
85293         (enum human_inexact_style): Remove tag; now a nameless enum.
85294         (human_floor, human_ceiling, human_round_to_even): Now have
85295         values 2, 0, 1 rather than -1, 1, 0.
85296         (human_group_digits, human_suppress_point_zero, human_autoscale,
85297         human_base_1024, human_SI, human_B): New constants.
85298         (human_readable_inexact, human_block_size): Remove.
85299         (human_readable): Size args are now uintmax_t, not int.
85300         (human_options): New decl.
85301
85302         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
85303         unnecessary now that we assume C89 or better.  This change
85304         imported from coreutils.
85305
85306         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85307         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
85308         in the 2003-05-30 sync from glibc.
85309
85310         .h files should stand alone, but we shouldn't include <sys/types.h>
85311         if we can get away with just <stddef.h>.
85312
85313         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
85314         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
85315         rather than <sys/types.h>, as we merely need size_t.
85316         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
85317         to get size_t.
85318         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
85319         Include <stdio.h>, to get FILE.
85320         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
85321         memcasecmp.h has included <stddef.h> and all we need is size_t.
85322         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
85323         our interface, instead of including <sys/types.h>
85324
85325 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85326
85327         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
85328         now, as glibc mktime is buggy on non-glibc systems.
85329
85330 2003-06-03  Karl Berry  <karl@gnu.org>
85331
85332         * config/config.sub: update from prep.
85333
85334 2003-06-02  Paul Eggert  <eggert@twinsun.com>
85335
85336         [from coreutils]
85337         Fix some minor time-related bugs with POSIX time arguments.
85338         Some valid time stamps were being rejected (notably -1, and
85339         time stamps before 1900 on 64-bit hosts).  And some invalid
85340         time stamps were being accepted, e.g. September 31.
85341
85342         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
85343         that we can return (time_t) -1 successfully.
85344         * lib/posixtm.c: Likewise.
85345         [HAVE_STDBOOL_H]: Include <stdbool.h>.
85346         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
85347         (t): Remove static var.
85348         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
85349         of static var.  All uses changed.
85350         (year): Do not reject years before 1900; they can occur with
85351         64-bit time_t.
85352         (posix_time_parse): Do not check for out-of-range components;
85353         that is now the caller's responsibility, since our checks were
85354         only approximations.
85355         (posixtime): Use mktime to check for out-of-range components,
85356         since it knows them exactly.
85357         If mktime returns (time_t) -1, check whether an error actually occurred
85358         by invoking localtime on -1.
85359         (main) [TEST_POSIXTIME]: Check for input data errors, and report
85360         posixtime failures better.
85361         Improve the test data (in comments only).
85362
85363 2003-06-02  Karl Berry  <karl@gnu.org>
85364
85365         * config/mkinstalldirs (version): new variable.
85366         (--version): new option.
85367         (usage): improve message.
85368
85369 2003-05-30  Karl Berry  <karl@gnu.org>
85370
85371         * lib/mktime.c: update from libc.
85372
85373 2003-05-30  Bruno Haible  <bruno@clisp.org>
85374
85375         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
85376         * config/config.rpath: Upgrade to gettext-0.12.1.
85377
85378 2003-05-30  Bruno Haible  <bruno@clisp.org>
85379
85380         * m4/gettext.m4: Upgrade to gettext-0.12.1.
85381         * m4/nls.m4: New file, from gettext-0.12.1.
85382         * m4/po.m4: New file, from gettext-0.12.1.
85383         * m4/progtest.m4: Upgrade to gettext-0.12.1.
85384
85385 2003-05-30  Bruno Haible  <bruno@clisp.org>
85386
85387         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
85388         * lib/localcharset.h: Likewise.
85389         * lib/localcharset.c: Likewise.
85390
85391 2003-05-29  Karl Berry  <karl@gnu.org>
85392
85393         * config/config.rpath: update from gettext.
85394
85395 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85396
85397         Assume the headers required for C89 freestanding compilers.
85398         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
85399         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
85400         * m4/human.m4 (gl_HUMAN): Likewise.
85401         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
85402         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
85403         * m4/userspec.m4 (gl_USERSPEC): Likewise.
85404         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
85405         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
85406         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
85407
85408 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85409
85410         Assume the headers required for C89 freestanding compilers.
85411         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
85412         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
85413         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
85414         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
85415         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
85416         define, since <limits.h> is guaranteed to do that.
85417         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
85418         * lib/exclude.c: Include <stdbool.h> unconditionally.
85419         * lib/tempname.c: Include <stddef.h> unconditionally.
85420         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
85421         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
85422         <stddef.h> does that.
85423         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
85424         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
85425         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
85426         needed.
85427         * lib/xstrtol.c: Likewise.
85428         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
85429         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
85430
85431         * lib/addext.c (addext): Use assignment rather than cast, to avoid
85432         warnings on some platforms.
85433
85434         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85435         arbitrarily.
85436
85437 2003-05-26  Jim Meyering  <jim@meyering.net>
85438
85439         Merge in a change from coreutils:
85440         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
85441         that is guaranteed to be `no'.  Use `no_such_member' to indicate
85442         that condition, rather than `-1' which is slightly misleading.
85443         Change the name of the cache variable to have the gl_ prefix.
85444         Prompted by a patch from Richard Dawe for DJGPP.
85445
85446 2003-05-24  Karl Berry  <karl@gnu.org>
85447
85448         * config/config.guess: update from prep.
85449
85450 2003-05-22  Karl Berry  <karl@gnu.org>
85451
85452         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
85453
85454 2003-05-20  Karl Berry  <karl@gnu.org>
85455
85456         * config/config.guess: update from prep.
85457
85458 2003-05-18  Karl Berry  <karl@gnu.org>
85459
85460         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
85461         might actually be set by the user.
85462
85463         * config/depcomp, install-sh, mdate-sh: update from automake.
85464
85465 2003-05-17  Bruno Haible  <bruno@clisp.org>
85466
85467         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
85468         invalid expansion for AC_EGREP_CPP.
85469         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
85470         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
85471         Suggested by Akim Demaille <akim@epita.fr> in
85472         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
85473
85474 2003-05-12  Jim Meyering  <jim@meyering.net>
85475
85476         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
85477         the space-padded-by-default conversion specifiers, %e, %k, %l.
85478
85479 2003-05-12  Bruno Haible  <bruno@clisp.org>
85480
85481         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
85482         the string is longer than 4 KB.
85483
85484 2003-05-11  Karl Berry  <karl@gnu.org>
85485
85486         * config/config.{guess,sub}: update from prep.
85487
85488 2003-05-09  Bruno Haible  <bruno@clisp.org>
85489
85490         * modules/error: Add m4/strerror_r.m4 to file list.
85491
85492 2003-05-03  Bruno Haible  <bruno@clisp.org>
85493
85494         Upgrade to Unicode-4.0.
85495         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
85496         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
85497         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
85498         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
85499         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
85500         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
85501         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
85502         Change width of U+E0100..U+E01EF from 1 to 0.
85503
85504 2003-04-25  Jim Meyering  <jim@meyering.net>
85505
85506         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
85507         of type size_t, not int.
85508
85509 2003-04-25  Bruno Haible  <bruno@clisp.org>
85510
85511         * lib/copy-file.c: Include <stddef.h>, for size_t.
85512
85513 2003-04-21  Paul Eggert  <eggert@twinsun.com>
85514
85515         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
85516         code which expansion is under static control.  Patch imported from
85517         Akim Demaille's patch to Bison; see
85518         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
85519
85520 2003-04-14  Bruno Haible  <bruno@clisp.org>
85521
85522         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
85523
85524 2003-04-11  Jim Meyering  <jim@meyering.net>
85525
85526         Merge changes from Coreutils.
85527
85528         2003-03-22  Jim Meyering  <jim@meyering.net>
85529
85530         * lib/strftime.c (widen): Cast alloca return value to proper type.
85531
85532         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
85533
85534         From GNU libc.
85535         * lib/strftime.c (my_strftime): Handle very large width
85536         specifications for numeric values correctly.  Improve checks for
85537         overflow.
85538
85539         2003-01-19  Jim Meyering  <jim@meyering.net>
85540
85541         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
85542         definitions.
85543         (nl_get_alt_digit) [! defined my_strftime]: Define.
85544         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
85545         _nl_get_alt_digit and _nl_get_walt_digit.
85546
85547         * lib/strftime.c (my_strftime): Merge in locale-related changes from
85548         libc. These changes have no effect outside of _LIBC.
85549
85550 2003-04-10  Bruno Haible  <bruno@clisp.org>
85551
85552         * modules/findprog: New file.
85553         * MODULES.html.sh (func_all_modules): Add it.
85554
85555 2003-04-10  Bruno Haible  <bruno@clisp.org>
85556
85557         * m4/findprog.m4: New file.
85558         * m4/eaccess.m4: New file.
85559
85560 2003-04-10  Bruno Haible  <bruno@clisp.org>
85561
85562         * lib/findprog.h: New file, from GNU gettext.
85563         * lib/findprog.c: New file, from GNU gettext.
85564
85565 2003-04-05  Jim Meyering  <jim@meyering.net>
85566
85567         Merge changes from Coreutils.
85568
85569         * lib/exclude.h (PARAMS): Remove definition and uses.
85570         * lib/exclude.c: Remove uses of `PARAMS'.
85571
85572         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
85573         Add test-cases for DOS filenames. Declare program_name.
85574         (main): Set up program_name.  Patch by Rich Dawe.
85575
85576         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85577         error from mntctl.
85578         Use mntctl's return value to drive the entry-processing loop, since
85579         we can't rely on the value of the vmt_length member in the last
85580         entry.  On some systems doing so could result in exhausting
85581         virtual memory.  Based in part on a patch from Mike Jetzer.
85582
85583 2003-04-04  Bruno Haible  <bruno@clisp.org>
85584
85585         * modules/linebreak: New file.
85586         * MODULES.html.sh (func_all_modules): Add it.
85587
85588 2003-04-04  Bruno Haible  <bruno@clisp.org>
85589
85590         * m4/linebreak.m4: New file.
85591
85592 2003-04-04  Bruno Haible  <bruno@clisp.org>
85593
85594         * lib/linebreak.h: New file, from GNU gettext.
85595         * lib/linebreak.c: New file, from GNU gettext with slight
85596         modifications.
85597         * lib/lbrkprop.h: New file, from GNU gettext.
85598
85599 2003-04-03  Bruno Haible  <bruno@clisp.org>
85600
85601         * modules/utf8-ucs4: New file.
85602         * modules/utf16-ucs4: New file.
85603         * modules/ucs4-utf8: New file.
85604         * modules/ucs4-utf16: New file.
85605         * MODULES.html.sh (func_all_modules): Add them.
85606
85607 2003-04-03  Bruno Haible  <bruno@clisp.org>
85608
85609         * m4/utf-ucs4.m4: New file.
85610         * m4/ucs4-utf.m4: New file.
85611
85612 2003-04-03  Bruno Haible  <bruno@clisp.org>
85613
85614         * lib/utf8-ucs4.h: New file, from GNU gettext.
85615         * lib/utf16-ucs4.h: New file, from GNU gettext.
85616         * lib/ucs4-utf8.h: New file, from GNU gettext.
85617         * lib/ucs4-utf16.h: New file, from GNU gettext.
85618
85619 2003-04-02  Bruno Haible  <bruno@clisp.org>
85620
85621         * modules/binary-io: New file.
85622         * MODULES.html.sh (func_all_modules): Add it.
85623
85624 2003-04-02  Bruno Haible  <bruno@clisp.org>
85625
85626         * lib/binary-io.h: New file, from GNU gettext.
85627
85628 2003-04-01  Bruno Haible  <bruno@clisp.org>
85629
85630         * modules/pathname: New file.
85631         * MODULES.html.sh (func_all_modules): Add it.
85632
85633 2003-04-01  Bruno Haible  <bruno@clisp.org>
85634
85635         * lib/pathname.h: New file, from GNU gettext.
85636         * lib/concatpath.c: New file, from GNU gettext.
85637
85638 2003-03-30  Bruno Haible  <bruno@clisp.org>
85639
85640         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
85641
85642 2003-03-30  Bruno Haible  <bruno@clisp.org>
85643
85644         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
85645         function chown() doesn't exist.
85646
85647 2003-03-28  Bruno Haible  <bruno@clisp.org>
85648
85649         * modules/copy-file: New file.
85650         * MODULES.html.sh (func_all_modules): Add it.
85651
85652 2003-03-28  Bruno Haible  <bruno@clisp.org>
85653
85654         * m4/copy-file.m4: New file.
85655
85656 2003-03-28  Bruno Haible  <bruno@clisp.org>
85657
85658         * lib/copy-file.h: New file, from GNU gettext.
85659         * lib/copy-file.c: New file, from GNU gettext.
85660
85661 2003-03-18  Jim Meyering  <jim@meyering.net>
85662
85663         * lib/quote.c (quote_n): Fix typo in comment.
85664
85665 2003-03-18  Bruno Haible  <bruno@clisp.org>
85666
85667         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
85668         checking.
85669         * m4/onceonly_2_57.m4: Likewise.
85670
85671 2003-03-17  Bruno Haible  <bruno@clisp.org>
85672
85673         * m4/onceonly.m4: Require autoconf 2.54 or newer.
85674         (m4_quote): Remove macro.
85675         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
85676
85677 2003-03-14  Jim Meyering  <jim@meyering.net>
85678
85679         Merge changes from Coreutils.
85680         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
85681         to be const, in order to avoid warnings.
85682         (obstack_room): Likewise.
85683         (obstack_empty_p): Likewise.
85684
85685 2003-03-14  Bruno Haible  <bruno@clisp.org>
85686
85687         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
85688         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
85689
85690 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85691
85692         Merge changes from Bison.
85693         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
85694         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
85695         when compiling Bison 1.875's `bitset bset = obstack_alloc
85696         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
85697         * lib/hash.c: Include <stdbool.h> unconditionally.
85698
85699 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85700
85701         * m4/onceonly.m4 (m4_quote): New macro.
85702         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
85703         Quote AC_FOREACH variable-expansions properly.
85704
85705 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85706
85707         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
85708
85709 2003-03-09  Paul Eggert  <eggert@twinsun.com>
85710
85711         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
85712         Reported by Bruce Becker; see:
85713         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
85714
85715 2003-03-03  Paul Eggert  <eggert@twinsun.com>
85716             Bruno Haible  <bruno@clisp.org>
85717
85718         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
85719         Reported by John Hughes, see
85720         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
85721
85722 2003-02-20  Bruno Haible  <bruno@clisp.org>
85723
85724         * MODULES.html.sh (func_all_modules): Add poll.
85725
85726 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85727
85728         * modules/poll: New file.
85729
85730 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85731
85732         * lib/poll_.h: New file.
85733         * lib/poll.c: New file.
85734
85735 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85736
85737         * m4/poll.m4: New file.
85738
85739 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85740
85741         * modules/mathl: New file.
85742
85743 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85744
85745         * lib/mathl.h: New file.
85746         * lib/acosl.c: New file.
85747         * lib/asinl.c: New file.
85748         * lib/atanl.c: New file.
85749         * lib/ceill.c: New file.
85750         * lib/cosl.c: New file.
85751         * lib/expl.c: New file.
85752         * lib/floorl.c: New file.
85753         * lib/frexpl.c: New file.
85754         * lib/ldexpl.c: New file.
85755         * lib/logl.c: New file.
85756         * lib/sincosl.c: New file.
85757         * lib/sinl.c: New file.
85758         * lib/sqrtl.c: New file.
85759         * lib/tanl.c: New file.
85760         * lib/trigl.c: New file.
85761         * lib/trigl.h: New file.
85762
85763 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85764
85765         * m4/mathl.m4: New file.
85766
85767 2003-02-18  Bruno Haible  <bruno@clisp.org>
85768
85769         * MODULES.html.sh (func_all_modules): Add mathl.
85770
85771 2003-02-17  Bruno Haible  <bruno@clisp.org>
85772
85773         * modules/mkdtemp: New module.
85774         * MODULES.html.sh (func_all_modules): Add it.
85775
85776 2003-02-17  Bruno Haible  <bruno@clisp.org>
85777
85778         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
85779
85780 2003-02-17  Bruno Haible  <bruno@clisp.org>
85781
85782         * lib/mkdtemp.h: New file, from GNU gettext.
85783         * lib/mkdtemp.c: New file, from GNU gettext.
85784
85785 2003-02-02  Jim Meyering  <jim@meyering.net>
85786
85787         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
85788         e.g. glibc-2.2.93.
85789
85790 2003-01-31  Bruno Haible  <bruno@clisp.org>
85791
85792         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
85793         'rpl_rename'.
85794         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
85795         'rpl_strnlen'.
85796         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
85797         'rpl_strtod'.
85798         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
85799         'rpl_utime'.
85800
85801 2003-01-31  Bruno Haible  <bruno@clisp.org>
85802
85803         * lib/rename.c: #undef rename before defining rpl_rename.
85804         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
85805
85806 2003-01-30  Bruno Haible  <bruno@clisp.org>
85807
85808         * modules/vasnprintf, modules/vasprintf: New modules.
85809         * MODULES.html.sh (func_all_modules): Add them.
85810
85811 2003-01-30  Bruno Haible  <bruno@clisp.org>
85812
85813         * m4/signed.m4: New file, from GNU gettext.
85814         * m4/longdouble.m4: New file, from GNU gettext.
85815         * m4/wchar_t.m4: New file, from GNU gettext.
85816         * m4/wint_t.m4: New file, from GNU gettext.
85817         * m4/vasnprintf.m4: New file.
85818         * m4/vasprintf.m4: New file.
85819
85820 2003-01-30  Bruno Haible  <bruno@clisp.org>
85821
85822         * lib/printf-args.h: New file, from GNU gettext.
85823         * lib/printf-args.c: New file, from GNU gettext.
85824         * lib/printf-parse.h: New file, from GNU gettext.
85825         * lib/printf-parse.c: New file, from GNU gettext.
85826         * lib/vasnprintf.h: New file, from GNU gettext.
85827         * lib/vasnprintf.c: New file, from GNU gettext.
85828         * lib/asnprintf.c: New file, from GNU gettext.
85829         * lib/vasprintf.h: New file, from GNU gettext with modifications.
85830         * lib/vasprintf.c: New file, from GNU gettext.
85831         * lib/asprintf.c: New file, from GNU gettext.
85832
85833 2003-01-29  Bruno Haible  <bruno@clisp.org>
85834
85835         * modules/stpncpy: New module.
85836         * MODULES.html.sh (func_all_modules): Add it.
85837
85838 2003-01-29  Bruno Haible  <bruno@clisp.org>
85839
85840         * m4/stpncpy.m4: New file.
85841
85842 2003-01-29  Bruno Haible  <bruno@clisp.org>
85843
85844         * lib/stpncpy.h: New file, from GNU gettext with modifications.
85845         * lib/stpncpy.c: New file, from GNU gettext with modifications.
85846
85847 2003-01-28  Bruno Haible  <bruno@clisp.org>
85848
85849         * modules/c-ctype: New module.
85850         * MODULES.html.sh (func_all_modules): Add it.
85851
85852 2003-01-28  Bruno Haible  <bruno@clisp.org>
85853
85854         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
85855         Paul Eggert.
85856         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
85857         Paul Eggert.
85858
85859 2003-01-27  Bruno Haible  <bruno@clisp.org>
85860
85861         * modules/xsetenv: New module.
85862         * MODULES.html.sh (func_all_modules): Add it.
85863
85864 2003-01-27  Bruno Haible  <bruno@clisp.org>
85865
85866         * lib/xsetenv.h: New file, from GNU gettext.
85867         * lib/xsetenv.c: New file, from GNU gettext.
85868
85869 2003-01-23  Jim Meyering  <jim@meyering.net>
85870
85871         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
85872         from working on systems without dirfd (at least Irix and OSF1/Tru64).
85873
85874 2003-01-23  Bruno Haible  <bruno@clisp.org>
85875
85876         * modules/minmax: New module.
85877         * MODULES.html.sh (func_all_modules): Add it.
85878
85879 2003-01-23  Bruno Haible  <bruno@clisp.org>
85880
85881         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
85882         Eggert.
85883
85884 2003-01-22  Bruno Haible  <bruno@clisp.org>
85885
85886         * modules/exit: New module.
85887         * MODULES.html.sh (func_all_modules): Add it.
85888
85889 2003-01-22  Bruno Haible  <bruno@clisp.org>
85890
85891         * lib/exit.h: New file, from GNU gettext.
85892
85893 2003-01-19  Bruno Haible  <bruno@clisp.org>
85894
85895         * gnulib-tool: Recognize option --extract-maintainer.
85896         (func_get_maintainer): New function.
85897         * modules/*: Add Maintainer entry.
85898
85899 2003-01-16  Jim Meyering  <jim@meyering.net>
85900
85901         * m4/regex.m4: The `regex' struct is both input and output.
85902         Initialize it before each use.  Patch by Tim Waugh.
85903
85904 2003-01-16  Bruno Haible  <bruno@clisp.org>
85905
85906         * MODULES.html.sh: Add a table of contents. Add the module name as
85907         leftmost column. Add hyperlinks.
85908
85909 2003-01-15  Bruno Haible  <bruno@clisp.org>
85910
85911         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
85912
85913 2003-01-15  Bruno Haible  <bruno@clisp.org>
85914
85915         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
85916         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
85917         suffix.
85918
85919 2003-01-15  Bruno Haible  <bruno@clisp.org>
85920
85921         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
85922
85923 2003-01-15  Bruno Haible  <bruno@clisp.org>
85924
85925         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
85926         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
85927
85928 2003-01-14  Jim Meyering  <jim@meyering.net>
85929
85930         * lib/same.c (same_name): Tweak a comment.
85931
85932 2003-01-14  Bruno Haible  <bruno@clisp.org>
85933
85934         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
85935         when a string comparison is sufficient.
85936
85937 2003-01-14  Bruno Haible  <bruno@clisp.org>
85938
85939         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
85940         'unsigned int'.
85941
85942 2003-01-14  Bruno Haible  <bruno@clisp.org>
85943
85944         * lib/hash-pjw.c: Add comment about low quality of this function.
85945
85946 2003-01-13  Bruno Haible  <bruno@clisp.org>
85947
85948         * modules/stpcpy: Distribute lib/stpcpy.h.
85949         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
85950
85951 2003-01-13  Bruno Haible  <bruno@clisp.org>
85952
85953         * modules/*: Add a description.
85954         * modules/strpbrk: Fix Makefile.am snippet.
85955         * modules/strtoimax: Fix dependencies.
85956         * modules/strtoumax: Likewise.
85957
85958 2003-01-13  Bruno Haible  <bruno@clisp.org>
85959
85960         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
85961         * modules/alloca (Makefile.am): All object files depend on alloca.h.
85962         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
85963
85964 2003-01-13  Bruno Haible  <bruno@clisp.org>
85965
85966         * gnulib-tool (func_create_testdir): Store config/* files in the main
85967         directory.
85968         * config.rpath: Move to ...
85969         * config/config.rpath: ... here.
85970         * modules/gettext: Contains config/config.rpath, not config.rpath.
85971         * modules/iconv: Likewise.
85972
85973 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85974
85975         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85976         to avoid collisions with libcurses and libreadline.
85977
85978         * m4/getstr.m4: Remove.
85979         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
85980
85981 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85982
85983         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85984         to avoid collisions with libcurses and libreadline.
85985
85986         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
85987         * lib/getstr.h, getstr.c: Remove.
85988         * lib/getline.c: Include "getline.h", to check interface.
85989         Move body of old getstr.c here: this defines MIN_CHUNK and
85990         declares getdelim2, which is renamed from getstr.
85991         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
85992
85993         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
85994         All uses changed.
85995         * lib/linebuffer.h: Likewise.
85996         (readline): Remove backward-compatibility macro.
85997
85998 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85999
86000         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86001         to avoid collisions with libcurses and libreadline.
86002         * getstr: Remove.
86003         * MODULES.html.sh: Remove getstr.
86004         * modules/getline: Depend on unlocked-io, not getstr.
86005
86006 2003-01-12  Jim Meyering  <jim@meyering.net>
86007
86008         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
86009
86010 2003-01-10  Bruno Haible  <bruno@clisp.org>
86011
86012         * modules/alloca: Change Makefile.am requirements. Simplify Include
86013         requirements. Add lib/alloca_.h to file list.
86014
86015 2003-01-10  Bruno Haible  <bruno@clisp.org>
86016
86017         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
86018
86019 2003-01-10  Bruno Haible  <bruno@clisp.org>
86020
86021         * lib/alloca_.h: New file.
86022         * lib/getdate.y: Unconditionally include alloca.h.
86023         * lib/makepath.c: Likewise.
86024         * lib/setenv.c: Likewise.
86025         * lib/userspec.c: Likewise.
86026
86027 2003-01-09  Karl Berry  <karl@gnu.org>
86028
86029         * MODULES.html.sh: include `dirname $0` in PATH, to find
86030         gnulib-tool.
86031
86032 2003-01-09  Bruno Haible  <bruno@clisp.org>
86033
86034         * modules/stdbool: Change configure.ac, Makefile.am requirements.
86035         Simplify Include requirements. Add lib/stdbool.h.in to file list.
86036
86037 2003-01-09  Bruno Haible  <bruno@clisp.org>
86038
86039         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
86040
86041 2003-01-09  Bruno Haible  <bruno@clisp.org>
86042
86043         * lib/stdbool.h.in: New file.
86044
86045 2003-01-09  Bruno Haible  <bruno@clisp.org>
86046
86047         * gnulib-tool (func_all_modules): Ignore files ending in ~.
86048         * MODULES.html.sh: Likewise.
86049
86050 2003-01-08  Jim Meyering  <jim@meyering.net>
86051
86052         * lib/full-write.c: Undefine and define-away `const' after inclusion
86053         of errno.h, not before.  Suggestion from Bruno Haible.
86054
86055 2003-01-08  Bruno Haible  <bruno@clisp.org>
86056
86057         * modules/full-read: Depend on full-write.
86058
86059 2003-01-08  Bruno Haible  <bruno@clisp.org>
86060
86061         * lib/safe-read.c: Include specification header first, to ensure its
86062         selfcontainedness.
86063         * lib/full-write.c: Likewise.
86064
86065 2003-01-07  Jim Meyering  <jim@meyering.net>
86066
86067         * lib/full-write.c: Rework so that it may serve to define full_read,
86068         too.
86069         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
86070
86071 2003-01-07  Bruno Haible  <bruno@clisp.org>
86072
86073         * lib/strtoimax.c: Include <stdint.h> as an alternative to
86074         <inttypes.h>.
86075         * lib/xstrtol.h: Likewise.
86076         * lib/xstrtoimax.c: Likewise.
86077         * lib/xstrtoumax.c: Likewise.
86078         * lib/human.h: Likewise.
86079
86080         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
86081         on systems that have <inttypes.h> but not <stdint.h>.
86082
86083 2003-01-07  Bruno Haible  <bruno@clisp.org>
86084
86085         * MODULES.html.sh: Add copyright notice.
86086         (missed_files): Omit CVS directory entries.
86087         (func_module): Make it work with sed-3.02.
86088         * MODULES.txt: Remove file.
86089
86090 2003-01-06  Jim Meyering  <jim@meyering.net>
86091
86092         * lib/version-etc.c: Update year in translatable copyright string.
86093
86094 2003-01-03  Karl Berry  <karl@gnu.org>
86095
86096         * config/config.{guess,sub}: update from prep.
86097
86098 2003-01-02  Karl Berry  <karl@gnu.org>
86099
86100         * doc/COPYING.DOC: belatedly updated to 1.2.
86101
86102 2003-01-01  Karl Berry  <karl@gnu.org>
86103
86104         * gnulib-tool (func_verify_module): report module name $module in
86105         error message, not $1.
86106         * gnulib-tool (create-testdir): don't complain if destdir couldn't
86107         be created, only if it doesn't exist.
86108         * gnulib-tool (last_checkin_date): don't expand the $Date here.
86109
86110 2002-12-31  Paul Eggert  <eggert@twinsun.com>
86111
86112         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
86113
86114 2002-12-31  Paul Eggert  <eggert@twinsun.com>
86115
86116         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
86117         memcmp if strcoll doesn't work.
86118
86119 2002-12-31  Bruno Haible  <bruno@clisp.org>
86120
86121         * lib/utime.c (utime_null): No need to call ftruncate if the file was
86122         nonempty.
86123
86124 2002-12-31  Bruno Haible  <bruno@clisp.org>
86125
86126         * lib/memcoll.c (STRCOLL): New macro.
86127         (memcoll): Use it.
86128
86129 2002-12-31  Bruno Haible  <bruno@clisp.org>
86130
86131         * lib/localcharset.h: New file.
86132         * lib/localcharset.c: Include it.
86133         * lib/unicodeio.c: Likewise.
86134
86135 2002-12-31  Bruno Haible  <bruno@clisp.org>
86136
86137         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
86138         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
86139
86140 2002-12-31  Bruno Haible  <bruno@clisp.org>
86141
86142         * lib/getline.h: Include <stddef.h>, for size_t.
86143
86144         * lib/unicodeio.h: Include <stddef.h>, for size_t.
86145         * lib/unicodeio.c: Don't include <stddef.h>.
86146
86147 2002-12-31  Bruno Haible  <bruno@clisp.org>
86148
86149         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
86150         HAVE_TM_ZONE.
86151
86152 2002-12-24  Karl Berry  <karl@gnu.org>
86153
86154         * config/config.guess: update from prep.
86155
86156 2002-12-24  Bruno Haible  <bruno@clisp.org>
86157
86158         General infrasructure.
86159         * m4/README: Rewritten.
86160         * m4/onceonly.m4: New file.
86161         * m4/onceonly_2_57.m4: New file.
86162
86163         Module atexit.
86164         * m4/atexit.m4: New file.
86165
86166         Module strtod.
86167         * m4/strtod.m4: New file.
86168
86169         Module strtol.
86170         * m4/strtol.m4: New file.
86171
86172         Module strtoul.
86173         * m4/strtoul.m4: New file.
86174
86175         Module memchr.
86176         * m4/memchr.m4: New file.
86177
86178         Module memcmp.
86179         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
86180         (jm_FUNC_MEMCMP): Invoke it.
86181
86182         Module memcpy.
86183         * m4/memcpy.m4: New file.
86184
86185         Module memmove.
86186         * m4/memmove.m4: New file.
86187
86188         Module memset.
86189         * m4/memset.m4: New file.
86190
86191         Module strcspn.
86192         * m4/strcspn.m4: New file.
86193
86194         Module strpbrk.
86195         * m4/strpbrk.m4: New file.
86196
86197         Module strstr.
86198         * m4/strstr.m4: New file.
86199
86200         Module strerror.
86201         * m4/strerror.m4: New file.
86202
86203         Module mktime.
86204         * m4/mktime.m4: Renamed from jm-mktime.m4.
86205         (gl_PREREQ_MKTIME): New macro.
86206         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
86207
86208         Module malloc.
86209         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
86210         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
86211         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
86212
86213         Module realloc.
86214         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
86215         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
86216         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
86217
86218         Module strftime.
86219         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
86220         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
86221         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
86222         gl_TM_GMTOFF.
86223         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
86224
86225         Module xalloc.
86226         * m4/xalloc.m4: New file.
86227
86228         Module alloca.
86229         * m4/alloca.m4: New file.
86230
86231         Module putenv.
86232         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
86233         (jm_FUNC_PUTENV): Invoke it.
86234
86235         Module setenv.
86236         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
86237         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
86238         when invoked twice.
86239         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
86240         gt_FUNC_SETENV.
86241
86242         Module memrchr.
86243         * m4/memrchr.m4: New file.
86244
86245         Module stpcpy.
86246         * m4/stpcpy.m4: New file.
86247
86248         Module strcase.
86249         * m4/strcase.m4: New file.
86250
86251         Module strdup.
86252         * m4/strdup.m4: New file.
86253
86254         Module strnlen.
86255         * m4/strnlen.m4: New file.
86256
86257         Module strndup.
86258         * m4/strndup.m4: New file.
86259
86260         Module xstrtod.
86261         * m4/xstrtod.m4: New file.
86262
86263         Module xstrtol.
86264         * m4/xstrtol.m4: New file.
86265
86266         Module getdate.
86267         * m4/getdate.m4: New file.
86268
86269         Module unlocked-io.
86270         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
86271         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
86272         * m4/jm-glibc-io.m4n: Remove file.
86273
86274         Module long-options.
86275         * m4/long-options.m4: New file.
86276
86277         Module md5.
86278         * m4/md5.m4: New file.
86279
86280         Module sha.
86281         * m4/sha.m4: New file.
86282
86283         Module getstr.
86284         * m4/getstr.m4: New file.
86285
86286         Module getline.
86287         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
86288         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
86289         <sys/types.h>, for size_t. Use the function name gnu_getline, not
86290         simply getline. Infoke gl_PREREQ_GETLINE.
86291
86292         Module obstack.
86293         * m4/obstack.m4: New file.
86294
86295         Module hash.
86296         * m4/hash.m4: New file.
86297
86298         Module readtokens.
86299         * m4/readtokens.m4: New file.
86300
86301         Module strverscmp.
86302         * m4/strverscmp.m4: New file.
86303
86304         Module stdbool.
86305         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
86306         OSF/1.
86307
86308         Module strtoll.
86309         * m4/strtoll.m4: New file.
86310
86311         Module strtoull.
86312         * m4/strtoull.m4: New file.
86313
86314         Module strtoimax.
86315         * m4/strtoimax.m4: New file.
86316
86317         Module strtoumax.
86318         * m4/strtoumax.m4: New file.
86319
86320         Module xstrtoimax.
86321         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
86322         jm_AC_PREREQ_XSTRTOIMAX.
86323         Moved the strtol prerequisites to strtol.m4.
86324         Moved the strtoll prerequisites to strtoll.m4.
86325         Moved the strtoimax prerequisites to strtoimax.m4.
86326
86327         Module xstrtoumax.
86328         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
86329         jm_AC_PREREQ_XSTRTOUMAX.
86330         Moved the strtoul prerequisites to strtoul.m4.
86331         Moved the strtoull prerequisites to strtoull.m4.
86332         Moved the strtoumax prerequisites to strtoumax.m4.
86333
86334         Module chown.
86335         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
86336         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
86337
86338         Module dup2.
86339         * m4/dup2.m4: New file.
86340
86341         Module ftruncate.
86342         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
86343         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
86344
86345         Module getgroups.
86346         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
86347         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
86348
86349         Module gettimeofday.
86350         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
86351         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
86352         gl_PREREQ_GETTIMEOFDAY.
86353
86354         Module mkdir.
86355         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
86356         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
86357
86358         Module mkstemp.
86359         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
86360         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
86361         jm_AC_TYPE_UINTMAX_T.
86362         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
86363
86364         Module stat.
86365         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
86366         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
86367
86368         Module lstat.
86369         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
86370         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
86371
86372         Module timespec.
86373         * m4/timespec.m4 (gl_TIMESPEC): New macro.
86374         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
86375         * m4/st_mtim.m4: Indentation.
86376
86377         Module nanosleep.
86378         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
86379         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
86380         gl_PREREQ_NANOSLEEP.
86381
86382         Module regex.
86383         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
86384         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
86385         (gl_REGEX): New macro.
86386
86387         Module rename.
86388         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
86389         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
86390
86391         Module rmdir.
86392         * m4/rmdir.m4: New file.
86393
86394         Module utime.
86395         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
86396         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
86397         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
86398
86399         Module dirname.
86400         * m4/dirname.m4: New file.
86401
86402         Module getopt.
86403         * m4/getopt.m4: New file.
86404
86405         Module unistd-safer.
86406         * m4/unistd-safer.m4: New file.
86407
86408         Module fnmatch.
86409         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
86410         declaration.
86411         (gl_PREREQ_FNMATCH_EXTRA): New macro.
86412         (gl_FUNC_FNMATCH_POSIX): New macro.
86413         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
86414         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
86415         simply fnmatch.
86416
86417         Module exclude.
86418         * m4/exclude.m4: New file.
86419
86420         Module human.
86421         * m4/human.m4: New file.
86422
86423         Module acl.
86424         * m4/acl.m4: Nop.
86425
86426         Module backupfile.
86427         * m4/backupfile.m4: New file.
86428         * m4/d-ino.m4: Indentation.
86429
86430         Module fsusage.
86431         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
86432         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
86433         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
86434
86435         Module dirfd.
86436         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
86437         requirements.
86438
86439         Module euidaccess.
86440         * m4/euidaccess.m4: New file.
86441
86442         Module file-type.
86443         * m4/file-type.m4: New file.
86444
86445         Module fileblocks.
86446         * m4/fileblocks.m4: New file.
86447
86448         Module filemode.
86449         * m4/filemode.m4: New file.
86450
86451         Module isdir.
86452         * m4/isdir.m4: New file.
86453
86454         Module lchown.
86455         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
86456         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
86457
86458         Module makepath.
86459         * m4/makepath.m4: New file.
86460
86461         Module modechange.
86462         * m4/modechange.m4: New file.
86463
86464         Module mountlist.
86465         * m4/mountlist.m4: New file.
86466         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
86467         Indentation.
86468
86469         Module path-concat.
86470         * m4/path-concat.m4: New file.
86471
86472         Module pathmax.
86473         * m4/pathmax.m4: New file.
86474
86475         Module same.
86476         * m4/same.m4: New file.
86477
86478         Module save-cwd.
86479         * m4/save-cwd.m4: New file.
86480
86481         Module savedir.
86482         * m4/savedir.m4: New file.
86483
86484         Module xgetcwd.
86485         * m4/xgetcwd.m4: New file.
86486         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
86487
86488         Module xreadlink.
86489         * m4/xreadlink.m4: New file.
86490
86491         Module safe-read.
86492         * m4/safe-read.m4: New file.
86493
86494         Module safe-write.
86495         * m4/safe-write.m4: New file.
86496
86497         Module closeout.
86498         * m4/closeout.m4: New file.
86499
86500         Module stdio-safer.
86501         * m4/stdio-safer.m4: New file.
86502
86503         Module getpass.
86504         * m4/getpass.m4: New file.
86505
86506         Module getugroups.
86507         * m4/getugroups.m4: New file.
86508
86509         Module group-member.
86510         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
86511         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
86512
86513         Module idcache.
86514         * m4/idcache.m4: New file.
86515
86516         Module userspec.
86517         * m4/userspec.m4: New file.
86518
86519         Module gettime.
86520         * m4/clock_time.m4: New file.
86521         * m4/gettime.m4: New file.
86522
86523         Module settime.
86524         * m4/settime.m4: New file.
86525
86526         Module posixtm.
86527         * m4/posixtm.m4: New file.
86528
86529         Module gethostname.
86530         * m4/gethostname.m4: New file.
86531
86532         Module canon-host.
86533         * m4/canon-host.m4: New file.
86534
86535         Module gettext.
86536         * m4/codeset.m4: New file, from gettext-0.11.5.
86537         * m4/gettext.m4: New file, from gettext-0.11.5.
86538         * m4/glibc21.m4: New file, from gettext-0.11.5.
86539         * m4/iconv.m4: New file, from gettext-0.11.5.
86540         * m4/intdiv0.m4: New file, from gettext-0.11.5.
86541         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
86542         * m4/inttypes.m4: New file, from gettext-0.11.5.
86543         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
86544         * m4/isc-posix.m4: New file, from gettext-0.11.5.
86545         * m4/lcmessage.m4: New file, from gettext-0.11.5.
86546         * m4/lib-ld.m4: New file, from gettext-0.11.5.
86547         * m4/lib-link.m4: New file, from gettext-0.11.5.
86548         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
86549         * m4/progtest.m4: New file, from gettext-0.11.5.
86550         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
86551         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
86552         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
86553
86554         Module localcharset.
86555         * m4/localcharset.m4: New file.
86556
86557         Module hard-locale.
86558         * m4/hard-locale.m4: New file.
86559
86560         Module mbswidth.
86561         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
86562         onceonly macros.
86563         * m4/mbrtowc.m4: Add comment.
86564
86565         Module memcasecmp.
86566         * m4/memcasecmp.m4: New file.
86567
86568         Module memcoll.
86569         * m4/memcoll.m4: New file.
86570
86571         Module unicodeio.
86572         * m4/unicodeio.m4: New file.
86573
86574         Module rpmatch.
86575         * m4/rpmatch.m4: New file.
86576
86577         Module yesno.
86578         * m4/yesno.m4: New file.
86579
86580         Module exitfail.
86581         * m4/exitfail.m4: New file.
86582
86583         Module c-stack.
86584         * m4/c-stack.m4 (gl_C_STACK): New macro.
86585         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
86586
86587         Module error.
86588         * m4/error.m4 (gl_ERROR): New macro.
86589         (jm_PREREQ_ERROR): Use onceonly macros.
86590
86591         Module fatal.
86592         * m4/fatal.m4: New file.
86593
86594         Module getloadavg.
86595         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
86596         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
86597
86598         Module getpagesize.
86599         * m4/getpagesize.m4: New file.
86600
86601         Module getusershell.
86602         * m4/getusershell.m4: New file.
86603
86604         Module physmem.
86605         * m4/physmem.m4: New file.
86606
86607         Module posixver.
86608         * m4/posixver.m4: New file.
86609
86610         Module quotearg.
86611         * m4/quotearg.m4: New file.
86612
86613         Module quote.
86614         * m4/quote.m4: New file.
86615
86616         Module readutmp.
86617         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
86618
86619         Module sig2str.
86620         * m4/sig2str.m4: New file.
86621
86622         Other.
86623         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
86624         ulonglong.m4.
86625         * m4/intmax_t.m4: New file.
86626         * m4/d-type.m4: Indentation.
86627         * m4/jm-macros.m4: Update.
86628         * m4/prereq.m4 (jm_PREREQ): Update.
86629         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
86630         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
86631         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
86632         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
86633         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
86634         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
86635         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
86636         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
86637         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
86638         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
86639         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
86640         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
86641         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
86642         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
86643         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
86644         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
86645         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
86646         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
86647         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
86648
86649 2002-12-24  Bruno Haible  <bruno@clisp.org>
86650
86651         * MODULES.txt: Update according to m4/ changes.
86652
86653         Module gettext.
86654         * config.rpath: New file, from gettext-0.11.5.
86655
86656         * modules/*: New module descriptions.
86657         * gnulib-tool: New file.
86658         * MODULES.html.sh: New file.
86659
86660 2002-12-21  Karl Berry  <karl@gnu.org>
86661
86662         * doc/fdl.texi: update to version 1.2.
86663
86664 2002-12-19  Karl Berry  <karl@gnu.org>
86665
86666         * config/config.guess: update from prep.
86667
86668 2002-12-18  Bruno Haible  <bruno@clisp.org>
86669
86670         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
86671         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
86672
86673 2002-12-17  Bruno Haible  <bruno@clisp.org>
86674
86675         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
86676         stdlib.h, string.h.
86677
86678 2002-12-17  Bruno Haible  <bruno@clisp.org>
86679
86680         * lib/canon-host.c (strdup): Remove unused declaration.
86681
86682         * lib/fsusage.c: Include full_read.h.
86683         (get_fs_usage): Use full_read instead of safe_read.
86684
86685         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
86686
86687 2002-12-12  Karl Berry  <karl@gnu.org>
86688
86689         * config/config.guess: update from prep.
86690
86691 2002-12-11  Bruno Haible  <bruno@clisp.org>
86692
86693         * m4/setenv.m4: New file, from gettext-0.11.5.
86694
86695 2002-12-11  Bruno Haible  <bruno@clisp.org>
86696
86697         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
86698         not unsetenv().
86699         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
86700         modifications:
86701
86702         2002-12-11  Bruno Haible  <bruno@clisp.org>
86703
86704                 * setenv.c (alloca): Fall back to malloc.
86705                 (freea): New macro.
86706                 (setenv): Use freea() to free memory allocated with alloca().
86707
86708         2002-11-13  Bruno Haible  <bruno@clisp.org>
86709
86710                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
86711                 function declarations.
86712                 * unsetenv.c (unsetenv): Likewise.
86713
86714         2002-03-04  Bruno Haible  <bruno@clisp.org>
86715
86716                 Portability to AIX 4.3.3.
86717                 * unsetenv.c: New file, extracted from setenv.c.
86718                 * setenv.c: Move the unsetenv() function to unsetenv.c.
86719
86720         2001-12-20  Bruno Haible  <bruno@clisp.org>
86721
86722                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
86723                 use malloc instead. For SunOS 4.
86724
86725         2001-12-11  Bruno Haible  <bruno@clisp.org>
86726
86727                 * setenv.c: Declare alloca.
86728                 (compar_fn_t): New typedef.
86729                 (KNOWN_VALUE, STORE_VALUE): Use it.
86730
86731         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
86732         setenv.h.
86733
86734 2002-12-10  Paul Eggert  <eggert@twinsun.com>
86735
86736         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
86737         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
86738         Choose values that are less likely to collide with system fnmatch
86739         options.
86740         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
86741         defined (e.g., a pure POSIX system).
86742         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
86743         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
86744
86745 2002-12-06  Paul Eggert  <eggert@twinsun.com>
86746
86747         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
86748         a pain in practice to deal with generated m4 files.  This change
86749         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
86750
86751         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
86752         and jm-glibc-io.m4, as they are no longer a special case.
86753         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
86754         kludge and the auto-generation stuff.  Check only whether the
86755         functions are declared, not whether they exist, since older hosts
86756         that don't declare the functions can't use the optimization anyway.
86757
86758 2002-12-06  Jim Meyering  <jim@meyering.net>
86759
86760         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
86761
86762         Merge in changes from libc's misc/error.c, in preparation
86763         for the merge of gnulib's changes back into libc.
86764
86765         * lib/error.c (_): Define only if not already defined.
86766         Move definition to follow all #include directives.
86767         Include unlocked-io.h only if !_LIBC.
86768         [_LIBC]: Include <libio/libioP.h>.
86769         [USE_IN_LIBIO]: Include <libio/iolibio.h>
86770         (fflush): Tweak definition to use INTUSE.
86771         (putc): Define.
86772
86773 2002-12-05  Paul Eggert  <eggert@twinsun.com>
86774
86775         * lib/alloca.c [defined emacs]: Include "lisp.h".
86776         (xalloc_die) [defined emacs]: New macro.
86777         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
86778         [! defined emacs]: Include <xalloc.h>.
86779         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
86780         (pointer): Typedef to POINTER_TYPE *.
86781         (malloc): Remove decl; we now always use xmalloc.
86782         (alloca): Use old-style definition, since Emacs needs this.
86783         Check for arithmetic overflow when computing combined size.
86784
86785 2002-12-04  Paul Eggert  <eggert@twinsun.com>
86786
86787         Do not generate unlocked-io.h automatically, since it's easier to
86788         maintain it by hand.
86789
86790         * lib/unlocked-io.h: New file, from GNU diffutils,
86791         but with proper copyright notice and attribution.
86792         * lib/gen-uio: Remove.
86793         * lib/Makefile.am: Add copyright notice.
86794         (libfetish_a_SOURCES): Add unlocked-io.h.
86795         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
86796         (DISTCLEANFILES, io_functions): Remove macros.
86797         (EXTRA_DIST): Remove gen_uio.
86798         (unlocked-io.h): Remove rule.
86799
86800 2002-12-04  Jim Meyering  <jim@meyering.net>
86801
86802         Reflect the fact that stat.c and lstat.c are no longer generated.
86803         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
86804         (DISTCLEANFILES): Likewise.
86805         (EXTRA_DIST): Likewise.
86806         (all_local): Don't depend on stat.c or lstat.c.
86807         (stat.c, lstat.c): Remove rules.
86808         (EXTRA_DIST): Remove xstat.in.
86809
86810         * lib/xstat.in: Remove file.  Contents moved into stat.c.
86811         * lib/stat.c: New file.  Contents mostly from xstat.in.
86812         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
86813         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
86814
86815         * lib/safe-read.c: Rework so that it may serve to define safe_write,
86816         too.
86817         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
86818
86819 2002-12-03  Jim Meyering  <jim@meyering.net>
86820
86821         * lib/safe-read.c, safe-write.c: Change variable names and comments,
86822         but not semantics, to minimize the differences between these two files.
86823         (safe_read): Change comment to mention SAFE_READ_ERROR.
86824
86825         * lib/safe-read.c (IS_EINTR): Define.
86826         (safe_read): Use IS_EINTR in place of in-function cpp directives.
86827
86828 2002-12-02  Jim Meyering  <jim@meyering.net>
86829
86830         * lib/safe-read.c (EINTR): Define.
86831         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86832         (INT_MAX): Provide fallback.
86833         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
86834
86835         * lib/safe-read.h (SAFE_READ_ERROR): Define.
86836
86837 2002-12-02  Bruno Haible  <bruno@clisp.org>
86838
86839         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
86840         Define, taken from safe-read.c.
86841         (INT_MAX): Provide fallback.
86842         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
86843         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
86844
86845         * lib/safe-read.c (EINTR): Remove definition.
86846         (safe_read): Don't use EINTR if it is absent.
86847
86848 2002-12-01  Jim Meyering  <jim@meyering.net>
86849
86850         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
86851         zero.
86852         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
86853
86854 2002-11-27  Paul Eggert  <eggert@twinsun.com>
86855
86856         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
86857         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
86858         with `if (! (value < limit)) abort ();', for readability.
86859
86860 2002-11-26  Karl Berry  <karl@gnu.org>
86861
86862         * lib/strdup.c: copy from libc again, with jim's ok.
86863         * lib/.cppi-disable: re-add strdup.c
86864
86865 2002-11-25  Karl Berry  <karl@gnu.org>
86866
86867         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
86868         instead of "strtol.c".
86869
86870 2002-11-25  Karl Berry  <karl@gnu.org>
86871
86872         * config/install-sh: update from automake for variable quoting, $0 in
86873         error msgs, etc.
86874
86875         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
86876         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
86877         entry.
86878
86879 2002-11-25  Jim Meyering  <jim@meyering.net>
86880
86881         * lib/mktime.c: Sync from libc, now that it has the latest fix.
86882
86883 2002-11-24  Karl Berry  <karl@gnu.org>
86884
86885         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
86886         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
86887
86888 2002-11-24  Jim Meyering  <jim@meyering.net>
86889
86890         Update from coreutils:
86891
86892         * lib/mktime.c: Merge in changes from libc.
86893
86894         Avoid a link-time failure on some Linux systems.
86895         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
86896         (otherwise).
86897         (__mon_yday): Declare with the STATIC attribute.
86898         (__mktime_internal): Likewise.
86899         Based on a report from Greg Schafer.
86900
86901 2002-11-23  Jim Meyering  <jim@meyering.net>
86902
86903         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
86904         Use `unsigned', not `int', as type of index.
86905
86906         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
86907
86908         * lib/fsusage.c: Remove unneeded parentheses around operands of
86909         `defined'.
86910
86911 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86912
86913         * lib/quotearg.h: Allow multiple inclusion by surrounding with
86914         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
86915         so that we can be included first.
86916         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
86917         * lib/quotearg.c: Include quotearg.h immediately after config.h.
86918         No need to include stddef.h or sys/types.h any more.
86919         Surround local include files with "", not "<>".
86920         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
86921         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
86922         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
86923         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
86924         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
86925         (ISPRINT): Remove; no longer needed now that we assume C89.
86926
86927         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
86928         Preserve errno.
86929
86930         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
86931         quotearg_char): Use SIZE_MAX rather than
86932         (size_t) -1 when we are talking about "infinity".
86933
86934         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
86935
86936 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86937
86938         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
86939         hint that one should use `if (! x) abort ();' rather than `assert
86940         (x);', and anyway it's one less thing to worry about configuring.
86941         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
86942         hash_rehash, hash_insert): Use abort rather than assert.
86943
86944 2002-11-22  Bruno Haible  <bruno@clisp.org>
86945
86946         * lib/safe-read.h: Assume C89. Add comments.
86947         (safe_read): Change return type to size_t.
86948         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
86949         byte counts > SSIZE_MAX correctly.
86950         * lib/safe-write.h: New file.
86951         * lib/safe-write.c: New file.
86952         * lib/full-read.h: New file.
86953         * lib/full-read.c: New file.
86954         * lib/full-write.h: Assume C89. Add comments.
86955         * lib/full-write.c: Include safe-write.h.
86956         (full_write): Rewritten to use safe_write.
86957         Suggested by Jim Meyering and Paul Eggert.
86958
86959 2002-11-21  Jim Meyering  <jim@meyering.net>
86960
86961         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
86962
86963         Merge in changes from the coreutils.
86964
86965         2002-09-25  Paul Eggert  <eggert@twinsun.com>
86966         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
86967         <stdint.h>.
86968         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
86969         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
86970         int.  Work more efficiently if X is the same width as uintmax_t.
86971         Do not compare X to -1, to avoid bogus compiler warning.
86972         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
86973         Don't assume that f_frsize and f_bsize are the same type.
86974
86975         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
86976         warning on FreeBSD.
86977
86978         * lib/makepath.c (make_path): Restore umask *before* creating the final
86979         component.
86980         (make_path): Minor reformatting.
86981
86982         * lib/xmalloc.c: Adjust to work with new autoconf macros,
86983         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
86984         HAVE_MALLOC/HAVE_REALLOC.
86985
86986         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
86987         dummy ones.  At least on GNU/Linux systems, `auto' means something
86988         else.
86989         From Michael Stone.
86990
86991 2002-11-21  Bruno Haible  <bruno@clisp.org>
86992
86993         Remove case insensitive option matching.
86994         * lib/argmatch.h (argcasematch): Remove declaration.
86995         (ARGCASEMATCH): Remove macro.
86996         (__xargmatch_internal): Remove case_sensitive argument.
86997         (XARGMATCH): Update.
86998         (XARGCASEMATCH): Remove macro.
86999         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
87000         case_sensitive argument.
87001         (argcasematch): Remove function.
87002         (__xargmatch_internal): Remove case_sensitive argument.
87003         (main): Use XARGMATCH instead of XARGCASEMATCH.
87004
87005         * lib/xmalloc.c: Change compile-time error message. Add comment about
87006         required autoconf version.
87007
87008 2002-11-20  Paul Eggert  <eggert@twinsun.com>
87009
87010         Merge argmatch cleanups from Bison.  Assume C89.
87011
87012         * lib/argmatch.c: Include config.h here, not in argmatch.h.
87013         Include stdlib.h, for EXIT_FAILURE.
87014         Always include <string.h>, since we assume C89.
87015         (EXIT_FAILURE): Remove pre-C89 bug workaround.
87016         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
87017         Include <stddef.h> instead, since it's all we need for size_t.
87018         (PARAMS): Remove.  All uses removed.
87019         (ARRAY_CARDINALITY): Do not bother to #undef.
87020         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
87021         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87022         Remove unnecessary parentheses.
87023         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87024         Insert necessary parentheses.
87025         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
87026         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
87027
87028 2002-11-19  Bruno Haible  <bruno@clisp.org>
87029
87030         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
87031         * lib/mbswidth.h: Include <stddef.h>, for size_t.
87032
87033         * lib/mbswidth.h (PARAMS): Remove macro.
87034         (mbswidth, mbsnwidth): Use ANSI C function declarations.
87035         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
87036
87037         * lib/gcd.h (PARAMS): Remove macro.
87038         (gcd): Use ANSI C function declarations.
87039         * lib/gcd.c (gcd): Likewise.
87040
87041 2002-11-15  Bruno Haible  <bruno@clisp.org>
87042
87043         * lib/strcspn.c: Include <stddef.h>.
87044         (strcspn): Use ANSI C function declaration. Change return type to
87045         size_t. Use NULL.
87046         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
87047         (strpbrk): Use NULL.
87048         * lib/strpbrk.h (PARAMS): Remove macro.
87049         (strpbrk): Use ANSI C function declaration.
87050         * lib/strstr.c: Don't include <sys/types.h>.
87051         * lib/strstr.h (PARAMS): Remove macro.
87052         (strstr): Use ANSI C function declarations.
87053
87054 2002-11-14  Karl Berry  <karl@gnu.org>
87055
87056         * config/mkinstalldirs: `do' on separate line, instead of
87057         `for var; do'.
87058
87059 2002-11-06  Bruno Haible  <bruno@clisp.org>
87060
87061         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
87062         * lib/gcd.c (gcd): Likewise.
87063
87064 2002-11-05  Bruno Haible  <bruno@clisp.org>
87065
87066         * lib/gcd.h: New file, from gettext-0.11.5.
87067         * lib/gcd.c: New file, from gettext-0.11.5.
87068
87069 2002-11-05  Bruno Haible  <bruno@clisp.org>
87070
87071         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87072         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87073         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87074         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87075
87076         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
87077         <libintl.h>.
87078         * lib/makepath.c: Include gettext.h instead of <locale.h> and
87079         <libintl.h>.
87080
87081         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
87082         * lib/human.c: Include gettext.h instead of <libintl.h>.
87083         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
87084         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
87085         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
87086         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
87087         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
87088         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
87089         (textdomain): Remove definition.
87090         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
87091
87092         * lib/long-options.c: Remove include of <libintl.h> and definition of
87093         _.
87094         * lib/same.c: Remove include of <libintl.h> and definition of _.
87095
87096 2002-11-04  Owen Taylor  <otaylor@redhat.com>
87097
87098         * lib/config.charset: A few additions for Solaris.
87099
87100 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
87101
87102         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
87103         * lib/localcharset.c (locale_charset): Declare as extern "C".
87104
87105 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
87106
87107         * lib/config.charset: msdos in uk_UA uses CP1125.
87108
87109 2002-11-04  Bruno Haible  <bruno@clisp.org>
87110
87111         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
87112         * lib/strcase.h: New file, from GNU gettext-0.11.5.
87113         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
87114         * lib/strstr.h: New file, from GNU gettext-0.11.5.
87115         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
87116
87117 2002-11-04  Bruno Haible  <bruno@clisp.org>
87118
87119         * lib/localcharset.c (locale_charset): Don't return an empty string.
87120
87121 2002-11-04  Bruno Haible  <bruno@clisp.org>
87122
87123         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
87124         aliases.
87125
87126 2002-11-04  Bruno Haible  <bruno@clisp.org>
87127
87128         * lib/config.charset: Update for newest glibc. Add canonical names
87129         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
87130
87131 2002-11-04  Bruno Haible  <bruno@clisp.org>
87132
87133         * lib/config.charset: Add support for NetBSD.
87134
87135 2002-11-04  Bruno Haible  <bruno@clisp.org>
87136
87137         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
87138
87139 2002-11-01  Bruno Haible  <bruno@clisp.org>
87140
87141         * configure.in: Add AC_CONFIG_AUX_DIR call.
87142         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
87143         test/Makefile.
87144         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
87145
87146 2002-09-28  Karl Berry  <karl@gnu.org>
87147
87148         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
87149         installed automake until the next release, since changes have been
87150         made.
87151
87152 2002-09-25  Karl Berry  <karl@gnu.org>
87153
87154         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
87155         * lib/getopt*: copy from libc/posix.
87156         * lib/gettext.h: copy from gettext.
87157         * lib/.cppi-disable: add strdup.c, gettext.h.
87158
87159 2002-09-25  Karl Berry  <karl@gnu.org>
87160
87161         * config/srclist.txt: enable gettext.h check.
87162         * config/config.{guess,sub}: update from prep.
87163         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
87164                 from automake 1.6.3.
87165         See srclist*.
87166
87167 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
87168
87169         * regex.c (PATFETCH): Remove the translating fetch.
87170         (PATFETCH_RAW): Rename to PATFETCH.
87171         (set_image_of_range): New fun.
87172         (SET_RANGE_TABLE_WORK_AREA): Use it.
87173         (regex_compile): Don't translate the pattern chars so eagerly.
87174         Only do it when inserting an `exactn' bytecode or when handling
87175         a char-range.
87176         (mutually_exclusive_p): Avoid empty statement.
87177
87178 2002-07-06  Jim Meyering  <meyering@lucent.com>
87179
87180         * m4/README: Don't mention Makefile.am.in.
87181         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
87182
87183 2002-07-01  Jim Meyering  <meyering@lucent.com>
87184
87185         * lib/c-stack.c: Include sys/time.h.
87186         From Volker Borchert.
87187
87188 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87189
87190         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
87191
87192 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87193
87194         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
87195         New macro.  Use it uniformly instead of
87196         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
87197         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
87198         reported by Vin Shelton.
87199
87200 2002-06-22  Paul Eggert  <eggert@twinsun.com>
87201
87202         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
87203         Do not assume SA_SIGINFO behavior.
87204         Bug reported by Jim Meyering on NetBSD 1.5.2.
87205
87206 2002-06-22  Jim Meyering  <meyering@lucent.com>
87207
87208         * m4/c-stack.m4: New file, from diffutils-2.8.2.
87209         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
87210
87211         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
87212         now that configure.ac uses AC_GNU_SOURCE.
87213         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
87214         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
87215
87216         Update to latest tools.  Suggestions from Paul Eggert.
87217         * m4/stdbool.m4: New file, from diffutils-2.8.2.
87218         * m4/gnu-source.m4: Update from diffutils-2.8.2.
87219         * m4/fnmatch.m4: Likewise.
87220         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
87221         to AC_HEADER_STDBOOL
87222
87223 2002-06-22  Jim Meyering  <meyering@lucent.com>
87224
87225         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
87226         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
87227
87228 2002-06-22  Jim Meyering  <meyering@lucent.com>
87229
87230         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
87231
87232         * lib/exitfail.c, exitfail.h: Likewise.
87233         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
87234
87235         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
87236         of fnmatch.h.
87237         (EXTRA_DIST): Add fnmatch_loop.c.
87238         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
87239
87240         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
87241         * lib/fnmatch.c: Update from diffutils-2.8.2.
87242         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
87243         * lib/fnmatch.h: Remove file.
87244
87245 2002-06-21  Jim Meyering  <meyering@lucent.com>
87246
87247         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
87248         * m4/mbrtowc.m4: Likewise.
87249
87250         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
87251         * m4/mbswidth.m4: Reflect name change:
87252         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
87253         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87254
87255         * m4/lib-link.m4: Update from gettext-0.11.2.
87256         * m4/gettext.m4: Likewise.
87257
87258         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
87259         From Alfred M. Szmidt.
87260
87261 2002-06-18  Paul Eggert  <eggert@twinsun.com>
87262
87263         * lib/file-type.h: Report an error if neither S_ISREG nor
87264         S_IFREG is defined, instead of using a test specific to glibc
87265         2.2.  This should be safe, since POSIX requires S_ISREG and
87266         Unix Version 7 had S_IFREG.  We don't need to check for
87267         <sys/types.h> since we don't use any symbols that it defines.
87268
87269 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
87270
87271         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
87272         $@-t, so that each temporary file name is unique and valid in the first
87273         8 characters, for operation under DOS.
87274
87275 2002-06-15  Paul Eggert  <eggert@twinsun.com>
87276
87277         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
87278
87279 2002-06-15  Jim Meyering  <meyering@lucent.com>
87280
87281         Work even with DJGPP 2.03, which lacks support for symlinks.
87282         From Richard Dawe.
87283         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
87284         is defined.
87285         * lib/lchown.c (S_ISLNK): Likewise.
87286
87287 2002-06-15  Jim Meyering  <meyering@lucent.com>
87288
87289         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
87290         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
87291         have been included before this file.
87292
87293 2002-06-14  Jim Meyering  <meyering@lucent.com>
87294
87295         * lib/file-type.h: Use the version from diffutils-2.8.2.
87296         * lib/file-type.c: Likewise.
87297
87298 2002-06-07  Jim Meyering  <meyering@lucent.com>
87299
87300         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
87301         They're needed at least for NetBSD 1.5.2.
87302         ($statxfs_includes): Include those same headers.
87303         ($statxfs_includes): Include sys/vfs.h if available.
87304         ($statxfs_includes): Likewise for sys/statvfs.h.
87305         Check for the following members in both structs statfs and statvfs:
87306         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
87307
87308 2002-06-01  Jim Meyering  <meyering@lucent.com>
87309
87310         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
87311         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
87312
87313 2002-05-28  Jim Meyering  <meyering@lucent.com>
87314
87315         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
87316         Reported by Volker Borchert.
87317
87318 2002-05-27  Jim Meyering  <meyering@lucent.com>
87319
87320         Fix a problem seen only on nonconforming systems whereby ls.c's
87321         use of localtime, and then of gettimeofday would cause trouble:
87322         the localtime call used to initialize rpl_gettimeofday's save
87323         mechanism would clobber ls's current local time information so
87324         that in any long listing the first file would always be listed
87325         with date 1970-01-01.  Analysis by Volker Borchert.
87326
87327         * lib/gettimeofday.c (localtime): Undefine.
87328         (rpl_localtime): New function.
87329
87330 2002-05-27  Jim Meyering  <meyering@lucent.com>
87331
87332         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
87333         localtime.
87334
87335         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
87336         use the replacement function; it wouldn't resolve at link time.
87337         Reported by Volker Borchert.
87338
87339 2002-05-22  Jim Meyering  <meyering@lucent.com>
87340
87341         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
87342         file-type.h.
87343         * lib/file-type.h: New file.
87344         * lib/file-type.c (file_type): New file/function.  Extracted from
87345         diffutils.
87346
87347 2002-04-30  Jim Meyering  <meyering@lucent.com>
87348
87349         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
87350
87351 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87352
87353         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
87354
87355 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87356
87357         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
87358         Do not check for alloca.h (no longer used) or stdbool.h (was never
87359         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
87360
87361 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87362
87363         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
87364
87365 2002-04-29  Jim Meyering  <meyering@lucent.com>
87366
87367         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
87368         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
87369         Use AC_FUNC_STRNLEN here instead.
87370
87371         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
87372         With autoconf-2.53a, it's part of AC_PROG_CC.
87373
87374 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87375
87376         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
87377         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
87378
87379 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87380
87381         * lib/sig2str.h, lib/sig2str.c: New files.
87382         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
87383
87384 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87385
87386         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
87387         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
87388         of 127, since 64 is the largest conceivable number for ancient
87389         nonstandard hosts.
87390         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
87391
87392 2002-04-28  Jim Meyering  <meyering@lucent.com>
87393
87394         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
87395
87396 2002-04-24  Jim Meyering  <meyering@lucent.com>
87397
87398         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
87399         (jm_PREREQ): Use it.
87400
87401         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
87402         mach/mach.h fcntl.h.
87403         Check for this function: setlocale.
87404
87405 2002-04-24  Jim Meyering  <meyering@lucent.com>
87406
87407         * lib/gettext.h: New file, from Gettext.
87408         * lib/Makefile.am (INCLUDES): Remove -I../intl.
87409         (libfetish_a_SOURCES): Add gettext.h.
87410
87411 2002-04-16  Jim Meyering  <meyering@lucent.com>
87412
87413         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
87414         ut_pid, ut_id, ut_exit.
87415
87416 2002-04-16  Jim Meyering  <meyering@lucent.com>
87417
87418         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
87419         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
87420         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
87421
87422 2002-04-12  Jim Meyering  <meyering@lucent.com>
87423
87424         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
87425         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
87426         existence of the getmntinfo function.  Needed for Darwin 5.3.
87427
87428         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
87429         This is necessary at least on Darwin 5.3.
87430
87431         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
87432         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
87433         strnlen.o in the library, and that makes some versions of ranlib
87434         object.
87435
87436 2002-04-12  Jim Meyering  <meyering@lucent.com>
87437
87438         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
87439
87440 2002-04-09  Jim Meyering  <meyering@lucent.com>
87441
87442         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
87443         to be more precise.  Rather than saying we're checking whether the
87444         function `works', say what we're testing.
87445         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
87446         Reported by Bruno Haible.
87447
87448 2002-03-10  Jim Meyering  <meyering@lucent.com>
87449
87450         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
87451         Suggestion from Santiago Vila.
87452
87453 2002-03-08  Jim Meyering  <meyering@lucent.com>
87454
87455         * lib/rename.c: Mention that this wrapper is needed also on
87456         mips-dec-ultrix4.4 systems.
87457
87458 2002-03-02  Jim Meyering  <meyering@lucent.com>
87459
87460         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
87461         not HAVE_CLOCK_SETTIME.
87462
87463 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87464
87465         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
87466         Check for clock_settime.
87467
87468 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87469
87470         * lib/nanosleep.h: Rename to....
87471         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
87472
87473         * lib/gettime.c: New file.
87474         * lib/settime.c: New file.
87475         * lib/stime.c: Remove.
87476
87477         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
87478         timespec.h.  Remove nanosleep.h.
87479
87480 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87481
87482         * m4/acl.m4: New file.
87483         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
87484         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
87485
87486 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87487
87488         * lib/acl.c, lib/acl.h: New files.
87489         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
87490
87491 2002-02-24  Jim Meyering  <meyering@lucent.com>
87492
87493         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
87494         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
87495         cause trouble.  Reported by Nelson Beebe.
87496
87497 2002-02-23  Paul Eggert  <eggert@twinsun.com>
87498
87499         * lib/path-concat.c (xpath_concat): Reorder code to pacify
87500         compilers that don't know that xalloc_die never returns.
87501
87502 2002-02-20  Jim Meyering  <meyering@lucent.com>
87503
87504         * lib/getdate.c: Regenerate using bison-1.33.
87505
87506 2002-02-17  Jim Meyering  <meyering@lucent.com>
87507
87508         * config/config.guess (main): Don't use `head -1'; it's no longer
87509         portable. Use `sed 1q' instead.
87510
87511 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
87512
87513         * m4/codeset.m4: Upgrade to gettext-0.11.
87514         * m4/gettext.m4: Upgrade to gettext-0.11.
87515         * m4/glibc21.m4: Upgrade to gettext-0.11.
87516         * m4/iconv.m4: Upgrade to gettext-0.11.
87517         * m4/isc-posix.m4: Upgrade to gettext-0.11.
87518         * m4/lcmessage.m4: Upgrade to gettext-0.11.
87519         * m4/lib-ld.m4: New file, from gettext-0.11.
87520         * m4/lib-link.m4: New file, from gettext-0.11.
87521         * m4/lib-prefix.m4: New file, from gettext-0.11.
87522         * m4/progtest.m4: Upgrade to gettext-0.11.
87523
87524 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87525
87526         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
87527         (jm_PREREQ): Use it.
87528
87529 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87530
87531         * lib/posixver.c, lib/posixver.h: New files.
87532         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87533
87534 2002-02-02  Paul Eggert  <eggert@twinsun.com>
87535             Bruno Haible  <bruno@clisp.org>
87536
87537         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
87538         (fwrite_success_callback): New declaration.
87539         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
87540         print_unicode_char. Call failure callback instead of error.
87541         (fwrite_success_callback): New function.
87542         (exit_failure_callback): New function.
87543         (fallback_failure_callback): New function.
87544         (print_unicode_char): Call unicode_to_mb.
87545
87546 2002-01-26  Jim Meyering  <meyering@lucent.com>
87547
87548         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
87549         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
87550
87551 2002-01-26  Jim Meyering  <meyering@lucent.com>
87552
87553         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
87554
87555 2002-01-22  Paul Eggert  <eggert@twinsun.com>
87556
87557         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
87558
87559 2002-01-22  Jim Meyering  <meyering@lucent.com>
87560
87561         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
87562         Otherwise, some versions of automake would omit the rule that makes
87563         Makefile from Makefile.in.
87564
87565 2002-01-21  Paul Eggert  <eggert@twinsun.com>
87566
87567         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
87568         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87569         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
87570         (memcoll): Set errno to zero if there is no error.
87571
87572         * lib/quotearg.c (quotearg_buffer_restyled):
87573         Fix bug with quoting buffers containing NUL when backslashing escapes.
87574         This bug was exposed by the other changes in this patch.
87575         (quotearg_n_options): New arg ARGSIZE.
87576         All callers changed.
87577         (quoting_options_from_style): New function.
87578         (quotearg_n_style): Use it.
87579         (quotearg_n_style_mem): New function.
87580
87581         * lib/quotearg.h (quotearg_n_style_mem): New function.
87582
87583 2002-01-19  Jim Meyering  <meyering@lucent.com>
87584
87585         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
87586         Remove useless quotes: DF_PROG="df".
87587         * m4/strnlen.m4: New file.
87588
87589 2002-01-16  Paul Eggert  <eggert@twinsun.com>
87590
87591         * lib/backupfile.c (ISDIGIT): Comment fix.
87592         * lib/getdate.y (ISDIGIT): Likewise.
87593         * lib/posixtm.c (ISDIGIT, year): Likewise.
87594         * lib/strverscmp.c (ISDIGIT): Likewise.
87595         * lib/userspec.c (ISDIGIT): Likewise.
87596
87597 2002-01-16  Jim Meyering  <meyering@lucent.com>
87598
87599         * lib/getdate.y: Add three semicolons, each just before a closing
87600         brace. Bison (as of version 1.31) no longer papers over that mistake.
87601
87602 2002-01-05  Jim Meyering  <meyering@lucent.com>
87603
87604         * lib/version-etc.c (version_etc_copyright): Update copyright year.
87605
87606 2001-12-19  Paul Eggert  <eggert@twinsun.com>
87607
87608         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
87609         not silently exit merely because the output buffer happens to
87610         have nothing pending.
87611
87612 2001-12-18  Paul Eggert  <eggert@twinsun.com>
87613
87614         See the big note in ../ChangeLog.
87615         * lib/human.c (suffixes): Prefer K to k for 1024.
87616         (generate_suffix_backwards): New function.
87617         (human_readable_inexact): Use it.
87618         * lib/xstrtol.c (__xstrtol): If there is no number but there
87619         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
87620         Accept 'K' as well as 'k'.
87621
87622 2001-12-15  Jim Meyering  <meyering@lucent.com>
87623
87624         * lib/regex.h (__restrict_arr): Update from libc.
87625
87626         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
87627         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
87628         (STREQ): Define.
87629
87630 2001-12-14  Jim Meyering  <meyering@lucent.com>
87631
87632         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
87633         Suggestion from Bruno Haible.
87634
87635 2001-12-10  Jim Meyering  <meyering@lucent.com>
87636
87637         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
87638         xrealloc, Instead, include "xalloc.h".
87639         (initbuffer): Don't cast xmalloc return value to char*.
87640         (readline): Reword comment.
87641         Don't cast xrealloc return value to char*
87642         Return NULL, not 0.
87643
87644 2001-12-09  Jim Meyering  <meyering@lucent.com>
87645
87646         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
87647         about `signed and unsigned type in conditional expression'.
87648         * lib/posixtm.c (posix_time_parse): Likewise.
87649
87650         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
87651
87652         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
87653         to avoid a pedantic warning.
87654
87655         * lib/getstr.c: Don't include assert.h.
87656         (getstr): Remove warning-evoking assertions.
87657         Return -1 if offset parameter is out of bounds.
87658         Change the type of a local from int to size_t.
87659
87660         * lib/strftime.c (my_strftime_localtime_r): Include this function
87661         definition in the `#if ! HAVE_TM_GMTOFF' block.
87662
87663         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
87664         Include xalloc.h instead.
87665
87666 2001-12-02  Jim Meyering  <meyering@lucent.com>
87667
87668         * lib/tempname.c: Don't declare getenv, thus reverting the change of
87669         2001-11-18.  It's no longer necessary, now that stdlib.h is always
87670         included.
87671
87672         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
87673         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
87674
87675 2001-11-30  Akim Demaille  <akim@epita.fr>
87676
87677         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
87678         before being defined.
87679
87680 2001-11-27  Paul Eggert  <eggert@twinsun.com>
87681
87682         * lib/quotearg.h (quotearg_n, quotearg_n_style):
87683         First arg is int, not unsigned.
87684         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
87685         (SIZE_MAX, UINT_MAX): New macros.
87686         (quotearg_n_options): Abort if N is negative.
87687         Avoid overflow check on hosts where size_t is 64 bits and int
87688         is 32 bits, as overflow is impossible there.
87689         Fix off-by-one typo that caused unnecessary reallocation.
87690
87691 2001-11-27  Jim Meyering  <meyering@lucent.com>
87692
87693         * lib/tempname.c: Merge with version from libc.
87694         * lib/regex.c: Likewise.
87695
87696         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
87697         systems for which STDC_HEADERS is 0, it was not included, resulting in
87698         a warning about an integer-to-pointer conversion problem with getenv.
87699         Reported by Volker Borchert.
87700
87701 2001-11-26  Jim Meyering  <meyering@lucent.com>
87702
87703         * lib/gtod.h: Remove file.
87704         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
87705         * lib/gettimeofday.c: Don't include gtod.h.
87706         (GTOD_init): Remove function.
87707         (rpl_gettimeofday): Do its job here instead, rather than aborting.
87708         Suggestion from Volker Borchert.
87709
87710 2001-11-23  Jim Meyering  <meyering@lucent.com>
87711
87712         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
87713         it.
87714         * lib/hash.c (struct hash_table): Define it here instead.
87715
87716 2001-11-22  Jim Meyering  <meyering@lucent.com>
87717
87718         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
87719
87720 2001-11-20  Jim Meyering  <meyering@lucent.com>
87721
87722         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
87723         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
87724
87725 2001-11-19  Jim Meyering  <meyering@lucent.com>
87726
87727         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
87728         directory.  Use "conftestXXXXXX" as the template.
87729         Suggestion from Paul Eggert.
87730
87731         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
87732         immediately, so the test doesn't mistakenly hit the max-open-files
87733         limit.
87734
87735 2001-11-18  Paul Eggert  <eggert@twinsun.com>
87736
87737         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
87738         (TEMPORARIES): New macro.
87739         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
87740         removes an artificial limitation (e.g. HP-UX 10.20, where
87741         TMP_MAX is 17576).
87742
87743 2001-11-18  Jim Meyering  <meyering@lucent.com>
87744
87745         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
87746
87747 2001-11-18  Jim Meyering  <meyering@lucent.com>
87748
87749         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
87750         on SunOS 4.
87751
87752         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
87753         files will be created before anything else.
87754
87755 2001-11-17  Paul Eggert  <eggert@twinsun.com>
87756
87757         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
87758         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
87759
87760 2001-11-17  Jim Meyering  <meyering@lucent.com>
87761
87762         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
87763         Prompted by a report from Bob Proulx.
87764
87765         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
87766         Instead, require UTILS_FUNC_MKSTEMP.
87767
87768 2001-11-17  Jim Meyering  <meyering@lucent.com>
87769
87770         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
87771         Now, that's done as part of AC_FUNC_STRTOD.
87772
87773 2001-11-17  Jim Meyering  <meyering@lucent.com>
87774
87775         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
87776         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
87777         rather than group writable.  Patch by Juan F. Codagnone.
87778
87779         * lib/readtokens.c: Remove explicit declarations of xmalloc and
87780         xrealloc, Instead, include "xalloc.h".
87781
87782         * lib/mountlist.c: Include unlocked-io.h after all system headers.
87783         Remove explicit declarations of xmalloc, xrealloc,
87784         and xstrdup.  Instead, include "xalloc.h".
87785
87786         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
87787         unlocked-io.h.
87788         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
87789         Likewise.
87790         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
87791
87792         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
87793         Reported by Padraig Brady.
87794
87795         * lib/mkstemp.c: #undef mkstemp.
87796         Include config.h.
87797         (rpl_mkstemp): Rename from mkstemp.
87798         Protoize.
87799
87800 2001-11-16  Jim Meyering  <meyering@lucent.com>
87801
87802         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
87803         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
87804         determine the amount of total physical memory, use pstat_getstatic.
87805         HPUX-11 doesn't define _SC_PHYS_PAGES.
87806         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
87807         If sysconf couldn't be used to determine the amount of available
87808         physical memory, use both pstat_getstatic and pstat_getdynamic.
87809         Based on a patch from Bob Proulx.
87810
87811 2001-11-10  Jim Meyering  <meyering@lucent.com>
87812
87813         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
87814         (jm_PREREQ): Use it.
87815
87816 2001-11-09  Jim Meyering  <meyering@lucent.com>
87817
87818         * m4/jm-macros.m4: Require autoconf-2.52f.
87819         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
87820         Use these AC_-prefixed names, not the AM_-prefixed ones.
87821
87822         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
87823
87824 2001-11-05  Jim Meyering  <meyering@lucent.com>
87825
87826         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
87827
87828 2001-11-04  Jim Meyering  <meyering@lucent.com>
87829
87830         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
87831         $DEFS.
87832
87833 2001-11-03  Jim Meyering  <meyering@lucent.com>
87834
87835         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
87836         of AC_DEFUN.
87837
87838         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
87839         know the name of the variable in the macro definition.
87840
87841 2001-11-03  Jim Meyering  <meyering@lucent.com>
87842
87843         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
87844         in argmatch_to_argument call.
87845
87846         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
87847         argument.
87848
87849         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
87850         e.g., a fault due to an attempt to free a NULL pointer.
87851
87852 2001-11-01  Jim Meyering  <meyering@lucent.com>
87853
87854         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
87855         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
87856
87857 2001-11-01  Jim Meyering  <meyering@lucent.com>
87858
87859         * lib/dirfd.c, lib/dirfd.h: New files.
87860         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
87861
87862         * lib/hash.c (hash_print) [TESTING]: Clean up.
87863
87864 2001-10-22  Paul Eggert  <eggert@twinsun.com>
87865
87866         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
87867         to avoid a warning if -Wall.
87868
87869 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
87870
87871         * README: New file
87872         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
87873         (per RMS's instructions, this is now the canonical source)
87874         * lgpl/, gpl/: New directories.
87875
87876 2001-10-21  Paul Eggert  <eggert@twinsun.com>
87877
87878         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
87879
87880 2001-10-21  Jim Meyering  <meyering@lucent.com>
87881
87882         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
87883         this code would end up calling gettext even in packages built
87884         with --disable-nls.
87885         * lib/getopt.c (_): Likewise.
87886         * lib/regex.c (_): Likewise.
87887
87888 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87889
87890         * m4/error.m4 (jm_PREREQ_ERROR):
87891         Do not invoke AC_CHECK_FUNCS with strerror_r, as
87892         AC_FUNC_STRERROR_R does that.
87893         Check for strerror declaration.
87894
87895         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
87896         are supposed to have them these days.
87897         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
87898         Merge changes from latest Autoconf CVS.
87899         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
87900         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
87901         POSIX decided to standardize on the int flavor of strerror_r.
87902
87903 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87904
87905         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
87906         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
87907         Use strerror_r that is only a macro, even if it is not a function.
87908         (strerror): Check for HAVE_DECL_STRERROR before declaring.
87909         (private_strerror): Use prototypes, not old-style function definition.
87910         (print_errno_message): New function.
87911         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
87912         char*-flavored one.
87913         (error_tail, error, error_at_line): Use it.
87914
87915 2001-10-11  Jim Meyering  <meyering@lucent.com>
87916
87917         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
87918         and quote_n (1, ... to avoid clobbering a buffer.
87919
87920 2001-10-05  Jim Meyering  <meyering@lucent.com>
87921
87922         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
87923         hash-pjw.h.
87924         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
87925         * lib/hash-pjw.h: New file.
87926
87927 2001-09-30  Jim Meyering  <meyering@lucent.com>
87928
87929         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
87930         `struct fsstat' has the `f_fstypename' member.
87931         Use that to define FS_TYPE, which is now used to make
87932         the getfsstat link test tighter.
87933
87934 2001-09-30  Jim Meyering  <meyering@lucent.com>
87935
87936         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
87937         Include <sys/ucred.h>, for Apple Darwin.
87938         Include sys/mount.h and sys/fs_types.h only if available.
87939         (FS_TYPE): Define.
87940         (read_filesystem_list): Use FS_TYPE.
87941
87942 2001-09-29  Paul Eggert  <eggert@twinsun.com>
87943
87944         * lib/exclude.c (excluded_filename): 0 -> false, since it's
87945         a boolean context.
87946
87947 2001-09-29  Jim Meyering  <meyering@lucent.com>
87948
87949         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87950         [one-argument getmntent function]): Include stdio.h before mntent.h.
87951         SunOS 4.1.x needs it for the declaration of `FILE'.
87952         Patch by Volker Borchert.
87953
87954         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87955         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
87956         sys/fs_types.h, and make the link-test for getfsstat guard #include
87957         directives with appropriate #if HAVE_*_H tests so that we can
87958         detect getfsstat on Apple Darwin1.3.7 systems.
87959         Reported by Nelson Beebe.
87960         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
87961
87962 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87963
87964         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87965         #defines strtoimax.  Also treat the other strto* functions
87966         like strtoimax.
87967
87968         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87969         Check for strtoul and strtoumax,
87970         as those declarations are made even in the signed case.
87971         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
87972         Likewise, for strtol and strtoimax.
87973
87974 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87975
87976         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87977         #defines strtoimax.  Also treat the other strto* functions
87978         like strtoimax.
87979
87980         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
87981         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
87982         (strtoimax, strtoumax): Do not declare if already defined as a macro.
87983
87984 2001-09-26  Jim Meyering  <meyering@lucent.com>
87985
87986         Most macros in unlocked-io.h had the wrong number of arguments.
87987         * lib/gen-uio: New script.
87988         (USE_UNLOCKED_IO): Define to 1 if not already defined.
87989         * lib/unlocked-io.hin: Remove file.
87990         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
87991         rather than trying to embed it here.
87992         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
87993         Reported by Padraig Brady.
87994
87995 2001-09-25  Volker Borchert  <bt@teknon.de>
87996
87997         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
87998         `result'.
87999
88000 2001-09-24  Jim Meyering  <meyering@lucent.com>
88001
88002         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
88003
88004 2001-09-23  Jim Meyering  <meyering@lucent.com>
88005
88006         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
88007         instead of the mere test for existence of mntent.h.  The latter
88008         would get a false-positive on AIX 3.4 systems.
88009         In the outer getmntent if-block, don't die if neither of the getmntent
88010         tests succeeds.  Instead, just fall through and continue with the
88011         remaining tests.
88012
88013 2001-09-23  Jim Meyering  <meyering@lucent.com>
88014
88015         * lib/mountlist.c: Remove useless parentheses in #if directives.
88016         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
88017         the deprecated MOUNTED symbol is no longer defined in mntent.h.
88018
88019 2001-09-22  Jim Meyering  <meyering@lucent.com>
88020
88021         * m4/gettext.m4: New file.  From gettext.
88022         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
88023         * m4/progtest.m4: Likewise
88024         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
88025         * m4/glibc21.m4: Likewise.
88026
88027         * m4/libintl.m4: Remove.  No longer used.
88028
88029 2001-09-22  Jim Meyering  <meyering@lucent.com>
88030
88031         * lib/localcharset.c: Update from latest gettext.
88032         * lib/config.charset: Likewise.
88033
88034 2001-09-20  Jim Meyering  <meyering@lucent.com>
88035
88036         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
88037         strtoimax.
88038         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
88039         strtoumax.
88040
88041 2001-09-20  Jim Meyering  <meyering@lucent.com>
88042
88043         * lib/xstrtol.c (strtoimax): Guard declaration with
88044         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
88045         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
88046         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
88047         (strtoumax): Likewise, for completeness (it wasn't necessary).
88048
88049 2001-09-17  Paul Eggert  <eggert@twinsun.com>
88050
88051         * lib/strtoimax.c (HAVE_LONG_LONG):
88052         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
88053         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
88054         to work around bug in IBM C compiler.
88055
88056 2001-09-17  Jim Meyering  <meyering@lucent.com>
88057
88058         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
88059         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
88060         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
88061         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
88062         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
88063         whenever the right hand side need not be expanded by the shell.
88064
88065 2001-09-16  Paul Eggert  <eggert@twinsun.com>
88066
88067         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
88068         library.  It's not correct, as some older glibcs are buggy.
88069         fnmatch wasn't fixed until glibc 2.2.
88070
88071         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
88072         special shell magic here.
88073
88074 2001-09-16  Jim Meyering  <meyering@lucent.com>
88075
88076         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
88077         * m4/jm-macros.m4: Require it.
88078
88079 2001-09-16  Jim Meyering  <meyering@lucent.com>
88080
88081         * lib/mkdir.c: New file.
88082
88083 2001-09-15  Jim Meyering  <meyering@lucent.com>
88084
88085         * m4/jm-macros.m4: Check for help2man.
88086
88087 2001-09-11  Jim Meyering  <meyering@lucent.com>
88088
88089         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
88090         The body, by Paul Eggert, was moved here from configure.in.
88091         * m4/jm-macros.m4: Require UTILS_HOST_OS.
88092
88093 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88094
88095         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
88096         (jm_PREREQ): Use it.
88097
88098 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88099
88100         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
88101         Use ssize_t, not int, to store result of readlink.
88102         Check for ssize_t overflow as well as size_t overflow,
88103         as POSIX says the result of readlink is implementation-defined
88104         when ssize_t overflows.
88105         Remove unnecessary cast to char*.
88106         Use free+malloc instead of realloc, as the storage doesn't need
88107         to be preserved and it's clearer and can be more efficient that way.
88108         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
88109         * lib/xreadlink.h (xreadlink): Update prototype.
88110
88111 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88112
88113         * lib/xgetcwd.c: Revert some of the previous change; intead,
88114         fix the HAVE_GETCWD_NULL code to behave more like the
88115         !HAVE_GETCWD_NULL code used to.
88116
88117         Include "xalloc.h".
88118         (xgetcwd): Do not return NULL when memory is exhausted; instead,
88119         invoke xalloc_die.
88120
88121 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88122
88123         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
88124         sys/param.h, as pathmax.h includes them.
88125
88126 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88127
88128         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
88129         (jm_PREREQ_XGETCWD): New macro.
88130
88131         * m4/getcwd.m4: New file.
88132
88133 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88134
88135         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
88136         like the HAVE_GETCWD_NULL code.
88137         Include pathmax.h if not HAVE_GETCWD.
88138         Do not include xalloc.h.
88139         (INITIAL_BUFFER_SIZE): New symbol.
88140         Do not use xmalloc / xrealloc, since the caller is responsible for
88141         handling errors.  Preserve errno around `free' during failure.
88142         Do not overrun buffer when using getwd.
88143
88144 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88145
88146         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
88147         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
88148         getcwd (NULL, 0).
88149
88150 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88151
88152         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
88153         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
88154         spotted by Jim Meyering.
88155
88156 2001-09-03  Jim Meyering  <meyering@lucent.com>
88157
88158         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
88159         failure.
88160
88161 2001-09-02  Jim Meyering  <meyering@lucent.com>
88162
88163         * lib/error.c: Update from GNU libc.
88164
88165 2001-09-01  Jim Meyering  <meyering@lucent.com>
88166
88167         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
88168         Used by df.
88169
88170 2001-09-01  Jim Meyering  <meyering@lucent.com>
88171
88172         * lib/xreadlink.c: New file.
88173         * lib/xreadlink.h: New file.
88174         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
88175         xreadlink.h.
88176
88177         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
88178         doesn't conflict with sparc Solaris 7's definition in
88179         /usr/include/sys/int_types.h.
88180
88181         * lib/exclude.c: Use `""', not `<>' to #include non-system header
88182         files.
88183         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
88184         and strncasecmp as r-values.  Unixware didn't have declarations.
88185
88186 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88187
88188         * lib/xstrtol.h: Add copyright notice.
88189         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
88190         LONGINT_INVALID_SUFFIX_CHAR.
88191
88192 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88193
88194         * lib/xstrtol.c (strtoimax): New decl.
88195
88196 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88197
88198         * lib/xgetcwd.c: Don't include pathmax.h.
88199         Include stdlib.h and unistd.h if available.
88200         Include xalloc.h.
88201         (xmalloc, xstrdup, free): Remove decls.
88202         (xgetcwd): Don't assume sizes fit in unsigned.
88203         Check for overflow when computing sizes.
88204         Simplify reallocation code.
88205
88206 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88207
88208         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
88209         a directory's st_size can have an arbitrary value, so the old
88210         usage could waste an arbitrary amount of memory.  All uses
88211         changed.
88212         * lib/savedir.h: Update prototype.
88213
88214 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88215
88216         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
88217
88218         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
88219         old strtoimax.c.
88220
88221         Also, make the following further changes to make this file's
88222         configuration more similar to that of strtol.c:
88223         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
88224         (strtoumax, uintmax_t, strtoull, strtol): Remove.
88225         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
88226         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
88227         changed to signed values.
88228
88229         And make the following changes as well:
88230         Fix copyright notice, as 1999 was missing.
88231         (verify): New macro.
88232         (strtoimax): Check sizes at compile-time, not run-time.
88233         Prefer strtol to strtoll if both work.
88234         (main): Remove; it was not that useful and was a pain to maintain.
88235
88236         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
88237
88238 2001-08-31  Jim Meyering  <meyering@lucent.com>
88239
88240         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
88241         Use an initial, malloc'd, buffer of length 128 rather than
88242         a statically allocated one of length 1024.
88243
88244 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88245
88246         Simplify code, partly by assuming autoconf 2.52 semantics.
88247
88248         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
88249
88250         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
88251         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
88252         All uses removed.
88253         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
88254         Move AC_REQUIRE to next-to-top level, to avoid confusion.
88255         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
88256         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
88257         jm_AC_HEADER_INTTYPES_H.
88258         * m4/jm-macros.m4 (jm_MACROS): Likewise.
88259
88260         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
88261
88262         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88263         Quote first arg of AC_DEFUN.
88264         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
88265         since they are needed to parse the include file even if we need
88266         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
88267         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
88268         but with opposite signedness.
88269
88270 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88271
88272         Merge 'exclude' changes from tar 1.13.22.
88273         This fixes one or two unlikely storage allocation overflow bugs,
88274         but doesn't change user-visible behavior otherwise.
88275
88276 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88277
88278         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
88279         (jm_PREREQ_EXCLUDE): New macro.
88280
88281 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88282
88283         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
88284         tm to be declared.
88285
88286 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88287
88288         * lib/hash.c: Remove '2001' from copyright notice.
88289
88290 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88291
88292         * lib/full-write.h: New file.
88293         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
88294         * lib/full-write.c: Correct credits, as cccp.c no longer
88295         exists and anyway it was so heavily changed from the old cccp
88296         code as to be unrecognizable.  Include full-write.h.
88297         (full_write): Return size_t, with short writes meaning failure.
88298         All callers changed.  This fixes a bug with large buffers
88299         on 64-bit hosts.
88300         * lib/utime.c: Include full-write.h.
88301
88302 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88303
88304         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
88305         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
88306         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
88307         Include if available.
88308         (<xalloc.h>): Include
88309         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
88310         (verify): New macro.  Use it to verify that EXCLUDE macros do not
88311         collide with FNM macros.
88312         (struct patopts): New struct.
88313         (struct exclude): Use it, as exclude patterns now come with options.
88314         (new_exclude): Support above changes.
88315         (new_exclude, add_exclude_file):
88316         Initial size must now be a power of two to simplify overflow checking.
88317         (free_exclude, fnmatch_no_wildcards): New function.
88318         (excluded_filename): No longer requires options arg, as the options
88319         are determined by add_exclude.  Now returns bool, not int.
88320         (excluded_filename, add_exclude):
88321         Add support for the fancy new exclusion options.
88322         (add_exclude, add_exclude_file): Now takes int options arg.
88323         Check for arithmetic overflow when computing sizes.
88324         (add_exclude_file): xrealloc might modify errno, so don't
88325         realloc until after errno might be used.
88326
88327         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
88328         New macros.
88329         (free_exclude): New decl.
88330         (add_exclude, add_exclude_file): Now takes int options arg.
88331         (excluded_filename): No longer requires options arg, as the options
88332         are determined by add_exclude.  Now returns bool, not int.
88333
88334 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88335
88336         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
88337
88338 2001-08-27  Jim Meyering  <meyering@lucent.com>
88339
88340         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
88341
88342         * lib/version-etc.c (N_): Remove definition.
88343         Revert most of last change.
88344         Instead, simply don't mark the `Copyright...' string for translation.
88345         Based on advice from Paul Eggert.
88346
88347         * lib/strtoxmax.c: Tweak comment.
88348
88349 2001-08-26  Jim Meyering  <meyering@lucent.com>
88350
88351         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
88352
88353         * m4/xstrtoimax.m4: New file.
88354         * m4/xstrtoumax.m4: Add comments explaining why we
88355         AC_REPLACE_FUNCS(strtol).
88356
88357 2001-08-26  Jim Meyering  <meyering@lucent.com>
88358
88359         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
88360         of copyright with `%s' so translators don't get an untranslated
88361         message in 2002.
88362         (COPYRIGHT_YEAR): Define.
88363         (version_etc): Use fprintf rather than fputs.
88364         Suggestion from Ulrich Drepper.
88365
88366         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
88367
88368         * lib/strtoll.c: New file, from GNU libc.
88369         * lib/xstrtoimax.c: New file.
88370
88371         * lib/xstrtol.h: Add xstrtoimax.
88372         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
88373         * lib/strtoimax.c: New file.  Likewise, but first define
88374         STRTOUXMAX_SIGNED.
88375
88376         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
88377         ...
88378         * lib/strtoxmax.c: ... then renamed to this.
88379
88380 2001-08-18  Paul Eggert  <eggert@twinsun.com>
88381
88382         * m4/inttypes.m4: Add AC_PREREQ(2.13).
88383         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
88384         (jm_AC_TYPE_INTMAX_T): New macro.
88385         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
88386
88387         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
88388
88389         * m4/longlong.m4: Renamed from ulonglong.m4.
88390         * m4/inttypes.m4: Renamed from inttypes_h.m4.
88391         * m4/uintmax_t.m4: Removed.
88392
88393 2001-08-13  Paul Eggert  <eggert@twinsun.com>
88394
88395         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
88396         Port to Solaris 8, where 'sed' requires a space after the 'r'
88397         command, and where sh dislikes "$/".  Clean up the spacing a bit.
88398         Redirect output to $tmp just once.
88399
88400 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
88401
88402         * lib/addext.c (<errno.h>): Include.
88403         (errno): Declare if not defined.
88404         (addext): Work correctly when pathconf returns -1 and leaves
88405         errno alone because there is no limit.  Also, work even if
88406         pathconf returns a value greater than SIZE_MAX.
88407
88408 2001-08-12  Jim Meyering  <meyering@lucent.com>
88409
88410         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
88411         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
88412         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
88413         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
88414         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
88415         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
88416         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
88417         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
88418         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
88419         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
88420         utime.m4, utimes.m4, xstrtoumax.m4:
88421         Quote the first argument in each use of AC_DEFUN.
88422
88423 2001-08-12  Jim Meyering  <meyering@lucent.com>
88424
88425         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
88426         Simply `return getcwd (NULL, 0);'.
88427         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
88428         Use 1300 as initial value for length, not PATH_MAX.
88429
88430         * lib/pathmax.h: Clean up cpp syntax.
88431
88432 2001-08-12  Jim Meyering  <meyering@lucent.com>
88433
88434         * lib/gettimeofday.c: New file.
88435         * lib/gtod.h: New file.
88436         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
88437
88438 2001-08-05  Jim Meyering  <meyering@lucent.com>
88439
88440         * m4/jm-macros.m4: Require autoconf-2.52.
88441
88442 2001-08-04  Jim Meyering  <meyering@lucent.com>
88443
88444         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
88445         stmt, to get in sync with glibc.
88446
88447 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88448
88449         The following changes are from gettext 0.10.39 as maintained by
88450         Bruno Haible.
88451
88452         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
88453         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
88454         with inverted sense.  All uses changed.
88455
88456         * lib/mbswidth.c: Don't include <limits.h>.
88457         Include <stdlib.h> and <string.h> unconditionally.
88458         (iswcntrl, mbsinit, ISCNTRL): New macros.
88459         (mbsnwidth): Use K&R style function declarations.
88460         Don't bother checking for MB_LEN_MAX == 1, since the compiler
88461         can optimize it when MB_CUR_MAX == 1.
88462         The width of control characters is zero, not 1.
88463
88464 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88465
88466         The following changes are from gettext 0.10.39 as maintained by
88467         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
88468
88469         * m4/codeset.m4: Upgrade to serial AM1.
88470         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
88471         all uses changed.  Quote first arg of AC_DEFUN.
88472         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
88473
88474         * m4/iconv.m4: Upgrade to serial AM2.
88475         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
88476         Add --with-libconv-prefix.
88477         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
88478         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
88479         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
88480         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
88481         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
88482
88483         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
88484         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
88485         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
88486         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
88487         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
88488         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
88489         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88490         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
88491         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
88492
88493         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
88494         string.h any more.
88495
88496         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
88497         not the default value.
88498
88499         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
88500         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
88501         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
88502         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
88503         Also check for iswcntrl, used for wcwidth fallback.
88504         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
88505         to Autoconf 2.13.
88506
88507 2001-08-03  Jim Meyering  <meyering@lucent.com>
88508
88509         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
88510         as it was in the original.  Reported by Paul Eggert.
88511
88512 2001-07-16  Jim Meyering  <meyering@lucent.com>
88513
88514         * m4/gettimeofday.m4: New file.
88515         Prompted by a report from Bernhard Baehr.
88516
88517 2001-07-15  Jim Meyering  <meyering@lucent.com>
88518
88519         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
88520         stuff. Now it's in ../Makefile.cfg.
88521
88522 2001-07-15  Jim Meyering  <meyering@lucent.com>
88523
88524         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
88525         (BUILT_SOURCES): Add unlocked-io.h.
88526         (io_functions): Define.
88527         (unlocked-io.h): New rule.
88528         (DISTCLEANFILES): Add unlocked-io.h.
88529         (all-local): Depend on unlocked-io.h, to ensure it is created.
88530
88531         * lib/unlocked-io.hin: New file
88532
88533         * lib/regex.c: Update from glibc.
88534
88535 2001-07-05  Jim Meyering  <meyering@lucent.com>
88536
88537         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
88538         recommendation.
88539         (libfetish_a_SOURCES): Put all .h files here instead.
88540         Remove a thus-exposed (better checks in automake) duplicate and
88541         two unnecessary .h files.
88542
88543 2001-07-04  Jim Meyering  <meyering@lucent.com>
88544
88545         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
88546         that generates jm-glibc-io.m4 so that it doesn't trigger any make
88547         distcheck failure.
88548
88549 2001-07-02  Jim Meyering  <meyering@lucent.com>
88550
88551         The following changes were prompted by suggestions from Bruno Haible.
88552
88553         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
88554         is now generated.
88555         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
88556         definition of EXTRA_DIST.
88557         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
88558         ensure that the generated file is created/updated whenever the list
88559         of $(unlocked_functions) is changed.
88560         (jm-glibc-io.m4): New rule.
88561         (unlocked-io.h): New rule -- currently unused.
88562
88563 2001-06-24  Jim Meyering  <meyering@lucent.com>
88564
88565         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
88566         unmatched right bracket, rather than kludging it with an extra,
88567         falsely-matching quote in a comment.  Patch by Akim Demaille.
88568
88569 2001-06-11  Jim Meyering  <meyering@lucent.com>
88570
88571         * lib/regex.c: Update from GNU libc.
88572
88573 2001-05-27  Jim Meyering  <meyering@lucent.com>
88574
88575         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
88576         Check for ut_type in struct utmp.
88577
88578 2001-05-27  Jim Meyering  <meyering@lucent.com>
88579
88580         * lib/readutmp.h (UT_TYPE): Define.
88581
88582 2001-05-24  Jim Meyering  <meyering@lucent.com>
88583
88584         * lib/argmatch.c: Include "quote.h".
88585         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
88586         quote function.  Reported by Göran Uddeborg.
88587
88588 2001-05-22  Jim Meyering  <meyering@lucent.com>
88589
88590         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
88591         now that we use the package-supplied version unconditionally.
88592         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
88593
88594 2001-05-21  Jim Meyering  <meyering@lucent.com>
88595
88596         * m4/regex.m4: Change a couple backticks to single quotes to avoid
88597         shell syntax errors.
88598
88599 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88600
88601         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
88602
88603 2001-05-20  Paul Eggert  <eggert@twinsun.com>
88604
88605         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
88606         Don't bother to check library strftime, since
88607         we'll be using our own my_strftime function anyway.
88608         Define my_strftime instead of strftime.
88609
88610 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
88611
88612         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
88613         which is not yet declared.
88614
88615 2001-05-15  Jim Meyering  <meyering@lucent.com>
88616
88617         * m4/regex.m4: Use proper quoting so brackets appear in the test
88618         program.
88619         Reported by, and with help from, Bruno Haible.
88620
88621 2001-05-13  Jim Meyering  <meyering@lucent.com>
88622
88623         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
88624         undefined.
88625
88626 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88627
88628         dirname code cleanup.  base_name now behaves more compatibly
88629         with POSIX basename when given file names that have trailing
88630         slashes, and similarly for dir_name.  Add new primitives
88631         base_len and dir_len.  Put the directory-name-related decls
88632         into dirname.h.
88633
88634         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
88635         * lib/backupfile.c (base_name): Likewise.
88636         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
88637         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
88638         * lib/makepath.c (strip_trailing_slashes): Likewise.
88639         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
88640         ISSLASH): Likewise.
88641         * lib/rename.c (strip_trailing_slashes): Likewise.
88642         * lib/same.c (base_name): Likewise.
88643         * lib/stripslash.c (ISSLASH): Likewise.
88644
88645         * lib/addext.c: Include <dirname.h> after size_t is defined.
88646         * lib/backupfile.c: Likewise.
88647
88648         * lib/addext.c (addext): Use base_len to trim redundant
88649         trailing slashes instead of doing it ourselves.
88650         But do not trim the last slash if it is not redundant.
88651
88652         * lib/backupfile.c (find_backup_file_name,
88653         max_backup_version): Use base_len instead of rolling it ourselves.
88654         Handle the case of "" and (on DOS) "C:" correctly.
88655
88656         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
88657         needed. Include <string.h>, <dirname.h>.
88658         (base_name): Allow file names ending in slashes, other than names
88659         that are all slashes.  In this case, return the basename followed
88660         by the slashes.  This is more general, and can be used in places
88661         where the original base_name purposely had an assertion failure.
88662         (base_len): New function.
88663
88664         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
88665         Do not include <assert.h>; no longer needed.
88666         Include xalloc.h.
88667         (memrchr): Remove decl.
88668         (dir_name_r): Remove.
88669         (dir_len): Renamed from dirlen.  All callers changed.
88670         Rewrite in terms of base_name, for simplicity and consistency.
88671         (dir_name): Never return NULL.  All callers changed.
88672         Do not include <stdlib.h> in test program; no longer needed.
88673         return 0; is fine for test program.
88674
88675         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
88676         New macros.
88677         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
88678
88679         * lib/path-concat.c (path_concat): Use base_len to compute
88680         base length, not strlen; this means we cannot rely on memcpy
88681         to null-terminate.
88682
88683         * lib/same.c (STREQ): Remove.
88684         (same_name): Handle the case where the basename ends in trailing '/'.
88685
88686         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
88687         a slash was stripped.  Do not strip the last slash after a
88688         file system prefix.
88689
88690 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88691
88692         * lib/Makefile.am (libfetish_a_SOURCES):
88693         Add strftime.c, since we now compile it on all hosts.
88694
88695         * lib/strftime.c (my_strftime):
88696         Define to nstrftime if emacs, but only if my_strftime is not defined.
88697         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
88698         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
88699         Add one more extra argument: a nanoseconds value.
88700         All uses changed.
88701         (ns): New macro.
88702         (my_strftime function): Add %N format.
88703         (emacs_strftimeu): Renamed from emacs_strftime,
88704         with extra ut argument.
88705
88706 2001-05-09  Paul Eggert  <eggert@twinsun.com>
88707
88708         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
88709
88710 2001-04-21  Jim Meyering  <meyering@lucent.com>
88711
88712         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
88713         doesn't interfere.
88714
88715 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88716
88717         * m4/ftruncate.m4: Check for chsize.
88718         Link with ftruncate.o unconditionally if ftruncate is missing.
88719         This was required when cross-compiling to i586-mingw32msvc.
88720
88721 2001-04-08  Jim Meyering  <meyering@lucent.com>
88722
88723         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
88724         recomputed; that's necessary when the offset spans a DST transition.
88725         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
88726
88727 2001-04-02  Jim Meyering  <meyering@lucent.com>
88728
88729         * lib/regex.h, regex.c: Update from GNU libc.
88730
88731 2001-03-24  Jim Meyering  <meyering@lucent.com>
88732
88733         * m4/jm-macros.m4: Require autoconf-2.49d.
88734
88735 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
88736
88737         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
88738
88739 2001-03-19  Paul Eggert  <eggert@twinsun.com>
88740
88741         * lib/version-etc.c (version_etc_copyright): Update to 2001.
88742
88743 2001-03-17  Jim Meyering  <meyering@lucent.com>
88744
88745         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
88746         now that the version in autoconf is equivalent.
88747         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
88748
88749         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
88750         Suggestion from Akim Demaille.
88751
88752         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
88753         (jm_PREREQ_TEMPNAME): New function.
88754
88755 2001-03-16  Paul Eggert  <eggert@twinsun.com>
88756
88757         * lib/tempname.c (uint64_t): Define to uintmax_t if
88758         not defined, and if UINT64_MAX is not defined.
88759         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
88760         Reported by John David Anglin.
88761
88762 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
88763
88764         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
88765         resolve alias if codeset is empty.
88766         * lib/config.charset (BeOS): Use wildcard syntax.
88767
88768 2001-03-13  Jim Meyering  <meyering@lucent.com>
88769
88770         * lib/path-concat.c (path_concat)
88771         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
88772         concatenating e.g., `C:' and `foo'.
88773         From Bruno Haible.
88774
88775 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88776
88777         * lib/localcharset.c (locale_charset): Don't use
88778         setlocale(LC_CTYPE,NULL). Don't return NULL.
88779         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
88780
88781 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88782
88783         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
88784         support for DOS/DJGPP.
88785
88786 2001-03-01  Paul Eggert  <eggert@twinsun.com>
88787
88788         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
88789         lacks mkstemp.  Compile our own tempname.c if we compile our own
88790         mkstemp.c, as mkstemp relies on tempname.
88791
88792 2001-03-01  Jim Meyering  <meyering@lucent.com>
88793
88794         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
88795         AH_VERBATIM really does output its argument verbatim.
88796
88797 2001-02-28  Paul Eggert  <eggert@twinsun.com>
88798
88799         * lib/Makefile.am (libfetish_a_SOURCES):
88800         Add dup-safer.c, fopen-safer.c.
88801         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
88802
88803         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
88804         * lib/unistd-safer.h: New files.
88805
88806 2001-02-25  Paul Eggert  <eggert@twinsun.com>
88807
88808         The mkstemp replacement is taken from glibc 2.2.2, with some
88809         portability fixes for use outside glibc, as follows:
88810
88811         * lib/tempname.c (struct_stat64): New macro.
88812         (direxists, __gen_tempname): Use it.
88813         This avoids a portability problem with Solaris 8.
88814
88815         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
88816         (<stddef.h>, <stdint.h>, <string.h>):
88817         Include only if STDC_HEADERS || _LIBC.
88818         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
88819         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
88820         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
88821         (__set_errno): Define this macro if <errno.h> doesn't.
88822         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
88823         Define these macros if <stdio.h> doesn't.
88824         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
88825         Define these macros if <sys/stat.h>
88826         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
88827         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
88828         __xstat64): Define if not _LIBC.
88829         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
88830         (__gen_tempname): Invoke gettimeofday only if
88831         HAVE_GETTIMEOFDAY || _LIBC;
88832         otherwise, fall back on plain "time".
88833         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
88834
88835         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
88836
88837         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
88838
88839 2001-02-18  Paul Eggert  <eggert@twinsun.com>
88840
88841         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
88842
88843 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88844
88845         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
88846         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
88847         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
88848         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88849
88850 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88851
88852         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
88853         Remove workaround macros for hosts that have mbrtowc but not
88854         mbstate_t, as we now insist on proper declarations for both
88855         before using mbrtowc.
88856
88857 2001-02-17  Jim Meyering  <meyering@lucent.com>
88858
88859         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
88860         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
88861         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
88862         UnixWare 7.1.1.
88863
88864         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
88865         rather than AC_CACHE_VAL.
88866
88867 2001-02-17  Jim Meyering  <meyering@lucent.com>
88868
88869         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
88870         around included file name.
88871
88872         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
88873
88874         * lib/strftime.c: Update from GNU libc (the only changes were to
88875         comments).
88876
88877 2001-02-17  Jim Meyering  <meyering@lucent.com>
88878
88879         * lib/regex.c: Update from libc.
88880
88881 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
88882
88883         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
88884         clash.
88885
88886 2001-02-16  Paul Eggert  <eggert@twinsun.com>
88887
88888         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
88889         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
88890         Reported by Mark Hounschell via Paul Eggert.
88891
88892 2001-02-07  Jim Meyering  <meyering@lucent.com>
88893
88894         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
88895
88896 2001-02-05  Jim Meyering  <meyering@lucent.com>
88897
88898         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
88899         it includes the patch required for `large file' support with at least
88900         HP-UX's 10.20 /bin/cc.
88901
88902 2001-02-03  Jim Meyering  <meyering@lucent.com>
88903
88904         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
88905         AS_IF, now that it works once again (mysteriously).
88906         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88907
88908 2001-01-30  Jim Meyering  <meyering@lucent.com>
88909
88910         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
88911         * m4/chown.m4: Rename conftestchown to conftest.chown.
88912         * m4/rename.m4: s/conftestdir/conftest.d1/ and
88913         s/conftestdir2/conftest.d2/.
88914         * m4/utimes.m4: s/conftestdata/conftest.data/
88915         Inspired by Pavel Roskin's change in autoconf.
88916
88917 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
88918
88919         * lib/config.charset: Update for FreeBSD 4.2.
88920
88921 2001-01-27  Jim Meyering  <meyering@lucent.com>
88922
88923         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
88924         a use of AS_IF.
88925         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88926
88927 2001-01-26  Jim Meyering  <meyering@lucent.com>
88928
88929         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
88930         quotearg.c includes it.
88931
88932 2001-01-26  Jim Meyering  <meyering@lucent.com>
88933
88934         * lib/quotearg.c: Include stddef.h.
88935         * lib/quote.c: Include stddef.h.
88936         Reported by Axel Kittenberger.
88937
88938         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
88939         line in double quotes so that it evokes a better diagnostic.
88940         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
88941         Reported by Axel Kittenberger.
88942
88943 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
88944
88945         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
88946         as if it was a `charset'.
88947
88948 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88949
88950         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
88951         has const.
88952
88953 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88954
88955         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
88956         to avoid a warning.  Add back 'const' to inptr.
88957
88958 2001-01-20  Jim Meyering  <meyering@lucent.com>
88959
88960         Be sure that headers are checked before used in code compiled
88961         for the type checks.
88962         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
88963         In place of that, invoke jm_CHECK_ALL_TYPES.
88964         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
88965         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
88966         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
88967         The check for ssize_t was mistakenly run before the test for unistd.h.
88968
88969         The configure-time check for stdbool.h was missing.
88970         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
88971         (jm_PREREQ_HASH): New function.
88972
88973 2001-01-17  Jim Meyering  <meyering@lucent.com>
88974
88975         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
88976         for autoconf-2.49c.
88977         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
88978
88979 2001-01-16  Jim Meyering  <meyering@lucent.com>
88980
88981         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
88982         From Bruno Haible.
88983
88984 2001-01-14  Jim Meyering  <meyering@lucent.com>
88985
88986         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
88987         foo and bar.  Create conftestdir/ in the script, not in the C code.
88988         Remove directories in the script, not in the C code.
88989         Remove conftestdir{,2} before trying to create the directory.
88990         Make the entire configure script fail if the mkdir fails.
88991
88992 2001-01-14  Jim Meyering  <meyering@lucent.com>
88993
88994         * lib/rename.c: New file.  From Volker Borchert.
88995         Include stdlib.h, string.h or strings.h, and xalloc.h.
88996         Use strip_trailing_slashes rather than open-coding it.
88997
88998 2001-01-03  Paul Eggert  <eggert@twinsun.com>
88999
89000         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
89001
89002 2001-01-03  Jim Meyering  <meyering@lucent.com>
89003
89004         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
89005         of local `inptr' to avoid warning with some system declarations of
89006         iconv.
89007
89008 2001-01-02  Volker Borchert  <bt@teknon.de>
89009
89010         * m4/rename.m4: New file.
89011         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
89012
89013 2001-01-01  Jim Meyering  <meyering@lucent.com>
89014
89015         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
89016         even on systems with utmpx.h.  It's necessary for the declaration of
89017         utmp's ut_user member.  Reported by Andreas Jaeger.
89018
89019         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
89020         available. They are required for the declarations of getgrgid and
89021         getpwuid resp.
89022         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
89023         Reported by Andreas Jaeger.
89024
89025 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
89026
89027         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
89028         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
89029         so `make install' also works in VPATH builds.
89030
89031 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
89032
89033         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
89034         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
89035         can be used in subdirectories.
89036
89037 2000-12-29  Paul Eggert  <eggert@twinsun.com>
89038
89039         * lib/modechange.c: Do not assume that mode_t uses the
89040         traditional octal encoding.  E.g. "chmod 1 FOO" should set
89041         the other-execute bit of FOO even if S_IXOTH != 1.
89042
89043         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
89044         WOTH, XOTH, ALLM): New macros.
89045         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
89046          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
89047         Use them.
89048         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
89049         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
89050         (mode_compile):
89051         No need to use uintmax_t; unsigned long is long enough.
89052         Don't bother to get suffix since we don't use it.
89053
89054 2000-12-26  Jim Meyering  <meyering@lucent.com>
89055
89056         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
89057         better with autoheader.
89058
89059 2000-12-24  Jim Meyering  <meyering@lucent.com>
89060
89061         * lib/hash.c (is_prime): Return explicit boolean values.
89062         (hash_get_first): Return NULL to appease Irix5.6's 89.
89063         Reported by Nelson Beebe.
89064
89065 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
89066
89067         * lib/localcharset.c (locale_charset): Add support for Win32.
89068
89069 2000-12-18  Paul Eggert  <eggert@twinsun.com>
89070
89071         * lib/physmem.h, lib/physmem.c: New files.
89072
89073         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
89074         (noinst_HEADERS): Add physmem.h.
89075
89076         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
89077         't' for compatibility with Solaris 8 sort.
89078
89079 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
89080
89081         * lib/config.charset: Add support for BeOS.
89082
89083 2000-12-17  Jim Meyering  <meyering@lucent.com>
89084
89085         * m4/dos.m4 (jm_AC_DOS): New file and macro.
89086         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
89087
89088 2000-12-16  Jim Meyering  <meyering@lucent.com>
89089
89090         This bug had a serious impact on chown: `chown N:M FILE' (for integer
89091         N and M) would have treated it like `chown N:N FILE'.
89092
89093         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
89094
89095 2000-12-16  Jim Meyering  <meyering@lucent.com>
89096
89097         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
89098         SHELLS_FILE to a file name that's useful on djgpp systems.
89099         Include stdlib.h.
89100         (ADDITIONAL_DEFAULT_SHELLS): Define.
89101         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
89102         Based mostly on a patch from Prashant TR.
89103
89104 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
89105
89106         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
89107         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
89108         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
89109
89110 2000-12-08  Andreas Schwab  <schwab@suse.de>
89111
89112         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
89113         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
89114
89115 2000-12-07  Jim Meyering  <meyering@lucent.com>
89116
89117         * lib/stripslash.c (ISSLASH): Define.
89118         (strip_trailing_slashes): Use ISSLASH rather than comparing against
89119         `/'.
89120         From Prashant TR.
89121
89122         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
89123         (dir_name_r): Declare this function as static.
89124         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
89125         manifest itself on a name containing a mix of slashes and
89126         backslashes.
89127         Make this function work with names starting with a DOS-style
89128         drive letter and colon prefix.
89129         (dir_name): Append `.' if necessary.
89130         Based mostly on patches from Prashant TR and Eli Zaretskii.
89131
89132         * lib/dirname.h (dir_name_r): Remove prototype.
89133
89134 2000-12-06  Paul Eggert  <eggert@twinsun.com>
89135
89136         * m4/off_t-format.m4: Remove this file.
89137         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
89138
89139 2000-12-06  Jim Meyering  <meyering@lucent.com>
89140
89141         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
89142         replacement strtoull, we may well need the replacement strtoul, too.
89143         Check for declarations of strtoul and strtoull.
89144         Check for strtol.  Mainly as a cue to cause automake to include
89145         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
89146         Check for limits.h -- strtol.c needs it.
89147
89148 2000-12-05  Jim Meyering  <meyering@lucent.com>
89149
89150         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
89151
89152 2000-12-04  Jim Meyering  <meyering@lucent.com>
89153
89154         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
89155         Also include memory.h, stdlib.h, unistd.h if appropriate.
89156         Reported by Andreas Jaeger (conflicting declaration of malloc).
89157
89158 2000-12-02  Jim Meyering  <meyering@lucent.com>
89159
89160         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
89161         * m4/jm-macros.m4 (jm_MACROS): require it.
89162
89163 2000-12-02  Jim Meyering  <meyering@lucent.com>
89164
89165         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
89166
89167 2000-12-01  Paul Eggert  <eggert@twinsun.com>
89168
89169         * lib/memrchr.c: Include <config.h> before any system include file.
89170
89171 2000-11-30  Jim Meyering  <meyering@lucent.com>
89172
89173         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
89174
89175 2000-11-30  Jim Meyering  <meyering@lucent.com>
89176
89177         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
89178
89179 2000-11-29  Paul Eggert  <eggert@twinsun.com>
89180
89181         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
89182
89183 2000-11-26  Jim Meyering  <meyering@lucent.com>
89184
89185         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
89186
89187 2000-11-22  Paul Eggert  <eggert@twinsun.com>
89188
89189         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
89190         size of (size_t) -1; it's not portable.
89191
89192 2000-11-17  Jim Meyering  <meyering@lucent.com>
89193
89194         * lib/strstr.c: Update from GNU libc.
89195
89196 2000-11-17  Akim Demaille  <akim@epita.fr>
89197
89198         * lib/obstack.h: Formatting changes.
89199         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
89200         prevent type checking.
89201         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
89202         cast the value to (void *): assigning a `foo *' to a `void *'
89203         variable is valid.
89204         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
89205
89206 2000-11-16  Jim Meyering  <meyering@lucent.com>
89207
89208         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
89209
89210 2000-11-11  Jim Meyering  <meyering@lucent.com>
89211
89212         * lib/error.c: Add a couple #includes, merging from GNU libc version.
89213
89214 2000-11-10  Jim Meyering  <meyering@lucent.com>
89215
89216         * lib/obstack.h: Update from GNU libc.
89217         * lib/obstack.c: Likewise.
89218
89219 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
89220
89221         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
89222
89223 2000-11-06  Paul Eggert  <eggert@twinsun.com>
89224
89225         * lib/getusershell.c (setusershell): Use rewind rather than
89226         fseek/fseeko, to avoid configuration hassles with fseeko.
89227         Don't bother opening SHELLS_FILE if shellstream is NULL;
89228         it's not necessary.
89229
89230 2000-11-05  Jim Meyering  <meyering@lucent.com>
89231
89232         * lib/makepath.h (make_dir): Declare.
89233         * lib/makepath.c (make_dir): Remove `static' attribute.
89234         Tweak a comment.
89235
89236 2000-11-04  Jim Meyering  <meyering@lucent.com>
89237
89238         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
89239
89240 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
89241
89242         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
89243         last one in a bucket, advance to the next bucket.
89244
89245 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
89246
89247         * lib/fnmatch.c: Do not comment out all the code if we are using
89248         the GNU C library, because in some cases we are replacing buggy
89249         code in the GNU C library itself.
89250
89251 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
89252
89253         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
89254         (regex_compile): Catch bogus \(\1\).
89255
89256 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89257
89258         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
89259         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
89260         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
89261
89262 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89263
89264         * lib/error.h, getline.h, modechange.h:
89265         Remove "2000" from Copyright line, as the file hasn't been
89266         changed this year other than in the copyright notice.
89267
89268         * lib/xalloc.h: Add "2000" to Copyright line, as this file
89269         was changed this year.
89270
89271 2000-10-29  Jim Meyering  <meyering@lucent.com>
89272
89273         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
89274         renaming.
89275         * m4/ls-mntd-fs.m4: Likewise
89276
89277 2000-10-29  Jim Meyering  <meyering@lucent.com>
89278
89279         * lib/xstat.in: Fix grammar in comment.
89280
89281 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
89282
89283         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
89284         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
89285         doesn't define __restrict_arr.
89286
89287 2000-10-28  Jim Meyering  <meyering@lucent.com>
89288
89289         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
89290         (jm_PREREQ_MEMCHR): New function.
89291
89292 2000-10-28  Jim Meyering  <meyering@lucent.com>
89293
89294         * lib/memchr.c: Update from libc.
89295         Adjust for portability:
89296         [HAVE_STDLIB_H]: Include stdlib.h.
89297         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
89298         Undef __memchr, too.
89299         [!weak_alias]: Define __memchr to memchr.
89300
89301         * lib/regex.c: Update from libc.
89302         * lib/regex.h: Likewise.
89303         * lib/getopt1.c: Likewise.
89304         * lib/memcmp.c: Likewise.
89305
89306         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
89307         Avoid using fseek, when possible -- it's broken by design.
89308         Patch by Ulrich Drepper.
89309
89310 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
89311
89312         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
89313         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
89314         Giving in to popular pressure to shut up the compiler with casts.
89315
89316 2000-10-26  Jim Meyering  <meyering@lucent.com>
89317
89318         * lib/strftime.c: Update from libc.
89319
89320 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
89321
89322         * regex.c: More `unsigned char' -> `re_char' changes.
89323         Also change several `int' into `re_wchar_t'.
89324         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
89325         (PUSH_FAILURE_POINTER): Don't cast any more.
89326         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
89327         We want GCC to complain, since this piece of code makes
89328         re_match non-reentrant, which *should* be fixed.
89329         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
89330         (EXTEND_BUFFER): Use RETALLOC.
89331         (SET_LIST_BIT): Don't cast.
89332         (re_wchar_t): New type.
89333         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
89334         that those two functions will always properly return.
89335         (IMMEDIATE_QUIT_CHECK): Cast to void.
89336         (analyse_first): Use recursion rather than an explicit stack.
89337         (re_compile_fastmap): Can't fail anymore.
89338         (re_search_2): Don't check re_compile_fastmap for failure.
89339         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
89340         Now also sets the new value (passed in a new argument).
89341         (re_match_2_internal): Use it.
89342         Also, use a new var `reg' of type size_t when looping through regs
89343         rather than reuse the inappropriate `mcnt'.
89344
89345 2000-10-25  Jim Meyering  <meyering@lucent.com>
89346
89347         * lib/obstack.c: Update from libc.
89348
89349 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
89350
89351         * regex.c (regex_compile): Change the way of handling a range from
89352         a char less than 256 to a char not less than 256.
89353
89354 2000-10-24  Andrew Innes  <andrewi@gnu.org>
89355
89356         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
89357         NT-Emacs only.
89358         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
89359         so that re_search functions only quit when callers expect them to.
89360
89361 2000-10-23  Jim Meyering  <meyering@lucent.com>
89362
89363         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
89364         wrong.  That set_locale call must not have any side effects.
89365         From Paul Eggert.
89366
89367 2000-10-22  Jim Meyering  <meyering@lucent.com>
89368
89369         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
89370         [CYCLIC]: Remove now-unused definition.
89371
89372         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
89373         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
89374         Suggestion from Ulrich Drepper.
89375
89376 2000-10-21  Jim Meyering  <meyering@lucent.com>
89377
89378         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
89379         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
89380         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
89381
89382 2000-10-21  Jim Meyering  <meyering@lucent.com>
89383
89384         * lib/dirname.c (memrchr): Declare if necessary.
89385         (dir_name): Remove the restriction that there be no
89386         trailing slashes.  Now, this code skips past them, effectively
89387         ignoring them.
89388         [TEST_DIRNAME] (main): New unit tests.
89389
89390         * lib/memrchr.c: New file from GNU libc.
89391         Undef __memrchr, too.
89392         [!weak_alias]: Define __memrchr to memrchr.
89393         Guard weak_alias use with `#ifdef weak_alias'.
89394
89395 2000-10-21  Jim Meyering  <meyering@lucent.com>
89396
89397         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
89398         (dir_name): Use dir_name_r.
89399         * lib/dirname.h (dir_name_r): Declare it.
89400
89401 2000-10-17  Jim Meyering  <meyering@lucent.com>
89402
89403         * lib/quote.h (PARAMS): Define and use.
89404         Reported by Akim Demaille.
89405
89406         * lib/getopt.c: Update from libc.
89407
89408 2000-10-16  Jim Meyering  <meyering@lucent.com>
89409
89410         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
89411         setlocale.
89412         From Jan Fedak.
89413
89414 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
89415
89416         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
89417
89418 2000-09-25  Jim Meyering  <meyering@lucent.com>
89419
89420         * lib/md5.h (rol): Define (from GnuPG).
89421
89422         * lib/sha.c: Give credit (GnuPG) where due.
89423         (M): Use rol rather than open-coding it.
89424         Add a FIXME comment.
89425
89426 2000-09-21  Jim Meyering  <meyering@lucent.com>
89427
89428         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
89429         Reported by Michael Stone.
89430
89431 2000-09-20  Jim Meyering  <meyering@lucent.com>
89432
89433         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
89434         (noinst_HEADERS): Add sha.h.
89435         Based on code from Scott G. Miller and from GnuPG.
89436
89437 2000-09-18  Jim Meyering  <meyering@lucent.com>
89438
89439         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
89440         LIBS. Otherwise, everyone ends up linking with -lelf for some
89441         configurations.
89442         Reported by Mike Stone.
89443
89444 2000-09-15  Jim Meyering  <meyering@lucent.com>
89445
89446         * lib/regex.c: Update from libc.
89447
89448 2000-09-10  Jim Meyering  <meyering@lucent.com>
89449
89450         * lib/getopt.c (_getopt_internal): Update from glibc.
89451
89452 2000-09-09  Jim Meyering  <meyering@lucent.com>
89453
89454         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
89455         think it should be used as a general replacement for isascii.
89456         * lib/fnmatch.c: Likewise.
89457         * lib/mbswidth.c: Likewise
89458         * lib/regex.c: Likewise.
89459
89460         Don't use atoi.
89461         * lib/userspec.c: Include sys/param.h and limits.h.
89462         Include xstrtol.h.
89463         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89464         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
89465         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
89466         UID, GID.  Check range.
89467
89468 2000-09-06  Jim Meyering  <meyering@lucent.com>
89469
89470         * lib/getopt.c (_getopt_internal): Update from glibc.
89471
89472 2000-08-30  Jim Meyering  <meyering@lucent.com>
89473
89474         * lib/strftime.c: Merge in changes from GNU libc.
89475
89476 2000-08-26  Jim Meyering  <meyering@lucent.com>
89477
89478         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
89479         * m4/fpending.m4: New file.
89480
89481 2000-08-26  Jim Meyering  <meyering@lucent.com>
89482
89483         * lib/closeout.c: Include "__fpending.h".
89484         (close_stdout_status): Return right away if there's nothing to flush.
89485
89486         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
89487         * lib/__fpending.c: New file.
89488         * lib/__fpending.h: New file.
89489
89490 2000-08-20  Jim Meyering  <meyering@lucent.com>
89491
89492         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
89493         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
89494         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
89495
89496 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
89497
89498         Improve fileutils installation on systems where running
89499         programs (like install) can't be unlinked.
89500         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
89501         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
89502
89503 2000-08-07  Paul Eggert  <eggert@twinsun.com>
89504
89505         Standardize on "memory exhausted" instead of "Memory exhausted"
89506         or "virtual memory exhausted".
89507         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
89508         "virtual memory exhausted".
89509         * lib/same.c (same_name): Invoke xalloc_die instead of printing
89510         our own message.
89511         * lib/userspec.c (parse_user_spec): Likewise.
89512         * lib/bumpalloc.h: comment fix
89513         * lib/same.c, userspec.c: Include xalloc.h.
89514
89515         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
89516         not char *const and pointing to a constant array.
89517         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
89518         (xrealloc): Comment fix.
89519
89520         * lib/userspec.c (parse_user_spec):
89521         Don't translate a message until just before returning,
89522         to avoid unnecessary translation.
89523
89524 2000-08-07  Jim Meyering  <meyering@lucent.com>
89525
89526         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
89527         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
89528         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
89529         getgroups.c, gethostname.c, getopt.h, group-member.c,
89530         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
89531         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
89532         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
89533         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
89534         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
89535         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
89536         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
89537         yesno.c: Back out Copyright date changes for each file with no change
89538         this year.  This eases coordination with other programs using the same
89539         source code modules.  From Paul Eggert.
89540
89541 2000-08-06  Paul Eggert  <eggert@twinsun.com>
89542
89543         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
89544         not char, for compatibility with glibc 2.1.3 strftime.c.
89545
89546 2000-08-03  Greg McGary  <greg@mcgary.org>
89547
89548         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
89549         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
89550         (EXTEND_BUFFER): Use them.
89551
89552 2000-08-01  Jim Meyering  <meyering@lucent.com>
89553
89554         * lib/dirname.c (ISSLASH): Define.
89555         (BACKSLASH_IS_PATH_SEPARATOR): Define.
89556         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
89557         both `\' and `/' may be use as path separators.
89558         Based on a patch from Prashant TR.
89559
89560 2000-07-31  Paul Eggert  <eggert@twinsun.com>
89561
89562         * lib/quotearg.c (quotearg_n_options): Don't make the initial
89563         slot vector a constant, since it might get modified.
89564
89565 2000-07-31  Jim Meyering  <meyering@lucent.com>
89566
89567         * lib/xmalloc.c: Use `virtual memory exhausted', not
89568         `Memory exhausted'.
89569         * lib/obstack.c (print_and_abort): Likewise.
89570
89571 2000-07-30  Paul Eggert  <eggert@twinsun.com>
89572
89573         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
89574         buffer, so that the caller can always quote one small
89575         component of a "memory exhausted" message in slot 0.
89576         From a suggestion by Jim Meyering.
89577
89578 2000-07-30  Jim Meyering  <meyering@lucent.com>
89579
89580         * lib/makepath.c (make_path): Quote the other instance, too.
89581
89582         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
89583         (STATIC_BUF_SIZE): Define.
89584         (quotearg_n_options): Use only statically allocated storage when
89585         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
89586         than STATIC_BUF_SIZE.
89587
89588 2000-07-29  Jim Meyering  <meyering@lucent.com>
89589
89590         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
89591         * lib/dirname.c (dir_name): Likewise.
89592
89593         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
89594         `/'.
89595
89596         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
89597         (dir_name): Assert that there are no trailing slashes.
89598
89599 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
89600
89601         * lib/mbswidth.h (mbswidth): Add a flags argument.
89602         (mbswidth): New declaration.
89603         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
89604         * lib/mbswidth.c (mbswidth): Add a flags argument.
89605         (mbsnwidth): New function.
89606
89607 2000-07-24  Jim Meyering  <meyering@lucent.com>
89608
89609         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
89610
89611 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89612
89613         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
89614
89615 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89616
89617         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
89618         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
89619         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
89620         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
89621         invoke multibyte primitives.
89622
89623 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89624
89625         * lib/quotearg.c:
89626         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
89627         so that mbstate_t is always defined.
89628
89629         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
89630         be 1 in at least one GCC installation, and this configuration
89631         error is likely to be common.  Ignoring MB_LEN_MAX hurts
89632         performance on hosts that have mbrtowc but have only unibyte
89633         locales, but I assume these hosts are rare.
89634
89635 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89636
89637         * lib/mbswidth.c (_XOPEN_SOURCE):
89638         Don't define; this causes problems on Solaris 7.
89639         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
89640
89641 2000-07-23  Jim Meyering  <meyering@lucent.com>
89642
89643         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
89644         too: getgrgid, getpwuid, getuid.
89645
89646 2000-07-23  Jim Meyering  <meyering@lucent.com>
89647
89648         * lib/basename.c (base_name): Add an assertion.
89649
89650 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
89651
89652         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
89653         shadow its mbsinit function.
89654
89655 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89656
89657         * lib/mbswidth.h: New file.
89658         * lib/mbswidth.c: New file.
89659         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
89660         (noinst_HEADERS): Add mbswidth.h.
89661
89662 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89663
89664         * lib/config.charset: Add support for FreeBSD. Improve support for
89665         HP-UX and IRIX 6.
89666
89667 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
89668
89669         * m4/mbswidth.m4: New file.
89670         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
89671
89672 2000-07-15  Jim Meyering  <meyering@lucent.com>
89673
89674         * lib/makepath.c: Include quote.h.
89675         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
89676         corresponding argument in a `quote (...)' call.
89677         Give better diagnostics.
89678
89679         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
89680         (noinst_HEADERS): Add quote.h.
89681
89682         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
89683         from tar's src/misc.c.
89684         * lib/quote.h: New file.  Prototypes for same.
89685
89686 2000-07-14  Paul Eggert  <eggert@twinsun.com>
89687
89688         From a suggestion by Bruno Haible.
89689         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
89690         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
89691         to decide whether to define the BeOS workaround macro;
89692         this adjusts to the change to AC_MBSTATE_T.
89693
89694 2000-07-14  Jim Meyering  <meyering@lucent.com>
89695
89696         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
89697         jm_AC_TYPE_UINTMAX_T.
89698
89699 2000-07-13  Paul Eggert  <eggert@twinsun.com>
89700
89701         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
89702
89703         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
89704         quotearg_buffer_restyled): Add support for
89705         clocale_quoting_style.  Undo previous change to
89706         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
89707         and "{RIGHT QUOTATION MARK}" msgids.
89708
89709 2000-07-10  Paul Eggert  <eggert@twinsun.com>
89710
89711         From a suggestion by Bruno Haible.
89712         * m4/mbstate_t.m4 (AC_MBSTATE_T):
89713         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
89714         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
89715         and mbstate_t, to a single-part test that simply defines mbstate_t.
89716         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
89717         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
89718
89719 2000-07-10  Jim Meyering  <meyering@lucent.com>
89720
89721         * m4/strerror_r.m4: Mirror the correction made in autoconf.
89722
89723         * m4/gnu-source.m4: Output to confdefs.h directly.
89724         Suggestion from Akim Demaille.
89725
89726 2000-07-09  Paul Eggert  <eggert@twinsun.com>
89727
89728         The old behavior of quoting `like this' doesn't look good with
89729         newer, ISO-style fonts.  See:
89730         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
89731
89732         Instead, quote "like this" by default.  Let the translator
89733         tailor the locale-specific quoting behavior by providing
89734         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
89735
89736         * lib/quotearg.c (N_): New macro.
89737         (gettext_default): New function.
89738         (quotearg_buffer_restyled): Use
89739         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
89740         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
89741
89742 2000-07-09  Jim Meyering  <meyering@lucent.com>
89743
89744         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
89745         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
89746
89747         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
89748         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
89749
89750 2000-07-09  Jim Meyering  <meyering@lucent.com>
89751
89752         * lib/Most files: Update copyright dates to include 2000.
89753
89754 2000-07-08  Jim Meyering  <meyering@lucent.com>
89755
89756         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
89757         if not defined.
89758         (xgethostname): Remove now-unnecessary #ifdef.
89759         Move declaration of `err' into loop where it's used.
89760
89761 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89762         and Bruno Haible  <haible@clisp.cons.org>
89763
89764         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
89765         only if the test for an object-type mbstate_t fails.  This
89766         prevents us from mistakenly reporting that mbstate_t is a
89767         system object type after we "#define mbstate_t int" to work
89768         around its lack.
89769
89770 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89771         and Bruno Haible  <haible@clisp.cons.org>
89772
89773         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
89774
89775 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89776
89777         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
89778         to strerror_r.
89779         Include <ctype.h> for use of isalpha.
89780
89781 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89782
89783         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
89784         by allocating a larger buffer. Test the gethostname return value for
89785         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
89786         returns an error and ENAMETOOLONG isn't defined.
89787
89788 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89789
89790         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
89791         dimension.
89792
89793 2000-07-04  Jim Meyering  <meyering@lucent.com>
89794
89795         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
89796         of the deprecated AC_CHECKING.
89797
89798 2000-07-04  Jim Meyering  <meyering@lucent.com>
89799
89800         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
89801         Reported by Bruno Haible.
89802
89803 2000-07-04  Jim Meyering  <meyering@lucent.com>
89804
89805         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
89806         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
89807         lacks mbrtowc.
89808
89809 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89810
89811         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
89812         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
89813
89814 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89815         and Bruno Haible  <haible@clisp.cons.org>
89816
89817         * lib/quotearg.c (mbrtowc):
89818         Assign to *pwc, and return 1 only if result is nonzero.
89819         (iswprint): Use ISPRINT when substituting our own mbrtowc.
89820
89821 2000-07-03  Jim Meyering  <meyering@lucent.com>
89822
89823         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
89824
89825 2000-07-03  Jim Meyering  <meyering@lucent.com>
89826
89827         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
89828         This is necessary to get a definition of e.g., UTMP_FILE on
89829         HP-UX 10.20.
89830         From Bob Proulx.
89831
89832 2000-07-02  Jim Meyering  <meyering@lucent.com>
89833
89834         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
89835
89836         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
89837         AC_LIBOBJ(function_name).
89838         * m4/chown.m4: Likewise.
89839         * m4/fnmatch.m4: Likewise.
89840         * m4/ftruncate.m4: Likewise.
89841         * m4/getgroups.m4: Likewise.
89842         * m4/getline.m4: Likewise.
89843         * m4/group-member.m4: Likewise.
89844         * m4/jm-macros.m4: Likewise.
89845         * m4/lstat.m4: Likewise.
89846         * m4/malloc.m4: Likewise.
89847         * m4/memcmp.m4: Likewise.
89848         * m4/nanosleep.m4: Likewise.
89849         * m4/putenv.m4: Likewise.
89850         * m4/realloc.m4: Likewise.
89851         * m4/regex.m4: Likewise.
89852         * m4/stat.m4: Likewise.
89853         * m4/strftime.m4: Likewise.
89854
89855 2000-07-02  Jim Meyering  <meyering@lucent.com>
89856
89857         * lib/quotearg.c (mbstate_t): Don't define here.
89858
89859 2000-07-02  Jim Meyering  <meyering@lucent.com>
89860
89861         * lib/nanosleep.c (SIGCONT): Define if not already defined.
89862
89863 2000-07-01  Jim Meyering  <meyering@lucent.com>
89864
89865         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
89866
89867 2000-07-01  Jim Meyering  <meyering@lucent.com>
89868
89869         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
89870         problem.
89871
89872 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89873
89874         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
89875         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
89876
89877 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89878
89879         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
89880         per change in ../m4/ls-mntd-fs.m4.
89881         (read_filesystem_list): Ignore symbolic links.
89882
89883 2000-06-29  Jim Meyering  <meyering@lucent.com>
89884
89885         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
89886         for declaration of strcmp.
89887
89888         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
89889
89890         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
89891         Avoid warning by casting result to `char *' to remove `const'.
89892
89893 2000-06-28  Jim Meyering  <meyering@lucent.com>
89894
89895         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
89896         included by quotearg.c, for which we perform this test.  From
89897         Bruno Haible.
89898
89899 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89900
89901         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
89902         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
89903         <utmpx.h> exists, put readutmp.o into LIBOBJS.
89904
89905 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89906
89907         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
89908
89909 2000-06-26  Paul Eggert  <eggert@twinsun.com>
89910
89911         savedir now sets errno on failure and invokes xmalloc to get memory.
89912         Fix a couple of other minor bugs while we're at it.
89913
89914         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
89915         (NAMLEN): Remove macro.
89916         (malloc, realloc): Remove decls.
89917         (stpcpy): Likewise.
89918         ("xalloc.h"): Include.
89919         (NAME_SIZE_DEFAULT): New macro.
89920         (savedir): Use xmalloc / xrealloc to allocate memory.
89921         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
89922         Skip "" directory entries.
89923         Use strlen to calculate directory entry length, since the old method
89924         is rarely used these days and isn't worth supporting.
89925         Don't use a pointer after freeing it.
89926         Check for integer overflow when calculating allocation size.
89927         Use memcpy to copy entries, instead of stpcpy.
89928         Set errno properly when returning NULL.
89929         Check for readdir error.
89930
89931 2000-06-26  Jim Meyering  <meyering@lucent.com>
89932
89933         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
89934
89935 2000-06-25  Jim Meyering  <meyering@lucent.com>
89936
89937         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
89938         Linux header bug when _XOPEN_SOURCE is defined to 500.
89939
89940 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89941
89942         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
89943         deficiency.
89944
89945 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89946
89947         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
89948         Include xalloc.h.
89949         Don't include <stdlib.h>.  Don't declare malloc, realloc.
89950
89951 2000-06-24  Jim Meyering  <meyering@lucent.com>
89952
89953         * m4/strerror_r.m4: Revive this file -- to try out an experimental
89954         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
89955         for which strerror does return char*, but which lacks a conveniently
89956         accessible declaration of the function.  If the compile-test says
89957         strerror_r doesn't work, then resort to a `run'-test that works on
89958         BeOS and segfaults on DEC Unix.
89959
89960 2000-06-24  Jim Meyering  <meyering@lucent.com>
89961
89962         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
89963
89964 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89965
89966         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
89967         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
89968
89969 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89970
89971         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
89972         (mbrtowc, mbstate_t): Define substitutes if
89973         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
89974         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
89975         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
89976
89977 2000-06-23  Jim Meyering  <meyering@lucent.com>
89978
89979         * m4/afs.m4: Add missing AC_MSG_RESULT.
89980         Reported by Bruno Haible.
89981
89982         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
89983         Suggestion from Bruno Haible.
89984
89985 2000-06-23  Jim Meyering  <meyering@lucent.com>
89986
89987         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
89988
89989 2000-06-21  Jim Meyering  <meyering@lucent.com>
89990
89991         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
89992
89993 2000-06-21  Jim Meyering  <meyering@lucent.com>
89994
89995         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
89996         (noinst_HEADERS): Add getstr.h.
89997
89998         * lib/getline.c (getstr): Move into a separate file.
89999         * lib/getstr.c (getstr): New file, extracted from getline.c, with
90000         the following changes: new parameter, delim2; both delim[12]
90001         parameters have type `int', not `char'.  The latter would lose
90002         with 8-bit delimiters.
90003         * lib/getstr.h: New file.
90004
90005 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90006
90007         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
90008         than 1024, return a memory chunk of least possible size, instead
90009         of size PATH_MAX + 2. In the loop, increment the size proportionally.
90010         Use free/xmalloc instead of xrealloc to avoid copying for very long
90011         paths.
90012
90013 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90014
90015         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
90016         the empty string.
90017
90018 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90019
90020         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
90021         address, not strdup.  Include <stdlib.h> and don't declare free().
90022
90023 2000-06-19  Jim Meyering  <meyering@lucent.com>
90024
90025         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
90026
90027 2000-06-18  Jim Meyering  <meyering@lucent.com>
90028
90029         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
90030
90031         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
90032         `checking whether...' message to be consistent with that of the
90033         lstat test.
90034
90035 2000-06-18  Jim Meyering  <meyering@lucent.com>
90036
90037         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
90038         Besides, these days every porting target provides a mkdir function.
90039
90040         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
90041         needed. (this snippet comes from src/system.h).
90042
90043 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
90044
90045         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
90046
90047 2000-06-15  Paul Eggert  <eggert@twinsun.com>
90048
90049         * lib/human.c (adjust_value): New function.
90050         (human_readable_inexact): Apply rounding style even when
90051         printing approximate values.
90052
90053 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90054
90055         * lib/human.c (human_readable_inexact): Allow an input block
90056         size that is not a multiple of the output block size, and vice versa.
90057         Reported by Piergiorgio Sartor.
90058
90059 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90060
90061         * lib/getdate.y (get_date): Apply relative times after time
90062         zone indicator, not before.  Reported by Todd A. Jacobs.
90063
90064 2000-06-13  Jim Meyering  <meyering@lucent.com>
90065
90066         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
90067
90068         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
90069
90070 2000-06-12  Paul Eggert  <eggert@twinsun.com>
90071
90072         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
90073
90074 2000-06-12  Jim Meyering  <meyering@lucent.com>
90075
90076         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
90077         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
90078         optional argument.
90079         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
90080         the optional argument, `lib'.
90081
90082 2000-06-08  Jim Meyering  <meyering@lucent.com>
90083
90084         * m4/largefile.m4: Remove file (now that it's part of autoconf).
90085
90086 2000-06-04  Paul Eggert  <eggert@twinsun.com>
90087
90088         Rewrite largefile configuration so that we don't need to run
90089         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
90090         AC_CANONICAL_HOST in configure.in -- jmm]
90091
90092         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
90093         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
90094         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
90095         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
90096         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
90097         All uses changed.
90098         Instead of inspecting the output of getconf, try to compile the
90099         test program without and with the macro definition.
90100         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
90101         for getconf.  Instead, check for the needed flags by compiling
90102         test programs.
90103
90104 2000-06-04  Paul Eggert  <eggert@twinsun.com>
90105
90106         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
90107
90108 2000-06-04  Jim Meyering  <meyering@lucent.com>
90109
90110         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
90111         SunOS 4.1.4 for which gid_t is an unsigned type.
90112
90113 2000-06-03  Jim Meyering  <meyering@lucent.com>
90114
90115         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
90116         now that autoconf requires that.
90117
90118         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
90119         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
90120         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
90121
90122 2000-06-03  Jim Meyering  <meyering@lucent.com>
90123
90124         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
90125
90126 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90127
90128         * m4/glibc21.m4: New file.
90129         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
90130
90131 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90132
90133         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
90134         newer, don't install charset.alias.
90135         * lib/config.charset: Change the Linux/glibc rules so they become empty
90136         on glibc-2.1 or newer.
90137
90138 2000-06-02  Jim Meyering  <meyering@lucent.com>
90139
90140         * lib/mountlist.c: Back out last change.  Instead, do this...
90141         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
90142         me_dummy member using the same `ignore'-testing code.
90143         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
90144         fs_type strings.
90145         From Mark D. Roth.
90146
90147 2000-05-29  Jim Meyering  <meyering@lucent.com>
90148
90149         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
90150         mounts with the `ignore' attribute.  Based on a patch from
90151         Mark D. Roth.
90152
90153 2000-05-28  Jim Meyering  <meyering@lucent.com>
90154
90155         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
90156         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90157         * m4/stat.m4: Likewise.
90158         * m4/lstat.m4: Likewise.
90159         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
90160
90161         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
90162         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
90163
90164 2000-05-26  Jim Meyering  <meyering@lucent.com>
90165
90166         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
90167
90168 2000-05-24  Jim Meyering  <meyering@lucent.com>
90169
90170         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
90171         autoconf requires that.
90172         * m4/lib-check.m4: Likewise.
90173         * m4/jm-macros.m4: Likewise.
90174         * m4/strftime.m4: Likewise.
90175
90176         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
90177         AC_CHECK_DECLS, now that autoconf requires that.
90178
90179 2000-05-22  Jim Meyering  <meyering@lucent.com>
90180
90181         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90182         * m4/lstat.m4: Likewise.
90183
90184 2000-05-22  Jim Meyering  <meyering@lucent.com>
90185
90186         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
90187
90188 2000-05-20  Jim Meyering  <meyering@lucent.com>
90189
90190         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
90191         (jm_PREREQ): Use it.
90192
90193 2000-05-18  Jim Meyering  <meyering@lucent.com>
90194
90195         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
90196         back, too, since it may have been modified by allocate_entry.
90197         (hash_delete): Rewrite to use neither the assignment operator
90198         nor the comma operator in an if-expression.
90199
90200 2000-05-15  Paul Eggert  <eggert@twinsun.com>
90201
90202         * lib/closeout.c:
90203         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
90204         Remove; no longer needed.
90205         "quotearg.h": Add include.
90206         (file_name): Do not bother to explicitly initialize to NULL; it's less
90207         efficient on some hosts.
90208         (close_stdout_status): Remove test as to whether stdout was already
90209         closed; it breaks for the case "echo x | sort >&-".
90210         Quote file name colons.
90211         Do not assume that _("write error") lacks format strings.
90212
90213 2000-05-15  Jim Meyering  <meyering@lucent.com>
90214
90215         * lib/version-etc.c (version_etc_copyright): Update the copyright
90216         string used in all --version output.
90217
90218 2000-05-14  Jim Meyering  <meyering@lucent.com>
90219
90220         * lib/closeout.c (close_stdout_set_file_name): New function.
90221         (close_stdout_status): Use new file-scoped global.
90222         Return right away if fstat says the stdout file descriptor is invalid.
90223         * lib/closeout.h (close_stdout_set_file_name): Declare.
90224
90225 2000-05-10  Jim Meyering  <meyering@lucent.com>
90226
90227         * lib/closeout.c [default_exit_status]: New file-scoped variable.
90228         (close_stdout_set_status): New function.
90229         * lib/closeout.h (close_stdout_set_status): Declare.
90230
90231 2000-05-09  Jim Meyering  <meyering@lucent.com>
90232
90233         * m4/gettext.m4: Rename this...
90234         * m4/libintl.m4: ...to this.
90235
90236 2000-05-08  Jim Meyering  <meyering@lucent.com>
90237
90238         * lib/long-options.c: Don't include closeout.h.
90239         (parse_long_options): Don't call close_stdout for --version.
90240
90241 2000-05-06  Paul Eggert  <eggert@twinsun.com>
90242
90243         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
90244         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
90245         2.1.3 bug.  This avoids a clash when files like regex.c define
90246         _GNU_SOURCE.
90247
90248 2000-05-06  Jim Meyering  <meyering@lucent.com>
90249
90250         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
90251         (AC_REPLACE_FUNCS): Add strnlen.
90252
90253         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
90254         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
90255
90256         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
90257         AC_SEARCH_LIBS call for nanosleep.
90258         (LIB_NANOSLEEP): Set and AC_SUBST.
90259
90260 2000-05-06  Jim Meyering  <meyering@lucent.com>
90261
90262         * lib/strnlen.c: Undefine __strnlen and strnlen.
90263         [!weak_alias]: Define __strnlen to strnlen.
90264
90265         * lib/atexit.c: New file, from libiberty.
90266
90267 2000-05-06  Jim Meyering  <meyering@lucent.com>
90268
90269         * lib/closeout.c (close_stdout_status): Also check for errors on the
90270         stderr stream.
90271
90272 2000-05-05  Jim Meyering  <meyering@lucent.com>
90273
90274         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
90275         AC_SEARCH_LIBS call for clock_gettime.
90276         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
90277
90278         * m4/search-libs.m4: Update from autoconf.
90279
90280         su doesn't work on Solaris 2.6.
90281         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
90282         <shadow.h>.  Reported by Dragos Harabor.
90283
90284 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
90285
90286         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
90287         memcpy instead of xmalloc, xrealloc, path_concat.
90288         (locale_charset): Treat empty environment variables as absent.
90289         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
90290
90291 2000-05-04  Jim Meyering  <meyering@lucent.com>
90292
90293         * lib/getopt.c: Update from glibc.
90294         * lib/obstack.c: Likewise.
90295         * lib/obstack.h: Likewise.
90296         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
90297         file
90298
90299         * lib/regex.h: Likewise.
90300         * lib/strndup.c: Likewise.
90301         * lib/strnlen.c: New file, from glibc.
90302
90303 2000-05-03  Jim Meyering  <meyering@lucent.com>
90304
90305         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
90306
90307 2000-05-02  Paul Eggert  <eggert@twinsun.com>
90308
90309         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
90310         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
90311         compile-time test, rather than inspecting host and OS, to
90312         decide whether to define _LARGEFILE_SOURCE.
90313
90314 2000-05-01  Jim Meyering  <meyering@lucent.com>
90315
90316         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
90317
90318         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
90319         Based on a patch from Bruno Haible.
90320
90321 2000-05-01  Jim Meyering  <meyering@lucent.com>
90322
90323         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
90324
90325 2000-04-29  Jim Meyering  <meyering@lucent.com>
90326
90327         * lib/path-concat.c: Declare strdup only if it's not defined.
90328         * lib/canon-host.c: Likewise.
90329
90330 2000-04-28  Jim Meyering  <meyering@lucent.com>
90331
90332         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
90333         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
90334         is included first, then limits.h is included by locale.h by libintl.h.
90335         From John David Anglin.
90336
90337 2000-04-25  Jim Meyering  <meyering@lucent.com>
90338
90339         * lib/makepath.c (S_IRWXUGO): Define.
90340         (make_path): Always perform explicit chmod if MODE specifies any
90341         of the `special' permission bits.  Prompted by a bug report against
90342         install from Mate Wierdl and Joost van Baal.
90343
90344 2000-04-18  Jim Meyering  <meyering@lucent.com>
90345
90346         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
90347         (jm_PREREQ): Use it.
90348
90349 2000-04-18  Jim Meyering  <meyering@lucent.com>
90350
90351         * lib/README: New file.
90352
90353         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
90354         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
90355
90356 2000-04-17  Jim Meyering  <meyering@lucent.com>
90357
90358         Get it right :-)
90359         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
90360         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
90361         Suggestion from Akim Demaille.
90362
90363 2000-04-17  Jim Meyering  <meyering@lucent.com>
90364
90365         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
90366         the definition of it to rpl_strftime also defined-away the system's
90367         declaration.
90368
90369 2000-04-15  Jim Meyering  <meyering@lucent.com>
90370
90371         Use `C' to denote so-called `contiguous' files, the same way
90372         that tar does.
90373         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
90374         (ftypelet): Use S_ISCTG.
90375         From Michael Deutschmann.
90376
90377 2000-04-14  Jim Meyering  <meyering@lucent.com>
90378
90379         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
90380         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
90381         clobbered.
90382
90383 2000-04-14  Jim Meyering  <meyering@lucent.com>
90384
90385         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
90386
90387 2000-04-13  Jim Meyering  <meyering@lucent.com>
90388
90389         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
90390         AH_VERBATIM to insert required #ifndef into config.h.in.
90391         Suggestion from Akim Demaille.
90392
90393 2000-04-12  Jim Meyering  <meyering@lucent.com>
90394
90395         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
90396         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
90397         Christian Krackowizer.
90398
90399         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
90400         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
90401         (AC_SYS_LARGEFILE): Require.
90402         (AM_C_PROTOTYPES): Require.
90403
90404 2000-04-08  Jim Meyering  <meyering@lucent.com>
90405
90406         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
90407         names don't conflict.  Reported by Eli Zaretskii.
90408
90409 2000-04-07  Jim Meyering  <meyering@lucent.com>
90410
90411         * lib/putenv.c: Move inclusion of errno.h so it follows that of
90412         sys/types.h, to work around system header problems on AIX 3.2.5.
90413         From Bruno Haible.
90414
90415 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
90416
90417         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
90418         bug.  Deal with the different error behavior of Irix iconv.
90419
90420 2000-04-05  Paul Eggert  <eggert@twinsun.com>
90421
90422         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
90423         IRIX if the installer said otherwise.
90424
90425 2000-04-05  Jim Meyering  <meyering@lucent.com>
90426
90427         Portability tweaks required for ultrix4.3.
90428         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
90429         (jm_CHECK_DECLS): Add getutent to the list of functions.
90430         (_jm_DECL_HEADERS): Add utmpx.h.
90431         From John David Anglin.
90432
90433         * m4/strftime.m4: Back out the 2000-04-02 change.
90434         Instead of that change, simply undefine putenv in the test program.
90435
90436 2000-04-05  Jim Meyering  <meyering@lucent.com>
90437
90438         Portability tweaks required for ultrix4.3.
90439         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
90440         getutent.
90441         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
90442         * lib/canon-host.c: Declare strdup.
90443         * lib/path-concat.c: Likewise.
90444         From John David Anglin.
90445
90446 2000-04-04  Jim Meyering  <meyering@lucent.com>
90447
90448         Be more DOS 8.3-friendly.
90449         * lib/ref-add.sin: Renamed from ref-add.sed.in.
90450         * lib/ref-del.sin: Renamed from ref-del.sed.in.
90451         * lib/Makefile.am: Reflect renaming.
90452         Reported by Eli Zaretskii.
90453
90454         Use a temporary file name that won't clash with `charset.alias'
90455         in the DOS 8.3 name space.
90456         * lib/Makefile.am (charset_tmp): Define.
90457         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
90458         (uninstall-local): Likewise.
90459         Reported by Eli Zaretskii.
90460
90461 2000-04-03  Jim Meyering  <meyering@lucent.com>
90462
90463         * m4/gettext.m4: Fix typo in comment.
90464
90465         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
90466         textutils/configure.in).  Suggestion from Paul Eggert.
90467         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
90468
90469 2000-04-02  Paul Eggert  <eggert@twinsun.com>
90470
90471         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
90472         variable in the shell rather than using putenv, which isn't
90473         portable.  This avoids the configure-time inter-test dependency
90474         on the potentially-renamed putenv function.
90475
90476 2000-03-30  Paul Eggert  <eggert@twinsun.com>
90477
90478         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
90479         before checking struct stat.st_blksize, so that
90480         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
90481
90482 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90483
90484         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
90485         since strftime.c uses HAVE_STRFTIME to decide whether to use
90486         the underlying strftime.
90487
90488 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90489
90490         * lib/time/strftime.c (my_strftime): Make sure we call the system
90491         strftime, not ourselves, when invoking the underlying strftime.
90492
90493 2000-03-24  Jim Meyering  <meyering@lucent.com>
90494
90495         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
90496         (charset_alias): Define.
90497         (install-exec-local): Factor out common code.
90498         (uninstall-local): Split lines longer than 80.
90499         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
90500         (SUFFIXES): Define.
90501         (.sed.in.sed): New rule.  Don't redirect directly to $@.
90502         (CLEANFILES): Add ref-add.sed and ref-del.sed.
90503
90504 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
90505
90506         * lib/config.charset: Output a line containing "Packages using this
90507         file".
90508         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
90509         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
90510         ref-del.sed): New rules.
90511
90512 2000-03-17  Jim Meyering  <meyering@lucent.com>
90513
90514         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
90515         Otherwise, include <strings.h>
90516
90517 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
90518
90519         * lib/unicodeio.c (utf8_wctomb): New function.
90520         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
90521         format instead of in UCS-4 with platform dependent endianness.
90522
90523 2000-03-10  Jim Meyering  <meyering@lucent.com>
90524
90525         * m4/lib-check.m4: Look for getspnam in -lgen, too.
90526         From Marco Franzen.
90527
90528 2000-03-07  Paul Eggert  <eggert@twinsun.com>
90529
90530         * lib/savedir.c (savedir): Work even if directory size is
90531         negative; this can happen with some screwy NFS configurations.
90532
90533 2000-03-06  Jim Meyering  <meyering@lucent.com>
90534
90535         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
90536         if it's NULL (because we ran out of memory).  From Bruno Haible.
90537
90538 2000-03-05  Jim Meyering  <meyering@lucent.com>
90539
90540         * lib/localcharset.c ("path-concat.h"): Include.
90541         (get_charset_aliases): Use path_concat instead of ANSI string
90542         concatenation.
90543
90544         * lib/unicodeio.h (PARAMS): Define.
90545         Use it to guard prototype.
90546
90547 2000-03-04  Jim Meyering  <meyering@lucent.com>
90548
90549         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
90550         for lib/localcharset.c.
90551
90552 2000-03-04  Jim Meyering  <meyering@lucent.com>
90553
90554         * lib/Makefile.am (install-exec-local): Create $(libdir) before
90555         installing into it.
90556         (uninstall-local): Uncomment this rule so `make distcheck' works
90557         once again.
90558
90559         * lib/unicodeio.c (<errno.h>): Include it.
90560         (errno): Declare if not defined.
90561
90562         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
90563
90564         * lib/config.charset: New version, incorporating remarks from a linux
90565         i18n mailing list.  From Bruno Haible.
90566
90567 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
90568
90569         * m4/codeset.m4: New file.
90570         * m4/iconv.m4: New file.
90571         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
90572
90573 2000-03-03  Jim Meyering  <meyering@lucent.com>
90574
90575         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
90576
90577 2000-03-02  Jim Meyering  <meyering@lucent.com>
90578
90579         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
90580         the messages come out on separate lines.
90581
90582         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
90583         rather than jm_CHECK_DECLARATIONS.
90584         * m4/decl.m4: Remove now-unused file.
90585
90586         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
90587         geteuid.
90588
90589 2000-03-02  Jim Meyering  <meyering@lucent.com>
90590
90591         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
90592
90593 2000-03-01  Jim Meyering  <meyering@lucent.com>
90594
90595         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
90596         * lib/unicodeio.c: Likewise.
90597
90598 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
90599
90600         * lib/config.charset: New file.
90601         * lib/localcharset.c: New file.
90602         * lib/unicodeio.h, lib/unicodeio.c: New files.
90603         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
90604         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
90605         (noinst_HEADERS): Add unicodeio.h.
90606         (all-local, install-exec-local, charset.alias): New targets.
90607
90608 2000-02-28  Paul Eggert  <eggert@twinsun.com>
90609
90610         * lib/quotearg.c (ALERT_CHAR): New macro.
90611         (quotearg_buffer_restyled): Use it.
90612
90613 2000-02-27  Jim Meyering  <meyering@lucent.com>
90614
90615         * m4/check-decl.m4: Add getenv to the list.
90616
90617 2000-02-27  Jim Meyering  <meyering@lucent.com>
90618
90619         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
90620         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
90621
90622         * lib/backupfile.c: Guard inclusion of stdlib.h with
90623         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
90624         Declare malloc if needed.
90625
90626         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
90627         `#ifndef HAVE_DECL..'
90628         now that autoconf always defines the HAVE_DECL_ symbols.
90629         * lib/human.c: Likewise.
90630         * lib/same.c: Likewise.
90631         * lib/strtoumax.c: Likewise.
90632
90633         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
90634         declaration check was not run.
90635         * lib/hash.c: Likewise.
90636         * lib/human.c: Likewise.
90637         * lib/same.c: Likewise.
90638         * lib/strtoumax.c: Likewise.
90639
90640         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
90641         `.', then first look up the entire `.'-containing string as a login
90642         name.
90643
90644 2000-02-23  Jim Meyering  <meyering@lucent.com>
90645
90646         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
90647         in place of my hack.
90648
90649 2000-02-18  Paul Eggert  <eggert@twinsun.com>
90650
90651         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
90652         (textint): New typedef.
90653         (parser_control): Member year changed from int to textint.
90654         All uses changed.
90655         (YYSTYPE): Removed; replaced by %union with int and textint members.
90656         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
90657         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
90658         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
90659         (tSNUMBER, tUNUMBER): Now of type <textintval>.
90660         (date, number, to_year): Use width of number in digits, not its value,
90661         to determine whether it's a 2-digit year, or a 2-digit time.
90662         (yylex): Store number of digits of numeric tokens.
90663         Reported by John Kendall.
90664
90665         (parser_control): Changed from struct parser_control to typedef (for
90666         consistency).  All uses changed.
90667
90668         (tID): Removed; not used.
90669         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
90670
90671 2000-02-14  Paul Eggert  <eggert@twinsun.com>
90672
90673         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
90674         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
90675
90676 2000-02-12  Jim Meyering  <meyering@lucent.com>
90677
90678         * lib/userspec.c (ISDIGIT): Define it.
90679         (isdigit): Remove definition.
90680         (is_number): Use ISDIGIT, not isdigit.
90681         <libintl.h>: Include.
90682         (_ and N_): Define.
90683         (parse_user_spec): Mark translatable strings.
90684
90685 2000-02-10  Jim Meyering  <meyering@lucent.com>
90686
90687         With these changes, nanosleep.[ch] are finally enough like the other
90688         lib/* replacement files to compile on a few more losing systems.
90689
90690         * lib/nanosleep.h: Don't include config.h.
90691         Remove prototype from declaration of nanosleep.
90692         (PARAMS): Remove now-unneeded definition.
90693         * lib/nanosleep.c: #undef nanosleep.
90694         (rpl_nanosleep): Rename from nanosleep.
90695
90696 2000-02-10  Jim Meyering  <meyering@lucent.com>
90697
90698         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
90699         gnu_nanosleep to rpl_nanosleep.
90700
90701 2000-02-09  Jim Meyering  <meyering@lucent.com>
90702
90703         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
90704         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
90705
90706 2000-02-08  Akim Demaille  <akim@epita.fr>
90707
90708         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
90709         `[' and `]' and remove uses of `changequote'.
90710         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
90711         (AC_SYS_LARGEFILE): Likewise.
90712         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
90713         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
90714         of changequote.
90715         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
90716         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
90717         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
90718         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
90719
90720 2000-02-05  Jim Meyering  <meyering@lucent.com>
90721
90722         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
90723         Remove explicit use of AC_HEADER_TIME.  It is required by
90724         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
90725         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
90726         in autoconf whereby the expansion of the latter ended up preceding
90727         the expansion of its prerequisite, AC_HEADER_TIME.
90728         Reported by Volker Borchert.
90729
90730 2000-02-03  Jim Meyering  <meyering@lucent.com>
90731
90732         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
90733
90734 2000-02-03  Jim Meyering  <meyering@lucent.com>
90735
90736         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
90737         rather than with `#if HAVE_UTMPNAME'.
90738
90739 2000-02-02  Jim Meyering  <meyering@lucent.com>
90740
90741         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
90742         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
90743         Reported by Eli Zaretskii.
90744
90745 2000-02-01  Jim Meyering  <meyering@lucent.com>
90746
90747         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
90748
90749 2000-01-31  Jim Meyering  <meyering@lucent.com>
90750
90751         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
90752         functions.  Add the time.h and sys/time.h headers along with the
90753         AC_REQUIRE'ment of AC_HEADER_TIME.
90754
90755 2000-01-31  Jim Meyering  <meyering@lucent.com>
90756
90757         * lib/nanosleep.h (nanosleep): Guard declaration with
90758         `#if ! HAVE_DECL_NANOSLEEP'.
90759         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
90760         the declaration in that vendor's sys/timers.h.
90761         Reported by Christian Krackowizer.
90762
90763         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
90764         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
90765         (ISPRINT): Likewise.
90766         Reported by Tom Tromey.
90767
90768 2000-01-30  Jim Meyering  <meyering@lucent.com>
90769
90770         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
90771
90772         * m4/prereq.m4 (utmp_includes): Define.
90773         Check for ut_user and ut_name members in both struct utmpx
90774         and struct utmp.
90775
90776 2000-01-30  Jim Meyering  <meyering@lucent.com>
90777
90778         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
90779         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
90780         header files where only utmpx.ut_user is declared.
90781
90782         * lib/readutmp.h (UT_USER): Define.
90783
90784 2000-01-29  Jim Meyering  <meyering@lucent.com>
90785
90786         * m4/lib-check.m4: New file containing library-related checks from
90787         fileutils and sh-utils (textutils had none).
90788
90789 2000-01-28  Jim Meyering  <meyering@lucent.com>
90790
90791         * m4/perl.m4: Change format of warning message to look more like that
90792         from the missing script.  Suggestion from François Pinard.
90793
90794 2000-01-25  Jim Meyering  <meyering@lucent.com>
90795
90796         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
90797         well as time.h in the compile check.
90798         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
90799         Fix typo in cross-compiling case: s/yes/no/.
90800
90801 2000-01-23  Jim Meyering  <meyering@lucent.com>
90802
90803         * m4/jm-macros.m4: Move df-related tests here from
90804         fileutils/configure.in
90805
90806         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
90807         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
90808
90809         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
90810         s/space/ac_fsusage_space/.
90811         (jm_FILE_SYSTEM_USAGE): Take two parameters.
90812
90813         * m4/ftruncate.m4: New file (derived from part of
90814         fileutils/configure.in).
90815         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
90816         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
90817
90818         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
90819         AC_SUBST these here, rather than just in sh-util/configure.in, so
90820         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
90821         all the same.
90822         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
90823         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
90824         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
90825         (AC_SUBST(POW_LIBM)): Likewise.
90826         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
90827
90828 2000-01-23  Jim Meyering  <meyering@lucent.com>
90829
90830         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
90831         obstack.c.
90832
90833 2000-01-22  Jim Meyering  <meyering@lucent.com>
90834
90835         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
90836
90837         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
90838
90839         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
90840         configure.in
90841         (AC_CHECK_HEADERS): Likewise for sh-utils.
90842         (AC_CHECK_HEADERS): Likewise for textutils.
90843         Merge the three lists of headers.
90844
90845         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
90846         from fileutils' configure.in.
90847
90848         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
90849         code. Moved tests into their own function (_jm_DECL_HEADERS) in
90850         check-decl.m4.
90851
90852         * m4/check-decl.m4: Use #if rather than #ifdef.
90853         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
90854         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
90855         (_jm_DECL_HEADERS): Define new function.
90856         (jm_CHECK_DECLARATIONS): Require it.
90857
90858 2000-01-22  Jim Meyering  <meyering@lucent.com>
90859
90860         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
90861         [! HAVE_DECL_STRTOULL]: Declare strtoull.
90862         Required for some AIX systems.  Reported by Christian Krackowizer.
90863         [TESTING] (main): New function.
90864
90865         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
90866         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
90867         letters.
90868
90869         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
90870         iswprint.
90871
90872         * lib/strverscmp.c (ISDIGIT): Define.
90873         (strverscmp): Use ISDIGIT, not isdigit.
90874
90875 2000-01-19  Jim Meyering  <meyering@lucent.com>
90876
90877         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
90878         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
90879         defines `struct timespec' in <sys/time.h>
90880
90881         * m4/c-bs-a.m4: Remove uses of changequote altogether.
90882         Thanks to Akim for explaining.
90883
90884 2000-01-17  Paul Eggert  <eggert@twinsun.com>
90885
90886         * lib/nanosleep.c (nanosleep):
90887         Don't use SA_INTERRUPT to decide whether to call sigaction, as
90888         POSIX.1 doesn't require SA_INTERRUPT and some systems
90889         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
90890         it's been part of POSIX.1 since day 1 (in 1988).
90891
90892 2000-01-17  Jim Meyering  <meyering@lucent.com>
90893
90894         * lib/interlock: Remove unused file.  Reported by François Pinard.
90895
90896 2000-01-16  Paul Eggert  <eggert@twinsun.com>
90897
90898         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
90899         alert, backslash, formfeed, and vertical tab unnecessarily in
90900         shell quoting style.
90901
90902 2000-01-16  Jim Meyering  <meyering@lucent.com>
90903
90904         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
90905         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
90906         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
90907         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
90908
90909 2000-01-16  Jim Meyering  <meyering@lucent.com>
90910
90911         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
90912         because the latter didn't work.
90913
90914 2000-01-15  Jim Meyering  <meyering@lucent.com>
90915
90916         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
90917         (AC_REPLACE_FUNCS): Add memcpy and memset.
90918         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
90919         Add strpbrk.
90920         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
90921
90922 2000-01-12  Jim Meyering  <meyering@lucent.com>
90923
90924         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
90925         (jm_PREREQ): Use it.
90926         (jm_PREREQ_READUTMP): New macro.
90927         (jm_PREREQ): Use it.
90928
90929 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90930
90931         Quote multibyte characters correctly.
90932         * m4/c-bs-a.m4: New file.
90933         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
90934         (jm_PREREQ): Use it.
90935
90936 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90937
90938         * m4/uintmax_t.m4: Port to autoconf 2.13.
90939
90940 2000-01-08  Jim Meyering  <meyering@ascend.com>
90941
90942         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
90943         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
90944
90945 2000-01-04  Jim Meyering  <meyering@ascend.com>
90946
90947         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
90948         jm_STRUCT_DIRENT_D_TYPE.
90949         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
90950         jm_STRUCT_DIRENT_D_INO.
90951         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
90952         jm_STRUCT_UTIMBUF.
90953         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
90954         renamings.
90955         * m4/utime.m4: Likewise.
90956
90957         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
90958         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
90959
90960 2000-01-03  Paul Eggert  <eggert@twinsun.com>
90961
90962         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
90963         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
90964
90965 2000-01-02  Jim Meyering  <meyering@ascend.com>
90966
90967         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
90968         remember if this is necessary.
90969
90970 1999-12-26  Jim Meyering  <meyering@ascend.com>
90971
90972         * m4/jm-macros.m4: Use it here.
90973         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
90974
90975 1999-12-23  Jim Meyering  <meyering@ascend.com>
90976
90977         * m4/jm-macros.m4: Check for clock_gettime (moved from
90978         fileutils/configure.in)
90979         Check for gettimeofday.
90980
90981 1999-12-20  Jim Meyering  <meyering@ascend.com>
90982
90983         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
90984         autoconf-2.14a-1999-12-20.
90985
90986 1999-12-19  Jim Meyering  <meyering@ascend.com>
90987
90988         * m4/lstat-slash.m4: New file.
90989         * m4/jm-macros.m4: Use the new macro:
90990         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90991
90992 1999-12-07  Jim Meyering  <meyering@ascend.com>
90993
90994         * m4/perl.m4: Require that File::Compare be available, too.
90995         Too many systems seem to lack it.
90996
90997         * m4/strftime.m4: Add checks for most of the cpp macros tested in
90998         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
90999
91000 1999-11-18  Paul Eggert  <eggert@twinsun.com>
91001
91002         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
91003         problem with the QNX 4.25 shell, which doesn't propagate exit
91004         status of failed commands inside shell assignments.
91005
91006 1999-11-17  Jim Meyering  <meyering@ascend.com>
91007
91008         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
91009
91010 1999-11-07  Jim Meyering  <meyering@ascend.com>
91011
91012         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
91013
91014 1999-11-06  Jim Meyering  <meyering@ascend.com>
91015
91016         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
91017         * m4/jm-macros.m4 (jm_MACROS): Use it here.
91018
91019 1999-11-05  Jim Meyering  <meyering@ascend.com>
91020
91021         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
91022         configure.in of textutils, fileutils, and sh-utils into this one
91023         (shared between those packages) file.
91024         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
91025         AC_STRUCT_ST_BLKSIZE.
91026
91027 1999-11-03  Jim Meyering  <meyering@ascend.com>
91028
91029         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
91030         of AC_CHECK_TYPE checks includes unistd.h.
91031         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
91032         Suggestion from Akim Demaille.
91033
91034 1999-10-30  Jim Meyering  <meyering@ascend.com>
91035
91036         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
91037         m4-quoted string.
91038         * m4/ls-mntd-fs.m4: Likewise.
91039         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
91040         * m4/jm-winsz1.m4: Likewise.
91041
91042         * m4/const.m4: Remove file, since the fix made it into the experimental
91043         version of autoconf.
91044         * m4/mktime.m4: Likewise.
91045
91046         * m4/check-type.m4: Remove file, now that the latest version of
91047         AC_CHECK_TYPE takes a third arg to specify additional #includes.
91048
91049         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
91050         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
91051         AC_CHECK_TYPE.
91052
91053 1999-10-04  Jim Meyering  <meyering@ascend.com>
91054
91055         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
91056
91057 1999-09-22  Paul Eggert  <eggert@twinsun.com>
91058
91059         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
91060         2.95.1 bug with HP-UX 10.20.
91061
91062 1999-09-17  Jim Meyering  <meyering@ascend.com>
91063
91064         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
91065         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
91066         due to missing strdup (against sh-utils-2.0).
91067
91068 1999-08-29  Jim Meyering  <meyering@ascend.com>
91069
91070         * m4/jm-macros.m4: Require jm_BISON.
91071         * m4/bison.m4: New file.
91072
91073 1999-08-17  Paul Eggert  <eggert@twinsun.com>
91074
91075         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
91076         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
91077
91078 1999-08-05  Jim Meyering  <meyering@ascend.com>
91079
91080         * m4/getline.m4: Rename test file from conftestdata to conftest.data
91081         to avoid conflicts with `conftest' on 8+3 filesystems.
91082         Suggestion from Eli Zaretskii.
91083
91084 1999-08-04  Jim Meyering  <meyering@ascend.com>
91085
91086         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
91087         fileutils and sh-utils (textutils's getline test was inadequate).
91088         (AM_FUNC_GETLINE): Run this test.
91089         (AC_CHECK_FUNCS): Check for getdelim.
91090         Reported by Bob Proulx.
91091
91092 1999-08-02  Jim Meyering  <meyering@ascend.com>
91093
91094         * m4/jm-macros.m4: Add a comment.
91095
91096 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91097
91098         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
91099         <inttypes.h> defines strtoumax as a macro (and not as a
91100         function).
91101
91102 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91103
91104         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
91105         that we can shift, multiply and divide unsigned long long
91106         values; Ultrix cc can't do it.
91107
91108 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91109
91110         * m4/mktime.m4: New file, which is a preview of what should appear
91111         in the next public autoconf release.
91112
91113 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91114
91115         * m4/lfs.m4: Remove this file.
91116         * m4/largefile.m4: New file.  It contains the old contents of
91117         lfs.m4, except that all names with prefix AC_LFS have been
91118         changed to use the prefix AC_SYS_LARGEFILE instead, to be
91119         compatible with future autoconf versions.  Also, some minor m4
91120         quoting problems have been fixed.
91121
91122 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91123
91124         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
91125         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
91126         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
91127         and simplify the shell code.
91128
91129 1999-08-01  Jim Meyering  <meyering@ascend.com>
91130
91131         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
91132         m4.
91133
91134 1999-07-20  Jim Meyering  <meyering@ascend.com>
91135
91136         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
91137
91138 1999-07-15  Jim Meyering  <meyering@ascend.com>
91139
91140         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
91141
91142 1999-05-22  Jim Meyering  <meyering@ascend.com>
91143
91144         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
91145
91146 1999-05-20  Jim Meyering  <meyering@ascend.com>
91147
91148         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
91149         Add a colon after each `then' in case $4 is empty.
91150
91151 1999-05-16  Jim Meyering  <meyering@ascend.com>
91152
91153         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
91154
91155 1999-05-10  Jim Meyering  <meyering@ascend.com>
91156
91157         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
91158
91159         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
91160         AC_FUNC_MKTIME.
91161
91162 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
91163
91164         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
91165
91166 1999-05-04  Paul Eggert  <eggert@twinsun.com>
91167
91168         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
91169         not CPPFLAGS, so that linking works correctly in IRIX.
91170
91171 1999-04-30  Paul Eggert  <eggert@twinsun.com>
91172
91173         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
91174
91175 1999-04-20  Paul Eggert  <eggert@twinsun.com>
91176
91177         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
91178         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
91179         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
91180         jm_AC_TYPE_UNSIGNED_LONG_LONG.
91181         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
91182
91183         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
91184
91185 1999-04-20  Jim Meyering  <meyering@ascend.com>
91186
91187         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
91188         AC_REPLACE xstroull if necessary.  From Paul Eggert.
91189         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
91190
91191 1999-04-18  Jim Meyering  <meyering@ascend.com>
91192
91193         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
91194         * m4/jm-macros.m4: Use it.
91195
91196 1999-04-06  Jim Meyering  <meyering@ascend.com>
91197
91198         * m4/strftime.m4: Remove test for %f.
91199
91200 1999-03-29  Jim Meyering  <meyering@ascend.com>
91201
91202         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
91203         superset of the AC_TYPE_* checks in the textutils, fileutils,
91204         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
91205         AC_TYPE_PID_T.
91206
91207 1999-03-28  Jim Meyering  <meyering@ascend.com>
91208
91209         * m4/jm-macros.m4: Define GNU_PACKAGE here.
91210         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
91211         replaced e.g., in the *.sh files of the sh-utils.
91212
91213 1999-03-20  Jim Meyering  <meyering@ascend.com>
91214
91215         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
91216         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
91217         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
91218
91219 1999-03-19  Jim Meyering  <meyering@ascend.com>
91220
91221         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
91222
91223 1999-03-12  Jim Meyering  <meyering@ascend.com>
91224
91225         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
91226
91227 1999-03-07  Jim Meyering  <meyering@ascend.com>
91228
91229         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
91230         declared.
91231
91232 1999-02-17  Jim Meyering  <meyering@ascend.com>
91233
91234         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
91235         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
91236
91237 1999-02-07  Jim Meyering  <meyering@ascend.com>
91238
91239         * m4/group-member.m4: New file -- extracted from sh-utils'
91240         configure.in.
91241
91242         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
91243         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
91244
91245 1999-02-06  Jim Meyering  <meyering@ascend.com>
91246
91247         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
91248         * m4/fnmatch.m4: Likewise.
91249         * m4/getgroups.m4: Likewise.
91250         * m4/lstat.m4: Likewise.
91251         * m4/malloc.m4: Likewise.
91252         * m4/putenv.m4: Likewise.
91253         * m4/realloc.m4: Likewise.
91254         * m4/regex.m4: Likewise.
91255         * m4/stat.m4: Likewise.
91256         * m4/strftime.m4: Likewise.
91257         Suggestion from Alain Magloire.
91258
91259         * m4/chown.m4: Use `.$ac_objext', not `.o'.
91260         * m4/fnmatch.m4: Likewise.
91261         * m4/getgroups.m4: Likewise.
91262         * m4/getline.m4: Likewise.
91263         * m4/lstat.m4: Likewise.
91264         * m4/malloc.m4: Likewise.
91265         * m4/memcmp.m4: Likewise.
91266         * m4/putenv.m4: Likewise.
91267         * m4/realloc.m4: Likewise.
91268         * m4/regex.m4: Likewise.
91269         * m4/stat.m4: Likewise.
91270         * m4/strftime.m4: Likewise.
91271         Suggestion from Alain Magloire.
91272
91273         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
91274         an argument.
91275
91276         * m4/regex.m4: Add a run-time Test for proper operation of
91277         re_compile_pattern.
91278
91279 1999-01-31  Jim Meyering  <meyering@ascend.com>
91280
91281         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
91282
91283 1999-01-30  Jim Meyering  <meyering@ascend.com>
91284
91285         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
91286
91287         * m4/jm-mktime.m4: Make this a wrapper around the official
91288         AM_FUNC_MKTIME rather than my private copy, now that the official one
91289         is up to date.
91290         * m4/mktime.m4: Remove file.
91291
91292         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
91293         * m4/uptime.m4: Likewise.
91294         * m4/uintmax_t.m4: Likewise.
91295
91296 1999-01-28  Jim Meyering  <meyering@ascend.com>
91297
91298         * m4/jm-macros.m4: Use jm_AFS.
91299         * m4/afs.m4: New file (from fileutils' configure.in).
91300
91301         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
91302         * m4/chown.m4: Likewise.
91303         * m4/d-ino.m4: Likewise.
91304         * m4/d-type.m4: Likewise.
91305         * m4/fnmatch.m4: Likewise.
91306         * m4/getgroups.m4: Likewise.
91307         * m4/gettext.m4: Likewise.
91308         * m4/jm-mktime.m4: Likewise.
91309         * m4/jm-winsz2.m4: Likewise.
91310         * m4/lcmessage.m4: Likewise.
91311         * m4/ls-mntd-fs.m4: Likewise.
91312         * m4/malloc.m4: Likewise.
91313         * m4/memcmp.m4: Likewise.
91314         * m4/putenv.m4: Likewise.
91315         * m4/realloc.m4: Likewise.
91316         * m4/st_mtim.m4: Likewise.
91317         * m4/strftime.m4: Likewise.
91318
91319 1999-01-16  Jim Meyering  <meyering@ascend.com>
91320
91321         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
91322         (ARGMATCH_DIE_DECL): Define.
91323
91324 1999-01-12  Jim Meyering  <meyering@ascend.com>
91325
91326         * m4/Makefile.am.in: Rewrite to avoid using fmt.
91327         Reported by Lars Hecking.
91328
91329 1999-01-10  Jim Meyering  <meyering@ascend.com>
91330
91331         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
91332         gross kludge.
91333         * m4/inttypes_h.m4: Likewise.
91334         * m4/lstat.m4: Likewise.
91335         * m4/malloc.m4: Likewise.
91336         * m4/readdir.m4: Likewise.
91337         * m4/realloc.m4: Likewise.
91338         * m4/st_dm_mode.m4: Likewise.
91339         * m4/stat.m4: Likewise.
91340         * m4/utimbuf.m4: Likewise.
91341         * m4/utimes.m4: Likewise.
91342
91343         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
91344         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
91345         comments in config.h.in are meaningful.
91346
91347         * m4/jm-macros.m4: Require autoconf-2.13 here.
91348
91349         * m4/regex.m4: By default, don't use the included regex.c on systems
91350         with glibc 2.  Suggestion from Uli Drepper.
91351
91352 1999-01-02  Jim Meyering  <meyering@ascend.com>
91353
91354         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
91355
91356 1998-12-18  Jim Meyering  <meyering@ascend.com>
91357
91358         * m4/Makefile.am.in (Makefile.am): Simplify rule.
91359         Based on a suggestion from Lars Hecking.
91360
91361 1998-11-16  Paul Eggert  <eggert@twinsun.com>
91362
91363         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
91364
91365 1998-11-16  Jim Meyering  <meyering@ascend.com>
91366
91367         * m4/lfs.m4: Double-quote the `uname...` expression.
91368
91369 1998-11-14  Jim Meyering  <meyering@ascend.com>
91370
91371         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
91372         * m4/stat.m4: Likewise.
91373
91374 1998-11-03  Jim Meyering  <meyering@ascend.com>
91375
91376         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
91377         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
91378
91379 1998-10-18  Jim Meyering  <meyering@ascend.com>
91380
91381         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
91382
91383 1998-10-17  Jim Meyering  <meyering@ascend.com>
91384
91385         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
91386         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
91387         calls for those previously hard-coded headers.  Instead, take a new
91388         parameter.
91389         (jm_CHECK_DECLARATIONS): Reflect interface change.
91390         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
91391         (jm_CHECK_DECL_LOCALTIME_R): New macro.
91392
91393         * m4/mktime.m4: Test for spring-forward gap before long-running test.
91394
91395 1998-10-14  Jim Meyering  <meyering@ascend.com>
91396
91397         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
91398         instead of "TZ=America/Vancouver".  From Paul Eggert.
91399
91400 1998-10-11  Jim Meyering  <meyering@ascend.com>
91401
91402         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
91403         This adds a test for a recently added compatibility fix for mktime.c.
91404         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
91405
91406 1998-09-27  Jim Meyering  <meyering@ascend.com>
91407
91408         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
91409
91410         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
91411         ../configure.in, including a change from Gordon Matzigkeit to allow
91412         cross-compiling for the Hurd.
91413
91414         * m4/glibc.m4: New file/macro to test for the GNU C Library
91415         versions 1 and 2.  From Gordon Matzigkeit.
91416         Indent.
91417
91418 1998-09-21  Jim Meyering  <meyering@ascend.com>
91419
91420         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
91421
91422 1998-08-18  Paul Eggert  <eggert@twinsun.com>
91423
91424         Port nanosecond-resolution times to UnixWare 2.1.2 and
91425         pedantic Solaris 2.6.
91426
91427         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
91428         AC_STRUCT_ST_MTIM.
91429         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
91430         Generate name of ns member, instead of just 1 or undef.
91431         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
91432
91433 1998-08-15  Jim Meyering  <meyering@ascend.com>
91434
91435         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
91436         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
91437         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
91438         instead of jm_TYPE_SSIZE_T.
91439
91440 1998-08-12  Jim Meyering  <meyering@ascend.com>
91441
91442         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
91443
91444 1998-08-02  Jim Meyering  <meyering@ascend.com>
91445
91446         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
91447         in acconfig.h manually.
91448
91449 1998-07-31  Paul Eggert  <eggert@twinsun.com>
91450
91451         * m4/st_mtim.m4: New file.
91452
91453 1998-07-28  Jim Meyering  <meyering@ascend.com>
91454
91455         * m4/utimes.m4: Undef stat.
91456
91457 1998-07-25  Jim Meyering  <meyering@ascend.com>
91458
91459         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
91460         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
91461
91462 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
91463
91464         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
91465         uid and gid actually remain unchanged.
91466
91467 1998-07-07  Jim Meyering  <meyering@ascend.com>
91468
91469         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
91470
91471 1998-07-04  Jim Meyering  <meyering@ascend.com>
91472
91473         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
91474         to prove that this macro can be used in packages without regex.c.
91475
91476 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
91477
91478         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
91479         is to be used.
91480
91481 1998-07-03  Jim Meyering  <meyering@ascend.com>
91482
91483         * m4/gettext.m4: Add -lintl if it's found to be necessary.
91484
91485         * m4/gettext.m4: New file -- from gettext-0.10.35.
91486         * m4/lcmessage.m4: Likewise.
91487         * m4/progtest.m4: Likewise.
91488
91489         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
91490         * m4/jm-macros.m4: Require the new macro.
91491
91492 1998-06-29  Jim Meyering  <meyering@ascend.com>
91493
91494         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
91495         for the definition of NGROUPS (used in a system header included
91496         by sys/mount.h).
91497
91498 1998-06-28  Jim Meyering  <meyering@ascend.com>
91499
91500         * m4/ls-mntd-fs.m4: New file.
91501         * m4/fstypename.m4: New file.
91502
91503         * m4/jm-macros.m4: Require the new macro.
91504         * m4/jm-glibc-io.m4: New file.
91505
91506 1998-05-19  Jim Meyering  <meyering@ascend.com>
91507
91508         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
91509         * m4/lchown.m4: New file.
91510
91511         * m4/Makefile.am.in: New file.
91512         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
91513
91514 1998-05-14  Jim Meyering  <meyering@ascend.com>
91515
91516         * m4/Makefile.am (EXTRA_DIST): Add them.
91517         * m4/jm-macros.m4: New file.
91518         * m4/utimbuf.m4: New file.
91519
91520 1998-05-12  Jim Meyering  <meyering@ascend.com>
91521
91522         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
91523
91524 1998-05-11  Jim Meyering  <meyering@ascend.com>
91525
91526         * m4/isc-posix.m4: New file.
91527
91528 1998-05-10  Jim Meyering  <meyering@ascend.com>
91529
91530         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
91531
91532 1998-05-09  Jim Meyering  <meyering@ascend.com>
91533
91534         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
91535         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
91536         with automake.
91537
91538         * m4/ssize_t.m4: New file.
91539         * m4/mktime.m4: Remove file -- the new automake has this now.
91540
91541 1998-04-26  Jim Meyering  <meyering@ascend.com>
91542
91543         * m4/assert.m4: New file.
91544         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
91545
91546 1998-04-05  Jim Meyering  <meyering@ascend.com>
91547
91548         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
91549         (jm_PREREQ): Use it here.
91550
91551 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
91552
91553         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
91554         in acconfig.h.
91555
91556 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
91557
91558         * m4/prereq.m4: New file.
91559         * m4/error.m4: New file.
91560         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
91561
91562 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
91563
91564         * m4/getline.m4: Don't set am_cv_func_working_getline before the
91565         cache-check for the same variable -- that defeated the purpose of
91566         the test; the test program was never run.  This was a problem only
91567         on systems with losing getline functions -- HP-UX 10.20 is one.
91568         Reported by Bjorn Helgaas.
91569
91570 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
91571
91572         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
91573
91574 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
91575
91576         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
91577
91578         * m4/const.m4: New file.  Use an initializer in this declaration
91579         typedef int charset[2]; const charset x;
91580         Reported by Bob Glickstein.
91581
91582 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
91583
91584         * m4/chown.m4: Fix reversed types on -1 args to chown.
91585         From Kaveh Ghazi.
91586
91587 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
91588
91589         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
91590         Add lseek and memchr.
91591
91592         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
91593         T.E.Dickey <dickey@clark.net> said that some older preprocessors
91594         have a 20-character limit on names.
91595
91596 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
91597
91598         * m4/inttypes_h.m4: New file.
91599         * m4/uintmax_t.m4: New file.
91600         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
91601
91602
91603         -----
91604
91605         Local Variables:
91606         coding: utf-8
91607         End:
91608
91609         Copyright (C) 1997-2012 Free Software Foundation, Inc.
91610
91611         Copying and distribution of this file, with or without
91612         modification, are permitted provided the copyright notice
91613         and this notice are preserved.